package defpackage;

import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.TimeUnit;

/* JADX INFO: renamed from: ᵻᵛᵟ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class C5212 implements InterfaceC2902, InterfaceC3940 {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final /* synthetic */ boolean f19632;

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public final /* synthetic */ Object f19633;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public final /* synthetic */ Object f19634;

    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public final /* synthetic */ Object f19635;

    public /* synthetic */ C5212(boolean z, Object obj, Object obj2, Object obj3) {
        this.f19634 = obj;
        this.f19633 = obj2;
        this.f19632 = z;
        this.f19635 = obj3;
    }

    @Override // defpackage.InterfaceC3940
    /* JADX INFO: renamed from: ʽˈˋ */
    public void mo8681(Exception exc) throws Throwable {
        C1925 c1925 = (C1925) this.f19634;
        C0589 c0589 = (C0589) this.f19633;
        C0054 c0054 = (C0054) this.f19635;
        if (exc != null) {
            c0589.m2220(exc);
            return;
        }
        if (this.f19632) {
            boolean z = true;
            CountDownLatch countDownLatch = new CountDownLatch(1);
            new Thread(new RunnableC2093(c1925, 13, countDownLatch)).start();
            ExecutorService executorService = AbstractC0242.f1794;
            boolean z2 = false;
            try {
                long jNanoTime = 2000000000;
                long jNanoTime2 = System.nanoTime() + 2000000000;
                while (true) {
                    try {
                        try {
                            countDownLatch.await(jNanoTime, TimeUnit.NANOSECONDS);
                            break;
                        } catch (Throwable th) {
                            th = th;
                            if (z) {
                                Thread.currentThread().interrupt();
                            }
                            throw th;
                        }
                    } catch (InterruptedException unused) {
                        jNanoTime = jNanoTime2 - System.nanoTime();
                        z2 = true;
                    }
                }
                if (z2) {
                    Thread.currentThread().interrupt();
                }
            } catch (Throwable th2) {
                th = th2;
                z = z2;
            }
        }
        c0589.m2219(c0054);
    }

    @Override // defpackage.InterfaceC2902
    /* JADX INFO: renamed from: ᵻʽᵯ */
    public C2598 mo6785(int i, C1882 c1882, int[] iArr) {
        C2330 c2330 = (C2330) this.f19634;
        C2600 c2600 = (C2600) this.f19633;
        int[] iArr2 = (int[]) this.f19635;
        c2330.getClass();
        C0361 c0361 = new C0361(c2330, c2600);
        int i2 = iArr2[i];
        C3975 c3975M9561 = AbstractC4509.m9561();
        for (int i3 = 0; i3 < c1882.f7462; i3++) {
            c3975M9561.m7406(new C1402(i, c1882, i3, c2600, iArr[i3], this.f19632, c0361, i2));
        }
        return c3975M9561.m8718();
    }
}
