package o; import o.C13395fZS; /* renamed from: o.gbq, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public class C14915gbq { /* JADX WARN: Multi-variable type inference failed */ public static final InterfaceC14907gbi a(InterfaceC14907gbi interfaceC14907gbi) { InterfaceC14907gbi interfaceC14907gbi2; C14957gcv.e(interfaceC14907gbi, ""); AbstractC14916gbr abstractC14916gbr = interfaceC14907gbi instanceof AbstractC14916gbr ? (AbstractC14916gbr) interfaceC14907gbi : null; return (abstractC14916gbr == null || (interfaceC14907gbi2 = (InterfaceC14907gbi) abstractC14916gbr.intercepted()) == null) ? interfaceC14907gbi : interfaceC14907gbi2; } /* renamed from: o.gbq$IeS */ /* loaded from: classes.dex */ public static final class IeS extends AbstractC14921gbw { private Object a; private InterfaceC14937gcb b; private int e; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public IeS(InterfaceC14907gbi interfaceC14907gbi, InterfaceC14937gcb interfaceC14937gcb, Object obj) { super(interfaceC14907gbi); this.b = interfaceC14937gcb; this.a = obj; C14957gcv.d(interfaceC14907gbi, ""); } @Override // o.AbstractC14913gbo public final Object invokeSuspend(Object obj) { int i = this.e; if (i != 0) { if (i != 1) { throw new IllegalStateException("This coroutine had already completed".toString()); } this.e = 2; if (obj instanceof C13395fZS.LWm) { throw ((C13395fZS.LWm) obj).d; } return obj; } this.e = 1; if (!(obj instanceof C13395fZS.LWm)) { C14957gcv.d(this.b, ""); return ((InterfaceC14937gcb) gcQ.c(this.b, 2)).invoke(this.a, this); } throw ((C13395fZS.LWm) obj).d; } } /* renamed from: o.gbq$Sts */ /* loaded from: classes.dex */ public static final class Sts extends AbstractC14916gbr { private Object a; private InterfaceC14937gcb c; private int e; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public Sts(InterfaceC14907gbi interfaceC14907gbi, InterfaceC14912gbn interfaceC14912gbn, InterfaceC14937gcb interfaceC14937gcb, Object obj) { super(interfaceC14907gbi, interfaceC14912gbn); this.c = interfaceC14937gcb; this.a = obj; C14957gcv.d(interfaceC14907gbi, ""); } @Override // o.AbstractC14913gbo public final Object invokeSuspend(Object obj) { int i = this.e; if (i != 0) { if (i != 1) { throw new IllegalStateException("This coroutine had already completed".toString()); } this.e = 2; if (obj instanceof C13395fZS.LWm) { throw ((C13395fZS.LWm) obj).d; } return obj; } this.e = 1; if (!(obj instanceof C13395fZS.LWm)) { C14957gcv.d(this.c, ""); return ((InterfaceC14937gcb) gcQ.c(this.c, 2)).invoke(this.a, this); } throw ((C13395fZS.LWm) obj).d; } } /* JADX WARN: Multi-variable type inference failed */ public static final InterfaceC14907gbi b(InterfaceC14937gcb, ? extends Object> interfaceC14937gcb, R r, InterfaceC14907gbi interfaceC14907gbi) { C14957gcv.e(interfaceC14937gcb, ""); C14957gcv.e(interfaceC14907gbi, ""); C14957gcv.e(interfaceC14907gbi, ""); if (interfaceC14937gcb instanceof AbstractC14913gbo) { return ((AbstractC14913gbo) interfaceC14937gcb).create(r, interfaceC14907gbi); } InterfaceC14912gbn context = interfaceC14907gbi.getContext(); if (context == C14908gbj.e) { return new IeS(interfaceC14907gbi, interfaceC14937gcb, r); } return new Sts(interfaceC14907gbi, context, interfaceC14937gcb, r); } }