package o5;

import com.google.android.gms.internal.measurement.C1;
import com.martsnew.data.model.response.MovieListResponse;
import f5.C0926C;
import f5.C0961v;
import h5.AbstractC1033b;
import java.io.Serializable;
import java.util.List;
import n4.u0;

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

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final j5.q f15745b;

    public C1361K(C0926C c0926c, j5.q qVar) {
        P6.g.e(c0926c, "movieRepository");
        P6.g.e(qVar, "movieMapper");
        this.f15744a = c0926c;
        this.f15745b = qVar;
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Serializable a(G6.c cVar) {
        C1360J c1360j;
        C1361K c1361k;
        if (cVar instanceof C1360J) {
            c1360j = (C1360J) cVar;
            int i = c1360j.f15743w;
            if ((i & Integer.MIN_VALUE) != 0) {
                c1360j.f15743w = i - Integer.MIN_VALUE;
            } else {
                c1360j = new C1360J(this, cVar);
            }
        }
        Object objA = c1360j.f15741u;
        F6.a aVar = F6.a.f2580q;
        int i5 = c1360j.f15743w;
        if (i5 == 0) {
            C1.N(objA);
            c1360j.f15740t = this;
            c1360j.f15743w = 1;
            C0926C c0926c = this.f15744a;
            c0926c.getClass();
            o6.x xVar = AbstractC1033b.f13423a;
            objA = AbstractC1033b.a(new C0961v(c0926c, null), c1360j);
            if (objA == aVar) {
                return aVar;
            }
            c1361k = this;
        } else {
            if (i5 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            c1361k = c1360j.f15740t;
            C1.N(objA);
        }
        X4.c cVar2 = (X4.c) objA;
        if (cVar2 instanceof X4.a) {
            return C1.j(((X4.a) cVar2).f7227a);
        }
        if (!(cVar2 instanceof X4.b)) {
            throw new A6.b();
        }
        j5.q qVar = c1361k.f15745b;
        List list = ((MovieListResponse) ((X4.b) cVar2).f7228a).f10856a;
        qVar.getClass();
        return (Serializable) u0.u(qVar, list);
    }
}
