package defpackage;

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

/* renamed from: ᵘᵜˌᵺ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final /* synthetic */ class C2523 implements InterfaceC5560, InterfaceC4398 {

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

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

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public final /* synthetic */ Object f9845;

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

    public /* synthetic */ C2523(boolean z, Object obj, Object obj2, Object obj3) {
        this.f9843 = obj;
        this.f9846 = obj2;
        this.f9844 = z;
        this.f9845 = obj3;
    }

    @Override // defpackage.InterfaceC4398
    /* renamed from: ᵴᵳ */
    public void mo1441(Exception exc) throws Throwable {
        C5154 c5154 = (C5154) this.f9843;
        C1353 c1353 = (C1353) this.f9846;
        C4759 c4759 = (C4759) this.f9845;
        if (exc != null) {
            c1353.m4192(exc);
            return;
        }
        if (this.f9844) {
            boolean z = true;
            CountDownLatch countDownLatch = new CountDownLatch(1);
            new Thread(new RunnableC5417(c5154, 13, countDownLatch)).start();
            ExecutorService executorService = AbstractC0634.f3139;
            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;
            }
        }
        c1353.m4193(c4759);
    }

    @Override // defpackage.InterfaceC5560
    /* renamed from: ᵹᵝᵶ */
    public C4471 mo2917(int i, C4010 c4010, int[] iArr) {
        C1181 c1181 = (C1181) this.f9843;
        C4966 c4966 = (C4966) this.f9846;
        int[] iArr2 = (int[]) this.f9845;
        c1181.getClass();
        C4371 c4371 = new C4371(c1181, c4966);
        int i2 = iArr2[i];
        C4704 c4704M6701 = AbstractC2692.m6701();
        for (int i3 = 0; i3 < c4010.f15077; i3++) {
            c4704M6701.m3197(new C3242(i, c4010, i3, c4966, iArr[i3], this.f9844, c4371, i2));
        }
        return c4704M6701.m9892();
    }
}
