package g;

import java.util.Date;
import java.util.regex.Pattern;
import javax.annotation.Nullable;

/* JADX INFO: loaded from: classes.dex */
public final class j {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final Pattern f6424a = Pattern.compile("(\\d{2,4})[^\\d]*");

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final Pattern f6425b = Pattern.compile("(?i)(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec).*");

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public static final Pattern f6426c = Pattern.compile("(\\d{1,2})[^\\d]*");

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public static final Pattern f6427d = Pattern.compile("(\\d{1,2}):(\\d{1,2}):(\\d{1,2})[^\\d]*");

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final String f6428e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final String f6429f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final long f6430g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final String f6431h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public final String f6432i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final boolean f6433j;
    public final boolean k;
    public final boolean l;
    public final boolean m;

    public j(String str, String str2, long j2, String str3, String str4, boolean z, boolean z2, boolean z3, boolean z4) {
        this.f6428e = str;
        this.f6429f = str2;
        this.f6430g = j2;
        this.f6431h = str3;
        this.f6432i = str4;
        this.f6433j = z;
        this.k = z2;
        this.m = z3;
        this.l = z4;
    }

    public static int a(String str, int i2, int i3, boolean z) {
        while (i2 < i3) {
            char cCharAt = str.charAt(i2);
            if (((cCharAt < ' ' && cCharAt != '\t') || cCharAt >= 127 || (cCharAt >= '0' && cCharAt <= '9') || ((cCharAt >= 'a' && cCharAt <= 'z') || ((cCharAt >= 'A' && cCharAt <= 'Z') || cCharAt == ':'))) == (!z)) {
                return i2;
            }
            i2++;
        }
        return i3;
    }

    /* JADX WARN: Removed duplicated region for block: B:18:0x0081  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static long b(java.lang.String r12, int r13, int r14) {
        /*
            Method dump skipped, instruction units count: 287
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: g.j.b(java.lang.String, int, int):long");
    }

    public boolean equals(@Nullable Object obj) {
        if (!(obj instanceof j)) {
            return false;
        }
        j jVar = (j) obj;
        return jVar.f6428e.equals(this.f6428e) && jVar.f6429f.equals(this.f6429f) && jVar.f6431h.equals(this.f6431h) && jVar.f6432i.equals(this.f6432i) && jVar.f6430g == this.f6430g && jVar.f6433j == this.f6433j && jVar.k == this.k && jVar.l == this.l && jVar.m == this.m;
    }

    public int hashCode() {
        int iG = a.b.c.a.a.G(this.f6432i, a.b.c.a.a.G(this.f6431h, a.b.c.a.a.G(this.f6429f, a.b.c.a.a.G(this.f6428e, 527, 31), 31), 31), 31);
        long j2 = this.f6430g;
        return ((((((((iG + ((int) (j2 ^ (j2 >>> 32)))) * 31) + (!this.f6433j ? 1 : 0)) * 31) + (!this.k ? 1 : 0)) * 31) + (!this.l ? 1 : 0)) * 31) + (!this.m ? 1 : 0);
    }

    public String toString() {
        String str;
        StringBuilder sb = new StringBuilder();
        sb.append(this.f6428e);
        sb.append('=');
        sb.append(this.f6429f);
        if (this.l) {
            if (this.f6430g == Long.MIN_VALUE) {
                str = "; max-age=0";
            } else {
                sb.append("; expires=");
                str = g.i0.g.d.f6209a.get().format(new Date(this.f6430g));
            }
            sb.append(str);
        }
        if (!this.m) {
            sb.append("; domain=");
            sb.append(this.f6431h);
        }
        sb.append("; path=");
        sb.append(this.f6432i);
        if (this.f6433j) {
            sb.append("; secure");
        }
        if (this.k) {
            sb.append("; httponly");
        }
        return sb.toString();
    }
}
