apkfuckery/com.discord/smali/f/c/a/v0.smali
2020-07-20 19:00:44 +00:00

1016 lines
22 KiB
Smali

.class public Lf/c/a/v0;
.super Ljava/lang/Object;
.source "InstallReferrer.java"
# interfaces
.implements Ljava/lang/reflect/InvocationHandler;
# instance fields
.field public a:I
.field public b:I
.field public c:Z
.field public d:Lf/c/a/q0;
.field public e:Ljava/lang/Object;
.field public f:Landroid/content/Context;
.field public g:Ljava/lang/Object;
.field public h:Lf/c/a/u1;
.field public i:Ljava/lang/ref/WeakReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/WeakReference<",
"Lf/c/a/o0;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroid/content/Context;Lf/c/a/o0;)V
.locals 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/16 v0, 0xbb8
iput v0, p0, Lf/c/a/v0;->a:I
invoke-static {}, Lf/c/a/v;->a()Lf/c/a/q0;
move-result-object v0
iput-object v0, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
iput-object p1, p0, Lf/c/a/v0;->f:Landroid/content/Context;
new-instance p1, Ljava/lang/Object;
invoke-direct {p1}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lf/c/a/v0;->g:Ljava/lang/Object;
const/4 p1, 0x0
iput-boolean p1, p0, Lf/c/a/v0;->c:Z
iput p1, p0, Lf/c/a/v0;->b:I
new-instance p1, Lf/c/a/u1;
new-instance v0, Lf/c/a/v0$a;
invoke-direct {v0, p0}, Lf/c/a/v0$a;-><init>(Lf/c/a/v0;)V
const-string v1, "InstallReferrer"
invoke-direct {p1, v0, v1}, Lf/c/a/u1;-><init>(Ljava/lang/Runnable;Ljava/lang/String;)V
iput-object p1, p0, Lf/c/a/v0;->h:Lf/c/a/u1;
new-instance p1, Ljava/lang/ref/WeakReference;
invoke-direct {p1, p2}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
iput-object p1, p0, Lf/c/a/v0;->i:Ljava/lang/ref/WeakReference;
invoke-virtual {p0}, Lf/c/a/v0;->d()V
return-void
.end method
# virtual methods
.method public final a()V
.locals 5
iget-object v0, p0, Lf/c/a/v0;->e:Ljava/lang/Object;
if-nez v0, :cond_0
return-void
:cond_0
const/4 v1, 0x0
const/4 v2, 0x0
:try_start_0
const-string v3, "endConnection"
new-array v4, v2, [Ljava/lang/Object;
invoke-static {v0, v3, v1, v4}, Ld0/a/b/b/a;->g0(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v0
iget-object v3, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
const/4 v4, 0x1
new-array v4, v4, [Ljava/lang/Object;
invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object v0
aput-object v0, v4, v2
check-cast v3, Lf/c/a/x0;
const-string v0, "closeReferrerClient error (%s)"
invoke-virtual {v3, v0, v4}, Lf/c/a/x0;->b(Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
iput-object v1, p0, Lf/c/a/v0;->e:Ljava/lang/Object;
return-void
.end method
.method public b(I)V
.locals 14
const/4 v0, -0x1
const/4 v1, 0x0
if-eq p1, v0, :cond_9
const/4 v0, 0x3
const/4 v2, 0x2
const/4 v3, 0x1
if-eqz p1, :cond_3
if-eq p1, v3, :cond_2
if-eq p1, v2, :cond_1
if-eq p1, v0, :cond_0
iget-object v0, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
const-string v2, "Unexpected response code of install referrer response: %d"
new-array v3, v3, [Ljava/lang/Object;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
aput-object p1, v3, v1
check-cast v0, Lf/c/a/x0;
invoke-virtual {v0, v2, v3}, Lf/c/a/x0;->a(Ljava/lang/String;[Ljava/lang/Object;)V
goto/16 :goto_8
:cond_0
iget-object p1, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
const-string v0, "Install referrer general errors caused by incorrect usage. Retrying ..."
new-array v1, v1, [Ljava/lang/Object;
check-cast p1, Lf/c/a/x0;
invoke-virtual {p1, v0, v1}, Lf/c/a/x0;->a(Ljava/lang/String;[Ljava/lang/Object;)V
invoke-virtual {p0}, Lf/c/a/v0;->c()V
goto/16 :goto_8
:cond_1
iget-object p1, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
const-string v0, "Install referrer not available on the current Play Store app."
new-array v1, v1, [Ljava/lang/Object;
check-cast p1, Lf/c/a/x0;
invoke-virtual {p1, v0, v1}, Lf/c/a/x0;->a(Ljava/lang/String;[Ljava/lang/Object;)V
goto/16 :goto_8
:cond_2
iget-object p1, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
const-string v0, "Could not initiate connection to the Install Referrer service. Retrying ..."
new-array v1, v1, [Ljava/lang/Object;
check-cast p1, Lf/c/a/x0;
invoke-virtual {p1, v0, v1}, Lf/c/a/x0;->a(Ljava/lang/String;[Ljava/lang/Object;)V
invoke-virtual {p0}, Lf/c/a/v0;->c()V
goto/16 :goto_8
:cond_3
:try_start_0
iget-object p1, p0, Lf/c/a/v0;->e:Ljava/lang/Object;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_4
const/4 v4, 0x0
if-nez p1, :cond_4
:goto_0
move-object p1, v4
goto :goto_1
:cond_4
:try_start_1
const-string v5, "getInstallReferrer"
new-array v6, v1, [Ljava/lang/Object;
invoke-static {p1, v5, v4, v6}, Ld0/a/b/b/a;->g0(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
goto :goto_1
:catch_0
move-exception p1
:try_start_2
iget-object v5, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
new-array v6, v3, [Ljava/lang/Object;
invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object p1
aput-object p1, v6, v1
check-cast v5, Lf/c/a/x0;
const-string p1, "getInstallReferrer error (%s)"
invoke-virtual {v5, p1, v6}, Lf/c/a/x0;->b(Ljava/lang/String;[Ljava/lang/Object;)V
:try_end_2
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_4
goto :goto_0
:goto_1
if-nez p1, :cond_5
:goto_2
move-object v13, v4
goto :goto_3
:cond_5
:try_start_3
const-string v5, "getInstallReferrer"
new-array v6, v1, [Ljava/lang/Object;
invoke-static {p1, v5, v4, v6}, Ld0/a/b/b/a;->g0(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v5
check-cast v5, Ljava/lang/String;
:try_end_3
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1
move-object v13, v5
goto :goto_3
:catch_1
move-exception v5
:try_start_4
iget-object v6, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
new-array v7, v3, [Ljava/lang/Object;
invoke-virtual {v5}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object v5
aput-object v5, v7, v1
check-cast v6, Lf/c/a/x0;
const-string v5, "getStringInstallReferrer error (%s)"
invoke-virtual {v6, v5, v7}, Lf/c/a/x0;->b(Ljava/lang/String;[Ljava/lang/Object;)V
:try_end_4
.catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_4
goto :goto_2
:goto_3
const-wide/16 v5, -0x1
if-nez p1, :cond_6
:goto_4
move-wide v9, v5
goto :goto_5
:cond_6
:try_start_5
const-string v7, "getReferrerClickTimestampSeconds"
new-array v8, v1, [Ljava/lang/Object;
invoke-static {p1, v7, v4, v8}, Ld0/a/b/b/a;->g0(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v7
check-cast v7, Ljava/lang/Long;
invoke-virtual {v7}, Ljava/lang/Long;->longValue()J
move-result-wide v7
:try_end_5
.catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_2
move-wide v9, v7
goto :goto_5
:catch_2
move-exception v7
:try_start_6
iget-object v8, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
new-array v9, v3, [Ljava/lang/Object;
invoke-virtual {v7}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object v7
aput-object v7, v9, v1
check-cast v8, Lf/c/a/x0;
const-string v7, "getReferrerClickTimestampSeconds error (%s)"
invoke-virtual {v8, v7, v9}, Lf/c/a/x0;->b(Ljava/lang/String;[Ljava/lang/Object;)V
:try_end_6
.catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_4
goto :goto_4
:goto_5
if-nez p1, :cond_7
:goto_6
move-wide v11, v5
goto :goto_7
:cond_7
:try_start_7
const-string v7, "getInstallBeginTimestampSeconds"
new-array v8, v1, [Ljava/lang/Object;
invoke-static {p1, v7, v4, v8}, Ld0/a/b/b/a;->g0(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/Long;
invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
move-result-wide v4
:try_end_7
.catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_3
move-wide v11, v4
goto :goto_7
:catch_3
move-exception p1
:try_start_8
iget-object v4, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
new-array v7, v3, [Ljava/lang/Object;
invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object p1
aput-object p1, v7, v1
check-cast v4, Lf/c/a/x0;
const-string p1, "getInstallBeginTimestampSeconds error (%s)"
invoke-virtual {v4, p1, v7}, Lf/c/a/x0;->b(Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_6
:goto_7
iget-object p1, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
const-string v4, "installReferrer: %s, clickTime: %d, installBeginTime: %d"
new-array v0, v0, [Ljava/lang/Object;
aput-object v13, v0, v1
invoke-static {v9, v10}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v5
aput-object v5, v0, v3
invoke-static {v11, v12}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v5
aput-object v5, v0, v2
:try_end_8
.catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_4
check-cast p1, Lf/c/a/x0;
:try_start_9
invoke-virtual {p1, v4, v0}, Lf/c/a/x0;->a(Ljava/lang/String;[Ljava/lang/Object;)V
iget-object p1, p0, Lf/c/a/v0;->i:Ljava/lang/ref/WeakReference;
invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object p1
move-object v8, p1
check-cast v8, Lf/c/a/o0;
if-eqz v8, :cond_8
invoke-interface/range {v8 .. v13}, Lf/c/a/o0;->i(JJLjava/lang/String;)V
:cond_8
iget-object p1, p0, Lf/c/a/v0;->g:Ljava/lang/Object;
monitor-enter p1
:try_end_9
.catch Ljava/lang/Exception; {:try_start_9 .. :try_end_9} :catch_4
:try_start_a
iput-boolean v3, p0, Lf/c/a/v0;->c:Z
monitor-exit p1
goto :goto_8
:catchall_0
move-exception v0
monitor-exit p1
:try_end_a
.catchall {:try_start_a .. :try_end_a} :catchall_0
:try_start_b
throw v0
:try_end_b
.catch Ljava/lang/Exception; {:try_start_b .. :try_end_b} :catch_4
:catch_4
move-exception p1
iget-object v0, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
const-string v2, "Couldn\'t get install referrer from client (%s). Retrying ..."
new-array v3, v3, [Ljava/lang/Object;
invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object p1
aput-object p1, v3, v1
check-cast v0, Lf/c/a/x0;
invoke-virtual {v0, v2, v3}, Lf/c/a/x0;->a(Ljava/lang/String;[Ljava/lang/Object;)V
invoke-virtual {p0}, Lf/c/a/v0;->c()V
goto :goto_8
:cond_9
iget-object p1, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
const-string v0, "Play Store service is not connected now. Retrying ..."
new-array v1, v1, [Ljava/lang/Object;
check-cast p1, Lf/c/a/x0;
invoke-virtual {p1, v0, v1}, Lf/c/a/x0;->a(Ljava/lang/String;[Ljava/lang/Object;)V
invoke-virtual {p0}, Lf/c/a/v0;->c()V
:goto_8
invoke-virtual {p0}, Lf/c/a/v0;->a()V
return-void
.end method
.method public final c()V
.locals 7
iget-object v0, p0, Lf/c/a/v0;->g:Ljava/lang/Object;
monitor-enter v0
:try_start_0
iget-boolean v1, p0, Lf/c/a/v0;->c:Z
const/4 v2, 0x0
if-eqz v1, :cond_0
iget-object v1, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
const-string v3, "Install referrer has already been read"
new-array v2, v2, [Ljava/lang/Object;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
check-cast v1, Lf/c/a/x0;
:try_start_1
invoke-virtual {v1, v3, v2}, Lf/c/a/x0;->a(Ljava/lang/String;[Ljava/lang/Object;)V
monitor-exit v0
return-void
:cond_0
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
iget v0, p0, Lf/c/a/v0;->b:I
const/4 v1, 0x1
add-int/2addr v0, v1
iput v0, p0, Lf/c/a/v0;->b:I
const/4 v3, 0x2
if-le v0, v3, :cond_1
iget-object v0, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
const-string v1, "Limit number of retry for install referrer surpassed"
new-array v2, v2, [Ljava/lang/Object;
check-cast v0, Lf/c/a/x0;
invoke-virtual {v0, v1, v2}, Lf/c/a/x0;->a(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
:cond_1
iget-object v0, p0, Lf/c/a/v0;->h:Lf/c/a/u1;
invoke-virtual {v0}, Lf/c/a/u1;->b()J
move-result-wide v3
const-wide/16 v5, 0x0
cmp-long v0, v3, v5
if-lez v0, :cond_2
iget-object v0, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
const-string v5, "Already waiting to retry to read install referrer in %d milliseconds"
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v3
aput-object v3, v1, v2
check-cast v0, Lf/c/a/x0;
invoke-virtual {v0, v5, v1}, Lf/c/a/x0;->a(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
:cond_2
iget-object v0, p0, Lf/c/a/v0;->h:Lf/c/a/u1;
iget v1, p0, Lf/c/a/v0;->a:I
int-to-long v1, v1
invoke-virtual {v0, v1, v2}, Lf/c/a/u1;->c(J)V
return-void
:catchall_0
move-exception v1
:try_start_2
monitor-exit v0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
throw v1
.end method
.method public d()V
.locals 8
invoke-virtual {p0}, Lf/c/a/v0;->a()V
iget-object v0, p0, Lf/c/a/v0;->g:Ljava/lang/Object;
monitor-enter v0
:try_start_0
iget-boolean v1, p0, Lf/c/a/v0;->c:Z
const/4 v2, 0x0
if-eqz v1, :cond_0
iget-object v1, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
const-string v3, "Install referrer has already been read"
new-array v2, v2, [Ljava/lang/Object;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
check-cast v1, Lf/c/a/x0;
:try_start_1
invoke-virtual {v1, v3, v2}, Lf/c/a/x0;->a(Ljava/lang/String;[Ljava/lang/Object;)V
monitor-exit v0
return-void
:cond_0
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
iget-object v0, p0, Lf/c/a/v0;->f:Landroid/content/Context;
const/4 v1, 0x0
const/4 v3, 0x1
if-nez v0, :cond_1
:goto_0
move-object v0, v1
goto :goto_1
:cond_1
:try_start_2
const-string v4, "com.android.installreferrer.api.InstallReferrerClient"
const-string v5, "newBuilder"
new-array v6, v3, [Ljava/lang/Class;
const-class v7, Landroid/content/Context;
aput-object v7, v6, v2
new-array v7, v3, [Ljava/lang/Object;
aput-object v0, v7, v2
invoke-static {v4, v5, v6, v7}, Ld0/a/b/b/a;->h0(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
const-string v4, "build"
new-array v5, v2, [Ljava/lang/Object;
invoke-static {v0, v4, v1, v5}, Ld0/a/b/b/a;->g0(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
:try_end_2
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
goto :goto_1
:catch_0
move-exception v0
iget-object v4, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
new-array v5, v3, [Ljava/lang/Object;
invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object v0
aput-object v0, v5, v2
check-cast v4, Lf/c/a/x0;
const-string v0, "Couldn\'t create instance of referrer client (%s)"
invoke-virtual {v4, v0, v5}, Lf/c/a/x0;->e(Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_0
:goto_1
iput-object v0, p0, Lf/c/a/v0;->e:Ljava/lang/Object;
:try_start_3
const-string v0, "f.e.a.a.a"
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v0
:try_end_3
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1
goto :goto_2
:catch_1
move-exception v0
iget-object v4, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
new-array v5, v3, [Ljava/lang/Object;
invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object v0
aput-object v0, v5, v2
check-cast v4, Lf/c/a/x0;
const-string v0, "getInstallReferrerStateListenerClass error (%s)"
invoke-virtual {v4, v0, v5}, Lf/c/a/x0;->b(Ljava/lang/String;[Ljava/lang/Object;)V
move-object v0, v1
:goto_2
if-nez v0, :cond_2
goto :goto_3
:cond_2
invoke-virtual {v0}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object v1
new-array v4, v3, [Ljava/lang/Class;
aput-object v0, v4, v2
invoke-static {v1, v4, p0}, Ljava/lang/reflect/Proxy;->newProxyInstance(Ljava/lang/ClassLoader;[Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)Ljava/lang/Object;
move-result-object v1
:goto_3
iget-object v4, p0, Lf/c/a/v0;->e:Ljava/lang/Object;
if-nez v4, :cond_3
goto :goto_4
:cond_3
if-eqz v0, :cond_5
if-nez v1, :cond_4
goto :goto_4
:cond_4
:try_start_4
const-string v5, "startConnection"
new-array v6, v3, [Ljava/lang/Class;
aput-object v0, v6, v2
new-array v0, v3, [Ljava/lang/Object;
aput-object v1, v0, v2
invoke-static {v4, v5, v6, v0}, Ld0/a/b/b/a;->g0(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_4
.catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_2
goto :goto_4
:catch_2
move-exception v0
iget-object v1, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
new-array v3, v3, [Ljava/lang/Object;
invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object v0
aput-object v0, v3, v2
check-cast v1, Lf/c/a/x0;
const-string v0, "startConnection error (%s)"
invoke-virtual {v1, v0, v3}, Lf/c/a/x0;->b(Ljava/lang/String;[Ljava/lang/Object;)V
:cond_5
:goto_4
return-void
:catchall_0
move-exception v1
:try_start_5
monitor-exit v0
:try_end_5
.catchall {:try_start_5 .. :try_end_5} :catchall_0
throw v1
.end method
.method public invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
const/4 p1, 0x1
const/4 v0, 0x0
:try_start_0
invoke-virtual {p2}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
move-result-object p2
iget-object v1, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
const-string v2, "InstallReferrer invoke method name: %s"
new-array v3, p1, [Ljava/lang/Object;
aput-object p2, v3, v0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
check-cast v1, Lf/c/a/x0;
:try_start_1
invoke-virtual {v1, v2, v3}, Lf/c/a/x0;->a(Ljava/lang/String;[Ljava/lang/Object;)V
array-length v1, p3
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, p3, v2
iget-object v4, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
const-string v5, "InstallReferrer invoke arg: %s"
new-array v6, p1, [Ljava/lang/Object;
aput-object v3, v6, v0
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
check-cast v4, Lf/c/a/x0;
:try_start_2
invoke-virtual {v4, v5, v6}, Lf/c/a/x0;->a(Ljava/lang/String;[Ljava/lang/Object;)V
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
const-string v1, "onInstallReferrerSetupFinished"
invoke-virtual {p2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_1
aget-object p2, p3, v0
check-cast p2, Ljava/lang/Integer;
invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I
move-result p2
invoke-virtual {p0, p2}, Lf/c/a/v0;->b(I)V
goto :goto_1
:cond_1
const-string p3, "onInstallReferrerServiceDisconnected"
invoke-virtual {p2, p3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p2
if-eqz p2, :cond_2
iget-object p2, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
const-string p3, "InstallReferrer onInstallReferrerServiceDisconnected"
new-array v1, v0, [Ljava/lang/Object;
:try_end_2
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
check-cast p2, Lf/c/a/x0;
:try_start_3
invoke-virtual {p2, p3, v1}, Lf/c/a/x0;->a(Ljava/lang/String;[Ljava/lang/Object;)V
:try_end_3
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0
goto :goto_1
:catch_0
move-exception p2
iget-object p3, p0, Lf/c/a/v0;->d:Lf/c/a/q0;
new-array p1, p1, [Ljava/lang/Object;
invoke-virtual {p2}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object p2
aput-object p2, p1, v0
check-cast p3, Lf/c/a/x0;
const-string p2, "InstallReferrer invoke error (%s)"
invoke-virtual {p3, p2, p1}, Lf/c/a/x0;->b(Ljava/lang/String;[Ljava/lang/Object;)V
:cond_2
:goto_1
const/4 p1, 0x0
return-object p1
.end method