.class public final Lj6/m5;
.super Lj6/q3;
.source ""


# instance fields
.field public final c:Lj6/l5;

.field public d:Lj6/y2;

.field public volatile e:Ljava/lang/Boolean;

.field public final f:Lj6/k;

.field public final g:Lj6/v5;

.field public final h:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/Runnable;",
            ">;"
        }
    .end annotation
.end field

.field public final i:Lj6/k;


# direct methods
.method public constructor <init>(Lcom/google/android/gms/measurement/internal/d;)V
    .registers 4

    invoke-direct {p0, p1}, Lj6/q3;-><init>(Lcom/google/android/gms/measurement/internal/d;)V

    new-instance v0, Ljava/util/ArrayList;

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

    iput-object v0, p0, Lj6/m5;->h:Ljava/util/List;

    new-instance v0, Lj6/v5;

    .line 1
    iget-object v1, p1, Lcom/google/android/gms/measurement/internal/d;->n:Lu5/c;

    .line 2
    invoke-direct {v0, v1}, Lj6/v5;-><init>(Lu5/c;)V

    iput-object v0, p0, Lj6/m5;->g:Lj6/v5;

    new-instance v0, Lj6/l5;

    invoke-direct {v0, p0}, Lj6/l5;-><init>(Lj6/m5;)V

    iput-object v0, p0, Lj6/m5;->c:Lj6/l5;

    new-instance v0, Lj6/j5;

    const/4 v1, 0x0

    invoke-direct {v0, p0, p1, v1}, Lj6/j5;-><init>(Lj6/m5;Lj6/j4;I)V

    iput-object v0, p0, Lj6/m5;->f:Lj6/k;

    new-instance v0, Lj6/j5;

    const/4 v1, 0x1

    invoke-direct {v0, p0, p1, v1}, Lj6/j5;-><init>(Lj6/m5;Lj6/j4;I)V

    iput-object v0, p0, Lj6/m5;->i:Lj6/k;

    return-void
.end method

