package q13; import com.taobao.android.dexposed.ClassUtils; import com.tencent.qcloud.core.util.IOUtils; import com.tencent.smtt.sdk.TbsListener; /* compiled from: ClassWriter */ public class g extends f { public static final byte[] P; public b A; public b B; public b C; public b D; public c E; public int F; public d G; public int H; public d I; /* renamed from: J reason: collision with root package name */ public l f120234J; public l K; public s L; public s M; public int N; public boolean O; /* renamed from: c reason: collision with root package name */ public e f120235c; /* renamed from: d reason: collision with root package name */ public int f120236d; /* renamed from: e reason: collision with root package name */ public int f120237e; /* renamed from: f reason: collision with root package name */ public final d f120238f; /* renamed from: g reason: collision with root package name */ public p[] f120239g; /* renamed from: h reason: collision with root package name */ public int f120240h; /* renamed from: i reason: collision with root package name */ public final p f120241i; /* renamed from: j reason: collision with root package name */ public final p f120242j; /* renamed from: k reason: collision with root package name */ public final p f120243k; /* renamed from: l reason: collision with root package name */ public final p f120244l; /* renamed from: m reason: collision with root package name */ public p[] f120245m; /* renamed from: n reason: collision with root package name */ public short f120246n; /* renamed from: o reason: collision with root package name */ public int f120247o; /* renamed from: p reason: collision with root package name */ public int f120248p; /* renamed from: q reason: collision with root package name */ public String f120249q; /* renamed from: r reason: collision with root package name */ public int f120250r; /* renamed from: s reason: collision with root package name */ public int f120251s; /* renamed from: t reason: collision with root package name */ public int f120252t; /* renamed from: u reason: collision with root package name */ public int[] f120253u; /* renamed from: v reason: collision with root package name */ public int f120254v; /* renamed from: w reason: collision with root package name */ public d f120255w; /* renamed from: x reason: collision with root package name */ public u f120256x; /* renamed from: y reason: collision with root package name */ public int f120257y; /* renamed from: z reason: collision with root package name */ public int f120258z; static { byte[] bArr = new byte[TbsListener.ErrorCode.INCRUPDATE_INSTALL_SUCCESS]; for (int i10 = 0; i10 < 221; i10++) { bArr[i10] = (byte) ("AAAAAAAAAAAAAAAABCLMMDDDDDEEEEEEEEEEEEEEEEEEEEAAAAAAAADDDDDEEEEEEEEEEEEEEEEEEEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANAAAAAAAAAAAAAAAAAAAAJJJJJJJJJJJJJJJJDOPAAAAAAGGGGGGGHIFBFAAFFAARQJJKKSSSSSSSSSSSSSSSSSST".charAt(i10) - 'A'); } P = bArr; } public g(int i10) { super(393216); this.f120237e = 1; this.f120238f = new d(); p[] pVarArr = new p[256]; this.f120239g = pVarArr; this.f120240h = (int) (((double) pVarArr.length) * 0.75d); this.f120241i = new p(); this.f120242j = new p(); this.f120243k = new p(); this.f120244l = new p(); this.N = (i10 & 2) != 0 ? 0 : (i10 & 1) != 0 ? 2 : 3; } public p A(int i10) { this.f120241i.d(i10); p o14 = o(this.f120241i); if (o14 != null) { return o14; } this.f120238f.e(3).g(i10); int i14 = this.f120237e; this.f120237e = i14 + 1; p pVar = new p(i14, this.f120241i); L(pVar); return pVar; } public p B(String str, String str2, n nVar, Object... objArr) { int i10; d dVar = this.I; if (dVar == null) { dVar = new d(); this.I = dVar; } int i14 = dVar.f120226b; int hashCode = nVar.hashCode(); dVar.i(y(nVar.f120304a, nVar.f120305b, nVar.f120306c, nVar.f120307d, nVar.a())); int length = objArr.length; dVar.i(length); for (Object obj : objArr) { hashCode ^= obj.hashCode(); dVar.i(s(obj)); } byte[] bArr = dVar.f120225a; int i15 = (length + 2) << 1; int i16 = hashCode & Integer.MAX_VALUE; p[] pVarArr = this.f120239g; p pVar = pVarArr[i16 % pVarArr.length]; loop1: while (pVar != null) { if (pVar.f120316b == 33 && pVar.f120322h == i16) { int i17 = pVar.f120317c; for (int i18 = 0; i18 < i15; i18++) { if (bArr[i14 + i18] != bArr[i17 + i18]) { pVar = pVar.f120323i; } } break loop1; } pVar = pVar.f120323i; } if (pVar != null) { i10 = pVar.f120315a; dVar.f120226b = i14; } else { i10 = this.H; this.H = i10 + 1; p pVar2 = new p(i10); pVar2.e(i14, i16); L(pVar2); } this.f120243k.h(str, str2, i10); p o14 = o(this.f120243k); if (o14 != null) { return o14; } N(18, i10, G(str, str2)); int i19 = this.f120237e; this.f120237e = i19 + 1; p pVar3 = new p(i19, this.f120243k); L(pVar3); return pVar3; } public p C(long j14) { this.f120241i.g(j14); p o14 = o(this.f120241i); if (o14 != null) { return o14; } this.f120238f.e(5).h(j14); p pVar = new p(this.f120237e, this.f120241i); this.f120237e += 2; L(pVar); return pVar; } public int D(String str, String str2, String str3, boolean z14) { return E(str, str2, str3, z14).f120315a; } public p E(String str, String str2, String str3, boolean z14) { int i10 = z14 ? 11 : 10; this.f120243k.f(i10, str, str2, str3); p o14 = o(this.f120243k); if (o14 != null) { return o14; } N(i10, r(str), G(str2, str3)); int i14 = this.f120237e; this.f120237e = i14 + 1; p pVar = new p(i14, this.f120243k); L(pVar); return pVar; } public int F(String str) { return J(19, str).f120315a; } public int G(String str, String str2) { return H(str, str2).f120315a; } public p H(String str, String str2) { this.f120242j.f(12, str, str2, null); p o14 = o(this.f120242j); if (o14 != null) { return o14; } N(12, K(str), K(str2)); int i10 = this.f120237e; this.f120237e = i10 + 1; p pVar = new p(i10, this.f120242j); L(pVar); return pVar; } public int I(String str) { return J(20, str).f120315a; } public p J(int i10, String str) { this.f120242j.f(i10, str, null, null); p o14 = o(this.f120242j); if (o14 != null) { return o14; } this.f120238f.d(i10, K(str)); int i14 = this.f120237e; this.f120237e = i14 + 1; p pVar = new p(i14, this.f120242j); L(pVar); return pVar; } public int K(String str) { this.f120241i.f(1, str, null, null); p o14 = o(this.f120241i); if (o14 == null) { this.f120238f.e(1).j(str); int i10 = this.f120237e; this.f120237e = i10 + 1; o14 = new p(i10, this.f120241i); L(o14); } return o14.f120315a; } public final void L(p pVar) { if (this.f120237e + this.f120246n > this.f120240h) { int length = this.f120239g.length; int i10 = (length * 2) + 1; p[] pVarArr = new p[i10]; for (int i14 = length - 1; i14 >= 0; i14--) { p pVar2 = this.f120239g[i14]; while (pVar2 != null) { int i15 = pVar2.f120322h % i10; p pVar3 = pVar2.f120323i; pVar2.f120323i = pVarArr[i15]; pVarArr[i15] = pVar2; pVar2 = pVar3; } } this.f120239g = pVarArr; this.f120240h = (int) (((double) i10) * 0.75d); } int i16 = pVar.f120322h; p[] pVarArr2 = this.f120239g; int length2 = i16 % pVarArr2.length; pVar.f120323i = pVarArr2[length2]; pVarArr2[length2] = pVar; } public final void M(int i10, int i14, int i15) { this.f120238f.c(i10, i14).i(i15); } public final void N(int i10, int i14, int i15) { this.f120238f.d(i10, i14).i(i15); } @Override // q13.f public final void a(int i10, int i14, String str, String str2, String str3, String[] strArr) { int i15; this.f120236d = i10; this.f120247o = i14; this.f120248p = r(str); this.f120249q = str; if (str2 != null) { this.f120250r = K(str2); } if (str3 == null) { i15 = 0; } else { i15 = r(str3); } this.f120251s = i15; if (strArr != null && strArr.length > 0) { int length = strArr.length; this.f120252t = length; this.f120253u = new int[length]; for (int i16 = 0; i16 < this.f120252t; i16++) { this.f120253u[i16] = r(strArr[i16]); } } } @Override // q13.f public final a b(String str, boolean z14) { d dVar = new d(); dVar.i(K(str)).i(0); b bVar = new b(this, true, dVar, dVar, 2); if (z14) { bVar.f120221i = this.A; this.A = bVar; } else { bVar.f120221i = this.B; this.B = bVar; } return bVar; } @Override // q13.f public final void c(c cVar) { cVar.f120224c = this.E; this.E = cVar; } @Override // q13.f public final void d() { } @Override // q13.f public final k e(int i10, String str, String str2, String str3, Object obj) { return new l(this, i10, str, str2, str3, obj); } @Override // q13.f public final void f(String str, String str2, String str3, int i10) { if (this.G == null) { this.G = new d(); } p J2 = J(7, str); if (J2.f120317c == 0) { this.F++; this.G.i(J2.f120315a); int i14 = 0; this.G.i(str2 == null ? 0 : r(str2)); d dVar = this.G; if (str3 != null) { i14 = K(str3); } dVar.i(i14); this.G.i(i10); J2.f120317c = this.F; } } @Override // q13.f public final r g(int i10, String str, String str2, String str3, String[] strArr) { return new s(this, i10, str, str2, str3, strArr, this.N); } @Override // q13.f public final t h(String str, int i10, String str2) { int i14; int F2 = F(str); if (str2 == null) { i14 = 0; } else { i14 = K(str2); } u uVar = new u(this, F2, i10, i14); this.f120256x = uVar; return uVar; } @Override // q13.f public final void i(String str, String str2, String str3) { this.f120257y = r(str); if (str2 != null && str3 != null) { this.f120258z = G(str2, str3); } } @Override // q13.f public final void j(String str, String str2) { if (str != null) { this.f120254v = K(str); } if (str2 != null) { this.f120255w = new d().a(str2, 0, Integer.MAX_VALUE); } } @Override // q13.f public final a k(int i10, x xVar, String str, boolean z14) { d dVar = new d(); b.f(i10, xVar, dVar); dVar.i(K(str)).i(0); b bVar = new b(this, true, dVar, dVar, dVar.f120226b - 2); if (z14) { bVar.f120221i = this.C; this.C = bVar; } else { bVar.f120221i = this.D; this.D = bVar; } return bVar; } public int l(String str) { this.f120241i.f(30, str, null, null); p o14 = o(this.f120241i); if (o14 == null) { o14 = m(this.f120241i); } return o14.f120315a; } public final p m(p pVar) { short s14 = (short) (this.f120246n + 1); this.f120246n = s14; p pVar2 = new p(s14, this.f120241i); L(pVar2); if (this.f120245m == null) { this.f120245m = new p[16]; } short s15 = this.f120246n; p[] pVarArr = this.f120245m; if (s15 == pVarArr.length) { p[] pVarArr2 = new p[(pVarArr.length * 2)]; System.arraycopy(pVarArr, 0, pVarArr2, 0, pVarArr.length); this.f120245m = pVarArr2; } this.f120245m[this.f120246n] = pVar2; return pVar2; } public int n(String str, int i10) { p pVar = this.f120241i; pVar.f120316b = 31; pVar.f120317c = i10; pVar.f120319e = str; pVar.f120322h = (str.hashCode() + 31 + i10) & Integer.MAX_VALUE; p o14 = o(this.f120241i); if (o14 == null) { o14 = m(this.f120241i); } return o14.f120315a; } public final p o(p pVar) { p[] pVarArr = this.f120239g; p pVar2 = pVarArr[pVar.f120322h % pVarArr.length]; while (pVar2 != null && (pVar2.f120316b != pVar.f120316b || !pVar.a(pVar2))) { pVar2 = pVar2.f120323i; } return pVar2; } public String p(String str, String str2) { ClassLoader classLoader = getClass().getClassLoader(); try { Class<?> cls = Class.forName(str.replace(IOUtils.DIR_SEPARATOR_UNIX, ClassUtils.PACKAGE_SEPARATOR_CHAR), false, classLoader); Class<?> cls2 = Class.forName(str2.replace(IOUtils.DIR_SEPARATOR_UNIX, ClassUtils.PACKAGE_SEPARATOR_CHAR), false, classLoader); if (cls.isAssignableFrom(cls2)) { return str; } if (cls2.isAssignableFrom(cls)) { return str2; } if (cls.isInterface() || cls2.isInterface()) { return "java/lang/Object"; } do { cls = cls.getSuperclass(); } while (!cls.isAssignableFrom(cls2)); return cls.getName().replace(ClassUtils.PACKAGE_SEPARATOR_CHAR, IOUtils.DIR_SEPARATOR_UNIX); } catch (Exception e14) { throw new RuntimeException(e14.toString()); } } public int q(int i10, int i14) { p pVar = this.f120242j; pVar.f120316b = 32; pVar.f120318d = ((long) i10) | (((long) i14) << 32); pVar.f120322h = (i10 + 32 + i14) & Integer.MAX_VALUE; p o14 = o(pVar); if (o14 == null) { p[] pVarArr = this.f120245m; String str = pVarArr[i10].f120319e; String str2 = pVarArr[i14].f120319e; this.f120242j.f120317c = l(p(str, str2)); o14 = new p(0, this.f120242j); L(o14); } return o14.f120317c; } public int r(String str) { return J(7, str).f120315a; } public int s(Object obj) { return t(obj).f120315a; } public p t(Object obj) { if (obj instanceof Integer) { return A(((Integer) obj).intValue()); } if (obj instanceof Byte) { return A(((Byte) obj).intValue()); } if (obj instanceof Character) { return A(((Character) obj).charValue()); } if (obj instanceof Short) { return A(((Short) obj).intValue()); } if (obj instanceof Boolean) { return A(((Boolean) obj).booleanValue() ? 1 : 0); } if (obj instanceof Float) { return x(((Float) obj).floatValue()); } if (obj instanceof Long) { return C(((Long) obj).longValue()); } if (obj instanceof Double) { return u(((Double) obj).doubleValue()); } if (obj instanceof String) { return J(8, (String) obj); } if (obj instanceof w) { w wVar = (w) obj; int h10 = wVar.h(); if (h10 == 10) { return J(7, wVar.e()); } if (h10 == 11) { return J(16, wVar.c()); } return J(7, wVar.c()); } else if (obj instanceof n) { n nVar = (n) obj; return z(nVar.f120304a, nVar.f120305b, nVar.f120306c, nVar.f120307d, nVar.f120308e); } else { throw new IllegalArgumentException("value " + obj); } } public p u(double d14) { this.f120241i.b(d14); p o14 = o(this.f120241i); if (o14 != null) { return o14; } this.f120238f.e(6).h(this.f120241i.f120318d); p pVar = new p(this.f120237e, this.f120241i); this.f120237e += 2; L(pVar); return pVar; } public int v(String str, String str2, String str3) { return w(str, str2, str3).f120315a; } public p w(String str, String str2, String str3) { this.f120243k.f(9, str, str2, str3); p o14 = o(this.f120243k); if (o14 != null) { return o14; } N(9, r(str), G(str2, str3)); int i10 = this.f120237e; this.f120237e = i10 + 1; p pVar = new p(i10, this.f120243k); L(pVar); return pVar; } public p x(float f14) { this.f120241i.c(f14); p o14 = o(this.f120241i); if (o14 != null) { return o14; } this.f120238f.e(4).g(this.f120241i.f120317c); int i10 = this.f120237e; this.f120237e = i10 + 1; p pVar = new p(i10, this.f120241i); L(pVar); return pVar; } public int y(int i10, String str, String str2, String str3, boolean z14) { return z(i10, str, str2, str3, z14).f120315a; } public p z(int i10, String str, String str2, String str3, boolean z14) { this.f120244l.f(i10 + 20, str, str2, str3); p o14 = o(this.f120244l); if (o14 != null) { return o14; } if (i10 <= 4) { M(15, i10, v(str, str2, str3)); } else { M(15, i10, D(str, str2, str3, z14)); } int i14 = this.f120237e; this.f120237e = i14 + 1; p pVar = new p(i14, this.f120244l); L(pVar); return pVar; } public g(e eVar, int i10) { this(i10); eVar.d(this); this.f120235c = eVar; } }