package a3;

import java.util.Iterator;
import java.util.List;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ n0.x f10587d;

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public S(List list, List list2, n0.x xVar, String str, A4.d dVar) {
        super(2, dVar);
        this.f10585b = list;
        this.f10586c = list2;
        this.f10587d = xVar;
        this.f10588e = str;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new S(this.f10585b, this.f10586c, this.f10587d, this.f10588e, dVar);
    }

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

    /* JADX WARN: Removed duplicated region for block: B:23:0x0059  */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f10584a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            this.f10584a = 1;
            if (V4.E.l(40L, this) == aVar) {
                return aVar;
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        Iterator it = this.f10585b.iterator();
        int i7 = 0;
        while (true) {
            if (!it.hasNext()) {
                i7 = -1;
                break;
            }
            if (S4.w.t0(((T) it.next()).f10589a, this.f10588e, true)) {
                break;
            }
            i7++;
        }
        if (i7 >= 0) {
            List list = this.f10586c;
            if (i7 < list.size()) {
                n0.x.a((n0.x) list.get(i7));
            } else {
                n0.x.a(this.f10587d);
            }
        }
        return C3137A.f25453a;
    }
}