.method public static w(Lj6/m5;Landroid/content/ComponentName;)V
    .registers 4

    invoke-virtual {p0}, Lj6/w2;->g()V

    iget-object v0, p0, Lj6/m5;->d:Lj6/y2;

    if-eqz v0, :cond_1d

    const/4 v0, 0x0

    iput-object v0, p0, Lj6/m5;->d:Lj6/y2;

    iget-object v0, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 1
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->n:Lj6/e3;

    const-string v1, "Disconnected from device MeasurementService"

    .line 2
    invoke-virtual {v0, v1, p1}, Lj6/e3;->d(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-virtual {p0}, Lj6/w2;->g()V

    invoke-virtual {p0}, Lj6/m5;->x()V

    :cond_1d
    return-void
.end method


# virtual methods
.method public final j()Z
    .registers 2

    const/4 v0, 0x0

    return v0
.end method

.method public final k(Lj6/y2;Lq5/a;Lj6/j6;)V
    .registers 31

    move-object/from16 v1, p0

    move-object/from16 v2, p1

    move-object/from16 v3, p2

    move-object/from16 v4, p3

    invoke-virtual/range {p0 .. p0}, Lj6/w2;->g()V

    invoke-virtual/range {p0 .. p0}, Lj6/q3;->h()V

    invoke-virtual/range {p0 .. p0}, Lj6/m5;->v()Z

    iget-object v0, v1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    const/16 v5, 0x64

    const/4 v6, 0x0

    move v0, v5

    move v7, v6

    :goto_1b
    const/16 v8, 0x3e9

    if-ge v7, v8, :cond_36e

    if-ne v0, v5, :cond_36e

    new-instance v8, Ljava/util/ArrayList;

    invoke-direct {v8}, Ljava/util/ArrayList;-><init>()V

    iget-object v0, v1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->p()Lj6/a3;

    move-result-object v9

    const-string v10, "rowid"

    const-string v11, "Error reading entries from local database"

    .line 1
    invoke-virtual {v9}, Lj6/w2;->g()V

    iget-boolean v0, v9, Lj6/a3;->d:Z

    if-eqz v0, :cond_38

    goto :goto_5b

    :cond_38
    new-instance v13, Ljava/util/ArrayList;

    invoke-direct {v13}, Ljava/util/ArrayList;-><init>()V

    .line 2
    iget-object v0, v9, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 3
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/d;->a:Landroid/content/Context;

    const-string v14, "google_app_measurement_local.db"

    .line 4
    invoke-virtual {v0, v14}, Landroid/content/Context;->getDatabasePath(Ljava/lang/String;)Ljava/io/File;

    move-result-object v0

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_2ed

    const/4 v14, 0x5

    move v15, v6

    move v12, v14

    :goto_50
    if-ge v15, v14, :cond_2dc

    const/4 v14, 0x1

    .line 5
    :try_start_53
    invoke-virtual {v9}, Lj6/a3;->k()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v5
    :try_end_57
    .catch Landroid/database/sqlite/SQLiteFullException; {:try_start_53 .. :try_end_57} :catch_2a2
    .catch Landroid/database/sqlite/SQLiteDatabaseLockedException; {:try_start_53 .. :try_end_57} :catch_28c
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_53 .. :try_end_57} :catch_262
    .catchall {:try_start_53 .. :try_end_57} :catchall_25d

    if-nez v5, :cond_5f

    :try_start_59
    iput-boolean v14, v9, Lj6/a3;->d:Z

    :goto_5b
    move/from16 v17, v7

    goto/16 :goto_2eb

    :cond_5f
    invoke-virtual {v5}, Landroid/database/sqlite/SQLiteDatabase;->beginTransaction()V

    const-string v0, "3"
    :try_end_64
    .catch Landroid/database/sqlite/SQLiteFullException; {:try_start_59 .. :try_end_64} :catch_254
    .catch Landroid/database/sqlite/SQLiteDatabaseLockedException; {:try_start_59 .. :try_end_64} :catch_24c
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_59 .. :try_end_64} :catch_245
    .catchall {:try_start_59 .. :try_end_64} :catchall_243

    :try_start_64
    const-string v17, "messages"

    filled-new-array {v10}, [Ljava/lang/String;

    move-result-object v18

    const-string v19, "type=?"

    filled-new-array {v0}, [Ljava/lang/String;

    move-result-object v20

    const/16 v21, 0x0

    const/16 v22, 0x0

    const-string v23, "rowid desc"

    const-string v24, "1"

    move-object/from16 v16, v5

    invoke-virtual/range {v16 .. v24}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v14
    :try_end_7e
    .catchall {:try_start_64 .. :try_end_7e} :catchall_232

    :try_start_7e
    invoke-interface {v14}, Landroid/database/Cursor;->moveToFirst()Z

    move-result v0

    const-wide/16 v25, -0x1

    if-eqz v0, :cond_8e

    invoke-interface {v14, v6}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v16
    :try_end_8a
    .catchall {:try_start_7e .. :try_end_8a} :catchall_22b

    :try_start_8a
    invoke-interface {v14}, Landroid/database/Cursor;->close()V

    goto :goto_93

    :cond_8e
    invoke-interface {v14}, Landroid/database/Cursor;->close()V

    move-wide/from16 v16, v25

    :goto_93
    cmp-long v0, v16, v25

    if-eqz v0, :cond_be

    const-string v0, "rowid<?"
    :try_end_99
    .catch Landroid/database/sqlite/SQLiteFullException; {:try_start_8a .. :try_end_99} :catch_254
    .catch Landroid/database/sqlite/SQLiteDatabaseLockedException; {:try_start_8a .. :try_end_99} :catch_24c
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_8a .. :try_end_99} :catch_245
    .catchall {:try_start_8a .. :try_end_99} :catchall_243

    const/4 v14, 0x1

    :try_start_9a
    new-array v6, v14, [Ljava/lang/String;

    invoke-static/range {v16 .. v17}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v14

    const/16 v16, 0x0

    aput-object v14, v6, v16

    move-object/from16 v19, v0

    move-object/from16 v20, v6

    goto :goto_c2

    :goto_a9
    move/from16 v17, v7

    move-object/from16 v16, v10

    const/4 v10, 0x0

    goto/16 :goto_269

    :catch_b0
    move/from16 v17, v7

    move-object/from16 v16, v10

    const/4 v10, 0x0

    goto/16 :goto_251

    :goto_b7
    move/from16 v17, v7

    move-object/from16 v16, v10

    const/4 v10, 0x0

    goto/16 :goto_25a

    :cond_be
    const/16 v19, 0x0

    const/16 v20, 0x0

    :goto_c2
    const-string v0, "type"

    const-string v6, "entry"

    filled-new-array {v10, v0, v6}, [Ljava/lang/String;

    move-result-object v18

    const-string v17, "messages"

    const/16 v21, 0x0

    const/16 v22, 0x0

    const-string v23, "rowid asc"

    const/16 v6, 0x64

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

    move-result-object v24

    move-object/from16 v16, v5

    invoke-virtual/range {v16 .. v24}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v6
    :try_end_de
    .catch Landroid/database/sqlite/SQLiteFullException; {:try_start_9a .. :try_end_de} :catch_228
    .catch Landroid/database/sqlite/SQLiteDatabaseLockedException; {:try_start_9a .. :try_end_de} :catch_b0
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_9a .. :try_end_de} :catch_225
    .catchall {:try_start_9a .. :try_end_de} :catchall_243

    :goto_de
    :try_start_de
    invoke-interface {v6}, Landroid/database/Cursor;->moveToNext()Z

    move-result v0

    if-eqz v0, :cond_1d2

    const/4 v14, 0x0

    invoke-interface {v6, v14}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v25

    const/4 v14, 0x1

    invoke-interface {v6, v14}, Landroid/database/Cursor;->getInt(I)I

    move-result v0
    :try_end_ee
    .catch Landroid/database/sqlite/SQLiteFullException; {:try_start_de .. :try_end_ee} :catch_21f
    .catch Landroid/database/sqlite/SQLiteDatabaseLockedException; {:try_start_de .. :try_end_ee} :catch_219
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_de .. :try_end_ee} :catch_213
    .catchall {:try_start_de .. :try_end_ee} :catchall_2cf

    const/4 v14, 0x2

    move-object/from16 v16, v10

    :try_start_f1
    invoke-interface {v6, v14}, Landroid/database/Cursor;->getBlob(I)[B

    move-result-object v10

    if-nez v0, :cond_132

    invoke-static {}, Landroid/os/Parcel;->obtain()Landroid/os/Parcel;

    move-result-object v14
    :try_end_fb
    .catch Landroid/database/sqlite/SQLiteFullException; {:try_start_f1 .. :try_end_fb} :catch_1c8
    .catch Landroid/database/sqlite/SQLiteDatabaseLockedException; {:try_start_f1 .. :try_end_fb} :catch_1c5
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_f1 .. :try_end_fb} :catch_1c1
    .catchall {:try_start_f1 .. :try_end_fb} :catchall_2cf

    :try_start_fb
    array-length v0, v10
    :try_end_fc
    .catch Lq5/b$a; {:try_start_fb .. :try_end_fc} :catch_11a
    .catchall {:try_start_fb .. :try_end_fc} :catchall_116

    move/from16 v17, v7

    const/4 v7, 0x0

    :try_start_ff
    invoke-virtual {v14, v10, v7, v0}, Landroid/os/Parcel;->unmarshall([BII)V

    invoke-virtual {v14, v7}, Landroid/os/Parcel;->setDataPosition(I)V

    sget-object v0, Lj6/q;->CREATOR:Landroid/os/Parcelable$Creator;

    invoke-interface {v0, v14}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lj6/q;
    :try_end_10d
    .catch Lq5/b$a; {:try_start_ff .. :try_end_10d} :catch_11c
    .catchall {:try_start_ff .. :try_end_10d} :catchall_114

    :try_start_10d
    invoke-virtual {v14}, Landroid/os/Parcel;->recycle()V
    :try_end_110
    .catch Landroid/database/sqlite/SQLiteFullException; {:try_start_10d .. :try_end_110} :catch_211
    .catch Landroid/database/sqlite/SQLiteDatabaseLockedException; {:try_start_10d .. :try_end_110} :catch_21d
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_10d .. :try_end_110} :catch_20f
    .catchall {:try_start_10d .. :try_end_110} :catchall_2cf

    if-eqz v0, :cond_1bb

    goto/16 :goto_198

    :catchall_114
    move-exception v0

    goto :goto_12e

    :catchall_116
    move-exception v0

    move/from16 v17, v7

    goto :goto_12e

    :catch_11a
    move/from16 v17, v7

    :catch_11c
    :try_start_11c
    iget-object v0, v9, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 6
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->f:Lj6/e3;

    const-string v7, "Failed to load event from local database"

    .line 7
    invoke-virtual {v0, v7}, Lj6/e3;->c(Ljava/lang/String;)V
    :try_end_129
    .catchall {:try_start_11c .. :try_end_129} :catchall_114

    :try_start_129
    invoke-virtual {v14}, Landroid/os/Parcel;->recycle()V

    goto/16 :goto_1bb

    :goto_12e
    invoke-virtual {v14}, Landroid/os/Parcel;->recycle()V

    throw v0

    :cond_132
    move/from16 v17, v7

    const/4 v7, 0x1

    if-ne v0, v7, :cond_169

    invoke-static {}, Landroid/os/Parcel;->obtain()Landroid/os/Parcel;

    move-result-object v7
    :try_end_13b
    .catch Landroid/database/sqlite/SQLiteFullException; {:try_start_129 .. :try_end_13b} :catch_211
    .catch Landroid/database/sqlite/SQLiteDatabaseLockedException; {:try_start_129 .. :try_end_13b} :catch_21d
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_129 .. :try_end_13b} :catch_20f
    .catchall {:try_start_129 .. :try_end_13b} :catchall_2cf

    :try_start_13b
    array-length v0, v10

    const/4 v14, 0x0

    invoke-virtual {v7, v10, v14, v0}, Landroid/os/Parcel;->unmarshall([BII)V

    invoke-virtual {v7, v14}, Landroid/os/Parcel;->setDataPosition(I)V

    sget-object v0, Lj6/e6;->CREATOR:Landroid/os/Parcelable$Creator;

    invoke-interface {v0, v7}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lj6/e6;
    :try_end_14b
    .catch Lq5/b$a; {:try_start_13b .. :try_end_14b} :catch_151
    .catchall {:try_start_13b .. :try_end_14b} :catchall_14f

    :try_start_14b
    invoke-virtual {v7}, Landroid/os/Parcel;->recycle()V
    :try_end_14e
    .catch Landroid/database/sqlite/SQLiteFullException; {:try_start_14b .. :try_end_14e} :catch_211
    .catch Landroid/database/sqlite/SQLiteDatabaseLockedException; {:try_start_14b .. :try_end_14e} :catch_21d
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_14b .. :try_end_14e} :catch_20f
    .catchall {:try_start_14b .. :try_end_14e} :catchall_2cf

    goto :goto_162

    :catchall_14f
    move-exception v0

    goto :goto_165

    :catch_151
    :try_start_151
    iget-object v0, v9, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 8
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->f:Lj6/e3;

    const-string v10, "Failed to load user property from local database"

    .line 9
    invoke-virtual {v0, v10}, Lj6/e3;->c(Ljava/lang/String;)V
    :try_end_15e
    .catchall {:try_start_151 .. :try_end_15e} :catchall_14f

    :try_start_15e
    invoke-virtual {v7}, Landroid/os/Parcel;->recycle()V

    const/4 v0, 0x0

    :goto_162
    if-eqz v0, :cond_1bb

    goto :goto_198

    :goto_165
    invoke-virtual {v7}, Landroid/os/Parcel;->recycle()V

    throw v0

    :cond_169
    if-ne v0, v14, :cond_1a0

    invoke-static {}, Landroid/os/Parcel;->obtain()Landroid/os/Parcel;

    move-result-object v7
    :try_end_16f
    .catch Landroid/database/sqlite/SQLiteFullException; {:try_start_15e .. :try_end_16f} :catch_211
    .catch Landroid/database/sqlite/SQLiteDatabaseLockedException; {:try_start_15e .. :try_end_16f} :catch_21d
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_15e .. :try_end_16f} :catch_20f
    .catchall {:try_start_15e .. :try_end_16f} :catchall_2cf

    :try_start_16f
    array-length v0, v10

    const/4 v14, 0x0

    invoke-virtual {v7, v10, v14, v0}, Landroid/os/Parcel;->unmarshall([BII)V

    invoke-virtual {v7, v14}, Landroid/os/Parcel;->setDataPosition(I)V

    sget-object v0, Lj6/b;->CREATOR:Landroid/os/Parcelable$Creator;

    invoke-interface {v0, v7}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lj6/b;
    :try_end_17f
    .catch Lq5/b$a; {:try_start_16f .. :try_end_17f} :catch_185
    .catchall {:try_start_16f .. :try_end_17f} :catchall_183

    :try_start_17f
    invoke-virtual {v7}, Landroid/os/Parcel;->recycle()V
    :try_end_182
    .catch Landroid/database/sqlite/SQLiteFullException; {:try_start_17f .. :try_end_182} :catch_211
    .catch Landroid/database/sqlite/SQLiteDatabaseLockedException; {:try_start_17f .. :try_end_182} :catch_21d
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_17f .. :try_end_182} :catch_20f
    .catchall {:try_start_17f .. :try_end_182} :catchall_2cf

    goto :goto_196

    :catchall_183
    move-exception v0

    goto :goto_19c

    :catch_185
    :try_start_185
    iget-object v0, v9, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 10
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->f:Lj6/e3;

    const-string v10, "Failed to load conditional user property from local database"

    .line 11
    invoke-virtual {v0, v10}, Lj6/e3;->c(Ljava/lang/String;)V
    :try_end_192
    .catchall {:try_start_185 .. :try_end_192} :catchall_183

    :try_start_192
    invoke-virtual {v7}, Landroid/os/Parcel;->recycle()V

    const/4 v0, 0x0

    :goto_196
    if-eqz v0, :cond_1bb

    :goto_198
    invoke-virtual {v13, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_1bb

    :goto_19c
    invoke-virtual {v7}, Landroid/os/Parcel;->recycle()V

    throw v0

    :cond_1a0
    const/4 v7, 0x3

    if-ne v0, v7, :cond_1ae

    iget-object v0, v9, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 12
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->i:Lj6/e3;

    const-string v7, "Skipping app launch break"

    goto :goto_1b8

    .line 13
    :cond_1ae
    iget-object v0, v9, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 14
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->f:Lj6/e3;

    const-string v7, "Unknown record type in local database"

    .line 15
    :goto_1b8
    invoke-virtual {v0, v7}, Lj6/e3;->c(Ljava/lang/String;)V

    :cond_1bb
    :goto_1bb
    move-object/from16 v10, v16

    move/from16 v7, v17

    goto/16 :goto_de

    :catch_1c1
    move-exception v0

    move/from16 v17, v7

    goto :goto_1cc

    :catch_1c5
    move/from16 v17, v7

    goto :goto_21d

    :catch_1c8
    move-exception v0

    move/from16 v17, v7

    goto :goto_1cf

    :goto_1cc
    const/4 v10, 0x0

    goto/16 :goto_26a

    :goto_1cf
    const/4 v10, 0x0

    goto/16 :goto_25b

    :cond_1d2
    move/from16 v17, v7

    move-object/from16 v16, v10

    const/4 v7, 0x1

    new-array v0, v7, [Ljava/lang/String;

    invoke-static/range {v25 .. v26}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object v7
    :try_end_1dd
    .catch Landroid/database/sqlite/SQLiteFullException; {:try_start_192 .. :try_end_1dd} :catch_211
    .catch Landroid/database/sqlite/SQLiteDatabaseLockedException; {:try_start_192 .. :try_end_1dd} :catch_21d
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_192 .. :try_end_1dd} :catch_20f
    .catchall {:try_start_192 .. :try_end_1dd} :catchall_2cf

    const/4 v10, 0x0

    :try_start_1de
    aput-object v7, v0, v10

    const-string v7, "messages"

    const-string v14, "rowid <= ?"

    invoke-virtual {v5, v7, v14, v0}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    move-result v0

    invoke-virtual {v13}, Ljava/util/ArrayList;->size()I

    move-result v7

    if-ge v0, v7, :cond_1fb

    iget-object v0, v9, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 16
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->f:Lj6/e3;

    const-string v7, "Fewer entries removed from local database than expected"

    .line 17
    invoke-virtual {v0, v7}, Lj6/e3;->c(Ljava/lang/String;)V

    :cond_1fb
    invoke-virtual {v5}, Landroid/database/sqlite/SQLiteDatabase;->setTransactionSuccessful()V

    invoke-virtual {v5}, Landroid/database/sqlite/SQLiteDatabase;->endTransaction()V
    :try_end_201
    .catch Landroid/database/sqlite/SQLiteFullException; {:try_start_1de .. :try_end_201} :catch_20c
    .catch Landroid/database/sqlite/SQLiteDatabaseLockedException; {:try_start_1de .. :try_end_201} :catch_252
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_1de .. :try_end_201} :catch_209
    .catchall {:try_start_1de .. :try_end_201} :catchall_2cf

    invoke-interface {v6}, Landroid/database/Cursor;->close()V

    invoke-virtual {v5}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    goto/16 :goto_2ef

    :catch_209
    move-exception v0

    goto/16 :goto_26a

    :catch_20c
    move-exception v0

    goto/16 :goto_25b

    :catch_20f
    move-exception v0

    goto :goto_1cc

    :catch_211
    move-exception v0

    goto :goto_1cf

    :catch_213
    move-exception v0

    move/from16 v17, v7

    move-object/from16 v16, v10

    goto :goto_1cc

    :catch_219
    move/from16 v17, v7

    move-object/from16 v16, v10

    :catch_21d
    :goto_21d
    const/4 v10, 0x0

    goto :goto_252

    :catch_21f
    move-exception v0

    move/from16 v17, v7

    move-object/from16 v16, v10

    goto :goto_1cf

    :catch_225
    move-exception v0

    goto/16 :goto_a9

    :catch_228
    move-exception v0

    goto/16 :goto_b7

    :catchall_22b
    move-exception v0

    move/from16 v17, v7

    move-object/from16 v16, v10

    move v10, v6

    goto :goto_239

    :catchall_232
    move-exception v0

    move/from16 v17, v7

    move-object/from16 v16, v10

    move v10, v6

    const/4 v14, 0x0

    :goto_239
    if-eqz v14, :cond_23e

    :try_start_23b
    invoke-interface {v14}, Landroid/database/Cursor;->close()V

    :cond_23e
    throw v0
    :try_end_23f
    .catch Landroid/database/sqlite/SQLiteFullException; {:try_start_23b .. :try_end_23f} :catch_241
    .catch Landroid/database/sqlite/SQLiteDatabaseLockedException; {:try_start_23b .. :try_end_23f} :catch_251
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_23b .. :try_end_23f} :catch_23f
    .catchall {:try_start_23b .. :try_end_23f} :catchall_243

    :catch_23f
    move-exception v0

    goto :goto_269

    :catch_241
    move-exception v0

    goto :goto_25a

    :catchall_243
    move-exception v0

    goto :goto_25f

    :catch_245
    move-exception v0

    move/from16 v17, v7

    move-object/from16 v16, v10

    move v10, v6

    goto :goto_269

    :catch_24c
    move/from16 v17, v7

    move-object/from16 v16, v10

    move v10, v6

    :catch_251
    :goto_251
    const/4 v6, 0x0

    :catch_252
    :goto_252
    move-object v7, v11

    goto :goto_294

    :catch_254
    move-exception v0

    move/from16 v17, v7

    move-object/from16 v16, v10

    move v10, v6

    :goto_25a
    const/4 v6, 0x0

    :goto_25b
    move-object v7, v11

    goto :goto_2aa

    :catchall_25d
    move-exception v0

    const/4 v5, 0x0

    :goto_25f
    const/4 v12, 0x0

    goto/16 :goto_2d1

    :catch_262
    move-exception v0

    move/from16 v17, v7

    move-object/from16 v16, v10

    move v10, v6

    const/4 v5, 0x0

    :goto_269
    const/4 v6, 0x0

    :goto_26a
    if-eqz v5, :cond_275

    :try_start_26c
    invoke-virtual {v5}, Landroid/database/sqlite/SQLiteDatabase;->inTransaction()Z

    move-result v7

    if-eqz v7, :cond_275

    invoke-virtual {v5}, Landroid/database/sqlite/SQLiteDatabase;->endTransaction()V

    :cond_275
    iget-object v7, v9, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v7}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v7

    .line 18
    iget-object v7, v7, Lcom/google/android/gms/measurement/internal/b;->f:Lj6/e3;

    .line 19
    invoke-virtual {v7, v11, v0}, Lj6/e3;->d(Ljava/lang/String;Ljava/lang/Object;)V

    const/4 v7, 0x1

    iput-boolean v7, v9, Lj6/a3;->d:Z
    :try_end_283
    .catchall {:try_start_26c .. :try_end_283} :catchall_2cf

    if-eqz v6, :cond_288

    invoke-interface {v6}, Landroid/database/Cursor;->close()V

    :cond_288
    move-object v7, v11

    if-eqz v5, :cond_2c2

    goto :goto_2bf

    :catch_28c
    move/from16 v17, v7

    move-object/from16 v16, v10

    move v10, v6

    move-object v7, v11

    const/4 v5, 0x0

    const/4 v6, 0x0

    :goto_294
    int-to-long v10, v12

    :try_start_295
    invoke-static {v10, v11}, Landroid/os/SystemClock;->sleep(J)V
    :try_end_298
    .catchall {:try_start_295 .. :try_end_298} :catchall_2cf

    add-int/lit8 v12, v12, 0x14

    if-eqz v6, :cond_29f

    invoke-interface {v6}, Landroid/database/Cursor;->close()V

    :cond_29f
    if-eqz v5, :cond_2c2

    goto :goto_2bf

    :catch_2a2
    move-exception v0

    move/from16 v17, v7

    move-object/from16 v16, v10

    move-object v7, v11

    const/4 v5, 0x0

    const/4 v6, 0x0

    :goto_2aa
    :try_start_2aa
    iget-object v10, v9, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v10}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v10

    .line 20
    iget-object v10, v10, Lcom/google/android/gms/measurement/internal/b;->f:Lj6/e3;

    .line 21
    invoke-virtual {v10, v7, v0}, Lj6/e3;->d(Ljava/lang/String;Ljava/lang/Object;)V

    const/4 v10, 0x1

    iput-boolean v10, v9, Lj6/a3;->d:Z
    :try_end_2b8
    .catchall {:try_start_2aa .. :try_end_2b8} :catchall_2cf

    if-eqz v6, :cond_2bd

    invoke-interface {v6}, Landroid/database/Cursor;->close()V

    :cond_2bd
    if-eqz v5, :cond_2c2

    :goto_2bf
    invoke-virtual {v5}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    :cond_2c2
    add-int/lit8 v15, v15, 0x1

    move-object v11, v7

    move-object/from16 v10, v16

    move/from16 v7, v17

    const/16 v5, 0x64

    const/4 v6, 0x0

    const/4 v14, 0x5

    goto/16 :goto_50

    :catchall_2cf
    move-exception v0

    move-object v12, v6

    :goto_2d1
    if-eqz v12, :cond_2d6

    invoke-interface {v12}, Landroid/database/Cursor;->close()V

    :cond_2d6
    if-eqz v5, :cond_2db

    invoke-virtual {v5}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    :cond_2db
    throw v0

    :cond_2dc
    move/from16 v17, v7

    iget-object v0, v9, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 22
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->i:Lj6/e3;

    const-string v5, "Failed to read events from database in reasonable time"

    .line 23
    invoke-virtual {v0, v5}, Lj6/e3;->c(Ljava/lang/String;)V

    :goto_2eb
    const/4 v12, 0x0

    goto :goto_2f0

    :cond_2ed
    move/from16 v17, v7

    :goto_2ef
    move-object v12, v13

    :goto_2f0
    if-eqz v12, :cond_2fb

    .line 24
    invoke-virtual {v8, v12}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    invoke-interface {v12}, Ljava/util/List;->size()I

    move-result v0

    move v5, v0

    goto :goto_2fc

    :cond_2fb
    const/4 v5, 0x0

    :goto_2fc
    const/16 v6, 0x64

    if-eqz v3, :cond_305

    if-ge v5, v6, :cond_305

    invoke-virtual {v8, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_305
    invoke-virtual {v8}, Ljava/util/ArrayList;->size()I

    move-result v7

    const/4 v9, 0x0

    :goto_30a
    if-ge v9, v7, :cond_367

    invoke-virtual {v8, v9}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lq5/a;

    instance-of v10, v0, Lj6/q;

    if-eqz v10, :cond_328

    :try_start_316
    check-cast v0, Lj6/q;

    invoke-interface {v2, v0, v4}, Lj6/y2;->W1(Lj6/q;Lj6/j6;)V
    :try_end_31b
    .catch Landroid/os/RemoteException; {:try_start_316 .. :try_end_31b} :catch_31c

    goto :goto_364

    :catch_31c
    move-exception v0

    iget-object v10, v1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v10}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v10

    .line 25
    iget-object v10, v10, Lcom/google/android/gms/measurement/internal/b;->f:Lj6/e3;

    const-string v11, "Failed to send event to the service"

    goto :goto_353

    .line 26
    :cond_328
    instance-of v10, v0, Lj6/e6;

    if-eqz v10, :cond_33e

    :try_start_32c
    check-cast v0, Lj6/e6;

    invoke-interface {v2, v0, v4}, Lj6/y2;->l2(Lj6/e6;Lj6/j6;)V
    :try_end_331
    .catch Landroid/os/RemoteException; {:try_start_32c .. :try_end_331} :catch_332

    goto :goto_364

    :catch_332
    move-exception v0

    iget-object v10, v1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v10}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v10

    .line 27
    iget-object v10, v10, Lcom/google/android/gms/measurement/internal/b;->f:Lj6/e3;

    const-string v11, "Failed to send user property to the service"

    goto :goto_353

    .line 28
    :cond_33e
    instance-of v10, v0, Lj6/b;

    if-eqz v10, :cond_357

    :try_start_342
    check-cast v0, Lj6/b;

    invoke-interface {v2, v0, v4}, Lj6/y2;->F0(Lj6/b;Lj6/j6;)V
    :try_end_347
    .catch Landroid/os/RemoteException; {:try_start_342 .. :try_end_347} :catch_348

    goto :goto_364

    :catch_348
    move-exception v0

    iget-object v10, v1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v10}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v10

    .line 29
    iget-object v10, v10, Lcom/google/android/gms/measurement/internal/b;->f:Lj6/e3;

    const-string v11, "Failed to send conditional user property to the service"

    .line 30
    :goto_353
    invoke-virtual {v10, v11, v0}, Lj6/e3;->d(Ljava/lang/String;Ljava/lang/Object;)V

    goto :goto_364

    :cond_357
    iget-object v0, v1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 31
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->f:Lj6/e3;

    const-string v10, "Discarding data. Unrecognized parcel type."

    .line 32
    invoke-virtual {v0, v10}, Lj6/e3;->c(Ljava/lang/String;)V

    :goto_364
    add-int/lit8 v9, v9, 0x1

    goto :goto_30a

    :cond_367
    add-int/lit8 v7, v17, 0x1

    move v0, v5

    move v5, v6

    const/4 v6, 0x0

    goto/16 :goto_1b

    :cond_36e
    return-void
