package kotlinx.coroutines.internal;

import androidx.core.location.LocationRequestCompat;

/* JADX INFO: Access modifiers changed from: package-private */
/* JADX INFO: loaded from: classes.dex */
public abstract /* synthetic */ class u {
    public static final int a(String str, int i2, int i3, int i4) {
        return (int) s.c(str, i2, i3, i4);
    }

    public static final long b(String str, long j2, long j3, long j4) {
        String strD = s.d(str);
        if (strD == null) {
            return j2;
        }
        Long lH = E1.g.h(strD);
        if (lH == null) {
            throw new IllegalStateException(("System property '" + str + "' has unrecognized value '" + strD + '\'').toString());
        }
        long jLongValue = lH.longValue();
        if (j3 <= jLongValue && jLongValue <= j4) {
            return jLongValue;
        }
        throw new IllegalStateException(("System property '" + str + "' should be in range " + j3 + ".." + j4 + ", but is '" + jLongValue + '\'').toString());
    }

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

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

    public static /* synthetic */ long e(String str, long j2, long j3, long j4, int i2, Object obj) {
        if ((i2 & 4) != 0) {
            j3 = 1;
        }
        long j5 = j3;
        if ((i2 & 8) != 0) {
            j4 = LocationRequestCompat.PASSIVE_INTERVAL;
        }
        return s.c(str, j2, j5, j4);
    }
}
