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


# instance fields
.field public a:I

.field public b:J

.field public c:I

.field public d:I

.field public e:I

.field public final f:[I

.field public final g:Lz5/j7;


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

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

    const/16 v0, 0xff

    new-array v1, v0, [I

    iput-object v1, p0, Lz5/jw1;->f:[I

    new-instance v1, Lz5/j7;

    const/4 v2, 0x0

    invoke-direct {v1, v0, v2}, Lz5/j7;-><init>(II)V

    iput-object v1, p0, Lz5/jw1;->g:Lz5/j7;

    return-void
.end method


# virtual methods
.method public final a()V
    .registers 4

    const/4 v0, 0x0

    iput v0, p0, Lz5/jw1;->a:I

    const-wide/16 v1, 0x0

    iput-wide v1, p0, Lz5/jw1;->b:J

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

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

    iput v0, p0, Lz5/jw1;->e:I

    return-void
.end method

.method public final b(Lz5/au1;J)Z
    .registers 12

    invoke-interface {p1}, Lz5/au1;->zzn()J

    move-result-wide v0

    invoke-interface {p1}, Lz5/au1;->zzm()J

    move-result-wide v2

    cmp-long v0, v0, v2

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-nez v0, :cond_10

    move v0, v2

    goto :goto_11

    :cond_10
    move v0, v1

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

    iget-object v0, p0, Lz5/jw1;->g:Lz5/j7;

    const/4 v3, 0x4

    invoke-virtual {v0, v3}, Lz5/j7;->i(I)V

    :goto_1a
    const-wide/16 v4, -0x1

    cmp-long v0, p2, v4

    if-eqz v0, :cond_2c

    invoke-interface {p1}, Lz5/au1;->zzn()J

    move-result-wide v4

    const-wide/16 v6, 0x4

    add-long/2addr v4, v6

    cmp-long v4, v4, p2

    if-ltz v4, :cond_2c

    goto :goto_53

    :cond_2c
    iget-object v4, p0, Lz5/jw1;->g:Lz5/j7;

    .line 1
    iget-object v4, v4, Lz5/j7;->b:[B

    .line 2
    invoke-static {p1, v4, v3, v2}, Lcom/google/android/gms/internal/ads/g9;->f(Lz5/au1;[BIZ)Z

    move-result v4

    if-eqz v4, :cond_53

    iget-object v0, p0, Lz5/jw1;->g:Lz5/j7;

    invoke-virtual {v0, v1}, Lz5/j7;->q(I)V

    iget-object v0, p0, Lz5/jw1;->g:Lz5/j7;

    invoke-virtual {v0}, Lz5/j7;->H()J

    move-result-wide v4

    const-wide/32 v6, 0x4f676753

    cmp-long v0, v4, v6

    if-eqz v0, :cond_4f

    move-object v0, p1

    check-cast v0, Lz5/vt1;

    invoke-virtual {v0, v2, v1}, Lz5/vt1;->c(IZ)Z

    goto :goto_1a

    :cond_4f
    invoke-interface {p1}, Lz5/au1;->zzl()V

    return v2

    :cond_53
    :goto_53
    if-eqz v0, :cond_5d

    invoke-interface {p1}, Lz5/au1;->zzn()J

    move-result-wide v3

    cmp-long v3, v3, p2

    if-gez v3, :cond_64

    :cond_5d
    invoke-interface {p1, v2}, Lz5/au1;->e(I)I

    move-result v3

    const/4 v4, -0x1

    if-ne v3, v4, :cond_53

    :cond_64
    return v1
.end method

.method public final c(Lz5/au1;Z)Z
    .registers 22

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move/from16 v2, p2

    invoke-virtual/range {p0 .. p0}, Lz5/jw1;->a()V

    iget-object v3, v0, Lz5/jw1;->g:Lz5/j7;

    const/16 v4, 0x1b

    invoke-virtual {v3, v4}, Lz5/j7;->i(I)V

    iget-object v3, v0, Lz5/jw1;->g:Lz5/j7;

    .line 1
    iget-object v3, v3, Lz5/j7;->b:[B

    .line 2
    invoke-static {v1, v3, v4, v2}, Lcom/google/android/gms/internal/ads/g9;->f(Lz5/au1;[BIZ)Z

    move-result v3

    const/4 v4, 0x0

    if-eqz v3, :cond_fa

    iget-object v3, v0, Lz5/jw1;->g:Lz5/j7;

    invoke-virtual {v3}, Lz5/j7;->H()J

    move-result-wide v5

    const-wide/32 v7, 0x4f676753

    cmp-long v3, v5, v7

    if-eqz v3, :cond_2a

    goto/16 :goto_fa

    :cond_2a
    iget-object v3, v0, Lz5/jw1;->g:Lz5/j7;

    invoke-virtual {v3}, Lz5/j7;->A()I

    move-result v3

    if-eqz v3, :cond_3c

    if-eqz v2, :cond_35

    return v4

    :cond_35
    const-string v1, "unsupported bit stream revision"

    invoke-static {v1}, Lz5/r3;->d(Ljava/lang/String;)Lz5/r3;

    move-result-object v1

    throw v1

    :cond_3c
    iget-object v3, v0, Lz5/jw1;->g:Lz5/j7;

    invoke-virtual {v3}, Lz5/j7;->A()I

    move-result v3

    iput v3, v0, Lz5/jw1;->a:I

    iget-object v3, v0, Lz5/jw1;->g:Lz5/j7;

    .line 3
    iget-object v5, v3, Lz5/j7;->b:[B

    iget v6, v3, Lz5/j7;->c:I

    add-int/lit8 v7, v6, 0x1

    iput v7, v3, Lz5/j7;->c:I

    aget-byte v6, v5, v6

    add-int/lit8 v8, v7, 0x1

    iput v8, v3, Lz5/j7;->c:I

    aget-byte v7, v5, v7

    add-int/lit8 v9, v8, 0x1

    iput v9, v3, Lz5/j7;->c:I

    aget-byte v8, v5, v8

    add-int/lit8 v10, v9, 0x1

    iput v10, v3, Lz5/j7;->c:I

    aget-byte v9, v5, v9

    add-int/lit8 v11, v10, 0x1

    iput v11, v3, Lz5/j7;->c:I

    aget-byte v10, v5, v10

    add-int/lit8 v12, v11, 0x1

    iput v12, v3, Lz5/j7;->c:I

    aget-byte v11, v5, v11

    add-int/lit8 v13, v12, 0x1

    iput v13, v3, Lz5/j7;->c:I

    aget-byte v12, v5, v12

    add-int/lit8 v14, v13, 0x1

    iput v14, v3, Lz5/j7;->c:I

    int-to-long v14, v6

    const-wide/16 v16, 0xff

    and-long v14, v14, v16

    int-to-long v6, v7

    and-long v6, v6, v16

    const/16 v18, 0x8

    shl-long v6, v6, v18

    or-long/2addr v6, v14

    int-to-long v14, v8

    and-long v14, v14, v16

    const/16 v8, 0x10

    shl-long/2addr v14, v8

    or-long/2addr v6, v14

    int-to-long v8, v9

    and-long v8, v8, v16

    const/16 v14, 0x18

    shl-long/2addr v8, v14

    or-long/2addr v6, v8

    int-to-long v8, v10

    and-long v8, v8, v16

    const/16 v10, 0x20

    shl-long/2addr v8, v10

    or-long/2addr v6, v8

    int-to-long v8, v11

    and-long v8, v8, v16

    const/16 v10, 0x28

    shl-long/2addr v8, v10

    or-long/2addr v6, v8

    int-to-long v8, v12

    and-long v8, v8, v16

    const/16 v10, 0x30

    shl-long/2addr v8, v10

    or-long/2addr v6, v8

    aget-byte v5, v5, v13

    int-to-long v8, v5

    and-long v8, v8, v16

    const/16 v5, 0x38

    shl-long/2addr v8, v5

    or-long v5, v6, v8

    .line 4
    iput-wide v5, v0, Lz5/jw1;->b:J

    invoke-virtual {v3}, Lz5/j7;->J()J

    iget-object v3, v0, Lz5/jw1;->g:Lz5/j7;

    invoke-virtual {v3}, Lz5/j7;->J()J

    iget-object v3, v0, Lz5/jw1;->g:Lz5/j7;

    invoke-virtual {v3}, Lz5/j7;->J()J

    iget-object v3, v0, Lz5/jw1;->g:Lz5/j7;

    invoke-virtual {v3}, Lz5/j7;->A()I

    move-result v3

    iput v3, v0, Lz5/jw1;->c:I

    add-int/lit8 v5, v3, 0x1b

    iput v5, v0, Lz5/jw1;->d:I

    iget-object v5, v0, Lz5/jw1;->g:Lz5/j7;

    invoke-virtual {v5, v3}, Lz5/j7;->i(I)V

    iget-object v3, v0, Lz5/jw1;->g:Lz5/j7;

    .line 5
    iget-object v3, v3, Lz5/j7;->b:[B

    .line 6
    iget v5, v0, Lz5/jw1;->c:I

    invoke-static {v1, v3, v5, v2}, Lcom/google/android/gms/internal/ads/g9;->f(Lz5/au1;[BIZ)Z

    move-result v1

    if-eqz v1, :cond_fa

    :goto_de
    iget v1, v0, Lz5/jw1;->c:I

    if-ge v4, v1, :cond_f8

    iget-object v1, v0, Lz5/jw1;->f:[I

    iget-object v2, v0, Lz5/jw1;->g:Lz5/j7;

    invoke-virtual {v2}, Lz5/j7;->A()I

    move-result v2

    aput v2, v1, v4

    iget v1, v0, Lz5/jw1;->e:I

    iget-object v2, v0, Lz5/jw1;->f:[I

    aget v2, v2, v4

    add-int/2addr v1, v2

    iput v1, v0, Lz5/jw1;->e:I

    add-int/lit8 v4, v4, 0x1

    goto :goto_de

    :cond_f8
    const/4 v1, 0x1

    return v1

    :cond_fa
    :goto_fa
    return v4
.end method
