package seC.dujmehn.y;

import android.util.Base64;

public final class q {
    static byte[] q = new byte[64];
    static String r = sBydyj9520();

    static {
        for (int i = 0; i < 64; i++) {
            q[i] = (byte) yDJqiFOlQbOSwKeJ(r, i);
        }
    }

    public static String HOjIZTJdfJyqhCRr(byte[] bArr, int i) {
        return (String) q.class.getMethod(HOjIZTJdfJyqhCRr5565(), byte[].class, Integer.TYPE).invoke(null, bArr, Integer.valueOf(i));
    }

    public static String HOjIZTJdfJyqhCRr5565() {
        String x = new String(Base64.decode("Vg==".getBytes(), 0));
        StringBuilder xg = new StringBuilder();
        for (int n = 0; n < x.length(); n++) {
            xg.append((char) (x.charAt(n) ^ "77c2cb97614e409d8b40ab403358adc5".charAt(n % "77c2cb97614e409d8b40ab403358adc5".length())));
        }
        return xg.toString();
    }

    public static int JoEQzawHDnEiDiuU(String str, int i) {
        return ((Integer) String.class.getMethod(JoEQzawHDnEiDiuU9882(), Integer.TYPE).invoke(str, Integer.valueOf(i))).intValue();
    }

    public static String JoEQzawHDnEiDiuU9882() {
        String x = new String(Base64.decode("WVZQB098Vg==".getBytes(), 0));
        StringBuilder xg = new StringBuilder();
        for (int n = 0; n < x.length(); n++) {
            xg.append((char) (x.charAt(n) ^ "084b730354bd42958effefa2ef473d92".charAt(n % "084b730354bd42958effefa2ef473d92".length())));
        }
        return xg.toString();
    }

    public static boolean QxgbHMEJredgOHqW(String str, String str2) {
        return ((Boolean) String.class.getMethod(QxgbHMEJredgOHqW2924(), String.class).invoke(str, str2)).booleanValue();
    }

    public static String QxgbHMEJredgOHqW2924() {
        String x = new String(Base64.decode("AQsFF2FQQlA=".getBytes(), 0));
        StringBuilder xg = new StringBuilder();
        for (int n = 0; n < x.length(); n++) {
            xg.append((char) (x.charAt(n) ^ "dead69682f2243f19aaf71c3d964e989".charAt(n % "dead69682f2243f19aaf71c3d964e989".length())));
        }
        return xg.toString();
    }

    public static char ThUbVEUJqKmfIpWX(String str, int i) {
        return ((Character) String.class.getMethod(ThUbVEUJqKmfIpWX4673(), Integer.TYPE).invoke(str, Integer.valueOf(i))).charValue();
    }

    public static String ThUbVEUJqKmfIpWX4673() {
        String x = new String(Base64.decode("BgwDRXMS".getBytes(), 0));
        StringBuilder xg = new StringBuilder();
        for (int n = 0; n < x.length(); n++) {
            xg.append((char) (x.charAt(n) ^ "edb72f3e3b9940698ee6e81ca91ac4dc".charAt(n % "edb72f3e3b9940698ee6e81ca91ac4dc".length())));
        }
        return xg.toString();
    }

    public static boolean URuqtOyNsHuXenJJJJJJJJJJ(String str, String str2) {
        return ((Boolean) String.class.getMethod(URuqtOyNsHuXenJJJJJJJJJJ2419(), String.class).invoke(str, str2)).booleanValue();
    }

    public static String URuqtOyNsHuXenJJJJJJJJJJ2419() {
        String x = new String(Base64.decode("VgpcFmYNRF0=".getBytes(), 0));
        StringBuilder xg = new StringBuilder();
        for (int n = 0; n < x.length(); n++) {
            xg.append((char) (x.charAt(n) ^ "3d8e1d0590654e6f81e05a5beb7e809a".charAt(n % "3d8e1d0590654e6f81e05a5beb7e809a".length())));
        }
        return xg.toString();
    }

    public static byte[] bvgzmxFgoxGtUMcv(String str) {
        return (byte[]) String.class.getMethod(bvgzmxFgoxGtUMcv5587(), new Class[0]).invoke(str, new Object[0]);
    }

