package p057s1;

/* renamed from: s1.b */
/* loaded from: classes.dex */
public class C1620b extends C1619a {
    /* renamed from: d */
    public static final boolean m785d(char c, char c2, boolean z) {
        if (c == c2) {
            return true;
        }
        if (z) {
            char upperCase = Character.toUpperCase(c);
            char upperCase2 = Character.toUpperCase(c2);
            return upperCase == upperCase2 || Character.toLowerCase(upperCase) == Character.toLowerCase(upperCase2);
        }
        return false;
    }
}