b.smali

.class public final Lcom/sdk/plus/j/a/b;
.super Ljava/lang/Object;


# direct methods
.method private static a(Ljava/io/InputStream;Ljava/io/OutputStream;)V
    .registers 5

    const/16 v0, 0x400

    new-array v0, v0, [B

    :goto_4
    invoke-virtual {p0, v0}, Ljava/io/InputStream;->read([B)I

    move-result v1

    const/4 v2, -0x1

    if-eq v1, v2, :cond_10

    const/4 v2, 0x0

    invoke-virtual {p1, v0, v2, v1}, Ljava/io/OutputStream;->write([BII)V

    goto :goto_4

    :cond_10
    return-void
.end method

.method public static a([B)[B
    .registers 6

    const/4 v0, 0x0

    new-instance v2, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v2}, Ljava/io/ByteArrayOutputStream;-><init>()V

    :try_start_6
    new-instance v1, Ljava/util/zip/GZIPOutputStream;

    invoke-direct {v1, v2}, Ljava/util/zip/GZIPOutputStream;-><init>(Ljava/io/OutputStream;)V
    :try_end_b
    .catch Ljava/lang/Throwable; {:try_start_6 .. :try_end_b} :catch_1c
    .catchall {:try_start_6 .. :try_end_b} :catchall_29

    :try_start_b
    invoke-virtual {v1, p0}, Ljava/util/zip/GZIPOutputStream;->write([B)V

    invoke-virtual {v1}, Ljava/util/zip/GZIPOutputStream;->finish()V

    invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
    :try_end_14
    .catch Ljava/lang/Throwable; {:try_start_b .. :try_end_14} :catch_42
    .catchall {:try_start_b .. :try_end_14} :catchall_40

    move-result-object v0

    :try_start_15
    invoke-virtual {v1}, Ljava/util/zip/GZIPOutputStream;->close()V
    :try_end_18
    .catch Ljava/lang/Exception; {:try_start_15 .. :try_end_18} :catch_36

    :goto_18
    :try_start_18
    invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->close()V
    :try_end_1b
    .catch Ljava/lang/Exception; {:try_start_18 .. :try_end_1b} :catch_38

    :goto_1b
    return-object v0

    :catch_1c
    move-exception v1

    move-object v1, v0

    :goto_1e
    if-eqz v1, :cond_23

    :try_start_20
    invoke-virtual {v1}, Ljava/util/zip/GZIPOutputStream;->close()V
    :try_end_23
    .catch Ljava/lang/Exception; {:try_start_20 .. :try_end_23} :catch_3a

    :cond_23
    :goto_23
    :try_start_23
    invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->close()V
    :try_end_26
    .catch Ljava/lang/Exception; {:try_start_23 .. :try_end_26} :catch_27

    goto :goto_1b

    :catch_27
    move-exception v1

    goto :goto_1b

    :catchall_29
    move-exception v1

    move-object v4, v1

    move-object v1, v0

    move-object v0, v4

    :goto_2d
    if-eqz v1, :cond_32

    :try_start_2f
    invoke-virtual {v1}, Ljava/util/zip/GZIPOutputStream;->close()V
    :try_end_32
    .catch Ljava/lang/Exception; {:try_start_2f .. :try_end_32} :catch_3c

    :cond_32
    :goto_32
    :try_start_32
    invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->close()V
    :try_end_35
    .catch Ljava/lang/Exception; {:try_start_32 .. :try_end_35} :catch_3e

    :goto_35
    throw v0

    :catch_36
    move-exception v1

    goto :goto_18

    :catch_38
    move-exception v1

    goto :goto_1b

    :catch_3a
    move-exception v1

    goto :goto_23

    :catch_3c
    move-exception v1

    goto :goto_32

    :catch_3e
    move-exception v1

    goto :goto_35

    :catchall_40
    move-exception v0

    goto :goto_2d

    :catch_42
    move-exception v3

    goto :goto_1e
.end method

.method public static b([B)[B
    .registers 8

    const/4 v0, 0x0

    new-instance v3, Ljava/io/ByteArrayInputStream;

    invoke-direct {v3, p0}, Ljava/io/ByteArrayInputStream;-><init>([B)V

    :try_start_6
    new-instance v2, Ljava/util/zip/GZIPInputStream;

    invoke-direct {v2, v3}, Ljava/util/zip/GZIPInputStream;-><init>(Ljava/io/InputStream;)V
    :try_end_b
    .catch Ljava/lang/Throwable; {:try_start_6 .. :try_end_b} :catch_64
    .catchall {:try_start_6 .. :try_end_b} :catchall_3a

    :try_start_b
    new-instance v1, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v1}, Ljava/io/ByteArrayOutputStream;-><init>()V
    :try_end_10
    .catch Ljava/lang/Throwable; {:try_start_b .. :try_end_10} :catch_68
    .catchall {:try_start_b .. :try_end_10} :catchall_5d

    :goto_10
    :try_start_10
    invoke-virtual {v2}, Ljava/util/zip/GZIPInputStream;->read()I

    move-result v4

    const/4 v5, -0x1

    if-eq v4, v5, :cond_2a

    invoke-virtual {v1, v4}, Ljava/io/ByteArrayOutputStream;->write(I)V
    :try_end_1a
    .catch Ljava/lang/Throwable; {:try_start_10 .. :try_end_1a} :catch_1b
    .catchall {:try_start_10 .. :try_end_1a} :catchall_62

    goto :goto_10

    :catch_1b
    move-exception v4

    :goto_1c
    if-eqz v1, :cond_21

    :try_start_1e
    invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->close()V
    :try_end_21
    .catch Ljava/lang/Exception; {:try_start_1e .. :try_end_21} :catch_51

    :cond_21
    :goto_21
    if-eqz v2, :cond_26

    :try_start_23
    invoke-virtual {v2}, Ljava/util/zip/GZIPInputStream;->close()V
    :try_end_26
    .catch Ljava/lang/Exception; {:try_start_23 .. :try_end_26} :catch_53

    :cond_26
    :goto_26
    :try_start_26
    invoke-virtual {v3}, Ljava/io/ByteArrayInputStream;->close()V
    :try_end_29
    .catch Ljava/lang/Exception; {:try_start_26 .. :try_end_29} :catch_55

    :goto_29
    return-object v0

    :cond_2a
    :try_start_2a
    invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
    :try_end_2d
    .catch Ljava/lang/Throwable; {:try_start_2a .. :try_end_2d} :catch_1b
    .catchall {:try_start_2a .. :try_end_2d} :catchall_62

    move-result-object v0

    :try_start_2e
    invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->close()V
    :try_end_31
    .catch Ljava/lang/Exception; {:try_start_2e .. :try_end_31} :catch_4d

    :goto_31
    :try_start_31
    invoke-virtual {v2}, Ljava/util/zip/GZIPInputStream;->close()V
    :try_end_34
    .catch Ljava/lang/Exception; {:try_start_31 .. :try_end_34} :catch_4f

    :goto_34
    :try_start_34
    invoke-virtual {v3}, Ljava/io/ByteArrayInputStream;->close()V
    :try_end_37
    .catch Ljava/lang/Exception; {:try_start_34 .. :try_end_37} :catch_38

    goto :goto_29

    :catch_38
    move-exception v1

    goto :goto_29

    :catchall_3a
    move-exception v1

    move-object v2, v0

    move-object v6, v0

    move-object v0, v1

    move-object v1, v6

    :goto_3f
    if-eqz v1, :cond_44

    :try_start_41
    invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->close()V
    :try_end_44
    .catch Ljava/lang/Exception; {:try_start_41 .. :try_end_44} :catch_57

    :cond_44
    :goto_44
    if-eqz v2, :cond_49

    :try_start_46
    invoke-virtual {v2}, Ljava/util/zip/GZIPInputStream;->close()V
    :try_end_49
    .catch Ljava/lang/Exception; {:try_start_46 .. :try_end_49} :catch_59

    :cond_49
    :goto_49
    :try_start_49
    invoke-virtual {v3}, Ljava/io/ByteArrayInputStream;->close()V
    :try_end_4c
    .catch Ljava/lang/Exception; {:try_start_49 .. :try_end_4c} :catch_5b

    :goto_4c
    throw v0

    :catch_4d
    move-exception v1

    goto :goto_31

    :catch_4f
    move-exception v1

    goto :goto_34

    :catch_51
    move-exception v1

    goto :goto_21

    :catch_53
    move-exception v1

    goto :goto_26

    :catch_55
    move-exception v1

    goto :goto_29

    :catch_57
    move-exception v1

    goto :goto_44

    :catch_59
    move-exception v1

    goto :goto_49

    :catch_5b
    move-exception v1

    goto :goto_4c

    :catchall_5d
    move-exception v1

    move-object v6, v1

    move-object v1, v0

    move-object v0, v6

    goto :goto_3f

    :catchall_62
    move-exception v0

    goto :goto_3f

    :catch_64
    move-exception v1

    move-object v1, v0

    move-object v2, v0

    goto :goto_1c

    :catch_68
    move-exception v1

    move-object v1, v0

    goto :goto_1c
.end method

.method public static c([B)[B
    .registers 6

    new-instance v1, Ljava/io/ByteArrayInputStream;

    invoke-direct {v1, p0}, Ljava/io/ByteArrayInputStream;-><init>([B)V

    new-instance v2, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v2}, Ljava/io/ByteArrayOutputStream;-><init>()V

    :try_start_a
    new-instance v0, Lcom/sdk/plus/j/a/a;

    invoke-direct {v0, v2}, Lcom/sdk/plus/j/a/a;-><init>(Ljava/io/OutputStream;)V

    invoke-static {v1, v0}, Lcom/sdk/plus/j/a/b;->a(Ljava/io/InputStream;Ljava/io/OutputStream;)V

    invoke-virtual {v0}, Lcom/sdk/plus/j/a/a;->a()V
    :try_end_15
    .catch Ljava/lang/Throwable; {:try_start_a .. :try_end_15} :catch_20
    .catchall {:try_start_a .. :try_end_15} :catchall_29

    :try_start_15
    invoke-virtual {v1}, Ljava/io/ByteArrayInputStream;->close()V
    :try_end_18
    .catch Ljava/lang/Throwable; {:try_start_15 .. :try_end_18} :catch_31

    :goto_18
    :try_start_18
    invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->close()V
    :try_end_1b
    .catch Ljava/lang/Throwable; {:try_start_18 .. :try_end_1b} :catch_33

    :goto_1b
    invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v0

    return-object v0

    :catch_20
    move-exception v0

    :try_start_21
    new-instance v3, Ljava/lang/RuntimeException;

    const-string v4, "Unexpected I/O error"

    invoke-direct {v3, v4, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    throw v3
    :try_end_29
    .catchall {:try_start_21 .. :try_end_29} :catchall_29

    :catchall_29
    move-exception v0

    :try_start_2a
    invoke-virtual {v1}, Ljava/io/ByteArrayInputStream;->close()V
    :try_end_2d
    .catch Ljava/lang/Throwable; {:try_start_2a .. :try_end_2d} :catch_35

    :goto_2d
    :try_start_2d
    invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->close()V
    :try_end_30
    .catch Ljava/lang/Throwable; {:try_start_2d .. :try_end_30} :catch_37

    :goto_30
    throw v0

    :catch_31
    move-exception v0

    goto :goto_18

    :catch_33
    move-exception v0

    goto :goto_1b

    :catch_35
    move-exception v1

    goto :goto_2d

    :catch_37
    move-exception v1

    goto :goto_30
.end method