apkfuckery/com.discord/smali/com/facebook/d/a.smali

557 lines
9.2 KiB
Smali
Raw Normal View History

2019-02-17 02:24:41 +00:00
.class public final Lcom/facebook/d/a;
2019-02-04 20:08:30 +00:00
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "DefaultImageFormatChecker.java"
2019-02-04 20:08:30 +00:00
# interfaces
2019-02-17 02:24:41 +00:00
.implements Lcom/facebook/d/c$a;
2019-02-04 20:08:30 +00:00
# static fields
2019-05-03 18:53:54 +00:00
.field private static final Lj:[B
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field private static final Lk:I
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field private static final Ll:[B
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field private static final Lm:I
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field private static final Ln:[B
2019-02-22 00:19:04 +00:00
2019-05-03 18:53:54 +00:00
.field private static final Lo:[B
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field private static final Lp:[B
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field private static final Lq:I
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field private static final Lr:[B
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field private static final Ls:I
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field private static final Lt:[Ljava/lang/String;
2019-03-02 23:27:57 +00:00
2019-05-03 18:53:54 +00:00
.field private static final Lu:I
2019-03-02 23:27:57 +00:00
2019-02-04 20:08:30 +00:00
# instance fields
2019-05-03 18:53:54 +00:00
.field final Li:I
2019-02-04 20:08:30 +00:00
# direct methods
.method static constructor <clinit>()V
.locals 6
const/4 v0, 0x3
new-array v1, v0, [B
fill-array-data v1, :array_0
2019-05-03 18:53:54 +00:00
sput-object v1, Lcom/facebook/d/a;->Lj:[B
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
sput v0, Lcom/facebook/d/a;->Lk:I
2019-02-04 20:08:30 +00:00
const/16 v1, 0x8
new-array v2, v1, [B
fill-array-data v2, :array_1
2019-05-03 18:53:54 +00:00
sput-object v2, Lcom/facebook/d/a;->Ll:[B
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
sput v1, Lcom/facebook/d/a;->Lm:I
2019-02-04 20:08:30 +00:00
const-string v1, "GIF87a"
2019-04-25 10:39:51 +00:00
invoke-static {v1}, Lcom/facebook/d/e;->as(Ljava/lang/String;)[B
2019-02-04 20:08:30 +00:00
move-result-object v1
2019-05-03 18:53:54 +00:00
sput-object v1, Lcom/facebook/d/a;->Ln:[B
2019-02-04 20:08:30 +00:00
const-string v1, "GIF89a"
2019-04-25 10:39:51 +00:00
invoke-static {v1}, Lcom/facebook/d/e;->as(Ljava/lang/String;)[B
2019-02-04 20:08:30 +00:00
move-result-object v1
2019-05-03 18:53:54 +00:00
sput-object v1, Lcom/facebook/d/a;->Lo:[B
2019-02-04 20:08:30 +00:00
const-string v1, "BM"
2019-04-25 10:39:51 +00:00
invoke-static {v1}, Lcom/facebook/d/e;->as(Ljava/lang/String;)[B
2019-02-04 20:08:30 +00:00
move-result-object v1
2019-05-03 18:53:54 +00:00
sput-object v1, Lcom/facebook/d/a;->Lp:[B
2019-02-04 20:08:30 +00:00
array-length v1, v1
2019-05-03 18:53:54 +00:00
sput v1, Lcom/facebook/d/a;->Lq:I
2019-02-04 20:08:30 +00:00
const/4 v1, 0x4
new-array v2, v1, [B
fill-array-data v2, :array_2
2019-05-03 18:53:54 +00:00
sput-object v2, Lcom/facebook/d/a;->Lr:[B
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
sput v1, Lcom/facebook/d/a;->Ls:I
2019-02-04 20:08:30 +00:00
const/4 v2, 0x6
new-array v2, v2, [Ljava/lang/String;
2019-05-03 18:53:54 +00:00
const/4 v3, 0x0
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v4, "heic"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
aput-object v4, v2, v3
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/4 v4, 0x1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v5, "heix"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
aput-object v5, v2, v4
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/4 v4, 0x2
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v5, "hevc"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
aput-object v5, v2, v4
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v4, "hevx"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
aput-object v4, v2, v0
2019-02-04 20:08:30 +00:00
const-string v0, "mif1"
aput-object v0, v2, v1
2019-05-03 18:53:54 +00:00
const/4 v0, 0x5
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v1, "msf1"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
aput-object v1, v2, v0
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
sput-object v2, Lcom/facebook/d/a;->Lt:[Ljava/lang/String;
2019-02-04 20:08:30 +00:00
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "ftyp"
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-05-03 18:53:54 +00:00
sget-object v1, Lcom/facebook/d/a;->Lt:[Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
aget-object v1, v1, v3
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
2019-04-25 10:39:51 +00:00
invoke-static {v0}, Lcom/facebook/d/e;->as(Ljava/lang/String;)[B
2019-02-04 20:08:30 +00:00
move-result-object v0
array-length v0, v0
2019-05-03 18:53:54 +00:00
sput v0, Lcom/facebook/d/a;->Lu:I
2019-02-04 20:08:30 +00:00
return-void
nop
:array_0
.array-data 1
-0x1t
-0x28t
-0x1t
.end array-data
:array_1
.array-data 1
-0x77t
0x50t
0x4et
0x47t
0xdt
0xat
0x1at
0xat
.end array-data
:array_2
.array-data 1
0x0t
0x0t
0x1t
0x0t
.end array-data
.end method
.method public constructor <init>()V
.locals 4
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/16 v0, 0x8
new-array v0, v0, [I
const/4 v1, 0x0
const/16 v2, 0x15
aput v2, v0, v1
const/4 v1, 0x1
const/16 v2, 0x14
aput v2, v0, v1
2019-05-03 18:53:54 +00:00
sget v1, Lcom/facebook/d/a;->Lk:I
2019-02-04 20:08:30 +00:00
const/4 v2, 0x2
aput v1, v0, v2
2019-05-03 18:53:54 +00:00
sget v1, Lcom/facebook/d/a;->Lm:I
2019-02-04 20:08:30 +00:00
const/4 v2, 0x3
aput v1, v0, v2
const/4 v1, 0x6
const/4 v2, 0x4
aput v1, v0, v2
2019-05-03 18:53:54 +00:00
sget v2, Lcom/facebook/d/a;->Lq:I
2019-02-04 20:08:30 +00:00
const/4 v3, 0x5
aput v2, v0, v3
2019-05-03 18:53:54 +00:00
sget v2, Lcom/facebook/d/a;->Ls:I
2019-02-04 20:08:30 +00:00
aput v2, v0, v1
2019-05-03 18:53:54 +00:00
sget v1, Lcom/facebook/d/a;->Lu:I
2019-02-04 20:08:30 +00:00
const/4 v2, 0x7
aput v1, v0, v2
invoke-static {v0}, Lcom/facebook/common/d/g;->b([I)I
move-result v0
2019-05-03 18:53:54 +00:00
iput v0, p0, Lcom/facebook/d/a;->Li:I
2019-02-04 20:08:30 +00:00
return-void
.end method
# virtual methods
2019-02-17 02:24:41 +00:00
.method public final c([BI)Lcom/facebook/d/c;
2019-02-04 20:08:30 +00:00
.locals 7
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
invoke-static {p1}, Lcom/facebook/common/d/i;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
const/4 v0, 0x0
invoke-static {p1, v0, p2}, Lcom/facebook/common/k/c;->a([BII)Z
move-result v1
if-eqz v1, :cond_5
invoke-static {p1, v0, p2}, Lcom/facebook/common/k/c;->a([BII)Z
move-result v0
invoke-static {v0}, Lcom/facebook/common/d/i;->checkArgument(Z)V
invoke-static {p1}, Lcom/facebook/common/k/c;->d([B)Z
move-result v0
if-eqz v0, :cond_0
2019-05-03 18:53:54 +00:00
sget-object p1, Lcom/facebook/d/b;->LA:Lcom/facebook/d/c;
2019-02-04 20:08:30 +00:00
return-object p1
:cond_0
invoke-static {p1}, Lcom/facebook/common/k/c;->e([B)Z
move-result v0
if-eqz v0, :cond_1
2019-05-03 18:53:54 +00:00
sget-object p1, Lcom/facebook/d/b;->LB:Lcom/facebook/d/c;
2019-02-04 20:08:30 +00:00
return-object p1
:cond_1
invoke-static {p1, p2}, Lcom/facebook/common/k/c;->b([BI)Z
move-result p2
if-eqz p2, :cond_4
invoke-static {p1}, Lcom/facebook/common/k/c;->c([B)Z
move-result p2
if-eqz p2, :cond_2
2019-05-03 18:53:54 +00:00
sget-object p1, Lcom/facebook/d/b;->LE:Lcom/facebook/d/c;
2019-02-04 20:08:30 +00:00
return-object p1
:cond_2
invoke-static {p1}, Lcom/facebook/common/k/c;->f([B)Z
move-result p1
if-eqz p1, :cond_3
2019-05-03 18:53:54 +00:00
sget-object p1, Lcom/facebook/d/b;->LD:Lcom/facebook/d/c;
2019-02-04 20:08:30 +00:00
return-object p1
:cond_3
2019-05-03 18:53:54 +00:00
sget-object p1, Lcom/facebook/d/b;->LC:Lcom/facebook/d/c;
2019-02-04 20:08:30 +00:00
return-object p1
:cond_4
2019-05-03 18:53:54 +00:00
sget-object p1, Lcom/facebook/d/c;->LG:Lcom/facebook/d/c;
2019-02-04 20:08:30 +00:00
return-object p1
:cond_5
2019-05-03 18:53:54 +00:00
sget-object v1, Lcom/facebook/d/a;->Lj:[B
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
array-length v2, v1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
const/4 v3, 0x1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-lt p2, v2, :cond_6
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-static {p1, v1}, Lcom/facebook/d/e;->a([B[B)Z
2019-02-04 20:08:30 +00:00
move-result v1
if-eqz v1, :cond_6
const/4 v1, 0x1
goto :goto_0
:cond_6
const/4 v1, 0x0
:goto_0
if-eqz v1, :cond_7
2019-05-03 18:53:54 +00:00
sget-object p1, Lcom/facebook/d/b;->Lv:Lcom/facebook/d/c;
2019-02-04 20:08:30 +00:00
return-object p1
:cond_7
2019-05-03 18:53:54 +00:00
sget-object v1, Lcom/facebook/d/a;->Ll:[B
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
array-length v2, v1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-lt p2, v2, :cond_8
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-static {p1, v1}, Lcom/facebook/d/e;->a([B[B)Z
2019-02-04 20:08:30 +00:00
move-result v1
if-eqz v1, :cond_8
const/4 v1, 0x1
goto :goto_1
:cond_8
const/4 v1, 0x0
:goto_1
if-eqz v1, :cond_9
2019-05-03 18:53:54 +00:00
sget-object p1, Lcom/facebook/d/b;->Lw:Lcom/facebook/d/c;
2019-02-04 20:08:30 +00:00
return-object p1
:cond_9
const/4 v1, 0x6
if-lt p2, v1, :cond_b
2019-05-03 18:53:54 +00:00
sget-object v1, Lcom/facebook/d/a;->Ln:[B
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-static {p1, v1}, Lcom/facebook/d/e;->a([B[B)Z
2019-02-04 20:08:30 +00:00
move-result v1
if-nez v1, :cond_a
2019-05-03 18:53:54 +00:00
sget-object v1, Lcom/facebook/d/a;->Lo:[B
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-static {p1, v1}, Lcom/facebook/d/e;->a([B[B)Z
2019-02-04 20:08:30 +00:00
move-result v1
if-eqz v1, :cond_b
:cond_a
const/4 v1, 0x1
goto :goto_2
:cond_b
const/4 v1, 0x0
:goto_2
if-eqz v1, :cond_c
2019-05-03 18:53:54 +00:00
sget-object p1, Lcom/facebook/d/b;->Lx:Lcom/facebook/d/c;
2019-02-04 20:08:30 +00:00
return-object p1
:cond_c
2019-05-03 18:53:54 +00:00
sget-object v1, Lcom/facebook/d/a;->Lp:[B
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
array-length v2, v1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-ge p2, v2, :cond_d
2019-02-04 20:08:30 +00:00
const/4 v1, 0x0
goto :goto_3
:cond_d
2019-02-17 02:24:41 +00:00
invoke-static {p1, v1}, Lcom/facebook/d/e;->a([B[B)Z
2019-02-04 20:08:30 +00:00
move-result v1
:goto_3
if-eqz v1, :cond_e
2019-05-03 18:53:54 +00:00
sget-object p1, Lcom/facebook/d/b;->Ly:Lcom/facebook/d/c;
2019-02-04 20:08:30 +00:00
return-object p1
:cond_e
2019-05-03 18:53:54 +00:00
sget-object v1, Lcom/facebook/d/a;->Lr:[B
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
array-length v2, v1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-ge p2, v2, :cond_f
2019-02-04 20:08:30 +00:00
const/4 v1, 0x0
goto :goto_4
:cond_f
2019-02-17 02:24:41 +00:00
invoke-static {p1, v1}, Lcom/facebook/d/e;->a([B[B)Z
2019-02-04 20:08:30 +00:00
move-result v1
:goto_4
if-eqz v1, :cond_10
2019-05-03 18:53:54 +00:00
sget-object p1, Lcom/facebook/d/b;->Lz:Lcom/facebook/d/c;
2019-02-04 20:08:30 +00:00
return-object p1
:cond_10
2019-05-03 18:53:54 +00:00
sget v1, Lcom/facebook/d/a;->Lu:I
2019-02-04 20:08:30 +00:00
if-lt p2, v1, :cond_12
const/4 p2, 0x3
aget-byte p2, p1, p2
const/16 v1, 0x8
if-lt p2, v1, :cond_12
2019-05-03 18:53:54 +00:00
sget-object p2, Lcom/facebook/d/a;->Lt:[Ljava/lang/String;
2019-02-04 20:08:30 +00:00
array-length v1, p2
2019-02-04 20:29:01 +00:00
const/4 v2, 0x0
2019-02-04 20:08:30 +00:00
:goto_5
2019-02-04 20:29:01 +00:00
if-ge v2, v1, :cond_12
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
aget-object v4, p2, v2
2019-02-04 20:08:30 +00:00
array-length v5, p1
invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v4
2019-05-03 18:53:54 +00:00
const-string v6, "ftyp"
2019-02-04 20:08:30 +00:00
invoke-virtual {v6, v4}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v4
2019-04-25 10:39:51 +00:00
invoke-static {v4}, Lcom/facebook/d/e;->as(Ljava/lang/String;)[B
2019-02-04 20:08:30 +00:00
move-result-object v4
2019-05-03 18:53:54 +00:00
sget v6, Lcom/facebook/d/a;->Lu:I
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-static {p1, v5, v4, v6}, Lcom/facebook/d/e;->a([BI[BI)I
2019-02-04 20:08:30 +00:00
move-result v4
if-ltz v4, :cond_11
const/4 v0, 0x1
goto :goto_6
:cond_11
2019-02-04 20:29:01 +00:00
add-int/lit8 v2, v2, 0x1
2019-02-04 20:08:30 +00:00
goto :goto_5
:cond_12
:goto_6
if-eqz v0, :cond_13
2019-05-03 18:53:54 +00:00
sget-object p1, Lcom/facebook/d/b;->LF:Lcom/facebook/d/c;
2019-02-04 20:08:30 +00:00
return-object p1
:cond_13
2019-05-03 18:53:54 +00:00
sget-object p1, Lcom/facebook/d/c;->LG:Lcom/facebook/d/c;
2019-02-04 20:08:30 +00:00
return-object p1
.end method
2019-04-16 23:08:16 +00:00
.method public final gV()I
2019-02-04 20:08:30 +00:00
.locals 1
2019-05-03 18:53:54 +00:00
iget v0, p0, Lcom/facebook/d/a;->Li:I
2019-02-04 20:08:30 +00:00
return v0
.end method