package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.r80, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2312r80 extends Sb0 implements SC {
    public final /* synthetic */ int p;
    public int q;
    public final /* synthetic */ C2692v80 r;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C2312r80(C2692v80 c2692v80, InterfaceC0220Im interfaceC0220Im, int i) {
        super(2, interfaceC0220Im);
        this.p = i;
        this.r = c2692v80;
    }

    @Override // o.SC
    public final Object f(Object obj, Object obj2) {
        InterfaceC0065Cn interfaceC0065Cn = (InterfaceC0065Cn) obj;
        InterfaceC0220Im interfaceC0220Im = (InterfaceC0220Im) obj2;
        switch (this.p) {
        }
        return ((C2312r80) l(interfaceC0065Cn, interfaceC0220Im)).n(Oh0.a);
    }

    @Override // o.AbstractC0728ad
    public final InterfaceC0220Im l(Object obj, InterfaceC0220Im interfaceC0220Im) {
        switch (this.p) {
            case 0:
                return new C2312r80(this.r, interfaceC0220Im, 0);
            default:
                return new C2312r80(this.r, interfaceC0220Im, 1);
        }
    }

    @Override // o.AbstractC0728ad
    public final Object n(Object obj) {
        switch (this.p) {
            case 0:
                int i = this.q;
                if (i == 0) {
                    IJ.H(obj);
                    C2692v80 c2692v80 = this.r;
                    C2958xz c2958xz = new C2958xz(c2692v80.e.b(), new C0155Fz(c2692v80, (InterfaceC0220Im) null));
                    C2778w4 c2778w4 = new C2778w4(3, c2692v80);
                    this.q = 1;
                    Object objA = c2958xz.a(c2778w4, this);
                    EnumC0091Dn enumC0091Dn = EnumC0091Dn.l;
                    if (objA == 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;
                InterfaceC0220Im interfaceC0220Im = null;
                C2692v80 c2692v802 = this.r;
                try {
                    if (i2 == 0) {
                        IJ.H(obj);
                        InterfaceC1326gp interfaceC1326gp = c2692v802.e;
                        C2502t80 c2502t80 = new C2502t80(c2692v802, interfaceC0220Im, 0);
                        this.q = 1;
                        Object objA2 = interfaceC1326gp.a(c2502t80, this);
                        EnumC0091Dn enumC0091Dn2 = EnumC0091Dn.l;
                        if (objA2 == enumC0091Dn2) {
                            return enumC0091Dn2;
                        }
                    } else {
                        if (i2 != 1) {
                            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                        }
                        IJ.H(obj);
                    }
                } catch (Exception e) {
                    e.getMessage();
                    Y60 y60 = c2692v802.h;
                    if (y60 == null) {
                        y60 = null;
                    }
                    c2692v802.h = Y60.a(y60, null, c2692v802.d.a(), null, 5);
                }
                return Oh0.a;
        }
    }
}
