package defpackage;

import android.os.SystemClock;
import android.util.Log;
import j$.util.Objects;
import java.util.Collections;

/* renamed from: ᵻʽᵺᐧ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C5175 implements InterfaceC4672, InterfaceC2983 {

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public volatile C2661 f19267;

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public volatile C1370 f19268;

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final RunnableC2904 f19269;

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public volatile Object f19270;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final C1101 f19271;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public volatile C2071 f19272;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public volatile int f19273;

    public C5175(C1101 c1101, RunnableC2904 runnableC2904) {
        this.f19271 = c1101;
        this.f19269 = runnableC2904;
    }

    @Override // defpackage.InterfaceC4672
    public final void cancel() {
        C1370 c1370 = this.f19268;
        if (c1370 != null) {
            c1370.f5643.cancel();
        }
    }

    @Override // defpackage.InterfaceC2983
    /* renamed from: ˏᵙ */
    public final void mo7086(InterfaceC4207 interfaceC4207, Exception exc, InterfaceC2918 interfaceC2918, int i) {
        this.f19269.mo7086(interfaceC4207, exc, interfaceC2918, this.f19268.f5643.mo5388());
    }

    /* JADX WARN: Removed duplicated region for block: B:9:0x0017  */
    @Override // defpackage.InterfaceC4672
    /* renamed from: ᵥᵯˎ */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final boolean mo3178() {
        /*
            r7 = this;
            java.lang.Object r0 = r7.f19270
            r1 = 0
            r2 = 1
            if (r0 == 0) goto L17
            java.lang.Object r0 = r7.f19270
            r7.f19270 = r1
            boolean r0 = r7.m10679(r0)     // Catch: java.io.IOException -> L11
            if (r0 != 0) goto L17
            goto L23
        L11:
            java.lang.String r0 = "SourceGenerator"
            r3 = 3
            android.util.Log.isLoggable(r0, r3)
        L17:
            ˑᵗʖﹳ r0 = r7.f19272
            if (r0 == 0) goto L24
            ˑᵗʖﹳ r0 = r7.f19272
            boolean r0 = r0.mo3178()
            if (r0 == 0) goto L24
        L23:
            return r2
        L24:
            r7.f19272 = r1
            r7.f19268 = r1
            r0 = 0
        L29:
            if (r0 != 0) goto L8a
            int r1 = r7.f19273
            ˈᵳʽ r3 = r7.f19271
            java.util.ArrayList r3 = r3.m3502()
            int r3 = r3.size()
            if (r1 >= r3) goto L8a
            ˈᵳʽ r1 = r7.f19271
            java.util.ArrayList r1 = r1.m3502()
            int r3 = r7.f19273
            int r4 = r3 + 1
            r7.f19273 = r4
            java.lang.Object r1 = r1.get(r3)
            ˊᵥᐧᵤ r1 = (defpackage.C1370) r1
            r7.f19268 = r1
            ˊᵥᐧᵤ r1 = r7.f19268
            if (r1 == 0) goto L29
            ˈᵳʽ r1 = r7.f19271
            ᵢﹶ r1 = r1.f4722
            ˊᵥᐧᵤ r3 = r7.f19268
            ᵝᵦˊᵼ r3 = r3.f5643
            int r3 = r3.mo5388()
            boolean r1 = r1.m7705(r3)
            if (r1 != 0) goto L73
            ˈᵳʽ r1 = r7.f19271
            ˊᵥᐧᵤ r3 = r7.f19268
            ᵝᵦˊᵼ r3 = r3.f5643
            java.lang.Class r3 = r3.mo1817()
            ᵴʾˈ r1 = r1.m3500(r3)
            if (r1 == 0) goto L29
        L73:
            ˊᵥᐧᵤ r0 = r7.f19268
            ˊᵥᐧᵤ r1 = r7.f19268
            ᵝᵦˊᵼ r1 = r1.f5643
            ˈᵳʽ r3 = r7.f19271
            ᵿـ r3 = r3.f4732
            ﹳʾ r4 = new ﹳʾ
            r5 = 23
            r6 = 0
            r4.<init>(r5, r7, r0, r6)
            r1.mo5387(r3, r4)
            r0 = r2
            goto L29
        L8a:
            return r0
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C5175.mo3178():boolean");
    }

    @Override // defpackage.InterfaceC2983
    /* renamed from: ᵴᵳ */
    public final void mo7092(InterfaceC4207 interfaceC4207, Object obj, InterfaceC2918 interfaceC2918, int i, InterfaceC4207 interfaceC42072) {
        this.f19269.mo7092(interfaceC4207, obj, interfaceC2918, this.f19268.f5643.mo5388(), interfaceC4207);
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final boolean m10679(Object obj) throws Throwable {
        Throwable th;
        int i = AbstractC4846.f17991;
        SystemClock.elapsedRealtimeNanos();
        boolean z = false;
        try {
            InterfaceC2986 interfaceC2986M8177 = this.f19271.f4726.m2233().m8177(obj);
            Object objMo793 = interfaceC2986M8177.mo793();
            InterfaceC0443 interfaceC0443M3503 = this.f19271.m3503(objMo793);
            ʽᵡ r5 = new ʽᵡ(interfaceC0443M3503, objMo793, this.f19271.f4727, 12);
            InterfaceC4207 interfaceC4207 = this.f19268.f5644;
            C1101 c1101 = this.f19271;
            C2661 c2661 = new C2661(interfaceC4207, c1101.f4730);
            InterfaceC4138 interfaceC4138M1591 = c1101.f4737.m1591();
            interfaceC4138M1591.mo6927(c2661, r5);
            if (Log.isLoggable("SourceGenerator", 2)) {
                c2661.toString();
                obj.toString();
                interfaceC0443M3503.toString();
                SystemClock.elapsedRealtimeNanos();
            }
            if (interfaceC4138M1591.mo6925(c2661) != null) {
                this.f19267 = c2661;
                this.f19272 = new C2071(Collections.singletonList(this.f19268.f5644), this.f19271, this);
                this.f19268.f5643.mo5389();
                return true;
            }
            if (Log.isLoggable("SourceGenerator", 3)) {
                Objects.toString(this.f19267);
                obj.toString();
            }
            try {
                this.f19269.mo7092(this.f19268.f5644, interfaceC2986M8177.mo793(), this.f19268.f5643, this.f19268.f5643.mo5388(), this.f19268.f5644);
                return false;
            } catch (Throwable th2) {
                th = th2;
                z = true;
                if (z) {
                    throw th;
                }
                this.f19268.f5643.mo5389();
                throw th;
            }
        } catch (Throwable th3) {
            th = th3;
        }
    }
}
