package o; import java.io.IOException; import java.util.Vector; import org.xmlpull.repackaged.v1.XmlPullParserException; /* renamed from: o.gnh, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C15332gnh extends C15334gnj { C15334gnj b; protected String c; protected String d; private Vector e; private Vector f; @Override // o.C15334gnj public final C15332gnh b(String str, String str2) { C15334gnj c15334gnj = this.b; return c15334gnj == null ? super.b(str, str2) : c15334gnj.b(str, str2); } @Override // o.C15334gnj public final void a(InterfaceC15578gue interfaceC15578gue) throws IOException, XmlPullParserException { for (int a = interfaceC15578gue.a(interfaceC15578gue.d() - 1); a < interfaceC15578gue.a(interfaceC15578gue.d()); a++) { String e = interfaceC15578gue.e(a); String g = interfaceC15578gue.g(a); if (this.f == null) { this.f = new Vector(); } this.f.addElement(new String[]{e, g}); } int i = 0; while (true) { if (i >= interfaceC15578gue.c()) { break; } String c = interfaceC15578gue.c(i); String d = interfaceC15578gue.d(i); String b = interfaceC15578gue.b(i); if (this.e == null) { this.e = new Vector(); } String str = c != null ? c : ""; int size = this.e.size() - 1; while (true) { if (size >= 0) { String[] strArr = (String[]) this.e.elementAt(size); if (!strArr[0].equals(str) || !strArr[1].equals(d)) { size--; } else if (b == null) { this.e.removeElementAt(size); } else { strArr[2] = b; } } else { this.e.addElement(new String[]{str, d, b}); break; } } i++; } if (interfaceC15578gue.o()) { interfaceC15578gue.k(); } else { interfaceC15578gue.k(); super.a(interfaceC15578gue); Vector vector = this.a; if (vector == null || vector.size() == 0) { b(7, ""); } } interfaceC15578gue.d(3, this.c, this.d); interfaceC15578gue.k(); } @Override // o.C15334gnj public final void b(InterfaceC15580gug interfaceC15580gug) throws IOException { if (this.f != null) { for (int i = 0; i < this.f.size(); i++) { interfaceC15580gug.e(((String[]) this.f.elementAt(i))[0], ((String[]) this.f.elementAt(i))[1]); } } interfaceC15580gug.a(this.c, this.d); Vector vector = this.e; int size = vector == null ? 0 : vector.size(); for (int i2 = 0; i2 < size; i2++) { interfaceC15580gug.c(((String[]) this.e.elementAt(i2))[0], ((String[]) this.e.elementAt(i2))[1], ((String[]) this.e.elementAt(i2))[2]); } c(interfaceC15580gug); interfaceC15580gug.b(this.c, this.d); } public final String e() { return this.c; } public final String d() { return this.d; } }