package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Xs, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC0615Xs {
    public static final float a = ((float) 0.125d) / 18;

    /* JADX WARN: Code restructure failed: missing block: B:46:0x00b9, code lost:
    
        if (o.C1765lT.b(o.As0.M(r6, true), 0) == false) goto L47;
     */
    /* JADX WARN: Removed duplicated region for block: B:20:0x005b A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:21:0x005c  */
    /* JADX WARN: Removed duplicated region for block: B:24:0x006b  */
    /* JADX WARN: Removed duplicated region for block: B:31:0x0085  */
    /* JADX WARN: Removed duplicated region for block: B:32:0x0087  */
    /* JADX WARN: Removed duplicated region for block: B:53:0x0080 A[SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /* JADX WARN: Type inference failed for: r14v1, types: [java.lang.Object, java.util.Collection, java.util.List] */
    /* JADX WARN: Type inference failed for: r14v5, types: [java.lang.Object, java.util.Collection, java.util.List] */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:21:0x005c -> B:22:0x005f). Please report as a decompilation issue!!! */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final java.lang.Object a(o.Vb0 r12, long r13, o.AbstractC0298Lm r15) {
        /*
            Method dump skipped, instructions count: 199
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.AbstractC0615Xs.a(o.Vb0, long, o.Lm):java.lang.Object");
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /* JADX WARN: Type inference failed for: r11v7, types: [java.lang.Object, java.util.Collection, java.util.List] */
    /* JADX WARN: Type inference failed for: r9v3, types: [o.B10] */
    /* JADX WARN: Type inference failed for: r9v6 */
    /* JADX WARN: Type inference failed for: r9v7 */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final java.lang.Object b(o.Vb0 r8, long r9, o.AbstractC0298Lm r11) {
        /*
            boolean r0 = r11 instanceof o.C0511Ts
            if (r0 == 0) goto L13
            r0 = r11
            o.Ts r0 = (o.C0511Ts) r0
            int r1 = r0.s
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L13
            int r1 = r1 - r2
            r0.s = r1
            goto L18
        L13:
            o.Ts r0 = new o.Ts
            r0.<init>(r11)
        L18:
            java.lang.Object r11 = r0.r
            int r1 = r0.s
            r2 = 1
            r3 = 0
            if (r1 == 0) goto L35
            if (r1 != r2) goto L2d
            o.w10 r8 = r0.q
            o.B10 r9 = r0.p
            o.IX r10 = r0.f348o
            o.IJ.H(r11)     // Catch: o.EX -> La7
            goto L9a
        L2d:
            java.lang.IllegalStateException r8 = new java.lang.IllegalStateException
            java.lang.String r9 = "call to 'resume' before 'invoke' with coroutine"
            r8.<init>(r9)
            throw r8
        L35:
            o.IJ.H(r11)
            o.Wb0 r11 = r8.p
            o.CX r11 = r11.D
            boolean r11 = d(r11, r9)
            if (r11 == 0) goto L43
            goto La6
        L43:
            o.Wb0 r11 = r8.p
            o.CX r11 = r11.D
            java.lang.Object r11 = r11.a
            int r1 = r11.size()
            r4 = 0
        L4e:
            if (r4 >= r1) goto L63
            java.lang.Object r5 = r11.get(r4)
            r6 = r5
            o.IX r6 = (o.IX) r6
            long r6 = r6.a
            boolean r6 = o.AbstractC2001nt0.t(r6, r9)
            if (r6 == 0) goto L60
            goto L64
        L60:
            int r4 = r4 + 1
            goto L4e
        L63:
            r5 = r3
        L64:
            r10 = r5
            o.IX r10 = (o.IX) r10
            if (r10 != 0) goto L6a
            goto La6
        L6a:
            o.B10 r9 = new o.B10
            r9.<init>()
            o.B10 r11 = new o.B10
            r11.<init>()
            r11.l = r10
            o.Qj0 r1 = r8.c()
            long r4 = r1.c()
            o.w10 r1 = new o.w10     // Catch: o.EX -> La7
            r1.<init>()     // Catch: o.EX -> La7
            o.Us r6 = new o.Us     // Catch: o.EX -> La7
            r6.<init>(r1, r11, r9, r3)     // Catch: o.EX -> La7
            r0.f348o = r10     // Catch: o.EX -> La7
            r0.p = r9     // Catch: o.EX -> La7
            r0.q = r1     // Catch: o.EX -> La7
            r0.s = r2     // Catch: o.EX -> La7
            java.lang.Object r8 = r8.d(r4, r6, r0)     // Catch: o.EX -> La7
            o.Dn r11 = o.EnumC0091Dn.l
            if (r8 != r11) goto L99
            return r11
        L99:
            r8 = r1
        L9a:
            boolean r8 = r8.l     // Catch: o.EX -> La7
            if (r8 == 0) goto La6
            java.lang.Object r8 = r9.l     // Catch: o.EX -> La7
            o.IX r8 = (o.IX) r8     // Catch: o.EX -> La7
            if (r8 != 0) goto La5
            return r10
        La5:
            return r8
        La6:
            return r3
        La7:
            java.lang.Object r8 = r9.l
            o.IX r8 = (o.IX) r8
            if (r8 != 0) goto Lae
            goto Laf
        Lae:
            r10 = r8
        Laf:
            return r10
        */
        throw new UnsupportedOperationException("Method not decompiled: o.AbstractC0615Xs.b(o.Vb0, long, o.Lm):java.lang.Object");
    }

    /* JADX WARN: Removed duplicated region for block: B:17:0x0044 A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:20:0x0049  */
    /* JADX WARN: Removed duplicated region for block: B:22:0x004c  */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:16:0x0042 -> B:18:0x0045). Please report as a decompilation issue!!! */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final java.lang.Object c(o.Vb0 r4, long r5, o.OC r7, o.AbstractC0298Lm r8) {
        /*
            boolean r0 = r8 instanceof o.C0589Ws
            if (r0 == 0) goto L13
            r0 = r8
            o.Ws r0 = (o.C0589Ws) r0
            int r1 = r0.r
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L13
            int r1 = r1 - r2
            r0.r = r1
            goto L18
        L13:
            o.Ws r0 = new o.Ws
            r0.<init>(r8)
        L18:
            java.lang.Object r8 = r0.q
            int r1 = r0.r
            r2 = 1
            if (r1 == 0) goto L33
            if (r1 != r2) goto L2b
            o.OC r4 = r0.p
            o.Vb0 r5 = r0.f403o
            o.IJ.H(r8)
            r7 = r4
            r4 = r5
            goto L45
        L2b:
            java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
            java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
            r4.<init>(r5)
            throw r4
        L33:
            o.IJ.H(r8)
        L36:
            r0.f403o = r4
            r0.p = r7
            r0.r = r2
            java.lang.Object r8 = a(r4, r5, r0)
            o.Dn r5 = o.EnumC0091Dn.l
            if (r8 != r5) goto L45
            return r5
        L45:
            o.IX r8 = (o.IX) r8
            if (r8 != 0) goto L4c
            java.lang.Boolean r4 = java.lang.Boolean.FALSE
            return r4
        L4c:
            boolean r5 = o.As0.r(r8)
            if (r5 == 0) goto L55
            java.lang.Boolean r4 = java.lang.Boolean.TRUE
            return r4
        L55:
            r7.g(r8)
            long r5 = r8.a
            goto L36
        */
        throw new UnsupportedOperationException("Method not decompiled: o.AbstractC0615Xs.c(o.Vb0, long, o.OC, o.Lm):java.lang.Object");
    }

    /* JADX WARN: Type inference failed for: r6v1, types: [java.lang.Object, java.util.Collection, java.util.List] */
    public static final boolean d(CX cx, long j) {
        Object obj;
        ?? r6 = cx.a;
        int size = r6.size();
        boolean z = false;
        int i = 0;
        while (true) {
            if (i >= size) {
                obj = null;
                break;
            }
            obj = r6.get(i);
            if (AbstractC2001nt0.t(((IX) obj).a, j)) {
                break;
            }
            i++;
        }
        IX ix = (IX) obj;
        if (ix != null && ix.d) {
            z = true;
        }
        return true ^ z;
    }
}
