.class public final Lj6/q6;
.super Lj6/y5;
.source ""


# instance fields
.field public d:Ljava/lang/String;

.field public e:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field public f:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/Integer;",
            "Lj6/m6;",
            ">;"
        }
    .end annotation
.end field

.field public g:Ljava/lang/Long;

.field public h:Ljava/lang/Long;


# direct methods
.method public constructor <init>(Lj6/b6;)V
    .registers 2

    invoke-direct {p0, p1}, Lj6/y5;-><init>(Lj6/b6;)V

    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(Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/lang/Long;Ljava/lang/Long;)Ljava/util/List;
    .registers 69
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/List<",
            "Lg6/v2;",
            ">;",
            "Ljava/util/List<",
            "Lg6/o3;",
            ">;",
            "Ljava/lang/Long;",
            "Ljava/lang/Long;",
            ")",
            "Ljava/util/List<",
            "Lg6/r2;",
            ">;"
        }
    .end annotation

    move-object/from16 v9, p0

    const-string v10, "current_results"

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

    invoke-static/range {p2 .. p2}, Lcom/google/android/gms/common/internal/d;->h(Ljava/lang/Object;)Ljava/lang/Object;

    invoke-static/range {p3 .. p3}, Lcom/google/android/gms/common/internal/d;->h(Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p1

    iput-object v0, v9, Lj6/q6;->d:Ljava/lang/String;

    new-instance v0, Ljava/util/HashSet;

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

    iput-object v0, v9, Lj6/q6;->e:Ljava/util/Set;

    new-instance v0, Lr/a;

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

    iput-object v0, v9, Lj6/q6;->f:Ljava/util/Map;

    move-object/from16 v0, p4

    iput-object v0, v9, Lj6/q6;->g:Ljava/lang/Long;

    move-object/from16 v0, p5

    iput-object v0, v9, Lj6/q6;->h:Ljava/lang/Long;

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

    move-result-object v0

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

    move-result v1

    const/4 v11, 0x0

    const/4 v12, 0x1

    if-eqz v1, :cond_47

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

    move-result-object v1

    check-cast v1, Lg6/v2;

    invoke-virtual {v1}, Lg6/v2;->y()Ljava/lang/String;

    move-result-object v1

    const-string v2, "_s"

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

    move-result v1

    if-eqz v1, :cond_2b

    move v1, v12

    goto :goto_48

    :cond_47
    move v1, v11

    :goto_48
    invoke-static {}, Lg6/aa;->b()Z

    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;->m()Lj6/f;

    move-result-object v0

    iget-object v2, v9, Lj6/q6;->d:Ljava/lang/String;

    sget-object v3, Lj6/u2;->X:Lj6/t2;

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

    move-result v13

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

    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;->m()Lj6/f;

    move-result-object v0

    iget-object v2, v9, Lj6/q6;->d:Ljava/lang/String;

    sget-object v3, Lj6/u2;->W:Lj6/t2;

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

    move-result v14

    if-eqz v1, :cond_af

    iget-object v0, v9, Lj6/x5;->b:Lj6/b6;

    invoke-virtual {v0}, Lj6/b6;->M()Lj6/j;

    move-result-object v2

    iget-object v3, v9, Lj6/q6;->d:Ljava/lang/String;

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

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

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

    new-instance v0, Landroid/content/ContentValues;

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

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

    move-result-object v4

    const-string v5, "current_session_count"

    invoke-virtual {v0, v5, v4}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    :try_start_8b
    invoke-virtual {v2}, Lj6/j;->D()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v4

    new-array v5, v12, [Ljava/lang/String;

    aput-object v3, v5, v11

    const-string v6, "events"

    const-string v7, "app_id = ?"

    invoke-virtual {v4, v6, v0, v7, v5}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I
    :try_end_9a
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_8b .. :try_end_9a} :catch_9b

    goto :goto_af

    :catch_9b
    move-exception v0

    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

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

    move-result-object v2

    invoke-static {v3}, Lcom/google/android/gms/measurement/internal/b;->u(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v3

    const-string v4, "Error resetting session-scoped event counts. appId"

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

    :cond_af
    :goto_af
    invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;

    move-result-object v0

    const-string v15, "Failed to merge filter. appId"

    const-string v8, "Database error querying filters. appId"

    const-string v7, "data"

    const-string v6, "audience_id"

    if-eqz v14, :cond_179

    if-eqz v13, :cond_179

    iget-object v0, v9, Lj6/x5;->b:Lj6/b6;

    invoke-virtual {v0}, Lj6/b6;->M()Lj6/j;

    move-result-object v2

    iget-object v3, v9, Lj6/q6;->d:Ljava/lang/String;

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

    new-instance v4, Lr/a;

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

    invoke-virtual {v2}, Lj6/j;->D()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v16

    :try_start_d3
    filled-new-array {v6, v7}, [Ljava/lang/String;

    move-result-object v18

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

    aput-object v3, v0, v11

    const-string v17, "event_filters"

    const-string v19, "app_id=?"

    const/16 v21, 0x0

    const/16 v22, 0x0

    const/16 v23, 0x0

    move-object/from16 v20, v0

    invoke-virtual/range {v16 .. v23}, 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;)Landroid/database/Cursor;

    move-result-object v5
    :try_end_eb
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_d3 .. :try_end_eb} :catch_155
    .catchall {:try_start_d3 .. :try_end_eb} :catchall_152

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

    move-result v0

    if-eqz v0, :cond_14b

    :goto_f1
    invoke-interface {v5, v12}, Landroid/database/Cursor;->getBlob(I)[B

    move-result-object v0
    :try_end_f5
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_eb .. :try_end_f5} :catch_150
    .catchall {:try_start_eb .. :try_end_f5} :catchall_172

    :try_start_f5
    invoke-static {}, Lg6/t1;->t()Lg6/s1;

    move-result-object v12

    invoke-static {v12, v0}, Lj6/d6;->D(Lg6/a5;[B)Lg6/a5;

    move-result-object v0

    check-cast v0, Lg6/s1;

    invoke-virtual {v0}, Lg6/c6;->b()Lg6/f6;

    move-result-object v0

    check-cast v0, Lg6/t1;
    :try_end_105
    .catch Ljava/io/IOException; {:try_start_f5 .. :try_end_105} :catch_12b
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_f5 .. :try_end_105} :catch_150
    .catchall {:try_start_f5 .. :try_end_105} :catchall_172

    :try_start_105
    invoke-virtual {v0}, Lg6/t1;->E()Z

    move-result v12

    if-nez v12, :cond_10c

    goto :goto_13d

    :cond_10c
    invoke-interface {v5, v11}, Landroid/database/Cursor;->getInt(I)I

    move-result v12

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

    move-result-object v12

    invoke-virtual {v4, v12}, Lr/h;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v16

    check-cast v16, Ljava/util/List;

    if-nez v16, :cond_125

    new-instance v11, Ljava/util/ArrayList;

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

    invoke-virtual {v4, v12, v11}, Lr/h;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_127

    :cond_125
    move-object/from16 v11, v16

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

    goto :goto_13d

    :catch_12b
    move-exception v0

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

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

    move-result-object v11

    invoke-virtual {v11}, Lcom/google/android/gms/measurement/internal/b;->o()Lj6/e3;

    move-result-object v11

    invoke-static {v3}, Lcom/google/android/gms/measurement/internal/b;->u(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v12

    invoke-virtual {v11, v15, v12, v0}, Lj6/e3;->e(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V

    :goto_13d
    invoke-interface {v5}, Landroid/database/Cursor;->moveToNext()Z

    move-result v0
    :try_end_141
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_105 .. :try_end_141} :catch_150
    .catchall {:try_start_105 .. :try_end_141} :catchall_172

    if-nez v0, :cond_148

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

    move-object v11, v4

    goto :goto_17a

    :cond_148
    const/4 v11, 0x0

    const/4 v12, 0x1

    goto :goto_f1

    :cond_14b
    :try_start_14b
    invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;

    move-result-object v0
    :try_end_14f
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_14b .. :try_end_14f} :catch_150
    .catchall {:try_start_14b .. :try_end_14f} :catchall_172

    goto :goto_16e

    :catch_150
    move-exception v0

    goto :goto_157

    :catchall_152
    move-exception v0

    const/4 v5, 0x0

    goto :goto_173

    :catch_155
    move-exception v0

    const/4 v5, 0x0

    :goto_157
    :try_start_157
    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

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

    move-result-object v2

    invoke-static {v3}, Lcom/google/android/gms/measurement/internal/b;->u(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v3

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

    invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;

    move-result-object v0
    :try_end_16c
    .catchall {:try_start_157 .. :try_end_16c} :catchall_172

    if-eqz v5, :cond_179

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

    goto :goto_179

    :catchall_172
    move-exception v0

    :goto_173
    if-eqz v5, :cond_178

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

    :cond_178
    throw v0

    :cond_179
    :goto_179
    move-object v11, v0

    :goto_17a
    iget-object v0, v9, Lj6/x5;->b:Lj6/b6;

    invoke-virtual {v0}, Lj6/b6;->M()Lj6/j;

    move-result-object v2

    iget-object v3, v9, Lj6/q6;->d:Ljava/lang/String;

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

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

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

    invoke-virtual {v2}, Lj6/j;->D()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v16

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

    move-result-object v18

    const/4 v4, 0x1

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

    const/4 v4, 0x0

    aput-object v3, v0, v4

    const-string v17, "audience_filter_values"

    const-string v19, "app_id=?"

    const/16 v21, 0x0

    const/16 v22, 0x0

    const/16 v23, 0x0

    move-object/from16 v20, v0

    invoke-virtual/range {v16 .. v23}, 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;)Landroid/database/Cursor;

    move-result-object v4
    :try_end_1a9
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_18f .. :try_end_1a9} :catch_229
    .catchall {:try_start_18f .. :try_end_1a9} :catchall_225

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

    move-result v0

    if-nez v0, :cond_1bd

    invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;

    move-result-object v0
    :try_end_1b3
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_1a9 .. :try_end_1b3} :catch_221
    .catchall {:try_start_1a9 .. :try_end_1b3} :catchall_adf

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

    move-object v12, v0

    move-object/from16 v18, v6

    move-object/from16 v19, v7

    goto/16 :goto_24c

    :cond_1bd
    :try_start_1bd
    new-instance v5, Lr/a;

    invoke-direct {v5}, Lr/a;-><init>()V

    :goto_1c2
    const/4 v12, 0x0

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

    move-result v16

    const/4 v12, 0x1

    invoke-interface {v4, v12}, Landroid/database/Cursor;->getBlob(I)[B

    move-result-object v0
    :try_end_1cc
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_1bd .. :try_end_1cc} :catch_221
    .catchall {:try_start_1bd .. :try_end_1cc} :catchall_adf

    :try_start_1cc
    invoke-static {}, Lg6/k3;->w()Lg6/j3;

    move-result-object v12

    invoke-static {v12, v0}, Lj6/d6;->D(Lg6/a5;[B)Lg6/a5;

    move-result-object v0

    check-cast v0, Lg6/j3;

    invoke-virtual {v0}, Lg6/c6;->b()Lg6/f6;

    move-result-object v0

    check-cast v0, Lg6/k3;
    :try_end_1dc
    .catch Ljava/io/IOException; {:try_start_1cc .. :try_end_1dc} :catch_1ea
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_1cc .. :try_end_1dc} :catch_221
    .catchall {:try_start_1cc .. :try_end_1dc} :catchall_adf

    :try_start_1dc
    invoke-static/range {v16 .. v16}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v12

    invoke-virtual {v5, v12, v0}, Lr/h;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v17, v5

    move-object/from16 v18, v6

    move-object/from16 v19, v7

    goto :goto_208

    :catch_1ea
    move-exception v0

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

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

    move-result-object v12

    invoke-virtual {v12}, Lcom/google/android/gms/measurement/internal/b;->o()Lj6/e3;

    move-result-object v12

    move-object/from16 v17, v5

    const-string v5, "Failed to merge filter results. appId, audienceId, error"
    :try_end_1f9
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_1dc .. :try_end_1f9} :catch_221
    .catchall {:try_start_1dc .. :try_end_1f9} :catchall_adf

    move-object/from16 v18, v6

    :try_start_1fb
    invoke-static {v3}, Lcom/google/android/gms/measurement/internal/b;->u(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v6
    :try_end_1ff
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_1fb .. :try_end_1ff} :catch_21d
    .catchall {:try_start_1fb .. :try_end_1ff} :catchall_adf

    move-object/from16 v19, v7

    :try_start_201
    invoke-static/range {v16 .. v16}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    invoke-virtual {v12, v5, v6, v7, v0}, Lj6/e3;->f(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V

    :goto_208
    invoke-interface {v4}, Landroid/database/Cursor;->moveToNext()Z

    move-result v0
    :try_end_20c
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_201 .. :try_end_20c} :catch_21b
    .catchall {:try_start_201 .. :try_end_20c} :catchall_adf

    if-nez v0, :cond_214

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

    move-object/from16 v12, v17

    goto :goto_24c

    :cond_214
    move-object/from16 v5, v17

    move-object/from16 v6, v18

    move-object/from16 v7, v19

    goto :goto_1c2

    :catch_21b
    move-exception v0

    goto :goto_22f

    :catch_21d
    move-exception v0

    :goto_21e
    move-object/from16 v19, v7

    goto :goto_22f

    :catch_221
    move-exception v0

    move-object/from16 v18, v6

    goto :goto_21e

    :catchall_225
    move-exception v0

    const/4 v5, 0x0

    goto/16 :goto_ae1

    :catch_229
    move-exception v0

    move-object/from16 v18, v6

    move-object/from16 v19, v7

    const/4 v4, 0x0

    :goto_22f
    :try_start_22f
    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

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

    move-result-object v2

    const-string v5, "Database error querying filter results. appId"

    invoke-static {v3}, Lcom/google/android/gms/measurement/internal/b;->u(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v3

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

    invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;

    move-result-object v0
    :try_end_246
    .catchall {:try_start_22f .. :try_end_246} :catchall_adf

    if-eqz v4, :cond_24b

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

    :cond_24b
    move-object v12, v0

    :goto_24c
    invoke-interface {v12}, Ljava/util/Map;->isEmpty()Z

    move-result v0

    const/4 v7, 0x2

    if-eqz v0, :cond_25e

    move v13, v7

    move-object/from16 v28, v8

    move-object/from16 v23, v10

    move-object/from16 v11, v18

    move-object/from16 v12, v19

    goto/16 :goto_58d

    :cond_25e
    new-instance v2, Ljava/util/HashSet;

    invoke-interface {v12}, Ljava/util/Map;->keySet()Ljava/util/Set;

    move-result-object v0

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

    if-eqz v1, :cond_3d1

    iget-object v1, v9, Lj6/q6;->d:Ljava/lang/String;

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

    invoke-static {v12}, Lcom/google/android/gms/common/internal/d;->h(Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v3, Lr/a;

    invoke-direct {v3}, Lr/a;-><init>()V

    invoke-interface {v12}, Ljava/util/Map;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_27e

    goto/16 :goto_3c8

    :cond_27e
    iget-object v0, v9, Lj6/x5;->b:Lj6/b6;

    invoke-virtual {v0}, Lj6/b6;->M()Lj6/j;

    move-result-object v4

    invoke-virtual {v4}, Lj6/y5;->h()V

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

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

    new-instance v0, Lr/a;

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

    invoke-virtual {v4}, Lj6/j;->D()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v5

    :try_start_296
    new-array v6, v7, [Ljava/lang/String;

    const/16 v16, 0x0

    aput-object v1, v6, v16

    const/16 v16, 0x1

    aput-object v1, v6, v16

    const-string v7, "select audience_id, filter_id from event_filters where app_id = ? and session_scoped = 1 UNION select audience_id, filter_id from property_filters where app_id = ? and session_scoped = 1;"

    invoke-virtual {v5, v7, v6}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v5
    :try_end_2a6
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_296 .. :try_end_2a6} :catch_2e3
    .catchall {:try_start_296 .. :try_end_2a6} :catchall_2df

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

    move-result v6

    if-eqz v6, :cond_2d8

    :cond_2ac
    const/4 v6, 0x0

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

    move-result v7

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

    move-result-object v6

    invoke-virtual {v0, v6}, Lr/h;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/util/List;

    if-nez v7, :cond_2c5

    new-instance v7, Ljava/util/ArrayList;

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

    invoke-virtual {v0, v6, v7}, Lr/h;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_2c5
    const/4 v6, 0x1

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

    move-result v17

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

    move-result-object v6

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

    invoke-interface {v5}, Landroid/database/Cursor;->moveToNext()Z

    move-result v6

    if-nez v6, :cond_2ac

    goto :goto_2fe

    :cond_2d8
    invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;

    move-result-object v0
    :try_end_2dc
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_2a6 .. :try_end_2dc} :catch_2dd
    .catchall {:try_start_2a6 .. :try_end_2dc} :catchall_3ca

    goto :goto_2fe

    :catch_2dd
    move-exception v0

    goto :goto_2e5

    :catchall_2df
    move-exception v0

    const/4 v5, 0x0

    goto/16 :goto_3cb

    :catch_2e3
    move-exception v0

    const/4 v5, 0x0

    :goto_2e5
    :try_start_2e5
    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

    invoke-virtual {v4}, Lcom/google/android/gms/measurement/internal/b;->o()Lj6/e3;

    move-result-object v4

    const-string v6, "Database error querying scoped filters. appId"

    invoke-static {v1}, Lcom/google/android/gms/measurement/internal/b;->u(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

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

    invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;

    move-result-object v0
    :try_end_2fc
    .catchall {:try_start_2e5 .. :try_end_2fc} :catchall_3ca

    if-eqz v5, :cond_301

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

    :cond_301
    invoke-interface {v12}, Ljava/util/Map;->keySet()Ljava/util/Set;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v1

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

    move-result v4

    if-eqz v4, :cond_3c8

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

    move-result-object v4

    check-cast v4, Ljava/lang/Integer;

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

    move-result v4

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

    move-result-object v5

    invoke-interface {v12, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lg6/k3;

    invoke-interface {v0, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/util/List;

    if-eqz v7, :cond_3bb

    invoke-interface {v7}, Ljava/util/List;->isEmpty()Z

    move-result v17

    if-eqz v17, :cond_333

    goto/16 :goto_3bb

    :cond_333
    iget-object v5, v9, Lj6/x5;->b:Lj6/b6;

    invoke-virtual {v5}, Lj6/b6;->P()Lj6/d6;

    move-result-object v5

    move-object/from16 v17, v0

    invoke-virtual {v6}, Lg6/k3;->B()Ljava/util/List;

    move-result-object v0

    invoke-virtual {v5, v0, v7}, Lj6/d6;->H(Ljava/util/List;Ljava/util/List;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v5

    if-nez v5, :cond_3b7

    invoke-virtual {v6}, Lg6/f6;->k()Lg6/c6;

    move-result-object v5

    check-cast v5, Lg6/j3;

    invoke-virtual {v5}, Lg6/j3;->m()Lg6/j3;

    invoke-virtual {v5, v0}, Lg6/j3;->j(Ljava/lang/Iterable;)Lg6/j3;

    iget-object v0, v9, Lj6/x5;->b:Lj6/b6;

    invoke-virtual {v0}, Lj6/b6;->P()Lj6/d6;

    move-result-object v0

    move-object/from16 v20, v1

    invoke-virtual {v6}, Lg6/k3;->D()Ljava/util/List;

    move-result-object v1

    invoke-virtual {v0, v1, v7}, Lj6/d6;->H(Ljava/util/List;Ljava/util/List;)Ljava/util/List;

    move-result-object v0

    invoke-virtual {v5}, Lg6/j3;->n()Lg6/j3;

    invoke-virtual {v5, v0}, Lg6/j3;->l(Ljava/lang/Iterable;)Lg6/j3;

    const/4 v0, 0x0

    :goto_36c
    invoke-virtual {v6}, Lg6/k3;->o()I

    move-result v1

    if-ge v0, v1, :cond_38a

    invoke-virtual {v6, v0}, Lg6/k3;->v(I)Lg6/t2;

    move-result-object v1

    invoke-virtual {v1}, Lg6/t2;->o()I

    move-result v1

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

    move-result-object v1

    invoke-interface {v7, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_387

    invoke-virtual {v5, v0}, Lg6/j3;->s(I)Lg6/j3;

    :cond_387
    add-int/lit8 v0, v0, 0x1

    goto :goto_36c

    :cond_38a
    const/4 v0, 0x0

    :goto_38b
    invoke-virtual {v6}, Lg6/k3;->t()I

    move-result v1

    if-ge v0, v1, :cond_3a9

    invoke-virtual {v6, v0}, Lg6/k3;->z(I)Lg6/m3;

    move-result-object v1

    invoke-virtual {v1}, Lg6/m3;->s()I

    move-result v1

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

    move-result-object v1

    invoke-interface {v7, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3a6

    invoke-virtual {v5, v0}, Lg6/j3;->t(I)Lg6/j3;

    :cond_3a6
    add-int/lit8 v0, v0, 0x1

    goto :goto_38b

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

    move-result-object v0

    invoke-virtual {v5}, Lg6/c6;->b()Lg6/f6;

    move-result-object v1

    check-cast v1, Lg6/k3;

    invoke-virtual {v3, v0, v1}, Lr/h;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_3c2

    :cond_3b7
    move-object/from16 v0, v17

    goto/16 :goto_309

    :cond_3bb
    :goto_3bb
    move-object/from16 v17, v0

    move-object/from16 v20, v1

    invoke-virtual {v3, v5, v6}, Lr/h;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :goto_3c2
    move-object/from16 v0, v17

    move-object/from16 v1, v20

    goto/16 :goto_309

    :cond_3c8
    :goto_3c8
    move-object v0, v3

    goto :goto_3d2

    :catchall_3ca
    move-exception v0

    :goto_3cb
    if-eqz v5, :cond_3d0

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

    :cond_3d0
    throw v0

    :cond_3d1
    move-object v0, v12

    :goto_3d2
    invoke-virtual {v2}, Ljava/util/HashSet;->iterator()Ljava/util/Iterator;

    move-result-object v17

    :goto_3d6
    invoke-interface/range {v17 .. v17}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_584

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

    move-result-object v1

    check-cast v1, Ljava/lang/Integer;

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

    move-result v20

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

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lg6/k3;

    new-instance v5, Ljava/util/BitSet;

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

    new-instance v6, Ljava/util/BitSet;

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

    new-instance v7, Lr/a;

    invoke-direct {v7}, Lr/a;-><init>()V

    if-eqz v1, :cond_43e

    invoke-virtual {v1}, Lg6/k3;->o()I

    move-result v2

    if-nez v2, :cond_408

    goto :goto_43e

    :cond_408
    invoke-virtual {v1}, Lg6/k3;->A()Ljava/util/List;

    move-result-object v2

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

    move-result-object v2

    :cond_410
    :goto_410
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_43e

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

    move-result-object v3

    check-cast v3, Lg6/t2;

    invoke-virtual {v3}, Lg6/t2;->y()Z

    move-result v4

    if-eqz v4, :cond_410

    invoke-virtual {v3}, Lg6/t2;->o()I

    move-result v4

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

    move-result-object v4

    invoke-virtual {v3}, Lg6/t2;->x()Z

    move-result v21

    if-eqz v21, :cond_439

    invoke-virtual {v3}, Lg6/t2;->s()J

    move-result-wide v21

    invoke-static/range {v21 .. v22}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    goto :goto_43a

    :cond_439
    const/4 v3, 0x0

    :goto_43a
    invoke-virtual {v7, v4, v3}, Lr/h;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_410

    :cond_43e
    :goto_43e
    new-instance v4, Lr/a;

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

    if-eqz v1, :cond_48e

    invoke-virtual {v1}, Lg6/k3;->t()I

    move-result v2

    if-nez v2, :cond_44c

    goto :goto_48e

    :cond_44c
    invoke-virtual {v1}, Lg6/k3;->C()Ljava/util/List;

    move-result-object v2

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

    move-result-object v2

    :cond_454
    :goto_454
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_48e

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

    move-result-object v3

    check-cast v3, Lg6/m3;

    invoke-virtual {v3}, Lg6/m3;->z()Z

    move-result v21

    if-eqz v21, :cond_454

    invoke-virtual {v3}, Lg6/m3;->o()I

    move-result v21

    if-lez v21, :cond_454

    invoke-virtual {v3}, Lg6/m3;->s()I

    move-result v21

    move-object/from16 v22, v0

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

    move-result-object v0

    invoke-virtual {v3}, Lg6/m3;->o()I

    move-result v21

    move-object/from16 v23, v2

    add-int/lit8 v2, v21, -0x1

    invoke-virtual {v3, v2}, Lg6/m3;->t(I)J

    move-result-wide v2

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

    move-result-object v2

    invoke-virtual {v4, v0, v2}, Lr/h;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, v22

    move-object/from16 v2, v23

    goto :goto_454

    :cond_48e
    :goto_48e
    move-object/from16 v22, v0

    if-eqz v1, :cond_4e3

    const/4 v0, 0x0

    :goto_493
    invoke-virtual {v1}, Lg6/k3;->u()I

    move-result v2

    mul-int/lit8 v2, v2, 0x40

    if-ge v0, v2, :cond_4e3

    invoke-virtual {v1}, Lg6/k3;->D()Ljava/util/List;

    move-result-object v2

    invoke-static {v2, v0}, Lj6/d6;->M(Ljava/util/List;I)Z

    move-result v2

    if-eqz v2, :cond_4d1

    iget-object v2, v9, 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

    invoke-virtual {v2}, Lcom/google/android/gms/measurement/internal/b;->p()Lj6/e3;

    move-result-object v2

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

    move-result-object v3

    move-object/from16 v21, v8

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

    move-result-object v8

    move-object/from16 v23, v10

    const-string v10, "Filter already evaluated. audience ID, filter ID"

    invoke-virtual {v2, v10, v3, v8}, Lj6/e3;->e(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V

    invoke-virtual {v6, v0}, Ljava/util/BitSet;->set(I)V

    invoke-virtual {v1}, Lg6/k3;->B()Ljava/util/List;

    move-result-object v2

    invoke-static {v2, v0}, Lj6/d6;->M(Ljava/util/List;I)Z

    move-result v2

    if-eqz v2, :cond_4d5

    invoke-virtual {v5, v0}, Ljava/util/BitSet;->set(I)V

    goto :goto_4dc

    :cond_4d1
    move-object/from16 v21, v8

    move-object/from16 v23, v10

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

    move-result-object v2

    invoke-virtual {v7, v2}, Lr/h;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    :goto_4dc
    add-int/lit8 v0, v0, 0x1

    move-object/from16 v8, v21

    move-object/from16 v10, v23

    goto :goto_493

    :cond_4e3
    move-object/from16 v21, v8

    move-object/from16 v23, v10

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

    move-result-object v0

    invoke-interface {v12, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    move-object v8, v1

    check-cast v8, Lg6/k3;

    if-eqz v14, :cond_552

    if-eqz v13, :cond_552

    invoke-interface {v11, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    if-eqz v0, :cond_552

    iget-object v1, v9, Lj6/q6;->h:Ljava/lang/Long;

    if-eqz v1, :cond_552

    iget-object v1, v9, Lj6/q6;->g:Ljava/lang/Long;

    if-nez v1, :cond_507

    goto :goto_552

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

    move-result-object v0

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

    move-result v1

    if-eqz v1, :cond_552

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

    move-result-object v1

    check-cast v1, Lg6/t1;

    invoke-virtual {v1}, Lg6/t1;->s()I

    move-result v2

    iget-object v3, v9, Lj6/q6;->h:Ljava/lang/Long;

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

    move-result-wide v24

    const-wide/16 v26, 0x3e8

    div-long v24, v24, v26

    invoke-virtual {v1}, Lg6/t1;->C()Z

    move-result v1

    if-eqz v1, :cond_533

    iget-object v1, v9, Lj6/q6;->g:Ljava/lang/Long;

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

    move-result-wide v24

    div-long v24, v24, v26

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

    move-result-object v1

    invoke-virtual {v7, v1}, Lr/h;->containsKey(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_544

    invoke-static/range {v24 .. v25}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-virtual {v7, v1, v2}, Lr/h;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_544
    invoke-virtual {v4, v1}, Lr/h;->containsKey(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_50b

    invoke-static/range {v24 .. v25}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-virtual {v4, v1, v2}, Lr/h;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_50b

    :cond_552
    :goto_552
    new-instance v0, Lj6/m6;

    iget-object v3, v9, Lj6/q6;->d:Ljava/lang/String;

    move-object v1, v0

    move-object/from16 v2, p0

    move-object v10, v4

    move-object v4, v8

    const/4 v8, 0x0

    move-object/from16 v24, v11

    move-object/from16 v11, v18

    move-object/from16 p1, v12

    move/from16 v16, v13

    move-object/from16 v12, v19

    const/4 v13, 0x2

    move-object/from16 v28, v21

    move-object v8, v10

    invoke-direct/range {v1 .. v8}, Lj6/m6;-><init>(Lj6/q6;Ljava/lang/String;Lg6/k3;Ljava/util/BitSet;Ljava/util/BitSet;Ljava/util/Map;Ljava/util/Map;)V

    iget-object v1, v9, Lj6/q6;->f:Ljava/util/Map;

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

    move-result-object v2

    invoke-interface {v1, v2, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move/from16 v13, v16

    move-object/from16 v0, v22

    move-object/from16 v10, v23

    move-object/from16 v11, v24

    move-object/from16 v8, v28

    move-object/from16 v12, p1

    goto/16 :goto_3d6

    :cond_584
    move-object/from16 v28, v8

    move-object/from16 v23, v10

    move-object/from16 v11, v18

    move-object/from16 v12, v19

    const/4 v13, 0x2

    :goto_58d
    invoke-interface/range {p2 .. p2}, Ljava/util/List;->isEmpty()Z

    move-result v0

    const-string v1, "Skipping failed audience ID"

    if-eqz v0, :cond_59d

    :cond_595
    move-object/from16 v18, v11

    move-object/from16 v19, v12

    move-object/from16 v12, v28

    goto/16 :goto_7fc

    :cond_59d
    new-instance v2, Lj6/g3;

    invoke-direct {v2, v9}, Lj6/g3;-><init>(Lj6/q6;)V

    new-instance v3, Lr/a;

    invoke-direct {v3}, Lr/a;-><init>()V

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

    move-result-object v4

    :cond_5ab
    :goto_5ab
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_595

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

    move-result-object v0

    check-cast v0, Lg6/v2;

    iget-object v5, v9, Lj6/q6;->d:Ljava/lang/String;

    invoke-virtual {v2, v5, v0}, Lj6/g3;->a(Ljava/lang/String;Lg6/v2;)Lg6/v2;

    move-result-object v5

    if-eqz v5, :cond_5ab

    iget-object v6, v9, Lj6/x5;->b:Lj6/b6;

    invoke-virtual {v6}, Lj6/b6;->M()Lj6/j;

    move-result-object v6

    iget-object v7, v9, Lj6/q6;->d:Ljava/lang/String;

    invoke-virtual {v5}, Lg6/v2;->y()Ljava/lang/String;

    move-result-object v8

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

    move-result-object v10

    invoke-virtual {v6, v7, v10}, Lj6/j;->J(Ljava/lang/String;Ljava/lang/String;)Lj6/n;

    move-result-object v10

    if-nez v10, :cond_614

    iget-object v10, v6, 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

    invoke-virtual {v10}, Lcom/google/android/gms/measurement/internal/b;->r()Lj6/e3;

    move-result-object v10

    invoke-static {v7}, Lcom/google/android/gms/measurement/internal/b;->u(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v14

    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;->r()Lj6/b3;

    move-result-object v6

    invoke-virtual {v6, v8}, Lj6/b3;->d(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    const-string v8, "Event aggregate wasn\'t created during raw event logging. appId, event"

    invoke-virtual {v10, v8, v14, v6}, Lj6/e3;->e(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V

    new-instance v6, Lj6/n;

    move-object/from16 v29, v6

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

    move-result-object v31

    const-wide/16 v32, 0x1

    const-wide/16 v34, 0x1

    const-wide/16 v36, 0x1

    invoke-virtual {v0}, Lg6/v2;->u()J

    move-result-wide v38

    const-wide/16 v40, 0x0

    const/16 v42, 0x0

    const/16 v43, 0x0

    const/16 v44, 0x0

    const/16 v45, 0x0

    move-object/from16 v30, v7

    invoke-direct/range {v29 .. v45}, Lj6/n;-><init>(Ljava/lang/String;Ljava/lang/String;JJJJJLjava/lang/Long;Ljava/lang/Long;Ljava/lang/Long;Ljava/lang/Boolean;)V

    goto :goto_649

    :cond_614
    new-instance v6, Lj6/n;

    move-object/from16 v46, v6

    iget-object v0, v10, Lj6/n;->a:Ljava/lang/String;

    move-object/from16 v47, v0

    iget-object v0, v10, Lj6/n;->b:Ljava/lang/String;

    move-object/from16 v48, v0

    iget-wide v7, v10, Lj6/n;->c:J

    const-wide/16 v16, 0x1

    add-long v49, v7, v16

    iget-wide v7, v10, Lj6/n;->d:J

    add-long v51, v7, v16

    iget-wide v7, v10, Lj6/n;->e:J

    add-long v53, v7, v16

    iget-wide v7, v10, Lj6/n;->f:J

    move-wide/from16 v55, v7

    iget-wide v7, v10, Lj6/n;->g:J

    move-wide/from16 v57, v7

    iget-object v0, v10, Lj6/n;->h:Ljava/lang/Long;

    move-object/from16 v59, v0

    iget-object v0, v10, Lj6/n;->i:Ljava/lang/Long;

    move-object/from16 v60, v0

    iget-object v0, v10, Lj6/n;->j:Ljava/lang/Long;

    move-object/from16 v61, v0

    iget-object v0, v10, Lj6/n;->k:Ljava/lang/Boolean;

    move-object/from16 v62, v0

    invoke-direct/range {v46 .. v62}, Lj6/n;-><init>(Ljava/lang/String;Ljava/lang/String;JJJJJLjava/lang/Long;Ljava/lang/Long;Ljava/lang/Long;Ljava/lang/Boolean;)V

    :goto_649
    iget-object v0, v9, Lj6/x5;->b:Lj6/b6;

    invoke-virtual {v0}, Lj6/b6;->M()Lj6/j;

    move-result-object v0

    invoke-virtual {v0, v6}, Lj6/j;->o(Lj6/n;)V

    iget-wide v7, v6, Lj6/n;->c:J

    invoke-virtual {v5}, Lg6/v2;->y()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v3, v10}, Lr/h;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map;

    if-nez v0, :cond_74c

    iget-object v0, v9, Lj6/x5;->b:Lj6/b6;

    invoke-virtual {v0}, Lj6/b6;->M()Lj6/j;

    move-result-object v14

    iget-object v13, v9, Lj6/q6;->d:Ljava/lang/String;

    invoke-virtual {v14}, Lj6/y5;->h()V

    invoke-virtual {v14}, 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-static {v10}, Lcom/google/android/gms/common/internal/d;->e(Ljava/lang/String;)Ljava/lang/String;

    move-object/from16 p1, v2

    new-instance v2, Lr/a;

    invoke-direct {v2}, Lr/a;-><init>()V

    invoke-virtual {v14}, Lj6/j;->D()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v29

    :try_start_67f
    filled-new-array {v11, v12}, [Ljava/lang/String;

    move-result-object v31
    :try_end_683
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_67f .. :try_end_683} :catch_71f
    .catchall {:try_start_67f .. :try_end_683} :catchall_71c

    move-object/from16 p2, v4

    const/4 v4, 0x2

    :try_start_686
    new-array v0, v4, [Ljava/lang/String;

    const/4 v4, 0x0

    aput-object v13, v0, v4

    const/4 v4, 0x1

    aput-object v10, v0, v4

    const-string v30, "event_filters"

    const-string v32, "app_id=? AND event_name=?"

    const/16 v34, 0x0

    const/16 v35, 0x0

    const/16 v36, 0x0

    move-object/from16 v33, v0

    invoke-virtual/range {v29 .. v36}, 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;)Landroid/database/Cursor;

    move-result-object v4
    :try_end_69e
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_686 .. :try_end_69e} :catch_716
    .catchall {:try_start_686 .. :try_end_69e} :catchall_71c

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

    move-result v0
    :try_end_6a2
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_69e .. :try_end_6a2} :catch_712
    .catchall {:try_start_69e .. :try_end_6a2} :catchall_744

    if-eqz v0, :cond_701

    :goto_6a4
    move-object/from16 v18, v11

    const/4 v11, 0x1

    :try_start_6a7
    invoke-interface {v4, v11}, Landroid/database/Cursor;->getBlob(I)[B

    move-result-object v0
    :try_end_6ab
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_6a7 .. :try_end_6ab} :catch_6fd
    .catchall {:try_start_6a7 .. :try_end_6ab} :catchall_744

    :try_start_6ab
    invoke-static {}, Lg6/t1;->t()Lg6/s1;

    move-result-object v11

    invoke-static {v11, v0}, Lj6/d6;->D(Lg6/a5;[B)Lg6/a5;

    move-result-object v0

    check-cast v0, Lg6/s1;

    invoke-virtual {v0}, Lg6/c6;->b()Lg6/f6;

    move-result-object v0

    check-cast v0, Lg6/t1;
    :try_end_6bb
    .catch Ljava/io/IOException; {:try_start_6ab .. :try_end_6bb} :catch_6dd
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_6ab .. :try_end_6bb} :catch_6fd
    .catchall {:try_start_6ab .. :try_end_6bb} :catchall_744

    const/4 v11, 0x0

    :try_start_6bc
    invoke-interface {v4, v11}, Landroid/database/Cursor;->getInt(I)I

    move-result v17

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

    move-result-object v11

    invoke-virtual {v2, v11}, Lr/h;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v17

    check-cast v17, Ljava/util/List;
    :try_end_6ca
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_6bc .. :try_end_6ca} :catch_6fd
    .catchall {:try_start_6bc .. :try_end_6ca} :catchall_744

    move-object/from16 v19, v12

    if-nez v17, :cond_6d7

    :try_start_6ce
    new-instance v12, Ljava/util/ArrayList;

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

    invoke-virtual {v2, v11, v12}, Lr/h;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_6d9

    :cond_6d7
    move-object/from16 v12, v17

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

    goto :goto_6f1

    :catch_6dd
    move-exception v0

    move-object/from16 v19, v12

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

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

    move-result-object v11

    invoke-virtual {v11}, Lcom/google/android/gms/measurement/internal/b;->o()Lj6/e3;

    move-result-object v11

    invoke-static {v13}, Lcom/google/android/gms/measurement/internal/b;->u(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v12

    invoke-virtual {v11, v15, v12, v0}, Lj6/e3;->e(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V

    :goto_6f1
    invoke-interface {v4}, Landroid/database/Cursor;->moveToNext()Z

    move-result v0

    if-nez v0, :cond_6f8

    goto :goto_709

    :cond_6f8
    move-object/from16 v11, v18

    move-object/from16 v12, v19

    goto :goto_6a4

    :catch_6fd
    move-exception v0

    :goto_6fe
    move-object/from16 v19, v12

    goto :goto_724

    :cond_701
    move-object/from16 v18, v11

    move-object/from16 v19, v12

    invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;

    move-result-object v2
    :try_end_709
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_6ce .. :try_end_709} :catch_710
    .catchall {:try_start_6ce .. :try_end_709} :catchall_744

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

    move-object v0, v2

    move-object/from16 v12, v28

    goto :goto_740

    :catch_710
    move-exception v0

    goto :goto_724

    :catch_712
    move-exception v0

    move-object/from16 v18, v11

    goto :goto_6fe

    :catch_716
    move-exception v0

    :goto_717
    move-object/from16 v18, v11

    move-object/from16 v19, v12

    goto :goto_723

    :catchall_71c
    move-exception v0

    const/4 v5, 0x0

    goto :goto_746

    :catch_71f
    move-exception v0

    move-object/from16 p2, v4

    goto :goto_717

    :goto_723
    const/4 v4, 0x0

    :goto_724
    :try_start_724
    iget-object v2, v14, 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

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

    move-result-object v2

    invoke-static {v13}, Lcom/google/android/gms/measurement/internal/b;->u(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v11

    move-object/from16 v12, v28

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

    invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;

    move-result-object v0
    :try_end_73b
    .catchall {:try_start_724 .. :try_end_73b} :catchall_744

    if-eqz v4, :cond_740

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

    :cond_740
    :goto_740
    invoke-virtual {v3, v10, v0}, Lr/h;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_756

    :catchall_744
    move-exception v0

    move-object v5, v4

    :goto_746
    if-eqz v5, :cond_74b

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

    :cond_74b
    throw v0

    :cond_74c
    move-object/from16 p1, v2

    move-object/from16 p2, v4

    move-object/from16 v18, v11

    move-object/from16 v19, v12

    move-object/from16 v12, v28

    :goto_756
    invoke-interface {v0}, Ljava/util/Map;->keySet()Ljava/util/Set;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

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

    move-result v4

    if-eqz v4, :cond_7ef

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

    move-result-object v4

    check-cast v4, Ljava/lang/Integer;

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

    move-result v4

    iget-object v10, v9, Lj6/q6;->e:Ljava/util/Set;

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

    move-result-object v11

    invoke-interface {v10, v11}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_788

    iget-object v4, v9, 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

    invoke-virtual {v4}, Lcom/google/android/gms/measurement/internal/b;->p()Lj6/e3;

    move-result-object v4

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

    goto :goto_75e

    :cond_788
    invoke-interface {v0, v11}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Ljava/util/List;

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

    move-result-object v10

    const/4 v11, 0x1

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

    move-result v13

    if-eqz v13, :cond_7de

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

    move-result-object v11

    check-cast v11, Lg6/t1;

    new-instance v13, Lj6/n6;

    iget-object v14, v9, Lj6/q6;->d:Ljava/lang/String;

    invoke-direct {v13, v9, v14, v4, v11}, Lj6/n6;-><init>(Lj6/q6;Ljava/lang/String;ILg6/t1;)V

    iget-object v14, v9, Lj6/q6;->g:Ljava/lang/Long;

    move-object/from16 v17, v0

    iget-object v0, v9, Lj6/q6;->h:Ljava/lang/Long;

    invoke-virtual {v11}, Lg6/t1;->s()I

    move-result v11

    invoke-virtual {v9, v4, v11}, Lj6/q6;->m(II)Z

    move-result v36

    move-object/from16 v29, v13

    move-object/from16 v30, v14

    move-object/from16 v31, v0

    move-object/from16 v32, v5

    move-wide/from16 v33, v7

    move-object/from16 v35, v6

    invoke-virtual/range {v29 .. v36}, Lj6/n6;->i(Ljava/lang/Long;Ljava/lang/Long;Lg6/v2;JLj6/n;Z)Z

    move-result v11

    if-eqz v11, :cond_7d4

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

    move-result-object v0

    invoke-virtual {v9, v0}, Lj6/q6;->l(Ljava/lang/Integer;)Lj6/m6;

    move-result-object v0

    invoke-virtual {v0, v13}, Lj6/m6;->b(Lj6/o6;)V

    move-object/from16 v0, v17

    goto :goto_793

    :cond_7d4
    iget-object v0, v9, Lj6/q6;->e:Ljava/util/Set;

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

    move-result-object v10

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

    goto :goto_7e0

    :cond_7de
    move-object/from16 v17, v0

    :goto_7e0
    if-nez v11, :cond_7eb

    iget-object v0, v9, Lj6/q6;->e:Ljava/util/Set;

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

    move-result-object v4

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

    :cond_7eb
    move-object/from16 v0, v17

    goto/16 :goto_75e

    :cond_7ef
    move-object/from16 v2, p1

    move-object/from16 v4, p2

    move-object/from16 v28, v12

    move-object/from16 v11, v18

    move-object/from16 v12, v19

    const/4 v13, 0x2

    goto/16 :goto_5ab

    :goto_7fc
    invoke-interface/range {p3 .. p3}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_806

    :cond_802
    move-object/from16 v11, v18

    goto/16 :goto_a35

    :cond_806
    new-instance v2, Lr/a;

    invoke-direct {v2}, Lr/a;-><init>()V

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

    move-result-object v3

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

    move-result v0

    if-eqz v0, :cond_802

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

    move-result-object v0

    move-object v4, v0

    check-cast v4, Lg6/o3;

    invoke-virtual {v4}, Lg6/o3;->w()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v2, v5}, Lr/h;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map;

    if-nez v0, :cond_901

    iget-object v0, v9, Lj6/x5;->b:Lj6/b6;

    invoke-virtual {v0}, Lj6/b6;->M()Lj6/j;

    move-result-object v6

    iget-object v7, v9, Lj6/q6;->d:Ljava/lang/String;

    invoke-virtual {v6}, Lj6/y5;->h()V

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

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

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

    new-instance v8, Lr/a;

    invoke-direct {v8}, Lr/a;-><init>()V

    invoke-virtual {v6}, Lj6/j;->D()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v29

    move-object/from16 v11, v18

    move-object/from16 v10, v19

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

    move-result-object v31

    const/4 v13, 0x2

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

    const/4 v13, 0x0

    aput-object v7, v0, v13

    const/4 v13, 0x1

    aput-object v5, v0, v13

    const-string v30, "property_filters"

    const-string v32, "app_id=? AND property_name=?"

    const/16 v34, 0x0

    const/16 v35, 0x0

    const/16 v36, 0x0

    move-object/from16 v33, v0

    invoke-virtual/range {v29 .. v36}, 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;)Landroid/database/Cursor;

    move-result-object v13
    :try_end_866
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_849 .. :try_end_866} :catch_8d7
    .catchall {:try_start_849 .. :try_end_866} :catchall_8d4

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

    move-result v0

    if-eqz v0, :cond_8c7

    :goto_86c
    const/4 v14, 0x1

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

    move-result-object v0
    :try_end_871
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_866 .. :try_end_871} :catch_8d0
    .catchall {:try_start_866 .. :try_end_871} :catchall_8f9

    :try_start_871
    invoke-static {}, Lg6/b2;->t()Lg6/a2;

    move-result-object v15

    invoke-static {v15, v0}, Lj6/d6;->D(Lg6/a5;[B)Lg6/a5;

    move-result-object v0

    check-cast v0, Lg6/a2;

    invoke-virtual {v0}, Lg6/c6;->b()Lg6/f6;

    move-result-object v0

    check-cast v0, Lg6/b2;
    :try_end_881
    .catch Ljava/io/IOException; {:try_start_871 .. :try_end_881} :catch_8a3
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_871 .. :try_end_881} :catch_8d0
    .catchall {:try_start_871 .. :try_end_881} :catchall_8f9

    const/4 v15, 0x0

    :try_start_882
    invoke-interface {v13, v15}, Landroid/database/Cursor;->getInt(I)I

    move-result v17

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

    move-result-object v14

    invoke-virtual {v8, v14}, Lr/h;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v17

    check-cast v17, Ljava/util/List;

    if-nez v17, :cond_89b

    new-instance v15, Ljava/util/ArrayList;

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

    invoke-virtual {v8, v14, v15}, Lr/h;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_89d

    :cond_89b
    move-object/from16 v15, v17

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

    move-object/from16 p1, v3

    goto :goto_8b9

    :catch_8a3
    move-exception v0

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

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

    move-result-object v14

    invoke-virtual {v14}, Lcom/google/android/gms/measurement/internal/b;->o()Lj6/e3;

    move-result-object v14

    const-string v15, "Failed to merge filter"
    :try_end_8b0
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_882 .. :try_end_8b0} :catch_8d0
    .catchall {:try_start_882 .. :try_end_8b0} :catchall_8f9

    move-object/from16 p1, v3

    :try_start_8b2
    invoke-static {v7}, Lcom/google/android/gms/measurement/internal/b;->u(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v14, v15, v3, v0}, Lj6/e3;->e(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V

    :goto_8b9
    invoke-interface {v13}, Landroid/database/Cursor;->moveToNext()Z

    move-result v0
    :try_end_8bd
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_8b2 .. :try_end_8bd} :catch_8ce
    .catchall {:try_start_8b2 .. :try_end_8bd} :catchall_8f9

    if-nez v0, :cond_8c4

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

    move-object v0, v8

    goto :goto_8f5

    :cond_8c4
    move-object/from16 v3, p1

    goto :goto_86c

    :cond_8c7
    move-object/from16 p1, v3

    :try_start_8c9
    invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;

    move-result-object v0
    :try_end_8cd
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_8c9 .. :try_end_8cd} :catch_8ce
    .catchall {:try_start_8c9 .. :try_end_8cd} :catchall_8f9

    goto :goto_8f2

    :catch_8ce
    move-exception v0

    goto :goto_8db

    :catch_8d0
    move-exception v0

    move-object/from16 p1, v3

    goto :goto_8db

    :catchall_8d4
    move-exception v0

    const/4 v5, 0x0

    goto :goto_8fb

    :catch_8d7
    move-exception v0

    move-object/from16 p1, v3

    const/4 v13, 0x0

    :goto_8db
    :try_start_8db
    iget-object v3, v6, 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;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v3

    invoke-virtual {v3}, Lcom/google/android/gms/measurement/internal/b;->o()Lj6/e3;

    move-result-object v3

    invoke-static {v7}, Lcom/google/android/gms/measurement/internal/b;->u(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v6

    invoke-virtual {v3, v12, v6, v0}, Lj6/e3;->e(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V

    invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;

    move-result-object v0
    :try_end_8f0
    .catchall {:try_start_8db .. :try_end_8f0} :catchall_8f9

    if-eqz v13, :cond_8f5

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

    :cond_8f5
    :goto_8f5
    invoke-virtual {v2, v5, v0}, Lr/h;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_907

    :catchall_8f9
    move-exception v0

    move-object v5, v13

    :goto_8fb
    if-eqz v5, :cond_900

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

    :cond_900
    throw v0

    :cond_901
    move-object/from16 p1, v3

    move-object/from16 v11, v18

    move-object/from16 v10, v19

    :goto_907
    invoke-interface {v0}, Ljava/util/Map;->keySet()Ljava/util/Set;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v3

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

    move-result v5

    if-eqz v5, :cond_a2d

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

    move-result-object v5

    check-cast v5, Ljava/lang/Integer;

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

    move-result v5

    iget-object v6, v9, Lj6/q6;->e:Ljava/util/Set;

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

    move-result-object v7

    invoke-interface {v6, v7}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_93a

    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

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

    move-result-object v0

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

    goto/16 :goto_a2d

    :cond_93a
    invoke-interface {v0, v7}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/util/List;

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

    move-result-object v6

    const/4 v7, 0x1

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

    move-result v8

    if-eqz v8, :cond_a1c

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

    move-result-object v7

    check-cast v7, Lg6/b2;

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

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

    move-result-object v8

    invoke-virtual {v8}, Lcom/google/android/gms/measurement/internal/b;->x()Ljava/lang/String;

    move-result-object v8

    const/4 v13, 0x2

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

    move-result v8

    if-eqz v8, :cond_9af

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

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

    move-result-object v8

    invoke-virtual {v8}, Lcom/google/android/gms/measurement/internal/b;->p()Lj6/e3;

    move-result-object v8

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

    move-result-object v14

    invoke-virtual {v7}, Lg6/b2;->A()Z

    move-result v15

    if-eqz v15, :cond_97f

    invoke-virtual {v7}, Lg6/b2;->o()I

    move-result v15

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

    move-result-object v15

    goto :goto_980

    :cond_97f
    const/4 v15, 0x0

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

    invoke-virtual {v13}, Lcom/google/android/gms/measurement/internal/d;->r()Lj6/b3;

    move-result-object v13

    move-object/from16 p2, v0

    invoke-virtual {v7}, Lg6/b2;->v()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v13, v0}, Lj6/b3;->f(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v13, "Evaluating filter. audience, filter, property"

    invoke-virtual {v8, v13, v14, v15, v0}, Lj6/e3;->f(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V

    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

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

    move-result-object v0

    iget-object v8, v9, Lj6/x5;->b:Lj6/b6;

    invoke-virtual {v8}, Lj6/b6;->P()Lj6/d6;

    move-result-object v8

    invoke-virtual {v8, v7}, Lj6/d6;->F(Lg6/b2;)Ljava/lang/String;

    move-result-object v8

    const-string v13, "Filter definition"

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

    goto :goto_9b1

    :cond_9af
    move-object/from16 p2, v0

    :goto_9b1
    invoke-virtual {v7}, Lg6/b2;->A()Z

    move-result v0

    if-eqz v0, :cond_9f2

    invoke-virtual {v7}, Lg6/b2;->o()I

    move-result v0

    const/16 v8, 0x100

    if-le v0, v8, :cond_9c0

    goto :goto_9f2

    :cond_9c0
    new-instance v0, Lj6/p6;

    iget-object v8, v9, Lj6/q6;->d:Ljava/lang/String;

    invoke-direct {v0, v9, v8, v5, v7}, Lj6/p6;-><init>(Lj6/q6;Ljava/lang/String;ILg6/b2;)V

    iget-object v8, v9, Lj6/q6;->g:Ljava/lang/Long;

    iget-object v13, v9, Lj6/q6;->h:Ljava/lang/Long;

    invoke-virtual {v7}, Lg6/b2;->o()I

    move-result v7

    invoke-virtual {v9, v5, v7}, Lj6/q6;->m(II)Z

    move-result v7

    invoke-virtual {v0, v8, v13, v4, v7}, Lj6/p6;->i(Ljava/lang/Long;Ljava/lang/Long;Lg6/o3;Z)Z

    move-result v7

    if-eqz v7, :cond_9e8

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

    move-result-object v8

    invoke-virtual {v9, v8}, Lj6/q6;->l(Ljava/lang/Integer;)Lj6/m6;

    move-result-object v8

    invoke-virtual {v8, v0}, Lj6/m6;->b(Lj6/o6;)V

    move-object/from16 v0, p2

    goto/16 :goto_945

    :cond_9e8
    iget-object v0, v9, Lj6/q6;->e:Ljava/util/Set;

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

    move-result-object v6

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

    goto :goto_a1e

    :cond_9f2
    :goto_9f2
    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

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/b;->r()Lj6/e3;

    move-result-object v0

    iget-object v6, v9, Lj6/q6;->d:Ljava/lang/String;

    invoke-static {v6}, Lcom/google/android/gms/measurement/internal/b;->u(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v6

    invoke-virtual {v7}, Lg6/b2;->A()Z

    move-result v8

    if-eqz v8, :cond_a11

    invoke-virtual {v7}, Lg6/b2;->o()I

    move-result v7

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

    move-result-object v7

    goto :goto_a12

    :cond_a11
    const/4 v7, 0x0

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

    move-result-object v7

    const-string v8, "Invalid property filter ID. appId, id"

    invoke-virtual {v0, v8, v6, v7}, Lj6/e3;->e(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V

    goto :goto_a20

    :cond_a1c
    move-object/from16 p2, v0

    :goto_a1e
    if-nez v7, :cond_a29

    :goto_a20
    iget-object v0, v9, Lj6/q6;->e:Ljava/util/Set;

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

    move-result-object v5

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

    :cond_a29
    move-object/from16 v0, p2

    goto/16 :goto_90f

    :cond_a2d
    :goto_a2d
    move-object/from16 v3, p1

    move-object/from16 v19, v10

    move-object/from16 v18, v11

    goto/16 :goto_80f

    :goto_a35
    new-instance v1, Ljava/util/ArrayList;

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

    iget-object v0, v9, Lj6/q6;->f:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->keySet()Ljava/util/Set;

    move-result-object v0

    iget-object v2, v9, Lj6/q6;->e:Ljava/util/Set;

    invoke-interface {v0, v2}, Ljava/util/Set;->removeAll(Ljava/util/Collection;)Z

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

    move-result-object v2

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

    move-result v0

    if-eqz v0, :cond_ade

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

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

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

    move-result v0

    iget-object v3, v9, Lj6/q6;->f:Ljava/util/Map;

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

    move-result-object v4

    invoke-interface {v3, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lj6/m6;

    invoke-static {v3}, Lcom/google/android/gms/common/internal/d;->h(Ljava/lang/Object;)Ljava/lang/Object;

    invoke-virtual {v3, v0}, Lj6/m6;->a(I)Lg6/r2;

    move-result-object v0

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

    iget-object v3, v9, Lj6/x5;->b:Lj6/b6;

    invoke-virtual {v3}, Lj6/b6;->M()Lj6/j;

    move-result-object v3

    iget-object v5, v9, Lj6/q6;->d:Ljava/lang/String;

    invoke-virtual {v0}, Lg6/r2;->u()Lg6/k3;

    move-result-object v0

    invoke-virtual {v3}, Lj6/y5;->h()V

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

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

    invoke-static {v0}, Lcom/google/android/gms/common/internal/d;->h(Ljava/lang/Object;)Ljava/lang/Object;

    invoke-virtual {v0}, Lg6/b5;->e()[B

    move-result-object v0

    new-instance v6, Landroid/content/ContentValues;

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

    const-string v7, "app_id"

    invoke-virtual {v6, v7, v5}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v6, v11, v4}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    move-object/from16 v4, v23

    invoke-virtual {v6, v4, v0}, Landroid/content/ContentValues;->put(Ljava/lang/String;[B)V

    :try_start_a9d
    invoke-virtual {v3}, Lj6/j;->D()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    const-string v7, "audience_filter_values"
    :try_end_aa3
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_a9d .. :try_end_aa3} :catch_ac5

    const/4 v8, 0x5

    const/4 v10, 0x0

    :try_start_aa5
    invoke-virtual {v0, v7, v10, v6, v8}, Landroid/database/sqlite/SQLiteDatabase;->insertWithOnConflict(Ljava/lang/String;Ljava/lang/String;Landroid/content/ContentValues;I)J

    move-result-wide v6

    const-wide/16 v12, -0x1

    cmp-long v0, v6, v12

    if-nez v0, :cond_ada

    iget-object v0, v3, 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

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/b;->o()Lj6/e3;

    move-result-object v0

    const-string v6, "Failed to insert filter results (got -1). appId"

    invoke-static {v5}, Lcom/google/android/gms/measurement/internal/b;->u(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v7

    invoke-virtual {v0, v6, v7}, Lj6/e3;->d(Ljava/lang/String;Ljava/lang/Object;)V
    :try_end_ac2
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_aa5 .. :try_end_ac2} :catch_ac3

    goto :goto_ada

    :catch_ac3
    move-exception v0

    goto :goto_ac7

    :catch_ac5
    move-exception v0

    const/4 v10, 0x0

    :goto_ac7
    iget-object v3, v3, 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;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v3

    invoke-virtual {v3}, Lcom/google/android/gms/measurement/internal/b;->o()Lj6/e3;

    move-result-object v3

    invoke-static {v5}, Lcom/google/android/gms/measurement/internal/b;->u(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v5

    const-string v6, "Error storing filter results. appId"

    invoke-virtual {v3, v6, v5, v0}, Lj6/e3;->e(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V

    :cond_ada
    :goto_ada
    move-object/from16 v23, v4

    goto/16 :goto_a49

    :cond_ade
    return-object v1

    :catchall_adf
    move-exception v0

    move-object v5, v4

    :goto_ae1
    if-eqz v5, :cond_ae6

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

    :cond_ae6
    throw v0
.end method

.method public final l(Ljava/lang/Integer;)Lj6/m6;
    .registers 4

    iget-object v0, p0, Lj6/q6;->f:Ljava/util/Map;

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

    move-result v0

    if-eqz v0, :cond_11

    iget-object v0, p0, Lj6/q6;->f:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lj6/m6;

    return-object p1

    :cond_11
    new-instance v0, Lj6/m6;

    iget-object v1, p0, Lj6/q6;->d:Ljava/lang/String;

    invoke-direct {v0, p0, v1}, Lj6/m6;-><init>(Lj6/q6;Ljava/lang/String;)V

    iget-object v1, p0, Lj6/q6;->f:Ljava/util/Map;

    invoke-interface {v1, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-object v0
.end method

.method public final m(II)Z
    .registers 4

    iget-object v0, p0, Lj6/q6;->f:Ljava/util/Map;

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

    move-result-object p1

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lj6/m6;

    if-nez p1, :cond_10

    const/4 p1, 0x0

    return p1

    .line 1
    :cond_10
    iget-object p1, p1, Lj6/m6;->d:Ljava/util/BitSet;

    .line 2
    invoke-virtual {p1, p2}, Ljava/util/BitSet;->get(I)Z

    move-result p1

    return p1
.end method
