apkfuckery/com.discord/smali/com/facebook/datasource/e$a.smali
2019-02-04 21:29:01 +01:00

625 lines
13 KiB
Smali

.class final Lcom/facebook/datasource/e$a;
.super Lcom/facebook/datasource/a;
.source "FirstAvailableDataSourceSupplier.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/datasource/e;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = "a"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/facebook/datasource/e$a$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/facebook/datasource/a<",
"TT;>;"
}
.end annotation
.annotation build Ljavax/annotation/concurrent/ThreadSafe;
.end annotation
# instance fields
.field private El:Lcom/facebook/datasource/DataSource;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/facebook/datasource/DataSource<",
"TT;>;"
}
.end annotation
.end field
.field private Em:Lcom/facebook/datasource/DataSource;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/facebook/datasource/DataSource<",
"TT;>;"
}
.end annotation
.end field
.field final synthetic En:Lcom/facebook/datasource/e;
.field private mIndex:I
# direct methods
.method public constructor <init>(Lcom/facebook/datasource/e;)V
.locals 1
iput-object p1, p0, Lcom/facebook/datasource/e$a;->En:Lcom/facebook/datasource/e;
invoke-direct {p0}, Lcom/facebook/datasource/a;-><init>()V
const/4 p1, 0x0
iput p1, p0, Lcom/facebook/datasource/e$a;->mIndex:I
const/4 p1, 0x0
iput-object p1, p0, Lcom/facebook/datasource/e$a;->El:Lcom/facebook/datasource/DataSource;
iput-object p1, p0, Lcom/facebook/datasource/e$a;->Em:Lcom/facebook/datasource/DataSource;
invoke-direct {p0}, Lcom/facebook/datasource/e$a;->fG()Z
move-result p1
if-nez p1, :cond_0
new-instance p1, Ljava/lang/RuntimeException;
const-string v0, "No data source supplier or supplier returned null."
invoke-direct {p1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
invoke-virtual {p0, p1}, Lcom/facebook/datasource/e$a;->d(Ljava/lang/Throwable;)Z
:cond_0
return-void
.end method
.method static synthetic a(Lcom/facebook/datasource/e$a;Lcom/facebook/datasource/DataSource;)V
.locals 1
invoke-direct {p0, p1}, Lcom/facebook/datasource/e$a;->b(Lcom/facebook/datasource/DataSource;)Z
move-result v0
if-eqz v0, :cond_1
invoke-direct {p0}, Lcom/facebook/datasource/e$a;->fI()Lcom/facebook/datasource/DataSource;
move-result-object v0
if-eq p1, v0, :cond_0
invoke-static {p1}, Lcom/facebook/datasource/e$a;->c(Lcom/facebook/datasource/DataSource;)V
:cond_0
invoke-direct {p0}, Lcom/facebook/datasource/e$a;->fG()Z
move-result v0
if-nez v0, :cond_1
invoke-interface {p1}, Lcom/facebook/datasource/DataSource;->fC()Ljava/lang/Throwable;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/facebook/datasource/e$a;->d(Ljava/lang/Throwable;)Z
:cond_1
return-void
.end method
.method private declared-synchronized a(Lcom/facebook/datasource/DataSource;)Z
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/datasource/DataSource<",
"TT;>;)Z"
}
.end annotation
monitor-enter p0
:try_start_0
invoke-virtual {p0}, Lcom/facebook/datasource/e$a;->isClosed()Z
move-result v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_0
const/4 p1, 0x0
monitor-exit p0
return p1
:cond_0
:try_start_1
iput-object p1, p0, Lcom/facebook/datasource/e$a;->El:Lcom/facebook/datasource/DataSource;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
const/4 p1, 0x1
monitor-exit p0
return p1
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method static synthetic b(Lcom/facebook/datasource/e$a;Lcom/facebook/datasource/DataSource;)V
.locals 3
invoke-interface {p1}, Lcom/facebook/datasource/DataSource;->isFinished()Z
move-result v0
monitor-enter p0
:try_start_0
iget-object v1, p0, Lcom/facebook/datasource/e$a;->El:Lcom/facebook/datasource/DataSource;
const/4 v2, 0x0
if-ne p1, v1, :cond_3
iget-object v1, p0, Lcom/facebook/datasource/e$a;->Em:Lcom/facebook/datasource/DataSource;
if-ne p1, v1, :cond_0
goto :goto_2
:cond_0
iget-object v1, p0, Lcom/facebook/datasource/e$a;->Em:Lcom/facebook/datasource/DataSource;
if-eqz v1, :cond_2
if-eqz v0, :cond_1
goto :goto_0
:cond_1
move-object v0, v2
goto :goto_1
:cond_2
:goto_0
iget-object v0, p0, Lcom/facebook/datasource/e$a;->Em:Lcom/facebook/datasource/DataSource;
iput-object p1, p0, Lcom/facebook/datasource/e$a;->Em:Lcom/facebook/datasource/DataSource;
:goto_1
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-static {v0}, Lcom/facebook/datasource/e$a;->c(Lcom/facebook/datasource/DataSource;)V
goto :goto_3
:cond_3
:goto_2
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:goto_3
invoke-direct {p0}, Lcom/facebook/datasource/e$a;->fI()Lcom/facebook/datasource/DataSource;
move-result-object v0
if-ne p1, v0, :cond_4
invoke-interface {p1}, Lcom/facebook/datasource/DataSource;->isFinished()Z
move-result p1
invoke-virtual {p0, v2, p1}, Lcom/facebook/datasource/e$a;->a(Ljava/lang/Object;Z)Z
:cond_4
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
throw p1
.end method
.method private declared-synchronized b(Lcom/facebook/datasource/DataSource;)Z
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/datasource/DataSource<",
"TT;>;)Z"
}
.end annotation
monitor-enter p0
:try_start_0
invoke-virtual {p0}, Lcom/facebook/datasource/e$a;->isClosed()Z
move-result v0
if-nez v0, :cond_1
iget-object v0, p0, Lcom/facebook/datasource/e$a;->El:Lcom/facebook/datasource/DataSource;
if-eq p1, v0, :cond_0
goto :goto_0
:cond_0
const/4 p1, 0x0
iput-object p1, p0, Lcom/facebook/datasource/e$a;->El:Lcom/facebook/datasource/DataSource;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
const/4 p1, 0x1
monitor-exit p0
return p1
:cond_1
:goto_0
const/4 p1, 0x0
monitor-exit p0
return p1
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method private static c(Lcom/facebook/datasource/DataSource;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/datasource/DataSource<",
"TT;>;)V"
}
.end annotation
if-eqz p0, :cond_0
invoke-interface {p0}, Lcom/facebook/datasource/DataSource;->fD()Z
:cond_0
return-void
.end method
.method private fG()Z
.locals 3
invoke-direct {p0}, Lcom/facebook/datasource/e$a;->fH()Lcom/facebook/common/d/k;
move-result-object v0
if-eqz v0, :cond_0
invoke-interface {v0}, Lcom/facebook/common/d/k;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/facebook/datasource/DataSource;
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
invoke-direct {p0, v0}, Lcom/facebook/datasource/e$a;->a(Lcom/facebook/datasource/DataSource;)Z
move-result v1
const/4 v2, 0x0
if-eqz v1, :cond_1
if-eqz v0, :cond_1
new-instance v1, Lcom/facebook/datasource/e$a$a;
invoke-direct {v1, p0, v2}, Lcom/facebook/datasource/e$a$a;-><init>(Lcom/facebook/datasource/e$a;B)V
invoke-static {}, Lcom/facebook/common/b/a;->fc()Lcom/facebook/common/b/a;
move-result-object v2
invoke-interface {v0, v1, v2}, Lcom/facebook/datasource/DataSource;->a(Lcom/facebook/datasource/d;Ljava/util/concurrent/Executor;)V
const/4 v0, 0x1
return v0
:cond_1
invoke-static {v0}, Lcom/facebook/datasource/e$a;->c(Lcom/facebook/datasource/DataSource;)V
return v2
.end method
.method private declared-synchronized fH()Lcom/facebook/common/d/k;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/facebook/common/d/k<",
"Lcom/facebook/datasource/DataSource<",
"TT;>;>;"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
monitor-enter p0
:try_start_0
invoke-virtual {p0}, Lcom/facebook/datasource/e$a;->isClosed()Z
move-result v0
if-nez v0, :cond_0
iget v0, p0, Lcom/facebook/datasource/e$a;->mIndex:I
iget-object v1, p0, Lcom/facebook/datasource/e$a;->En:Lcom/facebook/datasource/e;
iget-object v1, v1, Lcom/facebook/datasource/e;->Ek:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v1
if-ge v0, v1, :cond_0
iget-object v0, p0, Lcom/facebook/datasource/e$a;->En:Lcom/facebook/datasource/e;
iget-object v0, v0, Lcom/facebook/datasource/e;->Ek:Ljava/util/List;
iget v1, p0, Lcom/facebook/datasource/e$a;->mIndex:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/facebook/datasource/e$a;->mIndex:I
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/facebook/common/d/k;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-object v0
:cond_0
const/4 v0, 0x0
monitor-exit p0
return-object v0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method private declared-synchronized fI()Lcom/facebook/datasource/DataSource;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/facebook/datasource/DataSource<",
"TT;>;"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/facebook/datasource/e$a;->Em:Lcom/facebook/datasource/DataSource;
: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
# virtual methods
.method public final declared-synchronized fA()Z
.locals 1
monitor-enter p0
:try_start_0
invoke-direct {p0}, Lcom/facebook/datasource/e$a;->fI()Lcom/facebook/datasource/DataSource;
move-result-object v0
if-eqz v0, :cond_0
invoke-interface {v0}, Lcom/facebook/datasource/DataSource;->fA()Z
move-result v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_0
const/4 v0, 0x1
:goto_0
monitor-exit p0
return v0
:cond_0
const/4 v0, 0x0
goto :goto_0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
return-void
.end method
.method public final fD()Z
.locals 3
monitor-enter p0
:try_start_0
invoke-super {p0}, Lcom/facebook/datasource/a;->fD()Z
move-result v0
if-nez v0, :cond_0
const/4 v0, 0x0
monitor-exit p0
return v0
:cond_0
iget-object v0, p0, Lcom/facebook/datasource/e$a;->El:Lcom/facebook/datasource/DataSource;
const/4 v1, 0x0
iput-object v1, p0, Lcom/facebook/datasource/e$a;->El:Lcom/facebook/datasource/DataSource;
iget-object v2, p0, Lcom/facebook/datasource/e$a;->Em:Lcom/facebook/datasource/DataSource;
iput-object v1, p0, Lcom/facebook/datasource/e$a;->Em:Lcom/facebook/datasource/DataSource;
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-static {v2}, Lcom/facebook/datasource/e$a;->c(Lcom/facebook/datasource/DataSource;)V
invoke-static {v0}, Lcom/facebook/datasource/e$a;->c(Lcom/facebook/datasource/DataSource;)V
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
throw v0
.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
invoke-direct {p0}, Lcom/facebook/datasource/e$a;->fI()Lcom/facebook/datasource/DataSource;
move-result-object v0
if-eqz v0, :cond_0
invoke-interface {v0}, Lcom/facebook/datasource/DataSource;->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_0
const/4 v0, 0x0
monitor-exit p0
return-object v0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method