package o;

import android.graphics.Typeface;
import android.text.Spannable;
import com.google.android.gms.common.api.Api;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Ys, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final /* synthetic */ class C0641Ys implements TC {
    public final /* synthetic */ int l;
    public final /* synthetic */ Object m;
    public final /* synthetic */ Object n;

    public /* synthetic */ C0641Ys(int i, Object obj, Object obj2) {
        this.l = i;
        this.m = obj;
        this.n = obj2;
    }

    @Override // o.TC
    public final Object d(Object obj, Object obj2, Object obj3) {
        Typeface typeface;
        switch (this.l) {
            case 0:
                C1453i50 c1453i50 = (C1453i50) this.m;
                C1981nj0 c1981nj0 = (C1981nj0) this.n;
                IX ix = (IX) obj;
                IX ix2 = (IX) obj2;
                C1765lT c1765lT = (C1765lT) obj3;
                c1453i50.I = 0L;
                if (((Boolean) c1453i50.C.g(ix)).booleanValue()) {
                    if (!c1453i50.H) {
                        if (c1453i50.F == null) {
                            c1453i50.F = AbstractC2841wm0.a(Api.BaseClientBuilder.API_PRIORITY_OTHER, 0, 6);
                        }
                        c1453i50.H = true;
                        AbstractC1692kh0.C(c1453i50.v0(), null, new C1142et(c1453i50, null), 3);
                    }
                    AbstractC0249Jp.o(c1981nj0, ix, 0L);
                    long jD = C1765lT.d(ix2.c, c1765lT.a);
                    C1210ff c1210ff = c1453i50.F;
                    if (c1210ff != null) {
                        c1210ff.p(new C0407Ps(jD));
                    }
                }
                break;
            default:
                Spannable spannable = (Spannable) this.m;
                M4 m4 = (M4) this.n;
                Y90 y90 = (Y90) obj;
                int iIntValue = ((Integer) obj2).intValue();
                int iIntValue2 = ((Integer) obj3).intValue();
                AbstractC1397hc0 abstractC1397hc0 = y90.f;
                OA oa = y90.c;
                if (oa == null) {
                    oa = OA.n;
                }
                MA ma = y90.d;
                int i = ma != null ? ma.a : 0;
                NA na = y90.e;
                int i2 = na != null ? na.a : 65535;
                N4 n4 = m4.l;
                C2926xh0 c2926xh0B = ((C2315rA) n4.p).b(abstractC1397hc0, oa, i, i2);
                if (c2926xh0B instanceof C2926xh0) {
                    typeface = (Typeface) c2926xh0B.l;
                } else {
                    C70 c70 = new C70(c2926xh0B, n4.u);
                    n4.u = c70;
                    typeface = (Typeface) c70.f65o;
                }
                spannable.setSpan(new C2505tA(1, typeface), iIntValue, iIntValue2, 33);
                break;
        }
        return Oh0.a;
    }
}
