package f5;

import Z6.InterfaceC0382w;
import b5.C0543d;
import c5.C0582a;
import com.google.android.gms.internal.measurement.C1;
import com.martsnew.data.model.request.ContinueWatchRequest;
import com.martsnew.data.model.response.ContinueWatchResponse;
import com.martsnew.data.model.response.MovieResponse;
import d5.AbstractC0844a;
import e5.InterfaceC0881a;
import n4.u0;

/* JADX INFO: renamed from: f5.g, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0946g extends G6.i implements O6.p {

    /* JADX INFO: renamed from: A, reason: collision with root package name */
    public final /* synthetic */ int f12776A;

    /* JADX INFO: renamed from: B, reason: collision with root package name */
    public final /* synthetic */ long f12777B;

    /* JADX INFO: renamed from: C, reason: collision with root package name */
    public final /* synthetic */ int f12778C;
    public final /* synthetic */ MovieResponse D;

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

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

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public final /* synthetic */ long f12781w;

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    public final /* synthetic */ long f12782x;

    /* JADX INFO: renamed from: y, reason: collision with root package name */
    public final /* synthetic */ int f12783y;

    /* JADX INFO: renamed from: z, reason: collision with root package name */
    public final /* synthetic */ long f12784z;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0946g(C0926C c0926c, long j8, long j9, int i, long j10, int i5, long j11, int i8, MovieResponse movieResponse, E6.d dVar) {
        super(2, dVar);
        this.f12780v = c0926c;
        this.f12781w = j8;
        this.f12782x = j9;
        this.f12783y = i;
        this.f12784z = j10;
        this.f12776A = i5;
        this.f12777B = j11;
        this.f12778C = i8;
        this.D = movieResponse;
    }

    @Override // O6.p
    public final Object k(Object obj, Object obj2) {
        return ((C0946g) 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 C0946g(this.f12780v, this.f12781w, this.f12782x, this.f12783y, this.f12784z, this.f12776A, this.f12777B, this.f12778C, this.D, dVar);
    }

    @Override // G6.a
    public final Object p(Object obj) throws Throwable {
        A6.n nVar;
        Object objE;
        F6.a aVar = F6.a.f2580q;
        int i = this.f12779u;
        A6.n nVar2 = A6.n.f457a;
        C0926C c0926c = this.f12780v;
        if (i == 0) {
            C1.N(obj);
            InterfaceC0881a interfaceC0881a = c0926c.f12713a;
            String strL = AbstractC0844a.l(C1.v(c0926c.f12714b), g6.o.f12958a.q());
            nVar = nVar2;
            ContinueWatchRequest continueWatchRequest = new ContinueWatchRequest(this.f12781w, this.f12782x, this.f12783y, this.f12784z, this.f12776A, this.f12777B, this.f12778C);
            this.f12779u = 1;
            objE = interfaceC0881a.e(strL, continueWatchRequest, this);
            if (objE != aVar) {
            }
        }
        if (i != 1) {
            if (i != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C1.N(obj);
            return nVar2;
        }
        C1.N(obj);
        objE = obj;
        nVar = nVar2;
        ContinueWatchResponse continueWatchResponse = (ContinueWatchResponse) objE;
        C0543d c0543d = c0926c.f12717e;
        C0582a c0582a = new C0582a(continueWatchResponse.f10691a, continueWatchResponse.f10692b, continueWatchResponse.f10693c, continueWatchResponse.f10694d, continueWatchResponse.f10695e, continueWatchResponse.f10696f, continueWatchResponse.f10697g, continueWatchResponse.f10698h, continueWatchResponse.i, continueWatchResponse.f10699j, continueWatchResponse.f10700k, this.D);
        this.f12779u = 2;
        Object objV = u0.v(this, c0543d.f9207a, new a7.c(c0543d, 2, c0582a), false, true);
        if (objV != aVar) {
            objV = nVar;
        }
        return objV == aVar ? aVar : nVar;
    }
}
