package O5;

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public o(boolean z8, p pVar, Movie movie, E6.d dVar) {
        super(2, dVar);
        this.f5212v = z8;
        this.f5213w = pVar;
        this.f5214x = movie;
    }

    @Override // O6.p
    public final Object k(Object obj, Object obj2) {
        return ((o) 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 o(this.f5212v, this.f5213w, this.f5214x, 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.f5211u;
        p pVar = this.f5213w;
        if (i == 0) {
            C1.N(obj);
            if (this.f5212v) {
                this.f5211u = 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 = pVar.f5218g;
                    l lVar = new l((Movie) objA);
                    k8.getClass();
                    k8.g(null, lVar);
                }
                return A6.n.f457a;
            }
            C1.N(obj);
        }
        K k9 = pVar.f5218g;
        Movie movie = this.f5214x;
        k kVar = new k(movie);
        k9.getClass();
        k9.g(null, kVar);
        this.f5211u = 2;
        objA = pVar.f5216e.a(movie.f11069q, this);
    }
}
