package h3;

import Y4.InterfaceC0843i;
import androidx.compose.runtime.SnapshotStateKt;
import com.debridstream.tv.screens.SearchRecommendationsViewModel;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ E.D f16756b;

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public D2(A4.d dVar, E.D d6, SearchRecommendationsViewModel searchRecommendationsViewModel) {
        super(2, dVar);
        this.f16756b = d6;
        this.f16757c = searchRecommendationsViewModel;
    }

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

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((D2) 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.f16755a;
        C3137A c3137a = C3137A.f25453a;
        if (i6 != 0) {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
            return c3137a;
        }
        AbstractC2467b.l(obj);
        InterfaceC0843i interfaceC0843iJ = Y4.O.j(SnapshotStateKt.snapshotFlow(new M2.C1(this.f16756b, 2)));
        J0.s1 s1Var = new J0.s1(this.f16757c, 5);
        this.f16755a = 1;
        Object objCollect = interfaceC0843iJ.collect(new M2.F1(s1Var, 9), this);
        if (objCollect != aVar) {
            objCollect = c3137a;
        }
        return objCollect == aVar ? aVar : c3137a;
    }
}
