package o; /* renamed from: o.ghp, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C15127ghp { public static final Object a(C15121ghj c15121ghj, R r, InterfaceC14937gcb, ? extends Object> interfaceC14937gcb) { Object c15000geK; try { c15000geK = ((InterfaceC14937gcb) gcQ.c(interfaceC14937gcb, 2)).invoke(r, c15121ghj); } catch (Throwable th) { c15000geK = new C15000geK(th); } if (c15000geK != EnumC14910gbl.COROUTINE_SUSPENDED) { Object d = c15121ghj.d(c15000geK); if (d != gfM.d) { if (d instanceof C15000geK) { C15000geK c15000geK2 = (C15000geK) d; Throwable th2 = c15000geK2.d; Throwable th3 = c15000geK2.d; InterfaceC14907gbi interfaceC14907gbi = c15121ghj.c; if (C15045gfe.a() && (interfaceC14907gbi instanceof InterfaceC14922gbx)) { throw C15120ghi.c(th3, (InterfaceC14922gbx) interfaceC14907gbi); } throw th3; } return gfM.c(d); } return EnumC14910gbl.COROUTINE_SUSPENDED; } return EnumC14910gbl.COROUTINE_SUSPENDED; } }