package c.e.d;

import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Typeface;
import android.os.Build;
import c.e.c.b.e;
import c.e.f.m;

/* JADX INFO: loaded from: classes.dex */
@SuppressLint({"NewApi"})
public class c {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final i f5191a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final c.d.f<String, Typeface> f5192b;

    public static class a extends m {

        /* JADX INFO: renamed from: a, reason: collision with root package name */
        public e.a f5193a;

        public a(e.a aVar) {
            this.f5193a = aVar;
        }
    }

    static {
        int i2 = Build.VERSION.SDK_INT;
        f5191a = i2 >= 29 ? new g() : i2 >= 28 ? new f() : new e();
        f5192b = new c.d.f<>(16);
    }

    /* JADX WARN: Removed duplicated region for block: B:14:0x0027  */
    /* JADX WARN: Removed duplicated region for block: B:16:0x002a  */
    /* JADX WARN: Removed duplicated region for block: B:19:0x0030  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static android.graphics.Typeface a(android.content.Context r6, c.e.c.b.a r7, android.content.res.Resources r8, int r9, int r10, c.e.c.b.e.a r11, android.os.Handler r12, boolean r13) {
        /*
            Method dump skipped, instruction units count: 355
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.d.c.a(android.content.Context, c.e.c.b.a, android.content.res.Resources, int, int, c.e.c.b.e$a, android.os.Handler, boolean):android.graphics.Typeface");
    }

    public static Typeface b(Context context, Resources resources, int i2, String str, int i3) {
        Typeface typefaceC = f5191a.c(context, resources, i2, str, i3);
        if (typefaceC != null) {
            f5192b.b(c(resources, i2, i3), typefaceC);
        }
        return typefaceC;
    }

    public static String c(Resources resources, int i2, int i3) {
        return resources.getResourcePackageName(i2) + "-" + i2 + "-" + i3;
    }
}
