package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class JR {
    public NR a;
    public NR b;
    public AbstractC0706aK c = new U4(16, this);
    public InterfaceC0065Cn d;

    /* JADX WARN: Code restructure failed: missing block: B:28:0x005c, code lost:
    
        if (r15 == r7) goto L39;
     */
    /* JADX WARN: Code restructure failed: missing block: B:38:0x0080, code lost:
    
        if (r15 == r7) goto L39;
     */
    /* JADX WARN: Code restructure failed: missing block: B:39:0x0082, code lost:
    
        return r7;
     */
    /* JADX WARN: Removed duplicated region for block: B:8:0x0014  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final java.lang.Object a(long r11, long r13, o.AbstractC0298Lm r15) {
        /*
            r10 = this;
            boolean r0 = r15 instanceof o.HR
            if (r0 == 0) goto L14
            r0 = r15
            o.HR r0 = (o.HR) r0
            int r1 = r0.q
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L14
            int r1 = r1 - r2
            r0.q = r1
        L12:
            r6 = r0
            goto L1a
        L14:
            o.HR r0 = new o.HR
            r0.<init>(r10, r15)
            goto L12
        L1a:
            java.lang.Object r15 = r6.f145o
            int r0 = r6.q
            r1 = 2
            r2 = 1
            if (r0 == 0) goto L36
            if (r0 == r2) goto L32
            if (r0 != r1) goto L2a
            o.IJ.H(r15)
            goto L83
        L2a:
            java.lang.IllegalStateException r11 = new java.lang.IllegalStateException
            java.lang.String r12 = "call to 'resume' before 'invoke' with coroutine"
            r11.<init>(r12)
            throw r11
        L32:
            o.IJ.H(r15)
            goto L5f
        L36:
            o.IJ.H(r15)
            o.NR r15 = r10.a
            r0 = 0
            if (r15 == 0) goto L49
            boolean r3 = r15.y
            if (r3 == 0) goto L49
            o.Xg0 r15 = o.YT.v(r15)
            o.NR r15 = (o.NR) r15
            goto L4a
        L49:
            r15 = r0
        L4a:
            r3 = 0
            o.Dn r7 = o.EnumC0091Dn.l
            if (r15 != 0) goto L64
            o.NR r1 = r10.b
            if (r1 == 0) goto L89
            r6.q = r2
            r2 = r11
            r4 = r13
            java.lang.Object r15 = r1.j(r2, r4, r6)
            if (r15 != r7) goto L5f
            goto L82
        L5f:
            o.lj0 r15 = (o.C1791lj0) r15
            long r3 = r15.a
            goto L89
        L64:
            r8 = r3
            r2 = r11
            r11 = r8
            r4 = r13
            o.NR r13 = r10.a
            if (r13 == 0) goto L77
            boolean r14 = r13.y
            if (r14 == 0) goto L77
            o.Xg0 r13 = o.YT.v(r13)
            r0 = r13
            o.NR r0 = (o.NR) r0
        L77:
            if (r0 == 0) goto L88
            r6.q = r1
            r1 = r0
            java.lang.Object r15 = r1.j(r2, r4, r6)
            if (r15 != r7) goto L83
        L82:
            return r7
        L83:
            o.lj0 r15 = (o.C1791lj0) r15
            long r3 = r15.a
            goto L89
        L88:
            r3 = r11
        L89:
            o.lj0 r11 = new o.lj0
            r11.<init>(r3)
            return r11
        */
        throw new UnsupportedOperationException("Method not decompiled: o.JR.a(long, long, o.Lm):java.lang.Object");
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final java.lang.Object b(long r5, o.AbstractC0298Lm r7) {
        /*
            r4 = this;
            boolean r0 = r7 instanceof o.IR
            if (r0 == 0) goto L13
            r0 = r7
            o.IR r0 = (o.IR) r0
            int r1 = r0.q
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L13
            int r1 = r1 - r2
            r0.q = r1
            goto L18
        L13:
            o.IR r0 = new o.IR
            r0.<init>(r4, r7)
        L18:
            java.lang.Object r7 = r0.f159o
            int r1 = r0.q
            r2 = 1
            if (r1 == 0) goto L2d
            if (r1 != r2) goto L25
            o.IJ.H(r7)
            goto L4d
        L25:
            java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
            java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
            r5.<init>(r6)
            throw r5
        L2d:
            o.IJ.H(r7)
            o.NR r7 = r4.a
            r1 = 0
            if (r7 == 0) goto L40
            boolean r3 = r7.y
            if (r3 == 0) goto L40
            o.Xg0 r7 = o.YT.v(r7)
            r1 = r7
            o.NR r1 = (o.NR) r1
        L40:
            if (r1 == 0) goto L52
            r0.q = r2
            java.lang.Object r7 = r1.V(r5, r0)
            o.Dn r5 = o.EnumC0091Dn.l
            if (r7 != r5) goto L4d
            return r5
        L4d:
            o.lj0 r7 = (o.C1791lj0) r7
            long r5 = r7.a
            goto L54
        L52:
            r5 = 0
        L54:
            o.lj0 r7 = new o.lj0
            r7.<init>(r5)
            return r7
        */
        throw new UnsupportedOperationException("Method not decompiled: o.JR.b(long, o.Lm):java.lang.Object");
    }

    /* JADX WARN: Type inference failed for: r0v0, types: [o.NC, o.aK] */
    public final InterfaceC0065Cn c() {
        InterfaceC0065Cn interfaceC0065Cn = (InterfaceC0065Cn) this.c.a();
        if (interfaceC0065Cn != null) {
            return interfaceC0065Cn;
        }
        throw new IllegalStateException("in order to access nested coroutine scope you need to attach dispatcher to the `Modifier.nestedScroll` first.");
    }
}
