apkfuckery/com.discord/smali/com/facebook/imageutils/e.smali

298 lines
5.2 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public Lcom/facebook/imageutils/e;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "TiffUtil.java"
2019-02-04 20:08:30 +00:00
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/facebook/imageutils/e$a;
}
.end annotation
# static fields
2019-05-03 18:53:54 +00:00
.field private static final Bo:Ljava/lang/Class;
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 1
const-class v0, Lcom/facebook/imageutils/e;
2019-05-03 18:53:54 +00:00
sput-object v0, Lcom/facebook/imageutils/e;->Bo:Ljava/lang/Class;
2019-02-04 20:08:30 +00:00
return-void
.end method
.method constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
2019-04-11 23:08:29 +00:00
.method public static aA(I)I
2019-05-03 18:53:54 +00:00
.locals 2
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/4 v0, 0x0
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-eqz p0, :cond_3
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/4 v1, 0x1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-eq p0, v1, :cond_3
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/4 v1, 0x3
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-eq p0, v1, :cond_2
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/4 v1, 0x6
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-eq p0, v1, :cond_1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/16 v1, 0x8
if-eq p0, v1, :cond_0
2019-02-04 20:29:01 +00:00
2019-02-04 20:08:30 +00:00
return v0
:cond_0
const/16 p0, 0x10e
return p0
:cond_1
const/16 p0, 0x5a
return p0
:cond_2
const/16 p0, 0xb4
return p0
2019-05-03 18:53:54 +00:00
:cond_3
return v0
2019-02-04 20:08:30 +00:00
.end method
.method public static f(Ljava/io/InputStream;I)I
.locals 10
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
new-instance v0, Lcom/facebook/imageutils/e$a;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/facebook/imageutils/e$a;-><init>(B)V
const/4 v2, 0x1
const/4 v3, 0x4
const/16 v4, 0x8
if-gt p1, v4, :cond_0
2019-05-03 18:53:54 +00:00
:goto_0
2019-02-04 20:08:30 +00:00
const/4 p1, 0x0
2019-05-03 18:53:54 +00:00
goto :goto_2
2019-02-04 20:08:30 +00:00
:cond_0
invoke-static {p0, v3, v1}, Lcom/facebook/imageutils/d;->a(Ljava/io/InputStream;IZ)I
move-result v5
2019-05-03 18:53:54 +00:00
iput v5, v0, Lcom/facebook/imageutils/e$a;->UT:I
2019-02-04 20:08:30 +00:00
add-int/lit8 p1, p1, -0x4
2019-05-03 18:53:54 +00:00
iget v5, v0, Lcom/facebook/imageutils/e$a;->UT:I
2019-02-04 20:08:30 +00:00
const v6, 0x49492a00 # 823968.0f
if-eq v5, v6, :cond_1
2019-05-03 18:53:54 +00:00
iget v5, v0, Lcom/facebook/imageutils/e$a;->UT:I
2019-02-04 20:08:30 +00:00
const v7, 0x4d4d002a # 2.14958752E8f
if-eq v5, v7, :cond_1
2019-05-03 18:53:54 +00:00
sget-object p1, Lcom/facebook/imageutils/e;->Bo:Ljava/lang/Class;
2019-02-04 20:08:30 +00:00
const-string v5, "Invalid TIFF header"
invoke-static {p1, v5}, Lcom/facebook/common/e/a;->c(Ljava/lang/Class;Ljava/lang/String;)V
2019-05-03 18:53:54 +00:00
goto :goto_0
2019-02-04 20:08:30 +00:00
:cond_1
2019-05-03 18:53:54 +00:00
iget v5, v0, Lcom/facebook/imageutils/e$a;->UT:I
2019-02-04 20:08:30 +00:00
if-ne v5, v6, :cond_2
const/4 v5, 0x1
2019-05-03 18:53:54 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
:cond_2
const/4 v5, 0x0
2019-05-03 18:53:54 +00:00
:goto_1
2019-02-04 20:08:30 +00:00
iput-boolean v5, v0, Lcom/facebook/imageutils/e$a;->isLittleEndian:Z
iget-boolean v5, v0, Lcom/facebook/imageutils/e$a;->isLittleEndian:Z
invoke-static {p0, v3, v5}, Lcom/facebook/imageutils/d;->a(Ljava/io/InputStream;IZ)I
move-result v5
2019-05-03 18:53:54 +00:00
iput v5, v0, Lcom/facebook/imageutils/e$a;->UU:I
2019-02-04 20:08:30 +00:00
add-int/lit8 p1, p1, -0x4
2019-05-03 18:53:54 +00:00
iget v5, v0, Lcom/facebook/imageutils/e$a;->UU:I
2019-02-04 20:08:30 +00:00
if-lt v5, v4, :cond_3
2019-05-03 18:53:54 +00:00
iget v5, v0, Lcom/facebook/imageutils/e$a;->UU:I
2019-02-04 20:08:30 +00:00
sub-int/2addr v5, v4
if-le v5, p1, :cond_4
:cond_3
2019-05-03 18:53:54 +00:00
sget-object p1, Lcom/facebook/imageutils/e;->Bo:Ljava/lang/Class;
2019-02-04 20:08:30 +00:00
const-string v5, "Invalid offset"
2019-02-04 20:29:01 +00:00
invoke-static {p1, v5}, Lcom/facebook/common/e/a;->c(Ljava/lang/Class;Ljava/lang/String;)V
2019-05-03 18:53:54 +00:00
goto :goto_0
2019-02-04 20:08:30 +00:00
:cond_4
2019-05-03 18:53:54 +00:00
:goto_2
iget v5, v0, Lcom/facebook/imageutils/e$a;->UU:I
2019-02-04 20:08:30 +00:00
sub-int/2addr v5, v4
if-eqz p1, :cond_b
if-le v5, p1, :cond_5
2019-05-03 18:53:54 +00:00
goto :goto_5
2019-02-04 20:08:30 +00:00
:cond_5
int-to-long v6, v5
invoke-virtual {p0, v6, v7}, Ljava/io/InputStream;->skip(J)J
sub-int/2addr p1, v5
iget-boolean v4, v0, Lcom/facebook/imageutils/e$a;->isLittleEndian:Z
const/16 v5, 0xe
const/4 v6, 0x2
if-lt p1, v5, :cond_7
invoke-static {p0, v6, v4}, Lcom/facebook/imageutils/d;->a(Ljava/io/InputStream;IZ)I
move-result v5
add-int/lit8 p1, p1, -0x2
2019-05-03 18:53:54 +00:00
:goto_3
2019-02-04 20:08:30 +00:00
add-int/lit8 v7, v5, -0x1
if-lez v5, :cond_7
const/16 v5, 0xc
if-lt p1, v5, :cond_7
invoke-static {p0, v6, v4}, Lcom/facebook/imageutils/d;->a(Ljava/io/InputStream;IZ)I
move-result v5
add-int/lit8 p1, p1, -0x2
const/16 v8, 0x112
if-ne v5, v8, :cond_6
2019-05-03 18:53:54 +00:00
goto :goto_4
2019-02-04 20:08:30 +00:00
:cond_6
const-wide/16 v8, 0xa
invoke-virtual {p0, v8, v9}, Ljava/io/InputStream;->skip(J)J
add-int/lit8 p1, p1, -0xa
move v5, v7
2019-05-03 18:53:54 +00:00
goto :goto_3
2019-02-04 20:08:30 +00:00
:cond_7
const/4 p1, 0x0
2019-05-03 18:53:54 +00:00
:goto_4
2019-02-04 20:08:30 +00:00
iget-boolean v0, v0, Lcom/facebook/imageutils/e$a;->isLittleEndian:Z
const/16 v4, 0xa
if-ge p1, v4, :cond_8
return v1
:cond_8
invoke-static {p0, v6, v0}, Lcom/facebook/imageutils/d;->a(Ljava/io/InputStream;IZ)I
move-result p1
const/4 v4, 0x3
if-eq p1, v4, :cond_9
return v1
:cond_9
invoke-static {p0, v3, v0}, Lcom/facebook/imageutils/d;->a(Ljava/io/InputStream;IZ)I
move-result p1
if-eq p1, v2, :cond_a
return v1
:cond_a
invoke-static {p0, v6, v0}, Lcom/facebook/imageutils/d;->a(Ljava/io/InputStream;IZ)I
move-result p1
invoke-static {p0, v6, v0}, Lcom/facebook/imageutils/d;->a(Ljava/io/InputStream;IZ)I
return p1
:cond_b
2019-05-03 18:53:54 +00:00
:goto_5
2019-02-04 20:08:30 +00:00
return v1
.end method