package c1;

import T0.C0599j;
import T0.C0604o;
import T0.O;
import T0.r;
import T0.w;
import T0.y;
import android.text.TextPaint;
import f1.C2024l;
import java.util.ArrayList;
import p0.AbstractC2711q;
import p0.InterfaceC2712s;
import p0.W;

/* JADX INFO: renamed from: c1.j, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC1235j {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final C1236k f13418a = new C1236k(false);

    public static final boolean a(O o6) {
        w wVar;
        y yVar = o6.f6487c;
        C0599j c0599j = (yVar == null || (wVar = yVar.f6573b) == null) ? null : new C0599j(wVar.f6570b);
        boolean z6 = false;
        if (c0599j != null && c0599j.f6522a == 1) {
            z6 = true;
        }
        return !z6;
    }

    public static final void b(C0604o c0604o, InterfaceC2712s interfaceC2712s, AbstractC2711q abstractC2711q, float f6, W w6, C2024l c2024l, r0.f fVar) {
        ArrayList arrayList = c0604o.f6539h;
        int size = arrayList.size();
        for (int i6 = 0; i6 < size; i6++) {
            r rVar = (r) arrayList.get(i6);
            rVar.f6547a.g(interfaceC2712s, abstractC2711q, f6, w6, c2024l, fVar);
            interfaceC2712s.p(0.0f, rVar.f6547a.b());
        }
    }

    public static final void c(TextPaint textPaint, float f6) {
        if (Float.isNaN(f6)) {
            return;
        }
        if (f6 < 0.0f) {
            f6 = 0.0f;
        }
        if (f6 > 1.0f) {
            f6 = 1.0f;
        }
        textPaint.setAlpha(Math.round(f6 * 255));
    }
}
