package b.f.d;

import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Typeface;
import b.d.f;
import b.f.g.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 e f927a = new d();

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final f<String, Typeface> f928b = new f<>(16);

    public static class a extends m {

        /* JADX INFO: renamed from: a, reason: collision with root package name */
        public b.f.c.b.e f929a;

        public a(b.f.c.b.e eVar) {
            this.f929a = eVar;
        }
    }

    /* 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, b.f.c.b.a r7, android.content.res.Resources r8, int r9, int r10, b.f.c.b.e 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: b.f.d.c.a(android.content.Context, b.f.c.b.a, android.content.res.Resources, int, int, b.f.c.b.e, android.os.Handler, boolean):android.graphics.Typeface");
    }

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

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