package d3;

import V2.P2;
import V2.Q2;
import V2.n3;
import a3.C0963b;
import android.content.Context;
import androidx.compose.runtime.State;
import androidx.media3.exoplayer.ExoPlayer;
import com.debridstream.tv.PlayerViewModel;
import j$.time.format.DateTimeFormatter;
import java.util.List;
import m3.AbstractC2467b;
import okhttp3.OkHttpClient;
import w4.C3137A;

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

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

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

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

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

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

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

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final /* synthetic */ N2.r f15418j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final /* synthetic */ OkHttpClient f15419k;
    public final /* synthetic */ State l;

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public W1(Context context, ExoPlayer exoPlayer, PlayerViewModel playerViewModel, C1921s c1921s, P2 p22, N2.r rVar, OkHttpClient okHttpClient, State state, State state2, State state3, State state4, State state5, State state6, A4.d dVar) {
        super(2, dVar);
        this.f15413b = context;
        this.f15414c = exoPlayer;
        this.f15415d = playerViewModel;
        this.f15416e = c1921s;
        this.f15417f = p22;
        this.f15418j = rVar;
        this.f15419k = okHttpClient;
        this.l = state;
        this.f15420m = state2;
        this.f15421n = state3;
        this.f15422o = state4;
        this.f15423p = state5;
        this.f15424q = state6;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new W1(this.f15413b, this.f15414c, this.f15415d, this.f15416e, this.f15417f, this.f15418j, this.f15419k, this.l, this.f15420m, this.f15421n, this.f15422o, this.f15423p, this.f15424q, dVar);
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((W1) 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.f15412a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            DateTimeFormatter dateTimeFormatter = v2.f16084a;
            V2.O0 o02 = ((n3) this.l.getValue()).f7975e;
            C0963b c0963b = new C0963b(o02.f7461b, o02.f7463d, o02.f7462c);
            C1921s c1921s = this.f15416e;
            kotlin.jvm.internal.o.e(c1921s);
            P2 p22 = this.f15417f;
            kotlin.jvm.internal.o.e(p22);
            State state = this.f15420m;
            r rVar = new r(this.f15413b, this.f15414c, this.f15415d, c1921s, p22, ((Q2) state.getValue()).f7497b, ((Q2) state.getValue()).f7498c, (List) this.f15421n.getValue(), (N2.f) this.f15422o.getValue(), (String) this.f15423p.getValue(), ((Boolean) this.f15424q.getValue()).booleanValue(), c0963b, this.f15418j, this.f15419k);
            this.f15412a = 1;
            if (v2.j0(rVar, this) == aVar) {
                return aVar;
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        return C3137A.f25453a;
    }
}
