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

178 lines
5.5 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.Iterator;
import java.util.NoSuchElementException;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public final class gdS implements gdE<C14973gde> {
final int a;
final int b;
final InterfaceC14937gcb<CharSequence, Integer, C13396fZU<Integer, Integer>> d;
final CharSequence e;
/* JADX WARN: Multi-variable type inference failed */
public gdS(CharSequence charSequence, int i, int i2, InterfaceC14937gcb<? super CharSequence, ? super Integer, C13396fZU<Integer, Integer>> interfaceC14937gcb) {
C14957gcv.e(charSequence, "");
C14957gcv.e(interfaceC14937gcb, "");
this.e = charSequence;
this.a = 0;
this.b = i2;
this.d = interfaceC14937gcb;
}
/* loaded from: classes.dex */
public static final class IeS implements Iterator<C14973gde>, InterfaceC14932gcO {
private C14973gde a;
private int b;
private int c = -1;
private int d;
private int e;
private gdS j;
IeS(gdS gds) {
this.j = gds;
int e = C14977gdi.e(gds.a, 0, gds.e.length());
this.b = e;
this.d = e;
}
@Override // java.util.Iterator
public final /* synthetic */ C14973gde next() {
if (this.c == -1) {
d();
}
if (this.c == 0) {
throw new NoSuchElementException();
}
C14973gde c14973gde = this.a;
C14957gcv.d(c14973gde, "");
this.a = null;
this.c = -1;
return c14973gde;
}
@Override // java.util.Iterator
public final boolean hasNext() {
if (this.c == -1) {
d();
}
return this.c == 1;
}
/* JADX WARN: Code restructure failed: missing block: B:9:0x001e, code lost:
if (r0 < r7.j.b) goto L10;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private final void d() {
/*
r7 = this;
int r0 = r7.d
r1 = 0
if (r0 >= 0) goto Lb
r7.c = r1
r0 = 0
r7.a = r0
return
Lb:
o.gdS r0 = r7.j
int r0 = r0.b
r2 = -1
java.lang.String r3 = ""
r4 = 1
if (r0 <= 0) goto L20
int r0 = r7.e
int r0 = r0 + r4
r7.e = r0
o.gdS r5 = r7.j
int r5 = r5.b
if (r0 >= r5) goto L2c
L20:
int r0 = r7.d
o.gdS r5 = r7.j
java.lang.CharSequence r5 = r5.e
int r5 = r5.length()
if (r0 <= r5) goto L44
L2c:
o.gde r0 = new o.gde
int r1 = r7.b
o.gdS r5 = r7.j
java.lang.CharSequence r5 = r5.e
o.C14957gcv.e(r5, r3)
int r3 = r5.length()
int r3 = r3 - r4
r0.<init>(r1, r3)
r7.a = r0
r7.d = r2
goto La2
L44:
o.gdS r0 = r7.j
o.gcb<java.lang.CharSequence, java.lang.Integer, o.fZU<java.lang.Integer, java.lang.Integer>> r0 = r0.d
o.gdS r5 = r7.j
java.lang.CharSequence r5 = r5.e
int r6 = r7.d
java.lang.Integer r6 = java.lang.Integer.valueOf(r6)
java.lang.Object r0 = r0.invoke(r5, r6)
o.fZU r0 = (o.C13396fZU) r0
if (r0 != 0) goto L72
o.gde r0 = new o.gde
int r1 = r7.b
o.gdS r5 = r7.j
java.lang.CharSequence r5 = r5.e
o.C14957gcv.e(r5, r3)
int r3 = r5.length()
int r3 = r3 - r4
r0.<init>(r1, r3)
r7.a = r0
r7.d = r2
goto La2
L72:
A r2 = r0.d
java.lang.Number r2 = (java.lang.Number) r2
int r2 = r2.intValue()
B r0 = r0.e
java.lang.Number r0 = (java.lang.Number) r0
int r0 = r0.intValue()
int r3 = r7.b
r5 = -2147483648(0xffffffff80000000, float:-0.0)
if (r2 > r5) goto L8f
o.gde$LWm r3 = o.C14973gde.c
o.gde r3 = o.C14973gde.e()
goto L97
L8f:
o.gde r5 = new o.gde
int r6 = r2 + (-1)
r5.<init>(r3, r6)
r3 = r5
L97:
r7.a = r3
int r2 = r2 + r0
r7.b = r2
if (r0 != 0) goto L9f
r1 = r4
L9f:
int r2 = r2 + r1
r7.d = r2
La2:
r7.c = r4
return
*/
throw new UnsupportedOperationException("Method not decompiled: o.gdS.IeS.d():void");
}
@Override // java.util.Iterator
public final void remove() {
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
}
}
@Override // o.gdE
public final Iterator<C14973gde> e() {
return new IeS(this);
}
}