package M2;

import V2.C0654e1;
import V2.n3;
import V2.t3;
import V2.u3;
import h3.x5;
import w4.C3137A;
import w4.InterfaceC3143e;

/* JADX INFO: renamed from: M2.e0, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class C0505e0 implements J4.a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f4687a = 0;

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ InterfaceC3143e f4689c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ Object f4690d;

    public /* synthetic */ C0505e0(J4.f fVar, C0654e1 c0654e1, boolean z6) {
        this.f4689c = fVar;
        this.f4690d = c0654e1;
        this.f4688b = z6;
    }

    @Override // J4.a
    public final Object invoke() {
        Integer numValueOf;
        C3137A c3137a = C3137A.f25453a;
        Integer numValueOf2 = null;
        Object obj = this.f4690d;
        InterfaceC3143e interfaceC3143e = this.f4689c;
        boolean z6 = this.f4688b;
        switch (this.f4687a) {
            case 0:
                C0654e1 c0654e1 = (C0654e1) obj;
                Long l = c0654e1.f7741b;
                if (z6) {
                    Integer num = c0654e1.f7742c;
                    numValueOf = Integer.valueOf(num != null ? num.intValue() : 1);
                } else {
                    numValueOf = null;
                }
                if (z6) {
                    Integer num2 = c0654e1.f7743d;
                    numValueOf2 = Integer.valueOf(num2 != null ? num2.intValue() : 1);
                }
                ((J4.f) interfaceC3143e).invoke(l, numValueOf, numValueOf2);
                break;
            default:
                if (!z6) {
                    a5.c cVar = u3.f8110a;
                    int iV = L4.a.v(((x5) obj).f18699a, 0, 14);
                    Y4.c0 c0Var = u3.f8111b;
                    n3 it = (n3) c0Var.getValue();
                    kotlin.jvm.internal.o.h(it, "it");
                    n3 n3VarA = n3.a(it, null, null, null, null, null, null, null, null, iV, 255);
                    c0Var.k(null, n3VarA);
                    V4.E.y(u3.f8110a, null, null, new t3(n3VarA, null), 3);
                } else {
                    ((J4.a) interfaceC3143e).invoke();
                }
                break;
        }
        return c3137a;
    }

    public /* synthetic */ C0505e0(boolean z6, J4.a aVar, x5 x5Var) {
        this.f4688b = z6;
        this.f4689c = aVar;
        this.f4690d = x5Var;
    }
}
