b.smali

.class public Lc/e/a/b;
.super Lc/e/a/e;
.source "AbstractContainerBox.java"

# interfaces
.implements Lc/c/a/a/b;


# instance fields
.field j:Lc/c/a/a/d;

.field protected k:Ljava/lang/String;

.field protected l:Z


# direct methods
.method public constructor <init>(Ljava/lang/String;)V
    .registers 2

    .line 1
    invoke-direct {p0}, Lc/e/a/e;-><init>()V

    .line 2
    iput-object p1, p0, Lc/e/a/b;->k:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method protected g()Ljava/nio/ByteBuffer;
    .registers 15

    .line 1
    iget-boolean v0, p0, Lc/e/a/b;->l:Z

    const/16 v1, 0x8

    const/4 v2, 0x7

    const/4 v3, 0x2

    const/4 v4, 0x6

    const/4 v5, 0x5

    const/4 v6, 0x0

    const/4 v7, 0x4

    const/4 v8, 0x1

    const/4 v9, 0x3

    if-nez v0, :cond_52

    invoke-virtual {p0}, Lc/e/a/b;->getSize()J

    move-result-wide v10

    const-wide v12, 0x100000000L

    cmp-long v0, v10, v12

    if-ltz v0, :cond_1c

    goto :goto_52

    .line 2
    :cond_1c
    new-array v0, v1, [B

    iget-object v1, p0, Lc/e/a/b;->k:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    aget-byte v1, v1, v6

    aput-byte v1, v0, v7

    iget-object v1, p0, Lc/e/a/b;->k:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    aget-byte v1, v1, v8

    aput-byte v1, v0, v5

    iget-object v1, p0, Lc/e/a/b;->k:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    aget-byte v1, v1, v3

    aput-byte v1, v0, v4

    iget-object v1, p0, Lc/e/a/b;->k:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    aget-byte v1, v1, v9

    aput-byte v1, v0, v2

    invoke-static {v0}, Ljava/nio/ByteBuffer;->wrap([B)Ljava/nio/ByteBuffer;

    move-result-object v0

    .line 3
    invoke-virtual {p0}, Lc/e/a/b;->getSize()J

    move-result-wide v1

    invoke-static {v0, v1, v2}, Lc/c/a/e;->a(Ljava/nio/ByteBuffer;J)V

    goto :goto_8e

    :cond_52
    :goto_52
    const/16 v0, 0x10

    .line 4
    new-array v0, v0, [B

    aput-byte v8, v0, v9

    iget-object v10, p0, Lc/e/a/b;->k:Ljava/lang/String;

    invoke-virtual {v10}, Ljava/lang/String;->getBytes()[B

    move-result-object v10

    aget-byte v6, v10, v6

    aput-byte v6, v0, v7

    iget-object v6, p0, Lc/e/a/b;->k:Ljava/lang/String;

    invoke-virtual {v6}, Ljava/lang/String;->getBytes()[B

    move-result-object v6

    aget-byte v6, v6, v8

    aput-byte v6, v0, v5

    iget-object v5, p0, Lc/e/a/b;->k:Ljava/lang/String;

    invoke-virtual {v5}, Ljava/lang/String;->getBytes()[B

    move-result-object v5

    aget-byte v3, v5, v3

    aput-byte v3, v0, v4

    iget-object v3, p0, Lc/e/a/b;->k:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->getBytes()[B

    move-result-object v3

    aget-byte v3, v3, v9

    aput-byte v3, v0, v2

    invoke-static {v0}, Ljava/nio/ByteBuffer;->wrap([B)Ljava/nio/ByteBuffer;

    move-result-object v0

    .line 5
    invoke-virtual {v0, v1}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;

    .line 6
    invoke-virtual {p0}, Lc/e/a/b;->getSize()J

    move-result-wide v1

    invoke-static {v0, v1, v2}, Lc/c/a/e;->b(Ljava/nio/ByteBuffer;J)V

    .line 7
    :goto_8e
    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->rewind()Ljava/nio/Buffer;

    return-object v0
.end method

.method public getBox(Ljava/nio/channels/WritableByteChannel;)V
    .registers 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-virtual {p0}, Lc/e/a/b;->g()Ljava/nio/ByteBuffer;

    move-result-object v0

    invoke-interface {p1, v0}, Ljava/nio/channels/WritableByteChannel;->write(Ljava/nio/ByteBuffer;)I

    .line 2
    invoke-virtual {p0, p1}, Lc/e/a/e;->a(Ljava/nio/channels/WritableByteChannel;)V

    return-void
.end method

.method public getSize()J
    .registers 8

    .line 1
    invoke-virtual {p0}, Lc/e/a/e;->d()J

    move-result-wide v0

    .line 2
    iget-boolean v2, p0, Lc/e/a/b;->l:Z

    if-nez v2, :cond_18

    const-wide/16 v2, 0x8

    add-long/2addr v2, v0

    const-wide v4, 0x100000000L

    cmp-long v6, v2, v4

    if-ltz v6, :cond_15

    goto :goto_18

    :cond_15
    const/16 v2, 0x8

    goto :goto_1a

    :cond_18
    :goto_18
    const/16 v2, 0x10

    :goto_1a
    int-to-long v2, v2

    add-long/2addr v0, v2

    return-wide v0
.end method

.method public setParent(Lc/c/a/a/d;)V
    .registers 2

    .line 1
    iput-object p1, p0, Lc/e/a/b;->j:Lc/c/a/a/d;

    return-void
.end method