package a.k;

import a.f.b.a.a;
import a.h.d;
import a.h.e;
import a.l;
import a.v;
import com.tencent.matrix.trace.core.AppMethodBeat;
import java.util.Iterator;
import java.util.NoSuchElementException;

@l(dWo = {1, 1, 13}, dWp = {"\u0000%\n\u0000\n\u0002\u0010(\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0013\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001J\b\u0010\u0017\u001a\u00020\u0018H\u0002J\t\u0010\u0019\u001a\u00020\u001aH\u0002J\t\u0010\u001b\u001a\u00020\u0002H\u0002R\u001a\u0010\u0003\u001a\u00020\u0004X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0005\u0010\u0006\"\u0004\b\u0007\u0010\bR\u001a\u0010\t\u001a\u00020\u0004X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\n\u0010\u0006\"\u0004\b\u000b\u0010\bR\u001c\u0010\f\u001a\u0004\u0018\u00010\u0002X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\r\u0010\u000e\"\u0004\b\u000f\u0010\u0010R\u001a\u0010\u0011\u001a\u00020\u0004X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0012\u0010\u0006\"\u0004\b\u0013\u0010\bR\u001a\u0010\u0014\u001a\u00020\u0004X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0015\u0010\u0006\"\u0004\b\u0016\u0010\b¨\u0006\u001c"}, dWq = {"kotlin/text/DelimitedRangesSequence$iterator$1", "", "Lkotlin/ranges/IntRange;", "counter", "", "getCounter", "()I", "setCounter", "(I)V", "currentStartIndex", "getCurrentStartIndex", "setCurrentStartIndex", "nextItem", "getNextItem", "()Lkotlin/ranges/IntRange;", "setNextItem", "(Lkotlin/ranges/IntRange;)V", "nextSearchIndex", "getNextSearchIndex", "setNextSearchIndex", "nextState", "getNextState", "setNextState", "calcNext", "", "hasNext", "", "next", "kotlin-stdlib"})
public final class e$a implements a, Iterator<d> {
    private int BOS;
    private int BOT;
    private d BOU;
    final /* synthetic */ e BOV;
    private int BOw = -1;
    private int counter;

    public final void remove() {
        AppMethodBeat.i(56264);
        UnsupportedOperationException unsupportedOperationException = new UnsupportedOperationException("Operation is not supported for read-only collection");
        AppMethodBeat.o(56264);
        throw unsupportedOperationException;
    }

    e$a(e eVar) {
        this.BOV = eVar;
        AppMethodBeat.i(56263);
        this.BOS = e.aQ(eVar.jaQ, 0, eVar.BOQ.length());
        this.BOT = this.BOS;
        AppMethodBeat.o(56263);
    }

    /* JADX WARNING: Missing block: B:6:0x0028, code skipped:
            if (r7.counter < r7.BOV.limit) goto L_0x002a;
     */
    private final void ekK() {
        /*
        r7 = this;
        r2 = 1;
        r3 = 0;
        r6 = -1;
        r5 = 56260; // 0xdbc4 float:7.8837E-41 double:2.7796E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.i(r5);
        r0 = r7.BOT;
        if (r0 >= 0) goto L_0x0016;
    L_0x000d:
        r7.BOw = r3;
        r0 = 0;
        r7.BOU = r0;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r5);
    L_0x0015:
        return;
    L_0x0016:
        r0 = r7.BOV;
        r0 = r0.limit;
        if (r0 <= 0) goto L_0x002a;
    L_0x001c:
        r0 = r7.counter;
        r0 = r0 + 1;
        r7.counter = r0;
        r0 = r7.counter;
        r1 = r7.BOV;
        r1 = r1.limit;
        if (r0 >= r1) goto L_0x0036;
    L_0x002a:
        r0 = r7.BOT;
        r1 = r7.BOV;
        r1 = r1.BOQ;
        r1 = r1.length();
        if (r0 <= r1) goto L_0x004f;
    L_0x0036:
        r0 = r7.BOS;
        r1 = new a.h.d;
        r3 = r7.BOV;
        r3 = r3.BOQ;
        r3 = a.k.m.at(r3);
        r1.<init>(r0, r3);
        r7.BOU = r1;
        r7.BOT = r6;
    L_0x0049:
        r7.BOw = r2;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r5);
        goto L_0x0015;
    L_0x004f:
        r0 = r7.BOV;
        r0 = r0.BOR;
        r1 = r7.BOV;
        r1 = r1.BOQ;
        r4 = r7.BOT;
        r4 = java.lang.Integer.valueOf(r4);
        r0 = r0.m(r1, r4);
        r0 = (a.o) r0;
        if (r0 != 0) goto L_0x0079;
    L_0x0065:
        r0 = r7.BOS;
        r1 = new a.h.d;
        r3 = r7.BOV;
        r3 = r3.BOQ;
        r3 = a.k.m.at(r3);
        r1.<init>(r0, r3);
        r7.BOU = r1;
        r7.BOT = r6;
        goto L_0x0049;
    L_0x0079:
        r1 = r0.first;
        r1 = (java.lang.Number) r1;
        r1 = r1.intValue();
        r0 = r0.second;
        r0 = (java.lang.Number) r0;
        r0 = r0.intValue();
        r4 = r7.BOS;
        r4 = a.h.e.il(r4, r1);
        r7.BOU = r4;
        r1 = r1 + r0;
        r7.BOS = r1;
        r1 = r7.BOS;
        if (r0 != 0) goto L_0x009d;
    L_0x0098:
        r0 = r2;
    L_0x0099:
        r0 = r0 + r1;
        r7.BOT = r0;
        goto L_0x0049;
    L_0x009d:
        r0 = r3;
        goto L_0x0099;
        */
        throw new UnsupportedOperationException("Method not decompiled: a.k.e$a.ekK():void");
    }

    public final boolean hasNext() {
        AppMethodBeat.i(56262);
        if (this.BOw == -1) {
            ekK();
        }
        if (this.BOw == 1) {
            AppMethodBeat.o(56262);
            return true;
        }
        AppMethodBeat.o(56262);
        return false;
    }

    public final /* synthetic */ Object next() {
        AppMethodBeat.i(56261);
        if (this.BOw == -1) {
            ekK();
        }
        if (this.BOw == 0) {
            Throwable noSuchElementException = new NoSuchElementException();
            AppMethodBeat.o(56261);
            throw noSuchElementException;
        }
        d dVar = this.BOU;
        if (dVar == null) {
            v vVar = new v("null cannot be cast to non-null type kotlin.ranges.IntRange");
            AppMethodBeat.o(56261);
            throw vVar;
        }
        this.BOU = null;
        this.BOw = -1;
        AppMethodBeat.o(56261);
        return dVar;
    }
}
