.class public Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;
.super Ljava/lang/Object;
.source "KTXTextureData.java"

# interfaces
.implements Lcom/badlogic/gdx/graphics/CubemapData;
.implements Lcom/badlogic/gdx/graphics/TextureData;


# instance fields
.field private a:Lcom/badlogic/gdx/files/FileHandle;

.field private b:I

.field private c:I

.field private d:I

.field private e:I

.field private f:I

.field private g:I

.field private h:I

.field private i:I

.field private j:I

.field private k:I

.field private l:I

.field private m:I

.field private n:Ljava/nio/ByteBuffer;

.field private o:Z


# direct methods
.method public constructor <init>(Lcom/badlogic/gdx/files/FileHandle;Z)V
    .locals 1

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

    const/4 v0, -0x1

    .line 43
    iput v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->g:I

    .line 44
    iput v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->h:I

    .line 45
    iput v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->i:I

    .line 58
    iput-object p1, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->a:Lcom/badlogic/gdx/files/FileHandle;

    .line 59
    iput-boolean p2, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->o:Z

    return-void
.end method


# virtual methods
.method public a(I)V
    .locals 28

    move-object/from16 v0, p0

    move/from16 v1, p1

    .line 158
    iget-object v2, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

    if-eqz v2, :cond_1e

    const/16 v2, 0x10

    .line 159
    invoke-static {v2}, Lcom/badlogic/gdx/utils/BufferUtils;->c(I)Ljava/nio/IntBuffer;

    move-result-object v2

    .line 163
    iget v3, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->b:I

    const/4 v4, 0x0

    const/4 v5, 0x1

    if-eqz v3, :cond_1

    iget v3, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->d:I

    if-nez v3, :cond_0

    goto :goto_0

    :cond_0
    const/4 v3, 0x0

    goto :goto_1

    .line 164
    :cond_1
    :goto_0
    iget v3, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->b:I

    iget v6, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->d:I

    add-int/2addr v3, v6

    if-nez v3, :cond_1d

    const/4 v3, 0x1

    .line 171
    :goto_1
    iget v6, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->h:I

    const/16 v7, 0xde1

    const/4 v8, 0x2

    const/16 v9, 0x1234

    if-lez v6, :cond_2

    const/4 v6, 0x2

    const/16 v10, 0xde1

    goto :goto_2

    :cond_2
    const/4 v6, 0x1

    const/16 v10, 0x1234

    .line 175
    :goto_2
    iget v11, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->i:I

    if-lez v11, :cond_3

    const/4 v6, 0x3

    const/16 v10, 0x1234

    .line 179
    :cond_3
    iget v11, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->k:I

    const v13, 0x8513

    const/4 v14, 0x6

    if-ne v11, v14, :cond_5

    if-ne v6, v8, :cond_4

    const v10, 0x8513

    goto :goto_3

    .line 183
    :cond_4
    new-instance v1, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v2, "cube map needs 2D faces"

    invoke-direct {v1, v2}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v1

    .line 184
    :cond_5
    iget v11, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->k:I

    if-ne v11, v5, :cond_1c

    .line 187
    :goto_3
    iget v11, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->j:I

    if-lez v11, :cond_8

    if-ne v10, v9, :cond_6

    goto :goto_4

    :cond_6
    if-ne v10, v7, :cond_7

    :goto_4
    add-int/lit8 v6, v6, 0x1

    const/16 v10, 0x1234

    goto :goto_5

    .line 193
    :cond_7
    new-instance v1, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v2, "No API for 3D and cube arrays yet"

    invoke-direct {v1, v2}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v1

    :cond_8
    :goto_5
    if-eq v10, v9, :cond_1b

    .line 200
    iget v9, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->k:I

    const v11, 0x851a

    const/4 v15, -0x1

    const v12, 0x8515

    if-ne v9, v14, :cond_a

    if-eq v1, v13, :cond_a

    if-gt v12, v1, :cond_9

    if-gt v1, v11, :cond_9

    sub-int/2addr v1, v12

    goto :goto_8

    .line 203
    :cond_9
    new-instance v1, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v2, "You must specify either GL_TEXTURE_CUBE_MAP to bind all 6 faces of the cube or the requested face GL_TEXTURE_CUBE_MAP_POSITIVE_X and followings."

    invoke-direct {v1, v2}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v1

    .line 207
    :cond_a
    iget v9, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->k:I

    if-ne v9, v14, :cond_b

    if-ne v1, v13, :cond_b

    goto :goto_7

    :cond_b
    if-eq v1, v10, :cond_d

    if-gt v12, v1, :cond_c

    if-gt v1, v11, :cond_c

    if-ne v1, v7, :cond_c

    goto :goto_6

    .line 214
    :cond_c
    new-instance v2, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    new-instance v3, Ljava/lang/StringBuilder;

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

    const-string v4, "Invalid target requested : 0x"

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

    invoke-static/range {p1 .. p1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;

    move-result-object v1

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

    const-string v1, ", expecting : 0x"

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

    .line 215
    invoke-static {v10}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;

    move-result-object v1

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

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

    move-result-object v1

    invoke-direct {v2, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v2

    :cond_d
    :goto_6
    move v12, v1

    :goto_7
    const/4 v1, -0x1

    .line 219
    :goto_8
    sget-object v7, Lcom/badlogic/gdx/Gdx;->e:Lcom/badlogic/gdx/graphics/GL20;

    const/16 v9, 0xcf5

    invoke-interface {v7, v9, v2}, Lcom/badlogic/gdx/graphics/GL20;->glGetIntegerv(ILjava/nio/IntBuffer;)V

    .line 220
    invoke-virtual {v2, v4}, Ljava/nio/IntBuffer;->get(I)I

    move-result v2

    const/4 v7, 0x4

    if-eq v2, v7, :cond_e

    .line 221
    sget-object v10, Lcom/badlogic/gdx/Gdx;->e:Lcom/badlogic/gdx/graphics/GL20;

    invoke-interface {v10, v9, v7}, Lcom/badlogic/gdx/graphics/GL20;->glPixelStorei(II)V

    .line 222
    :cond_e
    iget v10, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->e:I

    .line 223
    iget v11, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->d:I

    .line 224
    iget v13, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->m:I

    move v14, v13

    const/4 v13, 0x0

    .line 225
    :goto_9
    iget v9, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->l:I

    if-ge v13, v9, :cond_18

    .line 226
    iget v9, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->g:I

    shr-int/2addr v9, v13

    invoke-static {v5, v9}, Ljava/lang/Math;->max(II)I

    move-result v9

    .line 227
    iget v4, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->h:I

    shr-int/2addr v4, v13

    invoke-static {v5, v4}, Ljava/lang/Math;->max(II)I

    move-result v4

    .line 228
    iget v8, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->i:I

    shr-int/2addr v8, v13

    invoke-static {v5, v8}, Ljava/lang/Math;->max(II)I

    .line 229
    iget-object v8, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    .line 230
    iget-object v8, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v8

    add-int/lit8 v16, v8, 0x3

    and-int/lit8 v5, v16, -0x4

    add-int/2addr v14, v7

    move/from16 v16, v4

    const/4 v4, 0x0

    .line 233
    :goto_a
    iget v7, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->k:I

    if-ge v4, v7, :cond_17

    .line 234
    iget-object v7, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    add-int/2addr v14, v5

    if-eq v1, v15, :cond_f

    if-eq v1, v4, :cond_f

    :goto_b
    move/from16 v26, v1

    move/from16 v27, v3

    const/4 v1, 0x3

    const/4 v3, 0x0

    goto/16 :goto_e

    .line 237
    :cond_f
    iget-object v7, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

    invoke-virtual {v7}, Ljava/nio/ByteBuffer;->slice()Ljava/nio/ByteBuffer;

    move-result-object v7

    .line 238
    invoke-virtual {v7, v5}, Ljava/nio/ByteBuffer;->limit(I)Ljava/nio/Buffer;

    const/4 v15, 0x1

    if-ne v6, v15, :cond_10

    goto :goto_b

    :cond_10
    const/4 v15, 0x2

    if-ne v6, v15, :cond_15

    .line 246
    iget v15, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->j:I

    if-lez v15, :cond_11

    iget v15, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->j:I

    goto :goto_c

    :cond_11
    move/from16 v15, v16

    :goto_c
    if-eqz v3, :cond_14

    move/from16 v26, v1

    .line 248
    sget v1, Lcom/badlogic/gdx/graphics/glutils/ETC1;->b:I

    if-ne v10, v1, :cond_13

    .line 249
    sget-object v1, Lcom/badlogic/gdx/Gdx;->b:Lcom/badlogic/gdx/Graphics;

    move/from16 v27, v3

    const-string v3, "GL_OES_compressed_ETC1_RGB8_texture"

    invoke-interface {v1, v3}, Lcom/badlogic/gdx/Graphics;->a(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_12

    .line 250
    new-instance v1, Lcom/badlogic/gdx/graphics/glutils/ETC1$ETC1Data;

    const/4 v3, 0x0

    invoke-direct {v1, v9, v15, v7, v3}, Lcom/badlogic/gdx/graphics/glutils/ETC1$ETC1Data;-><init>(IILjava/nio/ByteBuffer;I)V

    .line 251
    sget-object v7, Lcom/badlogic/gdx/graphics/Pixmap$Format;->RGB888:Lcom/badlogic/gdx/graphics/Pixmap$Format;

    invoke-static {v1, v7}, Lcom/badlogic/gdx/graphics/glutils/ETC1;->a(Lcom/badlogic/gdx/graphics/glutils/ETC1$ETC1Data;Lcom/badlogic/gdx/graphics/Pixmap$Format;)Lcom/badlogic/gdx/graphics/Pixmap;

    move-result-object v1

    .line 252
    sget-object v16, Lcom/badlogic/gdx/Gdx;->e:Lcom/badlogic/gdx/graphics/GL20;

    add-int v17, v12, v4

    invoke-virtual {v1}, Lcom/badlogic/gdx/graphics/Pixmap;->f()I

    move-result v19

    invoke-virtual {v1}, Lcom/badlogic/gdx/graphics/Pixmap;->b()I

    move-result v20

    .line 253
    invoke-virtual {v1}, Lcom/badlogic/gdx/graphics/Pixmap;->d()I

    move-result v21

    const/16 v22, 0x0

    invoke-virtual {v1}, Lcom/badlogic/gdx/graphics/Pixmap;->e()I

    move-result v23

    invoke-virtual {v1}, Lcom/badlogic/gdx/graphics/Pixmap;->g()I

    move-result v24

    invoke-virtual {v1}, Lcom/badlogic/gdx/graphics/Pixmap;->h()Ljava/nio/ByteBuffer;

    move-result-object v25

    move/from16 v18, v13

    .line 252
    invoke-interface/range {v16 .. v25}, Lcom/badlogic/gdx/graphics/GL20;->glTexImage2D(IIIIIIIILjava/nio/Buffer;)V

    .line 254
    invoke-virtual {v1}, Lcom/badlogic/gdx/graphics/Pixmap;->c()V

    goto :goto_d

    :cond_12
    const/4 v3, 0x0

    .line 256
    sget-object v16, Lcom/badlogic/gdx/Gdx;->e:Lcom/badlogic/gdx/graphics/GL20;

    add-int v17, v12, v4

    const/16 v22, 0x0

    move/from16 v18, v13

    move/from16 v19, v10

    move/from16 v20, v9

    move/from16 v21, v15

    move/from16 v23, v8

    move-object/from16 v24, v7

    invoke-interface/range {v16 .. v24}, Lcom/badlogic/gdx/graphics/GL20;->glCompressedTexImage2D(IIIIIIILjava/nio/Buffer;)V

    goto :goto_d

    :cond_13
    move/from16 v27, v3

    const/4 v3, 0x0

    .line 261
    sget-object v16, Lcom/badlogic/gdx/Gdx;->e:Lcom/badlogic/gdx/graphics/GL20;

    add-int v17, v12, v4

    const/16 v22, 0x0

    move/from16 v18, v13

    move/from16 v19, v10

    move/from16 v20, v9

    move/from16 v21, v15

    move/from16 v23, v8

    move-object/from16 v24, v7

    invoke-interface/range {v16 .. v24}, Lcom/badlogic/gdx/graphics/GL20;->glCompressedTexImage2D(IIIIIIILjava/nio/Buffer;)V

    goto :goto_d

    :cond_14
    move/from16 v26, v1

    move/from16 v27, v3

    const/4 v3, 0x0

    .line 265
    sget-object v16, Lcom/badlogic/gdx/Gdx;->e:Lcom/badlogic/gdx/graphics/GL20;

    add-int v17, v12, v4

    const/16 v22, 0x0

    iget v1, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->b:I

    move/from16 v18, v13

    move/from16 v19, v10

    move/from16 v20, v9

    move/from16 v21, v15

    move/from16 v23, v11

    move/from16 v24, v1

    move-object/from16 v25, v7

    invoke-interface/range {v16 .. v25}, Lcom/badlogic/gdx/graphics/GL20;->glTexImage2D(IIIIIIIILjava/nio/Buffer;)V

    :goto_d
    move/from16 v16, v15

    const/4 v1, 0x3

    goto :goto_e

    :cond_15
    move/from16 v26, v1

    move/from16 v27, v3

    const/4 v1, 0x3

    const/4 v3, 0x0

    if-ne v6, v1, :cond_16

    .line 267
    iget v7, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->j:I

    if-lez v7, :cond_16

    iget v7, v0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->j:I

    :cond_16
    :goto_e
    add-int/lit8 v4, v4, 0x1

    move/from16 v1, v26

    move/from16 v3, v27

    const/4 v15, -0x1

    goto/16 :goto_a

    :cond_17
    move/from16 v26, v1

    move/from16 v27, v3

    const/4 v1, 0x3

    const/4 v3, 0x0

    add-int/lit8 v13, v13, 0x1

    move/from16 v1, v26

    move/from16 v3, v27

    const/4 v4, 0x0

    const/4 v5, 0x1

    const/4 v7, 0x4

    const/4 v8, 0x2

    const/4 v15, -0x1

    goto/16 :goto_9

    :cond_18
    const/4 v4, 0x4

    if-eq v2, v4, :cond_19

    .line 277
    sget-object v1, Lcom/badlogic/gdx/Gdx;->e:Lcom/badlogic/gdx/graphics/GL20;

    const/16 v3, 0xcf5

    invoke-interface {v1, v3, v2}, Lcom/badlogic/gdx/graphics/GL20;->glPixelStorei(II)V

    .line 278
    :cond_19
    invoke-virtual/range {p0 .. p0}, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->k()Z

    move-result v1

    if-eqz v1, :cond_1a

    sget-object v1, Lcom/badlogic/gdx/Gdx;->e:Lcom/badlogic/gdx/graphics/GL20;

    invoke-interface {v1, v12}, Lcom/badlogic/gdx/graphics/GL20;->glGenerateMipmap(I)V

    .line 281
    :cond_1a
    invoke-virtual/range {p0 .. p0}, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->l()V

    return-void

    .line 197
    :cond_1b
    new-instance v1, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v2, "Unsupported texture format (only 2D texture are supported in LibGdx for the time being)"

    invoke-direct {v1, v2}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v1

    .line 185
    :cond_1c
    new-instance v1, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v2, "numberOfFaces must be either 1 or 6"

    invoke-direct {v1, v2}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v1

    .line 164
    :cond_1d
    new-instance v1, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v2, "either both or none of glType, glFormat must be zero"

    invoke-direct {v1, v2}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v1

    .line 158
    :cond_1e
    new-instance v1, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v2, "Call prepare() before calling consumeCompressedData()"

    invoke-direct {v1, v2}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v1
.end method

.method public a()Z
    .locals 1

    .line 69
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public b()V
    .locals 7

    .line 74
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

    if-nez v0, :cond_16

    .line 75
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->a:Lcom/badlogic/gdx/files/FileHandle;

    if-eqz v0, :cond_15

    .line 77
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->a:Lcom/badlogic/gdx/files/FileHandle;

    invoke-virtual {v0}, Lcom/badlogic/gdx/files/FileHandle;->h()Ljava/lang/String;

    move-result-object v0

    const-string v1, ".zktx"

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_1

    const/16 v0, 0x2800

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

    const/4 v2, 0x0

    .line 81
    :try_start_0
    new-instance v3, Ljava/io/DataInputStream;

    new-instance v4, Ljava/io/BufferedInputStream;

    new-instance v5, Ljava/util/zip/GZIPInputStream;

    iget-object v6, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->a:Lcom/badlogic/gdx/files/FileHandle;

    invoke-virtual {v6}, Lcom/badlogic/gdx/files/FileHandle;->b()Ljava/io/InputStream;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/util/zip/GZIPInputStream;-><init>(Ljava/io/InputStream;)V

    invoke-direct {v4, v5}, Ljava/io/BufferedInputStream;-><init>(Ljava/io/InputStream;)V

    invoke-direct {v3, v4}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 82
    :try_start_1
    invoke-virtual {v3}, Ljava/io/DataInputStream;->readInt()I

    move-result v2

    .line 83
    invoke-static {v2}, Lcom/badlogic/gdx/utils/BufferUtils;->d(I)Ljava/nio/ByteBuffer;

    move-result-object v2

    iput-object v2, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

    .line 85
    :goto_0
    invoke-virtual {v3, v0}, Ljava/io/DataInputStream;->read([B)I

    move-result v2

    const/4 v4, -0x1

    if-eq v2, v4, :cond_0

    .line 86
    iget-object v4, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

    invoke-virtual {v4, v0, v1, v2}, Ljava/nio/ByteBuffer;->put([BII)Ljava/nio/ByteBuffer;

    goto :goto_0

    .line 87
    :cond_0
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    .line 88
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

    iget-object v2, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v2

    invoke-virtual {v0, v2}, Ljava/nio/ByteBuffer;->limit(I)Ljava/nio/Buffer;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 92
    invoke-static {v3}, Lcom/badlogic/gdx/utils/StreamUtils;->a(Ljava/io/Closeable;)V

    goto :goto_3

    :catchall_0
    move-exception v0

    move-object v2, v3

    goto :goto_2

    :catch_0
    move-exception v0

    move-object v2, v3

    goto :goto_1

    :catchall_1
    move-exception v0

    goto :goto_2

    :catch_1
    move-exception v0

    .line 90
    :goto_1
    :try_start_2
    new-instance v1, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    new-instance v3, Ljava/lang/StringBuilder;

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

    const-string v4, "Couldn\'t load zktx file \'"

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

    iget-object v4, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->a:Lcom/badlogic/gdx/files/FileHandle;

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

    const-string v4, "\'"

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

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

    move-result-object v3

    invoke-direct {v1, v3, v0}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    throw v1
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    .line 92
    :goto_2
    invoke-static {v2}, Lcom/badlogic/gdx/utils/StreamUtils;->a(Ljava/io/Closeable;)V

    .line 93
    throw v0

    .line 95
    :cond_1
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->a:Lcom/badlogic/gdx/files/FileHandle;

    invoke-virtual {v0}, Lcom/badlogic/gdx/files/FileHandle;->n()[B

    move-result-object v0

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

    move-result-object v0

    iput-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

    .line 97
    :goto_3
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    const/16 v2, -0x55

    if-ne v0, v2, :cond_14

    .line 98
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    const/16 v2, 0x4b

    if-ne v0, v2, :cond_13

    .line 99
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    const/16 v2, 0x54

    if-ne v0, v2, :cond_12

    .line 100
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    const/16 v2, 0x58

    if-ne v0, v2, :cond_11

    .line 101
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    const/16 v2, 0x20

    if-ne v0, v2, :cond_10

    .line 102
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    const/16 v2, 0x31

    if-ne v0, v2, :cond_f

    .line 103
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    if-ne v0, v2, :cond_e

    .line 104
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    const/16 v2, -0x45

    if-ne v0, v2, :cond_d

    .line 105
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    const/16 v2, 0xd

    if-ne v0, v2, :cond_c

    .line 106
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    const/16 v2, 0xa

    if-ne v0, v2, :cond_b

    .line 107
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    const/16 v3, 0x1a

    if-ne v0, v3, :cond_a

    .line 108
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    if-ne v0, v2, :cond_9

    .line 109
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    const v2, 0x4030201

    if-eq v0, v2, :cond_3

    const v3, 0x1020304

    if-ne v0, v3, :cond_2

    goto :goto_4

    .line 110
    :cond_2
    new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v1, "Invalid KTX Header"

    invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_3
    :goto_4
    if-eq v0, v2, :cond_5

    .line 112
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

    iget-object v2, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result-object v2

    sget-object v3, Ljava/nio/ByteOrder;->BIG_ENDIAN:Ljava/nio/ByteOrder;

    if-ne v2, v3, :cond_4

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

    goto :goto_5

    :cond_4
    sget-object v2, Ljava/nio/ByteOrder;->BIG_ENDIAN:Ljava/nio/ByteOrder;

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

    .line 113
    :cond_5
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    iput v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->b:I

    .line 114
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    iput v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->c:I

    .line 115
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    iput v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->d:I

    .line 116
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    iput v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->e:I

    .line 117
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    iput v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->f:I

    .line 118
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    iput v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->g:I

    .line 119
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    iput v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->h:I

    .line 120
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    iput v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->i:I

    .line 121
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    iput v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->j:I

    .line 122
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    iput v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->k:I

    .line 123
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    iput v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->l:I

    .line 124
    iget v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->l:I

    if-nez v0, :cond_6

    const/4 v0, 0x1

    .line 125
    iput v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->l:I

    .line 126
    iput-boolean v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->o:Z

    .line 128
    :cond_6
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v0

    .line 129
    iget-object v2, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v2

    add-int/2addr v2, v0

    iput v2, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->m:I

    .line 130
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->isDirect()Z

    move-result v0

    if-nez v0, :cond_8

    .line 131
    iget v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->m:I

    move v2, v0

    const/4 v0, 0x0

    .line 132
    :goto_6
    iget v3, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->l:I

    if-ge v0, v3, :cond_7

    .line 133
    iget-object v3, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result v3

    add-int/lit8 v3, v3, 0x3

    and-int/lit8 v3, v3, -0x4

    .line 135
    iget v4, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->k:I

    mul-int v3, v3, v4

    add-int/lit8 v3, v3, 0x4

    add-int/2addr v2, v3

    add-int/lit8 v0, v0, 0x1

    goto :goto_6

    .line 137
    :cond_7
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    .line 138
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    .line 139
    invoke-static {v2}, Lcom/badlogic/gdx/utils/BufferUtils;->d(I)Ljava/nio/ByteBuffer;

    move-result-object v0

    .line 140
    iget-object v1, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

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

    move-result-object v1

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

    .line 141
    iget-object v1, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

    invoke-virtual {v0, v1}, Ljava/nio/ByteBuffer;->put(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;

    .line 142
    iput-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

    :cond_8
    return-void

    .line 108
    :cond_9
    new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v1, "Invalid KTX Header"

    invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 107
    :cond_a
    new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v1, "Invalid KTX Header"

    invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 106
    :cond_b
    new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v1, "Invalid KTX Header"

    invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 105
    :cond_c
    new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v1, "Invalid KTX Header"

    invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 104
    :cond_d
    new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v1, "Invalid KTX Header"

    invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 103
    :cond_e
    new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v1, "Invalid KTX Header"

    invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 102
    :cond_f
    new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v1, "Invalid KTX Header"

    invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 101
    :cond_10
    new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v1, "Invalid KTX Header"

    invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 100
    :cond_11
    new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v1, "Invalid KTX Header"

    invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 99
    :cond_12
    new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v1, "Invalid KTX Header"

    invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 98
    :cond_13
    new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v1, "Invalid KTX Header"

    invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 97
    :cond_14
    new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v1, "Invalid KTX Header"

    invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 75
    :cond_15
    new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v1, "Need a file to load from"

    invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 74
    :cond_16
    new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v1, "Already prepared"

    invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public c()V
    .locals 1

    const v0, 0x8513

    .line 153
    invoke-virtual {p0, v0}, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->a(I)V

    return-void
.end method

.method public d()I
    .locals 1

    .line 301
    iget v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->g:I

    return v0
.end method

.method public e()I
    .locals 1

    .line 306
    iget v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->h:I

    return v0
.end method

.method public f()Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method public g()Lcom/badlogic/gdx/graphics/TextureData$TextureDataType;
    .locals 1

    .line 64
    sget-object v0, Lcom/badlogic/gdx/graphics/TextureData$TextureDataType;->Custom:Lcom/badlogic/gdx/graphics/TextureData$TextureDataType;

    return-object v0
.end method

.method public h()Lcom/badlogic/gdx/graphics/Pixmap;
    .locals 2

    .line 291
    new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v1, "This TextureData implementation does not return a Pixmap"

    invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public i()Z
    .locals 2

    .line 296
    new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v1, "This TextureData implementation does not return a Pixmap"

    invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public j()Lcom/badlogic/gdx/graphics/Pixmap$Format;
    .locals 2

    .line 346
    new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;

    const-string v1, "This TextureData implementation directly handles texture formats."

    invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public k()Z
    .locals 1

    .line 351
    iget-boolean v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->o:Z

    return v0
.end method

.method public l()V
    .locals 1

    .line 285
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

    invoke-static {v0}, Lcom/badlogic/gdx/utils/BufferUtils;->a(Ljava/nio/ByteBuffer;)V

    :cond_0
    const/4 v0, 0x0

    .line 286
    iput-object v0, p0, Lcom/badlogic/gdx/graphics/glutils/KTXTextureData;->n:Ljava/nio/ByteBuffer;

    return-void
.end method
