package V2;

import Y4.C0851q;
import Y4.InterfaceC0843i;
import com.debridstream.tv.HomeViewModel;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public S1(HomeViewModel homeViewModel, A4.d dVar) {
        super(2, dVar);
        this.f7530b = homeViewModel;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new S1(this.f7530b, dVar);
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((S1) create((V4.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.f7529a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            N1 n12 = new N1(u3.f8112c, 1);
            HomeViewModel homeViewModel = this.f7530b;
            InterfaceC0843i interfaceC0843iJ = Y4.O.j(new C0851q(new InterfaceC0843i[]{z3.f8213b, g3.k.f16506g, i3.M.f18902f, n12}, new Q1(homeViewModel, null)));
            J1 j12 = new J1(homeViewModel, 2);
            this.f7529a = 1;
            if (interfaceC0843iJ.collect(j12, this) == aVar) {
                return aVar;
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        return C3137A.f25453a;
    }
}
