package M5;

import Z6.InterfaceC0382w;
import c7.K;
import com.google.android.gms.internal.measurement.C1;
import com.martsnew.domain.model.Movie;
import java.util.List;
import y5.C1763h;

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public s(E6.d dVar, x xVar, Movie movie) {
        super(2, dVar);
        this.f4329v = xVar;
        this.f4330w = movie;
    }

    @Override // O6.p
    public final Object k(Object obj, Object obj2) {
        return ((s) 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 s(dVar, this.f4329v, this.f4330w);
    }

    @Override // G6.a
    public final Object p(Object obj) throws Throwable {
        Object objA;
        F6.a aVar = F6.a.f2580q;
        int i = this.f4328u;
        long j8 = this.f4330w.f11069q;
        x xVar = this.f4329v;
        if (i == 0) {
            C1.N(obj);
            if (xVar.f4345g.f16277a.b()) {
                List listC = C1.C(new Long(j8));
                this.f4328u = 1;
                objA = xVar.f4348k.a(listC, this);
                if (objA == aVar) {
                    return aVar;
                }
            }
            return A6.n.f457a;
        }
        if (i != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        C1.N(obj);
        objA = ((A6.j) obj).f449q;
        if (!(objA instanceof A6.i)) {
            K k8 = xVar.f4350m;
            C1763h c1763h = new C1763h(new p(((List) objA).contains(new Long(j8))));
            k8.getClass();
            k8.g(null, c1763h);
        }
        return A6.n.f457a;
    }
}
