package g9; import d9.j; import java.util.NoSuchElementException; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes2.dex */ public abstract class f extends e { public static int a(int i10, int i11) { return i10 < i11 ? i11 : i10; } public static long b(long j10, long j11) { return j10 < j11 ? j11 : j10; } public static int c(int i10, int i11) { return i10 > i11 ? i11 : i10; } public static long d(long j10, long j11) { return j10 > j11 ? j11 : j10; } public static int e(int i10, int i11, int i12) { if (i11 <= i12) { return i10 < i11 ? i11 : i10 > i12 ? i12 : i10; } throw new IllegalArgumentException("Cannot coerce value to an empty range: maximum " + i12 + " is less than minimum " + i11 + '.'); } public static a f(int i10, int i11) { return a.f9859d.a(i10, i11, -1); } public static int g(c cVar, e9.c cVar2) { j.e(cVar, ""); j.e(cVar2, "random"); try { return e9.d.d(cVar2, cVar); } catch (IllegalArgumentException e10) { throw new NoSuchElementException(e10.getMessage()); } } public static c h(int i10, int i11) { return i11 <= Integer.MIN_VALUE ? c.f9867e.a() : new c(i10, i11 - 1); } }