package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class W5 extends Sb0 implements SC {
    public int p;
    public final /* synthetic */ boolean q;
    public final /* synthetic */ Z5 r;
    public final /* synthetic */ long s;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public W5(boolean z, Z5 z5, long j, InterfaceC0220Im interfaceC0220Im) {
        super(2, interfaceC0220Im);
        this.q = z;
        this.r = z5;
        this.s = j;
    }

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

    @Override // o.AbstractC0728ad
    public final InterfaceC0220Im l(Object obj, InterfaceC0220Im interfaceC0220Im) {
        return new W5(this.q, this.r, this.s, interfaceC0220Im);
    }

    /* JADX WARN: Code restructure failed: missing block: B:13:0x0033, code lost:
    
        if (r11 == r3) goto L18;
     */
    /* JADX WARN: Code restructure failed: missing block: B:17:0x0049, code lost:
    
        if (r11 == r3) goto L18;
     */
    @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 r11) {
        /*
            r10 = this;
            int r0 = r10.p
            r1 = 2
            r2 = 1
            if (r0 == 0) goto L1b
            if (r0 == r2) goto L16
            if (r0 != r1) goto Le
            o.IJ.H(r11)
            goto L4c
        Le:
            java.lang.IllegalStateException r11 = new java.lang.IllegalStateException
            java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine"
            r11.<init>(r0)
            throw r11
        L16:
            o.IJ.H(r11)
            r9 = r10
            goto L36
        L1b:
            o.IJ.H(r11)
            boolean r11 = r10.q
            o.Z5 r0 = r10.r
            o.Dn r3 = o.EnumC0091Dn.l
            if (r11 != 0) goto L3c
            o.JR r4 = r0.l
            r10.p = r2
            r5 = 0
            long r7 = r10.s
            r9 = r10
            java.lang.Object r11 = r4.a(r5, r7, r9)
            if (r11 != r3) goto L36
            goto L4b
        L36:
            o.lj0 r11 = (o.C1791lj0) r11
            r11.getClass()
            goto L51
        L3c:
            r9 = r10
            o.JR r4 = r0.l
            r9.p = r1
            long r5 = r9.s
            r7 = 0
            java.lang.Object r11 = r4.a(r5, r7, r9)
            if (r11 != r3) goto L4c
        L4b:
            return r3
        L4c:
            o.lj0 r11 = (o.C1791lj0) r11
            r11.getClass()
        L51:
            o.Oh0 r11 = o.Oh0.a
            return r11
        */
        throw new UnsupportedOperationException("Method not decompiled: o.W5.n(java.lang.Object):java.lang.Object");
    }
}
