apkfuckery/com.discord/smali/e/c/a/q1.smali
2020-04-27 22:53:11 +02:00

180 lines
3.5 KiB
Smali

.class public Le/c/a/q1;
.super Ljava/lang/Object;
.source "SdkClickHandler.java"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic d:Le/c/a/p1;
# direct methods
.method public constructor <init>(Le/c/a/p1;)V
.locals 0
iput-object p1, p0, Le/c/a/q1;->d:Le/c/a/p1;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 18
move-object/from16 v1, p0
iget-object v0, v1, Le/c/a/q1;->d:Le/c/a/p1;
iget-object v0, v0, Le/c/a/p1;->f:Ljava/lang/ref/WeakReference;
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Le/c/a/s0;
new-instance v2, Le/c/a/w1;
move-object v3, v0
check-cast v3, Le/c/a/g;
iget-object v3, v3, Le/c/a/g;->j:Le/c/a/v;
iget-object v3, v3, Le/c/a/v;->a:Landroid/content/Context;
invoke-direct {v2, v3}, Le/c/a/w1;-><init>(Landroid/content/Context;)V
const/4 v3, 0x0
const/4 v4, 0x1
:try_start_0
invoke-virtual {v2}, Le/c/a/w1;->c()Lorg/json/JSONArray;
move-result-object v5
const/4 v6, 0x0
const/4 v7, 0x0
:goto_0
invoke-virtual {v5}, Lorg/json/JSONArray;->length()I
move-result v8
if-ge v6, v8, :cond_1
invoke-virtual {v5, v6}, Lorg/json/JSONArray;->getJSONArray(I)Lorg/json/JSONArray;
move-result-object v8
const/4 v9, -0x1
const/4 v10, 0x2
invoke-virtual {v8, v10, v9}, Lorg/json/JSONArray;->optInt(II)I
move-result v9
if-eqz v9, :cond_0
goto :goto_1
:cond_0
const/4 v7, 0x0
invoke-virtual {v8, v3, v7}, Lorg/json/JSONArray;->optString(ILjava/lang/String;)Ljava/lang/String;
move-result-object v11
const-wide/16 v12, -0x1
invoke-virtual {v8, v4, v12, v13}, Lorg/json/JSONArray;->optLong(IJ)J
move-result-wide v12
invoke-virtual {v8, v10, v4}, Lorg/json/JSONArray;->put(II)Lorg/json/JSONArray;
move-object v7, v0
check-cast v7, Le/c/a/g;
iget-object v14, v7, Le/c/a/g;->c:Le/c/a/t;
move-object v7, v0
check-cast v7, Le/c/a/g;
iget-object v15, v7, Le/c/a/g;->j:Le/c/a/v;
move-object v7, v0
check-cast v7, Le/c/a/g;
iget-object v7, v7, Le/c/a/g;->i:Le/c/a/q0;
move-object v8, v0
check-cast v8, Le/c/a/g;
iget-object v8, v8, Le/c/a/g;->n:Le/c/a/u1;
move-object/from16 v16, v7
move-object/from16 v17, v8
invoke-static/range {v11 .. v17}, Lr/a/b/b/a;->a(Ljava/lang/String;JLe/c/a/t;Le/c/a/v;Le/c/a/q0;Le/c/a/u1;)Le/c/a/s;
move-result-object v7
iget-object v8, v1, Le/c/a/q1;->d:Le/c/a/p1;
invoke-virtual {v8, v7}, Le/c/a/p1;->b(Le/c/a/s;)V
const/4 v7, 0x1
:goto_1
add-int/lit8 v6, v6, 0x1
goto :goto_0
:cond_1
if-eqz v7, :cond_2
invoke-virtual {v2, v5}, Le/c/a/w1;->a(Lorg/json/JSONArray;)V
:try_end_0
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_2
:catch_0
move-exception v0
iget-object v2, v1, Le/c/a/q1;->d:Le/c/a/p1;
iget-object v2, v2, Le/c/a/p1;->b:Le/c/a/u0;
new-array v4, v4, [Ljava/lang/Object;
invoke-virtual {v0}, Lorg/json/JSONException;->getMessage()Ljava/lang/String;
move-result-object v0
aput-object v0, v4, v3
check-cast v2, Le/c/a/b1;
const-string v0, "Send saved raw referrers error (%s)"
invoke-virtual {v2, v0, v4}, Le/c/a/b1;->b(Ljava/lang/String;[Ljava/lang/Object;)V
:cond_2
:goto_2
return-void
.end method