package o; import kotlinx.coroutines.CoroutineExceptionHandler; /* loaded from: classes.dex */ public final class geO { public static final void b(InterfaceC14912gbn interfaceC14912gbn, Throwable th) { try { CoroutineExceptionHandler coroutineExceptionHandler = (CoroutineExceptionHandler) interfaceC14912gbn.get(CoroutineExceptionHandler.b); if (coroutineExceptionHandler != null) { coroutineExceptionHandler.handleException(interfaceC14912gbn, th); } else { C15003geS.a(interfaceC14912gbn, th); } } catch (Throwable th2) { if (th != th2) { RuntimeException runtimeException = new RuntimeException("Exception while trying to handle coroutine exception", th2); C14957gcv.e(runtimeException, ""); C14957gcv.e(th, ""); if (runtimeException != th) { C14887gbC.c.d(runtimeException, th); } th = runtimeException; } C15003geS.a(interfaceC14912gbn, th); } } }