package M2;

import com.debridstream.tv.HomeSection;
import com.debridstream.tv.HomeViewModel;
import java.util.Iterator;
import java.util.List;
import m3.AbstractC2467b;
import w4.C3137A;

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

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ V2.F1 f4260a;

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public F0(V2.F1 f12, List list, HomeViewModel homeViewModel, HomeSection homeSection, A4.d dVar) {
        super(2, dVar);
        this.f4260a = f12;
        this.f4261b = list;
        this.f4262c = homeViewModel;
        this.f4263d = homeSection;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new F0(this.f4260a, this.f4261b, this.f4262c, this.f4263d, dVar);
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        AbstractC2467b.l(obj);
        V2.F1 f12 = this.f4260a;
        if (f12 != null) {
            Iterator it = this.f4261b.iterator();
            int i6 = 0;
            while (true) {
                if (!it.hasNext()) {
                    i6 = -1;
                    break;
                }
                if (kotlin.jvm.internal.o.c(((HomeSection) it.next()).getId(), this.f4263d.getId())) {
                    break;
                }
                i6++;
            }
            int i7 = i6;
            if (i7 >= 0) {
                HomeViewModel.requestSectionsAround$default(this.f4262c, f12, i7, 0, 4, null);
            }
        }
        return C3137A.f25453a;
    }
}
