package j.n0;

import j.u0.r;

/* JADX INFO: compiled from: PlatformImplementations.kt */
/* JADX INFO: loaded from: classes.dex */
public final class b {
    public static final a a;

    /* JADX WARN: Removed duplicated region for block: B:34:0x00bf A[Catch: ClassCastException -> 0x00c4, ClassNotFoundException -> 0x00fa, TRY_ENTER, TryCatch #1 {ClassCastException -> 0x00c4, blocks: (B:34:0x00bf, B:37:0x00c6, B:38:0x00cb), top: B:62:0x00bd, outer: #7 }] */
    /* JADX WARN: Removed duplicated region for block: B:37:0x00c6 A[Catch: ClassCastException -> 0x00c4, ClassNotFoundException -> 0x00fa, TryCatch #1 {ClassCastException -> 0x00c4, blocks: (B:34:0x00bf, B:37:0x00c6, B:38:0x00cb), top: B:62:0x00bd, outer: #7 }] */
    /* JADX WARN: Removed duplicated region for block: B:66:0x00b0 A[EXC_TOP_SPLITTER, SYNTHETIC] */
    static {
        /*
            Method dump skipped, instruction units count: 331
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: j.n0.b.<clinit>():void");
    }

    private static final int a() {
        String property = System.getProperty("java.specification.version");
        if (property == null) {
            return 65542;
        }
        int iS = r.S(property, '.', 0, false, 6, null);
        if (iS < 0) {
            try {
                return Integer.parseInt(property) * 65536;
            } catch (NumberFormatException unused) {
                return 65542;
            }
        }
        int i2 = iS + 1;
        int iS2 = r.S(property, '.', i2, false, 4, null);
        if (iS2 < 0) {
            iS2 = property.length();
        }
        String strSubstring = property.substring(0, iS);
        j.p0.d.r.e(strSubstring, "this as java.lang.String…ing(startIndex, endIndex)");
        String strSubstring2 = property.substring(i2, iS2);
        j.p0.d.r.e(strSubstring2, "this as java.lang.String…ing(startIndex, endIndex)");
        try {
            return (Integer.parseInt(strSubstring) * 65536) + Integer.parseInt(strSubstring2);
        } catch (NumberFormatException unused2) {
            return 65542;
        }
    }
}
