apkfuckery/com.discord/smali/com/facebook/b/g$a.smali

769 lines
15 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class final Lcom/facebook/b/g$a;
.super Lcom/facebook/b/a;
.source "IncreasingQualityDataSourceSupplier.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/b/g;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = "a"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/facebook/b/g$a$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/facebook/b/a<",
"TT;>;"
}
.end annotation
# instance fields
2019-08-30 20:04:20 +00:00
.field private In:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Lcom/facebook/b/c<",
"TT;>;>;"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
2019-08-22 18:54:10 +00:00
.field private Io:I
2019-07-25 02:21:43 +00:00
2019-08-30 20:04:20 +00:00
.field private Ip:I
.field private Iq:Ljava/util/concurrent/atomic/AtomicInteger;
2019-07-25 02:21:43 +00:00
2019-08-30 20:04:20 +00:00
.field private Ir:Ljava/lang/Throwable;
2019-07-25 02:21:43 +00:00
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
2019-08-30 20:04:20 +00:00
.field final synthetic Is:Lcom/facebook/b/g;
2019-07-25 02:21:43 +00:00
2019-07-24 11:27:29 +00:00
# direct methods
.method public constructor <init>(Lcom/facebook/b/g;)V
.locals 0
2019-08-30 20:04:20 +00:00
iput-object p1, p0, Lcom/facebook/b/g$a;->Is:Lcom/facebook/b/g;
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Lcom/facebook/b/a;-><init>()V
2019-08-30 20:04:20 +00:00
iget-boolean p1, p1, Lcom/facebook/b/g;->Im:Z
2019-07-24 11:27:29 +00:00
if-nez p1, :cond_0
2019-08-22 18:54:10 +00:00
invoke-direct {p0}, Lcom/facebook/b/g$a;->gf()V
2019-07-24 11:27:29 +00:00
:cond_0
return-void
.end method
2019-07-25 02:21:43 +00:00
.method private declared-synchronized M(I)Lcom/facebook/b/c;
2019-07-24 11:27:29 +00:00
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)",
"Lcom/facebook/b/c<",
"TT;>;"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
monitor-enter p0
:try_start_0
2019-08-30 20:04:20 +00:00
iget-object v0, p0, Lcom/facebook/b/g$a;->In:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
2019-08-30 20:04:20 +00:00
iget-object v0, p0, Lcom/facebook/b/g$a;->In:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
if-ge p1, v0, :cond_0
2019-08-30 20:04:20 +00:00
iget-object v0, p0, Lcom/facebook/b/g$a;->In:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/facebook/b/c;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-object p1
:cond_0
const/4 p1, 0x0
monitor-exit p0
return-object p1
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
2019-07-25 02:21:43 +00:00
.method private declared-synchronized N(I)Lcom/facebook/b/c;
2019-07-24 11:27:29 +00:00
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)",
"Lcom/facebook/b/c<",
"TT;>;"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
monitor-enter p0
:try_start_0
2019-08-30 20:04:20 +00:00
iget-object v0, p0, Lcom/facebook/b/g$a;->In:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
const/4 v1, 0x0
if-eqz v0, :cond_0
2019-08-30 20:04:20 +00:00
iget-object v0, p0, Lcom/facebook/b/g$a;->In:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
if-ge p1, v0, :cond_0
2019-08-30 20:04:20 +00:00
iget-object v0, p0, Lcom/facebook/b/g$a;->In:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0, p1, v1}, Ljava/util/ArrayList;->set(ILjava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/facebook/b/c;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-object p1
:cond_0
monitor-exit p0
return-object v1
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method private declared-synchronized a(ILcom/facebook/b/c;)Lcom/facebook/b/c;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Lcom/facebook/b/c<",
"TT;>;)",
"Lcom/facebook/b/c<",
"TT;>;"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
monitor-enter p0
:try_start_0
2019-08-22 18:54:10 +00:00
invoke-direct {p0}, Lcom/facebook/b/g$a;->ge()Lcom/facebook/b/c;
2019-07-24 11:27:29 +00:00
move-result-object v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-ne p2, v0, :cond_0
const/4 p1, 0x0
monitor-exit p0
return-object p1
:cond_0
:try_start_1
2019-07-25 02:21:43 +00:00
invoke-direct {p0, p1}, Lcom/facebook/b/g$a;->M(I)Lcom/facebook/b/c;
2019-07-24 11:27:29 +00:00
move-result-object v0
if-ne p2, v0, :cond_1
2019-07-25 02:21:43 +00:00
invoke-direct {p0, p1}, Lcom/facebook/b/g$a;->N(I)Lcom/facebook/b/c;
2019-07-24 11:27:29 +00:00
move-result-object p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
monitor-exit p0
return-object p1
:cond_1
monitor-exit p0
return-object p2
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method static synthetic a(Lcom/facebook/b/g$a;ILcom/facebook/b/c;)V
.locals 4
invoke-interface {p2}, Lcom/facebook/b/c;->isFinished()Z
move-result v0
monitor-enter p0
:try_start_0
2019-08-30 20:04:20 +00:00
iget v1, p0, Lcom/facebook/b/g$a;->Io:I
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
iget v2, p0, Lcom/facebook/b/g$a;->Io:I
2019-07-24 11:27:29 +00:00
2019-07-25 02:21:43 +00:00
invoke-direct {p0, p1}, Lcom/facebook/b/g$a;->M(I)Lcom/facebook/b/c;
2019-07-24 11:27:29 +00:00
move-result-object v3
if-ne p2, v3, :cond_3
2019-08-30 20:04:20 +00:00
iget v3, p0, Lcom/facebook/b/g$a;->Io:I
2019-07-24 11:27:29 +00:00
if-ne p1, v3, :cond_0
goto :goto_1
:cond_0
2019-08-22 18:54:10 +00:00
invoke-direct {p0}, Lcom/facebook/b/g$a;->ge()Lcom/facebook/b/c;
2019-07-24 11:27:29 +00:00
move-result-object v3
if-eqz v3, :cond_1
if-eqz v0, :cond_2
2019-08-30 20:04:20 +00:00
iget v0, p0, Lcom/facebook/b/g$a;->Io:I
2019-07-24 11:27:29 +00:00
if-ge p1, v0, :cond_2
:cond_1
2019-08-30 20:04:20 +00:00
iput p1, p0, Lcom/facebook/b/g$a;->Io:I
2019-07-24 11:27:29 +00:00
move v2, p1
:cond_2
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:goto_0
if-le v1, v2, :cond_4
2019-07-25 02:21:43 +00:00
invoke-direct {p0, v1}, Lcom/facebook/b/g$a;->N(I)Lcom/facebook/b/c;
2019-07-24 11:27:29 +00:00
move-result-object v0
invoke-static {v0}, Lcom/facebook/b/g$a;->i(Lcom/facebook/b/c;)V
add-int/lit8 v1, v1, -0x1
goto :goto_0
:cond_3
:goto_1
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:cond_4
2019-08-22 18:54:10 +00:00
invoke-direct {p0}, Lcom/facebook/b/g$a;->ge()Lcom/facebook/b/c;
2019-07-24 11:27:29 +00:00
move-result-object v0
if-ne p2, v0, :cond_6
const/4 v0, 0x0
if-nez p1, :cond_5
invoke-interface {p2}, Lcom/facebook/b/c;->isFinished()Z
move-result p1
if-eqz p1, :cond_5
const/4 p1, 0x1
goto :goto_2
:cond_5
const/4 p1, 0x0
:goto_2
invoke-virtual {p0, v0, p1}, Lcom/facebook/b/g$a;->a(Ljava/lang/Object;Z)Z
:cond_6
2019-08-22 18:54:10 +00:00
invoke-direct {p0}, Lcom/facebook/b/g$a;->gg()V
2019-07-24 11:27:29 +00:00
return-void
:catchall_0
move-exception p1
:try_start_2
monitor-exit p0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
goto :goto_4
:goto_3
throw p1
:goto_4
goto :goto_3
.end method
.method static synthetic b(Lcom/facebook/b/g$a;ILcom/facebook/b/c;)V
.locals 1
invoke-direct {p0, p1, p2}, Lcom/facebook/b/g$a;->a(ILcom/facebook/b/c;)Lcom/facebook/b/c;
move-result-object v0
invoke-static {v0}, Lcom/facebook/b/g$a;->i(Lcom/facebook/b/c;)V
if-nez p1, :cond_0
2019-08-22 18:54:10 +00:00
invoke-interface {p2}, Lcom/facebook/b/c;->fW()Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
move-result-object p1
2019-08-30 20:04:20 +00:00
iput-object p1, p0, Lcom/facebook/b/g$a;->Ir:Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
:cond_0
2019-08-22 18:54:10 +00:00
invoke-direct {p0}, Lcom/facebook/b/g$a;->gg()V
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-08-22 18:54:10 +00:00
.method private declared-synchronized ge()Lcom/facebook/b/c;
2019-07-24 11:27:29 +00:00
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/facebook/b/c<",
"TT;>;"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
monitor-enter p0
:try_start_0
2019-08-30 20:04:20 +00:00
iget v0, p0, Lcom/facebook/b/g$a;->Io:I
2019-07-24 11:27:29 +00:00
2019-07-25 02:21:43 +00:00
invoke-direct {p0, v0}, Lcom/facebook/b/g$a;->M(I)Lcom/facebook/b/c;
2019-07-24 11:27:29 +00:00
move-result-object v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-object v0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
2019-08-22 18:54:10 +00:00
.method private gf()V
2019-07-24 11:27:29 +00:00
.locals 5
2019-08-30 20:04:20 +00:00
iget-object v0, p0, Lcom/facebook/b/g$a;->Iq:Ljava/util/concurrent/atomic/AtomicInteger;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
return-void
:cond_0
monitor-enter p0
:try_start_0
2019-08-30 20:04:20 +00:00
iget-object v0, p0, Lcom/facebook/b/g$a;->Iq:Ljava/util/concurrent/atomic/AtomicInteger;
2019-07-24 11:27:29 +00:00
if-nez v0, :cond_1
new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger;
const/4 v1, 0x0
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V
2019-08-30 20:04:20 +00:00
iput-object v0, p0, Lcom/facebook/b/g$a;->Iq:Ljava/util/concurrent/atomic/AtomicInteger;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
iget-object v0, p0, Lcom/facebook/b/g$a;->Is:Lcom/facebook/b/g;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
iget-object v0, v0, Lcom/facebook/b/g;->Ih:Ljava/util/List;
2019-07-24 11:27:29 +00:00
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
2019-08-30 20:04:20 +00:00
iput v0, p0, Lcom/facebook/b/g$a;->Ip:I
2019-08-22 06:13:42 +00:00
2019-08-30 20:04:20 +00:00
iput v0, p0, Lcom/facebook/b/g$a;->Io:I
2019-08-22 18:54:10 +00:00
2019-07-24 11:27:29 +00:00
new-instance v2, Ljava/util/ArrayList;
invoke-direct {v2, v0}, Ljava/util/ArrayList;-><init>(I)V
2019-08-30 20:04:20 +00:00
iput-object v2, p0, Lcom/facebook/b/g$a;->In:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
:goto_0
if-ge v1, v0, :cond_1
2019-08-30 20:04:20 +00:00
iget-object v2, p0, Lcom/facebook/b/g$a;->Is:Lcom/facebook/b/g;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
iget-object v2, v2, Lcom/facebook/b/g;->Ih:Ljava/util/List;
2019-07-24 11:27:29 +00:00
invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/facebook/common/d/k;
invoke-interface {v2}, Lcom/facebook/common/d/k;->get()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/facebook/b/c;
2019-08-30 20:04:20 +00:00
iget-object v3, p0, Lcom/facebook/b/g$a;->In:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
invoke-virtual {v3, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
new-instance v3, Lcom/facebook/b/g$a$a;
invoke-direct {v3, p0, v1}, Lcom/facebook/b/g$a$a;-><init>(Lcom/facebook/b/g$a;I)V
2019-08-22 18:54:10 +00:00
invoke-static {}, Lcom/facebook/common/b/a;->fw()Lcom/facebook/common/b/a;
2019-07-24 11:27:29 +00:00
move-result-object v4
invoke-interface {v2, v3, v4}, Lcom/facebook/b/c;->a(Lcom/facebook/b/e;Ljava/util/concurrent/Executor;)V
2019-08-22 18:54:10 +00:00
invoke-interface {v2}, Lcom/facebook/b/c;->fU()Z
2019-07-24 11:27:29 +00:00
move-result v2
if-nez v2, :cond_1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_1
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_2
:goto_1
throw v0
:goto_2
goto :goto_1
.end method
2019-08-22 18:54:10 +00:00
.method private gg()V
2019-07-24 11:27:29 +00:00
.locals 2
2019-08-30 20:04:20 +00:00
iget-object v0, p0, Lcom/facebook/b/g$a;->Iq:Ljava/util/concurrent/atomic/AtomicInteger;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->incrementAndGet()I
move-result v0
2019-08-30 20:04:20 +00:00
iget v1, p0, Lcom/facebook/b/g$a;->Ip:I
2019-07-24 11:27:29 +00:00
if-ne v0, v1, :cond_0
2019-08-30 20:04:20 +00:00
iget-object v0, p0, Lcom/facebook/b/g$a;->Ir:Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
invoke-virtual {p0, v0}, Lcom/facebook/b/g$a;->e(Ljava/lang/Throwable;)Z
:cond_0
return-void
.end method
.method private static i(Lcom/facebook/b/c;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/b/c<",
"TT;>;)V"
}
.end annotation
if-eqz p0, :cond_0
2019-08-22 18:54:10 +00:00
invoke-interface {p0}, Lcom/facebook/b/c;->fX()Z
2019-07-24 11:27:29 +00:00
:cond_0
return-void
.end method
# virtual methods
2019-08-22 18:54:10 +00:00
.method public final declared-synchronized fU()Z
2019-07-24 11:27:29 +00:00
.locals 1
monitor-enter p0
:try_start_0
2019-08-30 20:04:20 +00:00
iget-object v0, p0, Lcom/facebook/b/g$a;->Is:Lcom/facebook/b/g;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
iget-boolean v0, v0, Lcom/facebook/b/g;->Im:Z
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
2019-08-22 18:54:10 +00:00
invoke-direct {p0}, Lcom/facebook/b/g$a;->gf()V
2019-07-24 11:27:29 +00:00
:cond_0
2019-08-22 18:54:10 +00:00
invoke-direct {p0}, Lcom/facebook/b/g$a;->ge()Lcom/facebook/b/c;
2019-07-24 11:27:29 +00:00
move-result-object v0
if-eqz v0, :cond_1
2019-08-22 18:54:10 +00:00
invoke-interface {v0}, Lcom/facebook/b/c;->fU()Z
2019-07-24 11:27:29 +00:00
move-result v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_1
const/4 v0, 0x1
:goto_0
monitor-exit p0
return v0
:cond_1
const/4 v0, 0x0
goto :goto_0
:catchall_0
move-exception v0
monitor-exit p0
goto :goto_2
:goto_1
throw v0
:goto_2
goto :goto_1
.end method
2019-08-22 18:54:10 +00:00
.method public final fX()Z
2019-07-24 11:27:29 +00:00
.locals 3
2019-08-30 20:04:20 +00:00
iget-object v0, p0, Lcom/facebook/b/g$a;->Is:Lcom/facebook/b/g;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
iget-boolean v0, v0, Lcom/facebook/b/g;->Im:Z
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
2019-08-22 18:54:10 +00:00
invoke-direct {p0}, Lcom/facebook/b/g$a;->gf()V
2019-07-24 11:27:29 +00:00
:cond_0
monitor-enter p0
:try_start_0
2019-08-22 18:54:10 +00:00
invoke-super {p0}, Lcom/facebook/b/a;->fX()Z
2019-07-24 11:27:29 +00:00
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_1
monitor-exit p0
return v1
:cond_1
2019-08-30 20:04:20 +00:00
iget-object v0, p0, Lcom/facebook/b/g$a;->In:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
const/4 v2, 0x0
2019-08-30 20:04:20 +00:00
iput-object v2, p0, Lcom/facebook/b/g$a;->In:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_2
:goto_0
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v2
if-ge v1, v2, :cond_2
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/facebook/b/c;
invoke-static {v2}, Lcom/facebook/b/g$a;->i(Lcom/facebook/b/c;)V
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_2
const/4 v0, 0x1
return v0
:catchall_0
move-exception v0
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_2
:goto_1
throw v0
:goto_2
goto :goto_1
.end method
.method public final declared-synchronized getResult()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
monitor-enter p0
:try_start_0
2019-08-30 20:04:20 +00:00
iget-object v0, p0, Lcom/facebook/b/g$a;->Is:Lcom/facebook/b/g;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
iget-boolean v0, v0, Lcom/facebook/b/g;->Im:Z
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
2019-08-22 18:54:10 +00:00
invoke-direct {p0}, Lcom/facebook/b/g$a;->gf()V
2019-07-24 11:27:29 +00:00
:cond_0
2019-08-22 18:54:10 +00:00
invoke-direct {p0}, Lcom/facebook/b/g$a;->ge()Lcom/facebook/b/c;
2019-07-24 11:27:29 +00:00
move-result-object v0
if-eqz v0, :cond_1
invoke-interface {v0}, Lcom/facebook/b/c;->getResult()Ljava/lang/Object;
move-result-object v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-object v0
:cond_1
const/4 v0, 0x0
monitor-exit p0
return-object v0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method