package o; import java.util.Stack; /* loaded from: classes.dex */ public abstract class QzG implements InterfaceC1355aBp { private BrP b; private final Stack c = new Stack<>(); public BrP d; public final C16613piz e; public QzG(C16613piz c16613piz, BrP brP) { this.e = c16613piz; this.b = brP; } @Override // o.InterfaceC1355aBp public final void e() { this.d = this.c.empty() ? null : this.c.pop(); } /* JADX INFO: Access modifiers changed from: protected */ public final void a(Class cls) { try { BrP newInstance = cls.newInstance(); BrP brP = this.d; if (brP != null) { this.c.push(brP); } else if (this.b != null) { this.b = null; } this.d = newInstance; C16613piz c16613piz = this.e; if (newInstance == null) { throw new IllegalArgumentException("Directory may not be null."); } c16613piz.c.add(newInstance); } catch (IllegalAccessException e) { throw new RuntimeException(e); } catch (InstantiationException e2) { throw new RuntimeException(e2); } } @Override // o.InterfaceC1355aBp public final void a(String str) { BrP b = b(); BrP.b(new Object[]{b, str}, -1786863991, 1786863992, System.identityHashCode(b)); } @Override // o.InterfaceC1355aBp public final void c(String str) { BrP b = b(); BrP.b(new Object[]{b, str}, -1786863991, 1786863992, System.identityHashCode(b)); } public final BrP b() { BrP brP = this.d; if (brP != null) { return brP; } C17424wfl c17424wfl = (C17424wfl) this.e.c(C17424wfl.class); if (c17424wfl != null) { return c17424wfl; } a(C17424wfl.class); return this.d; } @Override // o.InterfaceC1355aBp public final void e(int i, byte[] bArr) { this.d.c(i, bArr); } @Override // o.InterfaceC1355aBp public final void c(int i, Gux gux) { BrP.b(new Object[]{this.d, Integer.valueOf(i), gux}, 688836184, -688836178, i); } @Override // o.InterfaceC1355aBp public final void c(int i, Axo axo) { this.d.d(i, axo); } @Override // o.InterfaceC1355aBp public final void d(int i, Axo[] axoArr) { this.d.e(i, axoArr); } @Override // o.InterfaceC1355aBp public final void c(int i, float f) { BrP.b(new Object[]{this.d, Integer.valueOf(i), Float.valueOf(f)}, 2042380448, -2042380448, i); } @Override // o.InterfaceC1355aBp public final void a(int i, float[] fArr) { this.d.d(i, fArr); } @Override // o.InterfaceC1355aBp public final void b(int i, double d) { this.d.c(i, d); } @Override // o.InterfaceC1355aBp public final void d(int i, double[] dArr) { this.d.c(i, dArr); } @Override // o.InterfaceC1355aBp public final void e(int i, byte b) { this.d.d(i, b); } @Override // o.InterfaceC1355aBp public final void a(int i, byte[] bArr) { this.d.c(i, bArr); } @Override // o.InterfaceC1355aBp public final void e(int i, short s) { this.d.d(i, s); } @Override // o.InterfaceC1355aBp public final void d(int i, short[] sArr) { this.d.a(i, sArr); } @Override // o.InterfaceC1355aBp public final void e(int i, int i2) { this.d.d(i, i2); } @Override // o.InterfaceC1355aBp public final void a(int i, short[] sArr) { this.d.a(i, sArr); } @Override // o.InterfaceC1355aBp public final void c(int i, int i2) { this.d.d(i, i2); } @Override // o.InterfaceC1355aBp public final void a(int i, int[] iArr) { this.d.a(i, iArr); } @Override // o.InterfaceC1355aBp public final void a(int i, int i2) { this.d.d(i, i2); } @Override // o.InterfaceC1355aBp public final void e(int i, int[] iArr) { this.d.b(i, iArr); } @Override // o.InterfaceC1355aBp public final void b(int i, long j) { this.d.e(i, j); } @Override // o.InterfaceC1355aBp public final void b(int i, long[] jArr) { this.d.a(i, jArr); } }