package h5; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; /* loaded from: classes2.dex */ abstract class y0 { /* renamed from: a, reason: collision with root package name */ public static final Charset f10327a = StandardCharsets.UTF_8; public static int a(int i10) { return ((i10 & 255) << 24) | (((-16777216) & i10) >>> 24) | ((16711680 & i10) >>> 8) | ((65280 & i10) << 8); } public static short b(short s10) { int i10 = s10 & 65535; return (short) (((i10 & 255) << 8) | ((65280 & i10) >>> 8)); } public static void c(long j10, long j11, long j12) { if ((j11 | j12) < 0 || j11 > j10 || j10 - j11 < j12) { throw new ArrayIndexOutOfBoundsException(String.format("size=%s offset=%s byteCount=%s", Long.valueOf(j10), Long.valueOf(j11), Long.valueOf(j12))); } } public static void d(Throwable th) { f(th); throw null; } public static boolean e(byte[] bArr, int i10, byte[] bArr2, int i11, int i12) { for (int i13 = 0; i13 < i12; i13++) { if (bArr[i13 + i10] != bArr2[i13 + i11]) { return false; } } return true; } private static void f(Throwable th) { throw th; } }