package p037.p123.p124.p133;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import p037.p052.p053.p056.InterfaceC1713;
import p037.p123.AbstractC2562;
import p037.p123.C2547;
import p037.p123.C2552;
import p037.p123.C2578;
import p037.p123.EnumC2543;
import p138.p139.p143.p144.C2803;

/* JADX INFO: renamed from: މ.ޗ.ޘ.ޏ.ލ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C2676 {

    /* JADX INFO: renamed from: ޏ, reason: contains not printable characters */
    public static final String f8318 = AbstractC2562.m4622("WorkSpec");

    /* JADX INFO: renamed from: ސ, reason: contains not printable characters */
    public static final InterfaceC1713<List<C2679>, List<C2578>> f8319 = new C2677();

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public String f8320;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public C2578.EnumC2579 f8321;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public String f8322;

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public String f8323;

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public C2552 f8324;

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public C2552 f8325;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public long f8326;

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public long f8327;

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public long f8328;

    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public C2547 f8329;

    /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
    public int f8330;

    /* JADX INFO: renamed from: މ, reason: contains not printable characters */
    public EnumC2543 f8331;

    /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
    public long f8332;

    /* JADX INFO: renamed from: ދ, reason: contains not printable characters */
    public long f8333;

    /* JADX INFO: renamed from: ތ, reason: contains not printable characters */
    public long f8334;

    /* JADX INFO: renamed from: ލ, reason: contains not printable characters */
    public long f8335;

    /* JADX INFO: renamed from: ގ, reason: contains not printable characters */
    public boolean f8336;

    /* JADX INFO: renamed from: މ.ޗ.ޘ.ޏ.ލ$֏, reason: contains not printable characters */
    public class C2677 implements InterfaceC1713<List<C2679>, List<C2578>> {
        @Override // p037.p052.p053.p056.InterfaceC1713
        /* JADX INFO: renamed from: ֏ */
        public List<C2578> mo260(List<C2679> list) {
            List<C2679> list2 = list;
            if (list2 == null) {
                return null;
            }
            ArrayList arrayList = new ArrayList(list2.size());
            for (C2679 c2679 : list2) {
                List<C2552> list3 = c2679.f8344;
                arrayList.add(new C2578(UUID.fromString(c2679.f8339), c2679.f8340, c2679.f8341, c2679.f8343, (list3 == null || list3.isEmpty()) ? C2552.f8047 : c2679.f8344.get(0), c2679.f8342));
            }
            return arrayList;
        }
    }

    /* JADX INFO: renamed from: މ.ޗ.ޘ.ޏ.ލ$ؠ, reason: contains not printable characters */
    public static class C2678 {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public String f8337;

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public C2578.EnumC2579 f8338;

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof C2678)) {
                return false;
            }
            C2678 c2678 = (C2678) obj;
            if (this.f8338 != c2678.f8338) {
                return false;
            }
            return this.f8337.equals(c2678.f8337);
        }

        public int hashCode() {
            return this.f8338.hashCode() + (this.f8337.hashCode() * 31);
        }
    }

    /* JADX INFO: renamed from: މ.ޗ.ޘ.ޏ.ލ$ހ, reason: contains not printable characters */
    public static class C2679 {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public String f8339;

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public C2578.EnumC2579 f8340;

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public C2552 f8341;

        /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
        public int f8342;

        /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
        public List<String> f8343;

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public List<C2552> f8344;

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof C2679)) {
                return false;
            }
            C2679 c2679 = (C2679) obj;
            if (this.f8342 != c2679.f8342) {
                return false;
            }
            String str = this.f8339;
            if (str == null ? c2679.f8339 != null : !str.equals(c2679.f8339)) {
                return false;
            }
            if (this.f8340 != c2679.f8340) {
                return false;
            }
            C2552 c2552 = this.f8341;
            if (c2552 == null ? c2679.f8341 != null : !c2552.equals(c2679.f8341)) {
                return false;
            }
            List<String> list = this.f8343;
            if (list == null ? c2679.f8343 != null : !list.equals(c2679.f8343)) {
                return false;
            }
            List<C2552> list2 = this.f8344;
            List<C2552> list3 = c2679.f8344;
            return list2 != null ? list2.equals(list3) : list3 == null;
        }

        public int hashCode() {
            String str = this.f8339;
            int iHashCode = (str != null ? str.hashCode() : 0) * 31;
            C2578.EnumC2579 enumC2579 = this.f8340;
            int iHashCode2 = (iHashCode + (enumC2579 != null ? enumC2579.hashCode() : 0)) * 31;
            C2552 c2552 = this.f8341;
            int iHashCode3 = (((iHashCode2 + (c2552 != null ? c2552.hashCode() : 0)) * 31) + this.f8342) * 31;
            List<String> list = this.f8343;
            int iHashCode4 = (iHashCode3 + (list != null ? list.hashCode() : 0)) * 31;
            List<C2552> list2 = this.f8344;
            return iHashCode4 + (list2 != null ? list2.hashCode() : 0);
        }
    }

    public C2676(String str, String str2) {
        this.f8321 = C2578.EnumC2579.ENQUEUED;
        C2552 c2552 = C2552.f8047;
        this.f8324 = c2552;
        this.f8325 = c2552;
        this.f8329 = C2547.f8024;
        this.f8331 = EnumC2543.EXPONENTIAL;
        this.f8332 = 30000L;
        this.f8335 = -1L;
        this.f8320 = str;
        this.f8322 = str2;
    }

    public C2676(C2676 c2676) {
        this.f8321 = C2578.EnumC2579.ENQUEUED;
        C2552 c2552 = C2552.f8047;
        this.f8324 = c2552;
        this.f8325 = c2552;
        this.f8329 = C2547.f8024;
        this.f8331 = EnumC2543.EXPONENTIAL;
        this.f8332 = 30000L;
        this.f8335 = -1L;
        this.f8320 = c2676.f8320;
        this.f8322 = c2676.f8322;
        this.f8321 = c2676.f8321;
        this.f8323 = c2676.f8323;
        this.f8324 = new C2552(c2676.f8324);
        this.f8325 = new C2552(c2676.f8325);
        this.f8326 = c2676.f8326;
        this.f8327 = c2676.f8327;
        this.f8328 = c2676.f8328;
        this.f8329 = new C2547(c2676.f8329);
        this.f8330 = c2676.f8330;
        this.f8331 = c2676.f8331;
        this.f8332 = c2676.f8332;
        this.f8333 = c2676.f8333;
        this.f8334 = c2676.f8334;
        this.f8335 = c2676.f8335;
        this.f8336 = c2676.f8336;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof C2676)) {
            return false;
        }
        C2676 c2676 = (C2676) obj;
        if (this.f8326 != c2676.f8326 || this.f8327 != c2676.f8327 || this.f8328 != c2676.f8328 || this.f8330 != c2676.f8330 || this.f8332 != c2676.f8332 || this.f8333 != c2676.f8333 || this.f8334 != c2676.f8334 || this.f8335 != c2676.f8335 || this.f8336 != c2676.f8336 || !this.f8320.equals(c2676.f8320) || this.f8321 != c2676.f8321 || !this.f8322.equals(c2676.f8322)) {
            return false;
        }
        String str = this.f8323;
        if (str == null ? c2676.f8323 == null : str.equals(c2676.f8323)) {
            return this.f8324.equals(c2676.f8324) && this.f8325.equals(c2676.f8325) && this.f8329.equals(c2676.f8329) && this.f8331 == c2676.f8331;
        }
        return false;
    }

    public int hashCode() {
        int iHashCode = (this.f8322.hashCode() + ((this.f8321.hashCode() + (this.f8320.hashCode() * 31)) * 31)) * 31;
        String str = this.f8323;
        int iHashCode2 = (this.f8325.hashCode() + ((this.f8324.hashCode() + ((iHashCode + (str != null ? str.hashCode() : 0)) * 31)) * 31)) * 31;
        long j = this.f8326;
        int i = (iHashCode2 + ((int) (j ^ (j >>> 32)))) * 31;
        long j2 = this.f8327;
        int i2 = (i + ((int) (j2 ^ (j2 >>> 32)))) * 31;
        long j3 = this.f8328;
        int iHashCode3 = (this.f8331.hashCode() + ((((this.f8329.hashCode() + ((i2 + ((int) (j3 ^ (j3 >>> 32)))) * 31)) * 31) + this.f8330) * 31)) * 31;
        long j4 = this.f8332;
        int i3 = (iHashCode3 + ((int) (j4 ^ (j4 >>> 32)))) * 31;
        long j5 = this.f8333;
        int i4 = (i3 + ((int) (j5 ^ (j5 >>> 32)))) * 31;
        long j6 = this.f8334;
        int i5 = (i4 + ((int) (j6 ^ (j6 >>> 32)))) * 31;
        long j7 = this.f8335;
        return ((i5 + ((int) (j7 ^ (j7 >>> 32)))) * 31) + (this.f8336 ? 1 : 0);
    }

    public String toString() {
        return C2803.m4884(C2803.m4889("{WorkSpec: "), this.f8320, "}");
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public long m4744() {
        long jCurrentTimeMillis;
        long j;
        if (this.f8321 == C2578.EnumC2579.ENQUEUED && this.f8330 > 0) {
            long jScalb = this.f8331 == EnumC2543.LINEAR ? this.f8332 * ((long) this.f8330) : (long) Math.scalb(this.f8332, this.f8330 - 1);
            j = this.f8333;
            jCurrentTimeMillis = Math.min(18000000L, jScalb);
        } else {
            if (m4746()) {
                long jCurrentTimeMillis2 = System.currentTimeMillis();
                long j2 = this.f8333;
                if (j2 == 0) {
                    j2 = this.f8326 + jCurrentTimeMillis2;
                }
                if (this.f8328 != this.f8327) {
                    return j2 + this.f8327 + (this.f8333 == 0 ? this.f8328 * (-1) : 0L);
                }
                return j2 + (this.f8333 != 0 ? this.f8327 : 0L);
            }
            jCurrentTimeMillis = this.f8333;
            if (jCurrentTimeMillis == 0) {
                jCurrentTimeMillis = System.currentTimeMillis();
            }
            j = this.f8326;
        }
        return jCurrentTimeMillis + j;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public boolean m4745() {
        return !C2547.f8024.equals(this.f8329);
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public boolean m4746() {
        return this.f8327 != 0;
    }
}
