2019-02-04 20:08:30 +00:00
|
|
|
.class final Lcom/facebook/imageutils/d;
|
|
|
|
.super Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "StreamProcessor.java"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static a(Ljava/io/InputStream;IZ)I
|
|
|
|
.locals 4
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-ge v0, p1, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
const/4 v3, -0x1
|
|
|
|
|
|
|
|
if-eq v2, v3, :cond_1
|
|
|
|
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
|
|
|
|
and-int/lit16 v2, v2, 0xff
|
|
|
|
|
|
|
|
mul-int/lit8 v3, v0, 0x8
|
|
|
|
|
|
|
|
shl-int/2addr v2, v3
|
|
|
|
|
|
|
|
or-int/2addr v1, v2
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
goto :goto_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
shl-int/lit8 v1, v1, 0x8
|
|
|
|
|
|
|
|
and-int/lit16 v2, v2, 0xff
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
or-int/2addr v1, v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
:goto_1
|
2019-02-04 20:08:30 +00:00
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance p0, Ljava/io/IOException;
|
|
|
|
|
|
|
|
const-string p1, "no more bytes"
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return v1
|
|
|
|
.end method
|