package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.my, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1913my extends C0960cy {
    /* 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(java.lang.Object r6, o.AbstractC0298Lm r7) {
        /*
            r5 = this;
            boolean r0 = r7 instanceof o.C1818ly
            if (r0 == 0) goto L13
            r0 = r7
            o.ly r0 = (o.C1818ly) 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.ly r0 = new o.ly
            r0.<init>(r5, r7)
        L18:
            java.lang.Object r7 = r0.q
            int r1 = r0.s
            o.Oh0 r2 = o.Oh0.a
            r3 = 1
            if (r1 == 0) goto L35
            if (r1 != r3) goto L2d
            java.io.FileOutputStream r6 = r0.p
            java.io.FileOutputStream r0 = r0.f628o
            o.IJ.H(r7)     // Catch: java.lang.Throwable -> L2b
            goto L5e
        L2b:
            r6 = move-exception
            goto L6c
        L2d:
            java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
            java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
            r6.<init>(r7)
            throw r6
        L35:
            o.IJ.H(r7)
            java.util.concurrent.atomic.AtomicBoolean r7 = r5.c
            boolean r7 = r7.get()
            if (r7 != 0) goto L72
            java.io.FileOutputStream r7 = new java.io.FileOutputStream
            java.io.File r1 = r5.a
            r7.<init>(r1)
            o.R60 r1 = r5.b     // Catch: java.lang.Throwable -> L6a
            o.Hh0 r4 = new o.Hh0     // Catch: java.lang.Throwable -> L6a
            r4.<init>(r7)     // Catch: java.lang.Throwable -> L6a
            r0.f628o = r7     // Catch: java.lang.Throwable -> L6a
            r0.p = r7     // Catch: java.lang.Throwable -> L6a
            r0.s = r3     // Catch: java.lang.Throwable -> L6a
            r1.h(r6, r4)     // Catch: java.lang.Throwable -> L6a
            o.Dn r6 = o.EnumC0091Dn.l
            if (r2 != r6) goto L5c
            return r6
        L5c:
            r6 = r7
            r0 = r6
        L5e:
            java.io.FileDescriptor r6 = r6.getFD()     // Catch: java.lang.Throwable -> L2b
            r6.sync()     // Catch: java.lang.Throwable -> L2b
            r6 = 0
            o.C1884mi0.o(r0, r6)
            return r2
        L6a:
            r6 = move-exception
            r0 = r7
        L6c:
            throw r6     // Catch: java.lang.Throwable -> L6d
        L6d:
            r7 = move-exception
            o.C1884mi0.o(r0, r6)
            throw r7
        L72:
            java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
            java.lang.String r7 = "This scope has already been closed."
            r6.<init>(r7)
            throw r6
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C1913my.b(java.lang.Object, o.Lm):java.lang.Object");
    }
}
