package K2;

import V4.C;
import V4.E;
import java.util.List;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class d extends C4.j implements J4.e {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ List f4067c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ List f4068d;

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public d(boolean z6, List list, List list2, int i6, A4.d dVar) {
        super(2, dVar);
        this.f4066b = z6;
        this.f4067c = list;
        this.f4068d = list2;
        this.f4069e = i6;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new d(this.f4066b, this.f4067c, this.f4068d, this.f4069e, dVar);
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f4065a;
        C3137A c3137a = C3137A.f25453a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            if (!this.f4066b) {
                return c3137a;
            }
            this.f4065a = 1;
            if (E.l(40L, this) == aVar) {
                return aVar;
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        boolean zIsEmpty = this.f4067c.isEmpty();
        List list = this.f4068d;
        if (zIsEmpty) {
            n0.x.a((n0.x) list.get(this.f4069e));
            return c3137a;
        }
        n0.x.a((n0.x) list.get(0));
        return c3137a;
    }
}
