package q5;

import R4.m;
import java.util.Iterator;
import m3.AbstractC2467b;
import p5.AbstractC2749t;
import p5.G;
import w4.C3137A;
import x4.C3249o;

/* JADX INFO: loaded from: classes3.dex */
public final class e extends C4.i implements J4.e {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public C3249o f23747a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public Iterator f23748b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public int f23749c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public /* synthetic */ Object f23750d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ G f23751e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ AbstractC2749t f23752f;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final /* synthetic */ boolean f23753j;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public e(G g6, AbstractC2749t abstractC2749t, boolean z6, A4.d dVar) {
        super(2, dVar);
        this.f23751e = g6;
        this.f23752f = abstractC2749t;
        this.f23753j = z6;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        e eVar = new e(this.f23751e, this.f23752f, this.f23753j, dVar);
        eVar.f23750d = obj;
        return eVar;
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((e) create((m) obj, (A4.d) obj2)).invokeSuspend(C3137A.f25453a);
    }

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        m mVar;
        C3249o c3249o;
        Iterator it;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f23749c;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            m mVar2 = (m) this.f23750d;
            C3249o c3249o2 = new C3249o();
            G g6 = this.f23751e;
            c3249o2.addLast(g6);
            mVar = mVar2;
            c3249o = c3249o2;
            it = this.f23752f.list(g6).iterator();
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            it = this.f23748b;
            C3249o c3249o3 = this.f23747a;
            mVar = (m) this.f23750d;
            AbstractC2467b.l(obj);
            c3249o = c3249o3;
        }
        while (it.hasNext()) {
            G g7 = (G) it.next();
            this.f23750d = mVar;
            this.f23747a = c3249o;
            this.f23748b = it;
            this.f23749c = 1;
            if (b.c(mVar, this.f23752f, c3249o, g7, this.f23753j, false, this) == aVar) {
                return aVar;
            }
        }
        return C3137A.f25453a;
    }
}
