package F5;

import Z6.InterfaceC0382w;
import com.google.android.gms.internal.measurement.C1;
import com.martsnew.domain.model.Genre;
import java.util.List;
import n5.C1318b;

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public z(C c3, E6.d dVar) {
        super(2, dVar);
        this.f2579w = c3;
    }

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

    /* JADX WARN: Code restructure failed: missing block: B:24:0x0061, code lost:
    
        if (r3.f(r1, r6) == r0) goto L25;
     */
    @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.f2578v;
        C c3 = this.f2579w;
        if (i == 0) {
            C1.N(obj);
            C1318b c1318b = c3.f2520d;
            this.f2578v = 1;
            objA = c1318b.a(this);
            if (objA != aVar) {
            }
            return aVar;
        }
        if (i != 1) {
            if (i != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C1.N(obj);
            return A6.n.f457a;
        }
        C1.N(obj);
        objA = ((A6.j) obj).f449q;
        if (!(objA instanceof A6.i)) {
            List list = (List) objA;
            c3.f2522f.f(list);
            Genre genre = (Genre) B6.k.i0(list);
            if (genre != null) {
                genre.f11050u = true;
            }
            Genre genre2 = (Genre) B6.k.i0(list);
            c3.f2525j = genre2;
            if (genre2 != null) {
                c3.h(genre2);
            }
        }
        Throwable thA = A6.j.a(objA);
        if (thA != null) {
            this.f2577u = objA;
            this.f2578v = 2;
        }
        return A6.n.f457a;
    }
}