.end method

.method public final l(Lj6/b;)V
    .registers 9

    .line 1
    invoke-virtual {p0}, Lj6/w2;->g()V

    invoke-virtual {p0}, Lj6/q3;->h()V

    iget-object v0, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->p()Lj6/a3;

    move-result-object v0

    .line 2
    iget-object v1, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v1}, Lcom/google/android/gms/measurement/internal/d;->A()Lcom/google/android/gms/measurement/internal/f;

    move-result-object v1

    invoke-virtual {v1, p1}, Lcom/google/android/gms/measurement/internal/f;->b0(Landroid/os/Parcelable;)[B

    move-result-object v1

    array-length v2, v1

    const/high16 v3, 0x20000

    if-le v2, v3, :cond_2f

    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 3
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->g:Lj6/e3;

    const-string v1, "Conditional user property too long for local database. Sending directly to service"

    .line 4
    invoke-virtual {v0, v1}, Lj6/e3;->c(Ljava/lang/String;)V

    const/4 v0, 0x0

    goto :goto_34

    :cond_2f
    const/4 v2, 0x2

    invoke-virtual {v0, v2, v1}, Lj6/a3;->n(I[B)Z

    move-result v0

    :goto_34
    move v4, v0

    .line 5
    new-instance v5, Lj6/b;

    invoke-direct {v5, p1}, Lj6/b;-><init>(Lj6/b;)V

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lj6/m5;->p(Z)Lj6/j6;

    move-result-object v3

    new-instance v0, Ll5/i;

    move-object v1, v0

    move-object v2, p0

    move-object v6, p1

    invoke-direct/range {v1 .. v6}, Ll5/i;-><init>(Lj6/m5;Lj6/j6;ZLj6/b;Lj6/b;)V

    invoke-virtual {p0, v0}, Lj6/m5;->u(Ljava/lang/Runnable;)V

    return-void
.end method

.method public final m()Z
    .registers 2

    invoke-virtual {p0}, Lj6/w2;->g()V

    invoke-virtual {p0}, Lj6/q3;->h()V

    iget-object v0, p0, Lj6/m5;->d:Lj6/y2;

    if-eqz v0, :cond_c

    const/4 v0, 0x1

    return v0

    :cond_c
    const/4 v0, 0x0

    return v0
.end method

.method public final n()Z
    .registers 5

    invoke-virtual {p0}, Lj6/w2;->g()V

    invoke-virtual {p0}, Lj6/q3;->h()V

    invoke-virtual {p0}, Lj6/m5;->o()Z

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_29

    iget-object v0, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->A()Lcom/google/android/gms/measurement/internal/f;

    move-result-object v0

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/f;->m0()I

    move-result v0

    sget-object v2, Lj6/u2;->l0:Lj6/t2;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Lj6/t2;->a(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Integer;

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

    move-result v2

    if-lt v0, v2, :cond_27

    return v1

    :cond_27
    const/4 v0, 0x0

    return v0

    :cond_29
    return v1
.end method

.method public final o()Z
    .registers 9

    invoke-virtual {p0}, Lj6/w2;->g()V

    invoke-virtual {p0}, Lj6/q3;->h()V

    iget-object v0, p0, Lj6/m5;->e:Ljava/lang/Boolean;

    if-nez v0, :cond_139

    invoke-virtual {p0}, Lj6/w2;->g()V

    invoke-virtual {p0}, Lj6/q3;->h()V

    iget-object v0, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->t()Lcom/google/android/gms/measurement/internal/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/e;->g()V

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/c;->n()Landroid/content/SharedPreferences;

    move-result-object v1

    const-string v2, "use_service"

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

    move-result v1

    const/4 v3, 0x0

    if-nez v1, :cond_28

    const/4 v0, 0x0

    goto :goto_34

    :cond_28
    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/c;->n()Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0, v2, v3}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    :goto_34
    const/4 v1, 0x1

    if-eqz v0, :cond_3f

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v4

    if-eqz v4, :cond_3f

    goto/16 :goto_133

    :cond_3f
    iget-object v4, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-static {v4}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v4, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v4}, Lcom/google/android/gms/measurement/internal/d;->o()Lcom/google/android/gms/measurement/internal/a;

    move-result-object v4

    .line 1
    invoke-virtual {v4}, Lj6/q3;->h()V

    iget v4, v4, Lcom/google/android/gms/measurement/internal/a;->j:I

    if-ne v4, v1, :cond_53

    goto/16 :goto_fe

    .line 2
    :cond_53
    iget-object v4, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v4}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v4

    .line 3
    iget-object v4, v4, Lcom/google/android/gms/measurement/internal/b;->n:Lj6/e3;

    const-string v5, "Checking service availability"

    .line 4
    invoke-virtual {v4, v5}, Lj6/e3;->c(Ljava/lang/String;)V

    iget-object v4, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v4}, Lcom/google/android/gms/measurement/internal/d;->A()Lcom/google/android/gms/measurement/internal/f;

    move-result-object v4

    invoke-static {v4}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 5
    sget-object v5, Lm5/f;->b:Lm5/f;

    .line 6
    iget-object v4, v4, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 7
    iget-object v4, v4, Lcom/google/android/gms/measurement/internal/d;->a:Landroid/content/Context;

    const v6, 0xbdfcb8

    .line 8
    invoke-virtual {v5, v4, v6}, Lm5/f;->c(Landroid/content/Context;I)I

    move-result v4

    if-eqz v4, :cond_f1

    if-eq v4, v1, :cond_e3

    const/4 v5, 0x2

    if-eq v4, v5, :cond_bf

    const/4 v0, 0x3

    if-eq v4, v0, :cond_b0

    const/16 v0, 0x9

    if-eq v4, v0, :cond_a5

    const/16 v0, 0x12

    if-eq v4, v0, :cond_9a

    .line 9
    iget-object v0, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 10
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->i:Lj6/e3;

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

    move-result-object v1

    const-string v4, "Unexpected service status"

    invoke-virtual {v0, v4, v1}, Lj6/e3;->d(Ljava/lang/String;Ljava/lang/Object;)V

    goto :goto_bd

    :cond_9a
    iget-object v0, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 12
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->i:Lj6/e3;

    const-string v3, "Service updating"

    goto :goto_fb

    .line 13
    :cond_a5
    iget-object v0, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 14
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->i:Lj6/e3;

    const-string v1, "Service invalid"

    goto :goto_ba

    .line 15
    :cond_b0
    iget-object v0, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 16
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->i:Lj6/e3;

    const-string v1, "Service disabled"

    .line 17
    :goto_ba
    invoke-virtual {v0, v1}, Lj6/e3;->c(Ljava/lang/String;)V

    :goto_bd
    move v1, v3

    goto :goto_ff

    :cond_bf
    iget-object v4, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v4}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v4

    .line 18
    iget-object v4, v4, Lcom/google/android/gms/measurement/internal/b;->m:Lj6/e3;

    const-string v5, "Service container out of date"

    .line 19
    invoke-virtual {v4, v5}, Lj6/e3;->c(Ljava/lang/String;)V

    iget-object v4, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v4}, Lcom/google/android/gms/measurement/internal/d;->A()Lcom/google/android/gms/measurement/internal/f;

    move-result-object v4

    invoke-virtual {v4}, Lcom/google/android/gms/measurement/internal/f;->m0()I

    move-result v4

    const/16 v5, 0x4423

    if-ge v4, v5, :cond_db

    goto :goto_ff

    :cond_db
    if-nez v0, :cond_de

    goto :goto_df

    :cond_de
    move v1, v3

    :goto_df
    move v7, v3

    move v3, v1

    move v1, v7

    goto :goto_ff

    :cond_e3
    iget-object v0, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 20
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->n:Lj6/e3;

    const-string v4, "Service missing"

    .line 21
    invoke-virtual {v0, v4}, Lj6/e3;->c(Ljava/lang/String;)V

    goto :goto_ff

    :cond_f1
    iget-object v0, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 22
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->n:Lj6/e3;

    const-string v3, "Service available"

    .line 23
    :goto_fb
    invoke-virtual {v0, v3}, Lj6/e3;->c(Ljava/lang/String;)V

    :goto_fe
    move v3, v1

    :goto_ff
    if-nez v3, :cond_119

    iget-object v0, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 24
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/d;->g:Lj6/f;

    .line 25
    invoke-virtual {v0}, Lj6/f;->z()Z

    move-result v0

    if-eqz v0, :cond_119

    iget-object v0, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 26
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->f:Lj6/e3;

    const-string v1, "No way to upload. Consider using the full version of Analytics"

    .line 27
    invoke-virtual {v0, v1}, Lj6/e3;->c(Ljava/lang/String;)V

    goto :goto_132

    :cond_119
    if-eqz v1, :cond_132

    iget-object v0, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->t()Lcom/google/android/gms/measurement/internal/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/e;->g()V

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/c;->n()Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0, v2, v3}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->apply()V

    :cond_132
    :goto_132
    move v1, v3

    :goto_133
    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lj6/m5;->e:Ljava/lang/Boolean;

    :cond_139
    iget-object v0, p0, Lj6/m5;->e:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    return v0
