package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.bR, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0809bR extends G20 implements SC {
    public FD n;

    /* renamed from: o, reason: collision with root package name */
    public C0904cR f457o;
    public long[] p;
    public int q;
    public int r;
    public int s;
    public int t;
    public long u;
    public int v;
    public /* synthetic */ Object w;
    public final /* synthetic */ C0904cR x;
    public final /* synthetic */ FD y;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0809bR(C0904cR c0904cR, FD fd, InterfaceC0220Im interfaceC0220Im) {
        super(2, interfaceC0220Im);
        this.x = c0904cR;
        this.y = fd;
    }

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

    @Override // o.AbstractC0728ad
    public final InterfaceC0220Im l(Object obj, InterfaceC0220Im interfaceC0220Im) {
        C0809bR c0809bR = new C0809bR(this.x, this.y, interfaceC0220Im);
        c0809bR.w = obj;
        return c0809bR;
    }

    /* JADX WARN: Removed duplicated region for block: B:13:0x0052  */
    /* JADX WARN: Removed duplicated region for block: B:15:0x0067  */
    /* JADX WARN: Removed duplicated region for block: B:20:0x0098  */
    /* JADX WARN: Removed duplicated region for block: B:23:0x00a2  */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:12:0x0050 -> B:22:0x00a0). Please report as a decompilation issue!!! */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:13:0x0052 -> B:14:0x0065). Please report as a decompilation issue!!! */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:16:0x006e -> B:19:0x0095). Please report as a decompilation issue!!! */
    @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 r21) {
        /*
            r20 = this;
            r0 = r20
            int r1 = r0.v
            r2 = 0
            r3 = 8
            r4 = 1
            if (r1 == 0) goto L2d
            if (r1 != r4) goto L25
            int r1 = r0.t
            int r5 = r0.s
            long r6 = r0.u
            int r8 = r0.r
            int r9 = r0.q
            long[] r10 = r0.p
            o.cR r11 = r0.f457o
            o.FD r12 = r0.n
            java.lang.Object r13 = r0.w
            o.G60 r13 = (o.G60) r13
            o.IJ.H(r21)
            goto L95
        L25:
            java.lang.IllegalStateException r1 = new java.lang.IllegalStateException
            java.lang.String r2 = "call to 'resume' before 'invoke' with coroutine"
            r1.<init>(r2)
            throw r1
        L2d:
            o.IJ.H(r21)
            java.lang.Object r1 = r0.w
            o.G60 r1 = (o.G60) r1
            o.cR r5 = r0.x
            o.aR r6 = r5.m
            long[] r6 = r6.a
            int r7 = r6.length
            int r7 = r7 + (-2)
            if (r7 < 0) goto La5
            o.FD r8 = r0.y
            r9 = r2
        L42:
            r10 = r6[r9]
            long r12 = ~r10
            r14 = 7
            long r12 = r12 << r14
            long r12 = r12 & r10
            r14 = -9187201950435737472(0x8080808080808080, double:-2.937446524422997E-306)
            long r12 = r12 & r14
            int r12 = (r12 > r14 ? 1 : (r12 == r14 ? 0 : -1))
            if (r12 == 0) goto La0
            int r12 = r9 - r7
            int r12 = ~r12
            int r12 = r12 >>> 31
            int r12 = 8 - r12
            r13 = r1
            r1 = r2
            r18 = r10
            r11 = r5
            r10 = r6
            r5 = r12
            r12 = r8
            r8 = r9
            r9 = r7
            r6 = r18
        L65:
            if (r1 >= r5) goto L98
            r14 = 255(0xff, double:1.26E-321)
            long r14 = r14 & r6
            r16 = 128(0x80, double:6.3E-322)
            int r14 = (r14 > r16 ? 1 : (r14 == r16 ? 0 : -1))
            if (r14 >= 0) goto L95
            int r2 = r8 << 3
            int r2 = r2 + r1
            r12.m = r2
            o.aR r3 = r11.m
            java.lang.Object[] r3 = r3.b
            r2 = r3[r2]
            r0.w = r13
            r0.n = r12
            r0.f457o = r11
            r0.p = r10
            r0.q = r9
            r0.r = r8
            r0.u = r6
            r0.s = r5
            r0.t = r1
            r0.v = r4
            r13.b(r2, r0)
            o.Dn r1 = o.EnumC0091Dn.l
            return r1
        L95:
            long r6 = r6 >> r3
            int r1 = r1 + r4
            goto L65
        L98:
            if (r5 != r3) goto La5
            r7 = r9
            r6 = r10
            r5 = r11
            r1 = r13
            r9 = r8
            r8 = r12
        La0:
            if (r9 == r7) goto La5
            int r9 = r9 + 1
            goto L42
        La5:
            o.Oh0 r1 = o.Oh0.a
            return r1
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0809bR.n(java.lang.Object):java.lang.Object");
    }
}
