.class public final Lcom/floydwiz/gamingcenter/activities/GameActivity;
.super Lf/e;
.source ""


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/floydwiz/gamingcenter/activities/GameActivity$a;
    }
.end annotation


# static fields
.field public static final synthetic L:I


# instance fields
.field public G:Lk4/a;

.field public H:Ls4/g;

.field public final I:Lcom/floydwiz/gamingcenter/activities/GameActivity$a;

.field public J:Landroidx/appcompat/app/b;

.field public K:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .registers 2

    invoke-direct {p0}, Lf/e;-><init>()V

    new-instance v0, Lcom/floydwiz/gamingcenter/activities/GameActivity$a;

    invoke-direct {v0, p0}, Lcom/floydwiz/gamingcenter/activities/GameActivity$a;-><init>(Lcom/floydwiz/gamingcenter/activities/GameActivity;)V

    iput-object v0, p0, Lcom/floydwiz/gamingcenter/activities/GameActivity;->I:Lcom/floydwiz/gamingcenter/activities/GameActivity$a;

    const-string v0, "https://5b0v4gg5o4.execute-api.ap-south-1.amazonaws.col/release/redirect-link?event_name=AFFILIATE_AD_CLICKED&ad_id=105&src=android"

    iput-object v0, p0, Lcom/floydwiz/gamingcenter/activities/GameActivity;->K:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
    .registers 24

    move-object/from16 v7, p0

    invoke-super/range {p0 .. p1}, Landroidx/fragment/app/r;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f0d001c

    invoke-static {v7, v0}, Landroidx/databinding/g;->e(Landroid/app/Activity;I)Landroidx/databinding/ViewDataBinding;

    move-result-object v0

    const-string v1, "setContentView(this, R.layout.activity_game)"

    invoke-static {v0, v1}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast v0, Lk4/a;

    iput-object v0, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->G:Lk4/a;

    new-instance v0, Landroidx/lifecycle/d0;

    invoke-direct {v0, v7}, Landroidx/lifecycle/d0;-><init>(Landroidx/lifecycle/f0;)V

    const-class v1, Ls4/g;

    invoke-virtual {v0, v1}, Landroidx/lifecycle/d0;->a(Ljava/lang/Class;)Landroidx/lifecycle/c0;

    move-result-object v0

    check-cast v0, Ls4/g;

    iput-object v0, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->H:Ls4/g;

    new-instance v0, Landroidx/lifecycle/d0;

    invoke-direct {v0, v7}, Landroidx/lifecycle/d0;-><init>(Landroidx/lifecycle/f0;)V

    const-class v1, Ls4/h;

    invoke-virtual {v0, v1}, Landroidx/lifecycle/d0;->a(Ljava/lang/Class;)Landroidx/lifecycle/c0;

    move-result-object v0

    check-cast v0, Ls4/h;

    iget-object v1, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->G:Lk4/a;

    const-string v8, "binding"

    if-eqz v1, :cond_408

    iget-object v1, v1, Lk4/a;->Z:Lk4/c0;

    invoke-virtual {v1, v0}, Lk4/c0;->t0(Ls4/h;)V

    iget-object v0, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->G:Lk4/a;

    if-eqz v0, :cond_403

    invoke-virtual {v0, v7}, Landroidx/databinding/ViewDataBinding;->p0(Landroidx/lifecycle/n;)V

    iget-object v0, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->G:Lk4/a;

    if-eqz v0, :cond_3fe

    iget-object v0, v0, Lk4/a;->Z:Lk4/c0;

    invoke-virtual {v0, v7}, Landroidx/databinding/ViewDataBinding;->p0(Landroidx/lifecycle/n;)V

    iget-object v0, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->G:Lk4/a;

    if-eqz v0, :cond_3f9

    iget-object v0, v0, Lk4/a;->T:Lk4/y;

    iget-object v1, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->H:Ls4/g;

    const-string v9, "viewModel"

    if-eqz v1, :cond_3f4

    invoke-virtual {v0, v1}, Lk4/y;->t0(Ls4/g;)V

    iget-object v0, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->G:Lk4/a;

    if-eqz v0, :cond_3ef

    iget-object v1, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->H:Ls4/g;

    if-eqz v1, :cond_3ea

    invoke-virtual {v0, v1}, Lk4/a;->t0(Ls4/g;)V

    .line 1
    iget-object v0, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->H:Ls4/g;

    if-eqz v0, :cond_3e5

    const-string v10, ""

    const-string v11, "game_centre"

    const/4 v1, 0x0

    .line 2
    invoke-virtual {v7, v11, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v2

    const-string v12, "ANDROID_ID"

    invoke-interface {v2, v12, v10}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    if-nez v2, :cond_7c

    move-object v2, v10

    .line 3
    :cond_7c
    iput-object v2, v0, Ls4/g;->d:Ljava/lang/String;

    .line 4
    iget-object v0, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->H:Ls4/g;

    if-eqz v0, :cond_3e0

    .line 5
    iget-object v2, v0, Ls4/g;->e:Lj4/d;

    .line 6
    iget-object v0, v0, Ls4/g;->d:Ljava/lang/String;

    if-eqz v0, :cond_89

    goto :goto_8a

    :cond_89
    move-object v0, v10

    .line 7
    :goto_8a
    invoke-static {v2}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 8
    iput-object v0, v2, Lj4/d;->d:Ljava/lang/String;

    .line 9
    iget-object v0, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->H:Ls4/g;

    if-eqz v0, :cond_3db

    .line 10
    iget-object v2, v0, Ls4/g;->i:Landroidx/lifecycle/t;

    .line 11
    invoke-virtual {v7, v11, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v3

    const-string v4, "USER_NAME"

    invoke-interface {v3, v4, v10}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-nez v3, :cond_a2

    move-object v3, v10

    .line 12
    :cond_a2
    invoke-virtual {v2, v3}, Landroidx/lifecycle/t;->k(Ljava/lang/Object;)V

    .line 13
    invoke-virtual {v7, v11, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v2

    const-string v3, "USER_IMAGE"

    invoke-interface {v2, v3, v10}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    if-nez v2, :cond_b2

    move-object v2, v10

    .line 14
    :cond_b2
    iget-object v0, v0, Ls4/g;->j:Landroidx/lifecycle/t;

    invoke-static {v2}, Lp9/h;->s(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_bc

    const/4 v2, 0x0

    goto :goto_c0

    :cond_bc
    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    :goto_c0
    invoke-virtual {v0, v2}, Landroidx/lifecycle/t;->k(Ljava/lang/Object;)V

    .line 15
    new-instance v0, Landroid/widget/ArrayAdapter;

    iget-object v2, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->H:Ls4/g;

    if-eqz v2, :cond_3d6

    .line 16
    iget-object v2, v2, Ls4/g;->s:Ljava/util/List;

    const v3, 0x7f0d006e

    .line 17
    invoke-direct {v0, v7, v3, v2}, Landroid/widget/ArrayAdapter;-><init>(Landroid/content/Context;ILjava/util/List;)V

    iget-object v2, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->G:Lk4/a;

    if-eqz v2, :cond_3d1

    iget-object v2, v2, Lk4/a;->W:Landroid/widget/Spinner;

    invoke-virtual {v2, v0}, Landroid/widget/Spinner;->setAdapter(Landroid/widget/SpinnerAdapter;)V

    sget-object v0, Lr4/b;->a:Lr4/b;

    const-string v0, "cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"

    .line 18
    :try_start_de
    invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/Runtime;->exec(Ljava/lang/String;)Ljava/lang/Process;

    move-result-object v0

    new-instance v2, Ljava/io/BufferedReader;

    new-instance v3, Ljava/io/InputStreamReader;

    invoke-virtual {v0}, Ljava/lang/Process;->getInputStream()Ljava/io/InputStream;

    move-result-object v0

    invoke-direct {v3, v0}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V

    invoke-direct {v2, v3}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    :goto_f9
    invoke-virtual {v2}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

    move-result-object v3

    if-eqz v3, :cond_109

    const-string v4, "\n"

    invoke-static {v3, v4}, Lx/e;->k(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_f9

    :cond_109
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v2, "{\n            val proces\u2026sult.toString()\n        }"

    invoke-static {v0, v2}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V
    :try_end_112
    .catch Ljava/io/IOException; {:try_start_de .. :try_end_112} :catch_3ca

    .line 19
    iget-object v2, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->G:Lk4/a;

    if-eqz v2, :cond_3c5

    iget-object v2, v2, Lk4/a;->W:Landroid/widget/Spinner;

    iget-object v3, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->H:Ls4/g;

    if-eqz v3, :cond_3c0

    .line 20
    iget-object v3, v3, Ls4/g;->s:Ljava/util/List;

    .line 21
    invoke-interface {v3, v0}, Ljava/util/List;->indexOf(Ljava/lang/Object;)I

    move-result v0

    invoke-virtual {v2, v0}, Landroid/widget/Spinner;->setSelection(I)V

    iget-object v0, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->G:Lk4/a;

    if-eqz v0, :cond_3bb

    iget-object v0, v0, Lk4/a;->W:Landroid/widget/Spinner;

    new-instance v2, Li4/g;

    invoke-direct {v2, v7}, Li4/g;-><init>(Lcom/floydwiz/gamingcenter/activities/GameActivity;)V

    invoke-virtual {v0, v2}, Landroid/widget/Spinner;->setOnItemSelectedListener(Landroid/widget/AdapterView$OnItemSelectedListener;)V

    .line 22
    invoke-virtual/range {p0 .. p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v2, "original_pkg"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_148

    invoke-virtual/range {p0 .. p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_149

    :cond_148
    const/4 v0, 0x0

    :goto_149
    move-object v4, v0

    invoke-virtual/range {p0 .. p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v2, "original_action"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_15f

    invoke-virtual/range {p0 .. p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_160

    :cond_15f
    const/4 v0, 0x0

    :goto_160
    move-object v5, v0

    invoke-virtual/range {p0 .. p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v2, "original_component"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_178

    invoke-virtual/range {p0 .. p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Landroid/content/ComponentName;

    goto :goto_179

    :cond_178
    const/4 v0, 0x0

    :goto_179
    move-object v6, v0

    invoke-virtual/range {p0 .. p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v2, "from_game_center"

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v3

    invoke-virtual/range {p0 .. p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "game_pkg"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_199

    invoke-virtual/range {p0 .. p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_19a

    :cond_199
    const/4 v0, 0x0

    :goto_19a
    iget-object v1, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->H:Ls4/g;

    if-eqz v1, :cond_3b6

    if-eqz v3, :cond_1a4

    if-eqz v0, :cond_1a8

    move-object v2, v0

    goto :goto_1a9

    :cond_1a4
    if-eqz v4, :cond_1a8

    move-object v2, v4

    goto :goto_1a9

    :cond_1a8
    move-object v2, v10

    .line 23
    :goto_1a9
    iget-object v13, v1, Ls4/g;->l:Landroidx/lifecycle/t;

    invoke-static {v7, v2}, Lq4/a;->a(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v14

    invoke-virtual {v13, v14}, Landroidx/lifecycle/t;->k(Ljava/lang/Object;)V

    iget-object v1, v1, Ls4/g;->k:Landroidx/lifecycle/t;

    invoke-static {v7, v2}, Lq4/a;->b(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroidx/lifecycle/t;->k(Ljava/lang/Object;)V

    .line 24
    iget-object v1, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->H:Ls4/g;

    if-eqz v1, :cond_3b1

    .line 25
    iget-object v1, v1, Ls4/g;->c:Ljava/lang/String;

    const/4 v13, 0x1

    if-eqz v1, :cond_1cd

    .line 26
    invoke-static {v1}, Lp9/h;->s(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_1cb

    goto :goto_1cd

    :cond_1cb
    const/4 v1, 0x0

    goto :goto_1ce

    :cond_1cd
    :goto_1cd
    move v1, v13

    :goto_1ce
    if-nez v1, :cond_1f1

    iget-object v1, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->H:Ls4/g;

    if-eqz v1, :cond_1ec

    .line 27
    iget-object v1, v1, Ls4/g;->c:Ljava/lang/String;

    .line 28
    invoke-static {v1, v4}, Lx/e;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1f1

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Object;

    const-string v2, "debuggamecentre game package already same, continue game intent"

    invoke-static {v2, v1}, Lbb/a;->a(Ljava/lang/String;[Ljava/lang/Object;)V

    invoke-virtual/range {p0 .. p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {v7, v1, v4, v5, v6}, Lcom/floydwiz/gamingcenter/activities/GameActivity;->v(Landroid/content/Intent;Ljava/lang/String;Ljava/lang/String;Landroid/content/ComponentName;)V

    goto :goto_1f1

    :cond_1ec
    invoke-static {v9}, Lx/e;->m(Ljava/lang/String;)V

    const/4 v0, 0x0

    throw v0

    :cond_1f1
    :goto_1f1
    iget-object v1, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->H:Ls4/g;

    if-eqz v1, :cond_3ac

    if-eqz v3, :cond_1f8

    goto :goto_1fe

    :cond_1f8
    if-nez v4, :cond_1fd

    const-string v0, "com.floydwiz.gamingcenter"

    goto :goto_1fe

    :cond_1fd
    move-object v0, v4

    .line 29
    :goto_1fe
    iput-object v0, v1, Ls4/g;->c:Ljava/lang/String;

    .line 30
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "debuggamecentre GameActivity launched, intent originalPkg = "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v1, " originalAction = "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v1, " originalComponent = "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lbb/a;->a(Ljava/lang/String;[Ljava/lang/Object;)V

    iget-object v0, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->G:Lk4/a;

    if-eqz v0, :cond_3a7

    iget-object v0, v0, Lk4/a;->X:Lcom/google/android/material/button/MaterialButton;

    new-instance v14, Li4/b;

    move-object v1, v14

    move-object/from16 v2, p0

    invoke-direct/range {v1 .. v6}, Li4/b;-><init>(Lcom/floydwiz/gamingcenter/activities/GameActivity;ZLjava/lang/String;Ljava/lang/String;Landroid/content/ComponentName;)V

    invoke-virtual {v0, v14}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->G:Lk4/a;

    if-eqz v0, :cond_3a2

    iget-object v0, v0, Lk4/a;->T:Lk4/y;

    iget-object v0, v0, Lk4/y;->M:Landroid/widget/EditText;

    new-instance v1, Li4/c;

    invoke-direct {v1, v7}, Li4/c;-><init>(Lcom/floydwiz/gamingcenter/activities/GameActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setOnEditorActionListener(Landroid/widget/TextView$OnEditorActionListener;)V

    iget-object v0, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->G:Lk4/a;

    if-eqz v0, :cond_39d

    iget-object v0, v0, Lk4/a;->Z:Lk4/c0;

    iget-object v0, v0, Lk4/c0;->Q:Landroid/widget/ImageView;

    new-instance v1, Li4/a;

    const/4 v2, 0x0

    invoke-direct {v1, v7, v2}, Li4/a;-><init>(Lcom/floydwiz/gamingcenter/activities/GameActivity;I)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->G:Lk4/a;

    if-eqz v0, :cond_398

    iget-object v0, v0, Lk4/a;->S:Landroid/widget/LinearLayout;

    new-instance v1, Li4/a;

    invoke-direct {v1, v7, v13}, Li4/a;-><init>(Lcom/floydwiz/gamingcenter/activities/GameActivity;I)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->H:Ls4/g;

    if-eqz v0, :cond_393

    .line 31
    sget-object v1, Lp4/b;->a:Lp4/b;

    invoke-virtual {v1}, Lp4/b;->a()Lp4/a;

    move-result-object v2

    new-instance v3, Lcom/floydwiz/gamingcenter/models/network/ChatRequest;

    const/4 v4, 0x2

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v14

    const/4 v4, 0x0

    .line 32
    invoke-virtual {v7, v11, v4}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v4

    invoke-interface {v4, v12, v10}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    if-nez v4, :cond_285

    move-object v15, v10

    goto :goto_286

    :cond_285
    move-object v15, v4

    :goto_286
    const-wide/16 v4, 0x0

    .line 33
    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v16

    iget-object v6, v0, Ls4/g;->c:Ljava/lang/String;

    const/4 v8, 0x0

    .line 34
    invoke-virtual {v7, v11, v8}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v8

    const-string v12, "FCM_TOKEN"

    invoke-interface {v8, v12, v10}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    if-nez v8, :cond_29e

    move-object/from16 v18, v10

    goto :goto_2a0

    :cond_29e
    move-object/from16 v18, v8

    :goto_2a0
    const/16 v19, 0x0

    const/16 v20, 0x20

    const/16 v21, 0x0

    move-object v13, v3

    move-object/from16 v17, v6

    .line 35
    invoke-direct/range {v13 .. v21}, Lcom/floydwiz/gamingcenter/models/network/ChatRequest;-><init>(Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/Long;Ljava/lang/String;Ljava/lang/String;Lcom/floydwiz/gamingcenter/models/network/ChatMessage;ILi9/c;)V

    const-string v6, "EglYf1HtFRNu3Z6Xd3Ge2k6qXeNiiVEPrknsLUa0"

    invoke-interface {v2, v6, v3}, Lp4/a;->f(Ljava/lang/String;Lcom/floydwiz/gamingcenter/models/network/ChatRequest;)Lya/b;

    move-result-object v2

    new-instance v3, Ls4/f;

    invoke-direct {v3, v0}, Ls4/f;-><init>(Ls4/g;)V

    invoke-interface {v2, v3}, Lya/b;->o(Lya/d;)V

    .line 36
    iget-object v0, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->H:Ls4/g;

    if-eqz v0, :cond_38e

    .line 37
    iget-object v0, v0, Ls4/g;->e:Lj4/d;

    .line 38
    new-instance v2, Li4/e;

    invoke-direct {v2, v7}, Li4/e;-><init>(Lcom/floydwiz/gamingcenter/activities/GameActivity;)V

    .line 39
    iget-object v0, v0, Landroidx/recyclerview/widget/RecyclerView$e;->a:Landroidx/recyclerview/widget/RecyclerView$f;

    invoke-virtual {v0, v2}, Landroid/database/Observable;->registerObserver(Ljava/lang/Object;)V

    .line 40
    iget-object v0, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->H:Ls4/g;

    if-eqz v0, :cond_389

    .line 41
    new-instance v0, Landroidx/lifecycle/t;

    invoke-direct {v0}, Landroidx/lifecycle/t;-><init>()V

    invoke-virtual {v1}, Lp4/b;->a()Lp4/a;

    move-result-object v1

    new-instance v2, Lcom/floydwiz/gamingcenter/models/network/GameCentreDataRequest;

    invoke-direct {v2}, Lcom/floydwiz/gamingcenter/models/network/GameCentreDataRequest;-><init>()V

    invoke-interface {v1, v2}, Lp4/a;->c(Lcom/floydwiz/gamingcenter/models/network/GameCentreDataRequest;)Lya/b;

    move-result-object v1

    new-instance v2, Ls4/a;

    invoke-direct {v2, v0}, Ls4/a;-><init>(Landroidx/lifecycle/t;)V

    invoke-interface {v1, v2}, Lya/b;->o(Lya/d;)V

    .line 42
    new-instance v1, Li4/d;

    invoke-direct {v1, v7}, Li4/d;-><init>(Lcom/floydwiz/gamingcenter/activities/GameActivity;)V

    invoke-virtual {v0, v7, v1}, Landroidx/lifecycle/LiveData;->e(Landroidx/lifecycle/n;Landroidx/lifecycle/u;)V

    .line 43
    sget-object v0, Lcom/floydwiz/gamingcenter/utils/network/AnalyticsHelper;->INSTANCE:Lcom/floydwiz/gamingcenter/utils/network/AnalyticsHelper;

    sget-object v1, Lcom/floydwiz/gamingcenter/utils/network/AnalyticsHelper$a;->r:Lcom/floydwiz/gamingcenter/utils/network/AnalyticsHelper$a;

    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2}, Lorg/json/JSONObject;-><init>()V

    const-string v3, "ACTIVITY_NAME"

    const-string v6, "GameActivity"

    invoke-virtual {v2, v3, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    move-result-object v2

    iget-object v3, v7, Lcom/floydwiz/gamingcenter/activities/GameActivity;->H:Ls4/g;

    if-eqz v3, :cond_384

    .line 44
    iget-object v3, v3, Ls4/g;->c:Ljava/lang/String;

    const-string v6, "GAME_PACKAGE"

    .line 45
    invoke-virtual {v2, v6, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/floydwiz/gamingcenter/utils/network/AnalyticsHelper;->postEvent(Lcom/floydwiz/gamingcenter/utils/network/AnalyticsHelper$a;Lorg/json/JSONObject;)V

    .line 46
    invoke-static/range {p0 .. p0}, Lm1/j;->b(Landroid/content/Context;)Lm1/j;

    move-result-object v13

    const-string v0, "getInstance(this)"

    .line 47
    invoke-static {v13, v0}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v1, "gamenotiworkerdebug: Work Manager executed!"

    invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V

    new-instance v0, Ll1/b$a;

    invoke-direct {v0}, Ll1/b$a;-><init>()V

    sget-object v1, Landroidx/work/d;->s:Landroidx/work/d;

    .line 48
    iput-object v1, v0, Ll1/b$a;->a:Landroidx/work/d;

    .line 49
    new-instance v1, Ll1/b;

    invoke-direct {v1, v0}, Ll1/b;-><init>(Ll1/b$a;)V

    const/4 v0, 0x0

    .line 50
    invoke-virtual {v7, v11, v0}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v2

    const-wide/16 v8, -0x1

    const-string v3, "NOTIFICATION_INTERVAL"

    invoke-interface {v2, v3, v8, v9}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J

    move-result-wide v14

    cmp-long v2, v14, v4

    if-gez v2, :cond_342

    const-wide/16 v2, 0x1e

    goto :goto_34a

    :cond_342
    invoke-virtual {v7, v11, v0}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0, v3, v8, v9}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J

    move-result-wide v2

    .line 51
    :goto_34a
    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    const-string v4, "gamenotiworkerdebug: interval: "

    invoke-static {v4, v0}, Lx/e;->k(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    sget-object v4, Ljava/lang/System;->out:Ljava/io/PrintStream;

    invoke-virtual {v4, v0}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V

    new-instance v0, Ll1/l$a;

    const-class v4, Lcom/floydwiz/gamingcenter/services/SessionBasedNotificationWorker;

    sget-object v5, Ljava/util/concurrent/TimeUnit;->MINUTES:Ljava/util/concurrent/TimeUnit;

    invoke-direct {v0, v4, v2, v3, v5}, Ll1/l$a;-><init>(Ljava/lang/Class;JLjava/util/concurrent/TimeUnit;)V

    .line 52
    iget-object v2, v0, Ll1/p$a;->b:Lu1/p;

    iput-object v1, v2, Lu1/p;->j:Ll1/b;

    .line 53
    invoke-virtual {v0}, Ll1/p$a;->a()Ll1/p;

    move-result-object v0

    const-string v1, "Builder(\n            Ses\u2026ints(constraints).build()"

    invoke-static {v0, v1}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast v0, Ll1/l;

    const/4 v15, 0x2

    .line 54
    new-instance v1, Lm1/f;

    invoke-static {v0}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;

    move-result-object v16

    const/16 v17, 0x0

    const-string v14, "check_available_notification"

    move-object v12, v1

    .line 55
    invoke-direct/range {v12 .. v17}, Lm1/f;-><init>(Lm1/j;Ljava/lang/String;ILjava/util/List;Ljava/util/List;)V

    .line 56
    invoke-virtual {v1}, Lm1/f;->a()Ll1/k;

    return-void

    .line 57
    :cond_384
    invoke-static {v9}, Lx/e;->m(Ljava/lang/String;)V

    const/4 v0, 0x0

    throw v0

    :cond_389
    const/4 v0, 0x0

    .line 58
    invoke-static {v9}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :cond_38e
    const/4 v0, 0x0

    .line 59
    invoke-static {v9}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :cond_393
    const/4 v0, 0x0

    .line 60
    invoke-static {v9}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :cond_398
    const/4 v0, 0x0

    invoke-static {v8}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :cond_39d
    const/4 v0, 0x0

    invoke-static {v8}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :cond_3a2
    const/4 v0, 0x0

    invoke-static {v8}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :cond_3a7
    const/4 v0, 0x0

    invoke-static {v8}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :cond_3ac
    const/4 v0, 0x0

    invoke-static {v9}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :cond_3b1
    const/4 v0, 0x0

    invoke-static {v9}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :cond_3b6
    const/4 v0, 0x0

    invoke-static {v9}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :cond_3bb
    const/4 v0, 0x0

    .line 61
    invoke-static {v8}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :cond_3c0
    const/4 v0, 0x0

    invoke-static {v9}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :cond_3c5
    const/4 v0, 0x0

    invoke-static {v8}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :catch_3ca
    move-exception v0

    .line 62
    new-instance v1, Ljava/lang/RuntimeException;

    invoke-direct {v1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V

    throw v1

    .line 63
    :cond_3d1
    invoke-static {v8}, Lx/e;->m(Ljava/lang/String;)V

    const/4 v0, 0x0

    throw v0

    :cond_3d6
    const/4 v0, 0x0

    invoke-static {v9}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :cond_3db
    const/4 v0, 0x0

    .line 64
    invoke-static {v9}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :cond_3e0
    const/4 v0, 0x0

    invoke-static {v9}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :cond_3e5
    const/4 v0, 0x0

    invoke-static {v9}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :cond_3ea
    const/4 v0, 0x0

    .line 65
    invoke-static {v9}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :cond_3ef
    const/4 v0, 0x0

    invoke-static {v8}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :cond_3f4
    const/4 v0, 0x0

    invoke-static {v9}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :cond_3f9
    const/4 v0, 0x0

    invoke-static {v8}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :cond_3fe
    const/4 v0, 0x0

    invoke-static {v8}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :cond_403
    const/4 v0, 0x0

    invoke-static {v8}, Lx/e;->m(Ljava/lang/String;)V

    throw v0

    :cond_408
    const/4 v0, 0x0

    invoke-static {v8}, Lx/e;->m(Ljava/lang/String;)V

    throw v0
.end method

.method public onResume()V
    .registers 11

    invoke-super {p0}, Landroidx/fragment/app/r;->onResume()V

    iget-object v0, p0, Lcom/floydwiz/gamingcenter/activities/GameActivity;->H:Ls4/g;

    const/4 v1, 0x0

    const-string v2, "viewModel"

    if-eqz v0, :cond_a8

    .line 1
    new-instance v3, Lo4/a;

    invoke-direct {v3, p0}, Lo4/a;-><init>(Landroid/content/Context;)V

    invoke-static {v0}, Lp/a;->e(Landroidx/lifecycle/c0;)Lq9/w;

    move-result-object v4

    new-instance v7, Ls4/e;

    invoke-direct {v7, v0, v3, v1}, Ls4/e;-><init>(Ls4/g;Lo4/a;Lb9/d;)V

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v8, 0x3

    const/4 v9, 0x0

    invoke-static/range {v4 .. v9}, Le/j;->d(Lq9/w;Lb9/f;Lq9/x;Lh9/c;ILjava/lang/Object;)Lq9/t0;

    .line 2
    sget-object v0, Ls9/k;->a:Lq9/b1;

    .line 3
    invoke-static {v0}, Lp/a;->a(Lb9/f;)Lq9/w;

    move-result-object v3

    const/4 v4, 0x0

    new-instance v6, Lcom/floydwiz/gamingcenter/activities/GameActivity$b;

    invoke-direct {v6, p0, v1}, Lcom/floydwiz/gamingcenter/activities/GameActivity$b;-><init>(Lcom/floydwiz/gamingcenter/activities/GameActivity;Lb9/d;)V

    const/4 v7, 0x3

    const/4 v8, 0x0

    invoke-static/range {v3 .. v8}, Le/j;->d(Lq9/w;Lb9/f;Lq9/x;Lh9/c;ILjava/lang/Object;)Lq9/t0;

    iget-object v0, p0, Lcom/floydwiz/gamingcenter/activities/GameActivity;->H:Ls4/g;

    if-eqz v0, :cond_a4

    .line 4
    iget-boolean v3, v0, Ls4/g;->u:Z

    if-eqz v3, :cond_7f

    const/4 v3, 0x0

    .line 5
    iput-boolean v3, v0, Ls4/g;->u:Z

    .line 6
    invoke-static {p0}, Lcom/bumptech/glide/b;->b(Landroid/content/Context;)Lcom/bumptech/glide/b;

    move-result-object v0

    .line 7
    iget-object v0, v0, Lcom/bumptech/glide/b;->w:Lz3/m;

    .line 8
    invoke-virtual {v0, p0}, Lz3/m;->c(Landroidx/fragment/app/r;)Lcom/bumptech/glide/i;

    move-result-object v0

    .line 9
    invoke-virtual {v0}, Lcom/bumptech/glide/i;->i()Lcom/bumptech/glide/h;

    move-result-object v0

    iget-object v3, p0, Lcom/floydwiz/gamingcenter/activities/GameActivity;->H:Ls4/g;

    if-eqz v3, :cond_7b

    .line 10
    iget-object v3, v3, Ls4/g;->z:Ljava/lang/String;

    .line 11
    invoke-virtual {v0, v3}, Lcom/bumptech/glide/h;->D(Ljava/lang/Object;)Lcom/bumptech/glide/h;

    move-result-object v0

    .line 12
    sget-object v3, Lm3/k;->a:Lm3/k;

    invoke-virtual {v0, v3}, Lc4/a;->d(Lm3/k;)Lc4/a;

    move-result-object v0

    check-cast v0, Lcom/bumptech/glide/h;

    const/4 v3, 0x1

    invoke-virtual {v0, v3}, Lc4/a;->q(Z)Lc4/a;

    move-result-object v0

    check-cast v0, Lcom/bumptech/glide/h;

    sget-object v3, Lcom/bumptech/glide/f;->r:Lcom/bumptech/glide/f;

    invoke-virtual {v0, v3}, Lc4/a;->l(Lcom/bumptech/glide/f;)Lc4/a;

    move-result-object v0

    check-cast v0, Lcom/bumptech/glide/h;

    invoke-virtual {v0}, Lc4/a;->f()Lc4/a;

    move-result-object v0

    check-cast v0, Lcom/bumptech/glide/h;

    new-instance v3, Li4/f;

    invoke-direct {v3, p0}, Li4/f;-><init>(Lcom/floydwiz/gamingcenter/activities/GameActivity;)V

    .line 13
    sget-object v4, Lg4/e;->a:Ljava/util/concurrent/Executor;

    .line 14
    invoke-virtual {v0, v3, v1, v0, v4}, Lcom/bumptech/glide/h;->B(Ld4/g;Lc4/e;Lc4/a;Ljava/util/concurrent/Executor;)Ld4/g;

    goto :goto_7f

    .line 15
    :cond_7b
    invoke-static {v2}, Lx/e;->m(Ljava/lang/String;)V

    throw v1

    .line 16
    :cond_7f
    :goto_7f
    sget-object v0, Lcom/floydwiz/gamingcenter/utils/network/AnalyticsHelper;->INSTANCE:Lcom/floydwiz/gamingcenter/utils/network/AnalyticsHelper;

    sget-object v3, Lcom/floydwiz/gamingcenter/utils/network/AnalyticsHelper$a;->v:Lcom/floydwiz/gamingcenter/utils/network/AnalyticsHelper$a;

    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4}, Lorg/json/JSONObject;-><init>()V

    const-string v5, "ACTIVITY_NAME"

    const-string v6, "GameActivity"

    invoke-virtual {v4, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    move-result-object v4

    iget-object v5, p0, Lcom/floydwiz/gamingcenter/activities/GameActivity;->H:Ls4/g;

    if-eqz v5, :cond_a0

    .line 17
    iget-object v1, v5, Ls4/g;->c:Ljava/lang/String;

    const-string v2, "GAME_PACKAGE"

    .line 18
    invoke-virtual {v4, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    move-result-object v1

    invoke-virtual {v0, v3, v1}, Lcom/floydwiz/gamingcenter/utils/network/AnalyticsHelper;->postEvent(Lcom/floydwiz/gamingcenter/utils/network/AnalyticsHelper$a;Lorg/json/JSONObject;)V

    return-void

    :cond_a0
    invoke-static {v2}, Lx/e;->m(Ljava/lang/String;)V

    throw v1

    :cond_a4
    invoke-static {v2}, Lx/e;->m(Ljava/lang/String;)V

    throw v1

    :cond_a8
    invoke-static {v2}, Lx/e;->m(Ljava/lang/String;)V

    throw v1
.end method

.method public onStart()V
    .registers 4

    invoke-super {p0}, Lf/e;->onStart()V

    iget-object v0, p0, Lcom/floydwiz/gamingcenter/activities/GameActivity;->I:Lcom/floydwiz/gamingcenter/activities/GameActivity$a;

    new-instance v1, Landroid/content/IntentFilter;

    const-string v2, "update_game_chat"

    invoke-direct {v1, v2}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0, v1}, Landroid/app/Activity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    return-void
.end method

.method public onStop()V
    .registers 2

    invoke-super {p0}, Lf/e;->onStop()V

    iget-object v0, p0, Lcom/floydwiz/gamingcenter/activities/GameActivity;->I:Lcom/floydwiz/gamingcenter/activities/GameActivity$a;

    invoke-virtual {p0, v0}, Landroid/app/Activity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    return-void
.end method

.method public final v(Landroid/content/Intent;Ljava/lang/String;Ljava/lang/String;Landroid/content/ComponentName;)V
    .registers 5

    if-nez p1, :cond_3

    goto :goto_6

    :cond_3
    invoke-virtual {p1, p3}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    :goto_6
    if-nez p1, :cond_9

    goto :goto_c

    :cond_9
    invoke-virtual {p1, p2}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    :goto_c
    if-nez p1, :cond_f

    goto :goto_12

    :cond_f
    invoke-virtual {p1, p4}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

    :goto_12
    if-nez p1, :cond_15

    goto :goto_1b

    :cond_15
    const/4 p2, 0x1

    const-string p3, "from_floyd_gc"

    invoke-virtual {p1, p3, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    :goto_1b
    sget p2, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 p3, 0x1a

    invoke-virtual {p0, p1}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    return-void
.end method
