.class public final Lcom/google/android/gms/internal/ads/n9;
.super Lcom/google/android/gms/internal/ads/o9;
.source ""


# static fields
.field public static final o:[B


# instance fields
.field public n:Z


# direct methods
.method public static constructor <clinit>()V
    .registers 1

    const/16 v0, 0x8

    new-array v0, v0, [B

    fill-array-data v0, :array_a

    sput-object v0, Lcom/google/android/gms/internal/ads/n9;->o:[B

    return-void

    :array_a
    .array-data 1
        0x4ft
        0x70t
        0x75t
        0x73t
        0x48t
        0x65t
        0x61t
        0x64t
    .end array-data
.end method

.method public constructor <init>()V
    .registers 1

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

    return-void
.end method


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

    invoke-super {p0, p1}, Lcom/google/android/gms/internal/ads/o9;->a(Z)V

    if-eqz p1, :cond_8

    const/4 p1, 0x0

    iput-boolean p1, p0, Lcom/google/android/gms/internal/ads/n9;->n:Z

    :cond_8
    return-void
.end method

.method public final b(Lz5/j7;)J
    .registers 8

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

    const/4 v0, 0x0

    .line 2
    aget-byte v0, p1, v0

    and-int/lit16 v0, v0, 0xff

    and-int/lit8 v1, v0, 0x3

    const/4 v2, 0x2

    const/4 v3, 0x1

    if-eqz v1, :cond_16

    if-eq v1, v3, :cond_17

    if-eq v1, v2, :cond_17

    aget-byte p1, p1, v3

    and-int/lit8 v2, p1, 0x3f

    goto :goto_17

    :cond_16
    move v2, v3

    :cond_17
    :goto_17
    const/4 p1, 0x3

    shr-int/2addr v0, p1

    and-int/lit8 v1, v0, 0x3

    const/16 v4, 0x10

    if-lt v0, v4, :cond_23

    const/16 p1, 0x9c4

    shl-int/2addr p1, v1

    goto :goto_36

    :cond_23
    const/16 v4, 0xc

    const/16 v5, 0x2710

    if-lt v0, v4, :cond_2e

    and-int/lit8 p1, v1, 0x1

    shl-int p1, v5, p1

    goto :goto_36

    :cond_2e
    if-ne v1, p1, :cond_34

    const p1, 0xea60

    goto :goto_36

    :cond_34
    shl-int p1, v5, v1

    :goto_36
    int-to-long v0, v2

    int-to-long v2, p1

    mul-long/2addr v0, v2

    invoke-virtual {p0, v0, v1}, Lcom/google/android/gms/internal/ads/o9;->d(J)J

    move-result-wide v0

    return-wide v0
.end method

.method public final c(Lz5/j7;JLz5/ll0;)Z
    .registers 7
    .annotation runtime Lorg/checkerframework/checker/nullness/qual/EnsuresNonNullIf;
        expression = {
            "#3.format"
        }
        result = false
    .end annotation

    iget-boolean p2, p0, Lcom/google/android/gms/internal/ads/n9;->n:Z

    const/4 p3, 0x1

    if-nez p2, :cond_35

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

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

    move-result p1

    invoke-static {p2, p1}, Ljava/util/Arrays;->copyOf([BI)[B

    move-result-object p1

    const/16 p2, 0x9

    aget-byte p2, p1, p2

    invoke-static {p1}, Lcom/google/android/gms/internal/ads/r;->c([B)Ljava/util/List;

    move-result-object p1

    new-instance v0, Lz5/w2;

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

    const-string v1, "audio/opus"

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

    and-int/lit16 p2, p2, 0xff

    .line 4
    iput p2, v0, Lz5/w2;->w:I

    const p2, 0xbb80

    .line 5
    iput p2, v0, Lz5/w2;->x:I

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

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

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

    .line 9
    iput-object p1, p4, Lz5/ll0;->s:Ljava/lang/Object;

    iput-boolean p3, p0, Lcom/google/android/gms/internal/ads/n9;->n:Z

    return p3

    :cond_35
    iget-object p2, p4, Lz5/ll0;->s:Ljava/lang/Object;

    check-cast p2, Lz5/x2;

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

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

    move-result p2

    const p4, 0x4f707573

    const/4 v0, 0x0

    if-ne p2, p4, :cond_47

    goto :goto_48

    :cond_47
    move p3, v0

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

    return p3
.end method
