package g.e.b.g0.f0.v;

import java.util.TimeZone;

/* JADX INFO: loaded from: classes.dex */
public class a {
    public static final TimeZone a = TimeZone.getTimeZone("UTC");

    public static boolean a(String str, int i2, char c2) {
        return i2 < str.length() && str.charAt(i2) == c2;
    }

    /* JADX WARN: Removed duplicated region for block: B:59:0x00e5 A[Catch: IllegalArgumentException -> 0x01d4, NumberFormatException -> 0x01d6, IndexOutOfBoundsException | NumberFormatException | IllegalArgumentException -> 0x01d8, TryCatch #2 {IndexOutOfBoundsException | NumberFormatException | IllegalArgumentException -> 0x01d8, blocks: (B:3:0x0004, B:5:0x0016, B:6:0x0018, B:8:0x0024, B:9:0x0026, B:11:0x0036, B:13:0x003c, B:17:0x0054, B:19:0x0064, B:20:0x0066, B:22:0x0072, B:23:0x0074, B:25:0x007a, B:29:0x0084, B:34:0x0094, B:36:0x009c, B:37:0x00a0, B:39:0x00a6, B:44:0x00b3, B:46:0x00ba, B:57:0x00df, B:59:0x00e5, B:61:0x00ec, B:86:0x019b, B:66:0x00f8, B:67:0x0113, B:68:0x0114, B:72:0x0130, B:74:0x013d, B:77:0x0146, B:79:0x0165, B:82:0x0174, B:83:0x0196, B:85:0x0199, B:71:0x011f, B:88:0x01cc, B:89:0x01d3, B:50:0x00ca, B:51:0x00cd, B:45:0x00b6), top: B:105:0x0004 }] */
    /* JADX WARN: Removed duplicated region for block: B:88:0x01cc A[Catch: IllegalArgumentException -> 0x01d4, NumberFormatException -> 0x01d6, IndexOutOfBoundsException | NumberFormatException | IllegalArgumentException -> 0x01d8, TryCatch #2 {IndexOutOfBoundsException | NumberFormatException | IllegalArgumentException -> 0x01d8, blocks: (B:3:0x0004, B:5:0x0016, B:6:0x0018, B:8:0x0024, B:9:0x0026, B:11:0x0036, B:13:0x003c, B:17:0x0054, B:19:0x0064, B:20:0x0066, B:22:0x0072, B:23:0x0074, B:25:0x007a, B:29:0x0084, B:34:0x0094, B:36:0x009c, B:37:0x00a0, B:39:0x00a6, B:44:0x00b3, B:46:0x00ba, B:57:0x00df, B:59:0x00e5, B:61:0x00ec, B:86:0x019b, B:66:0x00f8, B:67:0x0113, B:68:0x0114, B:72:0x0130, B:74:0x013d, B:77:0x0146, B:79:0x0165, B:82:0x0174, B:83:0x0196, B:85:0x0199, B:71:0x011f, B:88:0x01cc, B:89:0x01d3, B:50:0x00ca, B:51:0x00cd, B:45:0x00b6), top: B:105:0x0004 }] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static java.util.Date b(java.lang.String r17, java.text.ParsePosition r18) throws java.text.ParseException {
        /*
            Method dump skipped, instruction units count: 573
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: g.e.b.g0.f0.v.a.b(java.lang.String, java.text.ParsePosition):java.util.Date");
    }

    public static int c(String str, int i2, int i3) {
        int i4;
        int i5;
        if (i2 < 0 || i3 > str.length() || i2 > i3) {
            throw new NumberFormatException(str);
        }
        if (i2 < i3) {
            i5 = i2 + 1;
            int iDigit = Character.digit(str.charAt(i2), 10);
            if (iDigit < 0) {
                StringBuilder sbF = g.a.a.a.a.F("Invalid number: ");
                sbF.append(str.substring(i2, i3));
                throw new NumberFormatException(sbF.toString());
            }
            i4 = -iDigit;
        } else {
            i4 = 0;
            i5 = i2;
        }
        while (i5 < i3) {
            int i6 = i5 + 1;
            int iDigit2 = Character.digit(str.charAt(i5), 10);
            if (iDigit2 < 0) {
                StringBuilder sbF2 = g.a.a.a.a.F("Invalid number: ");
                sbF2.append(str.substring(i2, i3));
                throw new NumberFormatException(sbF2.toString());
            }
            i4 = (i4 * 10) - iDigit2;
            i5 = i6;
        }
        return -i4;
    }
}
