package M5;

import Z6.InterfaceC0382w;
import c7.C0592C;
import c7.H;
import com.google.android.gms.internal.measurement.C1;
import com.martsnew.tv.ui.movie_detail.TvMovieDetailFragment;

/* JADX INFO: loaded from: classes.dex */
public final class g extends G6.i implements O6.p {

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

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public final /* synthetic */ TvMovieDetailFragment f4306v;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public g(E6.d dVar, TvMovieDetailFragment tvMovieDetailFragment) {
        super(2, dVar);
        this.f4306v = tvMovieDetailFragment;
    }

    @Override // O6.p
    public final Object k(Object obj, Object obj2) {
        return ((g) m((E6.d) obj2, (InterfaceC0382w) obj)).p(A6.n.f457a);
    }

    @Override // G6.a
    public final E6.d m(E6.d dVar, Object obj) {
        return new g(dVar, this.f4306v);
    }

    @Override // G6.a
    public final Object p(Object obj) throws Throwable {
        F6.a aVar = F6.a.f2580q;
        int i = this.f4305u;
        if (i == 0) {
            C1.N(obj);
            TvMovieDetailFragment tvMovieDetailFragment = this.f4306v;
            C0592C c0592c = new C0592C(tvMovieDetailFragment.h0().f4350m, 1);
            f fVar = new f(null, tvMovieDetailFragment);
            this.f4305u = 1;
            if (H.g(c0592c, fVar, this) == aVar) {
                return aVar;
            }
        } else {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C1.N(obj);
        }
        return A6.n.f457a;
    }
}
