.class final Lcom/a/a/b;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/util/Iterator;


# instance fields
.field final synthetic a:Lcom/a/a/a;

.field private b:I

.field private c:I

.field private d:I


# direct methods
.method private constructor <init>(Lcom/a/a/a;)V
    .locals 1

    iput-object p1, p0, Lcom/a/a/b;->a:Lcom/a/a/a;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iget-object v0, p0, Lcom/a/a/b;->a:Lcom/a/a/a;

    invoke-static {v0}, Lcom/a/a/a;->a(Lcom/a/a/a;)I

    move-result v0

    iput v0, p0, Lcom/a/a/b;->b:I

    iget-object v0, p0, Lcom/a/a/b;->a:Lcom/a/a/a;

    invoke-static {v0}, Lcom/a/a/a;->b(Lcom/a/a/a;)I

    move-result v0

    iput v0, p0, Lcom/a/a/b;->c:I

    const/4 v0, -0x1

    iput v0, p0, Lcom/a/a/b;->d:I

    return-void
.end method

.method synthetic constructor <init>(Lcom/a/a/a;B)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/a/a/b;-><init>(Lcom/a/a/a;)V

    return-void
.end method


# virtual methods
.method public final hasNext()Z
    .locals 2

    iget v0, p0, Lcom/a/a/b;->b:I

    iget v1, p0, Lcom/a/a/b;->c:I

    if-eq v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final next()Ljava/lang/Object;
    .locals 3

    iget v0, p0, Lcom/a/a/b;->b:I

    iget v1, p0, Lcom/a/a/b;->c:I

    if-ne v0, v1, :cond_0

    new-instance v0, Ljava/util/NoSuchElementException;

    invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V

    throw v0

    :cond_0
    iget-object v0, p0, Lcom/a/a/b;->a:Lcom/a/a/a;

    invoke-static {v0}, Lcom/a/a/a;->c(Lcom/a/a/a;)[Ljava/lang/Object;

    move-result-object v0

    iget v1, p0, Lcom/a/a/b;->b:I

    aget-object v0, v0, v1

    iget-object v1, p0, Lcom/a/a/b;->a:Lcom/a/a/a;

    invoke-static {v1}, Lcom/a/a/a;->b(Lcom/a/a/a;)I

    move-result v1

    iget v2, p0, Lcom/a/a/b;->c:I

    if-ne v1, v2, :cond_1

    if-nez v0, :cond_2

    :cond_1
    new-instance v0, Ljava/util/ConcurrentModificationException;

    invoke-direct {v0}, Ljava/util/ConcurrentModificationException;-><init>()V

    throw v0

    :cond_2
    iget v1, p0, Lcom/a/a/b;->b:I

    iput v1, p0, Lcom/a/a/b;->d:I

    iget v1, p0, Lcom/a/a/b;->b:I

    add-int/lit8 v1, v1, 0x1

    iget-object v2, p0, Lcom/a/a/b;->a:Lcom/a/a/a;

    invoke-static {v2}, Lcom/a/a/a;->c(Lcom/a/a/a;)[Ljava/lang/Object;

    move-result-object v2

    array-length v2, v2

    add-int/lit8 v2, v2, -0x1

    and-int/2addr v1, v2

    iput v1, p0, Lcom/a/a/b;->b:I

    return-object v0
.end method

.method public final remove()V
    .locals 2

    iget v0, p0, Lcom/a/a/b;->d:I

    if-gez v0, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

    invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V

    throw v0

    :cond_0
    iget-object v0, p0, Lcom/a/a/b;->a:Lcom/a/a/a;

    iget v1, p0, Lcom/a/a/b;->d:I

    invoke-static {v0, v1}, Lcom/a/a/a;->a(Lcom/a/a/a;I)Z

    move-result v0

    if-eqz v0, :cond_1

    iget v0, p0, Lcom/a/a/b;->b:I

    add-int/lit8 v0, v0, -0x1

    iget-object v1, p0, Lcom/a/a/b;->a:Lcom/a/a/a;

    invoke-static {v1}, Lcom/a/a/a;->c(Lcom/a/a/a;)[Ljava/lang/Object;

    move-result-object v1

    array-length v1, v1

    add-int/lit8 v1, v1, -0x1

    and-int/2addr v0, v1

    iput v0, p0, Lcom/a/a/b;->b:I

    iget-object v0, p0, Lcom/a/a/b;->a:Lcom/a/a/a;

    invoke-static {v0}, Lcom/a/a/a;->b(Lcom/a/a/a;)I

    move-result v0

    iput v0, p0, Lcom/a/a/b;->c:I

    :cond_1
    const/4 v0, -0x1

    iput v0, p0, Lcom/a/a/b;->d:I

    return-void
.end method
