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

# interfaces
.implements Lz5/kd;


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


# instance fields
.field public a:Ljava/lang/Object;

.field public b:Ljava/lang/Object;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "[TV;"
        }
    .end annotation
.end field

.field public c:I

.field public d:I


# direct methods
.method public constructor <init>()V
    .registers 3

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

    const/16 v0, 0xa

    new-array v1, v0, [J

    iput-object v1, p0, Lz5/o7;->a:Ljava/lang/Object;

    new-array v0, v0, [Ljava/lang/Object;

    iput-object v0, p0, Lz5/o7;->b:Ljava/lang/Object;

    return-void
.end method

.method public constructor <init>(II)V
    .registers 5

    const/4 v0, 0x0

    const/4 v1, 0x4

    if-eq p2, v1, :cond_e

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

    new-array p1, p1, [Lz5/bb;

    iput-object p1, p0, Lz5/o7;->a:Ljava/lang/Object;

    iput v0, p0, Lz5/o7;->d:I

    return-void

    .line 3
    :cond_e
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-array p1, p1, [Lz5/bw1;

    iput-object p1, p0, Lz5/o7;->a:Ljava/lang/Object;

    iput v0, p0, Lz5/o7;->d:I

    return-void
.end method

.method public constructor <init>([B)V
    .registers 3

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

    invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    array-length v0, p1

    if-lez v0, :cond_b

    const/4 v0, 0x1

    goto :goto_c

    :cond_b
    const/4 v0, 0x0

    :goto_c
    invoke-static {v0}, Lcom/google/android/gms/internal/ads/r;->e(Z)V

    iput-object p1, p0, Lz5/o7;->a:Ljava/lang/Object;

    return-void
.end method


# virtual methods
.method public declared-synchronized a()V
    .registers 3

    monitor-enter p0

    const/4 v0, 0x0

    :try_start_2
    iput v0, p0, Lz5/o7;->c:I

    iput v0, p0, Lz5/o7;->d:I

    iget-object v0, p0, Lz5/o7;->b:Ljava/lang/Object;

    check-cast v0, [Ljava/lang/Object;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Ljava/util/Arrays;->fill([Ljava/lang/Object;Ljava/lang/Object;)V
    :try_end_e
    .catchall {:try_start_2 .. :try_end_e} :catchall_10

    monitor-exit p0

    return-void

    :catchall_10
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public b()Ljava/lang/Object;
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()TV;"
        }
    .end annotation

    iget v0, p0, Lz5/o7;->d:I

    const/4 v1, 0x1

    if-lez v0, :cond_7

    move v0, v1

    goto :goto_8

    :cond_7
    const/4 v0, 0x0

    :goto_8
    invoke-static {v0}, Lcom/google/android/gms/internal/ads/d;->n(Z)V

    iget-object v0, p0, Lz5/o7;->b:Ljava/lang/Object;

    check-cast v0, [Ljava/lang/Object;

    iget v2, p0, Lz5/o7;->c:I

    aget-object v3, v0, v2

    const/4 v4, 0x0

    aput-object v4, v0, v2

    add-int/2addr v2, v1

    array-length v0, v0

    rem-int/2addr v2, v0

    iput v2, p0, Lz5/o7;->c:I

    iget v0, p0, Lz5/o7;->d:I

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

    iput v0, p0, Lz5/o7;->d:I

    return-object v3
.end method

.method public d([BII)I
    .registers 6

    if-nez p3, :cond_4

    const/4 p1, 0x0

    return p1

    :cond_4
    iget v0, p0, Lz5/o7;->d:I

    if-nez v0, :cond_a

    const/4 p1, -0x1

    return p1

    :cond_a
    invoke-static {p3, v0}, Ljava/lang/Math;->min(II)I

    move-result p3

    iget-object v0, p0, Lz5/o7;->a:Ljava/lang/Object;

    check-cast v0, [B

    iget v1, p0, Lz5/o7;->c:I

    invoke-static {v0, v1, p1, p2, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    iget p1, p0, Lz5/o7;->c:I

    add-int/2addr p1, p3

    iput p1, p0, Lz5/o7;->c:I

    iget p1, p0, Lz5/o7;->d:I

    sub-int/2addr p1, p3

    iput p1, p0, Lz5/o7;->d:I

    return p3
.end method

.method public e(Lz5/nd;)J
    .registers 9

    iget-object v0, p1, Lz5/nd;->a:Landroid/net/Uri;

    iput-object v0, p0, Lz5/o7;->b:Ljava/lang/Object;

    iget-wide v0, p1, Lz5/nd;->c:J

    long-to-int v2, v0

    iput v2, p0, Lz5/o7;->c:I

    iget-wide v3, p1, Lz5/nd;->d:J

    const-wide/16 v5, -0x1

    cmp-long p1, v3, v5

    if-nez p1, :cond_19

    iget-object p1, p0, Lz5/o7;->a:Ljava/lang/Object;

    check-cast p1, [B

    array-length p1, p1

    int-to-long v5, p1

    sub-long/2addr v5, v0

    goto :goto_1a

    :cond_19
    move-wide v5, v3

    :goto_1a
    long-to-int p1, v5

    iput p1, p0, Lz5/o7;->d:I

    if-lez p1, :cond_2a

    add-int v0, v2, p1

    iget-object v1, p0, Lz5/o7;->a:Ljava/lang/Object;

    check-cast v1, [B

    array-length v1, v1

    if-gt v0, v1, :cond_2a

    int-to-long v0, p1

    return-wide v0

    :cond_2a
    new-instance p1, Ljava/io/IOException;

    iget-object v0, p0, Lz5/o7;->a:Ljava/lang/Object;

    check-cast v0, [B

    array-length v0, v0

    new-instance v1, Ljava/lang/StringBuilder;

    const/16 v5, 0x4d

    invoke-direct {v1, v5}, Ljava/lang/StringBuilder;-><init>(I)V

    const-string v5, "Unsatisfiable range: ["

    invoke-virtual {v1, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v2, ", "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v2, "], length: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public zzc()Landroid/net/Uri;
    .registers 2

    iget-object v0, p0, Lz5/o7;->b:Ljava/lang/Object;

    check-cast v0, Landroid/net/Uri;

    return-object v0
.end method

.method public zzd()V
    .registers 2

    const/4 v0, 0x0

    iput-object v0, p0, Lz5/o7;->b:Ljava/lang/Object;

    return-void
.end method
