package o; import o.C15111ghZ; /* loaded from: classes.dex */ public final class giJ { private static final byte[] a; static { C14957gcv.e("0123456789abcdef", ""); byte[] bytes = "0123456789abcdef".getBytes(gdP.a); C14957gcv.c(bytes, ""); a = bytes; } public static final boolean d(C15170giy c15170giy, int i, byte[] bArr, int i2, int i3) { C14957gcv.e(c15170giy, ""); C14957gcv.e(bArr, ""); int i4 = c15170giy.d; byte[] bArr2 = c15170giy.c; while (i2 < i3) { if (i == i4) { c15170giy = c15170giy.a; C14957gcv.e(c15170giy); byte[] bArr3 = c15170giy.c; bArr2 = bArr3; i = c15170giy.e; i4 = c15170giy.d; } if (bArr2[i] != bArr[i2]) { return false; } i++; i2++; } return true; } public static final String d(C15111ghZ c15111ghZ, long j) { C14957gcv.e(c15111ghZ, ""); if (j > 0) { long j2 = j - 1; if (c15111ghZ.d(j2) == 13) { String b = c15111ghZ.b(j2, gdP.a); c15111ghZ.j(2L); return b; } } String b2 = c15111ghZ.b(j, gdP.a); c15111ghZ.j(1L); return b2; } /* JADX WARN: Code restructure failed: missing block: B:35:0x00a4, code lost: if (r19 == false) goto L111; */ /* JADX WARN: Code restructure failed: missing block: B:36:0x00a6, code lost: return -2; */ /* JADX WARN: Code restructure failed: missing block: B:37:0x00a7, code lost: return r10; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public static final int a(o.C15111ghZ r17, o.C15163gir r18, boolean r19) { /* Method dump skipped, instructions count: 168 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.giJ.a(o.ghZ, o.gir, boolean):int"); } public static final C15111ghZ.RVV d(C15111ghZ c15111ghZ, C15111ghZ.RVV rvv) { C14957gcv.e(c15111ghZ, ""); C14957gcv.e(rvv, ""); C15111ghZ.RVV c = giE.c(rvv); if (c.b != null) { throw new IllegalStateException("already attached to a buffer".toString()); } c.b = c15111ghZ; c.a = true; return c; } public static final byte[] c() { return a; } }