b.smali

.class final Lf/b/b/b/k1/b0/b;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lf/b/b/b/k1/b0/d;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lf/b/b/b/k1/b0/b$b;
    }
.end annotation


# instance fields
.field private final a:[B

.field private final b:Ljava/util/ArrayDeque;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayDeque<",
            "Lf/b/b/b/k1/b0/b$b;",
            ">;"
        }
    .end annotation
.end field

.field private final c:Lf/b/b/b/k1/b0/g;

.field private d:Lf/b/b/b/k1/b0/c;

.field private e:I

.field private f:I

.field private g:J


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

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

    const/16 v0, 0x8

    new-array v0, v0, [B

    iput-object v0, p0, Lf/b/b/b/k1/b0/b;->a:[B

    new-instance v0, Ljava/util/ArrayDeque;

    invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V

    iput-object v0, p0, Lf/b/b/b/k1/b0/b;->b:Ljava/util/ArrayDeque;

    new-instance v0, Lf/b/b/b/k1/b0/g;

    invoke-direct {v0}, Lf/b/b/b/k1/b0/g;-><init>()V

    iput-object v0, p0, Lf/b/b/b/k1/b0/b;->c:Lf/b/b/b/k1/b0/g;

    return-void
.end method

.method private c(Lf/b/b/b/k1/i;)J
    .registers 6

    invoke-interface {p1}, Lf/b/b/b/k1/i;->g()V

    :goto_3
    iget-object v0, p0, Lf/b/b/b/k1/b0/b;->a:[B

    const/4 v1, 0x0

    const/4 v2, 0x4

    invoke-interface {p1, v0, v1, v2}, Lf/b/b/b/k1/i;->j([BII)V

    iget-object v0, p0, Lf/b/b/b/k1/b0/b;->a:[B

    aget-byte v0, v0, v1

    invoke-static {v0}, Lf/b/b/b/k1/b0/g;->c(I)I

    move-result v0

    const/4 v3, -0x1

    if-eq v0, v3, :cond_2b

    if-gt v0, v2, :cond_2b

    iget-object v2, p0, Lf/b/b/b/k1/b0/b;->a:[B

    invoke-static {v2, v0, v1}, Lf/b/b/b/k1/b0/g;->a([BIZ)J

    move-result-wide v1

    long-to-int v2, v1

    iget-object v1, p0, Lf/b/b/b/k1/b0/b;->d:Lf/b/b/b/k1/b0/c;

    invoke-interface {v1, v2}, Lf/b/b/b/k1/b0/c;->c(I)Z

    move-result v1

    if-eqz v1, :cond_2b

    invoke-interface {p1, v0}, Lf/b/b/b/k1/i;->h(I)V

    int-to-long v0, v2

    return-wide v0

    :cond_2b
    const/4 v0, 0x1

    invoke-interface {p1, v0}, Lf/b/b/b/k1/i;->h(I)V

    goto :goto_3
.end method

.method private d(Lf/b/b/b/k1/i;I)D
    .registers 5

    invoke-direct {p0, p1, p2}, Lf/b/b/b/k1/b0/b;->e(Lf/b/b/b/k1/i;I)J

    move-result-wide v0

    const/4 p1, 0x4

    if-ne p2, p1, :cond_e

    long-to-int p1, v0

    invoke-static {p1}, Ljava/lang/Float;->intBitsToFloat(I)F

    move-result p1

    float-to-double p1, p1

    goto :goto_12

    :cond_e
    invoke-static {v0, v1}, Ljava/lang/Double;->longBitsToDouble(J)D

    move-result-wide p1

    :goto_12
    return-wide p1
.end method

.method private e(Lf/b/b/b/k1/i;I)J
    .registers 9

    iget-object v0, p0, Lf/b/b/b/k1/b0/b;->a:[B

    const/4 v1, 0x0

    invoke-interface {p1, v0, v1, p2}, Lf/b/b/b/k1/i;->readFully([BII)V

    const-wide/16 v2, 0x0

    :goto_8
    if-ge v1, p2, :cond_18

    const/16 p1, 0x8

    shl-long/2addr v2, p1

    iget-object p1, p0, Lf/b/b/b/k1/b0/b;->a:[B

    aget-byte p1, p1, v1

    and-int/lit16 p1, p1, 0xff

    int-to-long v4, p1

    or-long/2addr v2, v4

    add-int/lit8 v1, v1, 0x1

    goto :goto_8

    :cond_18
    return-wide v2
.end method

.method private f(Lf/b/b/b/k1/i;I)Ljava/lang/String;
    .registers 5

    if-nez p2, :cond_5

    const-string p1, ""

    return-object p1

    :cond_5
    new-array v0, p2, [B

    const/4 v1, 0x0

    invoke-interface {p1, v0, v1, p2}, Lf/b/b/b/k1/i;->readFully([BII)V

    :goto_b
    if-lez p2, :cond_16

    add-int/lit8 p1, p2, -0x1

    aget-byte p1, v0, p1

    if-nez p1, :cond_16

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

    goto :goto_b

    :cond_16
    new-instance p1, Ljava/lang/String;

    invoke-direct {p1, v0, v1, p2}, Ljava/lang/String;-><init>([BII)V

    return-object p1
.end method


# virtual methods
.method public a(Lf/b/b/b/k1/i;)Z
    .registers 13

    iget-object v0, p0, Lf/b/b/b/k1/b0/b;->d:Lf/b/b/b/k1/b0/c;

    invoke-static {v0}, Lf/b/b/b/s1/e;->e(Ljava/lang/Object;)Ljava/lang/Object;

    :goto_5
    iget-object v0, p0, Lf/b/b/b/k1/b0/b;->b:Ljava/util/ArrayDeque;

    invoke-virtual {v0}, Ljava/util/ArrayDeque;->isEmpty()Z

    move-result v0

    const/4 v1, 0x1

    if-nez v0, :cond_34

    invoke-interface {p1}, Lf/b/b/b/k1/i;->getPosition()J

    move-result-wide v2

    iget-object v0, p0, Lf/b/b/b/k1/b0/b;->b:Ljava/util/ArrayDeque;

    invoke-virtual {v0}, Ljava/util/ArrayDeque;->peek()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lf/b/b/b/k1/b0/b$b;

    invoke-static {v0}, Lf/b/b/b/k1/b0/b$b;->a(Lf/b/b/b/k1/b0/b$b;)J

    move-result-wide v4

    cmp-long v0, v2, v4

    if-ltz v0, :cond_34

    iget-object p1, p0, Lf/b/b/b/k1/b0/b;->d:Lf/b/b/b/k1/b0/c;

    iget-object v0, p0, Lf/b/b/b/k1/b0/b;->b:Ljava/util/ArrayDeque;

    invoke-virtual {v0}, Ljava/util/ArrayDeque;->pop()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lf/b/b/b/k1/b0/b$b;

    invoke-static {v0}, Lf/b/b/b/k1/b0/b$b;->b(Lf/b/b/b/k1/b0/b$b;)I

    move-result v0

    invoke-interface {p1, v0}, Lf/b/b/b/k1/b0/c;->a(I)V

    return v1

    :cond_34
    iget v0, p0, Lf/b/b/b/k1/b0/b;->e:I

    const/4 v2, 0x4

    const/4 v3, 0x0

    if-nez v0, :cond_56

    iget-object v0, p0, Lf/b/b/b/k1/b0/b;->c:Lf/b/b/b/k1/b0/g;

    invoke-virtual {v0, p1, v1, v3, v2}, Lf/b/b/b/k1/b0/g;->d(Lf/b/b/b/k1/i;ZZI)J

    move-result-wide v4

    const-wide/16 v6, -0x2

    cmp-long v0, v4, v6

    if-nez v0, :cond_4a

    invoke-direct {p0, p1}, Lf/b/b/b/k1/b0/b;->c(Lf/b/b/b/k1/i;)J

    move-result-wide v4

    :cond_4a
    const-wide/16 v6, -0x1

    cmp-long v0, v4, v6

    if-nez v0, :cond_51

    return v3

    :cond_51
    long-to-int v0, v4

    iput v0, p0, Lf/b/b/b/k1/b0/b;->f:I

    iput v1, p0, Lf/b/b/b/k1/b0/b;->e:I

    :cond_56
    iget v0, p0, Lf/b/b/b/k1/b0/b;->e:I

    const/4 v4, 0x2

    if-ne v0, v1, :cond_67

    iget-object v0, p0, Lf/b/b/b/k1/b0/b;->c:Lf/b/b/b/k1/b0/g;

    const/16 v5, 0x8

    invoke-virtual {v0, p1, v3, v1, v5}, Lf/b/b/b/k1/b0/g;->d(Lf/b/b/b/k1/i;ZZI)J

    move-result-wide v5

    iput-wide v5, p0, Lf/b/b/b/k1/b0/b;->g:J

    iput v4, p0, Lf/b/b/b/k1/b0/b;->e:I

    :cond_67
    iget-object v0, p0, Lf/b/b/b/k1/b0/b;->d:Lf/b/b/b/k1/b0/c;

    iget v5, p0, Lf/b/b/b/k1/b0/b;->f:I

    invoke-interface {v0, v5}, Lf/b/b/b/k1/b0/c;->b(I)I

    move-result v0

    if-eqz v0, :cond_15f

    if-eq v0, v1, :cond_13f

    const-wide/16 v5, 0x8

    if-eq v0, v4, :cond_10f

    const/4 v4, 0x3

    if-eq v0, v4, :cond_dc

    if-eq v0, v2, :cond_cf

    const/4 v2, 0x5

    if-ne v0, v2, :cond_b6

    iget-wide v7, p0, Lf/b/b/b/k1/b0/b;->g:J

    const-wide/16 v9, 0x4

    cmp-long v0, v7, v9

    if-eqz v0, :cond_a7

    cmp-long v0, v7, v5

    if-nez v0, :cond_8c

    goto :goto_a7

    :cond_8c
    new-instance p1, Lf/b/b/b/m0;

    iget-wide v0, p0, Lf/b/b/b/k1/b0/b;->g:J

    const/16 v2, 0x28

    new-instance v3, Ljava/lang/StringBuilder;

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

    const-string v2, "Invalid float size: "

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

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

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

    move-result-object v0

    invoke-direct {p1, v0}, Lf/b/b/b/m0;-><init>(Ljava/lang/String;)V

    throw p1

    :cond_a7
    :goto_a7
    iget-object v0, p0, Lf/b/b/b/k1/b0/b;->d:Lf/b/b/b/k1/b0/c;

    iget v2, p0, Lf/b/b/b/k1/b0/b;->f:I

    long-to-int v4, v7

    invoke-direct {p0, p1, v4}, Lf/b/b/b/k1/b0/b;->d(Lf/b/b/b/k1/i;I)D

    move-result-wide v4

    invoke-interface {v0, v2, v4, v5}, Lf/b/b/b/k1/b0/c;->f(ID)V

    iput v3, p0, Lf/b/b/b/k1/b0/b;->e:I

    return v1

    :cond_b6
    new-instance p1, Lf/b/b/b/m0;

    const/16 v1, 0x20

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2, v1}, Ljava/lang/StringBuilder;-><ini