package t9; import com.igaworks.ssp.R; import java.io.ByteArrayOutputStream; /* loaded from: classes2.dex */ class k { /* renamed from: b, reason: collision with root package name */ private static final int[] f14625b = {8184, 8388568, 268435426, 268435427, 268435428, 268435429, 268435430, 268435431, 268435432, 16777194, 1073741820, 268435433, 268435434, 1073741821, 268435435, 268435436, 268435437, 268435438, 268435439, 268435440, 268435441, 268435442, 1073741822, 268435443, 268435444, 268435445, 268435446, 268435447, 268435448, 268435449, 268435450, 268435451, 20, 1016, 1017, 4090, 8185, 21, 248, 2042, 1018, 1019, 249, 2043, 250, 22, 23, 24, 0, 1, 2, 25, 26, 27, 28, 29, 30, 31, 92, 251, 32764, 32, 4091, 1020, 8186, 33, 93, 94, 95, 96, 97, 98, 99, 100, R.styleable.AppCompatTheme_switchStyle, 102, R.styleable.AppCompatTheme_textAppearanceListItem, 104, 105, R.styleable.AppCompatTheme_textAppearancePopupMenuHeader, R.styleable.AppCompatTheme_textAppearanceSearchResultSubtitle, R.styleable.AppCompatTheme_textAppearanceSearchResultTitle, R.styleable.AppCompatTheme_textAppearanceSmallPopupMenu, R.styleable.AppCompatTheme_textColorAlertDialogListItem, R.styleable.AppCompatTheme_textColorSearchUrl, R.styleable.AppCompatTheme_toolbarNavigationButtonStyle, R.styleable.AppCompatTheme_toolbarStyle, R.styleable.AppCompatTheme_tooltipForegroundColor, 252, R.styleable.AppCompatTheme_tooltipFrameBackground, 253, 8187, 524272, 8188, 16380, 34, 32765, 3, 35, 4, 36, 5, 37, 38, 39, 6, 116, 117, 40, 41, 42, 7, 43, 118, 44, 8, 9, 45, 119, 120, 121, 122, 123, 32766, 2044, 16381, 8189, 268435452, 1048550, 4194258, 1048551, 1048552, 4194259, 4194260, 4194261, 8388569, 4194262, 8388570, 8388571, 8388572, 8388573, 8388574, 16777195, 8388575, 16777196, 16777197, 4194263, 8388576, 16777198, 8388577, 8388578, 8388579, 8388580, 2097116, 4194264, 8388581, 4194265, 8388582, 8388583, 16777199, 4194266, 2097117, 1048553, 4194267, 4194268, 8388584, 8388585, 2097118, 8388586, 4194269, 4194270, 16777200, 2097119, 4194271, 8388587, 8388588, 2097120, 2097121, 4194272, 2097122, 8388589, 4194273, 8388590, 8388591, 1048554, 4194274, 4194275, 4194276, 8388592, 4194277, 4194278, 8388593, 67108832, 67108833, 1048555, 524273, 4194279, 8388594, 4194280, 33554412, 67108834, 67108835, 67108836, 134217694, 134217695, 67108837, 16777201, 33554413, 524274, 2097123, 67108838, 134217696, 134217697, 67108839, 134217698, 16777202, 2097124, 2097125, 67108840, 67108841, 268435453, 134217699, 134217700, 134217701, 1048556, 16777203, 1048557, 2097126, 4194281, 2097127, 2097128, 8388595, 4194282, 4194283, 33554414, 33554415, 16777204, 16777205, 67108842, 8388596, 67108843, 134217702, 67108844, 67108845, 134217703, 134217704, 134217705, 134217706, 134217707, 268435454, 134217708, 134217709, 134217710, 134217711, 134217712, 67108846}; /* renamed from: c, reason: collision with root package name */ private static final byte[] f14626c = {13, 23, 28, 28, 28, 28, 28, 28, 28, 24, 30, 28, 28, 30, 28, 28, 28, 28, 28, 28, 28, 28, 30, 28, 28, 28, 28, 28, 28, 28, 28, 28, 6, 10, 10, 12, 13, 6, 8, 11, 10, 10, 8, 11, 8, 6, 6, 6, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 8, 15, 6, 12, 10, 13, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 7, 8, 13, 19, 13, 14, 6, 15, 5, 6, 5, 6, 5, 6, 6, 6, 5, 7, 7, 6, 6, 6, 5, 6, 7, 6, 5, 5, 6, 7, 7, 7, 7, 7, 15, 11, 14, 13, 28, 20, 22, 20, 20, 22, 22, 22, 23, 22, 23, 23, 23, 23, 23, 24, 23, 24, 24, 22, 23, 24, 23, 23, 23, 23, 21, 22, 23, 22, 23, 23, 24, 22, 21, 20, 22, 22, 23, 23, 21, 23, 22, 22, 24, 21, 22, 23, 23, 21, 21, 22, 21, 23, 22, 23, 23, 20, 22, 22, 22, 23, 22, 22, 23, 26, 26, 20, 19, 22, 23, 22, 25, 26, 26, 26, 27, 27, 26, 24, 25, 19, 21, 26, 27, 27, 26, 27, 24, 21, 21, 26, 26, 28, 27, 27, 27, 20, 24, 20, 21, 22, 21, 21, 23, 22, 22, 25, 25, 24, 24, 26, 23, 26, 27, 26, 26, 27, 27, 27, 27, 27, 28, 27, 27, 27, 27, 27, 26}; /* renamed from: d, reason: collision with root package name */ private static final k f14627d = new k(); /* renamed from: a, reason: collision with root package name */ private final a f14628a = new a(); private k() { b(); } private void a(int i10, int i11, byte b10) { a aVar = new a(i10, b10); a aVar2 = this.f14628a; while (b10 > 8) { b10 = (byte) (b10 - 8); int i12 = (i11 >>> b10) & 255; a[] aVarArr = aVar2.f14629a; if (aVarArr == null) { throw new IllegalStateException("invalid dictionary: prefix not unique"); } if (aVarArr[i12] == null) { aVarArr[i12] = new a(); } aVar2 = aVar2.f14629a[i12]; } int i13 = 8 - b10; int i14 = (i11 << i13) & 255; int i15 = 1 << i13; for (int i16 = i14; i16 < i14 + i15; i16++) { aVar2.f14629a[i16] = aVar; } } private void b() { int i10 = 0; while (true) { byte[] bArr = f14626c; if (i10 >= bArr.length) { return; } a(i10, f14625b[i10], bArr[i10]); i10++; } } public static k f() { return f14627d; } byte[] c(byte[] bArr) { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); a aVar = this.f14628a; int i10 = 0; int i11 = 0; for (byte b10 : bArr) { i10 = (i10 << 8) | (b10 & 255); i11 += 8; while (i11 >= 8) { aVar = aVar.f14629a[(i10 >>> (i11 - 8)) & 255]; if (aVar.f14629a == null) { byteArrayOutputStream.write(aVar.f14630b); i11 -= aVar.f14631c; aVar = this.f14628a; } else { i11 -= 8; } } } while (i11 > 0) { a aVar2 = aVar.f14629a[(i10 << (8 - i11)) & 255]; if (aVar2.f14629a != null || aVar2.f14631c > i11) { break; } byteArrayOutputStream.write(aVar2.f14630b); i11 -= aVar2.f14631c; aVar = this.f14628a; } return byteArrayOutputStream.toByteArray(); } void d(x9.f fVar, x9.d dVar) { long j10 = 0; int i10 = 0; for (int i11 = 0; i11 < fVar.n(); i11++) { int h10 = fVar.h(i11) & 255; int i12 = f14625b[h10]; byte b10 = f14626c[h10]; j10 = (j10 << b10) | i12; i10 += b10; while (i10 >= 8) { i10 -= 8; dVar.h((int) (j10 >> i10)); } } if (i10 > 0) { dVar.h((int) ((j10 << (8 - i10)) | (255 >>> i10))); } } int e(x9.f fVar) { long j10 = 0; for (int i10 = 0; i10 < fVar.n(); i10++) { j10 += f14626c[fVar.h(i10) & 255]; } return (int) ((j10 + 7) >> 3); } private static final class a { /* renamed from: a, reason: collision with root package name */ final a[] f14629a; /* renamed from: b, reason: collision with root package name */ final int f14630b; /* renamed from: c, reason: collision with root package name */ final int f14631c; a() { this.f14629a = new a[256]; this.f14630b = 0; this.f14631c = 0; } a(int i10, int i11) { this.f14629a = null; this.f14630b = i10; int i12 = i11 & 7; this.f14631c = i12 == 0 ? 8 : i12; } } }