package p025.p026;

import java.lang.Thread;
import java.util.Iterator;
import java.util.List;
import kotlinx.coroutines.CoroutineExceptionHandler;
import p138.p176.p177.p242.p246.p251.C4303;
import p402.p405.InterfaceC6578;

/* JADX INFO: renamed from: އ.֏.ޕ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C1326 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final List<CoroutineExceptionHandler> f4464 = C4303.m7042(C4303.m7070(֏.֏()));

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m2653(InterfaceC6578 interfaceC6578, Throwable th) {
        Throwable runtimeException;
        Iterator<CoroutineExceptionHandler> it = f4464.iterator();
        while (it.hasNext()) {
            try {
                it.next().handleException(interfaceC6578, th);
            } catch (Throwable th2) {
                Thread threadCurrentThread = Thread.currentThread();
                Thread.UncaughtExceptionHandler uncaughtExceptionHandler = threadCurrentThread.getUncaughtExceptionHandler();
                if (th == th2) {
                    runtimeException = th;
                } else {
                    runtimeException = new RuntimeException("Exception while trying to handle coroutine exception", th2);
                    C4303.m7093(runtimeException, th);
                }
                uncaughtExceptionHandler.uncaughtException(threadCurrentThread, runtimeException);
            }
        }
        Thread threadCurrentThread2 = Thread.currentThread();
        threadCurrentThread2.getUncaughtExceptionHandler().uncaughtException(threadCurrentThread2, th);
    }
}
