817 lines
16 KiB
Smali
817 lines
16 KiB
Smali
.class public Lcom/facebook/imageutils/WebpUtil;
|
|
.super Ljava/lang/Object;
|
|
.source "WebpUtil.java"
|
|
|
|
|
|
# direct methods
|
|
.method public static a(Ljava/io/InputStream;)Landroid/util/Pair;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/io/InputStream;",
|
|
")",
|
|
"Landroid/util/Pair<",
|
|
"Ljava/lang/Integer;",
|
|
"Ljava/lang/Integer;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x4
|
|
|
|
.line 48
|
|
new-array v0, v0, [B
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 50
|
|
:try_start_0
|
|
invoke-virtual {p0, v0}, Ljava/io/InputStream;->read([B)I
|
|
|
|
const-string v2, "RIFF"
|
|
|
|
.line 52
|
|
invoke-static {v0, v2}, Lcom/facebook/imageutils/WebpUtil;->a([BLjava/lang/String;)Z
|
|
|
|
move-result v2
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_5
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
.line 77
|
|
:try_start_1
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->close()V
|
|
:try_end_1
|
|
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
.line 79
|
|
invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
|
|
|
|
:cond_0
|
|
:goto_0
|
|
return-object v1
|
|
|
|
.line 56
|
|
:cond_1
|
|
:try_start_2
|
|
invoke-static {p0}, Lcom/facebook/imageutils/WebpUtil;->f(Ljava/io/InputStream;)I
|
|
|
|
.line 58
|
|
invoke-virtual {p0, v0}, Ljava/io/InputStream;->read([B)I
|
|
|
|
const-string v2, "WEBP"
|
|
|
|
.line 59
|
|
invoke-static {v0, v2}, Lcom/facebook/imageutils/WebpUtil;->a([BLjava/lang/String;)Z
|
|
|
|
move-result v2
|
|
:try_end_2
|
|
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_5
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
if-nez v2, :cond_3
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
.line 77
|
|
:try_start_3
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->close()V
|
|
:try_end_3
|
|
.catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_1
|
|
|
|
goto :goto_1
|
|
|
|
:catch_1
|
|
move-exception p0
|
|
|
|
.line 79
|
|
invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
|
|
|
|
:cond_2
|
|
:goto_1
|
|
return-object v1
|
|
|
|
.line 63
|
|
:cond_3
|
|
:try_start_4
|
|
invoke-virtual {p0, v0}, Ljava/io/InputStream;->read([B)I
|
|
|
|
.line 64
|
|
invoke-static {v0}, Lcom/facebook/imageutils/WebpUtil;->a([B)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v2, "VP8 "
|
|
|
|
.line 65
|
|
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
.line 66
|
|
invoke-static {p0}, Lcom/facebook/imageutils/WebpUtil;->c(Ljava/io/InputStream;)Landroid/util/Pair;
|
|
|
|
move-result-object v0
|
|
:try_end_4
|
|
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_5
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_0
|
|
|
|
if-eqz p0, :cond_4
|
|
|
|
.line 77
|
|
:try_start_5
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->close()V
|
|
:try_end_5
|
|
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_2
|
|
|
|
goto :goto_2
|
|
|
|
:catch_2
|
|
move-exception p0
|
|
|
|
.line 79
|
|
invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
|
|
|
|
:cond_4
|
|
:goto_2
|
|
return-object v0
|
|
|
|
:cond_5
|
|
:try_start_6
|
|
const-string v2, "VP8L"
|
|
|
|
.line 67
|
|
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
.line 68
|
|
invoke-static {p0}, Lcom/facebook/imageutils/WebpUtil;->d(Ljava/io/InputStream;)Landroid/util/Pair;
|
|
|
|
move-result-object v0
|
|
:try_end_6
|
|
.catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_5
|
|
.catchall {:try_start_6 .. :try_end_6} :catchall_0
|
|
|
|
if-eqz p0, :cond_6
|
|
|
|
.line 77
|
|
:try_start_7
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->close()V
|
|
:try_end_7
|
|
.catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_3
|
|
|
|
goto :goto_3
|
|
|
|
:catch_3
|
|
move-exception p0
|
|
|
|
.line 79
|
|
invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
|
|
|
|
:cond_6
|
|
:goto_3
|
|
return-object v0
|
|
|
|
:cond_7
|
|
:try_start_8
|
|
const-string v2, "VP8X"
|
|
|
|
.line 69
|
|
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
.line 70
|
|
invoke-static {p0}, Lcom/facebook/imageutils/WebpUtil;->e(Ljava/io/InputStream;)Landroid/util/Pair;
|
|
|
|
move-result-object v0
|
|
:try_end_8
|
|
.catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_5
|
|
.catchall {:try_start_8 .. :try_end_8} :catchall_0
|
|
|
|
if-eqz p0, :cond_8
|
|
|
|
.line 77
|
|
:try_start_9
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->close()V
|
|
:try_end_9
|
|
.catch Ljava/io/IOException; {:try_start_9 .. :try_end_9} :catch_4
|
|
|
|
goto :goto_4
|
|
|
|
:catch_4
|
|
move-exception p0
|
|
|
|
.line 79
|
|
invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
|
|
|
|
:cond_8
|
|
:goto_4
|
|
return-object v0
|
|
|
|
:cond_9
|
|
if-eqz p0, :cond_a
|
|
|
|
.line 77
|
|
:try_start_a
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->close()V
|
|
:try_end_a
|
|
.catch Ljava/io/IOException; {:try_start_a .. :try_end_a} :catch_6
|
|
|
|
goto :goto_5
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
goto :goto_6
|
|
|
|
:catch_5
|
|
move-exception v0
|
|
|
|
.line 73
|
|
:try_start_b
|
|
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
|
|
:try_end_b
|
|
.catchall {:try_start_b .. :try_end_b} :catchall_0
|
|
|
|
if-eqz p0, :cond_a
|
|
|
|
.line 77
|
|
:try_start_c
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->close()V
|
|
:try_end_c
|
|
.catch Ljava/io/IOException; {:try_start_c .. :try_end_c} :catch_6
|
|
|
|
goto :goto_5
|
|
|
|
:catch_6
|
|
move-exception p0
|
|
|
|
.line 79
|
|
invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
|
|
|
|
:cond_a
|
|
:goto_5
|
|
return-object v1
|
|
|
|
:goto_6
|
|
if-eqz p0, :cond_b
|
|
|
|
.line 77
|
|
:try_start_d
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->close()V
|
|
:try_end_d
|
|
.catch Ljava/io/IOException; {:try_start_d .. :try_end_d} :catch_7
|
|
|
|
goto :goto_7
|
|
|
|
:catch_7
|
|
move-exception p0
|
|
|
|
.line 79
|
|
invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
|
|
|
|
.line 82
|
|
:cond_b
|
|
:goto_7
|
|
throw v0
|
|
.end method
|
|
|
|
.method private static a([B)Ljava/lang/String;
|
|
.locals 3
|
|
|
|
.line 168
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 169
|
|
:goto_0
|
|
array-length v2, p0
|
|
|
|
if-ge v1, v2, :cond_0
|
|
|
|
.line 170
|
|
aget-byte v2, p0, v1
|
|
|
|
int-to-char v2, v2
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 172
|
|
:cond_0
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private static a([BLjava/lang/String;)Z
|
|
.locals 4
|
|
|
|
.line 156
|
|
array-length v0, p0
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
return v2
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 159
|
|
:goto_0
|
|
array-length v1, p0
|
|
|
|
if-ge v0, v1, :cond_2
|
|
|
|
.line 160
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v1
|
|
|
|
aget-byte v3, p0, v0
|
|
|
|
if-eq v1, v3, :cond_1
|
|
|
|
return v2
|
|
|
|
:cond_1
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static b(Ljava/io/InputStream;)I
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 187
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
|
|
|
move-result v0
|
|
|
|
int-to-byte v0, v0
|
|
|
|
.line 188
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
|
|
|
move-result p0
|
|
|
|
int-to-byte p0, p0
|
|
|
|
shl-int/lit8 p0, p0, 0x8
|
|
|
|
const v1, 0xff00
|
|
|
|
and-int/2addr p0, v1
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
or-int/2addr p0, v0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method private static c(Ljava/io/InputStream;)Landroid/util/Pair;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/io/InputStream;",
|
|
")",
|
|
"Landroid/util/Pair<",
|
|
"Ljava/lang/Integer;",
|
|
"Ljava/lang/Integer;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-wide/16 v0, 0x7
|
|
|
|
.line 96
|
|
invoke-virtual {p0, v0, v1}, Ljava/io/InputStream;->skip(J)J
|
|
|
|
.line 98
|
|
invoke-static {p0}, Lcom/facebook/imageutils/WebpUtil;->h(Ljava/io/InputStream;)S
|
|
|
|
move-result v0
|
|
|
|
.line 99
|
|
invoke-static {p0}, Lcom/facebook/imageutils/WebpUtil;->h(Ljava/io/InputStream;)S
|
|
|
|
move-result v1
|
|
|
|
.line 100
|
|
invoke-static {p0}, Lcom/facebook/imageutils/WebpUtil;->h(Ljava/io/InputStream;)S
|
|
|
|
move-result v2
|
|
|
|
const/16 v3, 0x9d
|
|
|
|
if-ne v0, v3, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-ne v1, v0, :cond_1
|
|
|
|
const/16 v0, 0x2a
|
|
|
|
if-eq v2, v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 106
|
|
:cond_0
|
|
new-instance v0, Landroid/util/Pair;
|
|
|
|
invoke-static {p0}, Lcom/facebook/imageutils/WebpUtil;->b(Ljava/io/InputStream;)I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {p0}, Lcom/facebook/imageutils/WebpUtil;->b(Ljava/io/InputStream;)I
|
|
|
|
move-result p0
|
|
|
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, v1, p0}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private static d(Ljava/io/InputStream;)Landroid/util/Pair;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/io/InputStream;",
|
|
")",
|
|
"Landroid/util/Pair<",
|
|
"Ljava/lang/Integer;",
|
|
"Ljava/lang/Integer;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 118
|
|
invoke-static {p0}, Lcom/facebook/imageutils/WebpUtil;->f(Ljava/io/InputStream;)I
|
|
|
|
.line 120
|
|
invoke-static {p0}, Lcom/facebook/imageutils/WebpUtil;->i(Ljava/io/InputStream;)B
|
|
|
|
move-result v0
|
|
|
|
const/16 v1, 0x2f
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
.line 124
|
|
:cond_0
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
|
|
|
move-result v0
|
|
|
|
int-to-byte v0, v0
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
.line 125
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
|
|
|
move-result v1
|
|
|
|
int-to-byte v1, v1
|
|
|
|
and-int/lit16 v1, v1, 0xff
|
|
|
|
.line 126
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
|
|
|
move-result v2
|
|
|
|
int-to-byte v2, v2
|
|
|
|
and-int/lit16 v2, v2, 0xff
|
|
|
|
.line 127
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
|
|
|
move-result p0
|
|
|
|
int-to-byte p0, p0
|
|
|
|
and-int/lit16 p0, p0, 0xff
|
|
|
|
and-int/lit8 v3, v1, 0x3f
|
|
|
|
shl-int/lit8 v3, v3, 0x8
|
|
|
|
or-int/2addr v0, v3
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
and-int/lit8 p0, p0, 0xf
|
|
|
|
shl-int/lit8 p0, p0, 0xa
|
|
|
|
shl-int/lit8 v2, v2, 0x2
|
|
|
|
or-int/2addr p0, v2
|
|
|
|
and-int/lit16 v1, v1, 0xc0
|
|
|
|
shr-int/lit8 v1, v1, 0x6
|
|
|
|
or-int/2addr p0, v1
|
|
|
|
add-int/lit8 p0, p0, 0x1
|
|
|
|
.line 131
|
|
new-instance v1, Landroid/util/Pair;
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v1, v0, p0}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
.method private static e(Ljava/io/InputStream;)Landroid/util/Pair;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/io/InputStream;",
|
|
")",
|
|
"Landroid/util/Pair<",
|
|
"Ljava/lang/Integer;",
|
|
"Ljava/lang/Integer;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-wide/16 v0, 0x8
|
|
|
|
.line 143
|
|
invoke-virtual {p0, v0, v1}, Ljava/io/InputStream;->skip(J)J
|
|
|
|
.line 145
|
|
new-instance v0, Landroid/util/Pair;
|
|
|
|
invoke-static {p0}, Lcom/facebook/imageutils/WebpUtil;->g(Ljava/io/InputStream;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {p0}, Lcom/facebook/imageutils/WebpUtil;->g(Ljava/io/InputStream;)I
|
|
|
|
move-result p0
|
|
|
|
add-int/lit8 p0, p0, 0x1
|
|
|
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, v1, p0}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private static f(Ljava/io/InputStream;)I
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 176
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
|
|
|
move-result v0
|
|
|
|
int-to-byte v0, v0
|
|
|
|
.line 177
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
|
|
|
move-result v1
|
|
|
|
int-to-byte v1, v1
|
|
|
|
.line 178
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
|
|
|
move-result v2
|
|
|
|
int-to-byte v2, v2
|
|
|
|
.line 179
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
|
|
|
move-result p0
|
|
|
|
int-to-byte p0, p0
|
|
|
|
shl-int/lit8 p0, p0, 0x18
|
|
|
|
const/high16 v3, -0x1000000
|
|
|
|
and-int/2addr p0, v3
|
|
|
|
shl-int/lit8 v2, v2, 0x10
|
|
|
|
const/high16 v3, 0xff0000
|
|
|
|
and-int/2addr v2, v3
|
|
|
|
or-int/2addr p0, v2
|
|
|
|
shl-int/lit8 v1, v1, 0x8
|
|
|
|
const v2, 0xff00
|
|
|
|
and-int/2addr v1, v2
|
|
|
|
or-int/2addr p0, v1
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
or-int/2addr p0, v0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method private static g(Ljava/io/InputStream;)I
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 193
|
|
invoke-static {p0}, Lcom/facebook/imageutils/WebpUtil;->i(Ljava/io/InputStream;)B
|
|
|
|
move-result v0
|
|
|
|
.line 194
|
|
invoke-static {p0}, Lcom/facebook/imageutils/WebpUtil;->i(Ljava/io/InputStream;)B
|
|
|
|
move-result v1
|
|
|
|
.line 195
|
|
invoke-static {p0}, Lcom/facebook/imageutils/WebpUtil;->i(Ljava/io/InputStream;)B
|
|
|
|
move-result p0
|
|
|
|
shl-int/lit8 p0, p0, 0x10
|
|
|
|
const/high16 v2, 0xff0000
|
|
|
|
and-int/2addr p0, v2
|
|
|
|
shl-int/lit8 v1, v1, 0x8
|
|
|
|
const v2, 0xff00
|
|
|
|
and-int/2addr v1, v2
|
|
|
|
or-int/2addr p0, v1
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
or-int/2addr p0, v0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method private static h(Ljava/io/InputStream;)S
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 202
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
|
|
|
move-result p0
|
|
|
|
and-int/lit16 p0, p0, 0xff
|
|
|
|
int-to-short p0, p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method private static i(Ljava/io/InputStream;)B
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 206
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
|
|
|
move-result p0
|
|
|
|
and-int/lit16 p0, p0, 0xff
|
|
|
|
int-to-byte p0, p0
|
|
|
|
return p0
|
|
.end method
|