package M2;

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

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ h1.c f4706b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ D.H f4707c;

    public /* synthetic */ C0510g(h1.c cVar, D.H h5, int i6) {
        this.f4705a = i6;
        this.f4706b = cVar;
        this.f4707c = h5;
    }

    @Override // J4.a
    public final Object invoke() {
        switch (this.f4705a) {
            case 0:
                float fY = this.f4706b.Y(220);
                return Float.valueOf(this.f4707c.g() == 0 ? 1.0f - L4.a.u(1.0f - (r1.h() / fY), 0.0f, 1.0f) : 1.0f);
            default:
                float fY2 = this.f4706b.Y(220);
                return Float.valueOf(this.f4707c.g() == 0 ? 1.0f - L4.a.u(1.0f - (r1.h() / fY2), 0.0f, 1.0f) : 1.0f);
        }
    }
}