.end method

.method public final p(Z)Lj6/j6;
    .registers 38

    move-object/from16 v1, p0

    iget-object v0, v1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, v1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->o()Lcom/google/android/gms/measurement/internal/a;

    move-result-object v2

    const-wide/16 v3, 0x0

    const/4 v5, 0x1

    const/4 v0, 0x0

    if-eqz p1, :cond_c4

    iget-object v6, v1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v6}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v6

    iget-object v7, v6, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v7}, Lcom/google/android/gms/measurement/internal/d;->t()Lcom/google/android/gms/measurement/internal/c;

    move-result-object v7

    iget-object v7, v7, Lcom/google/android/gms/measurement/internal/c;->d:Lj6/o3;

    if-nez v7, :cond_25

    goto/16 :goto_c4

    :cond_25
    iget-object v6, v6, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v6}, Lcom/google/android/gms/measurement/internal/d;->t()Lcom/google/android/gms/measurement/internal/c;

    move-result-object v6

    iget-object v6, v6, Lcom/google/android/gms/measurement/internal/c;->d:Lj6/o3;

    .line 1
    iget-object v7, v6, Lj6/o3;->e:Lcom/google/android/gms/measurement/internal/c;

    invoke-virtual {v7}, Lcom/google/android/gms/measurement/internal/e;->g()V

    iget-object v7, v6, Lj6/o3;->e:Lcom/google/android/gms/measurement/internal/c;

    invoke-virtual {v7}, Lcom/google/android/gms/measurement/internal/e;->g()V

    .line 2
    iget-object v7, v6, Lj6/o3;->e:Lcom/google/android/gms/measurement/internal/c;

    invoke-virtual {v7}, Lcom/google/android/gms/measurement/internal/c;->n()Landroid/content/SharedPreferences;

    move-result-object v7

    iget-object v8, v6, Lj6/o3;->a:Ljava/lang/String;

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

    move-result-wide v7

    cmp-long v9, v7, v3

    if-nez v9, :cond_4c

    .line 3
    invoke-virtual {v6}, Lj6/o3;->a()V

    move-wide v7, v3

    goto :goto_5b

    :cond_4c
    iget-object v9, v6, Lj6/o3;->e:Lcom/google/android/gms/measurement/internal/c;

    iget-object v9, v9, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 4
    iget-object v9, v9, Lcom/google/android/gms/measurement/internal/d;->n:Lu5/c;

    .line 5
    invoke-interface {v9}, Lu5/c;->b()J

    move-result-wide v9

    sub-long/2addr v7, v9

    invoke-static {v7, v8}, Ljava/lang/Math;->abs(J)J

    move-result-wide v7

    :goto_5b
    iget-wide v9, v6, Lj6/o3;->d:J

    cmp-long v11, v7, v9

    if-gez v11, :cond_62

    goto :goto_6a

    :cond_62
    add-long/2addr v9, v9

    cmp-long v7, v7, v9

    if-lez v7, :cond_6c

    invoke-virtual {v6}, Lj6/o3;->a()V

    :goto_6a
    move-object v6, v0

    goto :goto_9a

    :cond_6c
    iget-object v7, v6, Lj6/o3;->e:Lcom/google/android/gms/measurement/internal/c;

    invoke-virtual {v7}, Lcom/google/android/gms/measurement/internal/c;->n()Landroid/content/SharedPreferences;

    move-result-object v7

    iget-object v8, v6, Lj6/o3;->c:Ljava/lang/String;

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

    move-result-object v7

    iget-object v8, v6, Lj6/o3;->e:Lcom/google/android/gms/measurement/internal/c;

    invoke-virtual {v8}, Lcom/google/android/gms/measurement/internal/c;->n()Landroid/content/SharedPreferences;

    move-result-object v8

    iget-object v9, v6, Lj6/o3;->b:Ljava/lang/String;

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

    move-result-wide v8

    invoke-virtual {v6}, Lj6/o3;->a()V

    if-eqz v7, :cond_98

    cmp-long v6, v8, v3

    if-gtz v6, :cond_8e

    goto :goto_98

    :cond_8e
    new-instance v6, Landroid/util/Pair;

    invoke-static {v8, v9}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v8

    invoke-direct {v6, v7, v8}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    goto :goto_9a

    :cond_98
    :goto_98
    sget-object v6, Lcom/google/android/gms/measurement/internal/c;->w:Landroid/util/Pair;

    :goto_9a
    if-eqz v6, :cond_c4

    .line 6
    sget-object v7, Lcom/google/android/gms/measurement/internal/c;->w:Landroid/util/Pair;

    if-ne v6, v7, :cond_a1

    goto :goto_c4

    :cond_a1
    iget-object v0, v6, Landroid/util/Pair;->second:Ljava/lang/Object;

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

    move-result-object v0

    iget-object v6, v6, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v6, Ljava/lang/String;

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

    move-result v7

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

    move-result-object v8

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

    move-result v8

    new-instance v9, Ljava/lang/StringBuilder;

    add-int/2addr v7, v5

    add-int/2addr v7, v8

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

    const-string v7, ":"

    invoke-static {v9, v0, v7, v6}, Li/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :cond_c4
    :goto_c4
    move-object/from16 v17, v0

    .line 7
    invoke-virtual {v2}, Lj6/w2;->g()V

    new-instance v35, Lj6/j6;

    invoke-virtual {v2}, Lcom/google/android/gms/measurement/internal/a;->l()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v2}, Lcom/google/android/gms/measurement/internal/a;->m()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v2}, Lj6/q3;->h()V

    iget-object v9, v2, Lcom/google/android/gms/measurement/internal/a;->d:Ljava/lang/String;

    invoke-virtual {v2}, Lj6/q3;->h()V

    iget v0, v2, Lcom/google/android/gms/measurement/internal/a;->e:I

    int-to-long v10, v0

    invoke-virtual {v2}, Lj6/q3;->h()V

    iget-object v0, v2, Lcom/google/android/gms/measurement/internal/a;->f:Ljava/lang/String;

    const-string v6, "null reference"

    .line 8
    invoke-static {v0, v6}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    .line 9
    iget-object v12, v2, Lcom/google/android/gms/measurement/internal/a;->f:Ljava/lang/String;

    iget-object v0, v2, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 10
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/d;->g:Lj6/f;

    .line 11
    invoke-virtual {v0}, Lj6/f;->o()J

    invoke-virtual {v2}, Lj6/q3;->h()V

    invoke-virtual {v2}, Lj6/w2;->g()V

    iget-wide v13, v2, Lcom/google/android/gms/measurement/internal/a;->g:J

    cmp-long v0, v13, v3

    const/4 v3, 0x0

    if-nez v0, :cond_17e

    iget-object v0, v2, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->A()Lcom/google/android/gms/measurement/internal/f;

    move-result-object v4

    iget-object v0, v2, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 12
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/d;->a:Landroid/content/Context;

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

    move-result-object v13

    invoke-virtual {v4}, Lcom/google/android/gms/measurement/internal/e;->g()V

    invoke-static {v13}, Lcom/google/android/gms/common/internal/d;->e(Ljava/lang/String;)Ljava/lang/String;

    invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v14

    invoke-static {}, Lcom/google/android/gms/measurement/internal/f;->r()Ljava/security/MessageDigest;

    move-result-object v15

    const-wide/16 v18, -0x1

    if-nez v15, :cond_12c

    iget-object v0, v4, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 14
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->f:Lj6/e3;

    const-string v4, "Could not get MD5 instance"

    .line 15
    invoke-virtual {v0, v4}, Lj6/e3;->c(Ljava/lang/String;)V

    goto :goto_17a

    :cond_12c
    if-eqz v14, :cond_178

    :try_start_12e
    invoke-virtual {v4, v0, v13}, Lcom/google/android/gms/measurement/internal/f;->U(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v13

    if-nez v13, :cond_178

    invoke-static {v0}, Lw5/c;->a(Landroid/content/Context;)Lw5/b;

    move-result-object v0

    iget-object v13, v4, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 16
    iget-object v13, v13, Lcom/google/android/gms/measurement/internal/d;->a:Landroid/content/Context;

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

    move-result-object v13

    const/16 v14, 0x40

    invoke-virtual {v0, v13, v14}, Lw5/b;->c(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v0

    iget-object v0, v0, Landroid/content/pm/PackageInfo;->signatures:[Landroid/content/pm/Signature;

    if-eqz v0, :cond_15c

    array-length v13, v0

    if-lez v13, :cond_15c

    aget-object v0, v0, v3

    invoke-virtual {v0}, Landroid/content/pm/Signature;->toByteArray()[B

    move-result-object v0

    invoke-virtual {v15, v0}, Ljava/security/MessageDigest;->digest([B)[B

    move-result-object v0

    invoke-static {v0}, Lcom/google/android/gms/measurement/internal/f;->n0([B)J

    move-result-wide v18

    goto :goto_17a

    :cond_15c
    iget-object v0, v4, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 18
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->i:Lj6/e3;

    const-string v13, "Could not get signatures"

    .line 19
    invoke-virtual {v0, v13}, Lj6/e3;->c(Ljava/lang/String;)V
    :try_end_169
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_12e .. :try_end_169} :catch_16a

    goto :goto_17a

    :catch_16a
    move-exception v0

    iget-object v4, v4, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v4}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v4

    .line 20
    iget-object v4, v4, Lcom/google/android/gms/measurement/internal/b;->f:Lj6/e3;

    const-string v13, "Package name not found"

    .line 21
    invoke-virtual {v4, v13, v0}, Lj6/e3;->d(Ljava/lang/String;Ljava/lang/Object;)V

    :cond_178
    const-wide/16 v18, 0x0

    :goto_17a
    move-wide/from16 v13, v18

    iput-wide v13, v2, Lcom/google/android/gms/measurement/internal/a;->g:J

    :cond_17e
    move-wide v15, v13

    iget-object v0, v2, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->e()Z

    move-result v18

    iget-object v0, v2, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->t()Lcom/google/android/gms/measurement/internal/c;

    move-result-object v0

    iget-boolean v0, v0, Lcom/google/android/gms/measurement/internal/c;->o:Z

    xor-int/lit8 v19, v0, 0x1

    invoke-virtual {v2}, Lj6/w2;->g()V

    iget-object v0, v2, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->e()Z

    move-result v0

    if-nez v0, :cond_19c

    goto/16 :goto_214

    .line 22
    :cond_19c
    sget-object v0, Lg6/ub;->s:Lg6/ub;

    invoke-virtual {v0}, Lg6/ub;->a()Lg6/vb;

    move-result-object v0

    invoke-interface {v0}, Lg6/vb;->zza()Z

    .line 23
    iget-object v0, v2, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 24
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/d;->g:Lj6/f;

    .line 25
    sget-object v4, Lj6/u2;->d0:Lj6/t2;

    const/4 v13, 0x0

    invoke-virtual {v0, v13, v4}, Lj6/f;->v(Ljava/lang/String;Lj6/t2;)Z

    move-result v0

    if-eqz v0, :cond_1c0

    iget-object v0, v2, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 26
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->n:Lj6/e3;

    const-string v3, "Disabled IID for tests."

    .line 27
    :goto_1bc
    invoke-virtual {v0, v3}, Lj6/e3;->c(Ljava/lang/String;)V

    goto :goto_214

    :cond_1c0
    :try_start_1c0
    iget-object v0, v2, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 28
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/d;->a:Landroid/content/Context;

    .line 29
    invoke-virtual {v0}, Landroid/content/Context;->getClassLoader()Ljava/lang/ClassLoader;

    move-result-object v0

    const-string v4, "com.google.firebase.analytics.FirebaseAnalytics"

    invoke-virtual {v0, v4}, Ljava/lang/ClassLoader;->loadClass(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v0
    :try_end_1ce
    .catch Ljava/lang/ClassNotFoundException; {:try_start_1c0 .. :try_end_1ce} :catch_214

    if-nez v0, :cond_1d1

    goto :goto_214

    :cond_1d1
    :try_start_1d1
    new-array v4, v5, [Ljava/lang/Class;

    const-class v13, Landroid/content/Context;

    aput-object v13, v4, v3

    const-string v13, "getInstance"

    invoke-virtual {v0, v13, v4}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v4

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

    iget-object v13, v2, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 30
    iget-object v13, v13, Lcom/google/android/gms/measurement/internal/d;->a:Landroid/content/Context;

    aput-object v13, v5, v3

    const/4 v13, 0x0

    .line 31
    invoke-virtual {v4, v13, v5}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4
    :try_end_1ea
    .catch Ljava/lang/Exception; {:try_start_1d1 .. :try_end_1ea} :catch_209

    if-nez v4, :cond_1ed

    goto :goto_214

    :cond_1ed
    :try_start_1ed
    const-string v5, "getFirebaseInstanceId"

    new-array v13, v3, [Ljava/lang/Class;

    invoke-virtual {v0, v5, v13}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v0

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

    invoke-virtual {v0, v4, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;
    :try_end_1fd
    .catch Ljava/lang/Exception; {:try_start_1ed .. :try_end_1fd} :catch_1fe

    goto :goto_215

    :catch_1fe
    iget-object v0, v2, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 32
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->k:Lj6/e3;

    const-string v3, "Failed to retrieve Firebase Instance Id"

    goto :goto_1bc

    .line 33
    :catch_209
    iget-object v0, v2, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 34
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->j:Lj6/e3;

    const-string v3, "Failed to obtain Firebase Analytics instance"

    goto :goto_1bc

    :catch_214
    :goto_214
    const/4 v0, 0x0

    :goto_215
    move-object/from16 v20, v0

    .line 35
    iget-object v0, v2, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->t()Lcom/google/android/gms/measurement/internal/c;

    move-result-object v3

    iget-object v3, v3, Lcom/google/android/gms/measurement/internal/c;->e:Lj6/n3;

    invoke-virtual {v3}, Lj6/n3;->a()J

    move-result-wide v3

    const-wide/16 v13, 0x0

    cmp-long v5, v3, v13

    if-nez v5, :cond_22c

    iget-wide v3, v0, Lcom/google/android/gms/measurement/internal/d;->G:J

    goto :goto_232

    :cond_22c
    iget-wide v13, v0, Lcom/google/android/gms/measurement/internal/d;->G:J

    invoke-static {v13, v14, v3, v4}, Ljava/lang/Math;->min(JJ)J

    move-result-wide v3

    :goto_232
    move-wide/from16 v23, v3

    invoke-virtual {v2}, Lj6/q3;->h()V

    iget v0, v2, Lcom/google/android/gms/measurement/internal/a;->j:I

    iget-object v3, v2, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 36
    iget-object v3, v3, Lcom/google/android/gms/measurement/internal/d;->g:Lj6/f;

    .line 37
    invoke-virtual {v3}, Lj6/f;->u()Z

    move-result v26

    iget-object v3, v2, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v3}, Lcom/google/android/gms/measurement/internal/d;->t()Lcom/google/android/gms/measurement/internal/c;

    move-result-object v3

    invoke-virtual {v3}, Lcom/google/android/gms/measurement/internal/e;->g()V

    invoke-virtual {v3}, Lcom/google/android/gms/measurement/internal/c;->n()Landroid/content/SharedPreferences;

    move-result-object v3

    const-string v4, "deferred_analytics_collection"

    const/4 v5, 0x0

    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v27

    invoke-virtual {v2}, Lj6/q3;->h()V

    iget-object v3, v2, Lcom/google/android/gms/measurement/internal/a;->l:Ljava/lang/String;

    iget-object v4, v2, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 38
    iget-object v4, v4, Lcom/google/android/gms/measurement/internal/d;->g:Lj6/f;

    const-string v5, "google_analytics_default_allow_ad_personalization_signals"

    .line 39
    invoke-virtual {v4, v5}, Lj6/f;->t(Ljava/lang/String;)Ljava/lang/Boolean;

    move-result-object v4

    if-nez v4, :cond_268

    const/4 v4, 0x0

    goto :goto_272

    :cond_268
    invoke-virtual {v4}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v4

    xor-int/lit8 v4, v4, 0x1

    invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v4

    :goto_272
    move-object/from16 v29, v4

    iget-wide v4, v2, Lcom/google/android/gms/measurement/internal/a;->h:J

    iget-object v13, v2, Lcom/google/android/gms/measurement/internal/a;->i:Ljava/util/List;

    invoke-static {}, Lg6/ma;->b()Z

    iget-object v14, v2, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 40
    iget-object v14, v14, Lcom/google/android/gms/measurement/internal/d;->g:Lj6/f;

    .line 41
    sget-object v1, Lj6/u2;->b0:Lj6/t2;

    move-object/from16 v21, v13

    const/4 v13, 0x0

    invoke-virtual {v14, v13, v1}, Lj6/f;->v(Ljava/lang/String;Lj6/t2;)Z

    move-result v1

    if-eqz v1, :cond_297

    .line 42
    invoke-virtual {v2}, Lj6/q3;->h()V

    iget-object v1, v2, Lcom/google/android/gms/measurement/internal/a;->m:Ljava/lang/String;

    .line 43
    invoke-static {v1, v6}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    .line 44
    iget-object v1, v2, Lcom/google/android/gms/measurement/internal/a;->m:Ljava/lang/String;

    move-object/from16 v33, v1

    goto :goto_299

    :cond_297
    move-object/from16 v33, v13

    :goto_299
    const-wide/32 v13, 0xb3b0

    move-object/from16 v1, v21

    const-wide/16 v21, 0x0

    .line 45
    iget-object v2, v2, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v2}, Lcom/google/android/gms/measurement/internal/d;->t()Lcom/google/android/gms/measurement/internal/c;

    move-result-object v2

    invoke-virtual {v2}, Lcom/google/android/gms/measurement/internal/c;->o()Lj6/g;

    move-result-object v2

    invoke-virtual {v2}, Lj6/g;->e()Ljava/lang/String;

    move-result-object v34

    move-object/from16 v6, v35

    move/from16 v25, v0

    move-object/from16 v28, v3

    move-wide/from16 v30, v4

    move-object/from16 v32, v1

    invoke-direct/range {v6 .. v34}, Lj6/j6;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JLjava/lang/String;JJLjava/lang/String;ZZLjava/lang/String;JJIZZLjava/lang/String;Ljava/lang/Boolean;JLjava/util/List;Ljava/lang/String;Ljava/lang/String;)V

    return-object v35
.end method

.method public final r()V
    .registers 5

    invoke-virtual {p0}, Lj6/w2;->g()V

    iget-object v0, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 1
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->n:Lj6/e3;

    .line 2
    iget-object v1, p0, Lj6/m5;->h:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

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

    move-result-object v1

    const-string v2, "Processing queued up service tasks"

    invoke-virtual {v0, v2, v1}, Lj6/e3;->d(Ljava/lang/String;Ljava/lang/Object;)V

    iget-object v0, p0, Lj6/m5;->h:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_20
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_3f

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Runnable;

    :try_start_2c
    invoke-interface {v1}, Ljava/lang/Runnable;->run()V
    :try_end_2f
    .catch Ljava/lang/RuntimeException; {:try_start_2c .. :try_end_2f} :catch_30

    goto :goto_20

    :catch_30
    move-exception v1

    iget-object v2, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v2}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v2

    .line 3
    iget-object v2, v2, Lcom/google/android/gms/measurement/internal/b;->f:Lj6/e3;

    const-string v3, "Task exception while flushing queue"

    .line 4
    invoke-virtual {v2, v3, v1}, Lj6/e3;->d(Ljava/lang/String;Ljava/lang/Object;)V

    goto :goto_20

    :cond_3f
    iget-object v0, p0, Lj6/m5;->h:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    iget-object v0, p0, Lj6/m5;->i:Lj6/k;

    invoke-virtual {v0}, Lj6/k;->a()V

    return-void
.end method

.method public final t()V
    .registers 4

    invoke-virtual {p0}, Lj6/w2;->g()V

    iget-object v0, p0, Lj6/m5;->g:Lj6/v5;

    .line 1
    iget-object v1, v0, Lj6/v5;->a:Lu5/c;

    invoke-interface {v1}, Lu5/c;->c()J

    move-result-wide v1

    iput-wide v1, v0, Lj6/v5;->b:J

    .line 2
    iget-object v0, p0, Lj6/m5;->f:Lj6/k;

    iget-object v1, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-static {v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    sget-object v1, Lj6/u2;->I:Lj6/t2;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lj6/t2;->a(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Long;

    invoke-virtual {v1}, Ljava/lang/Long;->longValue()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lj6/k;->c(J)V

    return-void
.end method

.method public final u(Ljava/lang/Runnable;)V
    .registers 6

    invoke-virtual {p0}, Lj6/w2;->g()V

    invoke-virtual {p0}, Lj6/m5;->m()Z

    move-result v0

    if-eqz v0, :cond_d

    invoke-interface {p1}, Ljava/lang/Runnable;->run()V

    return-void

    :cond_d
    iget-object v0, p0, Lj6/m5;->h:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    iget-object v1, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-static {v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    int-to-long v0, v0

    const-wide/16 v2, 0x3e8

    cmp-long v0, v0, v2

    if-ltz v0, :cond_2d

    iget-object p1, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {p1}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object p1

    .line 1
    iget-object p1, p1, Lcom/google/android/gms/measurement/internal/b;->f:Lj6/e3;

    const-string v0, "Discarding data. Max runnable queue size reached"

    .line 2
    invoke-virtual {p1, v0}, Lj6/e3;->c(Ljava/lang/String;)V

    return-void

    :cond_2d
    iget-object v0, p0, Lj6/m5;->h:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object p1, p0, Lj6/m5;->i:Lj6/k;

    const-wide/32 v0, 0xea60

    invoke-virtual {p1, v0, v1}, Lj6/k;->c(J)V

    invoke-virtual {p0}, Lj6/m5;->x()V

    return-void
.end method

.method public final v()Z
    .registers 2

    iget-object v0, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    const/4 v0, 0x1

    return v0
.end method

.method public final x()V
    .registers 8

    invoke-virtual {p0}, Lj6/w2;->g()V

    invoke-virtual {p0}, Lj6/q3;->h()V

    invoke-virtual {p0}, Lj6/m5;->m()Z

    move-result v0

    if-eqz v0, :cond_d

    return-void

    :cond_d
    invoke-virtual {p0}, Lj6/m5;->o()Z

    move-result v0

    const/4 v1, 0x1

    if-nez v0, :cond_b4

    iget-object v0, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 1
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/d;->g:Lj6/f;

    .line 2
    invoke-virtual {v0}, Lj6/f;->z()Z

    move-result v0

    if-nez v0, :cond_b3

    iget-object v0, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 3
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/d;->a:Landroid/content/Context;

    .line 4
    invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    new-instance v2, Landroid/content/Intent;

    invoke-direct {v2}, Landroid/content/Intent;-><init>()V

    iget-object v3, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 5
    iget-object v3, v3, Lcom/google/android/gms/measurement/internal/d;->a:Landroid/content/Context;

    const-string v4, "com.google.android.gms.measurement.AppMeasurementService"

    .line 6
    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->setClassName(Landroid/content/Context;Ljava/lang/String;)Landroid/content/Intent;

    move-result-object v2

    const/high16 v3, 0x10000

    invoke-virtual {v0, v2, v3}, Landroid/content/pm/PackageManager;->queryIntentServices(Landroid/content/Intent;I)Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_a6

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_a6

    new-instance v0, Landroid/content/Intent;

    const-string v2, "com.google.android.gms.measurement.START"

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

    new-instance v2, Landroid/content/ComponentName;

    iget-object v3, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 7
    iget-object v4, v3, Lcom/google/android/gms/measurement/internal/d;->a:Landroid/content/Context;

    .line 8
    invoke-static {v3}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    const-string v3, "com.google.android.gms.measurement.AppMeasurementService"

    invoke-direct {v2, v4, v3}, Landroid/content/ComponentName;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    invoke-virtual {v0, v2}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

    iget-object v2, p0, Lj6/m5;->c:Lj6/l5;

    .line 9
    iget-object v3, v2, Lj6/l5;->t:Lj6/m5;

    invoke-virtual {v3}, Lj6/w2;->g()V

    iget-object v3, v2, Lj6/l5;->t:Lj6/m5;

    iget-object v3, v3, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 10
    iget-object v3, v3, Lcom/google/android/gms/measurement/internal/d;->a:Landroid/content/Context;

    .line 11
    invoke-static {}, Lt5/a;->b()Lt5/a;

    move-result-object v4

    monitor-enter v2

    :try_start_72
    iget-boolean v5, v2, Lj6/l5;->r:Z

    if-eqz v5, :cond_87

    iget-object v0, v2, Lj6/l5;->t:Lj6/m5;

    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 12
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->n:Lj6/e3;

    const-string v1, "Connection attempt already in progress"

    .line 13
    invoke-virtual {v0, v1}, Lj6/e3;->c(Ljava/lang/String;)V

    :goto_85
    monitor-exit v2

    goto :goto_a2

    :cond_87
    iget-object v5, v2, Lj6/l5;->t:Lj6/m5;

    iget-object v5, v5, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v5}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v5

    .line 14
    iget-object v5, v5, Lcom/google/android/gms/measurement/internal/b;->n:Lj6/e3;

    const-string v6, "Using local app measurement service"

    .line 15
    invoke-virtual {v5, v6}, Lj6/e3;->c(Ljava/lang/String;)V

    iput-boolean v1, v2, Lj6/l5;->r:Z

    iget-object v1, v2, Lj6/l5;->t:Lj6/m5;

    .line 16
    iget-object v1, v1, Lj6/m5;->c:Lj6/l5;

    const/16 v5, 0x81

    .line 17
    invoke-virtual {v4, v3, v0, v1, v5}, Lt5/a;->a(Landroid/content/Context;Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z

    goto :goto_85

    :goto_a2
    return-void

    :catchall_a3
    move-exception v0

    monitor-exit v2
    :try_end_a5
    .catchall {:try_start_72 .. :try_end_a5} :catchall_a3

    throw v0

    .line 18
    :cond_a6
    iget-object v0, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 19
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->f:Lj6/e3;

    const-string v1, "Unable to use remote or local measurement implementation. Please register the AppMeasurementService service in the app manifest"

    .line 20
    invoke-virtual {v0, v1}, Lj6/e3;->c(Ljava/lang/String;)V

    :cond_b3
    return-void

    :cond_b4
    iget-object v0, p0, Lj6/m5;->c:Lj6/l5;

    .line 21
    iget-object v2, v0, Lj6/l5;->t:Lj6/m5;

    invoke-virtual {v2}, Lj6/w2;->g()V

    iget-object v2, v0, Lj6/l5;->t:Lj6/m5;

    iget-object v2, v2, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 22
    iget-object v2, v2, Lcom/google/android/gms/measurement/internal/d;->a:Landroid/content/Context;

    .line 23
    monitor-enter v0

    :try_start_c2
    iget-boolean v3, v0, Lj6/l5;->r:Z

    if-eqz v3, :cond_d7

    iget-object v1, v0, Lj6/l5;->t:Lj6/m5;

    iget-object v1, v1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v1}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v1

    .line 24
    iget-object v1, v1, Lcom/google/android/gms/measurement/internal/b;->n:Lj6/e3;

    const-string v2, "Connection attempt already in progress"

    .line 25
    invoke-virtual {v1, v2}, Lj6/e3;->c(Ljava/lang/String;)V

    :goto_d5
    monitor-exit v0

    goto :goto_124

    :cond_d7
    iget-object v3, v0, Lj6/l5;->s:Lj6/c3;

    if-eqz v3, :cond_fb

    iget-object v3, v0, Lj6/l5;->s:Lj6/c3;

    invoke-virtual {v3}, Lcom/google/android/gms/common/internal/a;->isConnecting()Z

    move-result v3

    if-nez v3, :cond_eb

    iget-object v3, v0, Lj6/l5;->s:Lj6/c3;

    invoke-virtual {v3}, Lcom/google/android/gms/common/internal/a;->isConnected()Z

    move-result v3

    if-eqz v3, :cond_fb

    :cond_eb
    iget-object v1, v0, Lj6/l5;->t:Lj6/m5;

    iget-object v1, v1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v1}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v1

    .line 26
    iget-object v1, v1, Lcom/google/android/gms/measurement/internal/b;->n:Lj6/e3;

    const-string v2, "Already awaiting connection attempt"

    .line 27
    invoke-virtual {v1, v2}, Lj6/e3;->c(Ljava/lang/String;)V

    goto :goto_d5

    :cond_fb
    new-instance v3, Lj6/c3;

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v4

    invoke-direct {v3, v2, v4, v0, v0}, Lj6/c3;-><init>(Landroid/content/Context;Landroid/os/Looper;Lcom/google/android/gms/common/internal/a$a;Lcom/google/android/gms/common/internal/a$b;)V

    iput-object v3, v0, Lj6/l5;->s:Lj6/c3;

    iget-object v2, v0, Lj6/l5;->t:Lj6/m5;

    iget-object v2, v2, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v2}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v2

    .line 28
    iget-object v2, v2, Lcom/google/android/gms/measurement/internal/b;->n:Lj6/e3;

    const-string v3, "Connecting to remote service"

    .line 29
    invoke-virtual {v2, v3}, Lj6/e3;->c(Ljava/lang/String;)V

    iput-boolean v1, v0, Lj6/l5;->r:Z

    iget-object v1, v0, Lj6/l5;->s:Lj6/c3;

    const-string v2, "null reference"

    .line 30
    invoke-static {v1, v2}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    .line 31
    iget-object v1, v0, Lj6/l5;->s:Lj6/c3;

    invoke-virtual {v1}, Lcom/google/android/gms/common/internal/a;->checkAvailabilityAndConnect()V

    goto :goto_d5

    :goto_124
    return-void

    :catchall_125
    move-exception v1

    monitor-exit v0
    :try_end_127
    .catchall {:try_start_c2 .. :try_end_127} :catchall_125

    throw v1
.end method

.method public final y()V
    .registers 5

    invoke-virtual {p0}, Lj6/w2;->g()V

    invoke-virtual {p0}, Lj6/q3;->h()V

    iget-object v0, p0, Lj6/m5;->c:Lj6/l5;

    .line 1
    iget-object v1, v0, Lj6/l5;->s:Lj6/c3;

    if-eqz v1, :cond_21

    iget-object v1, v0, Lj6/l5;->s:Lj6/c3;

    invoke-virtual {v1}, Lcom/google/android/gms/common/internal/a;->isConnected()Z

    move-result v1

    if-nez v1, :cond_1c

    iget-object v1, v0, Lj6/l5;->s:Lj6/c3;

    invoke-virtual {v1}, Lcom/google/android/gms/common/internal/a;->isConnecting()Z

    move-result v1

    if-eqz v1, :cond_21

    :cond_1c
    iget-object v1, v0, Lj6/l5;->s:Lj6/c3;

    invoke-virtual {v1}, Lcom/google/android/gms/common/internal/a;->disconnect()V

    :cond_21
    const/4 v1, 0x0

    iput-object v1, v0, Lj6/l5;->s:Lj6/c3;

    .line 2
    :try_start_24
    invoke-static {}, Lt5/a;->b()Lt5/a;

    move-result-object v0

    iget-object v2, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 3
    iget-object v2, v2, Lcom/google/android/gms/measurement/internal/d;->a:Landroid/content/Context;

    .line 4
    iget-object v3, p0, Lj6/m5;->c:Lj6/l5;

    invoke-virtual {v0, v2, v3}, Lt5/a;->c(Landroid/content/Context;Landroid/content/ServiceConnection;)V
    :try_end_31
    .catch Ljava/lang/IllegalStateException; {:try_start_24 .. :try_end_31} :catch_31
    .catch Ljava/lang/IllegalArgumentException; {:try_start_24 .. :try_end_31} :catch_31

    :catch_31
    iput-object v1, p0, Lj6/m5;->d:Lj6/y2;

    return-void
.end method

.method public final z(Ljava/util/concurrent/atomic/AtomicReference;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/concurrent/atomic/AtomicReference<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    invoke-virtual {p0}, Lj6/w2;->g()V

    invoke-virtual {p0}, Lj6/q3;->h()V

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lj6/m5;->p(Z)Lj6/j6;

    move-result-object v0

    new-instance v1, Lz5/i3;

    invoke-direct {v1, p0, p1, v0}, Lz5/i3;-><init>(Lj6/m5;Ljava/util/concurrent/atomic/AtomicReference;Lj6/j6;)V

    invoke-virtual {p0, v1}, Lj6/m5;->u(Ljava/lang/Runnable;)V

    return-void
.end method
