package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Ap, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0015Ap extends Sb0 implements SC {
    public C3058z10 p;
    public int q;
    public /* synthetic */ Object r;
    public final /* synthetic */ C3058z10 s;
    public final /* synthetic */ C0041Bp t;
    public final /* synthetic */ Object u;
    public final /* synthetic */ boolean v;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0015Ap(C3058z10 c3058z10, C0041Bp c0041Bp, Object obj, boolean z, InterfaceC0220Im interfaceC0220Im) {
        super(2, interfaceC0220Im);
        this.s = c3058z10;
        this.t = c0041Bp;
        this.u = obj;
        this.v = z;
    }

    @Override // o.SC
    public final Object f(Object obj, Object obj2) {
        return ((C0015Ap) l((C1913my) obj, (InterfaceC0220Im) obj2)).n(Oh0.a);
    }

    @Override // o.AbstractC0728ad
    public final InterfaceC0220Im l(Object obj, InterfaceC0220Im interfaceC0220Im) {
        C0015Ap c0015Ap = new C0015Ap(this.s, this.t, this.u, this.v, interfaceC0220Im);
        c0015Ap.r = obj;
        return c0015Ap;
    }

    /* JADX WARN: Code restructure failed: missing block: B:15:0x0056, code lost:
    
        if (r5.b(r1, r7) == r6) goto L16;
     */
    @Override // o.AbstractC0728ad
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final java.lang.Object n(java.lang.Object r8) {
        /*
            r7 = this;
            int r0 = r7.q
            java.lang.Object r1 = r7.u
            o.Bp r2 = r7.t
            o.z10 r3 = r7.s
            r4 = 2
            r5 = 1
            o.Dn r6 = o.EnumC0091Dn.l
            if (r0 == 0) goto L28
            if (r0 == r5) goto L1e
            if (r0 != r4) goto L16
            o.IJ.H(r8)
            goto L59
        L16:
            java.lang.IllegalStateException r8 = new java.lang.IllegalStateException
            java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine"
            r8.<init>(r0)
            throw r8
        L1e:
            o.z10 r0 = r7.p
            java.lang.Object r5 = r7.r
            o.my r5 = (o.C1913my) r5
            o.IJ.H(r8)
            goto L43
        L28:
            o.IJ.H(r8)
            java.lang.Object r8 = r7.r
            o.my r8 = (o.C1913my) r8
            o.lI r0 = r2.h()
            r7.r = r8
            r7.p = r3
            r7.q = r5
            java.lang.Object r0 = r0.e(r7)
            if (r0 != r6) goto L40
            goto L58
        L40:
            r5 = r8
            r8 = r0
            r0 = r3
        L43:
            java.lang.Number r8 = (java.lang.Number) r8
            int r8 = r8.intValue()
            r0.l = r8
            r8 = 0
            r7.r = r8
            r7.p = r8
            r7.q = r4
            java.lang.Object r8 = r5.b(r1, r7)
            if (r8 != r6) goto L59
        L58:
            return r6
        L59:
            boolean r8 = r7.v
            if (r8 == 0) goto L71
            o.Jn r8 = r2.h
            o.Xo r0 = new o.Xo
            if (r1 == 0) goto L68
            int r2 = r1.hashCode()
            goto L69
        L68:
            r2 = 0
        L69:
            int r3 = r3.l
            r0.<init>(r2, r3, r1)
            r8.x(r0)
        L71:
            o.Oh0 r8 = o.Oh0.a
            return r8
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0015Ap.n(java.lang.Object):java.lang.Object");
    }
}
