package o; import o.C13395fZS; /* loaded from: classes.dex */ public final class geL { public static final Object e(Object obj, InterfaceC14894gbR interfaceC14894gbR) { Throwable d = C13395fZS.d(obj); if (d == null) { return interfaceC14894gbR != null ? new C14999geJ(obj, interfaceC14894gbR) : obj; } return new C15000geK(d); } public static final Object d(Object obj, InterfaceC14907gbi interfaceC14907gbi) { if (obj instanceof C15000geK) { C13395fZS.IeS ieS = C13395fZS.b; Throwable th = ((C15000geK) obj).d; if (C15045gfe.a() && (interfaceC14907gbi instanceof InterfaceC14922gbx)) { th = C15120ghi.c(th, (InterfaceC14922gbx) interfaceC14907gbi); } C14957gcv.e(th, ""); return C13395fZS.a(new C13395fZS.LWm(th)); } C13395fZS.IeS ieS2 = C13395fZS.b; return C13395fZS.a(obj); } }