what-the-bank/sources/o/C15161gip.java

130 lines
3.9 KiB
Java

package o;
/* renamed from: o.gip, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C15161gip implements giD {
private boolean a;
private long b;
private final C15111ghZ c;
private int d;
private C15170giy e;
private final InterfaceC15149gid j;
public C15161gip(InterfaceC15149gid interfaceC15149gid) {
C14957gcv.e(interfaceC15149gid, "");
this.j = interfaceC15149gid;
C15111ghZ i = interfaceC15149gid.i();
this.c = i;
this.e = i.d;
C15170giy c15170giy = i.d;
this.d = c15170giy != null ? c15170giy.e : -1;
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x0026, code lost:
if (r3 == r4.e) goto L15;
*/
@Override // o.giD
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final long read(o.C15111ghZ r9, long r10) {
/*
r8 = this;
java.lang.String r0 = ""
o.C14957gcv.e(r9, r0)
r0 = 0
int r2 = (r10 > r0 ? 1 : (r10 == r0 ? 0 : -1))
if (r2 < 0) goto L89
boolean r3 = r8.a
r3 = r3 ^ 1
if (r3 == 0) goto L7d
o.giy r3 = r8.e
if (r3 == 0) goto L35
o.ghZ r4 = r8.c
o.giy r4 = r4.d
if (r3 != r4) goto L29
int r3 = r8.d
o.ghZ r4 = r8.c
o.giy r4 = r4.d
o.C14957gcv.e(r4)
int r4 = r4.e
if (r3 != r4) goto L29
goto L35
L29:
java.lang.IllegalStateException r9 = new java.lang.IllegalStateException
java.lang.String r10 = "Peek source is invalid because upstream source was used"
java.lang.String r10 = r10.toString()
r9.<init>(r10)
throw r9
L35:
if (r2 != 0) goto L38
return r0
L38:
o.gid r0 = r8.j
long r1 = r8.b
r3 = 1
long r1 = r1 + r3
boolean r0 = r0.a(r1)
if (r0 != 0) goto L48
r9 = -1
return r9
L48:
o.giy r0 = r8.e
if (r0 != 0) goto L63
o.ghZ r0 = r8.c
o.giy r0 = r0.d
if (r0 == 0) goto L63
o.ghZ r0 = r8.c
o.giy r0 = r0.d
r8.e = r0
o.ghZ r0 = r8.c
o.giy r0 = r0.d
o.C14957gcv.e(r0)
int r0 = r0.e
r8.d = r0
L63:
o.ghZ r0 = r8.c
long r0 = r0.c
long r2 = r8.b
long r0 = r0 - r2
long r10 = java.lang.Math.min(r10, r0)
o.ghZ r2 = r8.c
long r4 = r8.b
r3 = r9
r6 = r10
r2.c(r3, r4, r6)
long r0 = r8.b
long r0 = r0 + r10
r8.b = r0
return r10
L7d:
java.lang.IllegalStateException r9 = new java.lang.IllegalStateException
java.lang.String r10 = "closed"
java.lang.String r10 = r10.toString()
r9.<init>(r10)
throw r9
L89:
java.lang.IllegalArgumentException r9 = new java.lang.IllegalArgumentException
java.lang.String r0 = "byteCount < 0: "
java.lang.String r10 = java.lang.String.valueOf(r10)
java.lang.String r10 = r0.concat(r10)
java.lang.String r10 = r10.toString()
r9.<init>(r10)
throw r9
*/
throw new UnsupportedOperationException("Method not decompiled: o.C15161gip.read(o.ghZ, long):long");
}
@Override // o.giD
public final C15139giB timeout() {
return this.j.timeout();
}
@Override // o.giD, java.io.Closeable, java.lang.AutoCloseable
public final void close() {
this.a = true;
}
}