package X0;

import B.B0;
import androidx.navigation.C1134i;
import n.C2594v;

/* JADX INFO: renamed from: X0.w, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0809w implements InterfaceC0807u {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final C3.j f8527a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final C0793f f8528b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final T.p f8529c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final B f8530d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final C0.B f8531e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final B.V f8532f;

    public C0809w(C3.j jVar, C0793f c0793f) {
        T.p pVar = x.f8533a;
        B b5 = new B(x.f8534b);
        C0.B b6 = new C0.B(20);
        this.f8527a = jVar;
        this.f8528b = c0793f;
        this.f8529c = pVar;
        this.f8530d = b5;
        this.f8531e = b6;
        this.f8532f = new B.V(this, 24);
    }

    public final W a(T t6) {
        T.p pVar = this.f8529c;
        B0 b02 = new B0(20, this, t6);
        synchronized (((C1134i) pVar.f6345b)) {
            W w6 = (W) ((C2594v) pVar.f6346c).get(t6);
            if (w6 != null) {
                if (w6.a()) {
                    return w6;
                }
            }
            try {
                W w7 = (W) b02.invoke(new B0(21, pVar, t6));
                synchronized (((C1134i) pVar.f6345b)) {
                    if (((C2594v) pVar.f6346c).get(t6) == null && w7.a()) {
                        ((C2594v) pVar.f6346c).put(t6, w7);
                    }
                }
                return w7;
            } catch (Exception e6) {
                throw new IllegalStateException("Could not load font", e6);
            }
        }
    }

    public final W b(AbstractC0808v abstractC0808v, I i6, int i7, int i8) {
        C0793f c0793f = this.f8528b;
        c0793f.getClass();
        int i9 = c0793f.f8481a;
        I i10 = (i9 == 0 || i9 == Integer.MAX_VALUE) ? i6 : new I(L4.a.v(i6.f8452a + i9, 1, 1000));
        this.f8527a.getClass();
        return a(new T(abstractC0808v, i10, i7, i8, null));
    }
}
