.class public final Lz5/vu1;
.super Lcom/google/android/gms/internal/ads/a;
.source ""


# instance fields
.field public final s:Lz5/j7;

.field public final t:Lz5/j7;

.field public u:I

.field public v:Z

.field public w:Z

.field public x:I


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

    invoke-direct {p0, p1}, Lcom/google/android/gms/internal/ads/a;-><init>(Lz5/ou1;)V

    new-instance p1, Lz5/j7;

    sget-object v0, Lz5/f7;->a:[B

    const/4 v1, 0x0

    const/4 v2, 0x0

    invoke-direct {p1, v0, v1, v2}, Lz5/j7;-><init>([BILp/b;)V

    iput-object p1, p0, Lz5/vu1;->s:Lz5/j7;

    new-instance p1, Lz5/j7;

    const/4 v0, 0x4

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

    iput-object p1, p0, Lz5/vu1;->t:Lz5/j7;

    return-void
.end method


# virtual methods
.method public final h(Lz5/j7;)Z
    .registers 5

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

    move-result p1

    shr-int/lit8 v0, p1, 0x4

    and-int/lit8 p1, p1, 0xf

    const/4 v1, 0x7

    if-ne p1, v1, :cond_14

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

    const/4 p1, 0x5

    if-eq v0, p1, :cond_12

    const/4 p1, 0x1

    return p1

    :cond_12
    const/4 p1, 0x0

    return p1

    :cond_14
    new-instance v0, Lz5/uu1;

    const/16 v1, 0x27

    const-string v2, "Video format not supported: "

    invoke-static {v1, v2, p1}, Le/f;->a(ILjava/lang/String;I)Ljava/lang/String;

    move-result-object p1

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

    throw v0
.end method

.method public final l(Lz5/j7;J)Z
    .registers 14

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

    move-result v0

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

    iget v2, p1, Lz5/j7;->c:I

    add-int/lit8 v3, v2, 0x1

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

    aget-byte v2, v1, v2

    add-int/lit8 v4, v3, 0x1

    iput v4, p1, Lz5/j7;->c:I

    aget-byte v3, v1, v3

    add-int/lit8 v5, v4, 0x1

    iput v5, p1, Lz5/j7;->c:I

    and-int/lit16 v2, v2, 0xff

    shl-int/lit8 v2, v2, 0x18

    shr-int/lit8 v2, v2, 0x8

    and-int/lit16 v3, v3, 0xff

    shl-int/lit8 v3, v3, 0x8

    or-int/2addr v2, v3

    aget-byte v1, v1, v4

    and-int/lit16 v1, v1, 0xff

    or-int/2addr v1, v2

    int-to-long v1, v1

    const-wide/16 v3, 0x3e8

    mul-long/2addr v1, v3

    add-long v4, v1, p2

    const/4 p2, 0x1

    const/4 p3, 0x0

    if-nez v0, :cond_7f

    .line 2
    iget-boolean v0, p0, Lz5/vu1;->v:Z

    if-nez v0, :cond_e5

    new-instance v0, Lz5/j7;

    invoke-virtual {p1}, Lz5/j7;->l()I

    move-result v1

    new-array v1, v1, [B

    const/4 v2, 0x0

    invoke-direct {v0, v1, p3, v2}, Lz5/j7;-><init>([BILp/b;)V

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

    .line 4
    invoke-virtual {p1}, Lz5/j7;->l()I

    move-result v2

    invoke-virtual {p1, v1, p3, v2}, Lz5/j7;->z([BII)V

    invoke-static {v0}, Lz5/ot1;->a(Lz5/j7;)Lz5/ot1;

    move-result-object p1

    iget v0, p1, Lz5/ot1;->b:I

    iput v0, p0, Lz5/vu1;->u:I

    new-instance v0, Lz5/w2;

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

    const-string v1, "video/avc"

    .line 5
    iput-object v1, v0, Lz5/w2;->j:Ljava/lang/String;

    .line 6
    iget-object v1, p1, Lz5/ot1;->f:Ljava/lang/String;

    .line 7
    iput-object v1, v0, Lz5/w2;->g:Ljava/lang/String;

    .line 8
    iget v1, p1, Lz5/ot1;->c:I

    .line 9
    iput v1, v0, Lz5/w2;->o:I

    .line 10
    iget v1, p1, Lz5/ot1;->d:I

    .line 11
    iput v1, v0, Lz5/w2;->p:I

    .line 12
    iget v1, p1, Lz5/ot1;->e:F

    .line 13
    iput v1, v0, Lz5/w2;->s:F

    .line 14
    iget-object p1, p1, Lz5/ot1;->a:Ljava/util/List;

    .line 15
    iput-object p1, v0, Lz5/w2;->l:Ljava/util/List;

    .line 16
    new-instance p1, Lz5/x2;

    .line 17
    invoke-direct {p1, v0}, Lz5/x2;-><init>(Lz5/w2;)V

    .line 18
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/a;->r:Ljava/lang/Object;

    check-cast v0, Lz5/ou1;

    invoke-interface {v0, p1}, Lz5/ou1;->a(Lz5/x2;)V

    iput-boolean p2, p0, Lz5/vu1;->v:Z

    return p3

    :cond_7f
    if-ne v0, p2, :cond_e5

    iget-boolean v0, p0, Lz5/vu1;->v:Z

    if-eqz v0, :cond_e5

    iget v0, p0, Lz5/vu1;->x:I

    if-ne v0, p2, :cond_8b

    move v6, p2

    goto :goto_8c

    :cond_8b
    move v6, p3

    :goto_8c
    iget-boolean v0, p0, Lz5/vu1;->w:Z

    if-nez v0, :cond_94

    if-eqz v6, :cond_93

    goto :goto_94

    :cond_93
    return p3

    :cond_94
    :goto_94
    iget-object v0, p0, Lz5/vu1;->t:Lz5/j7;

    .line 19
    iget-object v0, v0, Lz5/j7;->b:[B

    .line 20
    aput-byte p3, v0, p3

    aput-byte p3, v0, p2

    const/4 v1, 0x2

    aput-byte p3, v0, v1

    iget v0, p0, Lz5/vu1;->u:I

    const/4 v1, 0x4

    rsub-int/lit8 v0, v0, 0x4

    move v7, p3

    :goto_a5
    invoke-virtual {p1}, Lz5/j7;->l()I

    move-result v2

    if-lez v2, :cond_d8

    iget-object v2, p0, Lz5/vu1;->t:Lz5/j7;

    .line 21
    iget-object v2, v2, Lz5/j7;->b:[B

    .line 22
    iget v3, p0, Lz5/vu1;->u:I

    invoke-virtual {p1, v2, v0, v3}, Lz5/j7;->z([BII)V

    iget-object v2, p0, Lz5/vu1;->t:Lz5/j7;

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

    iget-object v2, p0, Lz5/vu1;->t:Lz5/j7;

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

    move-result v2

    iget-object v3, p0, Lz5/vu1;->s:Lz5/j7;

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

    iget-object v3, p0, Lcom/google/android/gms/internal/ads/a;->r:Ljava/lang/Object;

    check-cast v3, Lz5/ou1;

    iget-object v8, p0, Lz5/vu1;->s:Lz5/j7;

    invoke-interface {v3, v8, v1}, Lz5/ou1;->f(Lz5/j7;I)V

    iget-object v3, p0, Lcom/google/android/gms/internal/ads/a;->r:Ljava/lang/Object;

    check-cast v3, Lz5/ou1;

    invoke-interface {v3, p1, v2}, Lz5/ou1;->f(Lz5/j7;I)V

    add-int/lit8 v7, v7, 0x4

    add-int/2addr v7, v2

    goto :goto_a5

    :cond_d8
    iget-object p1, p0, Lcom/google/android/gms/internal/ads/a;->r:Ljava/lang/Object;

    move-object v3, p1

    check-cast v3, Lz5/ou1;

    const/4 v8, 0x0

    const/4 v9, 0x0

    invoke-interface/range {v3 .. v9}, Lz5/ou1;->d(JIIILz5/nu1;)V

    iput-boolean p2, p0, Lz5/vu1;->w:Z

    return p2

    :cond_e5
    return p3
.end method
