package o;

import androidx.work.OverwritingInputMerger;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class Dm0 {
    public final String a;
    public int b;
    public final String c;
    public final String d;
    public final C0585Wo e;
    public final C0585Wo f;
    public final long g;
    public final long h;
    public final long i;
    public final C0608Xl j;
    public final int k;
    public final int l;
    public final long m;
    public long n;

    /* renamed from: o, reason: collision with root package name */
    public final long f85o;
    public final long p;
    public boolean q;
    public final int r;
    public final int s;
    public final int t;
    public final long u;
    public final int v;
    public final int w;

    static {
        C0669Zu.l("WorkSpec");
    }

    public Dm0(String str, int i, String str2, String str3, C0585Wo c0585Wo, C0585Wo c0585Wo2, long j, long j2, long j3, C0608Xl c0608Xl, int i2, int i3, long j4, long j5, long j6, long j7, boolean z, int i4, int i5, int i6, long j8, int i7, int i8) {
        this.a = str;
        this.b = i;
        this.c = str2;
        this.d = str3;
        this.e = c0585Wo;
        this.f = c0585Wo2;
        this.g = j;
        this.h = j2;
        this.i = j3;
        this.j = c0608Xl;
        this.k = i2;
        this.l = i3;
        this.m = j4;
        this.n = j5;
        this.f85o = j6;
        this.p = j7;
        this.q = z;
        this.r = i4;
        this.s = i5;
        this.t = i6;
        this.u = j8;
        this.v = i7;
        this.w = i8;
    }

    public final long a() {
        int i = this.b;
        int i2 = this.k;
        boolean z = i == 1 && i2 > 0;
        long j = this.n;
        boolean zC = c();
        long j2 = this.u;
        int i3 = this.s;
        if (j2 != Long.MAX_VALUE && zC) {
            if (i3 != 0) {
                long j3 = j + 900000;
                if (j2 < j3) {
                    return j3;
                }
            }
            return j2;
        }
        if (z) {
            int i4 = this.l;
            long j4 = this.m;
            long jScalb = i4 == 2 ? j4 * i2 : (long) Math.scalb(j4, i2 - 1);
            if (jScalb > 18000000) {
                jScalb = 18000000;
            }
            return j + jScalb;
        }
        long j5 = this.g;
        if (!zC) {
            if (j == -1) {
                return Long.MAX_VALUE;
            }
            return j + j5;
        }
        long j6 = this.h;
        long j7 = i3 == 0 ? j + j5 : j + j6;
        long j8 = this.i;
        return (j8 == j6 || i3 != 0) ? j7 : (j6 - j8) + j7;
    }

    public final boolean b() {
        return !C0608Xl.i.equals(this.j);
    }

    public final boolean c() {
        return this.h != 0;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof Dm0)) {
            return false;
        }
        Dm0 dm0 = (Dm0) obj;
        return F3.c(this.a, dm0.a) && this.b == dm0.b && F3.c(this.c, dm0.c) && F3.c(this.d, dm0.d) && F3.c(this.e, dm0.e) && F3.c(this.f, dm0.f) && this.g == dm0.g && this.h == dm0.h && this.i == dm0.i && F3.c(this.j, dm0.j) && this.k == dm0.k && this.l == dm0.l && this.m == dm0.m && this.n == dm0.n && this.f85o == dm0.f85o && this.p == dm0.p && this.q == dm0.q && this.r == dm0.r && this.s == dm0.s && this.t == dm0.t && this.u == dm0.u && this.v == dm0.v && this.w == dm0.w;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public final int hashCode() {
        int iF = AbstractC0126Ew.f(AbstractC0126Ew.f(AbstractC0126Ew.f(AbstractC0126Ew.f((AbstractC2462sn.w(this.l) + AbstractC0126Ew.e(this.k, (this.j.hashCode() + AbstractC0126Ew.f(AbstractC0126Ew.f(AbstractC0126Ew.f((this.f.hashCode() + ((this.e.hashCode() + AbstractC0126Ew.h(AbstractC0126Ew.h((AbstractC2462sn.w(this.b) + (this.a.hashCode() * 31)) * 31, this.c, 31), this.d, 31)) * 31)) * 31, 31, this.g), 31, this.h), 31, this.i)) * 31, 31)) * 31, 31, this.m), 31, this.n), 31, this.f85o), 31, this.p);
        boolean z = this.q;
        int i = z;
        if (z != 0) {
            i = 1;
        }
        return Integer.hashCode(this.w) + AbstractC0126Ew.e(this.v, AbstractC0126Ew.f(AbstractC0126Ew.e(this.t, AbstractC0126Ew.e(this.s, (AbstractC2462sn.w(this.r) + ((iF + i) * 31)) * 31, 31), 31), 31, this.u), 31);
    }

    public final String toString() {
        return AbstractC0126Ew.n(new StringBuilder("{WorkSpec: "), this.a, '}');
    }

    public /* synthetic */ Dm0(String str, int i, String str2, String str3, C0585Wo c0585Wo, C0585Wo c0585Wo2, long j, long j2, long j3, C0608Xl c0608Xl, int i2, int i3, long j4, long j5, long j6, long j7, boolean z, int i4, int i5, long j8, int i6, int i7, int i8) {
        this(str, (i8 & 2) != 0 ? 1 : i, str2, (i8 & 8) != 0 ? OverwritingInputMerger.class.getName() : str3, (i8 & 16) != 0 ? C0585Wo.b : c0585Wo, (i8 & 32) != 0 ? C0585Wo.b : c0585Wo2, (i8 & 64) != 0 ? 0L : j, (i8 & 128) != 0 ? 0L : j2, (i8 & 256) != 0 ? 0L : j3, (i8 & 512) != 0 ? C0608Xl.i : c0608Xl, (i8 & 1024) != 0 ? 0 : i2, (i8 & 2048) != 0 ? 1 : i3, (i8 & 4096) != 0 ? 30000L : j4, (i8 & 8192) != 0 ? -1L : j5, (i8 & 16384) == 0 ? j6 : 0L, (32768 & i8) != 0 ? -1L : j7, (65536 & i8) != 0 ? false : z, (131072 & i8) != 0 ? 1 : i4, (262144 & i8) != 0 ? 0 : i5, 0, (1048576 & i8) != 0 ? Long.MAX_VALUE : j8, (2097152 & i8) != 0 ? 0 : i6, (i8 & 4194304) != 0 ? -256 : i7);
    }
}
