package V2;

import com.debridstream.tv.HomeViewModel;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import m3.AbstractC2467b;
import w4.C3137A;
import x4.AbstractC3253s;

/* JADX INFO: renamed from: V2.w2, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0735w2 extends C4.j implements J4.e {

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0735w2(List list, HomeViewModel homeViewModel, LinkedHashMap linkedHashMap, A4.d dVar) {
        super(2, dVar);
        this.f8143c = list;
        this.f8144d = homeViewModel;
        this.f8145e = linkedHashMap;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        C0735w2 c0735w2 = new C0735w2(this.f8143c, this.f8144d, this.f8145e, dVar);
        c0735w2.f8142b = obj;
        return c0735w2;
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        Integer num;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f8141a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            V4.C c6 = (V4.C) this.f8142b;
            List list = this.f8143c;
            ArrayList arrayList = new ArrayList(AbstractC3253s.G(list, 10));
            Iterator it = list.iterator();
            while (it.hasNext()) {
                int iIntValue = ((Number) it.next()).intValue();
                c5.e eVar = V4.N.f8259a;
                arrayList.add(V4.E.e(c6, c5.d.f13466b, new C0731v2(iIntValue, this.f8144d, null), 2));
            }
            this.f8141a = 1;
            obj = V4.E.f(arrayList, this);
            if (obj == aVar) {
                return aVar;
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        for (w4.k kVar : (Iterable) obj) {
            int iIntValue2 = ((Number) kVar.f25469a).intValue();
            Y2.r rVar = (Y2.r) kVar.f25470b;
            if (rVar != null && (num = rVar.f8786c) != null && num.intValue() > 1990) {
                this.f8145e.putIfAbsent(new Integer(iIntValue2), rVar);
            }
        }
        return C3137A.f25453a;
    }
}
