package defpackage;

import android.util.Log;
import j$.util.Objects;
import java.io.IOException;
import java.util.Map;

/* JADX INFO: renamed from: ᵕˏˊᵫ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C2319 {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final C0871 f9117;

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public C1918 f9118;

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final C2298 f9119;

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public final InterfaceC2389 f9120;

    /* JADX INFO: renamed from: ᵱᵽʡᵚ, reason: contains not printable characters */
    public boolean f9121;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final C0414 f9122;

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public final InterfaceC3822 f9123;

    /* JADX INFO: renamed from: ᵶᵥᵝ, reason: contains not printable characters */
    public String f9124 = "";

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final C1826 f9125;

    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public boolean f9126;

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public final C5278 f9127;

    public C2319(C0414 c0414, C0871 c0871, C2298 c2298, C1826 c1826, InterfaceC2389 interfaceC2389, C5278 c5278, InterfaceC3822 interfaceC3822) {
        this.f9122 = c0414;
        this.f9117 = c0871;
        this.f9119 = c2298;
        this.f9125 = c1826;
        this.f9120 = interfaceC2389;
        this.f9127 = c5278;
        this.f9123 = interfaceC3822;
        ᵲᵧˇ.ᵱʡˏ(ˋˀᵧ.ᵲᵶᵳˈ(interfaceC3822), (InterfaceC3822) null, 0, new C5100(this, null, 0), 3);
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final Object m5963(C2319 c2319, String str, EnumC3101 enumC3101, InterfaceC2643 interfaceC2643) {
        C1870 c1870;
        if (interfaceC2643 instanceof C1870) {
            c1870 = (C1870) interfaceC2643;
            int i = c1870.f7407;
            if ((i & Integer.MIN_VALUE) != 0) {
                c1870.f7407 = i - Integer.MIN_VALUE;
            } else {
                c1870 = new C1870(c2319, interfaceC2643);
            }
        }
        Object objM3617 = c1870.f7410;
        EnumC0111 enumC0111 = EnumC0111.f1384;
        int i2 = c1870.f7407;
        if (i2 == 0) {
            ᵟˌᵫ.ˊˌˊ(objM3617);
            if (ᵥˈᵛ.ˊᵫᵗ(c2319.f9124, str)) {
                return C5063.f19112;
            }
            c2319.f9124 = str;
            C1129 c1129 = C1129.f4829;
            c1870.f7408 = str;
            c1870.f7409 = enumC3101;
            c1870.f7407 = 1;
            objM3617 = c1129.m3617(c1870);
            if (objM3617 == enumC0111) {
                return enumC0111;
            }
        } else {
            if (i2 != 1) {
                ᵕᵩʽᵲ.ᵪᵹᵥᵻ("call to 'resume' before 'invoke' with coroutine");
                return null;
            }
            enumC3101 = c1870.f7409;
            str = c1870.f7408;
            ᵟˌᵫ.ˊˌˊ(objM3617);
        }
        for (C1679 c1679 : ((Map) objM3617).values()) {
            C2968 c2968 = new C2968(str);
            c1679.getClass();
            Objects.toString(c2968);
            Log.isLoggable("FirebaseCrashlytics", 3);
            ᵣˊˈᵪ r8 = c1679.f6624;
            synchronized (r8) {
                if (!Objects.equals((String) r8.ᵨᵼⁱ, str)) {
                    ˁᵦ r0 = (ˁᵦ) r8.ᵜᵪʾ;
                    String str2 = (String) r8.ᵔᵖᵹᵫ;
                    if (str2 != null) {
                        try {
                            r0.ᵷᵺʾᵖ(str2, "aqs.".concat(str)).createNewFile();
                        } catch (IOException unused) {
                        }
                    }
                    r8.ᵨᵼⁱ = str;
                }
            }
            int iOrdinal = enumC3101.ordinal();
            if (iOrdinal == 0) {
                EnumC5466.f20696.toString();
            } else {
                if (iOrdinal != 1) {
                    C1685.m4561();
                    return null;
                }
                EnumC5466.f20696.toString();
            }
        }
        return C5063.f19112;
    }

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final void m5964() {
        this.f9126 = false;
        if (this.f9118 == null) {
            return;
        }
        this.f9127.m10871();
        ᵲᵧˇ.ᵱʡˏ(ˋˀᵧ.ᵲᵶᵳˈ(this.f9123), (InterfaceC3822) null, 0, new C5100(this, null, 1), 3);
    }

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final void m5965() {
        this.f9126 = true;
        C1918 c1918 = this.f9118;
        if (c1918 == null) {
            this.f9121 = true;
            return;
        }
        this.f9127.m10871();
        if (m5966(c1918) || m5967(c1918)) {
            ᵲᵧˇ.ᵱʡˏ(ˋˀᵧ.ᵲᵶᵳˈ(this.f9123), (InterfaceC3822) null, 0, new ᵡᵥ(this, c1918, (InterfaceC2643) null, 28), 3);
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:11:0x0036  */
    /* JADX WARN: Removed duplicated region for block: B:18:0x004b  */
    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final boolean m5966(C1918 c1918) {
        long jM2546;
        C2656 c2656 = c1918.f7627;
        C3598 c3598 = c1918.f7629;
        if (c2656 == null) {
            String str = c3598.f13707;
            return false;
        }
        this.f9125.getClass();
        C2656 c2656M5009 = C1826.m5009();
        ˉᵠﹳᵘ r3 = C0918.f4028;
        long jM2524 = AbstractC0702.m2524(c2656M5009.f10293 - c2656.f10293, EnumC1893.MILLISECONDS);
        C0414 c0414 = this.f9122;
        C0918 c0918Mo2181 = c0414.f2325.mo2181();
        if (c0918Mo2181 != null) {
            jM2546 = c0918Mo2181.f4030;
            if (jM2546 <= 0 || C0918.m3165(jM2546)) {
                C0918 c0918Mo21812 = c0414.f2324.mo2181();
                if (c0918Mo21812 != null) {
                    jM2546 = c0918Mo21812.f4030;
                    if (jM2546 <= 0 || C0918.m3165(jM2546)) {
                        jM2546 = AbstractC0702.m2546(30, EnumC1893.MINUTES);
                    }
                }
            }
        }
        boolean z = C0918.m3162(jM2524, jM2546) > 0;
        if (z) {
            String str2 = c3598.f13707;
        }
        return z;
    }

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final boolean m5967(C1918 c1918) {
        Map map = c1918.f7628;
        boolean z = true;
        C5278 c5278 = this.f9127;
        if (map == null) {
            c5278.m10871();
            return true;
        }
        C0715 c0715 = (C0715) map.get(c5278.m10871());
        if (c0715 != null && c0715.f3254 == c5278.f19929 && ᵥˈᵛ.ˊᵫᵗ(c0715.f3253, (String) c5278.f19932.getValue())) {
            z = false;
        }
        if (z) {
            c5278.m10871();
        }
        return z;
    }
}