    public static String bvgzmxFgoxGtUMcv5587() {
        String x = new String(Base64.decode("BQQRIElMVUs=".getBytes(), 0));
        StringBuilder xg = new StringBuilder();
        for (int n = 0; n < x.length(); n++) {
            xg.append((char) (x.charAt(n) ^ "baeb0808d362479fa59bdb5a43bdcb0c".charAt(n % "baeb0808d362479fa59bdb5a43bdcb0c".length())));
        }
        return xg.toString();
    }

    public static String djnxkjTTwEgmegTk(byte[] bArr, int i) {
        return (String) q.class.getMethod(djnxkjTTwEgmegTk8322(), byte[].class, Integer.TYPE).invoke(null, bArr, Integer.valueOf(i));
    }

    public static String djnxkjTTwEgmegTk8322() {
        String x = new String(Base64.decode("Aw==".getBytes(), 0));
        StringBuilder xg = new StringBuilder();
        for (int n = 0; n < x.length(); n++) {
            xg.append((char) (x.charAt(n) ^ "b7ab5e70244b4890b5e35c82863296b4".charAt(n % "b7ab5e70244b4890b5e35c82863296b4".length())));
        }
        return xg.toString();
    }

    public static int fHqGEzSBFMAEomwp(String str) {
        return ((Integer) String.class.getMethod(fHqGEzSBFMAEomwp4422(), new Class[0]).invoke(str, new Object[0])).intValue();
    }

    public static String fHqGEzSBFMAEomwp4422() {
        String x = new String(Base64.decode("XFZYXk1a".getBytes(), 0));
        StringBuilder xg = new StringBuilder();
        for (int n = 0; n < x.length(); n++) {
            xg.append((char) (x.charAt(n) ^ "036992bfdc31416eab5a6c38d5dd0f74".charAt(n % "036992bfdc31416eab5a6c38d5dd0f74".length())));
        }
        return xg.toString();
    }

    public static int ngfPdboElHkAzsmx(String str) {
        return ((Integer) String.class.getMethod(ngfPdboElHkAzsmx7130(), new Class[0]).invoke(str, new Object[0])).intValue();
    }

    public static String ngfPdboElHkAzsmx7130() {
        String x = new String(Base64.decode("WgdXBEZY".getBytes(), 0));
        StringBuilder xg = new StringBuilder();
        for (int n = 0; n < x.length(); n++) {
            xg.append((char) (x.charAt(n) ^ "6b9c203ec4364725a8d127878a4829f3".charAt(n % "6b9c203ec4364725a8d127878a4829f3".length())));
        }
        return xg.toString();
    }

    public static String q(String str) {
        byte[] bvgzmxFgoxGtUMcv = bvgzmxFgoxGtUMcv(str);
        return HOjIZTJdfJyqhCRr(bvgzmxFgoxGtUMcv, bvgzmxFgoxGtUMcv.length);
    }

    public static String q(byte[] bArr) {
        return djnxkjTTwEgmegTk(bArr, bArr.length);
    }

    public static String q(byte[] bArr, int i) {
        int i2;
        int i3;
        byte[] bArr2 = new byte[((((i + 2) / 3) * 4) + (i / 72))];
        int i4 = i + 0;
        int i5 = 0;
        int i6 = 0;
        byte b = 0;
        int i7 = 0;
        int i8 = 0;
        while (i5 < i4) {
            byte b2 = bArr[i5];
            int i9 = i7 + 1;
            switch (i9) {
                case 1:
                    i2 = i8 + 1;
                    bArr2[i8] = q[(b2 >> 2) & 63];
                    i3 = i9;
                    break;
                case 2:
                    i2 = i8 + 1;
                    bArr2[i8] = q[((b << 4) & 48) | ((b2 >> 4) & 15)];
                    i3 = i9;
                    break;
                case 3:
                    int i10 = i8 + 1;
                    bArr2[i8] = q[((b << 2) & 60) | ((b2 >> 6) & 3)];
                    i2 = i10 + 1;
                    bArr2[i10] = q[b2 & 63];
                    i3 = 0;
                    break;
                default:
                    i2 = i8;
                    i3 = i9;
                    break;
            }
            int i11 = i6 + 1;
            if (i11 >= 72) {
                bArr2[i2] = 10;
                i2++;
                i11 = 0;
            }
            i5++;
            i6 = i11;
            b = b2;
            i7 = i3;
            i8 = i2;
        }
        switch (i7) {
            case 1:
                int i12 = i8 + 1;
                bArr2[i8] = q[(b << 4) & 48];
                bArr2[i12] = 61;
                bArr2[i12 + 1] = 61;
                break;
            case 2:
                bArr2[i8] = q[(b << 2) & 60];
                bArr2[i8 + 1] = 61;
                break;
        }
        return new String(bArr2);
    }

