package ඓ.ῲ.K.ᕣ.ᕣ.ඓ;

import android.content.Context;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import ῲ.ᨨ.ῲ.C1806;
import ῲ.ῲ.ඓ.C1937;
import ῲ.ῲ.ῲ.K.C1940;
import K.K.K.ʬ.C2369;

/* renamed from: ඓ.ῲ.K.ᕣ.ᕣ.ඓ.K  reason: contains not printable characters */
/* compiled from: DrawableDecoderCompat */
public final class C0898 {

    /* renamed from: K  reason: contains not printable characters */
    public static volatile boolean f4152 = true;

    /* renamed from: K  reason: contains not printable characters */
    public static Drawable m2580(Context context, Context context2, int i, Resources.Theme theme) {
        try {
            if (f4152) {
                return C1940.m5017(theme != null ? new C1937(context2, theme) : context2, i);
            }
        } catch (NoClassDefFoundError unused) {
            f4152 = false;
        } catch (IllegalStateException e) {
            if (!context.getPackageName().equals(context2.getPackageName())) {
                return C1806.m4683(context2, i);
            }
            throw e;
        } catch (Resources.NotFoundException unused2) {
        }
        if (theme == null) {
            theme = context2.getTheme();
        }
        return C2369.m6280(context2.getResources(), i, theme);
    }
}
