.class public final Lz5/mm1;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Ljava/util/Iterator;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Ljava/util/Iterator<",
        "Lz5/wj1;",
        ">;"
    }
.end annotation


# instance fields
.field public final r:Ljava/util/ArrayDeque;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayDeque<",
            "Lz5/nm1;",
            ">;"
        }
    .end annotation
.end field

.field public s:Lz5/wj1;


# direct methods
.method public constructor <init>(Lz5/zj1;)V
    .registers 4

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

    instance-of v0, p1, Lz5/nm1;

    if-eqz v0, :cond_2a

    check-cast p1, Lz5/nm1;

    new-instance v0, Ljava/util/ArrayDeque;

    .line 1
    iget v1, p1, Lz5/nm1;->x:I

    .line 2
    invoke-direct {v0, v1}, Ljava/util/ArrayDeque;-><init>(I)V

    iput-object v0, p0, Lz5/mm1;->r:Ljava/util/ArrayDeque;

    invoke-virtual {v0, p1}, Ljava/util/ArrayDeque;->push(Ljava/lang/Object;)V

    .line 3
    iget-object p1, p1, Lz5/nm1;->u:Lz5/zj1;

    .line 4
    :goto_17
    instance-of v0, p1, Lz5/nm1;

    if-eqz v0, :cond_25

    check-cast p1, Lz5/nm1;

    iget-object v0, p0, Lz5/mm1;->r:Ljava/util/ArrayDeque;

    invoke-virtual {v0, p1}, Ljava/util/ArrayDeque;->push(Ljava/lang/Object;)V

    .line 5
    iget-object p1, p1, Lz5/nm1;->u:Lz5/zj1;

    goto :goto_17

    .line 6
    :cond_25
    check-cast p1, Lz5/wj1;

    .line 7
    :goto_27
    iput-object p1, p0, Lz5/mm1;->s:Lz5/wj1;

    return-void

    :cond_2a
    const/4 v0, 0x0

    iput-object v0, p0, Lz5/mm1;->r:Ljava/util/ArrayDeque;

    check-cast p1, Lz5/wj1;

    goto :goto_27
.end method


# virtual methods
.method public final a()Lz5/wj1;
    .registers 4

    iget-object v0, p0, Lz5/mm1;->s:Lz5/wj1;

    if-eqz v0, :cond_39

    :cond_4
    iget-object v1, p0, Lz5/mm1;->r:Ljava/util/ArrayDeque;

    const/4 v2, 0x0

    if-eqz v1, :cond_36

    invoke-virtual {v1}, Ljava/util/ArrayDeque;->isEmpty()Z

    move-result v1

    if-eqz v1, :cond_10

    goto :goto_36

    :cond_10
    iget-object v1, p0, Lz5/mm1;->r:Ljava/util/ArrayDeque;

    invoke-virtual {v1}, Ljava/util/ArrayDeque;->pop()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lz5/nm1;

    .line 1
    iget-object v1, v1, Lz5/nm1;->v:Lz5/zj1;

    .line 2
    :goto_1a
    instance-of v2, v1, Lz5/nm1;

    if-eqz v2, :cond_28

    check-cast v1, Lz5/nm1;

    iget-object v2, p0, Lz5/mm1;->r:Ljava/util/ArrayDeque;

    invoke-virtual {v2, v1}, Ljava/util/ArrayDeque;->push(Ljava/lang/Object;)V

    .line 3
    iget-object v1, v1, Lz5/nm1;->u:Lz5/zj1;

    goto :goto_1a

    .line 4
    :cond_28
    move-object v2, v1

    check-cast v2, Lz5/wj1;

    .line 5
    invoke-virtual {v2}, Lz5/zj1;->o()I

    move-result v1

    if-nez v1, :cond_33

    const/4 v1, 0x1

    goto :goto_34

    :cond_33
    const/4 v1, 0x0

    :goto_34
    if-nez v1, :cond_4

    .line 6
    :cond_36
    :goto_36
    iput-object v2, p0, Lz5/mm1;->s:Lz5/wj1;

    return-object v0

    :cond_39
    new-instance v0, Ljava/util/NoSuchElementException;

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

    throw v0
.end method

.method public final hasNext()Z
    .registers 2

    iget-object v0, p0, Lz5/mm1;->s:Lz5/wj1;

    if-eqz v0, :cond_6

    const/4 v0, 0x1

    return v0

    :cond_6
    const/4 v0, 0x0

    return v0
.end method

.method public final bridge synthetic next()Ljava/lang/Object;
    .registers 2

    invoke-virtual {p0}, Lz5/mm1;->a()Lz5/wj1;

    move-result-object v0

    return-object v0
.end method

.method public final remove()V
    .registers 2

    new-instance v0, Ljava/lang/UnsupportedOperationException;

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

    throw v0
.end method
