package V2;

import androidx.compose.runtime.State;
import com.debridstream.tv.screens.VideoDetailsViewModel;
import h3.z5;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ androidx.navigation.H f7646c;

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public Z(VideoDetailsViewModel videoDetailsViewModel, androidx.navigation.H h5, State state, A4.d dVar) {
        super(2, dVar);
        this.f7645b = videoDetailsViewModel;
        this.f7646c = h5;
        this.f7647d = state;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new Z(this.f7645b, this.f7646c, this.f7647d, dVar);
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((Z) 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.f7644a;
        C3137A c3137a = C3137A.f25453a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            q.F0 f0 = AbstractC0693m0.f7892a;
            if (((z5) this.f7647d.getValue()).f18777a == null) {
                this.f7644a = 1;
                if (V4.E.l(1L, this) == aVar) {
                    return aVar;
                }
            }
            return c3137a;
        }
        if (i6 != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        AbstractC2467b.l(obj);
        if (((z5) this.f7645b.getUiState().getValue()).f18777a == null) {
            androidx.navigation.H h5 = this.f7646c;
            if (h5.p("video_player", true, false) && h5.b()) {
                return c3137a;
            }
            androidx.navigation.B bG = h5.g();
            if (kotlin.jvm.internal.o.c(bG != null ? bG.f12645j : null, "video_details")) {
                h5.o();
            }
        }
        return c3137a;
    }
}
