package defpackage;

import j$.util.Objects;
import java.util.concurrent.ScheduledExecutorService;

/* renamed from: ˈʾˈ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class RunnableC1011 implements Runnable {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public Object f4447;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final /* synthetic */ int f4448;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public Object f4449;

    public /* synthetic */ RunnableC1011() {
        this.f4448 = 25;
    }

    public /* synthetic */ RunnableC1011(int i, Object obj, Object obj2, boolean z) {
        this.f4448 = i;
        this.f4447 = obj;
        this.f4449 = obj2;
    }

    public /* synthetic */ RunnableC1011(Object obj, int i, Object obj2) {
        this.f4448 = i;
        this.f4449 = obj;
        this.f4447 = obj2;
    }

    public RunnableC1011(C0323 c0323, C5465 c5465) {
        this.f4448 = 19;
        this.f4447 = c5465;
        Objects.requireNonNull(c0323);
        this.f4449 = c0323;
    }

    public RunnableC1011(C1757 c1757, InterfaceC5008 interfaceC5008) {
        this.f4448 = 15;
        this.f4447 = interfaceC5008;
        Objects.requireNonNull(c1757);
        this.f4449 = c1757;
    }

    public RunnableC1011(ServiceConnectionC3626 serviceConnectionC3626, InterfaceC5542 interfaceC5542, ServiceConnectionC3626 serviceConnectionC36262) {
        this.f4448 = 10;
        this.f4447 = interfaceC5542;
        this.f4449 = serviceConnectionC3626;
    }

    public RunnableC1011(C5246 c5246, C0524 c0524, Runnable runnable) {
        this.f4448 = 22;
        this.f4447 = c0524;
        this.f4449 = runnable;
    }

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    private final void m3372() {
        ServiceConnectionC1979 serviceConnectionC1979 = (ServiceConnectionC1979) this.f4449;
        synchronized (serviceConnectionC1979) {
            try {
                serviceConnectionC1979.f7958 = false;
                C0323 c0323 = serviceConnectionC1979.f7959;
                if (!c0323.m1739()) {
                    C1736 c1736 = ((C4205) ((ᵢˇᵭ) c0323).ᵧᵾˀˈ).f15715;
                    C4205.m9132(c1736);
                    c1736.f6941.m6038("Connected to remote service");
                    InterfaceC3519 interfaceC3519 = (InterfaceC3519) this.f4447;
                    c0323.m6590();
                    c0323.f2002 = interfaceC3519;
                    c0323.m1736();
                    c0323.m1730();
                }
            } catch (Throwable th) {
                throw th;
            }
        }
        C0323 c03232 = ((ServiceConnectionC1979) this.f4449).f7959;
        ScheduledExecutorService scheduledExecutorService = c03232.f1996;
        if (scheduledExecutorService != null) {
            scheduledExecutorService.shutdownNow();
            c03232.f1996 = null;
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:20:0x0044 A[Catch: CancellationException -> 0x0024, ExecutionException -> 0x0027, TryCatch #3 {CancellationException -> 0x0024, ExecutionException -> 0x0027, blocks: (B:3:0x0008, B:5:0x001f, B:18:0x0033, B:20:0x0044, B:22:0x0050, B:28:0x0062, B:30:0x0066, B:12:0x002a, B:33:0x00a0), top: B:39:0x0008 }] */
    /* JADX WARN: Removed duplicated region for block: B:36:0x00a9  */
    /* JADX WARN: Removed duplicated region for block: B:42:? A[RETURN, SYNTHETIC] */
    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    private final void m3373() {
        /*
            r5 = this;
            java.lang.Object r0 = r5.f4447
            ᵯᵎᵣᵟ r0 = (defpackage.C4280) r0
            java.lang.Object r5 = r5.f4449
            ˁˊᵞ r5 = (defpackage.C0669) r5
            java.lang.Object r5 = defpackage.AbstractC2725.m6769(r5)     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            ᵬʽˆː r5 = (defpackage.C4016) r5     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            ᵴﹶᵣᵫ r1 = new ᵴﹶᵣᵫ     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            r2 = 2
            r3 = 7
            r4 = 6
            r1.<init>(r4, r2, r3)     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            ˈʡˁʔ r2 = new ˈʡˁʔ     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            r2.<init>(r5, r1)     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            boolean r1 = r0.f16057     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            if (r1 != 0) goto L2a
            ˈʡˁʔ r3 = r0.f16061     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            if (r3 != 0) goto L33
            goto L2a
        L24:
            r5 = move-exception
            goto La1
        L27:
            r5 = move-exception
            goto La1
        L2a:
            monitor-enter(r0)     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            if (r1 != 0) goto L56
            ˈʡˁʔ r3 = r0.f16061     // Catch: java.lang.Throwable -> L54
            if (r3 != 0) goto L32
            goto L56
        L32:
            monitor-exit(r0)     // Catch: java.lang.Throwable -> L54
        L33:
            java.lang.Object r1 = r3.f4435     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            ᴵʻ r1 = (defpackage.C2172) r1     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            java.lang.Object r2 = r2.f4435     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            ᴵʻ r2 = (defpackage.C2172) r2     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            r1.getClass()     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            boolean r1 = ᵭʝʜ.ᵯٴᵦ(r1, r2)     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            if (r1 != 0) goto L62
            ᵚᵘᵢ r5 = r0.f16062     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            ᵾᵳᵹˈ r5 = r5.f10395     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            java.lang.Object r5 = r5.get()     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            ˎᵫᵚˉ r5 = (defpackage.InterfaceC1772) r5     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            if (r5 == 0) goto Lba
            r5.mo2320()     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            return
        L54:
            r5 = move-exception
            goto L9f
        L56:
            r0.f16061 = r2     // Catch: java.lang.Throwable -> L54
            ᵞˉᵜ r1 = r0.f16058     // Catch: java.lang.Throwable -> L54
            java.lang.Object r1 = r1.f11438     // Catch: java.lang.Throwable -> L54
            java.util.concurrent.atomic.AtomicInteger r1 = (java.util.concurrent.atomic.AtomicInteger) r1     // Catch: java.lang.Throwable -> L54
            r1.incrementAndGet()     // Catch: java.lang.Throwable -> L54
            monitor-exit(r0)     // Catch: java.lang.Throwable -> L54
        L62:
            boolean r1 = r0.f16057     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            if (r1 == 0) goto Lba
            ᵚᵘᵢ r1 = r0.f16062     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            ᵾᵳᵹˈ r2 = r1.f10403     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            java.lang.Object r2 = r2.get()     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            ᵦˊᵔ r2 = (defpackage.C3571) r2     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            java.lang.String r5 = r5.m8868()     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            r2.getClass()     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            r5.getClass()     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            ᵎˎ r2 = r2.f13377     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            ᵫʘᵯ r5 = r2.m5832(r5)     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            ˀˁᵨ r5 = defpackage.C3571.m8182(r5)     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            java.lang.Class<java.lang.Throwable> r2 = java.lang.Throwable.class
            ᵶˋᵽˑ r3 = new ᵶˋᵽˑ     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            r4 = 1
            r3.<init>(r4, r0)     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            ᵣᵛᵤ r1 = r1.m6680()     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            int r4 = defpackage.AbstractRunnableC4922.f18310     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            ˊʾˊ r4 = new ˊʾˊ     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            r4.<init>(r5, r2, r3)     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            java.util.concurrent.Executor r1 = ˋˌ.ᵡⁱᵥ(r1, r4)     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            r5.mo833(r4, r1)     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
            return
        L9f:
            monitor-exit(r0)     // Catch: java.lang.Throwable -> L54
            throw r5     // Catch: java.util.concurrent.CancellationException -> L24 java.util.concurrent.ExecutionException -> L27
        La1:
            java.lang.Throwable r5 = r5.getCause()
            boolean r5 = r5 instanceof java.lang.SecurityException
            if (r5 != 0) goto Lba
            java.lang.String r5 = r0.f16060
            java.lang.String r5 = java.lang.String.valueOf(r5)
            int r5 = r5.length()
            java.lang.StringBuilder r0 = new java.lang.StringBuilder
            int r5 = r5 + 64
            r0.<init>(r5)
        Lba:
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.RunnableC1011.m3373():void");
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    private final void m3374() {
        C2786 c2786 = (C2786) this.f4449;
        synchronized (c2786.f10740) {
            try {
                InterfaceC3964 interfaceC3964 = (InterfaceC3964) c2786.f10739;
                if (interfaceC3964 != null) {
                    Exception excM8707 = ((C3921) this.f4447).m8707();
                    ᵩʛʽ.ᵝᵵᵺ(excM8707);
                    interfaceC3964.mo6878(excM8707);
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:46:0x00aa A[Catch: all -> 0x00a8, TryCatch #1 {all -> 0x00a8, blocks: (B:32:0x008a, B:34:0x008e, B:36:0x0092, B:41:0x009f, B:46:0x00aa, B:47:0x00b6), top: B:60:0x008a }] */
    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    private final void m3375() {
        /*
            Method dump skipped, instructions count: 208
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.RunnableC1011.m3375():void");
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    private final void m3376() {
        C2786 c2786 = (C2786) this.f4449;
        synchronized (c2786.f10740) {
            ((InterfaceC4644) c2786.f10739).mo1688((C3921) this.f4447);
        }
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    private final void m3377() {
        C2786 c2786 = (C2786) this.f4449;
        synchronized (c2786.f10740) {
            try {
                InterfaceC2070 interfaceC2070 = (InterfaceC2070) c2786.f10739;
                if (interfaceC2070 != null) {
                    interfaceC2070.mo2916(((C3921) this.f4447).m8706());
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:182:0x0228 A[EXC_TOP_SPLITTER, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:77:0x0217  */
    @Override // java.lang.Runnable
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final void run() {
        /*
            Method dump skipped, instructions count: 1384
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.RunnableC1011.run():void");
    }
}
