package c.o;

import c.h;
import c.q.d.j;
import c.u.o;

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

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

    /* JADX WARN: Removed duplicated region for block: B:42:0x013f  */
    /* JADX WARN: Removed duplicated region for block: B:47:0x00ac A[EXC_TOP_SPLITTER, SYNTHETIC] */
    static {
        /*
            Method dump skipped, instruction units count: 327
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: c.o.b.<clinit>():void");
    }

    private static final int a() {
        String property = System.getProperty("java.specification.version");
        if (property == null) {
            return 65542;
        }
        int iG = o.G(property, '.', 0, false, 6, null);
        if (iG < 0) {
            try {
                return Integer.parseInt(property) * 65536;
            } catch (NumberFormatException unused) {
                return 65542;
            }
        }
        int i = iG + 1;
        int iG2 = o.G(property, '.', i, false, 4, null);
        if (iG2 < 0) {
            iG2 = property.length();
        }
        if (property == null) {
            throw new h("null cannot be cast to non-null type java.lang.String");
        }
        String strSubstring = property.substring(0, iG);
        j.b(strSubstring, "(this as java.lang.Strin…ing(startIndex, endIndex)");
        if (property == null) {
            throw new h("null cannot be cast to non-null type java.lang.String");
        }
        String strSubstring2 = property.substring(i, iG2);
        j.b(strSubstring2, "(this as java.lang.Strin…ing(startIndex, endIndex)");
        try {
            return (Integer.parseInt(strSubstring) * 65536) + Integer.parseInt(strSubstring2);
        } catch (NumberFormatException unused2) {
            return 65542;
        }
    }
}
