package o;

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

    @Override // o.TC
    public final Object d(Object obj, Object obj2, Object obj3) {
        C1607jm0 c1607jm0 = new C1607jm0(3, (InterfaceC0220Im) obj3);
        c1607jm0.q = (InterfaceC2294qz) obj;
        c1607jm0.r = (Object[]) obj2;
        return c1607jm0.n(Oh0.a);
    }

    @Override // o.AbstractC0728ad
    public final Object n(Object obj) {
        AbstractC1320gm abstractC1320gm;
        AbstractC1320gm abstractC1320gm2;
        int i = this.p;
        if (i == 0) {
            IJ.H(obj);
            InterfaceC2294qz interfaceC2294qz = this.q;
            AbstractC1320gm[] abstractC1320gmArr = (AbstractC1320gm[]) this.r;
            int length = abstractC1320gmArr.length;
            int i2 = 0;
            while (true) {
                abstractC1320gm = C1128em.a;
                if (i2 >= length) {
                    abstractC1320gm2 = null;
                    break;
                }
                abstractC1320gm2 = abstractC1320gmArr[i2];
                if (!F3.c(abstractC1320gm2, abstractC1320gm)) {
                    break;
                }
                i2++;
            }
            if (abstractC1320gm2 != null) {
                abstractC1320gm = abstractC1320gm2;
            }
            this.p = 1;
            Object objC = interfaceC2294qz.c(abstractC1320gm, 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;
    }
}
