package I;

import android.os.Build;
import java.util.Locale;

/* JADX INFO: loaded from: classes.dex */
public abstract class a {
    static {
        int i = Build.VERSION.SDK_INT;
        if (i >= 30) {
            G.a.b(30);
        }
        if (i >= 30) {
            G.a.b(31);
        }
        if (i >= 30) {
            G.a.b(33);
        }
        if (i >= 30) {
            G.a.b(1000000);
        }
    }

    public static final boolean a() {
        int i = Build.VERSION.SDK_INT;
        if (i >= 33) {
            return true;
        }
        if (i >= 32) {
            String str = Build.VERSION.CODENAME;
            P6.g.d(str, "CODENAME");
            if (!"REL".equals(str)) {
                Locale locale = Locale.ROOT;
                String upperCase = str.toUpperCase(locale);
                P6.g.d(upperCase, "this as java.lang.String).toUpperCase(Locale.ROOT)");
                Integer num = upperCase.equals("BAKLAVA") ? 0 : null;
                String upperCase2 = "Tiramisu".toUpperCase(locale);
                P6.g.d(upperCase2, "this as java.lang.String).toUpperCase(Locale.ROOT)");
                Integer num2 = upperCase2.equals("BAKLAVA") ? 0 : null;
                if (num == null || num2 == null) {
                    if (num == null && num2 == null) {
                        String upperCase3 = str.toUpperCase(locale);
                        P6.g.d(upperCase3, "this as java.lang.String).toUpperCase(Locale.ROOT)");
                        String upperCase4 = "Tiramisu".toUpperCase(locale);
                        P6.g.d(upperCase4, "this as java.lang.String).toUpperCase(Locale.ROOT)");
                        if (upperCase3.compareTo(upperCase4) >= 0) {
                            return true;
                        }
                    } else if (num != null) {
                        return true;
                    }
                } else if (num.intValue() >= num2.intValue()) {
                    return true;
                }
            }
        }
        return false;
    }
}
