.class public Lcom/google/firebase/messaging/FirebaseMessagingService;
.super Lk8/e;
.source ""


# static fields
.field public static final w:Ljava/util/Queue;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Queue<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field


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

    new-instance v0, Ljava/util/ArrayDeque;

    const/16 v1, 0xa

    invoke-direct {v0, v1}, Ljava/util/ArrayDeque;-><init>(I)V

    sput-object v0, Lcom/google/firebase/messaging/FirebaseMessagingService;->w:Ljava/util/Queue;

    return-void
.end method

.method public constructor <init>()V
    .registers 1

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

    return-void
.end method


# virtual methods
.method public b(Landroid/content/Intent;)V
    .registers 33

    move-object/from16 v1, p0

    move-object/from16 v2, p1

    invoke-virtual/range {p1 .. p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string v3, "com.google.android.c2dm.intent.RECEIVE"

    invoke-virtual {v3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    const-string v4, "com.google.firebase.messaging.RECEIVE_DIRECT_BOOT"

    const-string v5, "FirebaseMessaging"

    if-nez v3, :cond_4b

    invoke-virtual {v4, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1b

    goto :goto_4b

    :cond_1b
    const-string v3, "com.google.firebase.messaging.NEW_TOKEN"

    invoke-virtual {v3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2d

    const-string v0, "token"

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

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/google/firebase/messaging/FirebaseMessagingService;->d(Ljava/lang/String;)V

    return-void

    :cond_2d
    invoke-virtual/range {p1 .. p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    const-string v2, "Unknown intent action: "

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v3

    if-eqz v3, :cond_42

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

    move-result-object v0

    goto :goto_47

    :cond_42
    new-instance v0, Ljava/lang/String;

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

    :goto_47
    invoke-static {v5, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    return-void

    :cond_4b
    :goto_4b
    const-string v0, "google.message_id"

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

    move-result-object v3

    .line 2
    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v6

    const/4 v7, 0x1

    const/4 v8, 0x3

    const/4 v9, 0x0

    if-eqz v6, :cond_5b

    goto :goto_94

    :cond_5b
    sget-object v6, Lcom/google/firebase/messaging/FirebaseMessagingService;->w:Ljava/util/Queue;

    check-cast v6, Ljava/util/ArrayDeque;

    invoke-virtual {v6, v3}, Ljava/util/ArrayDeque;->contains(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_86

    invoke-static {v5, v8}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z

    move-result v6

    if-eqz v6, :cond_84

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    const-string v6, "Received duplicate message: "

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v10

    if-eqz v10, :cond_7c

    invoke-virtual {v6, v3}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    goto :goto_81

    :cond_7c
    new-instance v3, Ljava/lang/String;

    invoke-direct {v3, v6}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    :goto_81
    invoke-static {v5, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    :cond_84
    move v3, v7

    goto :goto_95

    :cond_86
    invoke-virtual {v6}, Ljava/util/ArrayDeque;->size()I

    move-result v10

    const/16 v11, 0xa

    if-lt v10, v11, :cond_91

    invoke-virtual {v6}, Ljava/util/ArrayDeque;->remove()Ljava/lang/Object;

    :cond_91
    invoke-virtual {v6, v3}, Ljava/util/ArrayDeque;->add(Ljava/lang/Object;)Z

    :goto_94
    move v3, v9

    :goto_95
    if-nez v3, :cond_337

    const-string v3, "message_type"

    .line 3
    invoke-virtual {v2, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    const-string v6, "gcm"

    if-nez v3, :cond_a2

    move-object v3, v6

    :cond_a2
    invoke-virtual {v3}, Ljava/lang/String;->hashCode()I

    move-result v10

    const/4 v11, 0x2

    sparse-switch v10, :sswitch_data_338

    goto :goto_d1

    :sswitch_ab
    const-string v6, "send_event"

    invoke-virtual {v3, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_d1

    move v6, v11

    goto :goto_d2

    :sswitch_b5
    const-string v6, "send_error"

    invoke-virtual {v3, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_d1

    move v6, v8

    goto :goto_d2

    :sswitch_bf
    invoke-virtual {v3, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_d1

    move v6, v9

    goto :goto_d2

    :sswitch_c7
    const-string v6, "deleted_messages"

    invoke-virtual {v3, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_d1

    move v6, v7

    goto :goto_d2

    :cond_d1
    :goto_d1
    const/4 v6, -0x1

    :goto_d2
    const-string v10, "message_id"

    if-eqz v6, :cond_10f

    if-eq v6, v7, :cond_337

    if-eq v6, v11, :cond_10a

    if-eq v6, v8, :cond_f4

    const-string v0, "Received message with unknown type: "

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v2

    if-eqz v2, :cond_e9

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

    move-result-object v0

    goto :goto_ef

    :cond_e9
    new-instance v2, Ljava/lang/String;

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

    move-object v0, v2

    :goto_ef
    invoke-static {v5, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_337

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

    move-result-object v0

    if-nez v0, :cond_fd

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

    .line 5
    :cond_fd
    new-instance v0, Lk8/y;

    const-string v3, "error"

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

    move-result-object v2

    invoke-direct {v0, v2}, Lk8/y;-><init>(Ljava/lang/String;)V

    goto/16 :goto_337

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

    goto/16 :goto_337

    .line 6
    :cond_10f
    invoke-static/range {p1 .. p1}, Lk8/t;->c(Landroid/content/Intent;)Z

    move-result v3

    if-eqz v3, :cond_11e

    invoke-virtual/range {p1 .. p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v3

    const-string v6, "_nr"

    invoke-static {v6, v3}, Lk8/t;->b(Ljava/lang/String;Landroid/os/Bundle;)V

    .line 7
    :cond_11e
    invoke-virtual/range {p1 .. p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v4, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_129

    goto :goto_172

    :cond_129
    const-string v3, "delivery_metrics_exported_to_big_query_enabled"

    .line 8
    :try_start_12b
    invoke-static {}, Lcom/google/firebase/a;->b()Lcom/google/firebase/a;
    :try_end_12e
    .catch Ljava/lang/IllegalStateException; {:try_start_12b .. :try_end_12e} :catch_16d

    invoke-static {}, Lcom/google/firebase/a;->b()Lcom/google/firebase/a;

    move-result-object v4

    .line 9
    invoke-virtual {v4}, Lcom/google/firebase/a;->a()V

    iget-object v4, v4, Lcom/google/firebase/a;->a:Landroid/content/Context;

    const-string v6, "com.google.firebase.messaging"

    .line 10
    invoke-virtual {v4, v6, v9}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v6

    const-string v8, "export_to_big_query"

    invoke-interface {v6, v8}, Landroid/content/SharedPreferences;->contains(Ljava/lang/String;)Z

    move-result v12

    if-eqz v12, :cond_14a

    invoke-interface {v6, v8, v9}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v3

    goto :goto_173

    :cond_14a
    :try_start_14a
    invoke-virtual {v4}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v6

    if-eqz v6, :cond_172

    invoke-virtual {v4}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v4

    const/16 v8, 0x80

    invoke-virtual {v6, v4, v8}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;

    move-result-object v4

    if-eqz v4, :cond_172

    iget-object v6, v4, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;

    if-eqz v6, :cond_172

    invoke-virtual {v6, v3}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_172

    iget-object v4, v4, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;

    invoke-virtual {v4, v3, v9}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v3
    :try_end_16c
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_14a .. :try_end_16c} :catch_172

    goto :goto_173

    :catch_16d
    const-string v3, "FirebaseApp has not being initialized. Device might be in direct boot mode. Skip exporting delivery metrics to Big Query"

    invoke-static {v5, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    :catch_172
    :cond_172
    :goto_172
    move v3, v9

    :goto_173
    if-eqz v3, :cond_2e4

    .line 11
    sget-object v26, Ll8/a$b;->t:Ll8/a$b;

    .line 12
    sget-object v3, Lcom/google/firebase/messaging/FirebaseMessaging;->n:Lw4/g;

    if-nez v3, :cond_182

    const-string v0, "TransportFactory is null. Skip exporting message delivery metrics to Big Query"

    .line 13
    invoke-static {v5, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_2e4

    .line 14
    :cond_182
    invoke-virtual/range {p1 .. p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v4

    if-nez v4, :cond_18a

    sget-object v4, Landroid/os/Bundle;->EMPTY:Landroid/os/Bundle;

    :cond_18a
    sget v6, Ll8/a;->p:I

    const-string v6, ""

    const-string v8, "google.ttl"

    .line 15
    invoke-virtual {v4, v8}, Landroid/os/Bundle;->get(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v8

    instance-of v12, v8, Ljava/lang/Integer;

    if-eqz v12, :cond_19f

    check-cast v8, Ljava/lang/Integer;

    invoke-virtual {v8}, Ljava/lang/Integer;->intValue()I

    move-result v9

    goto :goto_1b8

    :cond_19f
    instance-of v12, v8, Ljava/lang/String;

    if-eqz v12, :cond_1b8

    :try_start_1a3
    move-object v12, v8

    check-cast v12, Ljava/lang/String;

    invoke-static {v12}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v9
    :try_end_1aa
    .catch Ljava/lang/NumberFormatException; {:try_start_1a3 .. :try_end_1aa} :catch_1ab

    goto :goto_1b8

    :catch_1ab
    invoke-static {v8}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v8

    const-string v12, "Invalid TTL: "

    invoke-virtual {v12, v8}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-static {v5, v8}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    :cond_1b8
    :goto_1b8
    move/from16 v22, v9

    const-string v8, "google.to"

    .line 16
    invoke-virtual {v4, v8}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-static {v8}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v9

    if-nez v9, :cond_1c9

    :goto_1c6
    move-object/from16 v16, v8

    goto :goto_1dc

    :cond_1c9
    :try_start_1c9
    invoke-static {}, Lcom/google/firebase/a;->b()Lcom/google/firebase/a;

    move-result-object v8

    invoke-static {v8}, Lf8/c;->f(Lcom/google/firebase/a;)Lf8/c;

    move-result-object v8

    invoke-virtual {v8}, Lf8/c;->getId()Ln6/i;

    move-result-object v8

    invoke-static {v8}, Ln6/l;->a(Ln6/i;)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Ljava/lang/String;
    :try_end_1db
    .catch Ljava/util/concurrent/ExecutionException; {:try_start_1c9 .. :try_end_1db} :catch_2dd
    .catch Ljava/lang/InterruptedException; {:try_start_1c9 .. :try_end_1db} :catch_2db

    goto :goto_1c6

    .line 17
    :goto_1dc
    invoke-static {}, Lcom/google/firebase/a;->b()Lcom/google/firebase/a;

    move-result-object v8

    .line 18
    invoke-virtual {v8}, Lcom/google/firebase/a;->a()V

    iget-object v8, v8, Lcom/google/firebase/a;->a:Landroid/content/Context;

    .line 19
    invoke-virtual {v8}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v19

    .line 20
    sget-object v18, Ll8/a$d;->t:Ll8/a$d;

    .line 21
    invoke-static {v4}, Lk8/u;->f(Landroid/os/Bundle;)Z

    move-result v8

    if-eqz v8, :cond_1f4

    sget-object v8, Ll8/a$c;->v:Ll8/a$c;

    goto :goto_1f6

    :cond_1f4
    sget-object v8, Ll8/a$c;->t:Ll8/a$c;

    :goto_1f6
    move-object/from16 v17, v8

    .line 22
    invoke-virtual {v4, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_202

    invoke-virtual {v4, v10}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :cond_202
    if-eqz v0, :cond_206

    move-object v15, v0

    goto :goto_207

    :cond_206
    move-object v15, v6

    .line 23
    :goto_207
    invoke-static {v4}, Lk8/t;->a(Landroid/os/Bundle;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_210

    move-object/from16 v23, v0

    goto :goto_212

    :cond_210
    move-object/from16 v23, v6

    :goto_212
    const-string v0, "collapse_key"

    .line 24
    invoke-virtual {v4, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_21d

    move-object/from16 v20, v0

    goto :goto_21f

    :cond_21d
    move-object/from16 v20, v6

    :goto_21f
    const-string v0, "google.c.a.m_l"

    .line 25
    invoke-virtual {v4, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_22a

    move-object/from16 v27, v0

    goto :goto_22c

    :cond_22a
    move-object/from16 v27, v6

    :goto_22c
    const-string v0, "google.c.a.c_l"

    .line 26
    invoke-virtual {v4, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_237

    move-object/from16 v30, v0

    goto :goto_239

    :cond_237
    move-object/from16 v30, v6

    :goto_239
    const-string v0, "google.c.sender.id"

    .line 27
    invoke-virtual {v4, v0}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v6

    const-wide/16 v8, 0x0

    if-eqz v6, :cond_252

    :try_start_243
    invoke-virtual {v4, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v6
    :try_end_24b
    .catch Ljava/lang/NumberFormatException; {:try_start_243 .. :try_end_24b} :catch_24c

    goto :goto_29b

    :catch_24c
    move-exception v0

    const-string v4, "error parsing project number"

    invoke-static {v5, v4, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    :cond_252
    invoke-static {}, Lcom/google/firebase/a;->b()Lcom/google/firebase/a;

    move-result-object v4

    .line 28
    invoke-virtual {v4}, Lcom/google/firebase/a;->a()V

    iget-object v0, v4, Lcom/google/firebase/a;->c:Lr7/d;

    .line 29
    iget-object v0, v0, Lr7/d;->e:Ljava/lang/String;

    if-eqz v0, :cond_26b

    .line 30
    :try_start_25f
    invoke-static {v0}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v6
    :try_end_263
    .catch Ljava/lang/NumberFormatException; {:try_start_25f .. :try_end_263} :catch_264

    goto :goto_29b

    :catch_264
    move-exception v0

    move-object v6, v0

    const-string v0, "error parsing sender ID"

    invoke-static {v5, v0, v6}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    .line 31
    :cond_26b
    invoke-virtual {v4}, Lcom/google/firebase/a;->a()V

    iget-object v0, v4, Lcom/google/firebase/a;->c:Lr7/d;

    .line 32
    iget-object v0, v0, Lr7/d;->b:Ljava/lang/String;

    const-string v4, "1:"

    .line 33
    invoke-virtual {v0, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_27b

    goto :goto_28e

    :cond_27b
    const-string v4, ":"

    invoke-virtual {v0, v4}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    array-length v4, v0

    if-ge v4, v11, :cond_285

    goto :goto_29a

    :cond_285
    aget-object v0, v0, v7

    invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z

    move-result v4

    if-eqz v4, :cond_28e

    goto :goto_29a

    :cond_28e
    :goto_28e
    :try_start_28e
    invoke-static {v0}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v6
    :try_end_292
    .catch Ljava/lang/NumberFormatException; {:try_start_28e .. :try_end_292} :catch_293

    goto :goto_29b

    :catch_293
    move-exception v0

    move-object v4, v0

    const-string v0, "error parsing app ID"

    invoke-static {v5, v0, v4}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    :goto_29a
    move-wide v6, v8

    :goto_29b
    cmp-long v0, v6, v8

    if-lez v0, :cond_2a1

    move-wide v13, v6

    goto :goto_2a2

    :cond_2a1
    move-wide v13, v8

    .line 34
    :goto_2a2
    new-instance v0, Ll8/a;

    move-object v12, v0

    const/16 v21, 0x0

    const-wide/16 v24, 0x0

    const-wide/16 v28, 0x0

    invoke-direct/range {v12 .. v30}, Ll8/a;-><init>(JLjava/lang/String;Ljava/lang/String;Ll8/a$c;Ll8/a$d;Ljava/lang/String;Ljava/lang/String;IILjava/lang/String;JLl8/a$b;Ljava/lang/String;JLjava/lang/String;)V

    :try_start_2ae
    const-string v4, "FCM_CLIENT_EVENT_LOGGING"

    .line 35
    const-class v6, Ll8/b;

    const-string v7, "proto"

    .line 36
    new-instance v8, Lw4/b;

    invoke-direct {v8, v7}, Lw4/b;-><init>(Ljava/lang/String;)V

    .line 37
    sget-object v7, Lk8/s;->a:Lk8/s;

    invoke-interface {v3, v4, v6, v8, v7}, Lw4/g;->a(Ljava/lang/String;Ljava/lang/Class;Lw4/b;Lw4/e;)Lw4/f;

    move-result-object v3

    sget v4, Ll8/b;->b:I

    .line 38
    new-instance v4, Ll8/b;

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

    .line 39
    new-instance v0, Lw4/a;

    sget-object v6, Lw4/d;->s:Lw4/d;

    const/4 v7, 0x0

    invoke-direct {v0, v7, v4, v6}, Lw4/a;-><init>(Ljava/lang/Integer;Ljava/lang/Object;Lw4/d;)V

    .line 40
    check-cast v3, Lz4/k;

    invoke-virtual {v3, v0}, Lz4/k;->a(Lw4/c;)V
    :try_end_2d3
    .catch Ljava/lang/RuntimeException; {:try_start_2ae .. :try_end_2d3} :catch_2d4

    goto :goto_2e4

    :catch_2d4
    move-exception v0

    const-string v3, "Failed to send big query analytics payload."

    invoke-static {v5, v3, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_2e4

    :catch_2db
    move-exception v0

    goto :goto_2de

    :catch_2dd
    move-exception v0

    .line 41
    :goto_2de
    new-instance v2, Ljava/lang/RuntimeException;

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

    throw v2

    .line 42
    :cond_2e4
    :goto_2e4
    invoke-virtual/range {p1 .. p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    if-nez v0, :cond_2ef

    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    :cond_2ef
    const-string v3, "androidx.content.wakelockid"

    invoke-virtual {v0, v3}, Landroid/os/Bundle;->remove(Ljava/lang/String;)V

    invoke-static {v0}, Lk8/u;->f(Landroid/os/Bundle;)Z

    move-result v3

    if-eqz v3, :cond_32f

    new-instance v3, Lk8/u;

    invoke-direct {v3, v0}, Lk8/u;-><init>(Landroid/os/Bundle;)V

    .line 43
    new-instance v4, Lv5/a;

    const-string v5, "Firebase-Messaging-Network-Io"

    invoke-direct {v4, v5}, Lv5/a;-><init>(Ljava/lang/String;)V

    invoke-static {v4}, Ljava/util/concurrent/Executors;->newSingleThreadExecutor(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;

    move-result-object v4

    .line 44
    new-instance v5, Lk8/c;

    invoke-direct {v5, v1, v3, v4}, Lk8/c;-><init>(Landroid/content/Context;Lk8/u;Ljava/util/concurrent/Executor;)V

    :try_start_30f
    invoke-virtual {v5}, Lk8/c;->a()Z

    move-result v3
    :try_end_313
    .catchall {:try_start_30f .. :try_end_313} :catchall_329

    invoke-interface {v4}, Ljava/util/concurrent/ExecutorService;->shutdown()V

    if-eqz v3, :cond_319

    goto :goto_337

    :cond_319
    invoke-static/range {p1 .. p1}, Lk8/t;->c(Landroid/content/Intent;)Z

    move-result v3

    if-eqz v3, :cond_32f

    .line 45
    invoke-virtual/range {p1 .. p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v2

    const-string v3, "_nf"

    invoke-static {v3, v2}, Lk8/t;->b(Ljava/lang/String;Landroid/os/Bundle;)V

    goto :goto_32f

    :catchall_329
    move-exception v0

    move-object v2, v0

    .line 46
    invoke-interface {v4}, Ljava/util/concurrent/ExecutorService;->shutdown()V

    throw v2

    :cond_32f
    :goto_32f
    new-instance v2, Lk8/w;

    invoke-direct {v2, v0}, Lk8/w;-><init>(Landroid/os/Bundle;)V

    invoke-virtual {v1, v2}, Lcom/google/firebase/messaging/FirebaseMessagingService;->c(Lk8/w;)V

    :cond_337
    :goto_337
    return-void

    :sswitch_data_338
    .sparse-switch
        -0x7aedf14e -> :sswitch_c7
        0x18f11 -> :sswitch_bf
        0x308f3e91 -> :sswitch_b5
        0x3090df23 -> :sswitch_ab
    .end sparse-switch
.end method

.method public c(Lk8/w;)V
    .registers 2

    return-void
.end method

.method public d(Ljava/lang/String;)V
    .registers 2

    return-void
.end method
