package S2;

import V4.C;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

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

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ N2.r f6212e;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public t(List list, String str, N2.r rVar, A4.d dVar) {
        super(2, dVar);
        this.f6210c = list;
        this.f6211d = str;
        this.f6212e = rVar;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new t(this.f6210c, this.f6211d, this.f6212e, dVar);
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        Iterator it;
        Object obj2;
        Object obj3 = B4.a.f492a;
        int i6 = this.f6209b;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            it = this.f6210c.iterator();
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            it = this.f6208a;
            AbstractC2467b.l(obj);
        }
        do {
            boolean zHasNext = it.hasNext();
            obj2 = C3137A.f25453a;
            if (!zHasNext) {
                return obj2;
            }
            String str = (String) it.next();
            this.f6208a = it;
            this.f6209b = 1;
            AtomicInteger atomicInteger = w.f6217a;
            Object objJ = w.j(this, this.f6212e, A0.a.n("/torrents/delete/", str), this.f6211d, "DELETE", null);
            if (objJ == B4.a.f492a) {
                obj2 = objJ;
            }
        } while (obj2 != obj3);
        return obj3;
    }
}
