package Z5;

import O6.p;
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 n extends G6.i implements p {

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public n(boolean z8, o oVar, Movie movie, E6.d dVar) {
        super(2, dVar);
        this.f7458v = z8;
        this.f7459w = oVar;
        this.f7460x = movie;
    }

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

    /* JADX WARN: Code restructure failed: missing block: B:16:0x004e, code lost:
    
        if (r9 == r0) goto L17;
     */
    @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.f7457u;
        o oVar = this.f7459w;
        if (i == 0) {
            C1.N(obj);
            if (this.f7458v) {
                this.f7457u = 1;
                if (AbstractC0385z.h(400L, this) != aVar) {
                }
                return aVar;
            }
        } else {
            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)) {
                    K k8 = oVar.f7464g;
                    k kVar = new k((Movie) objA);
                    k8.getClass();
                    k8.g(null, kVar);
                }
                return A6.n.f457a;
            }
            C1.N(obj);
        }
        K k9 = oVar.f7464g;
        Movie movie = this.f7460x;
        j jVar = new j(movie);
        k9.getClass();
        k9.g(null, jVar);
        this.f7457u = 2;
        objA = oVar.f7462e.a(movie.f11069q, this);
    }
}
