package kotlinx.coroutines.internal;

/* JADX INFO: Access modifiers changed from: package-private */
/* JADX INFO: compiled from: SystemProps.common.kt */
/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class e0 {
    public static final int a(String str, int i3, int i4, int i5) {
        return (int) c0.c(str, i3, i4, i5);
    }

    public static final long b(String str, long j3, long j4, long j5) {
        String strD = c0.d(str);
        if (strD == null) {
            return j3;
        }
        Long lA = c2.k.a(strD);
        if (lA == null) {
            throw new IllegalStateException(("System property '" + str + "' has unrecognized value '" + strD + '\'').toString());
        }
        long jLongValue = lA.longValue();
        boolean z2 = false;
        if (j4 <= jLongValue && jLongValue <= j5) {
            z2 = true;
        }
        if (z2) {
            return jLongValue;
        }
        throw new IllegalStateException(("System property '" + str + "' should be in range " + j4 + ".." + j5 + ", but is '" + jLongValue + '\'').toString());
    }

    public static final boolean c(String str, boolean z2) {
        String strD = c0.d(str);
        return strD == null ? z2 : Boolean.parseBoolean(strD);
    }

    public static /* synthetic */ int d(String str, int i3, int i4, int i5, int i6, Object obj) {
        if ((i6 & 4) != 0) {
            i4 = 1;
        }
        if ((i6 & 8) != 0) {
            i5 = Integer.MAX_VALUE;
        }
        return c0.b(str, i3, i4, i5);
    }

    public static /* synthetic */ long e(String str, long j3, long j4, long j5, int i3, Object obj) {
        if ((i3 & 4) != 0) {
            j4 = 1;
        }
        long j6 = j4;
        if ((i3 & 8) != 0) {
            j5 = Long.MAX_VALUE;
        }
        return c0.c(str, j3, j6, j5);
    }
}
