.class public final Lz5/ur1;
.super Lz5/a3;
.source ""


# instance fields
.field public final v:[B

.field public w:Landroid/net/Uri;

.field public x:I

.field public y:I

.field public z:Z


# direct methods
.method public constructor <init>([B)V
    .registers 4

    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lz5/a3;-><init>(Z)V

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

    array-length v1, p1

    if-lez v1, :cond_b

    const/4 v0, 0x1

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

    iput-object p1, p0, Lz5/ur1;->v:[B

    return-void
.end method


# virtual methods
.method public final a([BII)I
    .registers 6

    if-nez p3, :cond_4

    const/4 p1, 0x0

    return p1

    :cond_4
    iget v0, p0, Lz5/ur1;->y: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/ur1;->v:[B

    iget v1, p0, Lz5/ur1;->x:I

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

    iget p1, p0, Lz5/ur1;->x:I

    add-int/2addr p1, p3

    iput p1, p0, Lz5/ur1;->x:I

    iget p1, p0, Lz5/ur1;->y:I

    sub-int/2addr p1, p3

    iput p1, p0, Lz5/ur1;->y:I

    invoke-virtual {p0, p3}, Lz5/a3;->m(I)V

    return p3
.end method

.method public final h(Lz5/a8;)J
    .registers 9

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

    iput-object v0, p0, Lz5/ur1;->w:Landroid/net/Uri;

    invoke-virtual {p0, p1}, Lz5/a3;->c(Lz5/a8;)V

    iget-wide v0, p1, Lz5/a8;->d:J

    iget-object v2, p0, Lz5/ur1;->v:[B

    array-length v2, v2

    int-to-long v3, v2

    cmp-long v3, v0, v3

    if-gtz v3, :cond_38

    long-to-int v0, v0

    iput v0, p0, Lz5/ur1;->x:I

    sub-int/2addr v2, v0

    iput v2, p0, Lz5/ur1;->y:I

    iget-wide v0, p1, Lz5/a8;->e:J

    const-wide/16 v3, -0x1

    cmp-long v5, v0, v3

    if-eqz v5, :cond_27

    int-to-long v5, v2

    invoke-static {v5, v6, v0, v1}, Ljava/lang/Math;->min(JJ)J

    move-result-wide v0

    long-to-int v0, v0

    iput v0, p0, Lz5/ur1;->y:I

    :cond_27
    const/4 v0, 0x1

    iput-boolean v0, p0, Lz5/ur1;->z:Z

    invoke-virtual {p0, p1}, Lz5/a3;->i(Lz5/a8;)V

    iget-wide v0, p1, Lz5/a8;->e:J

    cmp-long p1, v0, v3

    if-eqz p1, :cond_34

    return-wide v0

    :cond_34
    iget p1, p0, Lz5/ur1;->y:I

    int-to-long v0, p1

    return-wide v0

    :cond_38
    new-instance p1, Lz5/y5;

    const/16 v0, 0x7d8

    invoke-direct {p1, v0}, Lz5/y5;-><init>(I)V

    throw p1
.end method

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

    iget-object v0, p0, Lz5/ur1;->w:Landroid/net/Uri;

    return-object v0
.end method

.method public final zzj()V
    .registers 2

    iget-boolean v0, p0, Lz5/ur1;->z:Z

    if-eqz v0, :cond_a

    const/4 v0, 0x0

    iput-boolean v0, p0, Lz5/ur1;->z:Z

    invoke-virtual {p0}, Lz5/a3;->n()V

    :cond_a
    const/4 v0, 0x0

    iput-object v0, p0, Lz5/ur1;->w:Landroid/net/Uri;

    return-void
.end method
