.class public Lj3/e;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lj3/a;


# instance fields
.field public a:[I

.field public final b:[I

.field public final c:Lj3/a$a;

.field public d:Ljava/nio/ByteBuffer;

.field public e:[B

.field public f:[S

.field public g:[B

.field public h:[B

.field public i:[B

.field public j:[I

.field public k:I

.field public l:Lj3/c;

.field public m:Landroid/graphics/Bitmap;

.field public n:Z

.field public o:I

.field public p:I

.field public q:I

.field public r:I

.field public s:Ljava/lang/Boolean;

.field public t:Landroid/graphics/Bitmap$Config;


# direct methods
.method public constructor <init>(Lj3/a$a;Lj3/c;Ljava/nio/ByteBuffer;I)V
    .registers 6

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

    const/16 v0, 0x100

    new-array v0, v0, [I

    iput-object v0, p0, Lj3/e;->b:[I

    sget-object v0, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    iput-object v0, p0, Lj3/e;->t:Landroid/graphics/Bitmap$Config;

    iput-object p1, p0, Lj3/e;->c:Lj3/a$a;

    new-instance p1, Lj3/c;

    invoke-direct {p1}, Lj3/c;-><init>()V

    iput-object p1, p0, Lj3/e;->l:Lj3/c;

    .line 2
    monitor-enter p0

    if-lez p4, :cond_86

    :try_start_19
    invoke-static {p4}, Ljava/lang/Integer;->highestOneBit(I)I

    move-result p1

    const/4 p4, 0x0

    iput p4, p0, Lj3/e;->o:I

    iput-object p2, p0, Lj3/e;->l:Lj3/c;

    const/4 v0, -0x1

    iput v0, p0, Lj3/e;->k:I

    invoke-virtual {p3}, Ljava/nio/ByteBuffer;->asReadOnlyBuffer()Ljava/nio/ByteBuffer;

    move-result-object p3

    iput-object p3, p0, Lj3/e;->d:Ljava/nio/ByteBuffer;

    invoke-virtual {p3, p4}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;

    iget-object p3, p0, Lj3/e;->d:Ljava/nio/ByteBuffer;

    sget-object v0, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder;

    invoke-virtual {p3, v0}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;

    iput-boolean p4, p0, Lj3/e;->n:Z

    iget-object p3, p2, Lj3/c;->e:Ljava/util/List;

    invoke-interface {p3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p3

    :cond_3d
    invoke-interface {p3}, Ljava/util/Iterator;->hasNext()Z

    move-result p4

    if-eqz p4, :cond_51

    invoke-interface {p3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p4

    check-cast p4, Lj3/b;

    iget p4, p4, Lj3/b;->g:I

    const/4 v0, 0x3

    if-ne p4, v0, :cond_3d

    const/4 p3, 0x1

    iput-boolean p3, p0, Lj3/e;->n:Z

    :cond_51
    iput p1, p0, Lj3/e;->p:I

    iget p3, p2, Lj3/c;->f:I

    div-int p4, p3, p1

    iput p4, p0, Lj3/e;->r:I

    iget p2, p2, Lj3/c;->g:I

    div-int p1, p2, p1

    iput p1, p0, Lj3/e;->q:I

    iget-object p1, p0, Lj3/e;->c:Lj3/a$a;

    mul-int/2addr p3, p2

    check-cast p1, Lx3/b;

    invoke-virtual {p1, p3}, Lx3/b;->a(I)[B

    move-result-object p1

    iput-object p1, p0, Lj3/e;->i:[B

    iget-object p1, p0, Lj3/e;->c:Lj3/a$a;

    iget p2, p0, Lj3/e;->r:I

    iget p3, p0, Lj3/e;->q:I

    mul-int/2addr p2, p3

    check-cast p1, Lx3/b;

    .line 3
    iget-object p1, p1, Lx3/b;->b:Ln3/b;

    if-nez p1, :cond_7a

    new-array p1, p2, [I

    goto :goto_82

    :cond_7a
    const-class p3, [I

    invoke-interface {p1, p2, p3}, Ln3/b;->e(ILjava/lang/Class;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, [I

    .line 4
    :goto_82
    iput-object p1, p0, Lj3/e;->j:[I
    :try_end_84
    .catchall {:try_start_19 .. :try_end_84} :catchall_9d

    monitor-exit p0

    return-void

    :cond_86
    :try_start_86
    new-instance p1, Ljava/lang/IllegalArgumentException;

    new-instance p2, Ljava/lang/StringBuilder;

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

    const-string p3, "Sample size must be >=0, not: "

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

    invoke-virtual {p2, p4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

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

    move-result-object p2

    invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1
    :try_end_9d
    .catchall {:try_start_86 .. :try_end_9d} :catchall_9d

    :catchall_9d
    move-exception p1

    monitor-exit p0

    throw p1
.end method


# virtual methods
.method public a()I
    .registers 2

    iget v0, p0, Lj3/e;->k:I

    return v0
.end method

.method public declared-synchronized b()Landroid/graphics/Bitmap;
    .registers 9

    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Lj3/e;->l:Lj3/c;

    iget v0, v0, Lj3/c;->c:I

    const/4 v1, 0x3

    const/4 v2, 0x1

    if-lez v0, :cond_d

    iget v0, p0, Lj3/e;->k:I

    if-gez v0, :cond_3b

    :cond_d
    const-string v0, "e"

    invoke-static {v0, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z

    move-result v0

    if-eqz v0, :cond_39

    const-string v0, "e"

    new-instance v3, Ljava/lang/StringBuilder;

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

    const-string v4, "Unable to decode frame, frameCount="

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

    iget-object v4, p0, Lj3/e;->l:Lj3/c;

    iget v4, v4, Lj3/c;->c:I

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

    const-string v4, ", framePointer="

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

    iget v4, p0, Lj3/e;->k:I

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

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

    move-result-object v3

    invoke-static {v0, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    :cond_39
    iput v2, p0, Lj3/e;->o:I

    :cond_3b
    iget v0, p0, Lj3/e;->o:I

    const/4 v3, 0x0

    if-eq v0, v2, :cond_ca

    const/4 v4, 0x2

    if-ne v0, v4, :cond_45

    goto/16 :goto_ca

    :cond_45
    const/4 v0, 0x0

    iput v0, p0, Lj3/e;->o:I

    iget-object v5, p0, Lj3/e;->e:[B

    if-nez v5, :cond_58

    iget-object v5, p0, Lj3/e;->c:Lj3/a$a;

    const/16 v6, 0xff

    check-cast v5, Lx3/b;

    invoke-virtual {v5, v6}, Lx3/b;->a(I)[B

    move-result-object v5

    iput-object v5, p0, Lj3/e;->e:[B

    :cond_58
    iget-object v5, p0, Lj3/e;->l:Lj3/c;

    iget-object v5, v5, Lj3/c;->e:Ljava/util/List;

    iget v6, p0, Lj3/e;->k:I

    invoke-interface {v5, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lj3/b;

    iget v6, p0, Lj3/e;->k:I

    sub-int/2addr v6, v2

    if-ltz v6, :cond_74

    iget-object v7, p0, Lj3/e;->l:Lj3/c;

    iget-object v7, v7, Lj3/c;->e:Ljava/util/List;

    invoke-interface {v7, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lj3/b;

    goto :goto_75

    :cond_74
    move-object v6, v3

    :goto_75
    iget-object v7, v5, Lj3/b;->k:[I

    if-eqz v7, :cond_7a

    goto :goto_7e

    :cond_7a
    iget-object v7, p0, Lj3/e;->l:Lj3/c;

    iget-object v7, v7, Lj3/c;->a:[I

    :goto_7e
    iput-object v7, p0, Lj3/e;->a:[I

    if-nez v7, :cond_a6

    const-string v0, "e"

    invoke-static {v0, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z

    move-result v0

    if-eqz v0, :cond_a2

    const-string v0, "e"

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v4, "No valid color table found for frame #"

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

    iget v4, p0, Lj3/e;->k:I

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

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

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    :cond_a2
    iput v2, p0, Lj3/e;->o:I
    :try_end_a4
    .catchall {:try_start_1 .. :try_end_a4} :catchall_ec

    monitor-exit p0

    return-object v3

    :cond_a6
    :try_start_a6
    iget-boolean v1, v5, Lj3/b;->f:Z

    if-eqz v1, :cond_c4

    iget-object v1, p0, Lj3/e;->b:[I

    array-length v2, v7

    invoke-static {v7, v0, v1, v0, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    iget-object v1, p0, Lj3/e;->b:[I

    iput-object v1, p0, Lj3/e;->a:[I

    iget v2, v5, Lj3/b;->h:I

    aput v0, v1, v2

    iget v0, v5, Lj3/b;->g:I

    if-ne v0, v4, :cond_c4

    iget v0, p0, Lj3/e;->k:I

    if-nez v0, :cond_c4

    sget-object v0, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;

    iput-object v0, p0, Lj3/e;->s:Ljava/lang/Boolean;

    :cond_c4
    invoke-virtual {p0, v5, v6}, Lj3/e;->j(Lj3/b;Lj3/b;)Landroid/graphics/Bitmap;

    move-result-object v0
    :try_end_c8
    .catchall {:try_start_a6 .. :try_end_c8} :catchall_ec

    monitor-exit p0

    return-object v0

    :cond_ca
    :goto_ca
    :try_start_ca
    const-string v0, "e"

    invoke-static {v0, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z

    move-result v0

    if-eqz v0, :cond_ea

    const-string v0, "e"

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "Unable to decode frame, status="

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

    iget v2, p0, Lj3/e;->o:I

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

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

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_ea
    .catchall {:try_start_ca .. :try_end_ea} :catchall_ec

    :cond_ea
    monitor-exit p0

    return-object v3

    :catchall_ec
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public c()V
    .registers 3

    iget v0, p0, Lj3/e;->k:I

    add-int/lit8 v0, v0, 0x1

    iget-object v1, p0, Lj3/e;->l:Lj3/c;

    iget v1, v1, Lj3/c;->c:I

    rem-int/2addr v0, v1

    iput v0, p0, Lj3/e;->k:I

    return-void
.end method

.method public clear()V
    .registers 4

    const/4 v0, 0x0

    iput-object v0, p0, Lj3/e;->l:Lj3/c;

    iget-object v1, p0, Lj3/e;->i:[B

    if-eqz v1, :cond_13

    iget-object v2, p0, Lj3/e;->c:Lj3/a$a;

    check-cast v2, Lx3/b;

    .line 1
    iget-object v2, v2, Lx3/b;->b:Ln3/b;

    if-nez v2, :cond_10

    goto :goto_13

    :cond_10
    invoke-interface {v2, v1}, Ln3/b;->d(Ljava/lang/Object;)V

    .line 2
    :cond_13
    :goto_13
    iget-object v1, p0, Lj3/e;->j:[I

    if-eqz v1, :cond_23

    iget-object v2, p0, Lj3/e;->c:Lj3/a$a;

    check-cast v2, Lx3/b;

    .line 3
    iget-object v2, v2, Lx3/b;->b:Ln3/b;

    if-nez v2, :cond_20

    goto :goto_23

    :cond_20
    invoke-interface {v2, v1}, Ln3/b;->d(Ljava/lang/Object;)V

    .line 4
    :cond_23
    :goto_23
    iget-object v1, p0, Lj3/e;->m:Landroid/graphics/Bitmap;

    if-eqz v1, :cond_30

    iget-object v2, p0, Lj3/e;->c:Lj3/a$a;

    check-cast v2, Lx3/b;

    .line 5
    iget-object v2, v2, Lx3/b;->a:Ln3/c;

    invoke-interface {v2, v1}, Ln3/c;->e(Landroid/graphics/Bitmap;)V

    .line 6
    :cond_30
    iput-object v0, p0, Lj3/e;->m:Landroid/graphics/Bitmap;

    iput-object v0, p0, Lj3/e;->d:Ljava/nio/ByteBuffer;

    iput-object v0, p0, Lj3/e;->s:Ljava/lang/Boolean;

    iget-object v0, p0, Lj3/e;->e:[B

    if-eqz v0, :cond_46

    iget-object v1, p0, Lj3/e;->c:Lj3/a$a;

    check-cast v1, Lx3/b;

    .line 7
    iget-object v1, v1, Lx3/b;->b:Ln3/b;

    if-nez v1, :cond_43

    goto :goto_46

    :cond_43
    invoke-interface {v1, v0}, Ln3/b;->d(Ljava/lang/Object;)V

    :cond_46
    :goto_46
    return-void
.end method

.method public d()I
    .registers 2

    iget-object v0, p0, Lj3/e;->l:Lj3/c;

    iget v0, v0, Lj3/c;->c:I

    return v0
.end method

.method public e()I
    .registers 4

    iget-object v0, p0, Lj3/e;->l:Lj3/c;

    iget v1, v0, Lj3/c;->c:I

    if-lez v1, :cond_1c

    iget v2, p0, Lj3/e;->k:I

    if-gez v2, :cond_b

    goto :goto_1c

    :cond_b
    if-ltz v2, :cond_1a

    if-ge v2, v1, :cond_1a

    .line 1
    iget-object v0, v0, Lj3/c;->e:Ljava/util/List;

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lj3/b;

    iget v0, v0, Lj3/b;->i:I

    goto :goto_1b

    :cond_1a
    const/4 v0, -0x1

    :goto_1b
    return v0

    :cond_1c
    :goto_1c
    const/4 v0, 0x0

    return v0
.end method

.method public f()I
    .registers 3

    iget-object v0, p0, Lj3/e;->d:Ljava/nio/ByteBuffer;

    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->limit()I

    move-result v0

    iget-object v1, p0, Lj3/e;->i:[B

    array-length v1, v1

    add-int/2addr v0, v1

    iget-object v1, p0, Lj3/e;->j:[I

    array-length v1, v1

    mul-int/lit8 v1, v1, 0x4

    add-int/2addr v1, v0

    return v1
.end method

.method public g()Ljava/nio/ByteBuffer;
    .registers 2

    iget-object v0, p0, Lj3/e;->d:Ljava/nio/ByteBuffer;

    return-object v0
.end method

.method public final h()Landroid/graphics/Bitmap;
    .registers 5

    iget-object v0, p0, Lj3/e;->s:Ljava/lang/Boolean;

    if-eqz v0, :cond_e

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_b

    goto :goto_e

    :cond_b
    iget-object v0, p0, Lj3/e;->t:Landroid/graphics/Bitmap$Config;

    goto :goto_10

    :cond_e
    :goto_e
    sget-object v0, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    :goto_10
    iget-object v1, p0, Lj3/e;->c:Lj3/a$a;

    iget v2, p0, Lj3/e;->r:I

    iget v3, p0, Lj3/e;->q:I

    check-cast v1, Lx3/b;

    .line 1
    iget-object v1, v1, Lx3/b;->a:Ln3/c;

    invoke-interface {v1, v2, v3, v0}, Ln3/c;->c(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v0

    const/4 v1, 0x1

    .line 2
    invoke-virtual {v0, v1}, Landroid/graphics/Bitmap;->setHasAlpha(Z)V

    return-object v0
.end method

.method public i(Landroid/graphics/Bitmap$Config;)V
    .registers 5

    sget-object v0, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    if-eq p1, v0, :cond_34

    sget-object v0, Landroid/graphics/Bitmap$Config;->RGB_565:Landroid/graphics/Bitmap$Config;

    if-ne p1, v0, :cond_9

    goto :goto_34

    :cond_9
    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "Unsupported format: "

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

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string p1, ", must be one of "

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

    sget-object p1, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string p1, " or "

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

    sget-object p1, Landroid/graphics/Bitmap$Config;->RGB_565:Landroid/graphics/Bitmap$Config;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

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

    move-result-object p1

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

    throw v0

    :cond_34
    :goto_34
    iput-object p1, p0, Lj3/e;->t:Landroid/graphics/Bitmap$Config;

    return-void
.end method

.method public final j(Lj3/b;Lj3/b;)Landroid/graphics/Bitmap;
    .registers 38

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-object/from16 v2, p2

    iget-object v10, v0, Lj3/e;->j:[I

    const/4 v11, 0x0

    if-nez v2, :cond_1e

    iget-object v3, v0, Lj3/e;->m:Landroid/graphics/Bitmap;

    if-eqz v3, :cond_18

    iget-object v4, v0, Lj3/e;->c:Lj3/a$a;

    check-cast v4, Lx3/b;

    .line 1
    iget-object v4, v4, Lx3/b;->a:Ln3/c;

    invoke-interface {v4, v3}, Ln3/c;->e(Landroid/graphics/Bitmap;)V

    :cond_18
    const/4 v3, 0x0

    .line 2
    iput-object v3, v0, Lj3/e;->m:Landroid/graphics/Bitmap;

    invoke-static {v10, v11}, Ljava/util/Arrays;->fill([II)V

    :cond_1e
    const/4 v12, 0x3

    if-eqz v2, :cond_2c

    iget v3, v2, Lj3/b;->g:I

    if-ne v3, v12, :cond_2c

    iget-object v3, v0, Lj3/e;->m:Landroid/graphics/Bitmap;

    if-nez v3, :cond_2c

    invoke-static {v10, v11}, Ljava/util/Arrays;->fill([II)V

    :cond_2c
    const/4 v13, 0x2

    if-eqz v2, :cond_7e

    iget v3, v2, Lj3/b;->g:I

    if-lez v3, :cond_7e

    if-ne v3, v13, :cond_6c

    iget-boolean v3, v1, Lj3/b;->f:Z

    if-nez v3, :cond_47

    iget-object v3, v0, Lj3/e;->l:Lj3/c;

    iget v4, v3, Lj3/c;->k:I

    iget-object v5, v1, Lj3/b;->k:[I

    if-eqz v5, :cond_48

    iget v3, v3, Lj3/c;->j:I

    iget v5, v1, Lj3/b;->h:I

    if-ne v3, v5, :cond_48

    :cond_47
    move v4, v11

    :cond_48
    iget v3, v2, Lj3/b;->d:I

    iget v5, v0, Lj3/e;->p:I

    div-int/2addr v3, v5

    iget v6, v2, Lj3/b;->b:I

    div-int/2addr v6, v5

    iget v7, v2, Lj3/b;->c:I

    div-int/2addr v7, v5

    iget v2, v2, Lj3/b;->a:I

    div-int/2addr v2, v5

    iget v5, v0, Lj3/e;->r:I

    mul-int/2addr v6, v5

    add-int/2addr v6, v2

    mul-int/2addr v3, v5

    add-int/2addr v3, v6

    :goto_5c
    if-ge v6, v3, :cond_7e

    add-int v2, v6, v7

    move v5, v6

    :goto_61
    if-ge v5, v2, :cond_68

    aput v4, v10, v5

    add-int/lit8 v5, v5, 0x1

    goto :goto_61

    :cond_68
    iget v2, v0, Lj3/e;->r:I

    add-int/2addr v6, v2

    goto :goto_5c

    :cond_6c
    if-ne v3, v12, :cond_7e

    iget-object v2, v0, Lj3/e;->m:Landroid/graphics/Bitmap;

    if-eqz v2, :cond_7e

    const/4 v4, 0x0

    iget v8, v0, Lj3/e;->r:I

    const/4 v6, 0x0

    const/4 v7, 0x0

    iget v9, v0, Lj3/e;->q:I

    move-object v3, v10

    move v5, v8

    invoke-virtual/range {v2 .. v9}, Landroid/graphics/Bitmap;->getPixels([IIIIIII)V

    .line 3
    :cond_7e
    iget-object v2, v0, Lj3/e;->d:Ljava/nio/ByteBuffer;

    iget v3, v1, Lj3/b;->j:I

    invoke-virtual {v2, v3}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;

    iget v2, v1, Lj3/b;->c:I

    iget v3, v1, Lj3/b;->d:I

    mul-int/2addr v2, v3

    iget-object v3, v0, Lj3/e;->i:[B

    if-eqz v3, :cond_91

    array-length v3, v3

    if-ge v3, v2, :cond_9b

    :cond_91
    iget-object v3, v0, Lj3/e;->c:Lj3/a$a;

    check-cast v3, Lx3/b;

    invoke-virtual {v3, v2}, Lx3/b;->a(I)[B

    move-result-object v3

    iput-object v3, v0, Lj3/e;->i:[B

    :cond_9b
    iget-object v3, v0, Lj3/e;->i:[B

    iget-object v4, v0, Lj3/e;->f:[S

    const/16 v5, 0x1000

    if-nez v4, :cond_a7

    new-array v4, v5, [S

    iput-object v4, v0, Lj3/e;->f:[S

    :cond_a7
    iget-object v4, v0, Lj3/e;->f:[S

    iget-object v6, v0, Lj3/e;->g:[B

    if-nez v6, :cond_b1

    new-array v6, v5, [B

    iput-object v6, v0, Lj3/e;->g:[B

    :cond_b1
    iget-object v6, v0, Lj3/e;->g:[B

    iget-object v7, v0, Lj3/e;->h:[B

    if-nez v7, :cond_bd

    const/16 v7, 0x1001

    new-array v7, v7, [B

    iput-object v7, v0, Lj3/e;->h:[B

    :cond_bd
    iget-object v7, v0, Lj3/e;->h:[B

    .line 4
    iget-object v8, v0, Lj3/e;->d:Ljava/nio/ByteBuffer;

    invoke-virtual {v8}, Ljava/nio/ByteBuffer;->get()B

    move-result v8

    and-int/lit16 v8, v8, 0xff

    const/4 v9, 0x1

    shl-int v14, v9, v8

    add-int/lit8 v15, v14, 0x1

    add-int/lit8 v16, v14, 0x2

    add-int/2addr v8, v9

    shl-int v17, v9, v8

    const/4 v13, -0x1

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

    move v5, v11

    :goto_d5
    if-ge v5, v14, :cond_e0

    .line 5
    aput-short v11, v4, v5

    int-to-byte v13, v5

    aput-byte v13, v6, v5

    add-int/lit8 v5, v5, 0x1

    const/4 v13, -0x1

    goto :goto_d5

    :cond_e0
    iget-object v5, v0, Lj3/e;->e:[B

    move-object v12, v0

    move/from16 v26, v8

    move v9, v11

    move/from16 v20, v9

    move/from16 v21, v20

    move/from16 v22, v21

    move/from16 v23, v22

    move/from16 v24, v23

    move/from16 v27, v24

    move/from16 v29, v27

    move/from16 v25, v16

    move/from16 v28, v17

    const/4 v13, -0x1

    :goto_f9
    const/16 v30, 0x8

    if-ge v9, v2, :cond_1f6

    if-nez v21, :cond_139

    .line 6
    iget-object v11, v12, Lj3/e;->d:Ljava/nio/ByteBuffer;

    invoke-virtual {v11}, Ljava/nio/ByteBuffer;->get()B

    move-result v11

    and-int/lit16 v11, v11, 0xff

    if-gtz v11, :cond_112

    move/from16 v31, v8

    move/from16 v32, v9

    move-object/from16 v34, v10

    move/from16 v33, v13

    goto :goto_12a

    :cond_112
    move/from16 v31, v8

    .line 7
    iget-object v8, v12, Lj3/e;->d:Ljava/nio/ByteBuffer;

    move/from16 v32, v9

    iget-object v9, v12, Lj3/e;->e:[B

    move/from16 v33, v13

    invoke-virtual {v8}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v13

    invoke-static {v11, v13}, Ljava/lang/Math;->min(II)I

    move-result v13

    move-object/from16 v34, v10

    const/4 v10, 0x0

    invoke-virtual {v8, v9, v10, v13}, Ljava/nio/ByteBuffer;->get([BII)Ljava/nio/ByteBuffer;

    :goto_12a
    if-gtz v11, :cond_134

    const/4 v8, 0x3

    .line 8
    iput v8, v12, Lj3/e;->o:I

    move/from16 v11, v20

    const/4 v10, 0x0

    goto/16 :goto_1fb

    :cond_134
    move/from16 v21, v11

    const/16 v22, 0x0

    goto :goto_141

    :cond_139
    move/from16 v31, v8

    move/from16 v32, v9

    move-object/from16 v34, v10

    move/from16 v33, v13

    :goto_141
    aget-byte v8, v5, v22

    and-int/lit16 v8, v8, 0xff

    shl-int v8, v8, v23

    add-int v24, v24, v8

    add-int/lit8 v23, v23, 0x8

    const/4 v8, 0x1

    add-int/lit8 v22, v22, 0x1

    const/4 v8, -0x1

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

    move/from16 v10, v23

    move/from16 v11, v25

    move/from16 v8, v26

    move/from16 v9, v32

    move/from16 v13, v33

    move-object/from16 v23, v5

    move/from16 v5, v27

    :goto_15f
    if-lt v10, v8, :cond_1e2

    move-object/from16 v25, v12

    and-int v12, v24, v28

    shr-int v24, v24, v8

    sub-int/2addr v10, v8

    if-ne v12, v14, :cond_17b

    move/from16 v26, v10

    move/from16 v11, v16

    move/from16 v28, v17

    move-object/from16 v12, v25

    move/from16 v8, v31

    const/4 v13, -0x1

    move/from16 v25, v5

    const/16 v5, 0x1000

    goto/16 :goto_1dc

    :cond_17b
    if-ne v12, v15, :cond_185

    move/from16 v27, v5

    move-object/from16 v12, v25

    const/16 v5, 0x1000

    goto/16 :goto_1e7

    :cond_185
    move/from16 v26, v10

    const/4 v10, -0x1

    if-ne v13, v10, :cond_198

    aget-byte v5, v6, v12

    aput-byte v5, v3, v20

    add-int/lit8 v20, v20, 0x1

    add-int/lit8 v9, v9, 0x1

    move v5, v12

    move v13, v5

    move/from16 v10, v26

    move-object v12, v0

    goto :goto_15f

    :cond_198
    if-lt v12, v11, :cond_1a1

    int-to-byte v5, v5

    aput-byte v5, v7, v29

    add-int/lit8 v29, v29, 0x1

    move v5, v13

    goto :goto_1a2

    :cond_1a1
    move v5, v12

    :goto_1a2
    if-lt v5, v14, :cond_1ad

    aget-byte v10, v6, v5

    aput-byte v10, v7, v29

    add-int/lit8 v29, v29, 0x1

    aget-short v5, v4, v5

    goto :goto_1a2

    :cond_1ad
    aget-byte v5, v6, v5

    and-int/lit16 v5, v5, 0xff

    int-to-byte v10, v5

    aput-byte v10, v3, v20

    :goto_1b4
    const/16 v19, 0x1

    add-int/lit8 v20, v20, 0x1

    add-int/lit8 v9, v9, 0x1

    if-lez v29, :cond_1c3

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

    aget-byte v25, v7, v29

    aput-byte v25, v3, v20

    goto :goto_1b4

    :cond_1c3
    move/from16 v25, v5

    const/16 v5, 0x1000

    if-ge v11, v5, :cond_1da

    int-to-short v13, v13

    aput-short v13, v4, v11

    aput-byte v10, v6, v11

    add-int/lit8 v11, v11, 0x1

    and-int v10, v11, v28

    if-nez v10, :cond_1da

    if-ge v11, v5, :cond_1da

    add-int/lit8 v8, v8, 0x1

    add-int v28, v28, v11

    :cond_1da
    move v13, v12

    move-object v12, v0

    :goto_1dc
    move/from16 v5, v25

    move/from16 v10, v26

    goto/16 :goto_15f

    :cond_1e2
    move/from16 v27, v5

    const/16 v5, 0x1000

    move-object v12, v0

    :goto_1e7
    move/from16 v26, v8

    move/from16 v25, v11

    move-object/from16 v5, v23

    move/from16 v8, v31

    const/4 v11, 0x0

    move/from16 v23, v10

    move-object/from16 v10, v34

    goto/16 :goto_f9

    :cond_1f6
    move-object/from16 v34, v10

    move v10, v11

    move/from16 v11, v20

    :goto_1fb
    invoke-static {v3, v11, v2, v10}, Ljava/util/Arrays;->fill([BIIB)V

    .line 9
    iget-boolean v2, v1, Lj3/b;->e:Z

    if-nez v2, :cond_273

    iget v2, v0, Lj3/e;->p:I

    const/4 v3, 0x1

    if-eq v2, v3, :cond_209

    goto/16 :goto_273

    .line 10
    :cond_209
    iget-object v2, v0, Lj3/e;->j:[I

    iget v3, v1, Lj3/b;->d:I

    iget v4, v1, Lj3/b;->b:I

    iget v5, v1, Lj3/b;->c:I

    iget v6, v1, Lj3/b;->a:I

    iget v7, v0, Lj3/e;->k:I

    if-nez v7, :cond_219

    const/4 v7, 0x1

    goto :goto_21a

    :cond_219
    move v7, v10

    :goto_21a
    iget v8, v0, Lj3/e;->r:I

    iget-object v9, v0, Lj3/e;->i:[B

    iget-object v11, v0, Lj3/e;->a:[I

    move v13, v10

    const/4 v12, -0x1

    :goto_222
    if-ge v13, v3, :cond_255

    add-int v14, v13, v4

    mul-int/2addr v14, v8

    add-int v15, v14, v6

    add-int v10, v15, v5

    add-int/2addr v14, v8

    if-ge v14, v10, :cond_22f

    move v10, v14

    :cond_22f
    iget v14, v1, Lj3/b;->c:I

    mul-int/2addr v14, v13

    :goto_232
    move/from16 v16, v3

    if-ge v15, v10, :cond_24f

    aget-byte v3, v9, v14

    move/from16 v17, v4

    and-int/lit16 v4, v3, 0xff

    if-eq v4, v12, :cond_246

    aget v4, v11, v4

    if-eqz v4, :cond_245

    aput v4, v2, v15

    goto :goto_246

    :cond_245
    move v12, v3

    :cond_246
    :goto_246
    add-int/lit8 v14, v14, 0x1

    add-int/lit8 v15, v15, 0x1

    move/from16 v3, v16

    move/from16 v4, v17

    goto :goto_232

    :cond_24f
    move/from16 v17, v4

    add-int/lit8 v13, v13, 0x1

    const/4 v10, 0x0

    goto :goto_222

    :cond_255
    iget-object v2, v0, Lj3/e;->s:Ljava/lang/Boolean;

    if-eqz v2, :cond_25f

    invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v2

    if-nez v2, :cond_268

    :cond_25f
    iget-object v2, v0, Lj3/e;->s:Ljava/lang/Boolean;

    if-nez v2, :cond_26a

    if-eqz v7, :cond_26a

    const/4 v2, -0x1

    if-eq v12, v2, :cond_26a

    :cond_268
    const/4 v11, 0x1

    goto :goto_26b

    :cond_26a
    const/4 v11, 0x0

    :goto_26b
    invoke-static {v11}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    iput-object v2, v0, Lj3/e;->s:Ljava/lang/Boolean;

    goto/16 :goto_3fc

    .line 11
    :cond_273
    :goto_273
    iget-object v2, v0, Lj3/e;->j:[I

    iget v3, v1, Lj3/b;->d:I

    iget v4, v0, Lj3/e;->p:I

    div-int/2addr v3, v4

    iget v5, v1, Lj3/b;->b:I

    div-int/2addr v5, v4

    iget v6, v1, Lj3/b;->c:I

    div-int/2addr v6, v4

    iget v7, v1, Lj3/b;->a:I

    div-int/2addr v7, v4

    iget v8, v0, Lj3/e;->k:I

    if-nez v8, :cond_289

    const/4 v10, 0x1

    goto :goto_28a

    :cond_289
    const/4 v10, 0x0

    :goto_28a
    iget v8, v0, Lj3/e;->r:I

    iget v9, v0, Lj3/e;->q:I

    iget-object v11, v0, Lj3/e;->i:[B

    iget-object v12, v0, Lj3/e;->a:[I

    iget-object v13, v0, Lj3/e;->s:Ljava/lang/Boolean;

    move-object v14, v13

    move/from16 v17, v30

    const/4 v13, 0x0

    const/4 v15, 0x0

    const/16 v16, 0x1

    :goto_29b
    move-object/from16 p2, v14

    if-ge v13, v3, :cond_3ea

    iget-boolean v14, v1, Lj3/b;->e:Z

    if-eqz v14, :cond_2ca

    if-lt v15, v3, :cond_2c5

    add-int/lit8 v14, v16, 0x1

    move/from16 v20, v3

    const/4 v3, 0x2

    if-eq v14, v3, :cond_2c0

    const/4 v3, 0x3

    if-eq v14, v3, :cond_2b9

    const/4 v3, 0x4

    move/from16 v16, v14

    if-eq v14, v3, :cond_2b5

    goto :goto_2c7

    :cond_2b5
    const/4 v15, 0x1

    const/16 v17, 0x2

    goto :goto_2c7

    :cond_2b9
    const/4 v3, 0x4

    move/from16 v17, v3

    move/from16 v16, v14

    const/4 v15, 0x2

    goto :goto_2c7

    :cond_2c0
    const/4 v3, 0x4

    move v15, v3

    move/from16 v16, v14

    goto :goto_2c7

    :cond_2c5
    move/from16 v20, v3

    :goto_2c7
    add-int v3, v15, v17

    goto :goto_2ce

    :cond_2ca
    move/from16 v20, v3

    move v3, v15

    move v15, v13

    :goto_2ce
    add-int/2addr v15, v5

    const/4 v14, 0x1

    if-ne v4, v14, :cond_2d4

    const/4 v14, 0x1

    goto :goto_2d5

    :cond_2d4
    const/4 v14, 0x0

    :goto_2d5
    if-ge v15, v9, :cond_3ca

    mul-int/2addr v15, v8

    add-int v18, v15, v7

    move/from16 v21, v3

    add-int v3, v18, v6

    add-int/2addr v15, v8

    if-ge v15, v3, :cond_2e2

    move v3, v15

    :cond_2e2
    mul-int v15, v13, v4

    move/from16 v22, v5

    iget v5, v1, Lj3/b;->c:I

    mul-int/2addr v15, v5

    if-eqz v14, :cond_30b

    move-object/from16 v14, p2

    move/from16 v5, v18

    :goto_2ef
    move/from16 v23, v6

    if-ge v5, v3, :cond_3c3

    aget-byte v6, v11, v15

    and-int/lit16 v6, v6, 0xff

    aget v6, v12, v6

    if-eqz v6, :cond_2fe

    aput v6, v2, v5

    goto :goto_305

    :cond_2fe
    if-eqz v10, :cond_305

    if-nez v14, :cond_305

    sget-object v6, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;

    move-object v14, v6

    :cond_305
    :goto_305
    add-int/2addr v15, v4

    add-int/lit8 v5, v5, 0x1

    move/from16 v6, v23

    goto :goto_2ef

    :cond_30b
    move/from16 v23, v6

    sub-int v5, v3, v18

    mul-int/2addr v5, v4

    add-int/2addr v5, v15

    move-object/from16 v14, p2

    move/from16 v6, v18

    :goto_315
    if-ge v6, v3, :cond_3c3

    move/from16 v18, v3

    iget v3, v1, Lj3/b;->c:I

    move/from16 v29, v7

    move/from16 v31, v8

    move v7, v15

    const/16 v24, 0x0

    const/16 v25, 0x0

    const/16 v26, 0x0

    const/16 v27, 0x0

    const/16 v28, 0x0

    .line 12
    :goto_32a
    iget v8, v0, Lj3/e;->p:I

    add-int/2addr v8, v15

    if-ge v7, v8, :cond_35f

    iget-object v8, v0, Lj3/e;->i:[B

    move/from16 v32, v9

    array-length v9, v8

    if-ge v7, v9, :cond_361

    if-ge v7, v5, :cond_361

    aget-byte v8, v8, v7

    and-int/lit16 v8, v8, 0xff

    iget-object v9, v0, Lj3/e;->a:[I

    aget v8, v9, v8

    if-eqz v8, :cond_35a

    shr-int/lit8 v9, v8, 0x18

    and-int/lit16 v9, v9, 0xff

    add-int v24, v24, v9

    shr-int/lit8 v9, v8, 0x10

    and-int/lit16 v9, v9, 0xff

    add-int v25, v25, v9

    shr-int/lit8 v9, v8, 0x8

    and-int/lit16 v9, v9, 0xff

    add-int v26, v26, v9

    and-int/lit16 v8, v8, 0xff

    add-int v27, v27, v8

    add-int/lit8 v28, v28, 0x1

    :cond_35a
    add-int/lit8 v7, v7, 0x1

    move/from16 v9, v32

    goto :goto_32a

    :cond_35f
    move/from16 v32, v9

    :cond_361
    add-int/2addr v3, v15

    move v7, v3

    :goto_363
    iget v8, v0, Lj3/e;->p:I

    add-int/2addr v8, v3

    if-ge v7, v8, :cond_394

    iget-object v8, v0, Lj3/e;->i:[B

    array-length v9, v8

    if-ge v7, v9, :cond_394

    if-ge v7, v5, :cond_394

    aget-byte v8, v8, v7

    and-int/lit16 v8, v8, 0xff

    iget-object v9, v0, Lj3/e;->a:[I

    aget v8, v9, v8

    if-eqz v8, :cond_391

    shr-int/lit8 v9, v8, 0x18

    and-int/lit16 v9, v9, 0xff

    add-int v24, v24, v9

    shr-int/lit8 v9, v8, 0x10

    and-int/lit16 v9, v9, 0xff

    add-int v25, v25, v9

    shr-int/lit8 v9, v8, 0x8

    and-int/lit16 v9, v9, 0xff

    add-int v26, v26, v9

    and-int/lit16 v8, v8, 0xff

    add-int v27, v27, v8

    add-int/lit8 v28, v28, 0x1

    :cond_391
    add-int/lit8 v7, v7, 0x1

    goto :goto_363

    :cond_394
    if-nez v28, :cond_398

    const/4 v3, 0x0

    goto :goto_3aa

    :cond_398
    div-int v24, v24, v28

    shl-int/lit8 v3, v24, 0x18

    div-int v25, v25, v28

    shl-int/lit8 v7, v25, 0x10

    or-int/2addr v3, v7

    div-int v26, v26, v28

    shl-int/lit8 v7, v26, 0x8

    or-int/2addr v3, v7

    div-int v27, v27, v28

    or-int v3, v3, v27

    :goto_3aa
    if-eqz v3, :cond_3af

    .line 13
    aput v3, v2, v6

    goto :goto_3b6

    :cond_3af
    if-eqz v10, :cond_3b6

    if-nez v14, :cond_3b6

    sget-object v3, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;

    move-object v14, v3

    :cond_3b6
    :goto_3b6
    add-int/2addr v15, v4

    add-int/lit8 v6, v6, 0x1

    move/from16 v3, v18

    move/from16 v7, v29

    move/from16 v8, v31

    move/from16 v9, v32

    goto/16 :goto_315

    :cond_3c3
    move/from16 v29, v7

    move/from16 v31, v8

    move/from16 v32, v9

    goto :goto_3d8

    :cond_3ca
    move/from16 v21, v3

    move/from16 v22, v5

    move/from16 v23, v6

    move/from16 v29, v7

    move/from16 v31, v8

    move/from16 v32, v9

    move-object/from16 v14, p2

    :goto_3d8
    add-int/lit8 v13, v13, 0x1

    move/from16 v3, v20

    move/from16 v15, v21

    move/from16 v5, v22

    move/from16 v6, v23

    move/from16 v7, v29

    move/from16 v8, v31

    move/from16 v9, v32

    goto/16 :goto_29b

    :cond_3ea
    iget-object v2, v0, Lj3/e;->s:Ljava/lang/Boolean;

    if-nez v2, :cond_3fc

    if-nez p2, :cond_3f2

    const/4 v11, 0x0

    goto :goto_3f6

    :cond_3f2
    invoke-virtual/range {p2 .. p2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v11

    :goto_3f6
    invoke-static {v11}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    iput-object v2, v0, Lj3/e;->s:Ljava/lang/Boolean;

    .line 14
    :cond_3fc
    :goto_3fc
    iget-boolean v2, v0, Lj3/e;->n:Z

    if-eqz v2, :cond_420

    iget v1, v1, Lj3/b;->g:I

    if-eqz v1, :cond_407

    const/4 v2, 0x1

    if-ne v1, v2, :cond_420

    :cond_407
    iget-object v1, v0, Lj3/e;->m:Landroid/graphics/Bitmap;

    if-nez v1, :cond_411

    invoke-virtual/range {p0 .. p0}, Lj3/e;->h()Landroid/graphics/Bitmap;

    move-result-object v1

    iput-object v1, v0, Lj3/e;->m:Landroid/graphics/Bitmap;

    :cond_411
    iget-object v1, v0, Lj3/e;->m:Landroid/graphics/Bitmap;

    const/4 v3, 0x0

    iget v7, v0, Lj3/e;->r:I

    const/4 v5, 0x0

    const/4 v6, 0x0

    iget v8, v0, Lj3/e;->q:I

    move-object/from16 v2, v34

    move v4, v7

    invoke-virtual/range {v1 .. v8}, Landroid/graphics/Bitmap;->setPixels([IIIIIII)V

    :cond_420
    invoke-virtual/range {p0 .. p0}, Lj3/e;->h()Landroid/graphics/Bitmap;

    move-result-object v9

    const/4 v3, 0x0

    iget v7, v0, Lj3/e;->r:I

    const/4 v5, 0x0

    const/4 v6, 0x0

    iget v8, v0, Lj3/e;->q:I

    move-object v1, v9

    move-object/from16 v2, v34

    move v4, v7

    invoke-virtual/range {v1 .. v8}, Landroid/graphics/Bitmap;->setPixels([IIIIIII)V

    return-object v9
.end method
