package p037.p065.p068.p069;

import android.content.res.Resources;
import android.util.Log;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

/* JADX INFO: renamed from: މ.ރ.ރ.ؠ.ޅ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C1861 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final Object f6248 = new Object();

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static Method f6249;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static boolean f6250;

    /* JADX WARN: Removed duplicated region for block: B:30:0x0027 A[EXC_TOP_SPLITTER, SYNTHETIC] */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static void m3664(Resources.Theme theme) {
        synchronized (f6248) {
            if (!f6250) {
                try {
                    Method declaredMethod = Resources.Theme.class.getDeclaredMethod("rebase", new Class[0]);
                    f6249 = declaredMethod;
                    declaredMethod.setAccessible(true);
                } catch (NoSuchMethodException e) {
                    Log.i("ResourcesCompat", "Failed to retrieve rebase() method", e);
                }
                f6250 = true;
                if (f6249 != null) {
                    try {
                        f6249.invoke(theme, new Object[0]);
                    } catch (IllegalAccessException | InvocationTargetException e2) {
                        Log.i("ResourcesCompat", "Failed to invoke rebase() method via reflection", e2);
                        f6249 = null;
                    }
                }
            } else if (f6249 != null) {
            }
        }
    }
}
