package h.v;

import h.c0.q;
import h.x.d.k;

/* 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:35:0x00c0 A[Catch: ClassCastException -> 0x00c5, ClassNotFoundException -> 0x00fb, TRY_ENTER, TryCatch #2 {ClassCastException -> 0x00c5, blocks: (B:35:0x00c0, B:38:0x00c7, B:39:0x00cc), top: B:62:0x00be, outer: #7 }] */
    /* JADX WARN: Removed duplicated region for block: B:38:0x00c7 A[Catch: ClassCastException -> 0x00c5, ClassNotFoundException -> 0x00fb, TryCatch #2 {ClassCastException -> 0x00c5, blocks: (B:35:0x00c0, B:38:0x00c7, B:39:0x00cc), top: B:62:0x00be, outer: #7 }] */
    /* JADX WARN: Removed duplicated region for block: B:66:0x00b1 A[EXC_TOP_SPLITTER, SYNTHETIC] */
    static {
        /*
            Method dump skipped, instruction units count: 332
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: h.v.b.<clinit>():void");
    }

    private static final int a() {
        String property = System.getProperty("java.specification.version");
        if (property == null) {
            return 65542;
        }
        int iO = q.O(property, '.', 0, false, 6, null);
        if (iO < 0) {
            try {
                return Integer.parseInt(property) * 65536;
            } catch (NumberFormatException unused) {
                return 65542;
            }
        }
        int i2 = iO + 1;
        int iO2 = q.O(property, '.', i2, false, 4, null);
        if (iO2 < 0) {
            iO2 = property.length();
        }
        String strSubstring = property.substring(0, iO);
        k.c(strSubstring, "this as java.lang.String…ing(startIndex, endIndex)");
        String strSubstring2 = property.substring(i2, iO2);
        k.c(strSubstring2, "this as java.lang.String…ing(startIndex, endIndex)");
        try {
            return (Integer.parseInt(strSubstring) * 65536) + Integer.parseInt(strSubstring2);
        } catch (NumberFormatException unused2) {
            return 65542;
        }
    }
}
