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 f6410a = Pattern.compile("(\\d{2,4})[^\\d]*");

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final Pattern f6411b = 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 f6412c = Pattern.compile("(\\d{1,2})[^\\d]*");

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public static final Pattern f6413d = 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 f6414e;

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

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

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

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

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final boolean f6419j;
    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.f6414e = str;
        this.f6415f = str2;
        this.f6416g = j2;
        this.f6417h = str3;
        this.f6418i = str4;
        this.f6419j = 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.f6414e.equals(this.f6414e) && jVar.f6415f.equals(this.f6415f) && jVar.f6417h.equals(this.f6417h) && jVar.f6418i.equals(this.f6418i) && jVar.f6416g == this.f6416g && jVar.f6419j == this.f6419j && jVar.k == this.k && jVar.l == this.l && jVar.m == this.m;
    }

    public int hashCode() {
        int iG = a.b.c.a.a.G(this.f6418i, a.b.c.a.a.G(this.f6417h, a.b.c.a.a.G(this.f6415f, a.b.c.a.a.G(this.f6414e, 527, 31), 31), 31), 31);
        long j2 = this.f6416g;
        return ((((((((iG + ((int) (j2 ^ (j2 >>> 32)))) * 31) + (!this.f6419j ? 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.f6414e);
        sb.append('=');
        sb.append(this.f6415f);
        if (this.l) {
            if (this.f6416g == Long.MIN_VALUE) {
                str = "; max-age=0";
            } else {
                sb.append("; expires=");
                str = g.i0.g.d.f6195a.get().format(new Date(this.f6416g));
            }
            sb.append(str);
        }
        if (!this.m) {
            sb.append("; domain=");
            sb.append(this.f6417h);
        }
        sb.append("; path=");
        sb.append(this.f6418i);
        if (this.f6419j) {
            sb.append("; secure");
        }
        if (this.k) {
            sb.append("; httponly");
        }
        return sb.toString();
    }
}
