package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.op, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2087op extends Sb0 implements TC {
    public final /* synthetic */ int p = 1;
    public int q;
    public /* synthetic */ Object r;

    public /* synthetic */ C2087op(int i, InterfaceC0220Im interfaceC0220Im) {
        super(i, interfaceC0220Im);
    }

    @Override // o.TC
    public final Object d(Object obj, Object obj2, Object obj3) {
        switch (this.p) {
            case 0:
                return new C2087op((C0041Bp) this.r, (InterfaceC0220Im) obj3).n(Oh0.a);
            default:
                ((Boolean) obj2).getClass();
                C2087op c2087op = new C2087op(3, (InterfaceC0220Im) obj3);
                c2087op.r = (C0960cy) obj;
                return c2087op.n(Oh0.a);
        }
    }

    @Override // o.AbstractC0728ad
    public final Object n(Object obj) {
        switch (this.p) {
            case 0:
                int i = this.q;
                if (i == 0) {
                    IJ.H(obj);
                    C0041Bp c0041Bp = (C0041Bp) this.r;
                    this.q = 1;
                    Object objC = C0041Bp.c(c0041Bp, this);
                    EnumC0091Dn enumC0091Dn = EnumC0091Dn.l;
                    if (objC == enumC0091Dn) {
                        return enumC0091Dn;
                    }
                } else {
                    if (i != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    IJ.H(obj);
                }
                return Oh0.a;
            default:
                int i2 = this.q;
                if (i2 != 0) {
                    if (i2 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    IJ.H(obj);
                    return obj;
                }
                IJ.H(obj);
                C0960cy c0960cy = (C0960cy) this.r;
                this.q = 1;
                c0960cy.getClass();
                Object objA = C0960cy.a(c0960cy, this);
                EnumC0091Dn enumC0091Dn2 = EnumC0091Dn.l;
                return objA == enumC0091Dn2 ? enumC0091Dn2 : objA;
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C2087op(C0041Bp c0041Bp, InterfaceC0220Im interfaceC0220Im) {
        super(3, interfaceC0220Im);
        this.r = c0041Bp;
    }
}