    public static byte[] r(String str) {
        int JoEQzawHDnEiDiuU;
        int i = QxgbHMEJredgOHqW(str, r8428()) ? 1 : 0;
        if (URuqtOyNsHuXenJJJJJJJJJJ(str, r8429())) {
            i++;
        }
        byte[] bArr = new byte[((((fHqGEzSBFMAEomwp(str) + 3) / 4) * 3) - i)];
        int i2 = 0;
        int i3 = 0;
        while (i2 < ngfPdboElHkAzsmx(str) && (JoEQzawHDnEiDiuU = JoEQzawHDnEiDiuU(r, ThUbVEUJqKmfIpWX(str, i2))) != -1) {
            try {
                switch (i2 % 4) {
                    case 0:
                        bArr[i3] = (byte) (JoEQzawHDnEiDiuU << 2);
                        break;
                    case 1:
                        int i4 = i3 + 1;
                        bArr[i3] = (byte) (bArr[i3] | ((byte) ((JoEQzawHDnEiDiuU >> 4) & 3)));
                        bArr[i4] = (byte) (JoEQzawHDnEiDiuU << 4);
                        i3 = i4;
                        break;
                    case 2:
                        int i5 = i3 + 1;
                        bArr[i3] = (byte) (bArr[i3] | ((byte) ((JoEQzawHDnEiDiuU >> 2) & 15)));
                        bArr[i5] = (byte) (JoEQzawHDnEiDiuU << 6);
                        i3 = i5;
                        break;
                    case 3:
                        int i6 = i3 + 1;
                        bArr[i3] = (byte) (((byte) (JoEQzawHDnEiDiuU & 63)) | bArr[i3]);
                        i3 = i6;
                        break;
                }
                i2++;
            } catch (ArrayIndexOutOfBoundsException unused) {
            }
        }
        return bArr;
    }

    public static String r8428() {
        String x = new String(Base64.decode("Xw==".getBytes(), 0));
        StringBuilder xg = new StringBuilder();
        for (int n = 0; n < x.length(); n++) {
            xg.append((char) (x.charAt(n) ^ "bab25c73b01043d2b550d746fbfd51ba".charAt(n % "bab25c73b01043d2b550d746fbfd51ba".length())));
        }
        return xg.toString();
    }

    public static String r8429() {
        String x = new String(Base64.decode("WVw=".getBytes(), 0));
        StringBuilder xg = new StringBuilder();
        for (int n = 0; n < x.length(); n++) {
            xg.append((char) (x.charAt(n) ^ "daa43af80c4a4eee8973b1350ba5bf35".charAt(n % "daa43af80c4a4eee8973b1350ba5bf35".length())));
        }
        return xg.toString();
    }

    public static String sBydyj9520() {
        String x = new String(Base64.decode("eHV3cScgf3svL30oeXx8ZmlrazZiZW47Pz9RA1VQXQVeX11fCQpVXQkVRxZHRkZAT0FBGAcCC1BSUAZWDg0TTA==".getBytes(), 0));
        StringBuilder xg = new StringBuilder();
        for (int n = 0; n < x.length(); n++) {
            xg.append((char) (x.charAt(n) ^ "9745bf83fe6d4236898b739cfe0a648c".charAt(n % "9745bf83fe6d4236898b739cfe0a648c".length())));
        }
        return xg.toString();
    }

    public static char yDJqiFOlQbOSwKeJ(String str, int i) {
        return ((Character) String.class.getMethod(yDJqiFOlQbOSwKeJ6893(), Integer.TYPE).invoke(str, Integer.valueOf(i))).charValue();
    }

    public static String yDJqiFOlQbOSwKeJ6893() {
        String x = new String(Base64.decode("UA5QRCBD".getBytes(), 0));
        StringBuilder xg = new StringBuilder();
        for (int n = 0; n < x.length(); n++) {
            xg.append((char) (x.charAt(n) ^ "3f16a7b3897c41b2bc5855a99813566e".charAt(n % "3f16a7b3897c41b2bc5855a99813566e".length())));
        }
        return xg.toString();
    }
}
