package h3;

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

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C2156n(AbstractC2138k abstractC2138k, E.D d6, CatalogBrowseViewModel catalogBrowseViewModel, A4.d dVar) {
        super(2, dVar);
        this.f18190b = abstractC2138k;
        this.f18191c = d6;
        this.f18192d = catalogBrowseViewModel;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new C2156n(this.f18190b, this.f18191c, this.f18192d, dVar);
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((C2156n) 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.f18189a;
        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);
        if (this.f18190b.a()) {
            InterfaceC0843i interfaceC0843iJ = Y4.O.j(SnapshotStateKt.snapshotFlow(new M2.C1(this.f18191c, 1)));
            M2.D1 d1 = new M2.D1(this.f18192d, 1);
            this.f18189a = 1;
            Object objCollect = interfaceC0843iJ.collect(new M2.F1(d1, 7), this);
            if (objCollect != aVar) {
                objCollect = c3137a;
            }
            if (objCollect == aVar) {
                return aVar;
            }
        }
        return c3137a;
    }
}
