package defpackage;

import java.io.File;
import java.util.concurrent.atomic.AtomicBoolean;

/* renamed from: ᵻᵙᵦᵭ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C5203 implements InterfaceC2922 {

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final AtomicBoolean f19409 = new AtomicBoolean(false);

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public final C2893 f19410 = new C2893();

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final InterfaceC0168 f19411;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final File f19412;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final InterfaceC3338 f19413;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final C1654 f19414;

    public C5203(File file, InterfaceC3338 interfaceC3338, InterfaceC0168 interfaceC0168, C1654 c1654) {
        this.f19412 = file;
        this.f19413 = interfaceC3338;
        this.f19411 = interfaceC0168;
        this.f19414 = c1654;
    }

    @Override // defpackage.InterfaceC2922
    public final void close() {
        this.f19409.set(true);
        this.f19414.mo1401();
    }

    /* JADX WARN: Removed duplicated region for block: B:31:0x0073  */
    /* JADX WARN: Removed duplicated region for block: B:58:0x007b A[EXC_TOP_SPLITTER, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final java.lang.Object m10757(defpackage.C3020 r8, defpackage.AbstractC1989 r9) throws java.lang.Throwable {
        /*
            r7 = this;
            boolean r0 = r9 instanceof defpackage.C5000
            if (r0 == 0) goto L13
            r0 = r9
            ᵸᵲˆᵱ r0 = (defpackage.C5000) r0
            int r1 = r0.f18561
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L13
            int r1 = r1 - r2
            r0.f18561 = r1
            goto L18
        L13:
            ᵸᵲˆᵱ r0 = new ᵸᵲˆᵱ
            r0.<init>(r7, r9)
        L18:
            java.lang.Object r9 = r0.f18560
            int r1 = r0.f18561
            r2 = 1
            r3 = 0
            if (r1 == 0) goto L38
            if (r1 != r2) goto L32
            boolean r7 = r0.f18563
            ʾˀᵪᵠ r8 = r0.f18564
            ᵻᵙᵦᵭ r0 = r0.f18565
            ʼٴ.ᵺᵠ(r9)     // Catch: java.lang.Throwable -> L2c
            goto L6b
        L2c:
            r9 = move-exception
            r6 = r9
            r9 = r7
            r7 = r0
            r0 = r6
            goto L83
        L32:
            java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
            ᵹˉᵞ.ᵳٴᵶ(r7)
            return r3
        L38:
            ʼٴ.ᵺᵠ(r9)
            java.util.concurrent.atomic.AtomicBoolean r9 = r7.f19409
            boolean r9 = r9.get()
            if (r9 != 0) goto L95
            ᵝˎˉ r9 = r7.f19410
            boolean r9 = r9.m7059()
            ʾˀᵪᵠ r1 = new ʾˀᵪᵠ     // Catch: java.lang.Throwable -> L8c
            java.io.File r4 = r7.f19412     // Catch: java.lang.Throwable -> L8c
            ᵣˀᵨ r5 = r7.f19413     // Catch: java.lang.Throwable -> L8c
            r1.<init>(r4, r5)     // Catch: java.lang.Throwable -> L8c
            java.lang.Boolean r4 = java.lang.Boolean.valueOf(r9)     // Catch: java.lang.Throwable -> L80
            r0.f18565 = r7     // Catch: java.lang.Throwable -> L80
            r0.f18564 = r1     // Catch: java.lang.Throwable -> L80
            r0.f18563 = r9     // Catch: java.lang.Throwable -> L80
            r0.f18561 = r2     // Catch: java.lang.Throwable -> L80
            java.lang.Object r8 = r8.mo1884(r1, r4, r0)     // Catch: java.lang.Throwable -> L80
            ᵣˊᵛ r0 = defpackage.EnumC3346.f12524
            if (r8 != r0) goto L67
            return r0
        L67:
            r0 = r7
            r7 = r9
            r9 = r8
            r8 = r1
        L6b:
            r8.close()     // Catch: java.lang.Throwable -> L70
            r8 = r3
            goto L71
        L70:
            r8 = move-exception
        L71:
            if (r8 != 0) goto L7b
            if (r7 == 0) goto L7a
            ᵝˎˉ r7 = r0.f19410
            r7.mo6601(r3)
        L7a:
            return r9
        L7b:
            throw r8     // Catch: java.lang.Throwable -> L7c
        L7c:
            r8 = move-exception
            r9 = r7
            r7 = r0
            goto L8d
        L80:
            r8 = move-exception
            r0 = r8
            r8 = r1
        L83:
            r8.close()     // Catch: java.lang.Throwable -> L87
            goto L8b
        L87:
            r8 = move-exception
            ᵳـᵔʤ.ᵴᵳ(r0, r8)     // Catch: java.lang.Throwable -> L8c
        L8b:
            throw r0     // Catch: java.lang.Throwable -> L8c
        L8c:
            r8 = move-exception
        L8d:
            if (r9 == 0) goto L94
            ᵝˎˉ r7 = r7.f19410
            r7.mo6601(r3)
        L94:
            throw r8
        L95:
            java.lang.String r7 = "StorageConnection has already been disposed."
            ᵹˉᵞ.ᵳٴᵶ(r7)
            return r3
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C5203.m10757(ᵟʾᵤᵗ, ːᵱ):java.lang.Object");
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:43:0x00cc A[Catch: all -> 0x0107, IOException -> 0x0109, TRY_ENTER, TryCatch #0 {IOException -> 0x0109, blocks: (B:43:0x00cc, B:45:0x00d2, B:47:0x00da, B:51:0x00e6, B:52:0x0106, B:48:0x00df, B:59:0x0112, B:66:0x011f, B:65:0x011c), top: B:76:0x0023 }] */
    /* JADX WARN: Removed duplicated region for block: B:59:0x0112 A[Catch: all -> 0x0107, IOException -> 0x0109, TRY_ENTER, TRY_LEAVE, TryCatch #0 {IOException -> 0x0109, blocks: (B:43:0x00cc, B:45:0x00d2, B:47:0x00da, B:51:0x00e6, B:52:0x0106, B:48:0x00df, B:59:0x0112, B:66:0x011f, B:65:0x011c), top: B:76:0x0023 }] */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0015  */
    /* JADX WARN: Type inference failed for: r10v11 */
    /* JADX WARN: Type inference failed for: r10v12 */
    /* JADX WARN: Type inference failed for: r10v2, types: [ᵨᵱ] */
    /* JADX WARN: Type inference failed for: r2v0, types: [int, ᵙᵼʩ] */
    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final java.lang.Object m10758(ᵯᵢ r10, defpackage.AbstractC1989 r11) {
        /*
            Method dump skipped, instructions count: 309
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C5203.m10758(ᵯᵢ, ːᵱ):java.lang.Object");
    }
}
