package d.l0;

import d.n;
import d.n0.c.s;
import d.s0.r;

/* JADX INFO: compiled from: PlatformImplementations.kt */
/* JADX INFO: loaded from: classes.dex */
@n
public final class b {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final a f2618a;

    /* 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: d.l0.b.<clinit>():void");
    }

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