package G5;

import Z6.AbstractC0385z;
import Z6.InterfaceC0382w;
import c7.K;
import com.google.android.gms.internal.measurement.C1;
import com.martsnew.domain.model.Movie;

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public p(q qVar, Movie movie, E6.d dVar) {
        super(2, dVar);
        this.f3006v = qVar;
        this.f3007w = movie;
    }

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

    /* JADX WARN: Code restructure failed: missing block: B:14:0x004a, code lost:
    
        if (r10 == r0) goto L15;
     */
    @Override // G6.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object p(Object obj) throws Throwable {
        Object objA;
        F6.a aVar = F6.a.f2580q;
        int i = this.f3005u;
        q qVar = this.f3006v;
        K k8 = qVar.i;
        if (i == 0) {
            C1.N(obj);
            this.f3005u = 1;
            if (AbstractC0385z.h(400L, this) != aVar) {
            }
            return aVar;
        }
        if (i != 1) {
            if (i != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C1.N(obj);
            objA = ((A6.j) obj).f449q;
            if (!(objA instanceof A6.i)) {
                l lVar = new l((Movie) objA);
                k8.getClass();
                k8.g(null, lVar);
            }
            return A6.n.f457a;
        }
        C1.N(obj);
        Movie movie = this.f3007w;
        k kVar = new k(movie);
        k8.getClass();
        k8.g(null, kVar);
        this.f3005u = 2;
        objA = qVar.f3010f.a(movie.f11069q, this);
    }
}
