2019-07-24 11:27:29 +00:00
|
|
|
.class public final Lcom/facebook/d/d;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "ImageFormatChecker.java"
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
2019-08-01 23:08:43 +00:00
|
|
|
.field private static Pz:Lcom/facebook/d/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-08-01 23:08:43 +00:00
|
|
|
.field private PA:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-01 23:08:43 +00:00
|
|
|
.field public PB:Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Lcom/facebook/d/c$a;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-08-01 23:08:43 +00:00
|
|
|
.field private final PC:Lcom/facebook/d/c$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method private constructor <init>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
new-instance v0, Lcom/facebook/d/a;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Lcom/facebook/d/a;-><init>()V
|
|
|
|
|
2019-08-01 23:08:43 +00:00
|
|
|
iput-object v0, p0, Lcom/facebook/d/d;->PC:Lcom/facebook/d/c$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-01 02:26:13 +00:00
|
|
|
invoke-virtual {p0}, Lcom/facebook/d/d;->hn()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private static a(ILjava/io/InputStream;[B)I
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-static {p1}, Lcom/facebook/common/d/i;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-static {p2}, Lcom/facebook/common/d/i;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
array-length v0, p2
|
|
|
|
|
|
|
|
if-lt v0, p0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-static {v0}, Lcom/facebook/common/d/i;->checkArgument(Z)V
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/io/InputStream;->markSupported()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
invoke-virtual {p1, p0}, Ljava/io/InputStream;->mark(I)V
|
|
|
|
|
|
|
|
invoke-static {p1, p2, p0}, Lcom/facebook/common/d/a;->a(Ljava/io/InputStream;[BI)I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/io/InputStream;->reset()V
|
|
|
|
|
|
|
|
return p0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/io/InputStream;->reset()V
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-static {p1, p2, p0}, Lcom/facebook/common/d/a;->a(Ljava/io/InputStream;[BI)I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static d(Ljava/io/InputStream;)Lcom/facebook/d/c;
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
:try_start_0
|
2019-08-01 02:26:13 +00:00
|
|
|
invoke-static {}, Lcom/facebook/d/d;->ho()Lcom/facebook/d/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {p0}, Lcom/facebook/common/d/i;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
2019-08-01 23:08:43 +00:00
|
|
|
iget v1, v0, Lcom/facebook/d/d;->PA:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-array v1, v1, [B
|
|
|
|
|
2019-08-01 23:08:43 +00:00
|
|
|
iget v2, v0, Lcom/facebook/d/d;->PA:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v2, p0, v1}, Lcom/facebook/d/d;->a(ILjava/io/InputStream;[B)I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
2019-08-01 23:08:43 +00:00
|
|
|
iget-object v2, v0, Lcom/facebook/d/d;->PC:Lcom/facebook/d/c$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-interface {v2, v1, p0}, Lcom/facebook/d/c$a;->c([BI)Lcom/facebook/d/c;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
|
2019-08-01 23:08:43 +00:00
|
|
|
sget-object v3, Lcom/facebook/d/c;->Px:Lcom/facebook/d/c;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eq v2, v3, :cond_0
|
|
|
|
|
|
|
|
return-object v2
|
|
|
|
|
|
|
|
:cond_0
|
2019-08-01 23:08:43 +00:00
|
|
|
iget-object v2, v0, Lcom/facebook/d/d;->PB:Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
|
2019-08-01 23:08:43 +00:00
|
|
|
iget-object v0, v0, Lcom/facebook/d/d;->PB:Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
check-cast v2, Lcom/facebook/d/c$a;
|
|
|
|
|
|
|
|
invoke-interface {v2, v1, p0}, Lcom/facebook/d/c$a;->c([BI)Lcom/facebook/d/c;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
2019-08-01 23:08:43 +00:00
|
|
|
sget-object v3, Lcom/facebook/d/c;->Px:Lcom/facebook/d/c;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eq v2, v3, :cond_1
|
|
|
|
|
|
|
|
return-object v2
|
|
|
|
|
|
|
|
:cond_2
|
2019-08-01 23:08:43 +00:00
|
|
|
sget-object p0, Lcom/facebook/d/c;->Px:Lcom/facebook/d/c;
|
2019-07-24 11:27:29 +00:00
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception p0
|
|
|
|
|
|
|
|
invoke-static {p0}, Lcom/facebook/common/d/m;->d(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
throw p0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
goto :goto_0
|
|
|
|
.end method
|
|
|
|
|
2019-08-01 02:26:13 +00:00
|
|
|
.method public static declared-synchronized ho()Lcom/facebook/d/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const-class v0, Lcom/facebook/d/d;
|
|
|
|
|
|
|
|
monitor-enter v0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-08-01 23:08:43 +00:00
|
|
|
sget-object v1, Lcom/facebook/d/d;->Pz:Lcom/facebook/d/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
|
|
|
|
new-instance v1, Lcom/facebook/d/d;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Lcom/facebook/d/d;-><init>()V
|
|
|
|
|
2019-08-01 23:08:43 +00:00
|
|
|
sput-object v1, Lcom/facebook/d/d;->Pz:Lcom/facebook/d/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-08-01 23:08:43 +00:00
|
|
|
sget-object v1, Lcom/facebook/d/d;->Pz:Lcom/facebook/d/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
monitor-exit v0
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v1
|
|
|
|
|
|
|
|
monitor-exit v0
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-08-01 02:26:13 +00:00
|
|
|
.method public final hn()V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 3
|
|
|
|
|
2019-08-01 23:08:43 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/d/d;->PC:Lcom/facebook/d/c$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-01 02:26:13 +00:00
|
|
|
invoke-interface {v0}, Lcom/facebook/d/c$a;->hm()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-08-01 23:08:43 +00:00
|
|
|
iput v0, p0, Lcom/facebook/d/d;->PA:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-01 23:08:43 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/d/d;->PB:Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lcom/facebook/d/c$a;
|
|
|
|
|
2019-08-01 23:08:43 +00:00
|
|
|
iget v2, p0, Lcom/facebook/d/d;->PA:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-01 02:26:13 +00:00
|
|
|
invoke-interface {v1}, Lcom/facebook/d/c$a;->hm()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-static {v2, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-08-01 23:08:43 +00:00
|
|
|
iput v1, p0, Lcom/facebook/d/d;->PA:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|