package h3;

import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.State;
import com.debridstream.tv.screens.SearchRecommendationsViewModel;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ n0.x f17059d;

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

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ MutableState f17061f;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public M2(boolean z6, SearchRecommendationsViewModel searchRecommendationsViewModel, n0.x xVar, State state, MutableState mutableState, A4.d dVar) {
        super(2, dVar);
        this.f17057b = z6;
        this.f17058c = searchRecommendationsViewModel;
        this.f17059d = xVar;
        this.f17060e = state;
        this.f17061f = mutableState;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new M2(this.f17057b, this.f17058c, this.f17059d, this.f17060e, this.f17061f, dVar);
    }

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

    /* JADX WARN: Multi-variable type inference failed */
    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f17056a;
        C3137A c3137a = C3137A.f25453a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            float f6 = T2.f17380a;
            State state = this.f17060e;
            if (((U2) state.getValue()).f17477b || !((U2) state.getValue()).f17483h || ((((U2) state.getValue()).f17480e.isEmpty() && ((U2) state.getValue()).f17482g.isEmpty()) || ((this.f17057b && this.f17058c.hasPendingPosterRestore()) || ((EnumC2129i2) this.f17061f.getValue()) == EnumC2129i2.f18048b))) {
                return c3137a;
            }
            this.f17056a = 1;
            if (V4.E.l(80L, this) == aVar) {
                return aVar;
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        n0.x.a(this.f17059d);
        return c3137a;
    }
}
