.class public abstract Lz5/da1;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Ljava/util/Iterator;


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


# instance fields
.field public r:I

.field public s:I

.field public t:I

.field public final synthetic u:Lcom/google/android/gms/internal/ads/k6;


# direct methods
.method public constructor <init>(Lcom/google/android/gms/internal/ads/k6;)V
    .registers 3

    iput-object p1, p0, Lz5/da1;->u:Lcom/google/android/gms/internal/ads/k6;

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

    .line 1
    iget v0, p1, Lcom/google/android/gms/internal/ads/k6;->v:I

    .line 2
    iput v0, p0, Lz5/da1;->r:I

    .line 3
    invoke-virtual {p1}, Lcom/google/android/gms/internal/ads/k6;->isEmpty()Z

    move-result p1

    const/4 v0, -0x1

    if-eqz p1, :cond_12

    move p1, v0

    goto :goto_13

    :cond_12
    const/4 p1, 0x0

    .line 4
    :goto_13
    iput p1, p0, Lz5/da1;->s:I

    iput v0, p0, Lz5/da1;->t:I

    return-void
.end method


# virtual methods
.method public abstract a(I)Ljava/lang/Object;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I)TT;"
        }
    .end annotation
.end method

.method public final hasNext()Z
    .registers 2

    iget v0, p0, Lz5/da1;->s:I

    if-ltz v0, :cond_6

    const/4 v0, 0x1

    return v0

    :cond_6
    const/4 v0, 0x0

    return v0
.end method

.method public final next()Ljava/lang/Object;
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()TT;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lz5/da1;->u:Lcom/google/android/gms/internal/ads/k6;

    .line 2
    iget v0, v0, Lcom/google/android/gms/internal/ads/k6;->v:I

    .line 3
    iget v1, p0, Lz5/da1;->r:I

    if-ne v0, v1, :cond_2b

    .line 4
    invoke-virtual {p0}, Lz5/da1;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_25

    iget v0, p0, Lz5/da1;->s:I

    iput v0, p0, Lz5/da1;->t:I

    invoke-virtual {p0, v0}, Lz5/da1;->a(I)Ljava/lang/Object;

    move-result-object v0

    iget-object v1, p0, Lz5/da1;->u:Lcom/google/android/gms/internal/ads/k6;

    iget v2, p0, Lz5/da1;->s:I

    add-int/lit8 v2, v2, 0x1

    .line 5
    iget v1, v1, Lcom/google/android/gms/internal/ads/k6;->w:I

    if-ge v2, v1, :cond_21

    goto :goto_22

    :cond_21
    const/4 v2, -0x1

    .line 6
    :goto_22
    iput v2, p0, Lz5/da1;->s:I

    return-object v0

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

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

    throw v0

    .line 7
    :cond_2b
    new-instance v0, Ljava/util/ConcurrentModificationException;

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

    throw v0
.end method

.method public final remove()V
    .registers 3

    .line 1
    iget-object v0, p0, Lz5/da1;->u:Lcom/google/android/gms/internal/ads/k6;

    .line 2
    iget v0, v0, Lcom/google/android/gms/internal/ads/k6;->v:I

    .line 3
    iget v1, p0, Lz5/da1;->r:I

    if-ne v0, v1, :cond_2e

    .line 4
    iget v0, p0, Lz5/da1;->t:I

    if-ltz v0, :cond_e

    const/4 v0, 0x1

    goto :goto_f

    :cond_e
    const/4 v0, 0x0

    :goto_f
    const-string v1, "no calls to next() since the last call to remove()"

    invoke-static {v0, v1}, Lcom/google/android/gms/internal/ads/o5;->d(ZLjava/lang/Object;)V

    iget v0, p0, Lz5/da1;->r:I

    add-int/lit8 v0, v0, 0x20

    iput v0, p0, Lz5/da1;->r:I

    iget-object v0, p0, Lz5/da1;->u:Lcom/google/android/gms/internal/ads/k6;

    iget v1, p0, Lz5/da1;->t:I

    invoke-static {v0, v1}, Lcom/google/android/gms/internal/ads/k6;->g(Lcom/google/android/gms/internal/ads/k6;I)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/google/android/gms/internal/ads/k6;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    iget v0, p0, Lz5/da1;->s:I

    const/4 v1, -0x1

    add-int/2addr v0, v1

    iput v0, p0, Lz5/da1;->s:I

    iput v1, p0, Lz5/da1;->t:I

    return-void

    .line 5
    :cond_2e
    new-instance v0, Ljava/util/ConcurrentModificationException;

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

    throw v0
.end method
