package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.vX, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC2718vX {
    public static final Ma0 a = new Ma0(C0744al.C);

    /* 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 static final void a(o.HK r4, o.C3063z4 r5, o.AbstractC0298Lm r6) {
        /*
            boolean r0 = r6 instanceof o.C2528tX
            if (r0 == 0) goto L13
            r0 = r6
            o.tX r0 = (o.C2528tX) r0
            int r1 = r0.p
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L13
            int r1 = r1 - r2
            r0.p = r1
            goto L18
        L13:
            o.tX r0 = new o.tX
            r0.<init>(r6)
        L18:
            java.lang.Object r6 = r0.f730o
            int r1 = r0.p
            r2 = 1
            if (r1 == 0) goto L32
            if (r1 == r2) goto L29
            java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
            java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
            r4.<init>(r5)
            throw r4
        L29:
            o.IJ.H(r6)
            o.pj r4 = new o.pj
            r4.<init>()
            throw r4
        L32:
            o.IJ.H(r6)
            r6 = r4
            o.LP r6 = (o.LP) r6
            o.LP r6 = r6.l
            boolean r6 = r6.y
            if (r6 == 0) goto L61
            o.jV r6 = o.AbstractC2539te.T(r4)
            o.sK r4 = o.AbstractC2539te.S(r4)
            o.Yk r4 = r4.L
            o.zW r4 = (o.C3097zW) r4
            r4.getClass()
            o.Ma0 r1 = o.AbstractC2718vX.a
            java.lang.Object r4 = o.AbstractC0940cn0.F(r4, r1)
            if (r4 != 0) goto L5b
            r0.p = r2
            b(r6, r5, r0)
            return
        L5b:
            java.lang.ClassCastException r4 = new java.lang.ClassCastException
            r4.<init>()
            throw r4
        L61:
            java.lang.IllegalArgumentException r4 = new java.lang.IllegalArgumentException
            java.lang.String r5 = "establishTextInputSession called from an unattached node"
            r4.<init>(r5)
            throw r4
        */
        throw new UnsupportedOperationException("Method not decompiled: o.AbstractC2718vX.a(o.HK, o.z4, o.Lm):void");
    }

    /* 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 static final void b(o.InterfaceC1577jV r4, o.SC r5, o.AbstractC0298Lm r6) {
        /*
            boolean r0 = r6 instanceof o.C2623uX
            if (r0 == 0) goto L13
            r0 = r6
            o.uX r0 = (o.C2623uX) r0
            int r1 = r0.p
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L13
            int r1 = r1 - r2
            r0.p = r1
            goto L18
        L13:
            o.uX r0 = new o.uX
            r0.<init>(r6)
        L18:
            java.lang.Object r6 = r0.f745o
            int r1 = r0.p
            r2 = 1
            if (r1 == 0) goto L3e
            if (r1 == r2) goto L35
            r4 = 2
            if (r1 == r4) goto L2c
            java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
            java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
            r4.<init>(r5)
            throw r4
        L2c:
            o.IJ.H(r6)
            o.pj r4 = new o.pj
            r4.<init>()
            throw r4
        L35:
            o.IJ.H(r6)
            o.pj r4 = new o.pj
            r4.<init>()
            throw r4
        L3e:
            o.IJ.H(r6)
            r0.p = r2
            o.q3 r4 = (o.C2207q3) r4
            r4.J(r5, r0)
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: o.AbstractC2718vX.b(o.jV, o.SC, o.Lm):void");
    }
}
