package o5;

import c5.C0584c;
import com.google.android.gms.internal.measurement.C1;
import com.martsnew.domain.model.Movie;
import f5.C0926C;
import f5.C0939P;
import f5.C0942c;
import f5.C0943d;
import h5.AbstractC1033b;
import java.io.Serializable;

/* JADX INFO: renamed from: o5.d, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1365d {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final C0926C f15753a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final C0939P f15754b;

    public C1365d(C0926C c0926c, C0939P c0939p) {
        P6.g.e(c0926c, "movieRepository");
        P6.g.e(c0939p, "userRepository");
        this.f15753a = c0926c;
        this.f15754b = c0939p;
    }

    /* JADX WARN: Code restructure failed: missing block: B:19:0x005c, code lost:
    
        if (r2 == r4) goto L25;
     */
    /* JADX WARN: Code restructure failed: missing block: B:24:0x0093, code lost:
    
        if (r2 == r4) goto L25;
     */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0019  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Serializable a(Movie movie, G6.c cVar) {
        C1364c c1364c;
        if (cVar instanceof C1364c) {
            c1364c = (C1364c) cVar;
            int i = c1364c.f15752v;
            if ((i & Integer.MIN_VALUE) != 0) {
                c1364c.f15752v = i - Integer.MIN_VALUE;
            } else {
                c1364c = new C1364c(this, cVar);
            }
        }
        Object objA = c1364c.f15750t;
        F6.a aVar = F6.a.f2580q;
        int i5 = c1364c.f15752v;
        if (i5 != 0) {
            if (i5 == 1) {
                C1.N(objA);
                return C1.y((X4.c) objA);
            }
            if (i5 != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C1.N(objA);
            return C1.y((X4.c) objA);
        }
        C1.N(objA);
        boolean zB = this.f15754b.b();
        C0926C c0926c = this.f15753a;
        if (zB) {
            long j8 = movie.f11069q;
            c1364c.f15752v = 1;
            c0926c.getClass();
            o6.x xVar = AbstractC1033b.f13423a;
            objA = AbstractC1033b.a(new C0942c(c0926c, j8, null), c1364c);
        } else {
            long j9 = movie.f11069q;
            String str = movie.f11076x.f11108q;
            String strA = movie.a();
            String strD = movie.d();
            C0584c c0584c = new C0584c(j9, movie.f11072t, str, movie.f11071s, movie.f11070r, movie.f11074v, strA, strD);
            c1364c.f15752v = 2;
            c0926c.getClass();
            o6.x xVar2 = AbstractC1033b.f13423a;
            objA = AbstractC1033b.a(new C0943d(c0926c, c0584c, null), c1364c);
        }
        return aVar;
    }
}
