Info Call to SQLite query API

Description

Improper SQL query construction could lead to SQL injection. An SQL injection attack consists of injecting of an SQL query via the input data from the client to the application

Recommendation

This entry is informative, no recommendations applicable.

Technical details

Method com.google.firebase.firestore.c.zzau.newCursor() calling method android.database.sqlite.SQLiteCursor.<init>()


    public final android.database.Cursor newCursor(android.database.sqlite.SQLiteDatabase p2, android.database.sqlite.SQLiteCursorDriver p3, String p4, android.database.sqlite.SQLiteQuery p5)
    {
        com.google.firebase.firestore.c.zzat.zza(this.zza.zza, p5, this.zzb);
        return new android.database.sqlite.SQLiteCursor(p3, p4, p5);
    }

Method com.google.android.gms.internal.firebase_database.zzu.zzc() calling method android.database.sqlite.SQLiteDatabase.updateWithOnConflict()


    public final void zzc(long p10)
    {
        this.zzn();
        com.google.android.gms.internal.firebase_database.zzhz v0_0 = System.currentTimeMillis();
        android.content.ContentValues v4_1 = new android.content.ContentValues();
        v4_1.put("active", Boolean.valueOf(0));
        v4_1.put("lastUse", Long.valueOf(p10));
        String[] v6 = new String[0];
        this.zzbr.updateWithOnConflict("trackedQueries", v4_1, "active = 1", v6, 5);
        String v10_2 = System.currentTimeMillis();
        if (this.zzbs.zzfa()) {
            com.google.android.gms.internal.firebase_database.zzhz v0_3 = this.zzbs;
            Object[] v2_3 = new Object[1];
            v2_3[0] = Long.valueOf((v10_2 - v0_0));
            Object[] v11 = new Object[0];
            v0_3.zza(String.format("Reset active tracked queries in %dms", v2_3), 0, v11);
        }
        return;
    }

Method com.google.android.gms.internal.measurement.zzgh.zza() calling method android.database.sqlite.SQLiteDatabase.update()


    protected final boolean zza(String p7, byte[] p8, String p9)
    {
        this.zzch();
        this.zzab();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p7);
        com.google.android.gms.internal.measurement.zzfk v0_2 = this.zza(p7, p8);
        if (v0_2 != null) {
            this.zza(p7, v0_2);
            this.zzanj.put(p7, v0_2);
            this.zzanl.put(p7, p9);
            this.zzang.put(p7, com.google.android.gms.internal.measurement.zzgh.zza(v0_2));
            this.zzjg().zza(p7, v0_2.zzauq);
            try {
                v0_2.zzauq = 0;
                com.google.android.gms.internal.measurement.zzfk v9_5 = new byte[v0_2.zzwb()];
                v0_2.zza(com.google.android.gms.internal.measurement.zzacb.zzb(v9_5, 0, v9_5.length));
                int v8_1 = v9_5;
            } catch (com.google.android.gms.internal.measurement.zzfk v9_6) {
                this.zzgi().zziy().zze("Unable to serialize reduced-size config. Storing full config instead. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p7), v9_6);
            }
            com.google.android.gms.internal.measurement.zzfk v9_7 = this.zzjh();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p7);
            v9_7.zzab();
            v9_7.zzch();
            com.google.android.gms.internal.measurement.zzfk v0_4 = new android.content.ContentValues();
            v0_4.put("remote_config", v8_1);
            try {
                Object v2_7 = v9_7.getWritableDatabase();
                String[] v5 = new String[1];
                v5[0] = p7;
            } catch (com.google.android.gms.internal.measurement.zzfk v0_7) {
                v9_7.zzgi().zziv().zze("Error storing remote config. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p7), v0_7);
                return 1;
            }
            if (((long) v2_7.update("apps", v0_4, "app_id = ?", v5)) != 0) {
                return 1;
            } else {
                v9_7.zzgi().zziv().zzg("Failed to update remote config (got 0). appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p7));
                return 1;
            }
        } else {
            return 0;
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zzm() calling method android.database.sqlite.SQLiteDatabase.update()


    protected final long zzm(String p14, String p15)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p14);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p15);
        this.zzab();
        this.zzch();
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        v0.beginTransaction();
        try {
            String v4_2 = new StringBuilder((String.valueOf(p15).length() + 32));
            v4_2.append("select ");
            v4_2.append(p15);
            v4_2.append(" from app2 where app_id=?");
            Object v3_4 = v4_2.toString();
            Object v5_1 = new String[1];
            v5_1[0] = p14;
            com.google.android.gms.internal.measurement.zzfk v9_0 = this.zza(v3_4, v5_1, -1);
        } catch (Object v14_2) {
            v0.endTransaction();
            throw v14_2;
        } catch (Object v3_9) {
            v9_0 = 0;
            this.zzgi().zziv().zzd("Error inserting column. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p14), p15, v3_9);
            v0.endTransaction();
            return v9_0;
        }
        if (v9_0 == -1) {
            Object v3_7 = new android.content.ContentValues();
            v3_7.put("app_id", p14);
            v3_7.put("first_open_count", Integer.valueOf(0));
            v3_7.put("previous_install_count", Integer.valueOf(0));
            if (v0.insertWithOnConflict("app2", 0, v3_7, 5) != -1) {
                v9_0 = 0;
            } else {
                this.zzgi().zziv().zze("Failed to insert column (got -1). appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p14), p15);
                v0.endTransaction();
                return -1;
            }
        }
        try {
            Object v3_11 = new android.content.ContentValues();
            v3_11.put("app_id", p14);
            v3_11.put(p15, Long.valueOf((1 + v9_0)));
            String v4_4 = new String[1];
            v4_4[0] = p14;
        } catch (Object v3_9) {
        }
        if (((long) v0.update("app2", v3_11, "app_id = ?", v4_4)) != 0) {
            v0.setTransactionSuccessful();
            v0.endTransaction();
            return v9_0;
        } else {
            this.zzgi().zziv().zze("Failed to update column (got 0). appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p14), p15);
            v0.endTransaction();
            return -1;
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zza() calling method android.database.sqlite.SQLiteDatabase.update()


    public final void zza(com.google.android.gms.internal.measurement.zzea p8)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p8);
        this.zzab();
        this.zzch();
        com.google.android.gms.internal.measurement.zzfk v0_5 = new android.content.ContentValues();
        v0_5.put("app_id", p8.zzah());
        v0_5.put("app_instance_id", p8.getAppInstanceId());
        v0_5.put("gmp_app_id", p8.getGmpAppId());
        v0_5.put("resettable_device_id_hash", p8.zzgq());
        v0_5.put("last_bundle_index", Long.valueOf(p8.zzgy()));
        v0_5.put("last_bundle_start_timestamp", Long.valueOf(p8.zzgs()));
        v0_5.put("last_bundle_end_timestamp", Long.valueOf(p8.zzgt()));
        v0_5.put("app_version", p8.zzag());
        v0_5.put("app_store", p8.zzgv());
        v0_5.put("gmp_version", Long.valueOf(p8.zzgw()));
        v0_5.put("dev_cert_hash", Long.valueOf(p8.zzgx()));
        v0_5.put("measurement_enabled", Boolean.valueOf(p8.isMeasurementEnabled()));
        v0_5.put("day", Long.valueOf(p8.zzhc()));
        v0_5.put("daily_public_events_count", Long.valueOf(p8.zzhd()));
        v0_5.put("daily_events_count", Long.valueOf(p8.zzhe()));
        v0_5.put("daily_conversions_count", Long.valueOf(p8.zzhf()));
        v0_5.put("config_fetched_time", Long.valueOf(p8.zzgz()));
        v0_5.put("failed_config_fetch_time", Long.valueOf(p8.zzha()));
        v0_5.put("app_version_int", Long.valueOf(p8.zzgu()));
        v0_5.put("firebase_instance_id", p8.zzgr());
        v0_5.put("daily_error_events_count", Long.valueOf(p8.zzhh()));
        v0_5.put("daily_realtime_events_count", Long.valueOf(p8.zzhg()));
        v0_5.put("health_monitor_sample", p8.zzhi());
        v0_5.put("android_id", Long.valueOf(p8.zzhk()));
        v0_5.put("adid_reporting_enabled", Boolean.valueOf(p8.zzhl()));
        v0_5.put("ssaid_reporting_enabled", Boolean.valueOf(p8.zzhm()));
        try {
            String v1_9 = this.getWritableDatabase();
            long v4_1 = new String[1];
            v4_1[0] = p8.zzah();
        } catch (com.google.android.gms.internal.measurement.zzfk v0_3) {
            this.zzgi().zziv().zze("Error storing app. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p8.zzah()), v0_3);
            return;
        }
        if ((((long) v1_9.update("apps", v0_5, "app_id = ?", v4_1)) == 0) && (v1_9.insertWithOnConflict("apps", 0, v0_5, 5) == -1)) {
            this.zzgi().zziv().zzg("Failed to insert/update app (got -1). appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p8.zzah()));
        }
        return;
    }

Method com.google.android.gms.internal.measurement.zzek.zza() calling method android.database.sqlite.SQLiteDatabase.update()


    public final com.google.android.gms.internal.measurement.zzel zza(long p15, String p17, boolean p18, boolean p19, boolean p20, boolean p21, boolean p22)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p17);
        this.zzab();
        this.zzch();
        com.google.android.gms.internal.measurement.zzfk v1_1 = new String[1];
        v1_1[0] = p17;
        com.google.android.gms.internal.measurement.zzel v3_1 = new com.google.android.gms.internal.measurement.zzel();
        try {
            android.database.sqlite.SQLiteDatabase v13 = this.getWritableDatabase();
            String[] v9 = "daily_public_events_count";
            int v11 = "daily_error_events_count";
            v9 = new String[1];
            v9[0] = p17;
            android.database.Cursor v4 = v13.query("apps", new String[] {"day", "daily_realtime_events_count"}), "app_id=?", v9, 0, 0, 0);
        } catch (android.content.ContentValues v0_8) {
            if (v4 != null) {
                v4.close();
            }
            throw v0_8;
        } catch (android.content.ContentValues v0_7) {
            this.zzgi().zziv().zze("Error updating daily counts. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p17), v0_7);
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        }
        if (v4.moveToFirst()) {
            if (v4.getLong(0) == p15) {
                v3_1.zzagu = v4.getLong(1);
                v3_1.zzagt = v4.getLong(2);
                v3_1.zzagv = v4.getLong(3);
                v3_1.zzagw = v4.getLong(4);
                v3_1.zzagx = v4.getLong(5);
            }
            if (p18) {
                v3_1.zzagu = (v3_1.zzagu + 1);
            }
            if (p19) {
                v3_1.zzagt = (v3_1.zzagt + 1);
            }
            if (p20) {
                v3_1.zzagv = (v3_1.zzagv + 1);
            }
            if (p21) {
                v3_1.zzagw = (v3_1.zzagw + 1);
            }
            if (p22) {
                v3_1.zzagx = (v3_1.zzagx + 1);
            }
            android.content.ContentValues v0_10 = new android.content.ContentValues();
            v0_10.put("day", Long.valueOf(p15));
            v0_10.put("daily_public_events_count", Long.valueOf(v3_1.zzagt));
            v0_10.put("daily_events_count", Long.valueOf(v3_1.zzagu));
            v0_10.put("daily_conversions_count", Long.valueOf(v3_1.zzagv));
            v0_10.put("daily_error_events_count", Long.valueOf(v3_1.zzagw));
            v0_10.put("daily_realtime_events_count", Long.valueOf(v3_1.zzagx));
            v13.update("apps", v0_10, "app_id=?", v1_1);
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        } else {
            this.zzgi().zziy().zzg("Not updating daily counts, app is not known. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p17));
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        }
    }

Method com.google.firebase.firestore.c.zzat$zzb.zzb() calling method android.database.sqlite.SQLiteDatabase.rawQueryWithFactory()


    private android.database.Cursor zzb()
    {
        if (this.zzc == null) {
            return com.google.firebase.firestore.c.zzat.zza(this.zza).rawQuery(this.zzb, 0);
        } else {
            return com.google.firebase.firestore.c.zzat.zza(this.zza).rawQueryWithFactory(this.zzc, this.zzb, 0, 0);
        }
    }

Method com.google.firebase.firestore.c.zzat$zzb.zzb() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private android.database.Cursor zzb()
    {
        if (this.zzc == null) {
            return com.google.firebase.firestore.c.zzat.zza(this.zza).rawQuery(this.zzb, 0);
        } else {
            return com.google.firebase.firestore.c.zzat.zza(this.zza).rawQueryWithFactory(this.zzc, this.zzb, 0, 0);
        }
    }

Method com.google.firebase.firestore.c.zzat$zza.onConfigure() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final void onConfigure(android.database.sqlite.SQLiteDatabase p3)
    {
        this.zza = 1;
        String[] v1_1 = new String[0];
        p3.rawQuery("PRAGMA locking_mode = EXCLUSIVE", v1_1).close();
        return;
    }

Method com.google.android.gms.internal.measurement.zzfe.zza() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final boolean zza(int p17, byte[] p18)
    {
        this.zzfv();
        this.zzab();
        Long v2_5 = 0;
        if (!this.zzakg) {
            android.content.ContentValues v3_1 = new android.content.ContentValues();
            v3_1.put("type", Integer.valueOf(p17));
            v3_1.put("entry", p18);
            Long v4_4 = 5;
            int v5 = 0;
            int v6 = 5;
            while (v5 < v4_4) {
                int v7 = 0;
                try {
                    int v9 = this.getWritableDatabase();
                    try {
                        if (v9 != 0) {
                            v9.beginTransaction();
                            Long v10_1 = 0;
                            int v12 = v9.rawQuery("select count(1) from messages", 0);
                            try {
                                if ((v12 != 0) && (v12.moveToFirst())) {
                                    v10_1 = v12.getLong(v2_5);
                                }
                                if (v10_1 >= 100000) {
                                    this.zzgi().zziv().log("Data loss, local db full");
                                    long v13_2 = ((100000 - v10_1) + 1);
                                    String[] v11 = new String[1];
                                    v11[v2_5] = Long.toString(v13_2);
                                    Long v10_4 = ((long) v9.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v11));
                                    if (v10_4 != v13_2) {
                                        this.zzgi().zziv().zzd("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v13_2), Long.valueOf(v10_4), Long.valueOf((v13_2 - v10_4)));
                                    }
                                }
                                v9.insertOrThrow("messages", 0, v3_1);
                                v9.setTransactionSuccessful();
                                v9.endTransaction();
                                if (v12 != 0) {
                                    v12.close();
                                }
                                if (v9 != 0) {
                                    v9.close();
                                }
                                return 1;
                            } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                                v7 = v12;
                                android.os.SystemClock.sleep(((long) v6));
                                v6 += 20;
                                if (v7 != 0) {
                                    v7.close();
                                }
                                if (v9 == 0) {
                                    v5++;
                                    v2_5 = 0;
                                    v4_4 = 5;
                                } else {
                                    v9.close();
                                }
                            }
                        } else {
                            this.zzakg = 1;
                            if (v9 != 0) {
                                v9.close();
                            }
                            return v2_5;
                        }
                        v7 = v9;
                        if (v7 != 0) {
                            try {
                                if (v7.inTransaction()) {
                                    v7.endTransaction();
                                }
                            } catch (com.google.android.gms.internal.measurement.zzfk v0_1) {
                                v9 = v7;
                                if (v12 != 0) {
                                    v12.close();
                                }
                                if (v9 != 0) {
                                    v9.close();
                                }
                                throw v0_1;
                            }
                        }
                        this.zzgi().zziv().zzg("Error writing entry to local database", com.google.android.gms.internal.measurement.zzfk v0_0);
                        this.zzakg = 1;
                        if (v12 != 0) {
                            v12.close();
                        }
                        if (v7 == 0) {
                        } else {
                            v7.close();
                        }
                    } catch (com.google.android.gms.internal.measurement.zzfk v0_3) {
                        this.zzgi().zziv().zzg("Error writing entry to local database", v0_3);
                        this.zzakg = 1;
                        if (v7 != 0) {
                            v7.close();
                        }
                        if (v9 == 0) {
                        }
                    } catch (com.google.android.gms.internal.measurement.zzfk v0_0) {
                        v12 = 0;
                    }
                } catch (com.google.android.gms.internal.measurement.zzfk v0_1) {
                    v9 = 0;
                    v12 = 0;
                } catch (com.google.android.gms.internal.measurement.zzfk v0_3) {
                    v9 = 0;
                } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                    v9 = 0;
                } catch (com.google.android.gms.internal.measurement.zzfk v0_0) {
                    v12 = 0;
                } catch (com.google.android.gms.internal.measurement.zzfk v0_1) {
                    v12 = v7;
                }
            }
            this.zzgi().zziy().log("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zzic() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final long zzic()
    {
        long v0_0 = -1;
        try {
            android.database.Cursor v2_1 = this.getWritableDatabase().rawQuery("select rowid from raw_events order by rowid desc limit 1;", 0);
        } catch (long v0_1) {
            if (v2_1 != null) {
                v2_1.close();
            }
            throw v0_1;
        } catch (int v3_1) {
            this.zzgi().zziv().zzg("Error querying raw events", v3_1);
            if (v2_1 != null) {
                v2_1.close();
            }
            return v0_0;
        }
        if (v2_1.moveToFirst()) {
            v0_0 = v2_1.getLong(0);
            if (v2_1 != null) {
                v2_1.close();
            }
            return v0_0;
        } else {
            if (v2_1 != null) {
                v2_1.close();
            }
            return -1;
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zzhv() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final String zzhv()
    {
        try {
            Throwable v0_1 = this.getWritableDatabase().rawQuery("select app_id from queue order by has_realtime desc, rowid asc limit 1;", 0);
            try {
                if (!v0_1.moveToFirst()) {
                    if (v0_1 != null) {
                        v0_1.close();
                    }
                    return 0;
                } else {
                    String v1_2 = v0_1.getString(0);
                    if (v0_1 != null) {
                        v0_1.close();
                    }
                    return v1_2;
                }
            } catch (int v2_1) {
                this.zzgi().zziv().zzg("Database error getting next bundle app id", v2_1);
                if (v0_1 != null) {
                    v0_1.close();
                }
                return 0;
            }
        } catch (Throwable v0_2) {
            String v1_0 = v0_2;
            v0_1 = 0;
            if (v0_1 != null) {
                v0_1.close();
            }
            throw v1_0;
        } catch (int v2_1) {
            v0_1 = 0;
        } catch (String v1_0) {
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zzag() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final String zzag(long p5)
    {
        this.zzab();
        this.zzch();
        try {
            String v1_3 = this.getWritableDatabase();
            String[] v3_1 = new String[1];
            v3_1[0] = String.valueOf(p5);
            int v5_1 = v1_3.rawQuery("select app_id from apps where app_id in (select distinct app_id from raw_events) and config_fetched_time < ? order by failed_config_fetch_time limit 1;", v3_1);
            try {
                if (v5_1.moveToFirst()) {
                    String v6_3 = v5_1.getString(0);
                    if (v5_1 != 0) {
                        v5_1.close();
                    }
                    return v6_3;
                } else {
                    this.zzgi().zzjc().log("No expired configs for apps with pending events");
                    if (v5_1 != 0) {
                        v5_1.close();
                    }
                    return 0;
                }
            } catch (String v6_1) {
                this.zzgi().zziv().zzg("Error selecting expired configs", v6_1);
                if (v5_1 != 0) {
                    v5_1.close();
                }
                return 0;
            }
        } catch (String v6_2) {
            v5_1 = 0;
            if (v5_1 != 0) {
                v5_1.close();
            }
            throw v6_2;
        } catch (String v6_1) {
            v5_1 = 0;
        } catch (String v6_2) {
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zza() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final android.util.Pair zza(String p8, Long p9)
    {
        this.zzab();
        this.zzch();
        try {
            int v1_1 = this.getWritableDatabase();
            com.google.android.gms.internal.measurement.zzfk v3_4 = new String[2];
            v3_4[0] = p8;
            v3_4[1] = String.valueOf(p9);
            int v1_0 = v1_1.rawQuery("select main_event, children_to_process from main_event_params where app_id=? and event_id=?", v3_4);
            try {
                if (v1_0.moveToFirst()) {
                    java.io.IOException v2_1 = v1_0.getBlob(0);
                    com.google.android.gms.internal.measurement.zzfk v3_0 = Long.valueOf(v1_0.getLong(1));
                    java.io.IOException v2_2 = com.google.android.gms.internal.measurement.zzaca.zza(v2_1, 0, v2_1.length);
                    String v4_1 = new com.google.android.gms.internal.measurement.zzkr();
                    try {
                        v4_1.zzb(v2_2);
                    } catch (java.io.IOException v2_3) {
                        this.zzgi().zziv().zzd("Failed to merge main event. appId, eventId", com.google.android.gms.internal.measurement.zzfi.zzbp(p8), p9, v2_3);
                        if (v1_0 != 0) {
                            v1_0.close();
                        }
                        return 0;
                    }
                    Object v8_4 = android.util.Pair.create(v4_1, v3_0);
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return v8_4;
                } else {
                    this.zzgi().zzjc().log("Main event not found");
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return 0;
                }
            } catch (Object v8_1) {
                this.zzgi().zziv().zzg("Error selecting main event", v8_1);
                if (v1_0 != 0) {
                    v1_0.close();
                }
                return 0;
            }
        } catch (Object v8_2) {
            v1_0 = 0;
            if (v1_0 != 0) {
                v1_0.close();
            }
            throw v8_2;
        } catch (Object v8_1) {
            v1_0 = 0;
        } catch (Object v8_2) {
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zza() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final long zza(String p3, String[] p4, long p5)
    {
        try {
            android.database.Cursor v1 = this.getWritableDatabase().rawQuery(p3, p4);
        } catch (long v3_1) {
            if (v1 != null) {
                v1.close();
            }
            throw v3_1;
        } catch (int v4_3) {
            this.zzgi().zziv().zze("Database error", p3, v4_3);
            throw v4_3;
        }
        if (!v1.moveToFirst()) {
            if (v1 != null) {
                v1.close();
            }
            return p5;
        } else {
            long v3_2 = v1.getLong(0);
            if (v1 != null) {
                v1.close();
            }
            return v3_2;
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zza() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final long zza(String p4, String[] p5)
    {
        try {
            android.database.Cursor v1 = this.getWritableDatabase().rawQuery(p4, p5);
        } catch (long v4_1) {
            if (v1 != null) {
                v1.close();
            }
            throw v4_1;
        } catch (android.database.sqlite.SQLiteException v5_2) {
            this.zzgi().zziv().zze("Database error", p4, v5_2);
            throw v5_2;
        }
        if (!v1.moveToFirst()) {
            throw new android.database.sqlite.SQLiteException("Database returned empty set");
        } else {
            long v4_2 = v1.getLong(0);
            if (v1 != null) {
                v1.close();
            }
            return v4_2;
        }
    }

Method com.google.android.gms.internal.measurement.zzjt.zzd() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final boolean zzd(String p40, long p41)
    {
        String v1_0 = this;
        this.zzjh().beginTransaction();
        try {
            android.database.sqlite.SQLiteException v3_0 = 0;
            com.google.android.gms.internal.measurement.zzfk v2_3 = new com.google.android.gms.internal.measurement.zzjt$zza(this, 0);
            String v4_58 = this.zzjh();
            com.google.android.gms.internal.measurement.zzfk v5_90 = this.zzasl;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_3);
            v4_58.zzab();
            v4_58.zzch();
            try {
                long v21_0;
                int v22;
                Long v15_15 = v4_58.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        String v12_29;
                        android.database.sqlite.SQLiteException v3_1 = v5_90 cmp -1;
                        if (v3_1 == null) {
                            v12_29 = new String[] {0});
                        } else {
                            v12_29 = new String[2];
                            v12_29[0] = 0;
                            v12_29[1] = String.valueOf(v5_90);
                        }
                        android.database.sqlite.SQLiteException v3_8;
                        if (v3_1 == null) {
                            v3_8 = "";
                        } else {
                            v3_8 = " and rowid <= ?";
                        }
                        long v14_12 = new StringBuilder((String.valueOf(v3_8).length() + 84));
                        v14_12.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_12.append(v3_8);
                        v14_12.append(" order by rowid limit 1;");
                        v3_0 = v15_15.rawQuery(v14_12.toString(), v12_29);
                        if (v3_0.moveToFirst()) {
                            Boolean v13_16 = v3_0.getString(0);
                            v3_0.close();
                            v22 = v3_0;
                            v21_0 = v13_16;
                            v3_0 = 0;
                            try {
                                String v12_9 = new String[2];
                                v12_9[0] = v3_0;
                                v12_9[1] = v21_0;
                                long v24_1 = v15_15;
                                Long v15_14 = v15_15.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_9, 0, 0, "rowid", "2");
                                try {
                                    if (v15_14.moveToFirst()) {
                                        String v12_13 = v15_14.getBlob(0);
                                        String v12_14 = com.google.android.gms.internal.measurement.zzaca.zza(v12_13, 0, v12_13.length);
                                        Boolean v13_5 = new com.google.android.gms.internal.measurement.zzku();
                                        try {
                                            v13_5.zzb(v12_14);
                                        } catch (android.database.sqlite.SQLiteException v0_4) {
                                            int v6_0 = v15_14;
                                            v4_58.zzgi().zziv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0), v0_4);
                                            if (v6_0 == 0) {
                                                android.database.sqlite.SQLiteException v3_6;
                                                if (v2_3.zzasr == null) {
                                                    v3_6 = 1;
                                                } else {
                                                    if (!v2_3.zzasr.isEmpty()) {
                                                        v3_6 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_6 != null) {
                                                    this.zzjh().setTransactionSuccessful();
                                                    this.zzjh().endTransaction();
                                                    return 0;
                                                } else {
                                                    android.database.sqlite.SQLiteException v3_7 = v2_3.zzasp;
                                                    String v4_4 = new com.google.android.gms.internal.measurement.zzkr[v2_3.zzasr.size()];
                                                    v3_7.zzavi = v4_4;
                                                    String v4_7 = this.zzacv.zzgk().zzaw(v3_7.zzth);
                                                    com.google.android.gms.internal.measurement.zzet v7_30 = 0;
                                                    com.google.android.gms.internal.measurement.zzet v8_1 = 0;
                                                    String v9_1 = 0;
                                                    String v12_10 = 0;
                                                    while (v7_30 < v2_3.zzasr.size()) {
                                                        Long v15_1;
                                                        long v14_4 = ((com.google.android.gms.internal.measurement.zzkr) v2_3.zzasr.get(v7_30));
                                                        if (!this.zzky().zzn(v2_3.zzasp.zzth, v14_4.name)) {
                                                            String v20_2;
                                                            com.google.android.gms.internal.measurement.zzfk v5_3 = this.zzky().zzo(v2_3.zzasp.zzth, v14_4.name);
                                                            if (v5_3 != null) {
                                                                if (v14_4.zzava == null) {
                                                                    boolean v10_8 = new com.google.android.gms.internal.measurement.zzks[0];
                                                                    v14_4.zzava = v10_8;
                                                                }
                                                                int v6_13 = v14_4.zzava;
                                                                boolean v10_9 = v6_13.length;
                                                                String v11_2 = 0;
                                                                Long v19_2 = 0;
                                                                String v20_1 = 0;
                                                                while (v11_2 < v10_9) {
                                                                    Long v15_10 = v6_13[v11_2];
                                                                    boolean v16_4 = v6_13;
                                                                    long v24_2 = v10_9;
                                                                    if (!"_c".equals(v15_10.name)) {
                                                                        if ("_r".equals(v15_10.name)) {
                                                                            v15_10.zzave = Long.valueOf(1);
                                                                            v20_1 = 1;
                                                                        }
                                                                    } else {
                                                                        v15_10.zzave = Long.valueOf(1);
                                                                        v19_2 = 1;
                                                                    }
                                                                    v11_2++;
                                                                    v6_13 = v16_4;
                                                                    v10_9 = v24_2;
                                                                }
                                                                if ((v19_2 == null) && (v5_3 != null)) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as conversion", this.zzacv.zzgf().zzbm(v14_4.name));
                                                                    int v6_19 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v14_4.zzava, (v14_4.zzava.length + 1)));
                                                                    boolean v10_15 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v10_15.name = "_c";
                                                                    v10_15.zzave = Long.valueOf(1);
                                                                    v6_19[(v6_19.length - 1)] = v10_15;
                                                                    v14_4.zzava = v6_19;
                                                                }
                                                                if (v20_1 == null) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as real-time", this.zzacv.zzgf().zzbm(v14_4.name));
                                                                    int v6_25 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v14_4.zzava, (v14_4.zzava.length + 1)));
                                                                    boolean v10_21 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v10_21.name = "_r";
                                                                    v10_21.zzave = Long.valueOf(1);
                                                                    v6_25[(v6_25.length - 1)] = v10_21;
                                                                    v14_4.zzava = v6_25;
                                                                }
                                                                v15_1 = v7_30;
                                                                if (this.zzjh().zza(this.zzld(), v2_3.zzasp.zzth, 0, 0, 0, 0, 1).zzagx <= ((long) this.zzacv.zzgk().zzas(v2_3.zzasp.zzth))) {
                                                                    v9_1 = 1;
                                                                } else {
                                                                    int v6_33 = 0;
                                                                    while (v6_33 < v14_4.zzava.length) {
                                                                        if (!"_r".equals(v14_4.zzava[v6_33].name)) {
                                                                            v6_33++;
                                                                        } else {
                                                                            com.google.android.gms.internal.measurement.zzet v7_11 = new com.google.android.gms.internal.measurement.zzks[(v14_4.zzava.length - 1)];
                                                                            if (v6_33 > 0) {
                                                                                System.arraycopy(v14_4.zzava, 0, v7_11, 0, v6_33);
                                                                            }
                                                                            if (v6_33 >= v7_11.length) {
                                                                                boolean v16_1 = v9_1;
                                                                            } else {
                                                                                v16_1 = v9_1;
                                                                                System.arraycopy(v14_4.zzava, (v6_33 + 1), v7_11, v6_33, (v7_11.length - v6_33));
                                                                            }
                                                                            v14_4.zzava = v7_11;
                                                                        }
                                                                        v9_1 = v16_1;
                                                                    }
                                                                    v16_1 = v9_1;
                                                                }
                                                                if ((!com.google.android.gms.internal.measurement.zzkd.zzcg(v14_4.name)) || ((v5_3 == null) || (this.zzjh().zza(this.zzld(), v2_3.zzasp.zzth, 0, 0, 1, 0, 0).zzagv <= ((long) this.zzacv.zzgk().zzb(v2_3.zzasp.zzth, com.google.android.gms.internal.measurement.zzez.zzair))))) {
                                                                    v20_2 = v9_1;
                                                                } else {
                                                                    this.zzacv.zzgi().zziy().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                                    com.google.android.gms.internal.measurement.zzfk v5_11 = v14_4.zzava;
                                                                    int v6_37 = v5_11.length;
                                                                    com.google.android.gms.internal.measurement.zzet v7_19 = 0;
                                                                    boolean v10_33 = 0;
                                                                    String v11_22 = 0;
                                                                    while (v7_19 < v6_37) {
                                                                        int v6_44 = v5_11[v7_19];
                                                                        if (!"_c".equals(v6_44.name)) {
                                                                            if ("_err".equals(v6_44.name)) {
                                                                                v10_33 = 1;
                                                                            }
                                                                        } else {
                                                                            v11_22 = v6_44;
                                                                        }
                                                                        v7_19++;
                                                                    }
                                                                    v20_2 = v9_1;
                                                                    if ((!v10_33) || (v11_22 == null)) {
                                                                        if (v11_22 == null) {
                                                                            this.zzacv.zzgi().zziv().zzg("Did not find conversion parameter. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                                        } else {
                                                                            v11_22.name = "_err";
                                                                            v11_22.zzave = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.measurement.zzfk v5_18 = v14_4.zzava;
                                                                        com.google.android.gms.internal.measurement.zzet v7_24 = new com.google.android.gms.internal.measurement.zzks[1];
                                                                        v7_24[0] = v11_22;
                                                                        v14_4.zzava = ((com.google.android.gms.internal.measurement.zzks[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v5_18, v7_24));
                                                                    }
                                                                }
                                                            } else {
                                                                Long v19_1;
                                                                this.zzjf();
                                                                int v6_6 = v14_4.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v6_6);
                                                                String v11_1 = v6_6.hashCode();
                                                                if (v11_1 == 94660) {
                                                                    if (!v6_6.equals("_in")) {
                                                                        v19_1 = -1;
                                                                    } else {
                                                                        v19_1 = 0;
                                                                    }
                                                                } else {
                                                                    if (v11_1 == 95025) {
                                                                        if (!v6_6.equals("_ug")) {
                                                                        } else {
                                                                            v19_1 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v11_1 == 95027) {
                                                                            if (!v6_6.equals("_ui")) {
                                                                            } else {
                                                                                v19_1 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v6_10;
                                                                switch (v19_1) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v6_10 = 1;
                                                                    default:
                                                                        v6_10 = 0;
                                                                }
                                                                if (v6_10 == 0) {
                                                                    v15_1 = v7_30;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v4_7 != null) && ("_e".equals(v14_4.name))) {
                                                                com.google.android.gms.internal.measurement.zzet v7_27;
                                                                int v6_42;
                                                                com.google.android.gms.internal.measurement.zzfk v5_32;
                                                                if (v14_4.zzava == null) {
                                                                    v5_32 = this.zzacv.zzgi().zziy();
                                                                    v6_42 = "Engagement event does not contain any parameters. appId";
                                                                    v7_27 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth);
                                                                } else {
                                                                    if (v14_4.zzava.length != 0) {
                                                                        this.zzjf();
                                                                        com.google.android.gms.internal.measurement.zzfk v5_28 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v14_4, "_et"));
                                                                        if (v5_28 != null) {
                                                                            v12_10 += v5_28.longValue();
                                                                            int v6_43 = (v8_1 + 1);
                                                                            v3_7.zzavi[v8_1] = v14_4;
                                                                            v8_1 = v6_43;
                                                                            v9_1 = v20_2;
                                                                            v7_30 = (v15_1 + 1);
                                                                            String v11 = 1;
                                                                        } else {
                                                                            v5_32 = this.zzacv.zzgi().zziy();
                                                                            v6_42 = "Engagement event does not include duration. appId";
                                                                            v7_27 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth);
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                v5_32.zzg(v6_42, v7_27);
                                                            }
                                                        } else {
                                                            com.google.android.gms.internal.measurement.zzfk v5_47;
                                                            this.zzacv.zzgi().zziy().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth), this.zzacv.zzgf().zzbm(v14_4.name));
                                                            if (this.zzky().zzcb(v2_3.zzasp.zzth)) {
                                                                v5_47 = 1;
                                                            } else {
                                                                if (!this.zzky().zzcc(v2_3.zzasp.zzth)) {
                                                                    v5_47 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_47 == null) && (!"_err".equals(v14_4.name))) {
                                                                this.zzacv.zzgg().zza(v2_3.zzasp.zzth, 11, "_ev", v14_4.name, 0);
                                                            }
                                                            v15_1 = v7_30;
                                                        }
                                                    }
                                                    boolean v16_7 = v9_1;
                                                    if (v8_1 < v2_3.zzasr.size()) {
                                                        v3_7.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v3_7.zzavi, v8_1));
                                                    }
                                                    if (v4_7 != null) {
                                                        String v4_12;
                                                        String v4_9 = this.zzjh().zzh(v3_7.zzth, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.internal.measurement.zzkc;
                                                            v4_12(v3_7.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf(v12_10));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                com.google.android.gms.internal.measurement.zzfk v5_68 = new com.google.android.gms.internal.measurement.zzkc;
                                                                v5_68(v3_7.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v12_10)));
                                                                v4_12 = v5_68;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v5_71 = new com.google.android.gms.internal.measurement.zzkx();
                                                        v5_71.name = "_lte";
                                                        v5_71.zzaws = Long.valueOf(this.zzacv.zzbt().currentTimeMillis());
                                                        v5_71.zzave = ((Long) v4_12.value);
                                                        int v6_81 = 0;
                                                        while (v6_81 < v3_7.zzavj.length) {
                                                            if (!"_lte".equals(v3_7.zzavj[v6_81].name)) {
                                                                v6_81++;
                                                            } else {
                                                                v3_7.zzavj[v6_81] = v5_71;
                                                                int v6_82 = 1;
                                                            }
                                                            if (v6_82 == 0) {
                                                                v3_7.zzavj = ((com.google.android.gms.internal.measurement.zzkx[]) java.util.Arrays.copyOf(v3_7.zzavj, (v3_7.zzavj.length + 1)));
                                                                v3_7.zzavj[(v2_3.zzasp.zzavj.length - 1)] = v5_71;
                                                            }
                                                            if (v12_10 > 0) {
                                                                this.zzjh().zza(v4_12);
                                                                this.zzacv.zzgi().zzjb().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_82 = 0;
                                                    }
                                                    v3_7.zzawa = this.zza(v3_7.zzth, v3_7.zzavj, v3_7.zzavi);
                                                    try {
                                                        if (this.zzacv.zzgk().zzav(v2_3.zzasp.zzth)) {
                                                            String v4_20 = new java.util.HashMap();
                                                            com.google.android.gms.internal.measurement.zzfk v5_82 = new com.google.android.gms.internal.measurement.zzkr[v3_7.zzavi.length];
                                                            int v6_1 = this.zzacv.zzgg().zzlo();
                                                            com.google.android.gms.internal.measurement.zzet v7_3 = v3_7.zzavi;
                                                            com.google.android.gms.internal.measurement.zzet v8_0 = v7_3.length;
                                                            String v9_0 = 0;
                                                            boolean v10_0 = 0;
                                                            while (v9_0 < v8_0) {
                                                                String v20_0;
                                                                Long v19_0;
                                                                long v24_0;
                                                                String v11_27 = v7_3[v9_0];
                                                                if (!v11_27.name.equals("_ep")) {
                                                                    v19_0 = v7_3;
                                                                    com.google.android.gms.internal.measurement.zzet v7_84;
                                                                    long v14_16 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v14_16 != 0)) {
                                                                        String v12_38 = v11_27.zzava;
                                                                        Boolean v13_19 = v12_38.length;
                                                                        Long v15_17 = 0;
                                                                        while (v15_17 < v13_19) {
                                                                            v20_0 = v8_0;
                                                                            com.google.android.gms.internal.measurement.zzet v8_20 = v12_38[v15_17];
                                                                            if (!"_dbg".equals(v8_20.name)) {
                                                                                v15_17++;
                                                                                v8_0 = v20_0;
                                                                            } else {
                                                                                if (((!(v14_16 instanceof Long)) || (!v14_16.equals(v8_20.zzave))) && (((!(v14_16 instanceof String)) || (!v14_16.equals(v8_20.zzale))) && ((!(v14_16 instanceof Double)) || (!v14_16.equals(v8_20.zzasw))))) {
                                                                                    v7_84 = 0;
                                                                                } else {
                                                                                    v7_84 = 1;
                                                                                }
                                                                            }
                                                                        }
                                                                        v20_0 = v8_0;
                                                                    }
                                                                    com.google.android.gms.internal.measurement.zzet v7_85;
                                                                    if (v7_84 != null) {
                                                                        v7_85 = 1;
                                                                    } else {
                                                                        v7_85 = this.zzky().zzp(v2_3.zzasp.zzth, v11_27.name);
                                                                    }
                                                                    com.google.android.gms.internal.measurement.zzet v7_96;
                                                                    if (v7_85 > null) {
                                                                        com.google.android.gms.internal.measurement.zzet v8_25 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v11_27.name));
                                                                        if (v8_25 == null) {
                                                                            v8_25 = this.zzjh().zzf(v2_3.zzasp.zzth, v11_27.name);
                                                                            if (v8_25 == null) {
                                                                                v1_0.zzacv.zzgi().zziy().zze("Event being bundled has no eventAggregate. appId, eventName", v2_3.zzasp.zzth, v11_27.name);
                                                                                v8_25 = new com.google.android.gms.internal.measurement.zzet;
                                                                                v8_25(v2_3.zzasp.zzth, v11_27.name, 1, 1, v11_27.zzavb.longValue(), 0, 0, 0, 0);
                                                                            }
                                                                        }
                                                                        Boolean v13_24;
                                                                        this.zzjf();
                                                                        String v12_50 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v11_27, "_eid"));
                                                                        if (v12_50 == null) {
                                                                            v13_24 = 0;
                                                                        } else {
                                                                            v13_24 = 1;
                                                                        }
                                                                        Boolean v13_25 = Boolean.valueOf(v13_24);
                                                                        if (v7_85 != 1) {
                                                                            if (v6_1.nextInt(v7_85) != 0) {
                                                                                v24_0 = v6_1;
                                                                                if (Math.abs((v11_27.zzavb.longValue() - v8_25.zzahk)) < 86400000) {
                                                                                    if (!v13_25.booleanValue()) {
                                                                                        v9_0++;
                                                                                        v7_3 = v19_0;
                                                                                        v8_0 = v20_0;
                                                                                        v6_1 = v24_0;
                                                                                        v1_0 = this;
                                                                                    } else {
                                                                                        v4_20.put(v11_27.name, v8_25.zza(v12_50, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzjf();
                                                                                    v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_efs", Long.valueOf(1));
                                                                                    this.zzjf();
                                                                                    long v14_27 = ((long) v7_85);
                                                                                    v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_sr", Long.valueOf(v14_27));
                                                                                    String v1_27 = (v10_0 + 1);
                                                                                    v5_82[v10_0] = v11_27;
                                                                                    if (v13_25.booleanValue()) {
                                                                                        v8_25 = v8_25.zza(0, Long.valueOf(v14_27), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_20.put(v11_27.name, v8_25.zzai(v11_27.zzavb.longValue()));
                                                                                    v10_0 = v1_27;
                                                                                }
                                                                            } else {
                                                                                this.zzjf();
                                                                                int v6_125 = ((long) v7_85);
                                                                                v24_0 = v6_1;
                                                                                v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_sr", Long.valueOf(v6_125));
                                                                                String v12_55 = (v10_0 + 1);
                                                                                v5_82[v10_0] = v11_27;
                                                                                if (v13_25.booleanValue()) {
                                                                                    v8_25 = v8_25.zza(0, Long.valueOf(v6_125), 0);
                                                                                }
                                                                                v4_20.put(v11_27.name, v8_25.zzai(v11_27.zzavb.longValue()));
                                                                                v10_0 = v12_55;
                                                                            }
                                                                        } else {
                                                                            v7_96 = (v10_0 + 1);
                                                                            v5_82[v10_0] = v11_27;
                                                                            if ((v13_25.booleanValue()) && ((v8_25.zzahl != null) || ((v8_25.zzahm != null) || (v8_25.zzahn != null)))) {
                                                                                v4_20.put(v11_27.name, v8_25.zza(0, 0, 0));
                                                                            }
                                                                        }
                                                                    } else {
                                                                        v1_0.zzacv.zzgi().zziy().zze("Sample rate must be positive. event, rate", v11_27.name, Integer.valueOf(v7_85));
                                                                        v7_96 = (v10_0 + 1);
                                                                        v5_82[v10_0] = v11_27;
                                                                    }
                                                                    v24_0 = v6_1;
                                                                    v10_0 = v7_96;
                                                                } else {
                                                                    this.zzjf();
                                                                    String v12_59 = ((String) com.google.android.gms.internal.measurement.zzjz.zzb(v11_27, "_en"));
                                                                    Boolean v13_28 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v12_59));
                                                                    if (v13_28 == null) {
                                                                        v13_28 = this.zzjh().zzf(v2_3.zzasp.zzth, v12_59);
                                                                        v4_20.put(v12_59, v13_28);
                                                                    }
                                                                    if (v13_28.zzahl != null) {
                                                                        v19_0 = v7_3;
                                                                        v24_0 = v6_1;
                                                                    } else {
                                                                        if (v13_28.zzahm.longValue() > 1) {
                                                                            this.zzjf();
                                                                            v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_sr", v13_28.zzahm);
                                                                        }
                                                                        if ((v13_28.zzahn == null) || (!v13_28.zzahn.booleanValue())) {
                                                                            v19_0 = v7_3;
                                                                        } else {
                                                                            this.zzjf();
                                                                            v19_0 = v7_3;
                                                                            v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_efs", Long.valueOf(1));
                                                                        }
                                                                        com.google.android.gms.internal.measurement.zzet v7_2 = (v10_0 + 1);
                                                                        v5_82[v10_0] = v11_27;
                                                                        v24_0 = v6_1;
                                                                        v10_0 = v7_2;
                                                                    }
                                                                    v20_0 = v8_0;
                                                                }
                                                            }
                                                            if (v10_0 < v3_7.zzavi.length) {
                                                                v3_7.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v5_82, v10_0));
                                                            }
                                                            String v1_11 = v4_20.entrySet().iterator();
                                                            while (v1_11.hasNext()) {
                                                                this.zzjh().zza(((com.google.android.gms.internal.measurement.zzet) ((java.util.Map$Entry) v1_11.next()).getValue()));
                                                            }
                                                        }
                                                        try {
                                                            v3_7.zzavl = Long.valueOf(nan);
                                                            v3_7.zzavm = Long.valueOf(-0.0);
                                                            String v1_14 = 0;
                                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                                            String v1_1 = v0_3;
                                                            this.zzjh().endTransaction();
                                                            throw v1_1;
                                                        }
                                                        while (v1_14 < v3_7.zzavi.length) {
                                                            String v4_52 = v3_7.zzavi[v1_14];
                                                            if (v4_52.zzavb.longValue() < v3_7.zzavl.longValue()) {
                                                                v3_7.zzavl = v4_52.zzavb;
                                                            }
                                                            if (v4_52.zzavb.longValue() > v3_7.zzavm.longValue()) {
                                                                v3_7.zzavm = v4_52.zzavb;
                                                            }
                                                            v1_14++;
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v5_83;
                                                        String v1_16 = v2_3.zzasp.zzth;
                                                        String v4_27 = this.zzjh().zzbf(v1_16);
                                                        if (v4_27 != null) {
                                                            v5_83 = this;
                                                            if (v3_7.zzavi.length > 0) {
                                                                com.google.android.gms.internal.measurement.zzet v8_16;
                                                                int v6_93 = v4_27.zzgt();
                                                                if (v6_93 == 0) {
                                                                    v8_16 = 0;
                                                                } else {
                                                                    v8_16 = Long.valueOf(v6_93);
                                                                }
                                                                v3_7.zzavo = v8_16;
                                                                com.google.android.gms.internal.measurement.zzet v8_17 = v4_27.zzgs();
                                                                if (v8_17 != 0) {
                                                                    v6_93 = v8_17;
                                                                } else {
                                                                }
                                                                int v6_94;
                                                                if (v6_93 == 0) {
                                                                    v6_94 = 0;
                                                                } else {
                                                                    v6_94 = Long.valueOf(v6_93);
                                                                }
                                                                v3_7.zzavn = v6_94;
                                                                v4_27.zzhb();
                                                                v3_7.zzavy = Integer.valueOf(((int) v4_27.zzgy()));
                                                                v4_27.zzr(v3_7.zzavl.longValue());
                                                                v4_27.zzs(v3_7.zzavm.longValue());
                                                                v3_7.zzafy = v4_27.zzhj();
                                                                this.zzjh().zza(v4_27);
                                                            }
                                                        } else {
                                                            v5_83 = this;
                                                            this.zzacv.zzgi().zziv().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                        }
                                                        if (v3_7.zzavi.length > 0) {
                                                            String v4_36;
                                                            v5_83.zzacv.zzgl();
                                                            String v4_35 = this.zzky().zzbx(v2_3.zzasp.zzth);
                                                            if (v4_35 == null) {
                                                                if (!android.text.TextUtils.isEmpty(v2_3.zzasp.zzafa)) {
                                                                    v5_83.zzacv.zzgi().zziy().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                                } else {
                                                                    v4_36 = Long.valueOf(-1);
                                                                    v3_7.zzawf = v4_36;
                                                                }
                                                            } else {
                                                                if (v4_35.zzaum != null) {
                                                                    v4_36 = v4_35.zzaum;
                                                                } else {
                                                                }
                                                            }
                                                            this.zzjh().zza(v3_7, v16_7);
                                                        }
                                                        android.database.sqlite.SQLiteException v3_11 = this.zzjh();
                                                        com.google.android.gms.internal.measurement.zzfk v2_4 = v2_3.zzasq;
                                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_4);
                                                        v3_11.zzab();
                                                        v3_11.zzch();
                                                        String v4_45 = new StringBuilder("rowid in (");
                                                        int v6_110 = 0;
                                                        while (v6_110 < v2_4.size()) {
                                                            if (v6_110 != 0) {
                                                                v4_45.append(",");
                                                            }
                                                            v4_45.append(((Long) v2_4.get(v6_110)).longValue());
                                                            v6_110++;
                                                        }
                                                        v4_45.append(")");
                                                        String v4_47 = v3_11.getWritableDatabase().delete("raw_events", v4_45.toString(), 0);
                                                        if (v4_47 != v2_4.size()) {
                                                            v3_11.zzgi().zziv().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v4_47), Integer.valueOf(v2_4.size()));
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v2_7 = this.zzjh();
                                                        android.database.sqlite.SQLiteException v3_14 = v2_7.getWritableDatabase();
                                                        try {
                                                            int v6_116 = new String[2];
                                                            v6_116[0] = v1_16;
                                                            v6_116[1] = v1_16;
                                                            v3_14.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v6_116);
                                                        } catch (android.database.sqlite.SQLiteException v0_6) {
                                                            v2_7.zzgi().zziv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v1_16), v0_6);
                                                        }
                                                        this.zzjh().setTransactionSuccessful();
                                                        this.zzjh().endTransaction();
                                                        return 1;
                                                    } catch (android.database.sqlite.SQLiteException v0_1) {
                                                        v1_1 = v0_1;
                                                    }
                                                }
                                            } else {
                                                v6_0.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                        }
                                        if (v15_14.moveToNext()) {
                                            v4_58.zzgi().zziy().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                        }
                                        boolean v16_6;
                                        com.google.android.gms.internal.measurement.zzfk v5_54;
                                        v15_14.close();
                                        v2_3.zzb(v13_5);
                                        if (v5_90 == -1) {
                                            v5_54 = "app_id = ? and metadata_fingerprint = ?";
                                            String v12_19 = new String[2];
                                            v12_19[0] = v3_0;
                                            v12_19[1] = v21_0;
                                            v16_6 = v12_19;
                                        } else {
                                            Boolean v13_6 = new String[3];
                                            v13_6[0] = v3_0;
                                            v13_6[1] = v21_0;
                                            v13_6[2] = String.valueOf(v5_90);
                                            v5_54 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_6 = v13_6;
                                        }
                                        v6_0 = v15_14;
                                        com.google.android.gms.internal.measurement.zzfk v5_56 = v24_1.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_54, v16_6, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_56.moveToFirst()) {
                                                do {
                                                    int v6_63 = v5_56.getLong(0);
                                                    com.google.android.gms.internal.measurement.zzet v8_3 = v5_56.getBlob(3);
                                                    com.google.android.gms.internal.measurement.zzet v8_4 = com.google.android.gms.internal.measurement.zzaca.zza(v8_3, 0, v8_3.length);
                                                    String v12_26 = new com.google.android.gms.internal.measurement.zzkr();
                                                    v12_26.zzb(v8_4);
                                                    v12_26.name = v5_56.getString(1);
                                                    v12_26.zzavb = Long.valueOf(v5_56.getLong(2));
                                                    if (v2_3.zza(v6_63, v12_26)) {
                                                    } else {
                                                        if (v5_56 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_56.moveToNext());
                                                if (v5_56 == null) {
                                                }
                                            } else {
                                                v4_58.zzgi().zziy().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                                if (v5_56 == null) {
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v6_0 = v5_56;
                                            String v1_2 = v0_0;
                                            if (v6_0 != 0) {
                                                v6_0.close();
                                            }
                                            throw v1_2;
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            String v12_4 = v3_0;
                                            v6_0 = v5_56;
                                            android.database.sqlite.SQLiteException v3_2 = v0_2;
                                            v4_58.zzgi().zziv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_4), v3_2);
                                            if (v6_0 == 0) {
                                            }
                                        }
                                        v5_56.close();
                                    } else {
                                        v4_58.zzgi().zziv().zzg("Raw event metadata record is missing. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                        if (v15_14 == null) {
                                        } else {
                                            v15_14.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_14;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v6_0 = v15_14;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_14;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v12_4 = v3_0;
                                    v6_0 = v15_14;
                                }
                                v12_4 = v3_0;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v6_0 = v22;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v12_4 = v3_0;
                                v6_0 = v22;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                            }
                        }
                    } else {
                        Boolean v13_17;
                        String v12_33 = v5_90 cmp -1;
                        try {
                            if (v12_33 == null) {
                                v13_17 = new String[1];
                                v13_17[0] = String.valueOf(p41);
                            } else {
                                v13_17 = new String[2];
                                v13_17[0] = String.valueOf(v5_90);
                                v13_17[1] = String.valueOf(p41);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                            v6_0 = 0;
                            v12_4 = 0;
                        }
                        String v12_41;
                        if (v12_33 == null) {
                            v12_41 = "";
                        } else {
                            v12_41 = "rowid <= ? and ";
                        }
                        android.database.sqlite.SQLiteException v3_17 = new StringBuilder((String.valueOf(v12_41).length() + 148));
                        v3_17.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_17.append(v12_41);
                        v3_17.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_15.rawQuery(v3_17.toString(), v13_17);
                        if (v3_0.moveToFirst()) {
                            v12_4 = v3_0.getString(0);
                            try {
                                Boolean v13_1 = v3_0.getString(1);
                                v3_0.close();
                                v22 = v3_0;
                                v3_0 = v12_4;
                                v21_0 = v13_1;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v6_0 = v3_0;
                            }
                        } else {
                            if (v3_0 == null) {
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v6_0 = v3_0;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v6_0 = v3_0;
                    v12_4 = 0;
                }
                v3_0.close();
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v6_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
                v3_2 = v0_7;
                v6_0 = 0;
                v12_4 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
            } catch (android.database.sqlite.SQLiteException v0_3) {
            }
        } catch (android.database.sqlite.SQLiteException v0_3) {
        }
    }

Method com.google.android.gms.internal.measurement.zzjt.zzd() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final boolean zzd(String p40, long p41)
    {
        String v1_0 = this;
        this.zzjh().beginTransaction();
        try {
            android.database.sqlite.SQLiteException v3_0 = 0;
            com.google.android.gms.internal.measurement.zzfk v2_3 = new com.google.android.gms.internal.measurement.zzjt$zza(this, 0);
            String v4_58 = this.zzjh();
            com.google.android.gms.internal.measurement.zzfk v5_90 = this.zzasl;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_3);
            v4_58.zzab();
            v4_58.zzch();
            try {
                long v21_0;
                int v22;
                Long v15_15 = v4_58.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        String v12_29;
                        android.database.sqlite.SQLiteException v3_1 = v5_90 cmp -1;
                        if (v3_1 == null) {
                            v12_29 = new String[] {0});
                        } else {
                            v12_29 = new String[2];
                            v12_29[0] = 0;
                            v12_29[1] = String.valueOf(v5_90);
                        }
                        android.database.sqlite.SQLiteException v3_8;
                        if (v3_1 == null) {
                            v3_8 = "";
                        } else {
                            v3_8 = " and rowid <= ?";
                        }
                        long v14_12 = new StringBuilder((String.valueOf(v3_8).length() + 84));
                        v14_12.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_12.append(v3_8);
                        v14_12.append(" order by rowid limit 1;");
                        v3_0 = v15_15.rawQuery(v14_12.toString(), v12_29);
                        if (v3_0.moveToFirst()) {
                            Boolean v13_16 = v3_0.getString(0);
                            v3_0.close();
                            v22 = v3_0;
                            v21_0 = v13_16;
                            v3_0 = 0;
                            try {
                                String v12_9 = new String[2];
                                v12_9[0] = v3_0;
                                v12_9[1] = v21_0;
                                long v24_1 = v15_15;
                                Long v15_14 = v15_15.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_9, 0, 0, "rowid", "2");
                                try {
                                    if (v15_14.moveToFirst()) {
                                        String v12_13 = v15_14.getBlob(0);
                                        String v12_14 = com.google.android.gms.internal.measurement.zzaca.zza(v12_13, 0, v12_13.length);
                                        Boolean v13_5 = new com.google.android.gms.internal.measurement.zzku();
                                        try {
                                            v13_5.zzb(v12_14);
                                        } catch (android.database.sqlite.SQLiteException v0_4) {
                                            int v6_0 = v15_14;
                                            v4_58.zzgi().zziv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0), v0_4);
                                            if (v6_0 == 0) {
                                                android.database.sqlite.SQLiteException v3_6;
                                                if (v2_3.zzasr == null) {
                                                    v3_6 = 1;
                                                } else {
                                                    if (!v2_3.zzasr.isEmpty()) {
                                                        v3_6 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_6 != null) {
                                                    this.zzjh().setTransactionSuccessful();
                                                    this.zzjh().endTransaction();
                                                    return 0;
                                                } else {
                                                    android.database.sqlite.SQLiteException v3_7 = v2_3.zzasp;
                                                    String v4_4 = new com.google.android.gms.internal.measurement.zzkr[v2_3.zzasr.size()];
                                                    v3_7.zzavi = v4_4;
                                                    String v4_7 = this.zzacv.zzgk().zzaw(v3_7.zzth);
                                                    com.google.android.gms.internal.measurement.zzet v7_30 = 0;
                                                    com.google.android.gms.internal.measurement.zzet v8_1 = 0;
                                                    String v9_1 = 0;
                                                    String v12_10 = 0;
                                                    while (v7_30 < v2_3.zzasr.size()) {
                                                        Long v15_1;
                                                        long v14_4 = ((com.google.android.gms.internal.measurement.zzkr) v2_3.zzasr.get(v7_30));
                                                        if (!this.zzky().zzn(v2_3.zzasp.zzth, v14_4.name)) {
                                                            String v20_2;
                                                            com.google.android.gms.internal.measurement.zzfk v5_3 = this.zzky().zzo(v2_3.zzasp.zzth, v14_4.name);
                                                            if (v5_3 != null) {
                                                                if (v14_4.zzava == null) {
                                                                    boolean v10_8 = new com.google.android.gms.internal.measurement.zzks[0];
                                                                    v14_4.zzava = v10_8;
                                                                }
                                                                int v6_13 = v14_4.zzava;
                                                                boolean v10_9 = v6_13.length;
                                                                String v11_2 = 0;
                                                                Long v19_2 = 0;
                                                                String v20_1 = 0;
                                                                while (v11_2 < v10_9) {
                                                                    Long v15_10 = v6_13[v11_2];
                                                                    boolean v16_4 = v6_13;
                                                                    long v24_2 = v10_9;
                                                                    if (!"_c".equals(v15_10.name)) {
                                                                        if ("_r".equals(v15_10.name)) {
                                                                            v15_10.zzave = Long.valueOf(1);
                                                                            v20_1 = 1;
                                                                        }
                                                                    } else {
                                                                        v15_10.zzave = Long.valueOf(1);
                                                                        v19_2 = 1;
                                                                    }
                                                                    v11_2++;
                                                                    v6_13 = v16_4;
                                                                    v10_9 = v24_2;
                                                                }
                                                                if ((v19_2 == null) && (v5_3 != null)) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as conversion", this.zzacv.zzgf().zzbm(v14_4.name));
                                                                    int v6_19 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v14_4.zzava, (v14_4.zzava.length + 1)));
                                                                    boolean v10_15 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v10_15.name = "_c";
                                                                    v10_15.zzave = Long.valueOf(1);
                                                                    v6_19[(v6_19.length - 1)] = v10_15;
                                                                    v14_4.zzava = v6_19;
                                                                }
                                                                if (v20_1 == null) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as real-time", this.zzacv.zzgf().zzbm(v14_4.name));
                                                                    int v6_25 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v14_4.zzava, (v14_4.zzava.length + 1)));
                                                                    boolean v10_21 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v10_21.name = "_r";
                                                                    v10_21.zzave = Long.valueOf(1);
                                                                    v6_25[(v6_25.length - 1)] = v10_21;
                                                                    v14_4.zzava = v6_25;
                                                                }
                                                                v15_1 = v7_30;
                                                                if (this.zzjh().zza(this.zzld(), v2_3.zzasp.zzth, 0, 0, 0, 0, 1).zzagx <= ((long) this.zzacv.zzgk().zzas(v2_3.zzasp.zzth))) {
                                                                    v9_1 = 1;
                                                                } else {
                                                                    int v6_33 = 0;
                                                                    while (v6_33 < v14_4.zzava.length) {
                                                                        if (!"_r".equals(v14_4.zzava[v6_33].name)) {
                                                                            v6_33++;
                                                                        } else {
                                                                            com.google.android.gms.internal.measurement.zzet v7_11 = new com.google.android.gms.internal.measurement.zzks[(v14_4.zzava.length - 1)];
                                                                            if (v6_33 > 0) {
                                                                                System.arraycopy(v14_4.zzava, 0, v7_11, 0, v6_33);
                                                                            }
                                                                            if (v6_33 >= v7_11.length) {
                                                                                boolean v16_1 = v9_1;
                                                                            } else {
                                                                                v16_1 = v9_1;
                                                                                System.arraycopy(v14_4.zzava, (v6_33 + 1), v7_11, v6_33, (v7_11.length - v6_33));
                                                                            }
                                                                            v14_4.zzava = v7_11;
                                                                        }
                                                                        v9_1 = v16_1;
                                                                    }
                                                                    v16_1 = v9_1;
                                                                }
                                                                if ((!com.google.android.gms.internal.measurement.zzkd.zzcg(v14_4.name)) || ((v5_3 == null) || (this.zzjh().zza(this.zzld(), v2_3.zzasp.zzth, 0, 0, 1, 0, 0).zzagv <= ((long) this.zzacv.zzgk().zzb(v2_3.zzasp.zzth, com.google.android.gms.internal.measurement.zzez.zzair))))) {
                                                                    v20_2 = v9_1;
                                                                } else {
                                                                    this.zzacv.zzgi().zziy().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                                    com.google.android.gms.internal.measurement.zzfk v5_11 = v14_4.zzava;
                                                                    int v6_37 = v5_11.length;
                                                                    com.google.android.gms.internal.measurement.zzet v7_19 = 0;
                                                                    boolean v10_33 = 0;
                                                                    String v11_22 = 0;
                                                                    while (v7_19 < v6_37) {
                                                                        int v6_44 = v5_11[v7_19];
                                                                        if (!"_c".equals(v6_44.name)) {
                                                                            if ("_err".equals(v6_44.name)) {
                                                                                v10_33 = 1;
                                                                            }
                                                                        } else {
                                                                            v11_22 = v6_44;
                                                                        }
                                                                        v7_19++;
                                                                    }
                                                                    v20_2 = v9_1;
                                                                    if ((!v10_33) || (v11_22 == null)) {
                                                                        if (v11_22 == null) {
                                                                            this.zzacv.zzgi().zziv().zzg("Did not find conversion parameter. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                                        } else {
                                                                            v11_22.name = "_err";
                                                                            v11_22.zzave = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.measurement.zzfk v5_18 = v14_4.zzava;
                                                                        com.google.android.gms.internal.measurement.zzet v7_24 = new com.google.android.gms.internal.measurement.zzks[1];
                                                                        v7_24[0] = v11_22;
                                                                        v14_4.zzava = ((com.google.android.gms.internal.measurement.zzks[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v5_18, v7_24));
                                                                    }
                                                                }
                                                            } else {
                                                                Long v19_1;
                                                                this.zzjf();
                                                                int v6_6 = v14_4.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v6_6);
                                                                String v11_1 = v6_6.hashCode();
                                                                if (v11_1 == 94660) {
                                                                    if (!v6_6.equals("_in")) {
                                                                        v19_1 = -1;
                                                                    } else {
                                                                        v19_1 = 0;
                                                                    }
                                                                } else {
                                                                    if (v11_1 == 95025) {
                                                                        if (!v6_6.equals("_ug")) {
                                                                        } else {
                                                                            v19_1 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v11_1 == 95027) {
                                                                            if (!v6_6.equals("_ui")) {
                                                                            } else {
                                                                                v19_1 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v6_10;
                                                                switch (v19_1) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v6_10 = 1;
                                                                    default:
                                                                        v6_10 = 0;
                                                                }
                                                                if (v6_10 == 0) {
                                                                    v15_1 = v7_30;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v4_7 != null) && ("_e".equals(v14_4.name))) {
                                                                com.google.android.gms.internal.measurement.zzfk v5_32;
                                                                com.google.android.gms.internal.measurement.zzet v7_27;
                                                                int v6_42;
                                                                if (v14_4.zzava == null) {
                                                                    v5_32 = this.zzacv.zzgi().zziy();
                                                                    v6_42 = "Engagement event does not contain any parameters. appId";
                                                                    v7_27 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth);
                                                                } else {
                                                                    if (v14_4.zzava.length != 0) {
                                                                        this.zzjf();
                                                                        com.google.android.gms.internal.measurement.zzfk v5_28 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v14_4, "_et"));
                                                                        if (v5_28 != null) {
                                                                            v12_10 += v5_28.longValue();
                                                                            int v6_43 = (v8_1 + 1);
                                                                            v3_7.zzavi[v8_1] = v14_4;
                                                                            v8_1 = v6_43;
                                                                            v9_1 = v20_2;
                                                                            v7_30 = (v15_1 + 1);
                                                                            String v11 = 1;
                                                                        } else {
                                                                            v5_32 = this.zzacv.zzgi().zziy();
                                                                            v6_42 = "Engagement event does not include duration. appId";
                                                                            v7_27 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth);
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                v5_32.zzg(v6_42, v7_27);
                                                            }
                                                        } else {
                                                            com.google.android.gms.internal.measurement.zzfk v5_47;
                                                            this.zzacv.zzgi().zziy().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth), this.zzacv.zzgf().zzbm(v14_4.name));
                                                            if (this.zzky().zzcb(v2_3.zzasp.zzth)) {
                                                                v5_47 = 1;
                                                            } else {
                                                                if (!this.zzky().zzcc(v2_3.zzasp.zzth)) {
                                                                    v5_47 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_47 == null) && (!"_err".equals(v14_4.name))) {
                                                                this.zzacv.zzgg().zza(v2_3.zzasp.zzth, 11, "_ev", v14_4.name, 0);
                                                            }
                                                            v15_1 = v7_30;
                                                        }
                                                    }
                                                    boolean v16_7 = v9_1;
                                                    if (v8_1 < v2_3.zzasr.size()) {
                                                        v3_7.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v3_7.zzavi, v8_1));
                                                    }
                                                    if (v4_7 != null) {
                                                        String v4_12;
                                                        String v4_9 = this.zzjh().zzh(v3_7.zzth, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.internal.measurement.zzkc;
                                                            v4_12(v3_7.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf(v12_10));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                com.google.android.gms.internal.measurement.zzfk v5_68 = new com.google.android.gms.internal.measurement.zzkc;
                                                                v5_68(v3_7.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v12_10)));
                                                                v4_12 = v5_68;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v5_71 = new com.google.android.gms.internal.measurement.zzkx();
                                                        v5_71.name = "_lte";
                                                        v5_71.zzaws = Long.valueOf(this.zzacv.zzbt().currentTimeMillis());
                                                        v5_71.zzave = ((Long) v4_12.value);
                                                        int v6_81 = 0;
                                                        while (v6_81 < v3_7.zzavj.length) {
                                                            if (!"_lte".equals(v3_7.zzavj[v6_81].name)) {
                                                                v6_81++;
                                                            } else {
                                                                v3_7.zzavj[v6_81] = v5_71;
                                                                int v6_82 = 1;
                                                            }
                                                            if (v6_82 == 0) {
                                                                v3_7.zzavj = ((com.google.android.gms.internal.measurement.zzkx[]) java.util.Arrays.copyOf(v3_7.zzavj, (v3_7.zzavj.length + 1)));
                                                                v3_7.zzavj[(v2_3.zzasp.zzavj.length - 1)] = v5_71;
                                                            }
                                                            if (v12_10 > 0) {
                                                                this.zzjh().zza(v4_12);
                                                                this.zzacv.zzgi().zzjb().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_82 = 0;
                                                    }
                                                    v3_7.zzawa = this.zza(v3_7.zzth, v3_7.zzavj, v3_7.zzavi);
                                                    try {
                                                        if (this.zzacv.zzgk().zzav(v2_3.zzasp.zzth)) {
                                                            String v4_20 = new java.util.HashMap();
                                                            com.google.android.gms.internal.measurement.zzfk v5_82 = new com.google.android.gms.internal.measurement.zzkr[v3_7.zzavi.length];
                                                            int v6_1 = this.zzacv.zzgg().zzlo();
                                                            com.google.android.gms.internal.measurement.zzet v7_3 = v3_7.zzavi;
                                                            com.google.android.gms.internal.measurement.zzet v8_0 = v7_3.length;
                                                            String v9_0 = 0;
                                                            boolean v10_0 = 0;
                                                            while (v9_0 < v8_0) {
                                                                String v20_0;
                                                                Long v19_0;
                                                                long v24_0;
                                                                String v11_27 = v7_3[v9_0];
                                                                if (!v11_27.name.equals("_ep")) {
                                                                    v19_0 = v7_3;
                                                                    com.google.android.gms.internal.measurement.zzet v7_84;
                                                                    long v14_16 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v14_16 != 0)) {
                                                                        String v12_38 = v11_27.zzava;
                                                                        Boolean v13_19 = v12_38.length;
                                                                        Long v15_17 = 0;
                                                                        while (v15_17 < v13_19) {
                                                                            v20_0 = v8_0;
                                                                            com.google.android.gms.internal.measurement.zzet v8_20 = v12_38[v15_17];
                                                                            if (!"_dbg".equals(v8_20.name)) {
                                                                                v15_17++;
                                                                                v8_0 = v20_0;
                                                                            } else {
                                                                                if (((!(v14_16 instanceof Long)) || (!v14_16.equals(v8_20.zzave))) && (((!(v14_16 instanceof String)) || (!v14_16.equals(v8_20.zzale))) && ((!(v14_16 instanceof Double)) || (!v14_16.equals(v8_20.zzasw))))) {
                                                                                    v7_84 = 0;
                                                                                } else {
                                                                                    v7_84 = 1;
                                                                                }
                                                                            }
                                                                        }
                                                                        v20_0 = v8_0;
                                                                    }
                                                                    com.google.android.gms.internal.measurement.zzet v7_85;
                                                                    if (v7_84 != null) {
                                                                        v7_85 = 1;
                                                                    } else {
                                                                        v7_85 = this.zzky().zzp(v2_3.zzasp.zzth, v11_27.name);
                                                                    }
                                                                    com.google.android.gms.internal.measurement.zzet v7_96;
                                                                    if (v7_85 > null) {
                                                                        com.google.android.gms.internal.measurement.zzet v8_25 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v11_27.name));
                                                                        if (v8_25 == null) {
                                                                            v8_25 = this.zzjh().zzf(v2_3.zzasp.zzth, v11_27.name);
                                                                            if (v8_25 == null) {
                                                                                v1_0.zzacv.zzgi().zziy().zze("Event being bundled has no eventAggregate. appId, eventName", v2_3.zzasp.zzth, v11_27.name);
                                                                                v8_25 = new com.google.android.gms.internal.measurement.zzet;
                                                                                v8_25(v2_3.zzasp.zzth, v11_27.name, 1, 1, v11_27.zzavb.longValue(), 0, 0, 0, 0);
                                                                            }
                                                                        }
                                                                        Boolean v13_24;
                                                                        this.zzjf();
                                                                        String v12_50 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v11_27, "_eid"));
                                                                        if (v12_50 == null) {
                                                                            v13_24 = 0;
                                                                        } else {
                                                                            v13_24 = 1;
                                                                        }
                                                                        Boolean v13_25 = Boolean.valueOf(v13_24);
                                                                        if (v7_85 != 1) {
                                                                            if (v6_1.nextInt(v7_85) != 0) {
                                                                                v24_0 = v6_1;
                                                                                if (Math.abs((v11_27.zzavb.longValue() - v8_25.zzahk)) < 86400000) {
                                                                                    if (!v13_25.booleanValue()) {
                                                                                        v9_0++;
                                                                                        v7_3 = v19_0;
                                                                                        v8_0 = v20_0;
                                                                                        v6_1 = v24_0;
                                                                                        v1_0 = this;
                                                                                    } else {
                                                                                        v4_20.put(v11_27.name, v8_25.zza(v12_50, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzjf();
                                                                                    v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_efs", Long.valueOf(1));
                                                                                    this.zzjf();
                                                                                    long v14_27 = ((long) v7_85);
                                                                                    v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_sr", Long.valueOf(v14_27));
                                                                                    String v1_27 = (v10_0 + 1);
                                                                                    v5_82[v10_0] = v11_27;
                                                                                    if (v13_25.booleanValue()) {
                                                                                        v8_25 = v8_25.zza(0, Long.valueOf(v14_27), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_20.put(v11_27.name, v8_25.zzai(v11_27.zzavb.longValue()));
                                                                                    v10_0 = v1_27;
                                                                                }
                                                                            } else {
                                                                                this.zzjf();
                                                                                int v6_125 = ((long) v7_85);
                                                                                v24_0 = v6_1;
                                                                                v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_sr", Long.valueOf(v6_125));
                                                                                String v12_55 = (v10_0 + 1);
                                                                                v5_82[v10_0] = v11_27;
                                                                                if (v13_25.booleanValue()) {
                                                                                    v8_25 = v8_25.zza(0, Long.valueOf(v6_125), 0);
                                                                                }
                                                                                v4_20.put(v11_27.name, v8_25.zzai(v11_27.zzavb.longValue()));
                                                                                v10_0 = v12_55;
                                                                            }
                                                                        } else {
                                                                            v7_96 = (v10_0 + 1);
                                                                            v5_82[v10_0] = v11_27;
                                                                            if ((v13_25.booleanValue()) && ((v8_25.zzahl != null) || ((v8_25.zzahm != null) || (v8_25.zzahn != null)))) {
                                                                                v4_20.put(v11_27.name, v8_25.zza(0, 0, 0));
                                                                            }
                                                                        }
                                                                    } else {
                                                                        v1_0.zzacv.zzgi().zziy().zze("Sample rate must be positive. event, rate", v11_27.name, Integer.valueOf(v7_85));
                                                                        v7_96 = (v10_0 + 1);
                                                                        v5_82[v10_0] = v11_27;
                                                                    }
                                                                    v24_0 = v6_1;
                                                                    v10_0 = v7_96;
                                                                } else {
                                                                    this.zzjf();
                                                                    String v12_59 = ((String) com.google.android.gms.internal.measurement.zzjz.zzb(v11_27, "_en"));
                                                                    Boolean v13_28 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v12_59));
                                                                    if (v13_28 == null) {
                                                                        v13_28 = this.zzjh().zzf(v2_3.zzasp.zzth, v12_59);
                                                                        v4_20.put(v12_59, v13_28);
                                                                    }
                                                                    if (v13_28.zzahl != null) {
                                                                        v19_0 = v7_3;
                                                                        v24_0 = v6_1;
                                                                    } else {
                                                                        if (v13_28.zzahm.longValue() > 1) {
                                                                            this.zzjf();
                                                                            v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_sr", v13_28.zzahm);
                                                                        }
                                                                        if ((v13_28.zzahn == null) || (!v13_28.zzahn.booleanValue())) {
                                                                            v19_0 = v7_3;
                                                                        } else {
                                                                            this.zzjf();
                                                                            v19_0 = v7_3;
                                                                            v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_efs", Long.valueOf(1));
                                                                        }
                                                                        com.google.android.gms.internal.measurement.zzet v7_2 = (v10_0 + 1);
                                                                        v5_82[v10_0] = v11_27;
                                                                        v24_0 = v6_1;
                                                                        v10_0 = v7_2;
                                                                    }
                                                                    v20_0 = v8_0;
                                                                }
                                                            }
                                                            if (v10_0 < v3_7.zzavi.length) {
                                                                v3_7.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v5_82, v10_0));
                                                            }
                                                            String v1_11 = v4_20.entrySet().iterator();
                                                            while (v1_11.hasNext()) {
                                                                this.zzjh().zza(((com.google.android.gms.internal.measurement.zzet) ((java.util.Map$Entry) v1_11.next()).getValue()));
                                                            }
                                                        }
                                                        try {
                                                            v3_7.zzavl = Long.valueOf(nan);
                                                            v3_7.zzavm = Long.valueOf(-0.0);
                                                            String v1_14 = 0;
                                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                                            String v1_1 = v0_3;
                                                            this.zzjh().endTransaction();
                                                            throw v1_1;
                                                        }
                                                        while (v1_14 < v3_7.zzavi.length) {
                                                            String v4_52 = v3_7.zzavi[v1_14];
                                                            if (v4_52.zzavb.longValue() < v3_7.zzavl.longValue()) {
                                                                v3_7.zzavl = v4_52.zzavb;
                                                            }
                                                            if (v4_52.zzavb.longValue() > v3_7.zzavm.longValue()) {
                                                                v3_7.zzavm = v4_52.zzavb;
                                                            }
                                                            v1_14++;
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v5_83;
                                                        String v1_16 = v2_3.zzasp.zzth;
                                                        String v4_27 = this.zzjh().zzbf(v1_16);
                                                        if (v4_27 != null) {
                                                            v5_83 = this;
                                                            if (v3_7.zzavi.length > 0) {
                                                                com.google.android.gms.internal.measurement.zzet v8_16;
                                                                int v6_93 = v4_27.zzgt();
                                                                if (v6_93 == 0) {
                                                                    v8_16 = 0;
                                                                } else {
                                                                    v8_16 = Long.valueOf(v6_93);
                                                                }
                                                                v3_7.zzavo = v8_16;
                                                                com.google.android.gms.internal.measurement.zzet v8_17 = v4_27.zzgs();
                                                                if (v8_17 != 0) {
                                                                    v6_93 = v8_17;
                                                                } else {
                                                                }
                                                                int v6_94;
                                                                if (v6_93 == 0) {
                                                                    v6_94 = 0;
                                                                } else {
                                                                    v6_94 = Long.valueOf(v6_93);
                                                                }
                                                                v3_7.zzavn = v6_94;
                                                                v4_27.zzhb();
                                                                v3_7.zzavy = Integer.valueOf(((int) v4_27.zzgy()));
                                                                v4_27.zzr(v3_7.zzavl.longValue());
                                                                v4_27.zzs(v3_7.zzavm.longValue());
                                                                v3_7.zzafy = v4_27.zzhj();
                                                                this.zzjh().zza(v4_27);
                                                            }
                                                        } else {
                                                            v5_83 = this;
                                                            this.zzacv.zzgi().zziv().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                        }
                                                        if (v3_7.zzavi.length > 0) {
                                                            String v4_36;
                                                            v5_83.zzacv.zzgl();
                                                            String v4_35 = this.zzky().zzbx(v2_3.zzasp.zzth);
                                                            if (v4_35 == null) {
                                                                if (!android.text.TextUtils.isEmpty(v2_3.zzasp.zzafa)) {
                                                                    v5_83.zzacv.zzgi().zziy().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                                } else {
                                                                    v4_36 = Long.valueOf(-1);
                                                                    v3_7.zzawf = v4_36;
                                                                }
                                                            } else {
                                                                if (v4_35.zzaum != null) {
                                                                    v4_36 = v4_35.zzaum;
                                                                } else {
                                                                }
                                                            }
                                                            this.zzjh().zza(v3_7, v16_7);
                                                        }
                                                        android.database.sqlite.SQLiteException v3_11 = this.zzjh();
                                                        com.google.android.gms.internal.measurement.zzfk v2_4 = v2_3.zzasq;
                                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_4);
                                                        v3_11.zzab();
                                                        v3_11.zzch();
                                                        String v4_45 = new StringBuilder("rowid in (");
                                                        int v6_110 = 0;
                                                        while (v6_110 < v2_4.size()) {
                                                            if (v6_110 != 0) {
                                                                v4_45.append(",");
                                                            }
                                                            v4_45.append(((Long) v2_4.get(v6_110)).longValue());
                                                            v6_110++;
                                                        }
                                                        v4_45.append(")");
                                                        String v4_47 = v3_11.getWritableDatabase().delete("raw_events", v4_45.toString(), 0);
                                                        if (v4_47 != v2_4.size()) {
                                                            v3_11.zzgi().zziv().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v4_47), Integer.valueOf(v2_4.size()));
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v2_7 = this.zzjh();
                                                        android.database.sqlite.SQLiteException v3_14 = v2_7.getWritableDatabase();
                                                        try {
                                                            int v6_116 = new String[2];
                                                            v6_116[0] = v1_16;
                                                            v6_116[1] = v1_16;
                                                            v3_14.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v6_116);
                                                        } catch (android.database.sqlite.SQLiteException v0_6) {
                                                            v2_7.zzgi().zziv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v1_16), v0_6);
                                                        }
                                                        this.zzjh().setTransactionSuccessful();
                                                        this.zzjh().endTransaction();
                                                        return 1;
                                                    } catch (android.database.sqlite.SQLiteException v0_1) {
                                                        v1_1 = v0_1;
                                                    }
                                                }
                                            } else {
                                                v6_0.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                        }
                                        if (v15_14.moveToNext()) {
                                            v4_58.zzgi().zziy().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                        }
                                        boolean v16_6;
                                        com.google.android.gms.internal.measurement.zzfk v5_54;
                                        v15_14.close();
                                        v2_3.zzb(v13_5);
                                        if (v5_90 == -1) {
                                            v5_54 = "app_id = ? and metadata_fingerprint = ?";
                                            String v12_19 = new String[2];
                                            v12_19[0] = v3_0;
                                            v12_19[1] = v21_0;
                                            v16_6 = v12_19;
                                        } else {
                                            Boolean v13_6 = new String[3];
                                            v13_6[0] = v3_0;
                                            v13_6[1] = v21_0;
                                            v13_6[2] = String.valueOf(v5_90);
                                            v5_54 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_6 = v13_6;
                                        }
                                        v6_0 = v15_14;
                                        com.google.android.gms.internal.measurement.zzfk v5_56 = v24_1.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_54, v16_6, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_56.moveToFirst()) {
                                                do {
                                                    int v6_63 = v5_56.getLong(0);
                                                    com.google.android.gms.internal.measurement.zzet v8_3 = v5_56.getBlob(3);
                                                    com.google.android.gms.internal.measurement.zzet v8_4 = com.google.android.gms.internal.measurement.zzaca.zza(v8_3, 0, v8_3.length);
                                                    String v12_26 = new com.google.android.gms.internal.measurement.zzkr();
                                                    v12_26.zzb(v8_4);
                                                    v12_26.name = v5_56.getString(1);
                                                    v12_26.zzavb = Long.valueOf(v5_56.getLong(2));
                                                    if (v2_3.zza(v6_63, v12_26)) {
                                                    } else {
                                                        if (v5_56 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_56.moveToNext());
                                                if (v5_56 == null) {
                                                }
                                            } else {
                                                v4_58.zzgi().zziy().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                                if (v5_56 == null) {
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v6_0 = v5_56;
                                            String v1_2 = v0_0;
                                            if (v6_0 != 0) {
                                                v6_0.close();
                                            }
                                            throw v1_2;
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            String v12_4 = v3_0;
                                            v6_0 = v5_56;
                                            android.database.sqlite.SQLiteException v3_2 = v0_2;
                                            v4_58.zzgi().zziv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_4), v3_2);
                                            if (v6_0 == 0) {
                                            }
                                        }
                                        v5_56.close();
                                    } else {
                                        v4_58.zzgi().zziv().zzg("Raw event metadata record is missing. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                        if (v15_14 == null) {
                                        } else {
                                            v15_14.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_14;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v6_0 = v15_14;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_14;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v12_4 = v3_0;
                                    v6_0 = v15_14;
                                }
                                v12_4 = v3_0;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v6_0 = v22;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v12_4 = v3_0;
                                v6_0 = v22;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                            }
                        }
                    } else {
                        Boolean v13_17;
                        String v12_33 = v5_90 cmp -1;
                        try {
                            if (v12_33 == null) {
                                v13_17 = new String[1];
                                v13_17[0] = String.valueOf(p41);
                            } else {
                                v13_17 = new String[2];
                                v13_17[0] = String.valueOf(v5_90);
                                v13_17[1] = String.valueOf(p41);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                            v6_0 = 0;
                            v12_4 = 0;
                        }
                        String v12_41;
                        if (v12_33 == null) {
                            v12_41 = "";
                        } else {
                            v12_41 = "rowid <= ? and ";
                        }
                        android.database.sqlite.SQLiteException v3_17 = new StringBuilder((String.valueOf(v12_41).length() + 148));
                        v3_17.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_17.append(v12_41);
                        v3_17.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_15.rawQuery(v3_17.toString(), v13_17);
                        if (v3_0.moveToFirst()) {
                            v12_4 = v3_0.getString(0);
                            try {
                                Boolean v13_1 = v3_0.getString(1);
                                v3_0.close();
                                v22 = v3_0;
                                v3_0 = v12_4;
                                v21_0 = v13_1;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v6_0 = v3_0;
                            }
                        } else {
                            if (v3_0 == null) {
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v6_0 = v3_0;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v6_0 = v3_0;
                    v12_4 = 0;
                }
                v3_0.close();
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v6_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
                v3_2 = v0_7;
                v6_0 = 0;
                v12_4 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
            } catch (android.database.sqlite.SQLiteException v0_3) {
            }
        } catch (android.database.sqlite.SQLiteException v0_3) {
        }
    }

Method com.google.android.gms.internal.firebase_database.zzu.zzk() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final long zzk()
    {
        IllegalStateException v1_3 = new Object[3];
        v1_3[0] = "value";
        v1_3[1] = "path";
        v1_3[2] = "serverCache";
        android.database.Cursor v0_2 = this.zzbr.rawQuery(String.format("SELECT sum(length(%s) + length(%s)) FROM %s", v1_3), 0);
        try {
            if (!v0_2.moveToFirst()) {
                throw new IllegalStateException("Couldn\'t read database result!");
            } else {
                IllegalStateException v1_7 = v0_2.getLong(0);
                v0_2.close();
                return v1_7;
            }
        } catch (IllegalStateException v1_6) {
            v0_2.close();
            throw v1_6;
        }
    }

Method com.google.android.gms.internal.firebase_database.zzu.zza() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private static android.database.sqlite.SQLiteDatabase zza(android.content.Context p1, String p2)
    {
        try {
            android.database.sqlite.SQLiteException v1_2 = new com.google.android.gms.internal.firebase_database.zzx(p1, p2).getWritableDatabase();
            v1_2.rawQuery("PRAGMA locking_mode = EXCLUSIVE", 0).close();
            v1_2.beginTransaction();
            v1_2.endTransaction();
            return v1_2;
        } catch (android.database.sqlite.SQLiteException v1_1) {
            if (!(v1_1 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                throw v1_1;
            } else {
                throw new com.google.firebase.database.DatabaseException("Failed to gain exclusive lock to Firebase Database\'s offline persistence. This generally means you are using Firebase Database from multiple processes in your app. Keep in mind that multi-process Android apps execute the code in your Application class in all processes, so you may need to avoid initializing FirebaseDatabase in your Application class. If you are intentionally using Firebase Database from multiple processes, you can only enable offline persistence (i.e. call setPersistenceEnabled(true)) in one of them.", v1_1);
            }
        }
    }

Method com.google.android.gms.internal.measurement.zzff.onOpen() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final void onOpen(android.database.sqlite.SQLiteDatabase p8)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            try {
                android.database.Cursor v0_3 = p8.rawQuery("PRAGMA journal_mode=memory", 0);
                v0_3.moveToFirst();
            } catch (Throwable v8_1) {
                if (v0_3 != null) {
                    v0_3.close();
                }
                throw v8_1;
            }
            if (v0_3 != null) {
                v0_3.close();
            }
        }
        com.google.android.gms.internal.measurement.zzeo.zza(this.zzakh.zzgi(), p8, "messages", "create table if not exists messages ( type INTEGER NOT NULL, entry BLOB NOT NULL)", "type,entry", 0);
        return;
    }

Method com.google.android.gms.internal.measurement.zzeo.zzb() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private static java.util.Set zzb(android.database.sqlite.SQLiteDatabase p3, String p4)
    {
        java.util.HashSet v0_1 = new java.util.HashSet();
        StringBuilder v2_1 = new StringBuilder((String.valueOf(p4).length() + 22));
        v2_1.append("SELECT * FROM ");
        v2_1.append(p4);
        v2_1.append(" LIMIT 0");
        android.database.Cursor v3_1 = p3.rawQuery(v2_1.toString(), 0);
        try {
            java.util.Collections.addAll(v0_1, v3_1.getColumnNames());
            v3_1.close();
            return v0_1;
        } catch (Throwable v4_4) {
            v3_1.close();
            throw v4_4;
        }
    }

Method io.fabric.sdk.android.FabricContext.openOrCreateDatabase() calling method android.database.sqlite.SQLiteDatabase.openOrCreateDatabase()


    public android.database.sqlite.SQLiteDatabase openOrCreateDatabase(String p1, int p2, android.database.sqlite.SQLiteDatabase$CursorFactory p3, android.database.DatabaseErrorHandler p4)
    {
        return android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(this.getDatabasePath(p1).getPath(), p3, p4);
    }

Method io.fabric.sdk.android.FabricContext.openOrCreateDatabase() calling method android.database.sqlite.SQLiteDatabase.openOrCreateDatabase()


    public android.database.sqlite.SQLiteDatabase openOrCreateDatabase(String p1, int p2, android.database.sqlite.SQLiteDatabase$CursorFactory p3)
    {
        return android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(this.getDatabasePath(p1), p3);
    }

Method com.google.android.gms.internal.measurement.zzfe.zza() calling method android.database.sqlite.SQLiteDatabase.insertOrThrow()


    private final boolean zza(int p17, byte[] p18)
    {
        this.zzfv();
        this.zzab();
        Long v2_5 = 0;
        if (!this.zzakg) {
            android.content.ContentValues v3_1 = new android.content.ContentValues();
            v3_1.put("type", Integer.valueOf(p17));
            v3_1.put("entry", p18);
            Long v4_4 = 5;
            int v5 = 0;
            int v6 = 5;
            while (v5 < v4_4) {
                int v7 = 0;
                try {
                    int v9 = this.getWritableDatabase();
                    try {
                        if (v9 != 0) {
                            v9.beginTransaction();
                            Long v10_1 = 0;
                            int v12 = v9.rawQuery("select count(1) from messages", 0);
                            try {
                                if ((v12 != 0) && (v12.moveToFirst())) {
                                    v10_1 = v12.getLong(v2_5);
                                }
                                if (v10_1 >= 100000) {
                                    this.zzgi().zziv().log("Data loss, local db full");
                                    long v13_2 = ((100000 - v10_1) + 1);
                                    String[] v11 = new String[1];
                                    v11[v2_5] = Long.toString(v13_2);
                                    Long v10_4 = ((long) v9.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v11));
                                    if (v10_4 != v13_2) {
                                        this.zzgi().zziv().zzd("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v13_2), Long.valueOf(v10_4), Long.valueOf((v13_2 - v10_4)));
                                    }
                                }
                                v9.insertOrThrow("messages", 0, v3_1);
                                v9.setTransactionSuccessful();
                                v9.endTransaction();
                                if (v12 != 0) {
                                    v12.close();
                                }
                                if (v9 != 0) {
                                    v9.close();
                                }
                                return 1;
                            } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                                v7 = v12;
                                android.os.SystemClock.sleep(((long) v6));
                                v6 += 20;
                                if (v7 != 0) {
                                    v7.close();
                                }
                                if (v9 == 0) {
                                    v5++;
                                    v2_5 = 0;
                                    v4_4 = 5;
                                } else {
                                    v9.close();
                                }
                            }
                        } else {
                            this.zzakg = 1;
                            if (v9 != 0) {
                                v9.close();
                            }
                            return v2_5;
                        }
                        v7 = v9;
                        if (v7 != 0) {
                            try {
                                if (v7.inTransaction()) {
                                    v7.endTransaction();
                                }
                            } catch (com.google.android.gms.internal.measurement.zzfk v0_1) {
                                v9 = v7;
                                if (v12 != 0) {
                                    v12.close();
                                }
                                if (v9 != 0) {
                                    v9.close();
                                }
                                throw v0_1;
                            }
                        }
                        this.zzgi().zziv().zzg("Error writing entry to local database", com.google.android.gms.internal.measurement.zzfk v0_0);
                        this.zzakg = 1;
                        if (v12 != 0) {
                            v12.close();
                        }
                        if (v7 == 0) {
                        } else {
                            v7.close();
                        }
                    } catch (com.google.android.gms.internal.measurement.zzfk v0_3) {
                        this.zzgi().zziv().zzg("Error writing entry to local database", v0_3);
                        this.zzakg = 1;
                        if (v7 != 0) {
                            v7.close();
                        }
                        if (v9 == 0) {
                        }
                    } catch (com.google.android.gms.internal.measurement.zzfk v0_0) {
                        v12 = 0;
                    }
                } catch (com.google.android.gms.internal.measurement.zzfk v0_1) {
                    v9 = 0;
                    v12 = 0;
                } catch (com.google.android.gms.internal.measurement.zzfk v0_3) {
                    v9 = 0;
                } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                    v9 = 0;
                } catch (com.google.android.gms.internal.measurement.zzfk v0_0) {
                    v12 = 0;
                } catch (com.google.android.gms.internal.measurement.zzfk v0_1) {
                    v12 = v7;
                }
            }
            this.zzgi().zziy().log("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zza() calling method android.database.sqlite.SQLiteDatabase.insert()


    public final boolean zza(com.google.android.gms.internal.measurement.zzku p8, boolean p9)
    {
        this.zzab();
        this.zzch();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p8);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p8.zzth);
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p8.zzavm);
        this.zzhx();
        int v0_0 = this.zzbt().currentTimeMillis();
        if ((p8.zzavm.longValue() < (v0_0 - com.google.android.gms.internal.measurement.zzeh.zzhq())) || (p8.zzavm.longValue() > (com.google.android.gms.internal.measurement.zzeh.zzhq() + v0_0))) {
            this.zzgi().zziy().zzd("Storing bundle outside of the max uploading time span. appId, now, timestamp", com.google.android.gms.internal.measurement.zzfi.zzbp(p8.zzth), Long.valueOf(v0_0), p8.zzavm);
        }
        try {
            String v1_4 = new byte[p8.zzwb()];
            Object v2_10 = com.google.android.gms.internal.measurement.zzacb.zzb(v1_4, 0, v1_4.length);
            p8.zza(v2_10);
            v2_10.zzvt();
            String v1_5 = this.zzjf().zzb(v1_4);
            this.zzgi().zzjc().zzg("Saving bundle, size", Integer.valueOf(v1_5.length));
            Object v2_15 = new android.content.ContentValues();
            v2_15.put("app_id", p8.zzth);
            v2_15.put("bundle_end_timestamp", p8.zzavm);
            v2_15.put("data", v1_5);
            v2_15.put("has_realtime", Integer.valueOf(p9));
        } catch (com.google.android.gms.internal.measurement.zzfk v9_5) {
            String v1_0 = this.zzgi().zziv();
            Object v2_0 = "Data loss. Failed to serialize bundle. appId";
            v1_0.zze(v2_0, com.google.android.gms.internal.measurement.zzfi.zzbp(p8.zzth), v9_5);
            return 0;
        }
        if (p8.zzawj != null) {
            v2_15.put("retry_count", p8.zzawj);
        }
        try {
            if (this.getWritableDatabase().insert("queue", 0, v2_15) != -1) {
                return 1;
            } else {
                this.zzgi().zziv().zzg("Failed to insert bundle (got -1). appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p8.zzth));
                return 0;
            }
        } catch (com.google.android.gms.internal.measurement.zzfk v9_5) {
            v1_0 = this.zzgi().zziv();
            v2_0 = "Error storing bundle. appId";
            v1_0.zze(v2_0, com.google.android.gms.internal.measurement.zzfi.zzbp(p8.zzth), v9_5);
            return 0;
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zza() calling method android.database.sqlite.SQLiteDatabase.insert()


    public final boolean zza(com.google.android.gms.internal.measurement.zzes p9, long p10, boolean p12)
    {
        this.zzab();
        this.zzch();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p9);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p9.zzth);
        long v0_6 = new com.google.android.gms.internal.measurement.zzkr();
        v0_6.zzavc = Long.valueOf(p9.zzahf);
        byte[] v1_2 = new com.google.android.gms.internal.measurement.zzks[p9.zzahg.size()];
        v0_6.zzava = v1_2;
        byte[] v1_4 = p9.zzahg.iterator();
        String v3_2 = 0;
        while (v1_4.hasNext()) {
            Long v4_1 = ((String) v1_4.next());
            Integer v5_1 = new com.google.android.gms.internal.measurement.zzks();
            int v7 = (v3_2 + 1);
            v0_6.zzava[v3_2] = v5_1;
            v5_1.name = v4_1;
            this.zzjf().zza(v5_1, p9.zzahg.get(v4_1));
            v3_2 = v7;
        }
        try {
            byte[] v1_6 = new byte[v0_6.zzwb()];
            String v3_4 = com.google.android.gms.internal.measurement.zzacb.zzb(v1_6, 0, v1_6.length);
            v0_6.zza(v3_4);
            v3_4.zzvt();
            this.zzgi().zzjc().zze("Saving event, name, data size", this.zzgf().zzbm(p9.name), Integer.valueOf(v1_6.length));
            long v0_4 = new android.content.ContentValues();
            v0_4.put("app_id", p9.zzth);
            v0_4.put("name", p9.name);
            v0_4.put("timestamp", Long.valueOf(p9.timestamp));
            v0_4.put("metadata_fingerprint", Long.valueOf(p10));
            v0_4.put("data", v1_6);
            v0_4.put("realtime", Integer.valueOf(p12));
            try {
                if (this.getWritableDatabase().insert("raw_events", 0, v0_4) != -1) {
                    return 1;
                } else {
                    this.zzgi().zziv().zzg("Failed to insert raw event (got -1). appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p9.zzth));
                    return 0;
                }
            } catch (com.google.android.gms.internal.measurement.zzfk v10_5) {
                String v11_3 = this.zzgi().zziv();
                Object v12_3 = "Error storing raw event. appId";
                v11_3.zze(v12_3, com.google.android.gms.internal.measurement.zzfi.zzbp(p9.zzth), v10_5);
                return 0;
            }
        } catch (com.google.android.gms.internal.measurement.zzfk v10_5) {
            v11_3 = this.zzgi().zziv();
            v12_3 = "Data loss. Failed to serialize event params/data. appId";
            v11_3.zze(v12_3, com.google.android.gms.internal.measurement.zzfi.zzbp(p9.zzth), v10_5);
            return 0;
        }
    }

Method com.google.firebase.firestore.c.zzat.zza() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    final varargs void zza(String p2, Object[] p3)
    {
        this.zze.execSQL(p2, p3);
        return;
    }

Method com.google.firebase.firestore.c.zzbd.zza() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    final void zza(int p2)
    {
        switch (p2) {
            case 0:
                this.zzb.execSQL("CREATE TABLE mutation_queues (uid TEXT PRIMARY KEY, last_acknowledged_batch_id INTEGER, last_stream_token BLOB)");
                this.zzb.execSQL("CREATE TABLE mutations (uid TEXT, batch_id INTEGER, mutations BLOB, PRIMARY KEY (uid, batch_id))");
                this.zzb.execSQL("CREATE TABLE document_mutations (uid TEXT, path TEXT, batch_id INTEGER, PRIMARY KEY (uid, path, batch_id))");
                this.zzb.execSQL("CREATE TABLE targets (target_id INTEGER PRIMARY KEY, canonical_id TEXT, snapshot_version_seconds INTEGER, snapshot_version_nanos INTEGER, resume_token BLOB, last_listen_sequence_number INTEGER,target_proto BLOB)");
                this.zzb.execSQL("CREATE INDEX query_targets ON targets (canonical_id, target_id)");
                this.zzb.execSQL("CREATE TABLE target_globals (highest_target_id INTEGER, highest_listen_sequence_number INTEGER)");
                this.zzb.execSQL("CREATE TABLE target_documents (target_id INTEGER, path TEXT, PRIMARY KEY (target_id, path))");
                this.zzb.execSQL("CREATE INDEX document_targets ON target_documents (path, target_id)");
                this.zzb.execSQL("CREATE TABLE remote_documents (path TEXT PRIMARY KEY, contents BLOB)");
            case 1:
                this.zzb.execSQL("ALTER TABLE target_globals ADD COLUMN last_remote_snapshot_version_seconds INTEGER");
                this.zzb.execSQL("ALTER TABLE target_globals ADD COLUMN last_remote_snapshot_version_nanos INTEGER");
                this.zzb.execSQL("UPDATE target_globals SET last_remote_snapshot_version_seconds=0, last_remote_snapshot_version_nanos=0");
            case 2:
                break;
            default:
        }
        return;
    }

Method com.google.android.gms.internal.measurement.zzek.zzc() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    final void zzc(java.util.List p6)
    {
        this.zzab();
        this.zzch();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p6);
        com.google.android.gms.common.internal.Preconditions.checkNotZero(p6.size());
        if (this.zzid()) {
            android.database.sqlite.SQLiteException v6_1 = android.text.TextUtils.join(",", p6);
            String v1_1 = new StringBuilder((String.valueOf(v6_1).length() + 2));
            v1_1.append("(");
            v1_1.append(v6_1);
            v1_1.append(")");
            android.database.sqlite.SQLiteException v6_3 = v1_1.toString();
            String v1_3 = new StringBuilder((String.valueOf(v6_3).length() + 80));
            v1_3.append("SELECT COUNT(1) FROM queue WHERE rowid IN ");
            v1_3.append(v6_3);
            v1_3.append(" AND retry_count =  2147483647 LIMIT 1");
            if (this.zza(v1_3.toString(), 0) > 0) {
                this.zzgi().zziy().log("The number of upload retries exceeds the limit. Will remain unchanged.");
            }
            try {
                com.google.android.gms.internal.measurement.zzfk v0_14 = this.getWritableDatabase();
                StringBuilder v2_2 = new StringBuilder((String.valueOf(v6_3).length() + 127));
                v2_2.append("UPDATE queue SET retry_count = IFNULL(retry_count, 0) + 1 WHERE rowid IN ");
                v2_2.append(v6_3);
                v2_2.append(" AND (retry_count IS NULL OR retry_count < 2147483647)");
                v0_14.execSQL(v2_2.toString());
                return;
            } catch (android.database.sqlite.SQLiteException v6_6) {
                this.zzgi().zziv().zzg("Error incrementing retry count. error", v6_6);
                return;
            }
        } else {
            return;
        }
    }

Method com.google.android.gms.internal.measurement.zzed.zza() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    final com.google.android.gms.internal.measurement.zzkp[] zza(String p49, com.google.android.gms.internal.measurement.zzkr[] p50, com.google.android.gms.internal.measurement.zzkx[] p51)
    {
        Long v15_0 = p49;
        String v13_0 = p50;
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p49);
        java.util.BitSet v11_3 = new java.util.HashSet();
        String v12_2 = new android.support.v4.util.ArrayMap();
        Integer v10_0 = new android.support.v4.util.ArrayMap();
        long v9_2 = new android.support.v4.util.ArrayMap();
        Object v8_10 = new android.support.v4.util.ArrayMap();
        boolean v22 = this.zzgk().zzd(p49, com.google.android.gms.internal.measurement.zzez.zzajx);
        com.google.android.gms.internal.measurement.zzfk v0_11 = this.zzjh().zzbi(p49);
        if (v0_11 != null) {
            int v1_33 = v0_11.keySet().iterator();
            while (v1_33.hasNext()) {
                Integer v5_8;
                java.util.BitSet v21_1;
                java.util.Iterator v19_0;
                String v20_0;
                long v2_32 = ((Integer) v1_33.next()).intValue();
                String v3_8 = ((com.google.android.gms.internal.measurement.zzkv) v0_11.get(Integer.valueOf(v2_32)));
                String v6_7 = ((java.util.BitSet) v10_0.get(Integer.valueOf(v2_32)));
                Integer v4_13 = ((java.util.BitSet) v9_2.get(Integer.valueOf(v2_32)));
                if (!v22) {
                    v19_0 = v0_11;
                    v20_0 = v1_33;
                    v21_1 = v4_13;
                    v5_8 = 0;
                } else {
                    v5_8 = new android.support.v4.util.ArrayMap();
                    if (v3_8 == null) {
                        v19_0 = v0_11;
                        v20_0 = v1_33;
                        v21_1 = v4_13;
                    } else {
                        v19_0 = v0_11;
                        if (v3_8.zzawn != null) {
                            com.google.android.gms.internal.measurement.zzfk v0_1 = v3_8.zzawn;
                            v20_0 = v1_33;
                            int v1_20 = v0_1.length;
                            v21_1 = v4_13;
                            Integer v4_14 = 0;
                            while (v4_14 < v1_20) {
                                int v23_2 = v1_20;
                                int v1_21 = v0_1[v4_14];
                                Integer v24_1 = v0_1;
                                if (v1_21.zzaux != null) {
                                    v5_8.put(v1_21.zzaux, v1_21.zzauy);
                                }
                                v4_14++;
                                v1_20 = v23_2;
                                v0_1 = v24_1;
                            }
                        }
                    }
                    v8_10.put(Integer.valueOf(v2_32), v5_8);
                }
                Integer v4_15;
                if (v6_7 != null) {
                    v4_15 = v21_1;
                } else {
                    v6_7 = new java.util.BitSet();
                    v10_0.put(Integer.valueOf(v2_32), v6_7);
                    v4_15 = new java.util.BitSet();
                    v9_2.put(Integer.valueOf(v2_32), v4_15);
                }
                com.google.android.gms.internal.measurement.zzfk v0_7 = 0;
                while (v0_7 < (v3_8.zzawl.length << 6)) {
                    java.util.BitSet v21_3;
                    Integer v24_3;
                    int v1_40;
                    int v23_4;
                    if (!com.google.android.gms.internal.measurement.zzjz.zza(v3_8.zzawl, v0_7)) {
                        v21_3 = v8_10;
                        v23_4 = v9_2;
                        v24_3 = v10_0;
                        v1_40 = 0;
                    } else {
                        v21_3 = v8_10;
                        v23_4 = v9_2;
                        v24_3 = v10_0;
                        this.zzgi().zzjc().zze("Filter already evaluated. audience ID, filter ID", Integer.valueOf(v2_32), Integer.valueOf(v0_7));
                        v4_15.set(v0_7);
                        if (!com.google.android.gms.internal.measurement.zzjz.zza(v3_8.zzawm, v0_7)) {
                        } else {
                            v6_7.set(v0_7);
                            v1_40 = 1;
                        }
                    }
                    if ((v5_8 != null) && (v1_40 == 0)) {
                        v5_8.remove(Integer.valueOf(v0_7));
                    }
                    v0_7++;
                    v8_10 = v21_3;
                    v9_2 = v23_4;
                    v10_0 = v24_3;
                }
                java.util.BitSet v21_2 = v8_10;
                int v23_3 = v9_2;
                Integer v24_2 = v10_0;
                com.google.android.gms.internal.measurement.zzfk v0_9 = new com.google.android.gms.internal.measurement.zzkp();
                v12_2.put(Integer.valueOf(v2_32), v0_9);
                v0_9.zzauv = Boolean.valueOf(0);
                v0_9.zzauu = v3_8;
                v0_9.zzaut = new com.google.android.gms.internal.measurement.zzkv();
                v0_9.zzaut.zzawm = com.google.android.gms.internal.measurement.zzjz.zza(v6_7);
                v0_9.zzaut.zzawl = com.google.android.gms.internal.measurement.zzjz.zza(v4_15);
                if (v22) {
                    v0_9.zzaut.zzawn = com.google.android.gms.internal.measurement.zzed.zzd(v5_8);
                }
                v0_11 = v19_0;
                v1_33 = v20_0;
                v8_10 = v21_2;
                v9_2 = v23_3;
                v10_0 = v24_2;
            }
        }
        java.util.BitSet v21_0 = v8_10;
        int v23_1 = v9_2;
        Integer v24_0 = v10_0;
        if (p50 != null) {
            Object v8_6 = new android.support.v4.util.ArrayMap();
            String v6_4 = p50.length;
            long v2_29 = 0;
            com.google.android.gms.internal.measurement.zzfk v0_26 = 0;
            int v1_68 = 0;
            Integer v4_10 = 0;
            while (v4_10 < v6_4) {
                com.google.android.gms.internal.measurement.zzed v33;
                String v45_1;
                Integer v39_0;
                Integer v44_1;
                com.google.android.gms.internal.measurement.zzkx[] v14_0;
                String v41_1;
                com.google.android.gms.internal.measurement.zzks[] v34;
                int v32_1;
                int v40_1;
                com.google.android.gms.internal.measurement.zzfk v0_31;
                long v30_0;
                String v13_7;
                java.util.BitSet v28;
                boolean v29;
                com.google.android.gms.internal.measurement.zzks v27_1;
                Integer v5_37 = v13_0[v4_10];
                long v9_26 = v5_37.name;
                Integer v10_7 = v5_37.zzava;
                com.google.android.gms.internal.measurement.zzks v27_0 = v2_29;
                if (!this.zzgk().zzd(v15_0, com.google.android.gms.internal.measurement.zzez.zzajr)) {
                    v29 = v4_10;
                    v13_7 = v5_37;
                    v33 = v6_4;
                    v32_1 = 1;
                    v34 = v10_7;
                    v30_0 = v27_0;
                    v27_1 = v0_26;
                    v28 = v1_68;
                    v0_31 = v9_26;
                    Integer v39_1;
                    Integer v5_38;
                    int v1_94;
                    com.google.android.gms.internal.measurement.zzkx[] v43;
                    long v2_65;
                    String v42_0;
                    int v1_93 = this.zzjh().zzf(v15_0, v13_7.name);
                    if (v1_93 != 0) {
                        v39_1 = v8_6;
                        v43 = v11_3;
                        v44_1 = v12_2;
                        v2_65 = v13_7;
                        v5_38 = v15_0;
                        v41_1 = v21_0;
                        v40_1 = v23_1;
                        v42_0 = v24_0;
                        v1_94 = v1_93.zzim();
                    } else {
                        this.zzgi().zziy().zze("Event aggregate wasn\'t created during raw event logging. appId, event", com.google.android.gms.internal.measurement.zzfi.zzbp(p49), this.zzgf().zzbm(v0_31));
                        v1_94 = new com.google.android.gms.internal.measurement.zzet;
                        v39_1 = v8_6;
                        v41_1 = v21_0;
                        v40_1 = v23_1;
                        v42_0 = v24_0;
                        v43 = v11_3;
                        v44_1 = v12_2;
                        v2_65 = v13_7;
                        v5_38 = v15_0;
                        v1_94(p49, v13_7.name, 1, 1, v13_7.zzavb.longValue(), 0, 0, 0, 0);
                    }
                    this.zzjh().zza(v1_94);
                    Object v8_28 = v1_94.zzahh;
                    Integer v10_9 = v39_1;
                    int v1_98 = ((java.util.Map) v10_9.get(v0_31));
                    if (v1_98 == 0) {
                        v1_98 = this.zzjh().zzk(v5_38, v0_31);
                        if (v1_98 == 0) {
                            v1_98 = new android.support.v4.util.ArrayMap();
                        }
                        v10_9.put(v0_31, v1_98);
                    }
                    java.util.BitSet v11_2 = v1_98;
                    String v12_6 = v11_2.keySet().iterator();
                    while (v12_6.hasNext()) {
                        String v13_9 = ((Integer) v12_6.next()).intValue();
                        com.google.android.gms.internal.measurement.zzkx[] v14_3 = v43;
                        if (!v14_3.contains(Integer.valueOf(v13_9))) {
                            int v18_4;
                            String v12_1;
                            com.google.android.gms.internal.measurement.zzks v17_7;
                            long v2_71;
                            Long v15_3 = v44_1;
                            String v6_1 = v42_0;
                            Integer v4_4 = ((java.util.BitSet) v6_1.get(Integer.valueOf(v13_9)));
                            String v16_0 = v2_65;
                            Integer v39_2 = v10_9;
                            Integer v10_2 = v40_1;
                            long v2_70 = ((java.util.BitSet) v10_2.get(Integer.valueOf(v13_9)));
                            if (!v22) {
                                v17_7 = v2_70;
                                v18_4 = v12_6;
                                v12_1 = v41_1;
                                v2_71 = 0;
                            } else {
                                v17_7 = v2_70;
                                v18_4 = v12_6;
                                v12_1 = v41_1;
                                v2_71 = ((java.util.Map) v12_1.get(Integer.valueOf(v13_9)));
                            }
                            long v2_23;
                            java.util.Iterator v19_3;
                            com.google.android.gms.internal.measurement.zzks v17_0;
                            if (((com.google.android.gms.internal.measurement.zzkp) v15_3.get(Integer.valueOf(v13_9))) != null) {
                                v19_3 = v2_71;
                                v2_23 = v17_7;
                                v17_0 = v19_3;
                            } else {
                                int v1_111 = new com.google.android.gms.internal.measurement.zzkp();
                                v15_3.put(Integer.valueOf(v13_9), v1_111);
                                v1_111.zzauv = Boolean.valueOf(v32_1);
                                v4_4 = new java.util.BitSet();
                                v6_1.put(Integer.valueOf(v13_9), v4_4);
                                int v1_114 = new java.util.BitSet();
                                v19_3 = v2_71;
                                v10_2.put(Integer.valueOf(v13_9), v1_114);
                                if (!v22) {
                                    v17_7 = v1_114;
                                } else {
                                    long v2_76 = new android.support.v4.util.ArrayMap();
                                    com.google.android.gms.internal.measurement.zzks v17_8 = v1_114;
                                    v12_1.put(Integer.valueOf(v13_9), v2_76);
                                    v17_0 = v2_76;
                                    v2_23 = v17_8;
                                }
                            }
                            java.util.Iterator v19_4 = ((java.util.List) v11_2.get(Integer.valueOf(v13_9))).iterator();
                            while (v19_4.hasNext()) {
                                String v42_1;
                                int v1_121 = ((com.google.android.gms.internal.measurement.zzkh) v19_4.next());
                                String v20_3 = v2_23;
                                java.util.BitSet v21_7 = v11_2;
                                if (!this.zzgi().isLoggable(2)) {
                                    v42_1 = v6_1;
                                } else {
                                    v42_1 = v6_1;
                                    this.zzgi().zzjc().zzd("Evaluating filter. audience, filter, event", Integer.valueOf(v13_9), v1_121.zzatk, this.zzgf().zzbm(v1_121.zzatl));
                                    this.zzgi().zzjc().zzg("Filter definition", this.zzjf().zza(v1_121));
                                }
                                if ((v1_121.zzatk != null) && (v1_121.zzatk.intValue() <= 256)) {
                                    if (!v22) {
                                        int v40_0 = v10_2;
                                        String v41_0 = v12_1;
                                        Integer v44_0 = v15_3;
                                        String v12_0 = v16_0;
                                        com.google.android.gms.internal.measurement.zzks v7_0 = v17_0;
                                        java.util.BitSet v11_1 = v20_3;
                                        String v45_0 = v42_1;
                                        Long v15_9 = v1_121;
                                        Integer v10_1 = v4_4;
                                        if (!v10_1.get(v15_9.zzatk.intValue())) {
                                            Integer v4_40;
                                            int v1_126 = this.zza(v15_9, v0_31, v34, v8_28);
                                            com.google.android.gms.internal.measurement.zzfk vtmp260 = this.zzgi().zzjc();
                                            if (v1_126 != 0) {
                                                v4_40 = v1_126;
                                            } else {
                                                v4_40 = "null";
                                            }
                                            vtmp260.zzg("Event filter result", v4_40);
                                            if (v1_126 != 0) {
                                                v11_1.set(v15_9.zzatk.intValue());
                                                if (!v1_126.booleanValue()) {
                                                    v17_0 = v7_0;
                                                    v4_4 = v10_1;
                                                    v2_23 = v11_1;
                                                    v16_0 = v12_0;
                                                    v11_2 = v21_7;
                                                    v10_2 = v40_0;
                                                    v12_1 = v41_0;
                                                    v15_3 = v44_0;
                                                    v6_1 = v45_0;
                                                    Integer v5 = p49;
                                                } else {
                                                    v10_1.set(v15_9.zzatk.intValue());
                                                }
                                            }
                                        } else {
                                            int v1_2 = this.zzgi().zzjc();
                                            long v2_0 = "Event filter already evaluated true. audience ID, filter ID";
                                            String v3_0 = Integer.valueOf(v13_9);
                                            Integer v4_0 = v15_9.zzatk;
                                            v1_2.zze(v2_0, v3_0, v4_0);
                                        }
                                    } else {
                                        if ((v1_121 == 0) || ((v1_121.zzatm == null) || ((v1_121.zzatm.length <= 0) || ((v1_121.zzatm[0].zzatu == null) || (!v1_121.zzatm[0].zzatu.booleanValue()))))) {
                                            int v23_0 = 0;
                                        } else {
                                            v23_0 = 1;
                                        }
                                        if ((!v4_4.get(v1_121.zzatk.intValue())) || (v23_0 != 0)) {
                                            Integer v4_2;
                                            Integer v5_2 = v1_121;
                                            v11_1 = v20_3;
                                            v41_0 = v12_1;
                                            v12_0 = v16_0;
                                            v40_0 = v10_2;
                                            v10_1 = v4_4;
                                            v7_0 = v17_0;
                                            v44_0 = v15_3;
                                            v45_0 = v42_1;
                                            Long v15_1 = v5_2;
                                            int v1_4 = this.zza(v5_2, v0_31, v34, v8_28);
                                            com.google.android.gms.internal.measurement.zzfk vtmp272 = this.zzgi().zzjc();
                                            if (v1_4 != 0) {
                                                v4_2 = v1_4;
                                            } else {
                                                v4_2 = "null";
                                            }
                                            vtmp272.zzg("Event filter result", v4_2);
                                            if (v1_4 != 0) {
                                                v11_1.set(v15_1.zzatk.intValue());
                                                if (!v1_4.booleanValue()) {
                                                } else {
                                                    v10_1.set(v15_1.zzatk.intValue());
                                                    if ((v23_0 == 0) || (v12_0.zzavb == null)) {
                                                    } else {
                                                        com.google.android.gms.internal.measurement.zzed.zza(v7_0, v15_1.zzatk.intValue(), v12_0.zzavb.longValue());
                                                    }
                                                }
                                            }
                                        } else {
                                            this.zzgi().zzjc().zze("Event filter already evaluated true and it is not associated with a dynamic audience. audience ID, filter ID", Integer.valueOf(v13_9), v1_121.zzatk);
                                            v2_23 = v20_3;
                                            v11_2 = v21_7;
                                            v6_1 = v42_1;
                                        }
                                    }
                                    v14_3.add(Integer.valueOf(v13_9));
                                } else {
                                    v40_0 = v10_2;
                                    v41_0 = v12_1;
                                    v44_0 = v15_3;
                                    v12_0 = v16_0;
                                    v7_0 = v17_0;
                                    v11_1 = v20_3;
                                    v45_0 = v42_1;
                                    Long v15_2 = v1_121;
                                    v10_1 = v4_4;
                                    v1_2 = this.zzgi().zziy();
                                    v2_0 = "Invalid event filter ID. appId, id";
                                    v3_0 = com.google.android.gms.internal.measurement.zzfi.zzbp(p49);
                                    v4_0 = String.valueOf(v15_2.zzatk);
                                }
                            }
                            v42_0 = v6_1;
                            v40_1 = v10_2;
                            v41_1 = v12_1;
                            v43 = v14_3;
                            v44_1 = v15_3;
                            v2_65 = v16_0;
                            v12_6 = v18_4;
                            v10_9 = v39_2;
                            v5 = p49;
                        } else {
                            this.zzgi().zzjc().zzg("Skipping failed audience ID", Integer.valueOf(v13_9));
                            v43 = v14_3;
                        }
                    }
                    v39_0 = v10_9;
                    v45_1 = v42_0;
                    v14_0 = v43;
                    v0_26 = v27_1;
                    v1_68 = v28;
                    v2_29 = v30_0;
                } else {
                    long v2_49;
                    this.zzjf();
                    String v3_19 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v5_37, "_eid"));
                    if (v3_19 == null) {
                        v2_49 = 0;
                    } else {
                        v2_49 = 1;
                    }
                    Integer v4_20;
                    if (v2_49 == 0) {
                        v29 = v4_10;
                        v4_20 = 0;
                    } else {
                        v29 = v4_10;
                        if (!v9_26.equals("_ep")) {
                        } else {
                            v4_20 = 1;
                        }
                    }
                    if (v4_20 == null) {
                        v13_7 = v5_37;
                        v33 = v6_4;
                        v32_1 = 1;
                        if (v2_49 == 0) {
                        } else {
                            this.zzjf();
                            int v1_78 = Long.valueOf(0);
                            com.google.android.gms.internal.measurement.zzfk v0_33 = com.google.android.gms.internal.measurement.zzjz.zzb(v13_7, "_epc");
                            if (v0_33 == null) {
                                v0_33 = v1_78;
                            }
                            com.google.android.gms.internal.measurement.zzfk v0_36;
                            String v16_5 = ((Long) v0_33).longValue();
                            if (v16_5 > 0) {
                                v0_36 = v3_19;
                                this.zzjh().zza(p49, v3_19, v16_5, v13_7);
                            } else {
                                this.zzgi().zziy().zzg("Complex event with zero extra param count. eventName", v9_26);
                                v0_36 = v3_19;
                            }
                            v28 = v0_36;
                            v0_31 = v9_26;
                            v34 = v10_7;
                            v27_1 = v13_7;
                            v30_0 = v16_5;
                        }
                    } else {
                        this.zzjf();
                        long v9_28 = ((String) com.google.android.gms.internal.measurement.zzjz.zzb(v5_37, "_en"));
                        if (!android.text.TextUtils.isEmpty(v9_28)) {
                            if ((v0_26 != null) && ((v1_68 != 0) && (v3_19.longValue() == v1_68.longValue()))) {
                                Integer v4_22 = v0_26;
                                com.google.android.gms.internal.measurement.zzks v27_2 = v1_68;
                                int v1_81 = v27_0;
                            } else {
                                long v2_56 = this.zzjh().zza(v15_0, v3_19);
                                if ((v2_56 != 0) && (v2_56.first != null)) {
                                    com.google.android.gms.internal.measurement.zzfk v0_41 = ((com.google.android.gms.internal.measurement.zzkr) v2_56.first);
                                    v1_81 = ((Long) v2_56.second).longValue();
                                    this.zzjf();
                                    v27_2 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v0_41, "_eid"));
                                    v4_22 = v0_41;
                                } else {
                                    v33 = v6_4;
                                    this.zzgi().zziv().zze("Extra parameter without existing main event. eventName, eventId", v9_28, v3_19);
                                    v39_0 = v8_6;
                                    v14_0 = v11_3;
                                    v44_1 = v12_2;
                                    v41_1 = v21_0;
                                    v40_1 = v23_1;
                                    v45_1 = v24_0;
                                    v2_29 = v27_0;
                                    v4_10 = (v29 + 1);
                                    v13_0 = p50;
                                    v11_3 = v14_0;
                                    v6_4 = v33;
                                    v8_6 = v39_0;
                                    v23_1 = v40_1;
                                    v21_0 = v41_1;
                                    v12_2 = v44_1;
                                    v24_0 = v45_1;
                                    v15_0 = p49;
                                }
                            }
                            int v1_19;
                            v30_0 = (v1_81 - 1);
                            if (v30_0 > 0) {
                                com.google.android.gms.internal.measurement.zzks v17_3 = v4_22;
                                int v18 = 0;
                                v13_7 = v5_37;
                                v32_1 = 1;
                                v33 = v6_4;
                                this.zzjh().zza(p49, v3_19, v30_0, v17_3);
                                v1_19 = v17_3;
                            } else {
                                int v1_86 = this.zzjh();
                                v1_86.zzab();
                                v1_86.zzgi().zzjc().zzg("Clearing complex main event info. appId", v15_0);
                                try {
                                    com.google.android.gms.internal.measurement.zzfk v0_46 = v1_86.getWritableDatabase();
                                    com.google.android.gms.internal.measurement.zzks v17_4 = v4_22;
                                    try {
                                        Integer v4_28 = new String[1];
                                        try {
                                            v4_28[0] = v15_0;
                                            v0_46.execSQL("delete from main_event_params where app_id=?", v4_28);
                                        } catch (com.google.android.gms.internal.measurement.zzfk v0_47) {
                                            v1_86.zzgi().zziv().zzg("Error clearing complex main event", v0_47);
                                        }
                                        v13_7 = v5_37;
                                        v33 = v6_4;
                                        v1_19 = v17_4;
                                        v32_1 = 1;
                                    } catch (com.google.android.gms.internal.measurement.zzfk v0_47) {
                                    }
                                } catch (com.google.android.gms.internal.measurement.zzfk v0_47) {
                                    v17_4 = v4_22;
                                }
                            }
                            com.google.android.gms.internal.measurement.zzfk v0_51 = new com.google.android.gms.internal.measurement.zzks[(v1_19.zzava.length + v10_7.length)];
                            long v2_63 = v1_19.zzava;
                            String v3_21 = v2_63.length;
                            Integer v4_7 = 0;
                            Integer v5_7 = 0;
                            while (v4_7 < v3_21) {
                                String v6_3 = v2_63[v4_7];
                                this.zzjf();
                                com.google.android.gms.internal.measurement.zzks v17_1 = v1_19;
                                if (com.google.android.gms.internal.measurement.zzjz.zza(v13_7, v6_3.name) == null) {
                                    int v1_18 = (v5_7 + 1);
                                    v0_51[v5_7] = v6_3;
                                    v5_7 = v1_18;
                                }
                                v4_7++;
                                v1_19 = v17_1;
                            }
                            com.google.android.gms.internal.measurement.zzks v17_5 = v1_19;
                            if (v5_7 <= null) {
                                this.zzgi().zziy().zzg("No unique parameters in main event. eventName", v9_28);
                                v0_31 = v9_28;
                                v34 = v10_7;
                            } else {
                                int v1_90 = v10_7.length;
                                long v2_24 = 0;
                                while (v2_24 < v1_90) {
                                    Integer v4_6 = (v5_7 + 1);
                                    v0_51[v5_7] = v10_7[v2_24];
                                    v2_24++;
                                    v5_7 = v4_6;
                                }
                                if (v5_7 != v0_51.length) {
                                    v0_51 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v0_51, v5_7));
                                }
                                v34 = v0_51;
                                v0_31 = v9_28;
                            }
                            v28 = v27_2;
                            v27_1 = v17_5;
                        } else {
                            this.zzgi().zziv().zzg("Extra parameter without an event name. eventId", v3_19);
                            v33 = v6_4;
                        }
                    }
                }
            }
        }
        com.google.android.gms.internal.measurement.zzkx[] v14_2 = v11_3;
        Integer v44_2 = v12_2;
        String v41_2 = v21_0;
        int v40_2 = v23_1;
        String v45_2 = v24_0;
        int v1_43 = p51;
        if (p51 != null) {
            com.google.android.gms.internal.measurement.zzfk v0_25 = new android.support.v4.util.ArrayMap();
            long v2_41 = p51.length;
            String v3_16 = 0;
            while (v3_16 < v2_41) {
                Integer v4_17 = v1_43[v3_16];
                Integer v5_16 = ((java.util.Map) v0_25.get(v4_17.name));
                if (v5_16 == null) {
                    v5_16 = this.zzjh().zzl(p49, v4_17.name);
                    if (v5_16 == null) {
                        v5_16 = new android.support.v4.util.ArrayMap();
                    }
                    v0_25.put(v4_17.name, v5_16);
                }
                String v6_12 = v5_16.keySet().iterator();
                while (v6_12.hasNext()) {
                    Object v8_24 = ((Integer) v6_12.next()).intValue();
                    if (!v14_2.contains(Integer.valueOf(v8_24))) {
                        int v1_45;
                        com.google.android.gms.internal.measurement.zzfk v0_21;
                        java.util.Map v50_1;
                        Integer v10_5 = v44_2;
                        String v12_3 = v45_2;
                        java.util.BitSet v11_11 = ((java.util.BitSet) v12_3.get(Integer.valueOf(v8_24)));
                        Long v15_5 = v40_2;
                        String v13_5 = ((java.util.BitSet) v15_5.get(Integer.valueOf(v8_24)));
                        if (!v22) {
                            v50_1 = v0_25;
                            v1_45 = v41_2;
                            v0_21 = 0;
                        } else {
                            v50_1 = v0_25;
                            v1_45 = v41_2;
                            v0_21 = ((java.util.Map) v1_45.get(Integer.valueOf(v8_24)));
                        }
                        if (((com.google.android.gms.internal.measurement.zzkp) v10_5.get(Integer.valueOf(v8_24))) == null) {
                            long v9_10 = new com.google.android.gms.internal.measurement.zzkp();
                            v10_5.put(Integer.valueOf(v8_24), v9_10);
                            v9_10.zzauv = Boolean.valueOf(1);
                            v11_11 = new java.util.BitSet();
                            v12_3.put(Integer.valueOf(v8_24), v11_11);
                            v13_5 = new java.util.BitSet();
                            v15_5.put(Integer.valueOf(v8_24), v13_5);
                            if (v22) {
                                v0_21 = new android.support.v4.util.ArrayMap();
                                v1_45.put(Integer.valueOf(v8_24), v0_21);
                            }
                        }
                        long v9_17 = ((java.util.List) v5_16.get(Integer.valueOf(v8_24))).iterator();
                        while (v9_17.hasNext()) {
                            java.util.BitSet v21_5;
                            java.util.Iterator v19_1;
                            com.google.android.gms.internal.measurement.zzks v17_2 = v2_41;
                            long v2_38 = ((com.google.android.gms.internal.measurement.zzkk) v9_17.next());
                            String v16_4 = v5_16;
                            int v18_2 = v6_12;
                            if (!this.zzgi().isLoggable(2)) {
                                v21_5 = v1_45;
                                v19_1 = v9_17;
                                v40_2 = v15_5;
                            } else {
                                v19_1 = v9_17;
                                v21_5 = v1_45;
                                v40_2 = v15_5;
                                this.zzgi().zzjc().zzd("Evaluating filter. audience, filter, property", Integer.valueOf(v8_24), v2_38.zzatk, this.zzgf().zzbo(v2_38.zzauc));
                                this.zzgi().zzjc().zzg("Filter definition", this.zzjf().zza(v2_38));
                            }
                            if ((v2_38.zzatk != null) && (v2_38.zzatk.intValue() <= 256)) {
                                Integer v44_3;
                                if (!v22) {
                                    v44_3 = v10_5;
                                    if (!v11_11.get(v2_38.zzatk.intValue())) {
                                        long v9_19;
                                        int v1_56 = this.zza(v2_38, v4_17);
                                        Integer v5_26 = this.zzgi().zzjc();
                                        if (v1_56 != 0) {
                                            v9_19 = v1_56;
                                        } else {
                                            v9_19 = "null";
                                        }
                                        v5_26.zzg("Property filter result", v9_19);
                                        if (v1_56 != 0) {
                                            v13_5.set(v2_38.zzatk.intValue());
                                            if (v1_56.booleanValue()) {
                                                v11_11.set(v2_38.zzatk.intValue());
                                            }
                                        } else {
                                            v14_2.add(Integer.valueOf(v8_24));
                                        }
                                    } else {
                                        this.zzgi().zzjc().zze("Property filter already evaluated true. audience ID, filter ID", Integer.valueOf(v8_24), v2_38.zzatk);
                                    }
                                } else {
                                    if ((v2_38 == 0) || ((v2_38.zzaud == null) || ((v2_38.zzaud.zzatu == null) || (!v2_38.zzaud.zzatu.booleanValue())))) {
                                        int v1_70 = 0;
                                    } else {
                                        v1_70 = 1;
                                    }
                                    if ((!v11_11.get(v2_38.zzatk.intValue())) || (v1_70 != 0)) {
                                        Integer v5_30;
                                        com.google.android.gms.internal.measurement.zzks v7_5 = this.zza(v2_38, v4_17);
                                        long v9_21 = this.zzgi().zzjc();
                                        if (v7_5 != null) {
                                            v5_30 = v7_5;
                                        } else {
                                            v5_30 = "null";
                                        }
                                        v9_21.zzg("Property filter result", v5_30);
                                        if (v7_5 != null) {
                                            v13_5.set(v2_38.zzatk.intValue());
                                            v11_11.set(v2_38.zzatk.intValue(), v7_5.booleanValue());
                                            if ((v7_5.booleanValue()) && ((v1_70 != 0) && (v4_17.zzaws != null))) {
                                                v44_3 = v10_5;
                                                com.google.android.gms.internal.measurement.zzed.zza(v0_21, v2_38.zzatk.intValue(), v4_17.zzaws.longValue());
                                                v5_16 = v16_4;
                                                v2_41 = v17_2;
                                                v6_12 = v18_2;
                                                v9_17 = v19_1;
                                                v1_45 = v21_5;
                                                v15_5 = v40_2;
                                                v10_5 = v44_3;
                                            }
                                        } else {
                                            v14_2.add(Integer.valueOf(v8_24));
                                        }
                                    } else {
                                        this.zzgi().zzjc().zze("Property filter already evaluated true and it is not associated with a dynamic audience. audience ID, filter ID", Integer.valueOf(v8_24), v2_38.zzatk);
                                    }
                                    v5_16 = v16_4;
                                    v2_41 = v17_2;
                                    v6_12 = v18_2;
                                    v9_17 = v19_1;
                                    v1_45 = v21_5;
                                    v15_5 = v40_2;
                                }
                            } else {
                                v44_2 = v10_5;
                                this.zzgi().zziy().zze("Invalid property filter ID. appId, id", com.google.android.gms.internal.measurement.zzfi.zzbp(p49), String.valueOf(v2_38.zzatk));
                                v14_2.add(Integer.valueOf(v8_24));
                                v0_25 = v50_1;
                                v45_2 = v12_3;
                                v5_16 = v16_4;
                                v2_41 = v17_2;
                                v6_12 = v18_2;
                                v41_2 = v21_5;
                            }
                            com.google.android.gms.internal.measurement.zzks v7 = p49;
                        }
                        v0_25 = v50_1;
                        v41_2 = v1_45;
                        v44_2 = v10_5;
                        v45_2 = v12_3;
                        v40_2 = v15_5;
                    } else {
                        this.zzgi().zzjc().zzg("Skipping failed audience ID", Integer.valueOf(v8_24));
                    }
                }
                com.google.android.gms.internal.measurement.zzks v17 = v2_41;
                String v12 = v45_2;
                v3_16++;
                v1_43 = p51;
            }
        }
        java.util.BitSet v21_4 = v41_2;
        String v12_4 = v45_2;
        int v1_82 = new com.google.android.gms.internal.measurement.zzkp[v12_4.size()];
        long v2_59 = v12_4.keySet().iterator();
        Integer v5_13 = 0;
        while (v2_59.hasNext()) {
            com.google.android.gms.internal.measurement.zzfk v0_60 = ((Integer) v2_59.next()).intValue();
            if (!v14_2.contains(Integer.valueOf(v0_60))) {
                Integer v4_38 = v44_2;
                String v3_27 = ((com.google.android.gms.internal.measurement.zzkp) v4_38.get(Integer.valueOf(v0_60)));
                if (v3_27 == null) {
                    v3_27 = new com.google.android.gms.internal.measurement.zzkp();
                }
                Integer v10_3;
                com.google.android.gms.internal.measurement.zzks v7_9 = (v5_13 + 1);
                v1_82[v5_13] = v3_27;
                v3_27.zzate = Integer.valueOf(v0_60);
                v3_27.zzaut = new com.google.android.gms.internal.measurement.zzkv();
                v3_27.zzaut.zzawm = com.google.android.gms.internal.measurement.zzjz.zza(((java.util.BitSet) v12_4.get(Integer.valueOf(v0_60))));
                long v9_1 = v40_2;
                v3_27.zzaut.zzawl = com.google.android.gms.internal.measurement.zzjz.zza(((java.util.BitSet) v9_1.get(Integer.valueOf(v0_60))));
                if (!v22) {
                    v10_3 = v21_4;
                } else {
                    v10_3 = v21_4;
                    v3_27.zzaut.zzawn = com.google.android.gms.internal.measurement.zzed.zzd(((java.util.Map) v10_3.get(Integer.valueOf(v0_60))));
                }
                Integer v5_11 = this.zzjh();
                String v3_9 = v3_27.zzaut;
                v5_11.zzch();
                v5_11.zzab();
                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p49);
                com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_9);
                try {
                    Object v8_17 = new byte[v3_9.zzwb()];
                    java.util.BitSet v11_5 = com.google.android.gms.internal.measurement.zzacb.zzb(v8_17, 0, v8_17.length);
                    v3_9.zza(v11_5);
                    v11_5.zzvt();
                    String v3_11 = new android.content.ContentValues();
                    v3_11.put("app_id", p49);
                    v3_11.put("audience_id", Integer.valueOf(v0_60));
                    v3_11.put("current_results", v8_17);
                    try {
                        try {
                            if (v5_11.getWritableDatabase().insertWithOnConflict("audience_filter_values", 0, v3_11, 5) != -1) {
                                v44_2 = v4_38;
                                v5_13 = v7_9;
                                v40_2 = v9_1;
                                v21_4 = v10_3;
                            } else {
                                v5_11.zzgi().zziv().zzg("Failed to insert filter results (got -1). appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p49));
                            }
                        } catch (com.google.android.gms.internal.measurement.zzfk v0_15) {
                            String v3_13 = v5_11.zzgi().zziv();
                            Integer v5_12 = "Error storing filter results. appId";
                            v3_13.zze(v5_12, com.google.android.gms.internal.measurement.zzfi.zzbp(p49), v0_15);
                        }
                    } catch (com.google.android.gms.internal.measurement.zzfk v0_15) {
                    }
                } catch (com.google.android.gms.internal.measurement.zzfk v0_15) {
                    Long v15 = p49;
                    v3_13 = v5_11.zzgi().zziv();
                    v5_12 = "Configuration loss. Failed to serialize filter results. appId";
                }
            }
        }
        return ((com.google.android.gms.internal.measurement.zzkp[]) java.util.Arrays.copyOf(v1_82, v5_13));
    }

Method com.google.android.gms.internal.measurement.zzjt.zzd() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private final boolean zzd(String p40, long p41)
    {
        String v1_0 = this;
        this.zzjh().beginTransaction();
        try {
            android.database.sqlite.SQLiteException v3_0 = 0;
            com.google.android.gms.internal.measurement.zzfk v2_3 = new com.google.android.gms.internal.measurement.zzjt$zza(this, 0);
            String v4_58 = this.zzjh();
            com.google.android.gms.internal.measurement.zzfk v5_90 = this.zzasl;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_3);
            v4_58.zzab();
            v4_58.zzch();
            try {
                int v22;
                long v21_0;
                Long v15_15 = v4_58.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        String v12_29;
                        android.database.sqlite.SQLiteException v3_1 = v5_90 cmp -1;
                        if (v3_1 == null) {
                            v12_29 = new String[] {0});
                        } else {
                            v12_29 = new String[2];
                            v12_29[0] = 0;
                            v12_29[1] = String.valueOf(v5_90);
                        }
                        android.database.sqlite.SQLiteException v3_8;
                        if (v3_1 == null) {
                            v3_8 = "";
                        } else {
                            v3_8 = " and rowid <= ?";
                        }
                        long v14_12 = new StringBuilder((String.valueOf(v3_8).length() + 84));
                        v14_12.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_12.append(v3_8);
                        v14_12.append(" order by rowid limit 1;");
                        v3_0 = v15_15.rawQuery(v14_12.toString(), v12_29);
                        if (v3_0.moveToFirst()) {
                            Boolean v13_16 = v3_0.getString(0);
                            v3_0.close();
                            v22 = v3_0;
                            v21_0 = v13_16;
                            v3_0 = 0;
                            try {
                                String v12_9 = new String[2];
                                v12_9[0] = v3_0;
                                v12_9[1] = v21_0;
                                long v24_1 = v15_15;
                                Long v15_14 = v15_15.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_9, 0, 0, "rowid", "2");
                                try {
                                    if (v15_14.moveToFirst()) {
                                        String v12_13 = v15_14.getBlob(0);
                                        String v12_14 = com.google.android.gms.internal.measurement.zzaca.zza(v12_13, 0, v12_13.length);
                                        Boolean v13_5 = new com.google.android.gms.internal.measurement.zzku();
                                        try {
                                            v13_5.zzb(v12_14);
                                        } catch (android.database.sqlite.SQLiteException v0_4) {
                                            int v6_0 = v15_14;
                                            v4_58.zzgi().zziv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0), v0_4);
                                            if (v6_0 == 0) {
                                                android.database.sqlite.SQLiteException v3_6;
                                                if (v2_3.zzasr == null) {
                                                    v3_6 = 1;
                                                } else {
                                                    if (!v2_3.zzasr.isEmpty()) {
                                                        v3_6 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_6 != null) {
                                                    this.zzjh().setTransactionSuccessful();
                                                    this.zzjh().endTransaction();
                                                    return 0;
                                                } else {
                                                    android.database.sqlite.SQLiteException v3_7 = v2_3.zzasp;
                                                    String v4_4 = new com.google.android.gms.internal.measurement.zzkr[v2_3.zzasr.size()];
                                                    v3_7.zzavi = v4_4;
                                                    String v4_7 = this.zzacv.zzgk().zzaw(v3_7.zzth);
                                                    com.google.android.gms.internal.measurement.zzet v7_30 = 0;
                                                    com.google.android.gms.internal.measurement.zzet v8_1 = 0;
                                                    String v9_1 = 0;
                                                    String v12_10 = 0;
                                                    while (v7_30 < v2_3.zzasr.size()) {
                                                        Long v15_1;
                                                        long v14_4 = ((com.google.android.gms.internal.measurement.zzkr) v2_3.zzasr.get(v7_30));
                                                        if (!this.zzky().zzn(v2_3.zzasp.zzth, v14_4.name)) {
                                                            String v20_2;
                                                            com.google.android.gms.internal.measurement.zzfk v5_3 = this.zzky().zzo(v2_3.zzasp.zzth, v14_4.name);
                                                            if (v5_3 != null) {
                                                                if (v14_4.zzava == null) {
                                                                    boolean v10_8 = new com.google.android.gms.internal.measurement.zzks[0];
                                                                    v14_4.zzava = v10_8;
                                                                }
                                                                int v6_13 = v14_4.zzava;
                                                                boolean v10_9 = v6_13.length;
                                                                String v11_2 = 0;
                                                                Long v19_2 = 0;
                                                                String v20_1 = 0;
                                                                while (v11_2 < v10_9) {
                                                                    Long v15_10 = v6_13[v11_2];
                                                                    boolean v16_4 = v6_13;
                                                                    long v24_2 = v10_9;
                                                                    if (!"_c".equals(v15_10.name)) {
                                                                        if ("_r".equals(v15_10.name)) {
                                                                            v15_10.zzave = Long.valueOf(1);
                                                                            v20_1 = 1;
                                                                        }
                                                                    } else {
                                                                        v15_10.zzave = Long.valueOf(1);
                                                                        v19_2 = 1;
                                                                    }
                                                                    v11_2++;
                                                                    v6_13 = v16_4;
                                                                    v10_9 = v24_2;
                                                                }
                                                                if ((v19_2 == null) && (v5_3 != null)) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as conversion", this.zzacv.zzgf().zzbm(v14_4.name));
                                                                    int v6_19 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v14_4.zzava, (v14_4.zzava.length + 1)));
                                                                    boolean v10_15 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v10_15.name = "_c";
                                                                    v10_15.zzave = Long.valueOf(1);
                                                                    v6_19[(v6_19.length - 1)] = v10_15;
                                                                    v14_4.zzava = v6_19;
                                                                }
                                                                if (v20_1 == null) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as real-time", this.zzacv.zzgf().zzbm(v14_4.name));
                                                                    int v6_25 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v14_4.zzava, (v14_4.zzava.length + 1)));
                                                                    boolean v10_21 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v10_21.name = "_r";
                                                                    v10_21.zzave = Long.valueOf(1);
                                                                    v6_25[(v6_25.length - 1)] = v10_21;
                                                                    v14_4.zzava = v6_25;
                                                                }
                                                                v15_1 = v7_30;
                                                                if (this.zzjh().zza(this.zzld(), v2_3.zzasp.zzth, 0, 0, 0, 0, 1).zzagx <= ((long) this.zzacv.zzgk().zzas(v2_3.zzasp.zzth))) {
                                                                    v9_1 = 1;
                                                                } else {
                                                                    int v6_33 = 0;
                                                                    while (v6_33 < v14_4.zzava.length) {
                                                                        if (!"_r".equals(v14_4.zzava[v6_33].name)) {
                                                                            v6_33++;
                                                                        } else {
                                                                            com.google.android.gms.internal.measurement.zzet v7_11 = new com.google.android.gms.internal.measurement.zzks[(v14_4.zzava.length - 1)];
                                                                            if (v6_33 > 0) {
                                                                                System.arraycopy(v14_4.zzava, 0, v7_11, 0, v6_33);
                                                                            }
                                                                            if (v6_33 >= v7_11.length) {
                                                                                boolean v16_1 = v9_1;
                                                                            } else {
                                                                                v16_1 = v9_1;
                                                                                System.arraycopy(v14_4.zzava, (v6_33 + 1), v7_11, v6_33, (v7_11.length - v6_33));
                                                                            }
                                                                            v14_4.zzava = v7_11;
                                                                        }
                                                                        v9_1 = v16_1;
                                                                    }
                                                                    v16_1 = v9_1;
                                                                }
                                                                if ((!com.google.android.gms.internal.measurement.zzkd.zzcg(v14_4.name)) || ((v5_3 == null) || (this.zzjh().zza(this.zzld(), v2_3.zzasp.zzth, 0, 0, 1, 0, 0).zzagv <= ((long) this.zzacv.zzgk().zzb(v2_3.zzasp.zzth, com.google.android.gms.internal.measurement.zzez.zzair))))) {
                                                                    v20_2 = v9_1;
                                                                } else {
                                                                    this.zzacv.zzgi().zziy().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                                    com.google.android.gms.internal.measurement.zzfk v5_11 = v14_4.zzava;
                                                                    int v6_37 = v5_11.length;
                                                                    com.google.android.gms.internal.measurement.zzet v7_19 = 0;
                                                                    boolean v10_33 = 0;
                                                                    String v11_22 = 0;
                                                                    while (v7_19 < v6_37) {
                                                                        int v6_44 = v5_11[v7_19];
                                                                        if (!"_c".equals(v6_44.name)) {
                                                                            if ("_err".equals(v6_44.name)) {
                                                                                v10_33 = 1;
                                                                            }
                                                                        } else {
                                                                            v11_22 = v6_44;
                                                                        }
                                                                        v7_19++;
                                                                    }
                                                                    v20_2 = v9_1;
                                                                    if ((!v10_33) || (v11_22 == null)) {
                                                                        if (v11_22 == null) {
                                                                            this.zzacv.zzgi().zziv().zzg("Did not find conversion parameter. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                                        } else {
                                                                            v11_22.name = "_err";
                                                                            v11_22.zzave = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.measurement.zzfk v5_18 = v14_4.zzava;
                                                                        com.google.android.gms.internal.measurement.zzet v7_24 = new com.google.android.gms.internal.measurement.zzks[1];
                                                                        v7_24[0] = v11_22;
                                                                        v14_4.zzava = ((com.google.android.gms.internal.measurement.zzks[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v5_18, v7_24));
                                                                    }
                                                                }
                                                            } else {
                                                                Long v19_1;
                                                                this.zzjf();
                                                                int v6_6 = v14_4.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v6_6);
                                                                String v11_1 = v6_6.hashCode();
                                                                if (v11_1 == 94660) {
                                                                    if (!v6_6.equals("_in")) {
                                                                        v19_1 = -1;
                                                                    } else {
                                                                        v19_1 = 0;
                                                                    }
                                                                } else {
                                                                    if (v11_1 == 95025) {
                                                                        if (!v6_6.equals("_ug")) {
                                                                        } else {
                                                                            v19_1 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v11_1 == 95027) {
                                                                            if (!v6_6.equals("_ui")) {
                                                                            } else {
                                                                                v19_1 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v6_10;
                                                                switch (v19_1) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v6_10 = 1;
                                                                    default:
                                                                        v6_10 = 0;
                                                                }
                                                                if (v6_10 == 0) {
                                                                    v15_1 = v7_30;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v4_7 != null) && ("_e".equals(v14_4.name))) {
                                                                int v6_42;
                                                                com.google.android.gms.internal.measurement.zzfk v5_32;
                                                                com.google.android.gms.internal.measurement.zzet v7_27;
                                                                if (v14_4.zzava == null) {
                                                                    v5_32 = this.zzacv.zzgi().zziy();
                                                                    v6_42 = "Engagement event does not contain any parameters. appId";
                                                                    v7_27 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth);
                                                                } else {
                                                                    if (v14_4.zzava.length != 0) {
                                                                        this.zzjf();
                                                                        com.google.android.gms.internal.measurement.zzfk v5_28 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v14_4, "_et"));
                                                                        if (v5_28 != null) {
                                                                            v12_10 += v5_28.longValue();
                                                                            int v6_43 = (v8_1 + 1);
                                                                            v3_7.zzavi[v8_1] = v14_4;
                                                                            v8_1 = v6_43;
                                                                            v9_1 = v20_2;
                                                                            v7_30 = (v15_1 + 1);
                                                                            String v11 = 1;
                                                                        } else {
                                                                            v5_32 = this.zzacv.zzgi().zziy();
                                                                            v6_42 = "Engagement event does not include duration. appId";
                                                                            v7_27 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth);
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                v5_32.zzg(v6_42, v7_27);
                                                            }
                                                        } else {
                                                            com.google.android.gms.internal.measurement.zzfk v5_47;
                                                            this.zzacv.zzgi().zziy().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth), this.zzacv.zzgf().zzbm(v14_4.name));
                                                            if (this.zzky().zzcb(v2_3.zzasp.zzth)) {
                                                                v5_47 = 1;
                                                            } else {
                                                                if (!this.zzky().zzcc(v2_3.zzasp.zzth)) {
                                                                    v5_47 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_47 == null) && (!"_err".equals(v14_4.name))) {
                                                                this.zzacv.zzgg().zza(v2_3.zzasp.zzth, 11, "_ev", v14_4.name, 0);
                                                            }
                                                            v15_1 = v7_30;
                                                        }
                                                    }
                                                    boolean v16_7 = v9_1;
                                                    if (v8_1 < v2_3.zzasr.size()) {
                                                        v3_7.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v3_7.zzavi, v8_1));
                                                    }
                                                    if (v4_7 != null) {
                                                        String v4_12;
                                                        String v4_9 = this.zzjh().zzh(v3_7.zzth, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.internal.measurement.zzkc;
                                                            v4_12(v3_7.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf(v12_10));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                com.google.android.gms.internal.measurement.zzfk v5_68 = new com.google.android.gms.internal.measurement.zzkc;
                                                                v5_68(v3_7.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v12_10)));
                                                                v4_12 = v5_68;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v5_71 = new com.google.android.gms.internal.measurement.zzkx();
                                                        v5_71.name = "_lte";
                                                        v5_71.zzaws = Long.valueOf(this.zzacv.zzbt().currentTimeMillis());
                                                        v5_71.zzave = ((Long) v4_12.value);
                                                        int v6_81 = 0;
                                                        while (v6_81 < v3_7.zzavj.length) {
                                                            if (!"_lte".equals(v3_7.zzavj[v6_81].name)) {
                                                                v6_81++;
                                                            } else {
                                                                v3_7.zzavj[v6_81] = v5_71;
                                                                int v6_82 = 1;
                                                            }
                                                            if (v6_82 == 0) {
                                                                v3_7.zzavj = ((com.google.android.gms.internal.measurement.zzkx[]) java.util.Arrays.copyOf(v3_7.zzavj, (v3_7.zzavj.length + 1)));
                                                                v3_7.zzavj[(v2_3.zzasp.zzavj.length - 1)] = v5_71;
                                                            }
                                                            if (v12_10 > 0) {
                                                                this.zzjh().zza(v4_12);
                                                                this.zzacv.zzgi().zzjb().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_82 = 0;
                                                    }
                                                    v3_7.zzawa = this.zza(v3_7.zzth, v3_7.zzavj, v3_7.zzavi);
                                                    try {
                                                        if (this.zzacv.zzgk().zzav(v2_3.zzasp.zzth)) {
                                                            String v4_20 = new java.util.HashMap();
                                                            com.google.android.gms.internal.measurement.zzfk v5_82 = new com.google.android.gms.internal.measurement.zzkr[v3_7.zzavi.length];
                                                            int v6_1 = this.zzacv.zzgg().zzlo();
                                                            com.google.android.gms.internal.measurement.zzet v7_3 = v3_7.zzavi;
                                                            com.google.android.gms.internal.measurement.zzet v8_0 = v7_3.length;
                                                            String v9_0 = 0;
                                                            boolean v10_0 = 0;
                                                            while (v9_0 < v8_0) {
                                                                String v20_0;
                                                                Long v19_0;
                                                                long v24_0;
                                                                String v11_27 = v7_3[v9_0];
                                                                if (!v11_27.name.equals("_ep")) {
                                                                    v19_0 = v7_3;
                                                                    com.google.android.gms.internal.measurement.zzet v7_84;
                                                                    long v14_16 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v14_16 != 0)) {
                                                                        String v12_38 = v11_27.zzava;
                                                                        Boolean v13_19 = v12_38.length;
                                                                        Long v15_17 = 0;
                                                                        while (v15_17 < v13_19) {
                                                                            v20_0 = v8_0;
                                                                            com.google.android.gms.internal.measurement.zzet v8_20 = v12_38[v15_17];
                                                                            if (!"_dbg".equals(v8_20.name)) {
                                                                                v15_17++;
                                                                                v8_0 = v20_0;
                                                                            } else {
                                                                                if (((!(v14_16 instanceof Long)) || (!v14_16.equals(v8_20.zzave))) && (((!(v14_16 instanceof String)) || (!v14_16.equals(v8_20.zzale))) && ((!(v14_16 instanceof Double)) || (!v14_16.equals(v8_20.zzasw))))) {
                                                                                    v7_84 = 0;
                                                                                } else {
                                                                                    v7_84 = 1;
                                                                                }
                                                                            }
                                                                        }
                                                                        v20_0 = v8_0;
                                                                    }
                                                                    com.google.android.gms.internal.measurement.zzet v7_85;
                                                                    if (v7_84 != null) {
                                                                        v7_85 = 1;
                                                                    } else {
                                                                        v7_85 = this.zzky().zzp(v2_3.zzasp.zzth, v11_27.name);
                                                                    }
                                                                    com.google.android.gms.internal.measurement.zzet v7_96;
                                                                    if (v7_85 > null) {
                                                                        com.google.android.gms.internal.measurement.zzet v8_25 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v11_27.name));
                                                                        if (v8_25 == null) {
                                                                            v8_25 = this.zzjh().zzf(v2_3.zzasp.zzth, v11_27.name);
                                                                            if (v8_25 == null) {
                                                                                v1_0.zzacv.zzgi().zziy().zze("Event being bundled has no eventAggregate. appId, eventName", v2_3.zzasp.zzth, v11_27.name);
                                                                                v8_25 = new com.google.android.gms.internal.measurement.zzet;
                                                                                v8_25(v2_3.zzasp.zzth, v11_27.name, 1, 1, v11_27.zzavb.longValue(), 0, 0, 0, 0);
                                                                            }
                                                                        }
                                                                        Boolean v13_24;
                                                                        this.zzjf();
                                                                        String v12_50 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v11_27, "_eid"));
                                                                        if (v12_50 == null) {
                                                                            v13_24 = 0;
                                                                        } else {
                                                                            v13_24 = 1;
                                                                        }
                                                                        Boolean v13_25 = Boolean.valueOf(v13_24);
                                                                        if (v7_85 != 1) {
                                                                            if (v6_1.nextInt(v7_85) != 0) {
                                                                                v24_0 = v6_1;
                                                                                if (Math.abs((v11_27.zzavb.longValue() - v8_25.zzahk)) < 86400000) {
                                                                                    if (!v13_25.booleanValue()) {
                                                                                        v9_0++;
                                                                                        v7_3 = v19_0;
                                                                                        v8_0 = v20_0;
                                                                                        v6_1 = v24_0;
                                                                                        v1_0 = this;
                                                                                    } else {
                                                                                        v4_20.put(v11_27.name, v8_25.zza(v12_50, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzjf();
                                                                                    v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_efs", Long.valueOf(1));
                                                                                    this.zzjf();
                                                                                    long v14_27 = ((long) v7_85);
                                                                                    v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_sr", Long.valueOf(v14_27));
                                                                                    String v1_27 = (v10_0 + 1);
                                                                                    v5_82[v10_0] = v11_27;
                                                                                    if (v13_25.booleanValue()) {
                                                                                        v8_25 = v8_25.zza(0, Long.valueOf(v14_27), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_20.put(v11_27.name, v8_25.zzai(v11_27.zzavb.longValue()));
                                                                                    v10_0 = v1_27;
                                                                                }
                                                                            } else {
                                                                                this.zzjf();
                                                                                int v6_125 = ((long) v7_85);
                                                                                v24_0 = v6_1;
                                                                                v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_sr", Long.valueOf(v6_125));
                                                                                String v12_55 = (v10_0 + 1);
                                                                                v5_82[v10_0] = v11_27;
                                                                                if (v13_25.booleanValue()) {
                                                                                    v8_25 = v8_25.zza(0, Long.valueOf(v6_125), 0);
                                                                                }
                                                                                v4_20.put(v11_27.name, v8_25.zzai(v11_27.zzavb.longValue()));
                                                                                v10_0 = v12_55;
                                                                            }
                                                                        } else {
                                                                            v7_96 = (v10_0 + 1);
                                                                            v5_82[v10_0] = v11_27;
                                                                            if ((v13_25.booleanValue()) && ((v8_25.zzahl != null) || ((v8_25.zzahm != null) || (v8_25.zzahn != null)))) {
                                                                                v4_20.put(v11_27.name, v8_25.zza(0, 0, 0));
                                                                            }
                                                                        }
                                                                    } else {
                                                                        v1_0.zzacv.zzgi().zziy().zze("Sample rate must be positive. event, rate", v11_27.name, Integer.valueOf(v7_85));
                                                                        v7_96 = (v10_0 + 1);
                                                                        v5_82[v10_0] = v11_27;
                                                                    }
                                                                    v24_0 = v6_1;
                                                                    v10_0 = v7_96;
                                                                } else {
                                                                    this.zzjf();
                                                                    String v12_59 = ((String) com.google.android.gms.internal.measurement.zzjz.zzb(v11_27, "_en"));
                                                                    Boolean v13_28 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v12_59));
                                                                    if (v13_28 == null) {
                                                                        v13_28 = this.zzjh().zzf(v2_3.zzasp.zzth, v12_59);
                                                                        v4_20.put(v12_59, v13_28);
                                                                    }
                                                                    if (v13_28.zzahl != null) {
                                                                        v19_0 = v7_3;
                                                                        v24_0 = v6_1;
                                                                    } else {
                                                                        if (v13_28.zzahm.longValue() > 1) {
                                                                            this.zzjf();
                                                                            v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_sr", v13_28.zzahm);
                                                                        }
                                                                        if ((v13_28.zzahn == null) || (!v13_28.zzahn.booleanValue())) {
                                                                            v19_0 = v7_3;
                                                                        } else {
                                                                            this.zzjf();
                                                                            v19_0 = v7_3;
                                                                            v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_efs", Long.valueOf(1));
                                                                        }
                                                                        com.google.android.gms.internal.measurement.zzet v7_2 = (v10_0 + 1);
                                                                        v5_82[v10_0] = v11_27;
                                                                        v24_0 = v6_1;
                                                                        v10_0 = v7_2;
                                                                    }
                                                                    v20_0 = v8_0;
                                                                }
                                                            }
                                                            if (v10_0 < v3_7.zzavi.length) {
                                                                v3_7.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v5_82, v10_0));
                                                            }
                                                            String v1_11 = v4_20.entrySet().iterator();
                                                            while (v1_11.hasNext()) {
                                                                this.zzjh().zza(((com.google.android.gms.internal.measurement.zzet) ((java.util.Map$Entry) v1_11.next()).getValue()));
                                                            }
                                                        }
                                                        try {
                                                            v3_7.zzavl = Long.valueOf(nan);
                                                            v3_7.zzavm = Long.valueOf(-0.0);
                                                            String v1_14 = 0;
                                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                                            String v1_1 = v0_3;
                                                            this.zzjh().endTransaction();
                                                            throw v1_1;
                                                        }
                                                        while (v1_14 < v3_7.zzavi.length) {
                                                            String v4_52 = v3_7.zzavi[v1_14];
                                                            if (v4_52.zzavb.longValue() < v3_7.zzavl.longValue()) {
                                                                v3_7.zzavl = v4_52.zzavb;
                                                            }
                                                            if (v4_52.zzavb.longValue() > v3_7.zzavm.longValue()) {
                                                                v3_7.zzavm = v4_52.zzavb;
                                                            }
                                                            v1_14++;
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v5_83;
                                                        String v1_16 = v2_3.zzasp.zzth;
                                                        String v4_27 = this.zzjh().zzbf(v1_16);
                                                        if (v4_27 != null) {
                                                            v5_83 = this;
                                                            if (v3_7.zzavi.length > 0) {
                                                                com.google.android.gms.internal.measurement.zzet v8_16;
                                                                int v6_93 = v4_27.zzgt();
                                                                if (v6_93 == 0) {
                                                                    v8_16 = 0;
                                                                } else {
                                                                    v8_16 = Long.valueOf(v6_93);
                                                                }
                                                                v3_7.zzavo = v8_16;
                                                                com.google.android.gms.internal.measurement.zzet v8_17 = v4_27.zzgs();
                                                                if (v8_17 != 0) {
                                                                    v6_93 = v8_17;
                                                                } else {
                                                                }
                                                                int v6_94;
                                                                if (v6_93 == 0) {
                                                                    v6_94 = 0;
                                                                } else {
                                                                    v6_94 = Long.valueOf(v6_93);
                                                                }
                                                                v3_7.zzavn = v6_94;
                                                                v4_27.zzhb();
                                                                v3_7.zzavy = Integer.valueOf(((int) v4_27.zzgy()));
                                                                v4_27.zzr(v3_7.zzavl.longValue());
                                                                v4_27.zzs(v3_7.zzavm.longValue());
                                                                v3_7.zzafy = v4_27.zzhj();
                                                                this.zzjh().zza(v4_27);
                                                            }
                                                        } else {
                                                            v5_83 = this;
                                                            this.zzacv.zzgi().zziv().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                        }
                                                        if (v3_7.zzavi.length > 0) {
                                                            String v4_36;
                                                            v5_83.zzacv.zzgl();
                                                            String v4_35 = this.zzky().zzbx(v2_3.zzasp.zzth);
                                                            if (v4_35 == null) {
                                                                if (!android.text.TextUtils.isEmpty(v2_3.zzasp.zzafa)) {
                                                                    v5_83.zzacv.zzgi().zziy().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                                } else {
                                                                    v4_36 = Long.valueOf(-1);
                                                                    v3_7.zzawf = v4_36;
                                                                }
                                                            } else {
                                                                if (v4_35.zzaum != null) {
                                                                    v4_36 = v4_35.zzaum;
                                                                } else {
                                                                }
                                                            }
                                                            this.zzjh().zza(v3_7, v16_7);
                                                        }
                                                        android.database.sqlite.SQLiteException v3_11 = this.zzjh();
                                                        com.google.android.gms.internal.measurement.zzfk v2_4 = v2_3.zzasq;
                                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_4);
                                                        v3_11.zzab();
                                                        v3_11.zzch();
                                                        String v4_45 = new StringBuilder("rowid in (");
                                                        int v6_110 = 0;
                                                        while (v6_110 < v2_4.size()) {
                                                            if (v6_110 != 0) {
                                                                v4_45.append(",");
                                                            }
                                                            v4_45.append(((Long) v2_4.get(v6_110)).longValue());
                                                            v6_110++;
                                                        }
                                                        v4_45.append(")");
                                                        String v4_47 = v3_11.getWritableDatabase().delete("raw_events", v4_45.toString(), 0);
                                                        if (v4_47 != v2_4.size()) {
                                                            v3_11.zzgi().zziv().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v4_47), Integer.valueOf(v2_4.size()));
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v2_7 = this.zzjh();
                                                        android.database.sqlite.SQLiteException v3_14 = v2_7.getWritableDatabase();
                                                        try {
                                                            int v6_116 = new String[2];
                                                            v6_116[0] = v1_16;
                                                            v6_116[1] = v1_16;
                                                            v3_14.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v6_116);
                                                        } catch (android.database.sqlite.SQLiteException v0_6) {
                                                            v2_7.zzgi().zziv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v1_16), v0_6);
                                                        }
                                                        this.zzjh().setTransactionSuccessful();
                                                        this.zzjh().endTransaction();
                                                        return 1;
                                                    } catch (android.database.sqlite.SQLiteException v0_1) {
                                                        v1_1 = v0_1;
                                                    }
                                                }
                                            } else {
                                                v6_0.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                        }
                                        if (v15_14.moveToNext()) {
                                            v4_58.zzgi().zziy().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                        }
                                        com.google.android.gms.internal.measurement.zzfk v5_54;
                                        boolean v16_6;
                                        v15_14.close();
                                        v2_3.zzb(v13_5);
                                        if (v5_90 == -1) {
                                            v5_54 = "app_id = ? and metadata_fingerprint = ?";
                                            String v12_19 = new String[2];
                                            v12_19[0] = v3_0;
                                            v12_19[1] = v21_0;
                                            v16_6 = v12_19;
                                        } else {
                                            Boolean v13_6 = new String[3];
                                            v13_6[0] = v3_0;
                                            v13_6[1] = v21_0;
                                            v13_6[2] = String.valueOf(v5_90);
                                            v5_54 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_6 = v13_6;
                                        }
                                        v6_0 = v15_14;
                                        com.google.android.gms.internal.measurement.zzfk v5_56 = v24_1.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_54, v16_6, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_56.moveToFirst()) {
                                                do {
                                                    int v6_63 = v5_56.getLong(0);
                                                    com.google.android.gms.internal.measurement.zzet v8_3 = v5_56.getBlob(3);
                                                    com.google.android.gms.internal.measurement.zzet v8_4 = com.google.android.gms.internal.measurement.zzaca.zza(v8_3, 0, v8_3.length);
                                                    String v12_26 = new com.google.android.gms.internal.measurement.zzkr();
                                                    v12_26.zzb(v8_4);
                                                    v12_26.name = v5_56.getString(1);
                                                    v12_26.zzavb = Long.valueOf(v5_56.getLong(2));
                                                    if (v2_3.zza(v6_63, v12_26)) {
                                                    } else {
                                                        if (v5_56 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_56.moveToNext());
                                                if (v5_56 == null) {
                                                }
                                            } else {
                                                v4_58.zzgi().zziy().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                                if (v5_56 == null) {
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v6_0 = v5_56;
                                            String v1_2 = v0_0;
                                            if (v6_0 != 0) {
                                                v6_0.close();
                                            }
                                            throw v1_2;
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            String v12_4 = v3_0;
                                            v6_0 = v5_56;
                                            android.database.sqlite.SQLiteException v3_2 = v0_2;
                                            v4_58.zzgi().zziv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_4), v3_2);
                                            if (v6_0 == 0) {
                                            }
                                        }
                                        v5_56.close();
                                    } else {
                                        v4_58.zzgi().zziv().zzg("Raw event metadata record is missing. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                        if (v15_14 == null) {
                                        } else {
                                            v15_14.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_14;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v6_0 = v15_14;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_14;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v12_4 = v3_0;
                                    v6_0 = v15_14;
                                }
                                v12_4 = v3_0;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v6_0 = v22;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v12_4 = v3_0;
                                v6_0 = v22;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                            }
                        }
                    } else {
                        Boolean v13_17;
                        String v12_33 = v5_90 cmp -1;
                        try {
                            if (v12_33 == null) {
                                v13_17 = new String[1];
                                v13_17[0] = String.valueOf(p41);
                            } else {
                                v13_17 = new String[2];
                                v13_17[0] = String.valueOf(v5_90);
                                v13_17[1] = String.valueOf(p41);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                            v6_0 = 0;
                            v12_4 = 0;
                        }
                        String v12_41;
                        if (v12_33 == null) {
                            v12_41 = "";
                        } else {
                            v12_41 = "rowid <= ? and ";
                        }
                        android.database.sqlite.SQLiteException v3_17 = new StringBuilder((String.valueOf(v12_41).length() + 148));
                        v3_17.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_17.append(v12_41);
                        v3_17.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_15.rawQuery(v3_17.toString(), v13_17);
                        if (v3_0.moveToFirst()) {
                            v12_4 = v3_0.getString(0);
                            try {
                                Boolean v13_1 = v3_0.getString(1);
                                v3_0.close();
                                v22 = v3_0;
                                v3_0 = v12_4;
                                v21_0 = v13_1;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v6_0 = v3_0;
                            }
                        } else {
                            if (v3_0 == null) {
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v6_0 = v3_0;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v6_0 = v3_0;
                    v12_4 = 0;
                }
                v3_0.close();
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v6_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
                v3_2 = v0_7;
                v6_0 = 0;
                v12_4 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
            } catch (android.database.sqlite.SQLiteException v0_3) {
            }
        } catch (android.database.sqlite.SQLiteException v0_3) {
        }
    }

Method com.google.android.gms.internal.measurement.zzjt.zza() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private final boolean zza(String p14, com.google.android.gms.internal.measurement.zzex p15)
    {
        String v3_1;
        Object v0_6 = p15.zzahg.getString("currency");
        if (!"ecommerce_purchase".equals(p15.name)) {
            v3_1 = p15.zzahg.getLong("value").longValue();
        } else {
            String v3_7 = (p15.zzahg.zzbk("value").doubleValue() * 1000000.0);
            if (v3_7 == 0) {
                v3_7 = (((double) p15.zzahg.getLong("value").longValue()) * 1000000.0);
            }
            if ((v3_7 > 9.223372036854776e+18) || (v3_7 < -9.223372036854776e+18)) {
                this.zzacv.zzgi().zziy().zze("Data lost. Currency value is too big. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p14), Double.valueOf(v3_7));
                return 0;
            } else {
                v3_1 = Math.round(v3_7);
            }
        }
        if (!android.text.TextUtils.isEmpty(v0_6)) {
            Object v0_8 = v0_6.toUpperCase(java.util.Locale.US);
            if (v0_8.matches("[A-Z]{3}")) {
                Object v0_11;
                String v1_24 = String.valueOf("_ltv_");
                Object v0_9 = String.valueOf(v0_8);
                if (v0_9.length() == 0) {
                    v0_11 = new String(v1_24);
                } else {
                    v0_11 = v1_24.concat(v0_9);
                }
                Object v0_1;
                int v9_1 = v0_11;
                Object v0_13 = this.zzjh().zzh(p14, v9_1);
                if ((v0_13 != null) && ((v0_13.value instanceof Long))) {
                    Object v2_5 = new com.google.android.gms.internal.measurement.zzkc;
                    v2_5(p14, p15.origin, v9_1, this.zzacv.zzbt().currentTimeMillis(), Long.valueOf((((Long) v0_13.value).longValue() + v3_1)));
                    v0_1 = v2_5;
                } else {
                    Object v0_2 = this.zzjh();
                    String v1_5 = (this.zzacv.zzgk().zzb(p14, com.google.android.gms.internal.measurement.zzez.zzaji) - 1);
                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p14);
                    v0_2.zzab();
                    v0_2.zzch();
                    try {
                        com.google.android.gms.internal.measurement.zzkd v6_2 = v0_2.getWritableDatabase();
                        int v8_1 = new String[3];
                        v8_1[0] = p14;
                        v8_1[1] = p14;
                        v8_1[2] = String.valueOf(v1_5);
                        v6_2.execSQL("delete from user_attributes where app_id=? and name in (select name from user_attributes where app_id=? and name like \'_ltv_%\' order by set_timestamp desc limit ?,10);", v8_1);
                    } catch (String v1_7) {
                        v0_2.zzgi().zziv().zze("Error pruning currencies. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p14), v1_7);
                    }
                    v0_1 = new com.google.android.gms.internal.measurement.zzkc;
                    v0_1(p14, p15.origin, v9_1, this.zzacv.zzbt().currentTimeMillis(), Long.valueOf(v3_1));
                }
                if (!this.zzjh().zza(v0_1)) {
                    this.zzacv.zzgi().zziv().zzd("Too many unique user properties are set. Ignoring user property. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p14), this.zzacv.zzgf().zzbo(v0_1.name), v0_1.value);
                    this.zzacv.zzgg().zza(p14, 9, 0, 0, 0);
                }
            }
        }
        return 1;
    }

Method com.google.android.gms.internal.measurement.zzeo.zza() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static void zza(com.google.android.gms.internal.measurement.zzfi p5, android.database.sqlite.SQLiteDatabase p6, String p7, String p8, String p9, String[] p10)
    {
        if (p5 == null) {
            throw new IllegalArgumentException("Monitor must not be null");
        } else {
            if (!com.google.android.gms.internal.measurement.zzeo.zza(p5, p6, p7)) {
                p6.execSQL(p8);
            }
            if (p5 == null) {
                throw new IllegalArgumentException("Monitor must not be null");
            } else {
                String v8_2 = com.google.android.gms.internal.measurement.zzeo.zzb(p6, p7);
                String v9_1 = p9.split(",");
                int v1 = 0;
                int v2 = 0;
                while (v2 < v9_1.length) {
                    String v3 = v9_1[v2];
                    if (!v8_2.remove(v3)) {
                        String v9_11 = new StringBuilder(((String.valueOf(p7).length() + 35) + String.valueOf(v3).length()));
                        v9_11.append("Table ");
                        v9_11.append(p7);
                        v9_11.append(" is missing required column: ");
                        v9_11.append(v3);
                        throw new android.database.sqlite.SQLiteException(v9_11.toString());
                    } else {
                        v2++;
                    }
                }
                if (p10 != null) {
                    while (v1 < p10.length) {
                        if (!v8_2.remove(p10[v1])) {
                            p6.execSQL(p10[(v1 + 1)]);
                        }
                        v1 += 2;
                    }
                }
                if (!v8_2.isEmpty()) {
                    p5.zziy().zze("Table has extra columns. table, columns", p7, android.text.TextUtils.join(", ", v8_2));
                }
                return;
            }
        }
    }

Method com.google.android.gms.internal.firebase_database.zzx.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public final void onUpgrade(android.database.sqlite.SQLiteDatabase p2, int p3, int p4)
    {
        if (p3 > 1) {
            StringBuilder v0_2 = new StringBuilder(40);
            v0_2.append("We don\'t handle upgrading to ");
            v0_2.append(p4);
            throw new AssertionError(v0_2.toString());
        } else {
            com.google.android.gms.internal.firebase_database.zzx.zza(p2, "serverCache");
            p2.execSQL("CREATE TABLE serverCache (path TEXT PRIMARY KEY, value BLOB);");
            com.google.android.gms.internal.firebase_database.zzx.zza(p2, "complete");
            p2.execSQL("CREATE TABLE trackedKeys (id INTEGER, key TEXT);");
            p2.execSQL("CREATE TABLE trackedQueries (id INTEGER PRIMARY KEY, path TEXT, queryParams TEXT, lastUse INTEGER, complete INTEGER, active INTEGER);");
            return;
        }
    }

Method com.google.android.gms.internal.firebase_database.zzx.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public final void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE serverCache (path TEXT PRIMARY KEY, value BLOB);");
        p2.execSQL("CREATE TABLE writes (id INTEGER, path TEXT, type TEXT, part INTEGER, node BLOB, UNIQUE (id, part));");
        p2.execSQL("CREATE TABLE trackedQueries (id INTEGER PRIMARY KEY, path TEXT, queryParams TEXT, lastUse INTEGER, complete INTEGER, active INTEGER);");
        p2.execSQL("CREATE TABLE trackedKeys (id INTEGER, key TEXT);");
        return;
    }

Method com.google.android.gms.internal.firebase_database.zzx.zza() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private static void zza(android.database.sqlite.SQLiteDatabase p2, String p3)
    {
        String v3_3;
        String v3_1 = String.valueOf(p3);
        if (v3_1.length() == 0) {
            v3_3 = new String("DROP TABLE IF EXISTS ");
        } else {
            v3_3 = "DROP TABLE IF EXISTS ".concat(v3_1);
        }
        p2.execSQL(v3_3);
        return;
    }

Method com.facebook.react.modules.storage.ReactDatabaseSupplier.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE catalystLocalStorage (key TEXT PRIMARY KEY, value TEXT NOT NULL)");
        return;
    }

Method com.google.android.gms.internal.measurement.zzfe.zzp() calling method android.database.sqlite.SQLiteDatabase.delete()

Couldn't retrieve source code

Method com.google.android.gms.internal.measurement.zzfe.resetAnalyticsData() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void resetAnalyticsData()
    {
        this.zzfv();
        this.zzab();
        try {
            Integer v0_4 = (this.getWritableDatabase().delete("messages", 0, 0) + 0);
        } catch (Integer v0_1) {
            this.zzgi().zziv().zzg("Error resetting local analytics data. error", v0_1);
            return;
        }
        if (v0_4 > null) {
            this.zzgi().zzjc().zzg("Reset local analytics data. records", Integer.valueOf(v0_4));
        }
        return;
    }

Method com.google.android.gms.internal.measurement.zzfe.zza() calling method android.database.sqlite.SQLiteDatabase.delete()


    private final boolean zza(int p17, byte[] p18)
    {
        this.zzfv();
        this.zzab();
        Long v2_5 = 0;
        if (!this.zzakg) {
            android.content.ContentValues v3_1 = new android.content.ContentValues();
            v3_1.put("type", Integer.valueOf(p17));
            v3_1.put("entry", p18);
            Long v4_4 = 5;
            int v5 = 0;
            int v6 = 5;
            while (v5 < v4_4) {
                int v7 = 0;
                try {
                    int v9 = this.getWritableDatabase();
                    try {
                        if (v9 != 0) {
                            v9.beginTransaction();
                            Long v10_1 = 0;
                            int v12 = v9.rawQuery("select count(1) from messages", 0);
                            try {
                                if ((v12 != 0) && (v12.moveToFirst())) {
                                    v10_1 = v12.getLong(v2_5);
                                }
                                if (v10_1 >= 100000) {
                                    this.zzgi().zziv().log("Data loss, local db full");
                                    long v13_2 = ((100000 - v10_1) + 1);
                                    String[] v11 = new String[1];
                                    v11[v2_5] = Long.toString(v13_2);
                                    Long v10_4 = ((long) v9.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v11));
                                    if (v10_4 != v13_2) {
                                        this.zzgi().zziv().zzd("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v13_2), Long.valueOf(v10_4), Long.valueOf((v13_2 - v10_4)));
                                    }
                                }
                                v9.insertOrThrow("messages", 0, v3_1);
                                v9.setTransactionSuccessful();
                                v9.endTransaction();
                                if (v12 != 0) {
                                    v12.close();
                                }
                                if (v9 != 0) {
                                    v9.close();
                                }
                                return 1;
                            } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                                v7 = v12;
                                android.os.SystemClock.sleep(((long) v6));
                                v6 += 20;
                                if (v7 != 0) {
                                    v7.close();
                                }
                                if (v9 == 0) {
                                    v5++;
                                    v2_5 = 0;
                                    v4_4 = 5;
                                } else {
                                    v9.close();
                                }
                            }
                        } else {
                            this.zzakg = 1;
                            if (v9 != 0) {
                                v9.close();
                            }
                            return v2_5;
                        }
                        v7 = v9;
                        if (v7 != 0) {
                            try {
                                if (v7.inTransaction()) {
                                    v7.endTransaction();
                                }
                            } catch (com.google.android.gms.internal.measurement.zzfk v0_1) {
                                v9 = v7;
                                if (v12 != 0) {
                                    v12.close();
                                }
                                if (v9 != 0) {
                                    v9.close();
                                }
                                throw v0_1;
                            }
                        }
                        this.zzgi().zziv().zzg("Error writing entry to local database", com.google.android.gms.internal.measurement.zzfk v0_0);
                        this.zzakg = 1;
                        if (v12 != 0) {
                            v12.close();
                        }
                        if (v7 == 0) {
                        } else {
                            v7.close();
                        }
                    } catch (com.google.android.gms.internal.measurement.zzfk v0_3) {
                        this.zzgi().zziv().zzg("Error writing entry to local database", v0_3);
                        this.zzakg = 1;
                        if (v7 != 0) {
                            v7.close();
                        }
                        if (v9 == 0) {
                        }
                    } catch (com.google.android.gms.internal.measurement.zzfk v0_0) {
                        v12 = 0;
                    }
                } catch (com.google.android.gms.internal.measurement.zzfk v0_1) {
                    v9 = 0;
                    v12 = 0;
                } catch (com.google.android.gms.internal.measurement.zzfk v0_3) {
                    v9 = 0;
                } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                    v9 = 0;
                } catch (com.google.android.gms.internal.measurement.zzfk v0_0) {
                    v12 = 0;
                } catch (com.google.android.gms.internal.measurement.zzfk v0_1) {
                    v12 = v7;
                }
            }
            this.zzgi().zziy().log("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zzj() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final int zzj(String p7, String p8)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p7);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p8);
        this.zzab();
        this.zzch();
        try {
            android.database.sqlite.SQLiteException v1_1 = this.getWritableDatabase();
            com.google.android.gms.internal.measurement.zzfg v4_0 = new String[2];
            v4_0[0] = p7;
            v4_0[1] = p8;
            Object v7_1 = v1_1.delete("conditional_properties", "app_id=? and name=?", v4_0);
            return v7_1;
        } catch (android.database.sqlite.SQLiteException v1_0) {
            this.zzgi().zziv().zzd("Error deleting conditional property", com.google.android.gms.internal.measurement.zzfi.zzbp(v7_1), this.zzgf().zzbo(p8), v1_0);
            return 0;
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zzhx() calling method android.database.sqlite.SQLiteDatabase.delete()


    final void zzhx()
    {
        this.zzab();
        this.zzch();
        if (this.zzid()) {
            Integer v0_11 = this.zzgj().zzalw.get();
            String v2_1 = this.zzbt().elapsedRealtime();
            if (Math.abs((v2_1 - v0_11)) > ((Long) com.google.android.gms.internal.measurement.zzez.zzajc.get()).longValue()) {
                this.zzgj().zzalw.set(v2_1);
                this.zzab();
                this.zzch();
                if (this.zzid()) {
                    Integer v0_6 = this.getWritableDatabase();
                    com.google.android.gms.internal.measurement.zzfk v1_1 = new String[2];
                    v1_1[0] = String.valueOf(this.zzbt().currentTimeMillis());
                    v1_1[1] = String.valueOf(com.google.android.gms.internal.measurement.zzeh.zzhq());
                    Integer v0_7 = v0_6.delete("queue", "abs(bundle_end_timestamp - ?) > cast(? as integer)", v1_1);
                    if (v0_7 > null) {
                        this.zzgi().zzjc().zzg("Deleted stale rows. rowsDeleted", Integer.valueOf(v0_7));
                    }
                }
            }
            return;
        } else {
            return;
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zzg() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzg(String p6, String p7)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p6);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p7);
        this.zzab();
        this.zzch();
        try {
            android.database.sqlite.SQLiteException v0_3 = this.getWritableDatabase();
            com.google.android.gms.internal.measurement.zzfg v3_2 = new String[2];
            v3_2[0] = p6;
            v3_2[1] = p7;
            this.zzgi().zzjc().zzg("Deleted user attribute rows", Integer.valueOf(v0_3.delete("user_attributes", "app_id=? and name=?", v3_2)));
            return;
        } catch (android.database.sqlite.SQLiteException v0_2) {
            this.zzgi().zziv().zzd("Error deleting user attribute. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p6), this.zzgf().zzbo(p7), v0_2);
            return;
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zzbg() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final long zzbg(String p7)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p7);
        this.zzab();
        this.zzch();
        try {
            long v0_3 = this.getWritableDatabase();
            com.google.android.gms.internal.measurement.zzfk v1_2 = String.valueOf(Math.max(0, Math.min(1000000, this.zzgk().zzb(p7, com.google.android.gms.internal.measurement.zzez.zzait))));
            String[] v5_1 = new String[2];
            v5_1[0] = p7;
            v5_1[1] = v1_2;
            Object v7_1 = v0_3.delete("raw_events", "rowid in (select rowid from raw_events where app_id=? order by rowid desc limit -1 offset ?)", v5_1);
            return ((long) v7_1);
        } catch (long v0_1) {
            this.zzgi().zziv().zze("Error deleting over the limit events. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v7_1), v0_1);
            return 0;
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zzb() calling method android.database.sqlite.SQLiteDatabase.delete()


    final void zzb(String p13, com.google.android.gms.internal.measurement.zzkg[] p14)
    {
        this.zzch();
        this.zzab();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p14);
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        v0.beginTransaction();
        try {
            this.zzch();
            this.zzab();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
            java.util.ArrayList v1_0 = this.getWritableDatabase();
            String v5_5 = new String[1];
            int v6 = 0;
            v5_5[0] = p13;
            v1_0.delete("property_filters", "app_id=?", v5_5);
            String v5_6 = new String[1];
            v5_6[0] = p13;
            v1_0.delete("event_filters", "app_id=?", v5_6);
            java.util.ArrayList v1_1 = p14.length;
            int v2_1 = 0;
        } catch (Throwable v13_1) {
            v0.endTransaction();
            throw v13_1;
        }
        while (v2_1 < v1_1) {
            android.database.sqlite.SQLiteDatabase v3_7 = p14[v2_1];
            this.zzch();
            this.zzab();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_7);
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_7.zzatg);
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_7.zzatf);
            if (v3_7.zzate != null) {
                String v5_11 = v3_7.zzate.intValue();
                int v7_2 = v3_7.zzatg;
                int v9_2 = 0;
                while (v9_2 < v7_2.length) {
                    if (v7_2[v9_2].zzatk != null) {
                        v9_2++;
                    } else {
                        String v5_2 = this.zzgi().zziy();
                        int v7_0 = "Event filter with no ID. Audience definition ignored. appId, audienceId";
                        String v8_0 = com.google.android.gms.internal.measurement.zzfi.zzbp(p13);
                        android.database.sqlite.SQLiteDatabase v3_0 = v3_7.zzate;
                    }
                    v5_2.zze(v7_0, v8_0, v3_0);
                }
                int v7_3 = v3_7.zzatf;
                int v9_1 = 0;
                while (v9_1 < v7_3.length) {
                    if (v7_3[v9_1].zzatk != null) {
                        v9_1++;
                    } else {
                        v5_2 = this.zzgi().zziy();
                        v7_0 = "Property filter with no ID. Audience definition ignored. appId, audienceId";
                        v8_0 = com.google.android.gms.internal.measurement.zzfi.zzbp(p13);
                        v3_0 = v3_7.zzate;
                    }
                }
                int v7_4 = v3_7.zzatg;
                int v9_3 = 0;
                while (v9_3 < v7_4.length) {
                    if (this.zza(p13, v5_11, v7_4[v9_3])) {
                        v9_3++;
                    } else {
                        int v7_5 = 0;
                    }
                    if (v7_5 != 0) {
                        android.database.sqlite.SQLiteDatabase v3_8 = v3_7.zzatf;
                        int v9_4 = 0;
                        while (v9_4 < v3_8.length) {
                            if (this.zza(p13, v5_11, v3_8[v9_4])) {
                                v9_4++;
                            } else {
                                v7_5 = 0;
                                break;
                            }
                        }
                    }
                    if (v7_5 != 0) {
                        v2_1++;
                    } else {
                        this.zzch();
                        this.zzab();
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
                        android.database.sqlite.SQLiteDatabase v3_9 = this.getWritableDatabase();
                        boolean v10_8 = new String[2];
                        v10_8[0] = p13;
                        v10_8[1] = String.valueOf(v5_11);
                        v3_9.delete("property_filters", "app_id=? and audience_id=?", v10_8);
                        int v9_0 = new String[2];
                        v9_0[0] = p13;
                        v9_0[1] = String.valueOf(v5_11);
                        v3_9.delete("event_filters", "app_id=? and audience_id=?", v9_0);
                    }
                }
                v7_5 = 1;
            } else {
                this.zzgi().zziy().zzg("Audience with no ID. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p13));
            }
        }
        java.util.ArrayList v1_3 = new java.util.ArrayList();
        int v2_3 = p14.length;
        while (v6 < v2_3) {
            v1_3.add(p14[v6].zzate);
            v6++;
        }
        this.zza(p13, v1_3);
        v0.setTransactionSuccessful();
        v0.endTransaction();
        return;
    }

Method com.google.android.gms.internal.measurement.zzek.zza() calling method android.database.sqlite.SQLiteDatabase.delete()


    private final boolean zza(String p10, java.util.List p11)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p10);
        this.zzch();
        this.zzab();
        com.google.android.gms.internal.measurement.zzfk v0_2 = this.getWritableDatabase();
        try {
            String v4_8 = new String[1];
            v4_8[0] = p10;
            String v4_0 = this.zza("select count(1) from audience_filter_values where app_id=?", v4_8);
            String v2_3 = Math.max(0, Math.min(2000, this.zzgk().zzb(p10, com.google.android.gms.internal.measurement.zzez.zzajj)));
        } catch (String v11_1) {
            this.zzgi().zziv().zze("Database error querying filters. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p10), v11_1);
            return 0;
        }
        if (v4_0 > ((long) v2_3)) {
            String v4_2 = new java.util.ArrayList();
            int v5_0 = 0;
            while (v5_0 < p11.size()) {
                String v6_11 = ((Integer) p11.get(v5_0));
                if ((v6_11 != null) && ((v6_11 instanceof Integer))) {
                    v4_2.add(Integer.toString(v6_11.intValue()));
                    v5_0++;
                } else {
                    return 0;
                }
            }
            String v11_3 = android.text.TextUtils.join(",", v4_2);
            String v6_5 = new StringBuilder((String.valueOf(v11_3).length() + 2));
            v6_5.append("(");
            v6_5.append(v11_3);
            v6_5.append(")");
            String v11_5 = v6_5.toString();
            boolean v7_1 = new StringBuilder((String.valueOf(v11_5).length() + 140));
            v7_1.append("audience_id in (select audience_id from audience_filter_values where app_id=? and audience_id not in ");
            v7_1.append(v11_5);
            v7_1.append(" order by rowid desc limit -1 offset ?)");
            String v11_7 = v7_1.toString();
            int v5_2 = new String[2];
            v5_2[0] = p10;
            v5_2[1] = Integer.toString(v2_3);
            if (v0_2.delete("audience_filter_values", v11_7, v5_2) <= 0) {
                return 0;
            } else {
                return 1;
            }
        } else {
            return 0;
        }
    }

Method com.google.android.gms.internal.measurement.zzjt.zzf() calling method android.database.sqlite.SQLiteDatabase.delete()


    final void zzf(com.google.android.gms.internal.measurement.zzeb p19)
    {
        void v18_1 = this.zzab();
        v18_1.zzlc();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p19);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzafa)) {
            String v0_3 = v18_1.zzjh().zzbf(p19.packageName);
            if ((v0_3 != null) && ((android.text.TextUtils.isEmpty(v0_3.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzafa)))) {
                v0_3.zzx(0);
                v18_1.zzjh().zza(v0_3);
                v18_1.zzky().zzca(p19.packageName);
            }
            if (p19.zzafk) {
                long v5_6 = p19.zzaga;
                if (v5_6 == 0) {
                    v5_6 = this.zzacv.zzbt().currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_64 = p19.zzagb;
                if ((v0_64 == null) || (v0_64 == 1)) {
                    v15_3 = v0_64;
                } else {
                    this.zzacv.zzgi().zziy().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName), Integer.valueOf(v0_64));
                    v15_3 = 0;
                }
                v18_1.zzjh().beginTransaction();
                try {
                    String v0_7 = v18_1.zzjh().zzbf(p19.packageName);
                } catch (String v0_66) {
                    v18_1.zzjh().endTransaction();
                    throw v0_66;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzafa)))) {
                    this.zzacv.zzgi().zziy().zzg("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v0_7.zzah()));
                    com.google.android.gms.internal.measurement.zzka v7_43 = v18_1.zzjh();
                    String v8_21 = v0_7.zzah();
                    v7_43.zzch();
                    v7_43.zzab();
                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v8_21);
                    try {
                        String v0_0 = v7_43.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_21;
                        String v10_10 = (((((((((v0_0.delete("events", "app_id=?", v9_0) + 0) + v0_0.delete("user_attributes", "app_id=?", v9_0)) + v0_0.delete("conditional_properties", "app_id=?", v9_0)) + v0_0.delete("apps", "app_id=?", v9_0)) + v0_0.delete("raw_events", "app_id=?", v9_0)) + v0_0.delete("raw_events_metadata", "app_id=?", v9_0)) + v0_0.delete("event_filters", "app_id=?", v9_0)) + v0_0.delete("property_filters", "app_id=?", v9_0)) + v0_0.delete("audience_filter_values", "app_id=?", v9_0));
                    } catch (String v0_4) {
                        v7_43.zzgi().zziv().zze("Error deleting application data. appId, error", com.google.android.gms.internal.measurement.zzfi.zzbp(v8_21), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_43.zzgi().zzjc().zze("Deleted application data. app, records", v8_21, Integer.valueOf(v10_10));
                    }
                }
                if (v0_7 != null) {
                    String v0_9;
                    if (v0_7.zzgu() == -2147483648) {
                        if ((v0_7.zzag() == null) || (v0_7.zzag().equals(p19.zztg))) {
                            String v0_12;
                            String v8_6;
                            com.google.android.gms.internal.measurement.zzka v7_13;
                            String v0_11;
                            v18_1.zzg(p19);
                            if (v15_3 != null) {
                                if (v15_3 != 1) {
                                    v0_11 = 0;
                                } else {
                                    v0_12 = v18_1.zzjh();
                                    v7_13 = p19.packageName;
                                    v8_6 = "_v";
                                    v0_11 = v0_12.zzf(v7_13, v8_6);
                                }
                            } else {
                                v0_12 = v18_1.zzjh();
                                v7_13 = p19.packageName;
                                v8_6 = "_f";
                            }
                            com.google.android.gms.internal.measurement.zzka v3_2;
                            if (v0_11 != null) {
                                if (p19.zzafz) {
                                    v3_2 = new com.google.android.gms.internal.measurement.zzex;
                                    v3_2("_cd", new com.google.android.gms.internal.measurement.zzeu(new android.os.Bundle()), "auto", v5_6);
                                    this.zzb(v3_2, p19);
                                }
                            } else {
                                Long v13_0;
                                long v9_13 = (((v5_6 / 3600000) + 1) * 3600000);
                                if (v15_3 != null) {
                                    v13_0 = 1;
                                    if (v15_3 == 1) {
                                        String v0_16 = new com.google.android.gms.internal.measurement.zzka;
                                        v0_16("_fvt", v5_6, Long.valueOf(v9_13), "auto");
                                        this.zzb(v0_16, p19);
                                        v18_1 = v18_1.zzab();
                                        v18_1.zzlc();
                                        String v0_18 = new android.os.Bundle();
                                        v0_18.putLong("_c", 1);
                                        v0_18.putLong("_r", 1);
                                        if ((this.zzacv.zzgk().zzbc(p19.packageName)) && (p19.zzagc)) {
                                            v0_18.putLong("_dac", 1);
                                        }
                                        com.google.android.gms.internal.measurement.zzka v3_11 = new com.google.android.gms.internal.measurement.zzex;
                                        v3_11("_v", new com.google.android.gms.internal.measurement.zzeu(v0_18), "auto", v5_6);
                                        this.zzb(v3_11, p19);
                                    }
                                } else {
                                    String v0_19 = new com.google.android.gms.internal.measurement.zzka;
                                    v13_0 = 1;
                                    v0_19("_fot", v5_6, Long.valueOf(v9_13), "auto");
                                    this.zzb(v0_19, p19);
                                    v18_1 = v18_1.zzab();
                                    v18_1.zzlc();
                                    android.os.Bundle v15_2 = new android.os.Bundle();
                                    v15_2.putLong("_c", 1);
                                    v15_2.putLong("_r", 1);
                                    v15_2.putLong("_uwa", 0);
                                    v15_2.putLong("_pfo", 0);
                                    v15_2.putLong("_sys", 0);
                                    v15_2.putLong("_sysu", 0);
                                    if ((this.zzacv.zzgk().zzbc(p19.packageName)) && (p19.zzagc)) {
                                        v15_2.putLong("_dac", 1);
                                    }
                                    if (this.zzacv.getContext().getPackageManager() != null) {
                                        try {
                                            String v0_38 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzacv.getContext()).getPackageInfo(p19.packageName, 0);
                                        } catch (String v0_39) {
                                            this.zzacv.zzgi().zziv().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName), v0_39);
                                            v0_38 = 0;
                                        }
                                        if ((v0_38 != null) && (v0_38.firstInstallTime != 0)) {
                                            String v0_42;
                                            if (v0_38.firstInstallTime == v0_38.lastUpdateTime) {
                                                v0_42 = 1;
                                            } else {
                                                v15_2.putLong("_uwa", 1);
                                                v0_42 = 0;
                                            }
                                            long v9_22;
                                            String v12_10 = new com.google.android.gms.internal.measurement.zzka;
                                            if (v0_42 == null) {
                                                v9_22 = 0;
                                            } else {
                                                v9_22 = 1;
                                            }
                                            com.google.android.gms.internal.measurement.zzka v3_12 = v12_10;
                                            v12_10("_fi", v5_6, Long.valueOf(v9_22), "auto");
                                            this.zzb(v3_12, p19);
                                        }
                                        try {
                                            android.content.pm.ApplicationInfo v16_0 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzacv.getContext()).getApplicationInfo(p19.packageName, 0);
                                        } catch (String v0_49) {
                                            this.zzacv.zzgi().zziv().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName), v0_49);
                                        }
                                        String v0_51 = v16_0;
                                        if (v0_51 != null) {
                                            if ((v0_51.flags & 1) != 0) {
                                                v15_2.putLong("_sys", 1);
                                            }
                                            if ((v0_51.flags & 128) != 0) {
                                                v15_2.putLong("_sysu", 1);
                                            }
                                        }
                                    } else {
                                        this.zzacv.zzgi().zziv().zzg("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName));
                                    }
                                    String v0_59 = v18_1.zzjh();
                                    com.google.android.gms.internal.measurement.zzka v3_20 = p19.packageName;
                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_20);
                                    v0_59.zzab();
                                    v0_59.zzch();
                                    com.google.android.gms.internal.measurement.zzka v3_21 = v0_59.zzm(v3_20, "first_open_count");
                                    if (v3_21 >= 0) {
                                        v15_2.putLong("_pfo", v3_21);
                                    }
                                    String v0_62 = new com.google.android.gms.internal.measurement.zzex;
                                    v0_62("_f", new com.google.android.gms.internal.measurement.zzeu(v15_2), "auto", v5_6);
                                    this.zzb(v0_62, p19);
                                }
                                String v0_65 = new android.os.Bundle();
                                v0_65.putLong("_et", v13_0);
                                v3_2 = new com.google.android.gms.internal.measurement.zzex;
                                v3_2("_e", new com.google.android.gms.internal.measurement.zzeu(v0_65), "auto", v5_6);
                            }
                            v18_1.zzjh().setTransactionSuccessful();
                            v18_1.zzjh().endTransaction();
                            return;
                        } else {
                            com.google.android.gms.internal.measurement.zzka v7_7 = new android.os.Bundle();
                            v7_7.putString("_pv", v0_7.zzag());
                            v0_9 = new com.google.android.gms.internal.measurement.zzex;
                            v0_9("_au", new com.google.android.gms.internal.measurement.zzeu(v7_7), "auto", v5_6);
                        }
                    } else {
                        if (v0_7.zzgu() == p19.zzafg) {
                        } else {
                            com.google.android.gms.internal.measurement.zzka v7_11 = new android.os.Bundle();
                            v7_11.putString("_pv", v0_7.zzag());
                            v0_9 = new com.google.android.gms.internal.measurement.zzex;
                            v0_9("_au", new com.google.android.gms.internal.measurement.zzeu(v7_11), "auto", v5_6);
                        }
                    }
                    this.zzb(v0_9, p19);
                }
            } else {
                v18_1.zzg(p19);
                return;
            }
        } else {
            return;
        }
    }

Method com.google.android.gms.internal.measurement.zzjt.zzf() calling method android.database.sqlite.SQLiteDatabase.delete()


    final void zzf(com.google.android.gms.internal.measurement.zzeb p19)
    {
        void v18_1 = this.zzab();
        v18_1.zzlc();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p19);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzafa)) {
            String v0_3 = v18_1.zzjh().zzbf(p19.packageName);
            if ((v0_3 != null) && ((android.text.TextUtils.isEmpty(v0_3.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzafa)))) {
                v0_3.zzx(0);
                v18_1.zzjh().zza(v0_3);
                v18_1.zzky().zzca(p19.packageName);
            }
            if (p19.zzafk) {
                long v5_6 = p19.zzaga;
                if (v5_6 == 0) {
                    v5_6 = this.zzacv.zzbt().currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_64 = p19.zzagb;
                if ((v0_64 == null) || (v0_64 == 1)) {
                    v15_3 = v0_64;
                } else {
                    this.zzacv.zzgi().zziy().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName), Integer.valueOf(v0_64));
                    v15_3 = 0;
                }
                v18_1.zzjh().beginTransaction();
                try {
                    String v0_7 = v18_1.zzjh().zzbf(p19.packageName);
                } catch (String v0_66) {
                    v18_1.zzjh().endTransaction();
                    throw v0_66;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzafa)))) {
                    this.zzacv.zzgi().zziy().zzg("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v0_7.zzah()));
                    com.google.android.gms.internal.measurement.zzka v7_43 = v18_1.zzjh();
                    String v8_21 = v0_7.zzah();
                    v7_43.zzch();
                    v7_43.zzab();
                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v8_21);
                    try {
                        String v0_0 = v7_43.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_21;
                        String v10_10 = (((((((((v0_0.delete("events", "app_id=?", v9_0) + 0) + v0_0.delete("user_attributes", "app_id=?", v9_0)) + v0_0.delete("conditional_properties", "app_id=?", v9_0)) + v0_0.delete("apps", "app_id=?", v9_0)) + v0_0.delete("raw_events", "app_id=?", v9_0)) + v0_0.delete("raw_events_metadata", "app_id=?", v9_0)) + v0_0.delete("event_filters", "app_id=?", v9_0)) + v0_0.delete("property_filters", "app_id=?", v9_0)) + v0_0.delete("audience_filter_values", "app_id=?", v9_0));
                    } catch (String v0_4) {
                        v7_43.zzgi().zziv().zze("Error deleting application data. appId, error", com.google.android.gms.internal.measurement.zzfi.zzbp(v8_21), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_43.zzgi().zzjc().zze("Deleted application data. app, records", v8_21, Integer.valueOf(v10_10));
                    }
                }
                if (v0_7 != null) {
                    String v0_9;
                    if (v0_7.zzgu() == -2147483648) {
                        if ((v0_7.zzag() == null) || (v0_7.zzag().equals(p19.zztg))) {
                            com.google.android.gms.internal.measurement.zzka v7_13;
                            String v0_11;
                            String v0_12;
                            String v8_6;
                            v18_1.zzg(p19);
                            if (v15_3 != null) {
                                if (v15_3 != 1) {
                                    v0_11 = 0;
                                } else {
                                    v0_12 = v18_1.zzjh();
                                    v7_13 = p19.packageName;
                                    v8_6 = "_v";
                                    v0_11 = v0_12.zzf(v7_13, v8_6);
                                }
                            } else {
                                v0_12 = v18_1.zzjh();
                                v7_13 = p19.packageName;
                                v8_6 = "_f";
                            }
                            com.google.android.gms.internal.measurement.zzka v3_2;
                            if (v0_11 != null) {
                                if (p19.zzafz) {
                                    v3_2 = new com.google.android.gms.internal.measurement.zzex;
                                    v3_2("_cd", new com.google.android.gms.internal.measurement.zzeu(new android.os.Bundle()), "auto", v5_6);
                                    this.zzb(v3_2, p19);
                                }
                            } else {
                                Long v13_0;
                                long v9_13 = (((v5_6 / 3600000) + 1) * 3600000);
                                if (v15_3 != null) {
                                    v13_0 = 1;
                                    if (v15_3 == 1) {
                                        String v0_16 = new com.google.android.gms.internal.measurement.zzka;
                                        v0_16("_fvt", v5_6, Long.valueOf(v9_13), "auto");
                                        this.zzb(v0_16, p19);
                                        v18_1 = v18_1.zzab();
                                        v18_1.zzlc();
                                        String v0_18 = new android.os.Bundle();
                                        v0_18.putLong("_c", 1);
                                        v0_18.putLong("_r", 1);
                                        if ((this.zzacv.zzgk().zzbc(p19.packageName)) && (p19.zzagc)) {
                                            v0_18.putLong("_dac", 1);
                                        }
                                        com.google.android.gms.internal.measurement.zzka v3_11 = new com.google.android.gms.internal.measurement.zzex;
                                        v3_11("_v", new com.google.android.gms.internal.measurement.zzeu(v0_18), "auto", v5_6);
                                        this.zzb(v3_11, p19);
                                    }
                                } else {
                                    String v0_19 = new com.google.android.gms.internal.measurement.zzka;
                                    v13_0 = 1;
                                    v0_19("_fot", v5_6, Long.valueOf(v9_13), "auto");
                                    this.zzb(v0_19, p19);
                                    v18_1 = v18_1.zzab();
                                    v18_1.zzlc();
                                    android.os.Bundle v15_2 = new android.os.Bundle();
                                    v15_2.putLong("_c", 1);
                                    v15_2.putLong("_r", 1);
                                    v15_2.putLong("_uwa", 0);
                                    v15_2.putLong("_pfo", 0);
                                    v15_2.putLong("_sys", 0);
                                    v15_2.putLong("_sysu", 0);
                                    if ((this.zzacv.zzgk().zzbc(p19.packageName)) && (p19.zzagc)) {
                                        v15_2.putLong("_dac", 1);
                                    }
                                    if (this.zzacv.getContext().getPackageManager() != null) {
                                        try {
                                            String v0_38 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzacv.getContext()).getPackageInfo(p19.packageName, 0);
                                        } catch (String v0_39) {
                                            this.zzacv.zzgi().zziv().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName), v0_39);
                                            v0_38 = 0;
                                        }
                                        if ((v0_38 != null) && (v0_38.firstInstallTime != 0)) {
                                            String v0_42;
                                            if (v0_38.firstInstallTime == v0_38.lastUpdateTime) {
                                                v0_42 = 1;
                                            } else {
                                                v15_2.putLong("_uwa", 1);
                                                v0_42 = 0;
                                            }
                                            long v9_22;
                                            String v12_10 = new com.google.android.gms.internal.measurement.zzka;
                                            if (v0_42 == null) {
                                                v9_22 = 0;
                                            } else {
                                                v9_22 = 1;
                                            }
                                            com.google.android.gms.internal.measurement.zzka v3_12 = v12_10;
                                            v12_10("_fi", v5_6, Long.valueOf(v9_22), "auto");
                                            this.zzb(v3_12, p19);
                                        }
                                        try {
                                            android.content.pm.ApplicationInfo v16_0 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzacv.getContext()).getApplicationInfo(p19.packageName, 0);
                                        } catch (String v0_49) {
                                            this.zzacv.zzgi().zziv().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName), v0_49);
                                        }
                                        String v0_51 = v16_0;
                                        if (v0_51 != null) {
                                            if ((v0_51.flags & 1) != 0) {
                                                v15_2.putLong("_sys", 1);
                                            }
                                            if ((v0_51.flags & 128) != 0) {
                                                v15_2.putLong("_sysu", 1);
                                            }
                                        }
                                    } else {
                                        this.zzacv.zzgi().zziv().zzg("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName));
                                    }
                                    String v0_59 = v18_1.zzjh();
                                    com.google.android.gms.internal.measurement.zzka v3_20 = p19.packageName;
                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_20);
                                    v0_59.zzab();
                                    v0_59.zzch();
                                    com.google.android.gms.internal.measurement.zzka v3_21 = v0_59.zzm(v3_20, "first_open_count");
                                    if (v3_21 >= 0) {
                                        v15_2.putLong("_pfo", v3_21);
                                    }
                                    String v0_62 = new com.google.android.gms.internal.measurement.zzex;
                                    v0_62("_f", new com.google.android.gms.internal.measurement.zzeu(v15_2), "auto", v5_6);
                                    this.zzb(v0_62, p19);
                                }
                                String v0_65 = new android.os.Bundle();
                                v0_65.putLong("_et", v13_0);
                                v3_2 = new com.google.android.gms.internal.measurement.zzex;
                                v3_2("_e", new com.google.android.gms.internal.measurement.zzeu(v0_65), "auto", v5_6);
                            }
                            v18_1.zzjh().setTransactionSuccessful();
                            v18_1.zzjh().endTransaction();
                            return;
                        } else {
                            com.google.android.gms.internal.measurement.zzka v7_7 = new android.os.Bundle();
                            v7_7.putString("_pv", v0_7.zzag());
                            v0_9 = new com.google.android.gms.internal.measurement.zzex;
                            v0_9("_au", new com.google.android.gms.internal.measurement.zzeu(v7_7), "auto", v5_6);
                        }
                    } else {
                        if (v0_7.zzgu() == p19.zzafg) {
                        } else {
                            com.google.android.gms.internal.measurement.zzka v7_11 = new android.os.Bundle();
                            v7_11.putString("_pv", v0_7.zzag());
                            v0_9 = new com.google.android.gms.internal.measurement.zzex;
                            v0_9("_au", new com.google.android.gms.internal.measurement.zzeu(v7_11), "auto", v5_6);
                        }
                    }
                    this.zzb(v0_9, p19);
                }
            } else {
                v18_1.zzg(p19);
                return;
            }
        } else {
            return;
        }
    }

Method com.google.android.gms.internal.measurement.zzjt.zzf() calling method android.database.sqlite.SQLiteDatabase.delete()


    final void zzf(com.google.android.gms.internal.measurement.zzeb p19)
    {
        void v18_1 = this.zzab();
        v18_1.zzlc();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p19);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzafa)) {
            String v0_3 = v18_1.zzjh().zzbf(p19.packageName);
            if ((v0_3 != null) && ((android.text.TextUtils.isEmpty(v0_3.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzafa)))) {
                v0_3.zzx(0);
                v18_1.zzjh().zza(v0_3);
                v18_1.zzky().zzca(p19.packageName);
            }
            if (p19.zzafk) {
                long v5_6 = p19.zzaga;
                if (v5_6 == 0) {
                    v5_6 = this.zzacv.zzbt().currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_64 = p19.zzagb;
                if ((v0_64 == null) || (v0_64 == 1)) {
                    v15_3 = v0_64;
                } else {
                    this.zzacv.zzgi().zziy().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName), Integer.valueOf(v0_64));
                    v15_3 = 0;
                }
                v18_1.zzjh().beginTransaction();
                try {
                    String v0_7 = v18_1.zzjh().zzbf(p19.packageName);
                } catch (String v0_66) {
                    v18_1.zzjh().endTransaction();
                    throw v0_66;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzafa)))) {
                    this.zzacv.zzgi().zziy().zzg("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v0_7.zzah()));
                    com.google.android.gms.internal.measurement.zzka v7_43 = v18_1.zzjh();
                    String v8_21 = v0_7.zzah();
                    v7_43.zzch();
                    v7_43.zzab();
                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v8_21);
                    try {
                        String v0_0 = v7_43.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_21;
                        String v10_10 = (((((((((v0_0.delete("events", "app_id=?", v9_0) + 0) + v0_0.delete("user_attributes", "app_id=?", v9_0)) + v0_0.delete("conditional_properties", "app_id=?", v9_0)) + v0_0.delete("apps", "app_id=?", v9_0)) + v0_0.delete("raw_events", "app_id=?", v9_0)) + v0_0.delete("raw_events_metadata", "app_id=?", v9_0)) + v0_0.delete("event_filters", "app_id=?", v9_0)) + v0_0.delete("property_filters", "app_id=?", v9_0)) + v0_0.delete("audience_filter_values", "app_id=?", v9_0));
                    } catch (String v0_4) {
                        v7_43.zzgi().zziv().zze("Error deleting application data. appId, error", com.google.android.gms.internal.measurement.zzfi.zzbp(v8_21), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_43.zzgi().zzjc().zze("Deleted application data. app, records", v8_21, Integer.valueOf(v10_10));
                    }
                }
                if (v0_7 != null) {
                    String v0_9;
                    if (v0_7.zzgu() == -2147483648) {
                        if ((v0_7.zzag() == null) || (v0_7.zzag().equals(p19.zztg))) {
                            String v0_11;
                            String v8_6;
                            com.google.android.gms.internal.measurement.zzka v7_13;
                            String v0_12;
                            v18_1.zzg(p19);
                            if (v15_3 != null) {
                                if (v15_3 != 1) {
                                    v0_11 = 0;
                                } else {
                                    v0_12 = v18_1.zzjh();
                                    v7_13 = p19.packageName;
                                    v8_6 = "_v";
                                    v0_11 = v0_12.zzf(v7_13, v8_6);
                                }
                            } else {
                                v0_12 = v18_1.zzjh();
                                v7_13 = p19.packageName;
                                v8_6 = "_f";
                            }
                            com.google.android.gms.internal.measurement.zzka v3_2;
                            if (v0_11 != null) {
                                if (p19.zzafz) {
                                    v3_2 = new com.google.android.gms.internal.measurement.zzex;
                                    v3_2("_cd", new com.google.android.gms.internal.measurement.zzeu(new android.os.Bundle()), "auto", v5_6);
                                    this.zzb(v3_2, p19);
                                }
                            } else {
                                Long v13_0;
                                long v9_13 = (((v5_6 / 3600000) + 1) * 3600000);
                                if (v15_3 != null) {
                                    v13_0 = 1;
                                    if (v15_3 == 1) {
                                        String v0_16 = new com.google.android.gms.internal.measurement.zzka;
                                        v0_16("_fvt", v5_6, Long.valueOf(v9_13), "auto");
                                        this.zzb(v0_16, p19);
                                        v18_1 = v18_1.zzab();
                                        v18_1.zzlc();
                                        String v0_18 = new android.os.Bundle();
                                        v0_18.putLong("_c", 1);
                                        v0_18.putLong("_r", 1);
                                        if ((this.zzacv.zzgk().zzbc(p19.packageName)) && (p19.zzagc)) {
                                            v0_18.putLong("_dac", 1);
                                        }
                                        com.google.android.gms.internal.measurement.zzka v3_11 = new com.google.android.gms.internal.measurement.zzex;
                                        v3_11("_v", new com.google.android.gms.internal.measurement.zzeu(v0_18), "auto", v5_6);
                                        this.zzb(v3_11, p19);
                                    }
                                } else {
                                    String v0_19 = new com.google.android.gms.internal.measurement.zzka;
                                    v13_0 = 1;
                                    v0_19("_fot", v5_6, Long.valueOf(v9_13), "auto");
                                    this.zzb(v0_19, p19);
                                    v18_1 = v18_1.zzab();
                                    v18_1.zzlc();
                                    android.os.Bundle v15_2 = new android.os.Bundle();
                                    v15_2.putLong("_c", 1);
                                    v15_2.putLong("_r", 1);
                                    v15_2.putLong("_uwa", 0);
                                    v15_2.putLong("_pfo", 0);
                                    v15_2.putLong("_sys", 0);
                                    v15_2.putLong("_sysu", 0);
                                    if ((this.zzacv.zzgk().zzbc(p19.packageName)) && (p19.zzagc)) {
                                        v15_2.putLong("_dac", 1);
                                    }
                                    if (this.zzacv.getContext().getPackageManager() != null) {
                                        try {
                                            String v0_38 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzacv.getContext()).getPackageInfo(p19.packageName, 0);
                                        } catch (String v0_39) {
                                            this.zzacv.zzgi().zziv().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName), v0_39);
                                            v0_38 = 0;
                                        }
                                        if ((v0_38 != null) && (v0_38.firstInstallTime != 0)) {
                                            String v0_42;
                                            if (v0_38.firstInstallTime == v0_38.lastUpdateTime) {
                                                v0_42 = 1;
                                            } else {
                                                v15_2.putLong("_uwa", 1);
                                                v0_42 = 0;
                                            }
                                            long v9_22;
                                            String v12_10 = new com.google.android.gms.internal.measurement.zzka;
                                            if (v0_42 == null) {
                                                v9_22 = 0;
                                            } else {
                                                v9_22 = 1;
                                            }
                                            com.google.android.gms.internal.measurement.zzka v3_12 = v12_10;
                                            v12_10("_fi", v5_6, Long.valueOf(v9_22), "auto");
                                            this.zzb(v3_12, p19);
                                        }
                                        try {
                                            android.content.pm.ApplicationInfo v16_0 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzacv.getContext()).getApplicationInfo(p19.packageName, 0);
                                        } catch (String v0_49) {
                                            this.zzacv.zzgi().zziv().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName), v0_49);
                                        }
                                        String v0_51 = v16_0;
                                        if (v0_51 != null) {
                                            if ((v0_51.flags & 1) != 0) {
                                                v15_2.putLong("_sys", 1);
                                            }
                                            if ((v0_51.flags & 128) != 0) {
                                                v15_2.putLong("_sysu", 1);
                                            }
                                        }
                                    } else {
                                        this.zzacv.zzgi().zziv().zzg("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName));
                                    }
                                    String v0_59 = v18_1.zzjh();
                                    com.google.android.gms.internal.measurement.zzka v3_20 = p19.packageName;
                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_20);
                                    v0_59.zzab();
                                    v0_59.zzch();
                                    com.google.android.gms.internal.measurement.zzka v3_21 = v0_59.zzm(v3_20, "first_open_count");
                                    if (v3_21 >= 0) {
                                        v15_2.putLong("_pfo", v3_21);
                                    }
                                    String v0_62 = new com.google.android.gms.internal.measurement.zzex;
                                    v0_62("_f", new com.google.android.gms.internal.measurement.zzeu(v15_2), "auto", v5_6);
                                    this.zzb(v0_62, p19);
                                }
                                String v0_65 = new android.os.Bundle();
                                v0_65.putLong("_et", v13_0);
                                v3_2 = new com.google.android.gms.internal.measurement.zzex;
                                v3_2("_e", new com.google.android.gms.internal.measurement.zzeu(v0_65), "auto", v5_6);
                            }
                            v18_1.zzjh().setTransactionSuccessful();
                            v18_1.zzjh().endTransaction();
                            return;
                        } else {
                            com.google.android.gms.internal.measurement.zzka v7_7 = new android.os.Bundle();
                            v7_7.putString("_pv", v0_7.zzag());
                            v0_9 = new com.google.android.gms.internal.measurement.zzex;
                            v0_9("_au", new com.google.android.gms.internal.measurement.zzeu(v7_7), "auto", v5_6);
                        }
                    } else {
                        if (v0_7.zzgu() == p19.zzafg) {
                        } else {
                            com.google.android.gms.internal.measurement.zzka v7_11 = new android.os.Bundle();
                            v7_11.putString("_pv", v0_7.zzag());
                            v0_9 = new com.google.android.gms.internal.measurement.zzex;
                            v0_9("_au", new com.google.android.gms.internal.measurement.zzeu(v7_11), "auto", v5_6);
                        }
                    }
                    this.zzb(v0_9, p19);
                }
            } else {
                v18_1.zzg(p19);
                return;
            }
        } else {
            return;
        }
    }

Method com.google.android.gms.internal.measurement.zzjt.zzf() calling method android.database.sqlite.SQLiteDatabase.delete()


    final void zzf(com.google.android.gms.internal.measurement.zzeb p19)
    {
        void v18_1 = this.zzab();
        v18_1.zzlc();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p19);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzafa)) {
            String v0_3 = v18_1.zzjh().zzbf(p19.packageName);
            if ((v0_3 != null) && ((android.text.TextUtils.isEmpty(v0_3.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzafa)))) {
                v0_3.zzx(0);
                v18_1.zzjh().zza(v0_3);
                v18_1.zzky().zzca(p19.packageName);
            }
            if (p19.zzafk) {
                long v5_6 = p19.zzaga;
                if (v5_6 == 0) {
                    v5_6 = this.zzacv.zzbt().currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_64 = p19.zzagb;
                if ((v0_64 == null) || (v0_64 == 1)) {
                    v15_3 = v0_64;
                } else {
                    this.zzacv.zzgi().zziy().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName), Integer.valueOf(v0_64));
                    v15_3 = 0;
                }
                v18_1.zzjh().beginTransaction();
                try {
                    String v0_7 = v18_1.zzjh().zzbf(p19.packageName);
                } catch (String v0_66) {
                    v18_1.zzjh().endTransaction();
                    throw v0_66;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzafa)))) {
                    this.zzacv.zzgi().zziy().zzg("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v0_7.zzah()));
                    com.google.android.gms.internal.measurement.zzka v7_43 = v18_1.zzjh();
                    String v8_21 = v0_7.zzah();
                    v7_43.zzch();
                    v7_43.zzab();
                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v8_21);
                    try {
                        String v0_0 = v7_43.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_21;
                        String v10_10 = (((((((((v0_0.delete("events", "app_id=?", v9_0) + 0) + v0_0.delete("user_attributes", "app_id=?", v9_0)) + v0_0.delete("conditional_properties", "app_id=?", v9_0)) + v0_0.delete("apps", "app_id=?", v9_0)) + v0_0.delete("raw_events", "app_id=?", v9_0)) + v0_0.delete("raw_events_metadata", "app_id=?", v9_0)) + v0_0.delete("event_filters", "app_id=?", v9_0)) + v0_0.delete("property_filters", "app_id=?", v9_0)) + v0_0.delete("audience_filter_values", "app_id=?", v9_0));
                    } catch (String v0_4) {
                        v7_43.zzgi().zziv().zze("Error deleting application data. appId, error", com.google.android.gms.internal.measurement.zzfi.zzbp(v8_21), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_43.zzgi().zzjc().zze("Deleted application data. app, records", v8_21, Integer.valueOf(v10_10));
                    }
                }
                if (v0_7 != null) {
                    String v0_9;
                    if (v0_7.zzgu() == -2147483648) {
                        if ((v0_7.zzag() == null) || (v0_7.zzag().equals(p19.zztg))) {
                            String v8_6;
                            com.google.android.gms.internal.measurement.zzka v7_13;
                            String v0_12;
                            String v0_11;
                            v18_1.zzg(p19);
                            if (v15_3 != null) {
                                if (v15_3 != 1) {
                                    v0_11 = 0;
                                } else {
                                    v0_12 = v18_1.zzjh();
                                    v7_13 = p19.packageName;
                                    v8_6 = "_v";
                                    v0_11 = v0_12.zzf(v7_13, v8_6);
                                }
                            } else {
                                v0_12 = v18_1.zzjh();
                                v7_13 = p19.packageName;
                                v8_6 = "_f";
                            }
                            com.google.android.gms.internal.measurement.zzka v3_2;
                            if (v0_11 != null) {
                                if (p19.zzafz) {
                                    v3_2 = new com.google.android.gms.internal.measurement.zzex;
                                    v3_2("_cd", new com.google.android.gms.internal.measurement.zzeu(new android.os.Bundle()), "auto", v5_6);
                                    this.zzb(v3_2, p19);
                                }
                            } else {
                                Long v13_0;
                                long v9_13 = (((v5_6 / 3600000) + 1) * 3600000);
                                if (v15_3 != null) {
                                    v13_0 = 1;
                                    if (v15_3 == 1) {
                                        String v0_16 = new com.google.android.gms.internal.measurement.zzka;
                                        v0_16("_fvt", v5_6, Long.valueOf(v9_13), "auto");
                                        this.zzb(v0_16, p19);
                                        v18_1 = v18_1.zzab();
                                        v18_1.zzlc();
                                        String v0_18 = new android.os.Bundle();
                                        v0_18.putLong("_c", 1);
                                        v0_18.putLong("_r", 1);
                                        if ((this.zzacv.zzgk().zzbc(p19.packageName)) && (p19.zzagc)) {
                                            v0_18.putLong("_dac", 1);
                                        }
                                        com.google.android.gms.internal.measurement.zzka v3_11 = new com.google.android.gms.internal.measurement.zzex;
                                        v3_11("_v", new com.google.android.gms.internal.measurement.zzeu(v0_18), "auto", v5_6);
                                        this.zzb(v3_11, p19);
                                    }
                                } else {
                                    String v0_19 = new com.google.android.gms.internal.measurement.zzka;
                                    v13_0 = 1;
                                    v0_19("_fot", v5_6, Long.valueOf(v9_13), "auto");
                                    this.zzb(v0_19, p19);
                                    v18_1 = v18_1.zzab();
                                    v18_1.zzlc();
                                    android.os.Bundle v15_2 = new android.os.Bundle();
                                    v15_2.putLong("_c", 1);
                                    v15_2.putLong("_r", 1);
                                    v15_2.putLong("_uwa", 0);
                                    v15_2.putLong("_pfo", 0);
                                    v15_2.putLong("_sys", 0);
                                    v15_2.putLong("_sysu", 0);
                                    if ((this.zzacv.zzgk().zzbc(p19.packageName)) && (p19.zzagc)) {
                                        v15_2.putLong("_dac", 1);
                                    }
                                    if (this.zzacv.getContext().getPackageManager() != null) {
                                        try {
                                            String v0_38 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzacv.getContext()).getPackageInfo(p19.packageName, 0);
                                        } catch (String v0_39) {
                                            this.zzacv.zzgi().zziv().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName), v0_39);
                                            v0_38 = 0;
                                        }
                                        if ((v0_38 != null) && (v0_38.firstInstallTime != 0)) {
                                            String v0_42;
                                            if (v0_38.firstInstallTime == v0_38.lastUpdateTime) {
                                                v0_42 = 1;
                                            } else {
                                                v15_2.putLong("_uwa", 1);
                                                v0_42 = 0;
                                            }
                                            long v9_22;
                                            String v12_10 = new com.google.android.gms.internal.measurement.zzka;
                                            if (v0_42 == null) {
                                                v9_22 = 0;
                                            } else {
                                                v9_22 = 1;
                                            }
                                            com.google.android.gms.internal.measurement.zzka v3_12 = v12_10;
                                            v12_10("_fi", v5_6, Long.valueOf(v9_22), "auto");
                                            this.zzb(v3_12, p19);
                                        }
                                        try {
                                            android.content.pm.ApplicationInfo v16_0 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzacv.getContext()).getApplicationInfo(p19.packageName, 0);
                                        } catch (String v0_49) {
                                            this.zzacv.zzgi().zziv().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName), v0_49);
                                        }
                                        String v0_51 = v16_0;
                                        if (v0_51 != null) {
                                            if ((v0_51.flags & 1) != 0) {
                                                v15_2.putLong("_sys", 1);
                                            }
                                            if ((v0_51.flags & 128) != 0) {
                                                v15_2.putLong("_sysu", 1);
                                            }
                                        }
                                    } else {
                                        this.zzacv.zzgi().zziv().zzg("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName));
                                    }
                                    String v0_59 = v18_1.zzjh();
                                    com.google.android.gms.internal.measurement.zzka v3_20 = p19.packageName;
                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_20);
                                    v0_59.zzab();
                                    v0_59.zzch();
                                    com.google.android.gms.internal.measurement.zzka v3_21 = v0_59.zzm(v3_20, "first_open_count");
                                    if (v3_21 >= 0) {
                                        v15_2.putLong("_pfo", v3_21);
                                    }
                                    String v0_62 = new com.google.android.gms.internal.measurement.zzex;
                                    v0_62("_f", new com.google.android.gms.internal.measurement.zzeu(v15_2), "auto", v5_6);
                                    this.zzb(v0_62, p19);
                                }
                                String v0_65 = new android.os.Bundle();
                                v0_65.putLong("_et", v13_0);
                                v3_2 = new com.google.android.gms.internal.measurement.zzex;
                                v3_2("_e", new com.google.android.gms.internal.measurement.zzeu(v0_65), "auto", v5_6);
                            }
                            v18_1.zzjh().setTransactionSuccessful();
                            v18_1.zzjh().endTransaction();
                            return;
                        } else {
                            com.google.android.gms.internal.measurement.zzka v7_7 = new android.os.Bundle();
                            v7_7.putString("_pv", v0_7.zzag());
                            v0_9 = new com.google.android.gms.internal.measurement.zzex;
                            v0_9("_au", new com.google.android.gms.internal.measurement.zzeu(v7_7), "auto", v5_6);
                        }
                    } else {
                        if (v0_7.zzgu() == p19.zzafg) {
                        } else {
                            com.google.android.gms.internal.measurement.zzka v7_11 = new android.os.Bundle();
                            v7_11.putString("_pv", v0_7.zzag());
                            v0_9 = new com.google.android.gms.internal.measurement.zzex;
                            v0_9("_au", new com.google.android.gms.internal.measurement.zzeu(v7_11), "auto", v5_6);
                        }
                    }
                    this.zzb(v0_9, p19);
                }
            } else {
                v18_1.zzg(p19);
                return;
            }
        } else {
            return;
        }
    }

Method com.google.android.gms.internal.measurement.zzjt.zzf() calling method android.database.sqlite.SQLiteDatabase.delete()


    final void zzf(com.google.android.gms.internal.measurement.zzeb p19)
    {
        void v18_1 = this.zzab();
        v18_1.zzlc();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p19);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzafa)) {
            String v0_3 = v18_1.zzjh().zzbf(p19.packageName);
            if ((v0_3 != null) && ((android.text.TextUtils.isEmpty(v0_3.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzafa)))) {
                v0_3.zzx(0);
                v18_1.zzjh().zza(v0_3);
                v18_1.zzky().zzca(p19.packageName);
            }
            if (p19.zzafk) {
                long v5_6 = p19.zzaga;
                if (v5_6 == 0) {
                    v5_6 = this.zzacv.zzbt().currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_64 = p19.zzagb;
                if ((v0_64 == null) || (v0_64 == 1)) {
                    v15_3 = v0_64;
                } else {
                    this.zzacv.zzgi().zziy().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName), Integer.valueOf(v0_64));
                    v15_3 = 0;
                }
                v18_1.zzjh().beginTransaction();
                try {
                    String v0_7 = v18_1.zzjh().zzbf(p19.packageName);
                } catch (String v0_66) {
                    v18_1.zzjh().endTransaction();
                    throw v0_66;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzafa)))) {
                    this.zzacv.zzgi().zziy().zzg("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v0_7.zzah()));
                    com.google.android.gms.internal.measurement.zzka v7_43 = v18_1.zzjh();
                    String v8_21 = v0_7.zzah();
                    v7_43.zzch();
                    v7_43.zzab();
                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v8_21);
                    try {
                        String v0_0 = v7_43.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_21;
                        String v10_10 = (((((((((v0_0.delete("events", "app_id=?", v9_0) + 0) + v0_0.delete("user_attributes", "app_id=?", v9_0)) + v0_0.delete("conditional_properties", "app_id=?", v9_0)) + v0_0.delete("apps", "app_id=?", v9_0)) + v0_0.delete("raw_events", "app_id=?", v9_0)) + v0_0.delete("raw_events_metadata", "app_id=?", v9_0)) + v0_0.delete("event_filters", "app_id=?", v9_0)) + v0_0.delete("property_filters", "app_id=?", v9_0)) + v0_0.delete("audience_filter_values", "app_id=?", v9_0));
                    } catch (String v0_4) {
                        v7_43.zzgi().zziv().zze("Error deleting application data. appId, error", com.google.android.gms.internal.measurement.zzfi.zzbp(v8_21), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_43.zzgi().zzjc().zze("Deleted application data. app, records", v8_21, Integer.valueOf(v10_10));
                    }
                }
                if (v0_7 != null) {
                    String v0_9;
                    if (v0_7.zzgu() == -2147483648) {
                        if ((v0_7.zzag() == null) || (v0_7.zzag().equals(p19.zztg))) {
                            String v0_12;
                            String v0_11;
                            com.google.android.gms.internal.measurement.zzka v7_13;
                            String v8_6;
                            v18_1.zzg(p19);
                            if (v15_3 != null) {
                                if (v15_3 != 1) {
                                    v0_11 = 0;
                                } else {
                                    v0_12 = v18_1.zzjh();
                                    v7_13 = p19.packageName;
                                    v8_6 = "_v";
                                    v0_11 = v0_12.zzf(v7_13, v8_6);
                                }
                            } else {
                                v0_12 = v18_1.zzjh();
                                v7_13 = p19.packageName;
                                v8_6 = "_f";
                            }
                            com.google.android.gms.internal.measurement.zzka v3_2;
                            if (v0_11 != null) {
                                if (p19.zzafz) {
                                    v3_2 = new com.google.android.gms.internal.measurement.zzex;
                                    v3_2("_cd", new com.google.android.gms.internal.measurement.zzeu(new android.os.Bundle()), "auto", v5_6);
                                    this.zzb(v3_2, p19);
                                }
                            } else {
                                Long v13_0;
                                long v9_13 = (((v5_6 / 3600000) + 1) * 3600000);
                                if (v15_3 != null) {
                                    v13_0 = 1;
                                    if (v15_3 == 1) {
                                        String v0_16 = new com.google.android.gms.internal.measurement.zzka;
                                        v0_16("_fvt", v5_6, Long.valueOf(v9_13), "auto");
                                        this.zzb(v0_16, p19);
                                        v18_1 = v18_1.zzab();
                                        v18_1.zzlc();
                                        String v0_18 = new android.os.Bundle();
                                        v0_18.putLong("_c", 1);
                                        v0_18.putLong("_r", 1);
                                        if ((this.zzacv.zzgk().zzbc(p19.packageName)) && (p19.zzagc)) {
                                            v0_18.putLong("_dac", 1);
                                        }
                                        com.google.android.gms.internal.measurement.zzka v3_11 = new com.google.android.gms.internal.measurement.zzex;
                                        v3_11("_v", new com.google.android.gms.internal.measurement.zzeu(v0_18), "auto", v5_6);
                                        this.zzb(v3_11, p19);
                                    }
                                } else {
                                    String v0_19 = new com.google.android.gms.internal.measurement.zzka;
                                    v13_0 = 1;
                                    v0_19("_fot", v5_6, Long.valueOf(v9_13), "auto");
                                    this.zzb(v0_19, p19);
                                    v18_1 = v18_1.zzab();
                                    v18_1.zzlc();
                                    android.os.Bundle v15_2 = new android.os.Bundle();
                                    v15_2.putLong("_c", 1);
                                    v15_2.putLong("_r", 1);
                                    v15_2.putLong("_uwa", 0);
                                    v15_2.putLong("_pfo", 0);
                                    v15_2.putLong("_sys", 0);
                                    v15_2.putLong("_sysu", 0);
                                    if ((this.zzacv.zzgk().zzbc(p19.packageName)) && (p19.zzagc)) {
                                        v15_2.putLong("_dac", 1);
                                    }
                                    if (this.zzacv.getContext().getPackageManager() != null) {
                                        try {
                                            String v0_38 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzacv.getContext()).getPackageInfo(p19.packageName, 0);
                                        } catch (String v0_39) {
                                            this.zzacv.zzgi().zziv().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName), v0_39);
                                            v0_38 = 0;
                                        }
                                        if ((v0_38 != null) && (v0_38.firstInstallTime != 0)) {
                                            String v0_42;
                                            if (v0_38.firstInstallTime == v0_38.lastUpdateTime) {
                                                v0_42 = 1;
                                            } else {
                                                v15_2.putLong("_uwa", 1);
                                                v0_42 = 0;
                                            }
                                            long v9_22;
                                            String v12_10 = new com.google.android.gms.internal.measurement.zzka;
                                            if (v0_42 == null) {
                                                v9_22 = 0;
                                            } else {
                                                v9_22 = 1;
                                            }
                                            com.google.android.gms.internal.measurement.zzka v3_12 = v12_10;
                                            v12_10("_fi", v5_6, Long.valueOf(v9_22), "auto");
                                            this.zzb(v3_12, p19);
                                        }
                                        try {
                                            android.content.pm.ApplicationInfo v16_0 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzacv.getContext()).getApplicationInfo(p19.packageName, 0);
                                        } catch (String v0_49) {
                                            this.zzacv.zzgi().zziv().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName), v0_49);
                                        }
                                        String v0_51 = v16_0;
                                        if (v0_51 != null) {
                                            if ((v0_51.flags & 1) != 0) {
                                                v15_2.putLong("_sys", 1);
                                            }
                                            if ((v0_51.flags & 128) != 0) {
                                                v15_2.putLong("_sysu", 1);
                                            }
                                        }
                                    } else {
                                        this.zzacv.zzgi().zziv().zzg("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName));
                                    }
                                    String v0_59 = v18_1.zzjh();
                                    com.google.android.gms.internal.measurement.zzka v3_20 = p19.packageName;
                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_20);
                                    v0_59.zzab();
                                    v0_59.zzch();
                                    com.google.android.gms.internal.measurement.zzka v3_21 = v0_59.zzm(v3_20, "first_open_count");
                                    if (v3_21 >= 0) {
                                        v15_2.putLong("_pfo", v3_21);
                                    }
                                    String v0_62 = new com.google.android.gms.internal.measurement.zzex;
                                    v0_62("_f", new com.google.android.gms.internal.measurement.zzeu(v15_2), "auto", v5_6);
                                    this.zzb(v0_62, p19);
                                }
                                String v0_65 = new android.os.Bundle();
                                v0_65.putLong("_et", v13_0);
                                v3_2 = new com.google.android.gms.internal.measurement.zzex;
                                v3_2("_e", new com.google.android.gms.internal.measurement.zzeu(v0_65), "auto", v5_6);
                            }
                            v18_1.zzjh().setTransactionSuccessful();
                            v18_1.zzjh().endTransaction();
                            return;
                        } else {
                            com.google.android.gms.internal.measurement.zzka v7_7 = new android.os.Bundle();
                            v7_7.putString("_pv", v0_7.zzag());
                            v0_9 = new com.google.android.gms.internal.measurement.zzex;
                            v0_9("_au", new com.google.android.gms.internal.measurement.zzeu(v7_7), "auto", v5_6);
                        }
                    } else {
                        if (v0_7.zzgu() == p19.zzafg) {
                        } else {
                            com.google.android.gms.internal.measurement.zzka v7_11 = new android.os.Bundle();
                            v7_11.putString("_pv", v0_7.zzag());
                            v0_9 = new com.google.android.gms.internal.measurement.zzex;
                            v0_9("_au", new com.google.android.gms.internal.measurement.zzeu(v7_11), "auto", v5_6);
                        }
                    }
                    this.zzb(v0_9, p19);
                }
            } else {
                v18_1.zzg(p19);
                return;
            }
        } else {
            return;
        }
    }

Method com.google.android.gms.internal.measurement.zzjt.zzf() calling method android.database.sqlite.SQLiteDatabase.delete()


    final void zzf(com.google.android.gms.internal.measurement.zzeb p19)
    {
        void v18_1 = this.zzab();
        v18_1.zzlc();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p19);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzafa)) {
            String v0_3 = v18_1.zzjh().zzbf(p19.packageName);
            if ((v0_3 != null) && ((android.text.TextUtils.isEmpty(v0_3.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzafa)))) {
                v0_3.zzx(0);
                v18_1.zzjh().zza(v0_3);
                v18_1.zzky().zzca(p19.packageName);
            }
            if (p19.zzafk) {
                long v5_6 = p19.zzaga;
                if (v5_6 == 0) {
                    v5_6 = this.zzacv.zzbt().currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_64 = p19.zzagb;
                if ((v0_64 == null) || (v0_64 == 1)) {
                    v15_3 = v0_64;
                } else {
                    this.zzacv.zzgi().zziy().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName), Integer.valueOf(v0_64));
                    v15_3 = 0;
                }
                v18_1.zzjh().beginTransaction();
                try {
                    String v0_7 = v18_1.zzjh().zzbf(p19.packageName);
                } catch (String v0_66) {
                    v18_1.zzjh().endTransaction();
                    throw v0_66;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzafa)))) {
                    this.zzacv.zzgi().zziy().zzg("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v0_7.zzah()));
                    com.google.android.gms.internal.measurement.zzka v7_43 = v18_1.zzjh();
                    String v8_21 = v0_7.zzah();
                    v7_43.zzch();
                    v7_43.zzab();
                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v8_21);
                    try {
                        String v0_0 = v7_43.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_21;
                        String v10_10 = (((((((((v0_0.delete("events", "app_id=?", v9_0) + 0) + v0_0.delete("user_attributes", "app_id=?", v9_0)) + v0_0.delete("conditional_properties", "app_id=?", v9_0)) + v0_0.delete("apps", "app_id=?", v9_0)) + v0_0.delete("raw_events", "app_id=?", v9_0)) + v0_0.delete("raw_events_metadata", "app_id=?", v9_0)) + v0_0.delete("event_filters", "app_id=?", v9_0)) + v0_0.delete("property_filters", "app_id=?", v9_0)) + v0_0.delete("audience_filter_values", "app_id=?", v9_0));
                    } catch (String v0_4) {
                        v7_43.zzgi().zziv().zze("Error deleting application data. appId, error", com.google.android.gms.internal.measurement.zzfi.zzbp(v8_21), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_43.zzgi().zzjc().zze("Deleted application data. app, records", v8_21, Integer.valueOf(v10_10));
                    }
                }
                if (v0_7 != null) {
                    String v0_9;
                    if (v0_7.zzgu() == -2147483648) {
                        if ((v0_7.zzag() == null) || (v0_7.zzag().equals(p19.zztg))) {
                            String v0_12;
                            String v0_11;
                            String v8_6;
                            com.google.android.gms.internal.measurement.zzka v7_13;
                            v18_1.zzg(p19);
                            if (v15_3 != null) {
                                if (v15_3 != 1) {
                                    v0_11 = 0;
                                } else {
                                    v0_12 = v18_1.zzjh();
                                    v7_13 = p19.packageName;
                                    v8_6 = "_v";
                                    v0_11 = v0_12.zzf(v7_13, v8_6);
                                }
                            } else {
                                v0_12 = v18_1.zzjh();
                                v7_13 = p19.packageName;
                                v8_6 = "_f";
                            }
                            com.google.android.gms.internal.measurement.zzka v3_2;
                            if (v0_11 != null) {
                                if (p19.zzafz) {
                                    v3_2 = new com.google.android.gms.internal.measurement.zzex;
                                    v3_2("_cd", new com.google.android.gms.internal.measurement.zzeu(new android.os.Bundle()), "auto", v5_6);
                                    this.zzb(v3_2, p19);
                                }
                            } else {
                                Long v13_0;
                                long v9_13 = (((v5_6 / 3600000) + 1) * 3600000);
                                if (v15_3 != null) {
                                    v13_0 = 1;
                                    if (v15_3 == 1) {
                                        String v0_16 = new com.google.android.gms.internal.measurement.zzka;
                                        v0_16("_fvt", v5_6, Long.valueOf(v9_13), "auto");
                                        this.zzb(v0_16, p19);
                                        v18_1 = v18_1.zzab();
                                        v18_1.zzlc();
                                        String v0_18 = new android.os.Bundle();
                                        v0_18.putLong("_c", 1);
                                        v0_18.putLong("_r", 1);
                                        if ((this.zzacv.zzgk().zzbc(p19.packageName)) && (p19.zzagc)) {
                                            v0_18.putLong("_dac", 1);
                                        }
                                        com.google.android.gms.internal.measurement.zzka v3_11 = new com.google.android.gms.internal.measurement.zzex;
                                        v3_11("_v", new com.google.android.gms.internal.measurement.zzeu(v0_18), "auto", v5_6);
                                        this.zzb(v3_11, p19);
                                    }
                                } else {
                                    String v0_19 = new com.google.android.gms.internal.measurement.zzka;
                                    v13_0 = 1;
                                    v0_19("_fot", v5_6, Long.valueOf(v9_13), "auto");
                                    this.zzb(v0_19, p19);
                                    v18_1 = v18_1.zzab();
                                    v18_1.zzlc();
                                    android.os.Bundle v15_2 = new android.os.Bundle();
                                    v15_2.putLong("_c", 1);
                                    v15_2.putLong("_r", 1);
                                    v15_2.putLong("_uwa", 0);
                                    v15_2.putLong("_pfo", 0);
                                    v15_2.putLong("_sys", 0);
                                    v15_2.putLong("_sysu", 0);
                                    if ((this.zzacv.zzgk().zzbc(p19.packageName)) && (p19.zzagc)) {
                                        v15_2.putLong("_dac", 1);
                                    }
                                    if (this.zzacv.getContext().getPackageManager() != null) {
                                        try {
                                            String v0_38 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzacv.getContext()).getPackageInfo(p19.packageName, 0);
                                        } catch (String v0_39) {
                                            this.zzacv.zzgi().zziv().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName), v0_39);
                                            v0_38 = 0;
                                        }
                                        if ((v0_38 != null) && (v0_38.firstInstallTime != 0)) {
                                            String v0_42;
                                            if (v0_38.firstInstallTime == v0_38.lastUpdateTime) {
                                                v0_42 = 1;
                                            } else {
                                                v15_2.putLong("_uwa", 1);
                                                v0_42 = 0;
                                            }
                                            long v9_22;
                                            String v12_10 = new com.google.android.gms.internal.measurement.zzka;
                                            if (v0_42 == null) {
                                                v9_22 = 0;
                                            } else {
                                                v9_22 = 1;
                                            }
                                            com.google.android.gms.internal.measurement.zzka v3_12 = v12_10;
                                            v12_10("_fi", v5_6, Long.valueOf(v9_22), "auto");
                                            this.zzb(v3_12, p19);
                                        }
                                        try {
                                            android.content.pm.ApplicationInfo v16_0 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzacv.getContext()).getApplicationInfo(p19.packageName, 0);
                                        } catch (String v0_49) {
                                            this.zzacv.zzgi().zziv().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName), v0_49);
                                        }
                                        String v0_51 = v16_0;
                                        if (v0_51 != null) {
                                            if ((v0_51.flags & 1) != 0) {
                                                v15_2.putLong("_sys", 1);
                                            }
                                            if ((v0_51.flags & 128) != 0) {
                                                v15_2.putLong("_sysu", 1);
                                            }
                                        }
                                    } else {
                                        this.zzacv.zzgi().zziv().zzg("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p19.packageName));
                                    }
                                    String v0_59 = v18_1.zzjh();
                                    com.google.android.gms.internal.measurement.zzka v3_20 = p19.packageName;
                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_20);
                                    v0_59.zzab();
                                    v0_59.zzch();
                                    com.google.android.gms.internal.measurement.zzka v3_21 = v0_59.zzm(v3_20, "first_open_count");
                                    if (v3_21 >= 0) {
                                        v15_2.putLong("_pfo", v3_21);
                                    }
                                    String v0_62 = new com.google.android.gms.internal.measurement.zzex;
                                    v0_62("_f", new com.google.android.gms.internal.measurement.zzeu(v15_2), "auto", v5_6);
                                    this.zzb(v0_62, p19);
                                }
                                String v0_65 = new android.os.Bundle();
                                v0_65.putLong("_et", v13_0);
                                v3_2 = new com.google.android.gms.internal.measurement.zzex;
                                v3_2("_e", new com.google.android.gms.internal.measurement.zzeu(v0_65), "auto", v5_6);
                            }
                            v18_1.zzjh().setTransactionSuccessful();
                            v18_1.zzjh().endTransaction();
                            return;
                        } else {
                            com.google.android.gms.internal.measurement.zzka v7_7 = new android.os.Bundle();
                            v7_7.putString("_pv", v0_7.zzag());
                            v0_9 = new com.google.android.gms.internal.measurement.zzex;
                            v0_9("_au", new com.google.android.gms.internal.measurement.zzeu(v7_7), "auto", v5_6);
                        }
                    } else {
                        if (v0_7.zzgu() == p19.zzafg) {
                        } else {
                            com.google.android.gms.internal.measurement.zzka v7_11 = new android.os.Bundle();
                            v7_11.putString("_pv", v0_7.zzag());
                            v0_9 = new com.google.android.gms.internal.measurement.zzex;
                            v0_9("_au", new com.google.android.gms.internal.measurement.zzeu(v7_11), "auto", v5_6);
                        }
                    }
                    this.zzb(v0_9, p19);
                }
            } else {
                v18_1.zzg(p19);
                return;
            }
        } else {
            return;
        }
    }

Method com.google.android.gms.internal.measurement.zzjt.zzd() calling method android.database.sqlite.SQLiteDatabase.delete()


    final void zzd(com.google.android.gms.internal.measurement.zzeb p11)
    {
        if (this.zzasj != null) {
            this.zzask = new java.util.ArrayList();
            this.zzask.addAll(this.zzasj);
        }
        com.google.android.gms.internal.measurement.zzeb v0_7 = this.zzjh();
        boolean v1_0 = p11.packageName;
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v1_0);
        v0_7.zzab();
        v0_7.zzch();
        try {
            String v2_0 = v0_7.getWritableDatabase();
            String v3_1 = new String[1];
            v3_1[0] = v1_0;
            boolean v5_10 = (((((((((v2_0.delete("apps", "app_id=?", v3_1) + 0) + v2_0.delete("events", "app_id=?", v3_1)) + v2_0.delete("user_attributes", "app_id=?", v3_1)) + v2_0.delete("conditional_properties", "app_id=?", v3_1)) + v2_0.delete("raw_events", "app_id=?", v3_1)) + v2_0.delete("raw_events_metadata", "app_id=?", v3_1)) + v2_0.delete("queue", "app_id=?", v3_1)) + v2_0.delete("audience_filter_values", "app_id=?", v3_1)) + v2_0.delete("main_event_params", "app_id=?", v3_1));
        } catch (String v2_2) {
            v0_7.zzgi().zziv().zze("Error resetting analytics data. appId, error", com.google.android.gms.internal.measurement.zzfi.zzbp(v1_0), v2_2);
            com.google.android.gms.internal.measurement.zzeb v0_8 = this.zza(this.zzacv.getContext(), p11.packageName, p11.zzafa, p11.zzafk, p11.zzafm, p11.zzafn, p11.zzaga);
            if ((!this.zzacv.zzgk().zzbc(p11.packageName)) || (p11.zzafk)) {
                this.zzf(v0_8);
            }
            return;
        }
        if (v5_10) {
        } else {
            v0_7.zzgi().zzjc().zze("Reset analytics data. app, records", v1_0, Integer.valueOf(v5_10));
        }
    }

Method com.google.android.gms.internal.measurement.zzjt.zza() calling method android.database.sqlite.SQLiteDatabase.delete()


    final void zza(int p10, Throwable p11, byte[] p12, String p13)
    {
        this.zzab();
        this.zzlc();
        try {
            if (p12 == null) {
                p12 = new byte[0];
            }
        } catch (long v10_14) {
            this.zzasf = 0;
            this.zzlh();
            throw v10_14;
        }
        String v1_3 = this.zzasj;
        this.zzasj = 0;
        int v4 = 1;
        if (((p10 != 200) && (p10 != 204)) || (p11)) {
            this.zzacv.zzgi().zzjc().zze("Network upload failed. Will retry later. code, error", Integer.valueOf(p10), p11);
            this.zzacv.zzgj().zzalu.set(this.zzacv.zzbt().currentTimeMillis());
            if (p10 != 503) {
                if (p10 != 429) {
                    v4 = 0;
                } else {
                }
            }
            if (v4 != 0) {
                this.zzacv.zzgj().zzalv.set(this.zzacv.zzbt().currentTimeMillis());
            }
            if (this.zzacv.zzgk().zzay(p13)) {
                this.zzjh().zzc(v1_3);
            }
            this.zzlg();
        } else {
            try {
                this.zzacv.zzgj().zzalt.set(this.zzacv.zzbt().currentTimeMillis());
                this.zzacv.zzgj().zzalu.set(0);
                this.zzlg();
                this.zzacv.zzgi().zzjc().zze("Successful upload. Got network response. code, size", Integer.valueOf(p10), Integer.valueOf(p12.length));
                this.zzjh().beginTransaction();
            } catch (long v10_7) {
                this.zzacv.zzgi().zziv().zzg("Database error while trying to delete uploaded bundles", v10_7);
                this.zzasa = this.zzacv.zzbt().elapsedRealtime();
                this.zzacv.zzgi().zzjc().zzg("Disable upload, time", Long.valueOf(this.zzasa));
            }
            long v10_24 = v1_3.iterator();
            while (v10_24.hasNext()) {
                boolean v11_2 = ((Long) v10_24.next());
                try {
                    com.google.android.gms.internal.measurement.zzfk v12_1 = this.zzjh();
                    String v7_0 = v11_2.longValue();
                    v12_1.zzab();
                    v12_1.zzch();
                    java.util.List v13_1 = v12_1.getWritableDatabase();
                    String v1_0 = new String[1];
                    v1_0[0] = String.valueOf(v7_0);
                    try {
                        if (v13_1.delete("queue", "rowid=?", v1_0) != 1) {
                            throw new android.database.sqlite.SQLiteException("Deleted fewer rows from queue than expected");
                        } else {
                        }
                    } catch (java.util.List v13_5) {
                        v12_1.zzgi().zziv().zzg("Failed to delete a bundle in a queue table", v13_5);
                        throw v13_5;
                    }
                } catch (com.google.android.gms.internal.measurement.zzfk v12_5) {
                    if (this.zzask != null) {
                        if (this.zzask.contains(v11_2)) {
                        }
                    }
                    throw v12_5;
                }
            }
            this.zzjh().setTransactionSuccessful();
            this.zzjh().endTransaction();
            this.zzask = 0;
            if ((!this.zzkz().zzex()) || (!this.zzlf())) {
                this.zzasl = -1;
                this.zzlg();
            } else {
                this.zzle();
            }
            this.zzasa = 0;
        }
        this.zzasf = 0;
        this.zzlh();
        return;
    }

Method com.google.android.gms.internal.measurement.zzjt.zzd() calling method android.database.sqlite.SQLiteDatabase.delete()


    private final boolean zzd(String p40, long p41)
    {
        String v1_0 = this;
        this.zzjh().beginTransaction();
        try {
            android.database.sqlite.SQLiteException v3_0 = 0;
            com.google.android.gms.internal.measurement.zzfk v2_3 = new com.google.android.gms.internal.measurement.zzjt$zza(this, 0);
            String v4_58 = this.zzjh();
            com.google.android.gms.internal.measurement.zzfk v5_90 = this.zzasl;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_3);
            v4_58.zzab();
            v4_58.zzch();
            try {
                int v22;
                long v21_0;
                Long v15_15 = v4_58.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        String v12_29;
                        android.database.sqlite.SQLiteException v3_1 = v5_90 cmp -1;
                        if (v3_1 == null) {
                            v12_29 = new String[] {0});
                        } else {
                            v12_29 = new String[2];
                            v12_29[0] = 0;
                            v12_29[1] = String.valueOf(v5_90);
                        }
                        android.database.sqlite.SQLiteException v3_8;
                        if (v3_1 == null) {
                            v3_8 = "";
                        } else {
                            v3_8 = " and rowid <= ?";
                        }
                        long v14_12 = new StringBuilder((String.valueOf(v3_8).length() + 84));
                        v14_12.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_12.append(v3_8);
                        v14_12.append(" order by rowid limit 1;");
                        v3_0 = v15_15.rawQuery(v14_12.toString(), v12_29);
                        if (v3_0.moveToFirst()) {
                            Boolean v13_16 = v3_0.getString(0);
                            v3_0.close();
                            v22 = v3_0;
                            v21_0 = v13_16;
                            v3_0 = 0;
                            try {
                                String v12_9 = new String[2];
                                v12_9[0] = v3_0;
                                v12_9[1] = v21_0;
                                long v24_1 = v15_15;
                                Long v15_14 = v15_15.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_9, 0, 0, "rowid", "2");
                                try {
                                    if (v15_14.moveToFirst()) {
                                        String v12_13 = v15_14.getBlob(0);
                                        String v12_14 = com.google.android.gms.internal.measurement.zzaca.zza(v12_13, 0, v12_13.length);
                                        Boolean v13_5 = new com.google.android.gms.internal.measurement.zzku();
                                        try {
                                            v13_5.zzb(v12_14);
                                        } catch (android.database.sqlite.SQLiteException v0_4) {
                                            int v6_0 = v15_14;
                                            v4_58.zzgi().zziv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0), v0_4);
                                            if (v6_0 == 0) {
                                                android.database.sqlite.SQLiteException v3_6;
                                                if (v2_3.zzasr == null) {
                                                    v3_6 = 1;
                                                } else {
                                                    if (!v2_3.zzasr.isEmpty()) {
                                                        v3_6 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_6 != null) {
                                                    this.zzjh().setTransactionSuccessful();
                                                    this.zzjh().endTransaction();
                                                    return 0;
                                                } else {
                                                    android.database.sqlite.SQLiteException v3_7 = v2_3.zzasp;
                                                    String v4_4 = new com.google.android.gms.internal.measurement.zzkr[v2_3.zzasr.size()];
                                                    v3_7.zzavi = v4_4;
                                                    String v4_7 = this.zzacv.zzgk().zzaw(v3_7.zzth);
                                                    com.google.android.gms.internal.measurement.zzet v7_30 = 0;
                                                    com.google.android.gms.internal.measurement.zzet v8_1 = 0;
                                                    String v9_1 = 0;
                                                    String v12_10 = 0;
                                                    while (v7_30 < v2_3.zzasr.size()) {
                                                        Long v15_1;
                                                        long v14_4 = ((com.google.android.gms.internal.measurement.zzkr) v2_3.zzasr.get(v7_30));
                                                        if (!this.zzky().zzn(v2_3.zzasp.zzth, v14_4.name)) {
                                                            String v20_2;
                                                            com.google.android.gms.internal.measurement.zzfk v5_3 = this.zzky().zzo(v2_3.zzasp.zzth, v14_4.name);
                                                            if (v5_3 != null) {
                                                                if (v14_4.zzava == null) {
                                                                    boolean v10_8 = new com.google.android.gms.internal.measurement.zzks[0];
                                                                    v14_4.zzava = v10_8;
                                                                }
                                                                int v6_13 = v14_4.zzava;
                                                                boolean v10_9 = v6_13.length;
                                                                String v11_2 = 0;
                                                                Long v19_2 = 0;
                                                                String v20_1 = 0;
                                                                while (v11_2 < v10_9) {
                                                                    Long v15_10 = v6_13[v11_2];
                                                                    boolean v16_4 = v6_13;
                                                                    long v24_2 = v10_9;
                                                                    if (!"_c".equals(v15_10.name)) {
                                                                        if ("_r".equals(v15_10.name)) {
                                                                            v15_10.zzave = Long.valueOf(1);
                                                                            v20_1 = 1;
                                                                        }
                                                                    } else {
                                                                        v15_10.zzave = Long.valueOf(1);
                                                                        v19_2 = 1;
                                                                    }
                                                                    v11_2++;
                                                                    v6_13 = v16_4;
                                                                    v10_9 = v24_2;
                                                                }
                                                                if ((v19_2 == null) && (v5_3 != null)) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as conversion", this.zzacv.zzgf().zzbm(v14_4.name));
                                                                    int v6_19 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v14_4.zzava, (v14_4.zzava.length + 1)));
                                                                    boolean v10_15 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v10_15.name = "_c";
                                                                    v10_15.zzave = Long.valueOf(1);
                                                                    v6_19[(v6_19.length - 1)] = v10_15;
                                                                    v14_4.zzava = v6_19;
                                                                }
                                                                if (v20_1 == null) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as real-time", this.zzacv.zzgf().zzbm(v14_4.name));
                                                                    int v6_25 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v14_4.zzava, (v14_4.zzava.length + 1)));
                                                                    boolean v10_21 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v10_21.name = "_r";
                                                                    v10_21.zzave = Long.valueOf(1);
                                                                    v6_25[(v6_25.length - 1)] = v10_21;
                                                                    v14_4.zzava = v6_25;
                                                                }
                                                                v15_1 = v7_30;
                                                                if (this.zzjh().zza(this.zzld(), v2_3.zzasp.zzth, 0, 0, 0, 0, 1).zzagx <= ((long) this.zzacv.zzgk().zzas(v2_3.zzasp.zzth))) {
                                                                    v9_1 = 1;
                                                                } else {
                                                                    int v6_33 = 0;
                                                                    while (v6_33 < v14_4.zzava.length) {
                                                                        if (!"_r".equals(v14_4.zzava[v6_33].name)) {
                                                                            v6_33++;
                                                                        } else {
                                                                            com.google.android.gms.internal.measurement.zzet v7_11 = new com.google.android.gms.internal.measurement.zzks[(v14_4.zzava.length - 1)];
                                                                            if (v6_33 > 0) {
                                                                                System.arraycopy(v14_4.zzava, 0, v7_11, 0, v6_33);
                                                                            }
                                                                            if (v6_33 >= v7_11.length) {
                                                                                boolean v16_1 = v9_1;
                                                                            } else {
                                                                                v16_1 = v9_1;
                                                                                System.arraycopy(v14_4.zzava, (v6_33 + 1), v7_11, v6_33, (v7_11.length - v6_33));
                                                                            }
                                                                            v14_4.zzava = v7_11;
                                                                        }
                                                                        v9_1 = v16_1;
                                                                    }
                                                                    v16_1 = v9_1;
                                                                }
                                                                if ((!com.google.android.gms.internal.measurement.zzkd.zzcg(v14_4.name)) || ((v5_3 == null) || (this.zzjh().zza(this.zzld(), v2_3.zzasp.zzth, 0, 0, 1, 0, 0).zzagv <= ((long) this.zzacv.zzgk().zzb(v2_3.zzasp.zzth, com.google.android.gms.internal.measurement.zzez.zzair))))) {
                                                                    v20_2 = v9_1;
                                                                } else {
                                                                    this.zzacv.zzgi().zziy().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                                    com.google.android.gms.internal.measurement.zzfk v5_11 = v14_4.zzava;
                                                                    int v6_37 = v5_11.length;
                                                                    com.google.android.gms.internal.measurement.zzet v7_19 = 0;
                                                                    boolean v10_33 = 0;
                                                                    String v11_22 = 0;
                                                                    while (v7_19 < v6_37) {
                                                                        int v6_44 = v5_11[v7_19];
                                                                        if (!"_c".equals(v6_44.name)) {
                                                                            if ("_err".equals(v6_44.name)) {
                                                                                v10_33 = 1;
                                                                            }
                                                                        } else {
                                                                            v11_22 = v6_44;
                                                                        }
                                                                        v7_19++;
                                                                    }
                                                                    v20_2 = v9_1;
                                                                    if ((!v10_33) || (v11_22 == null)) {
                                                                        if (v11_22 == null) {
                                                                            this.zzacv.zzgi().zziv().zzg("Did not find conversion parameter. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                                        } else {
                                                                            v11_22.name = "_err";
                                                                            v11_22.zzave = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.measurement.zzfk v5_18 = v14_4.zzava;
                                                                        com.google.android.gms.internal.measurement.zzet v7_24 = new com.google.android.gms.internal.measurement.zzks[1];
                                                                        v7_24[0] = v11_22;
                                                                        v14_4.zzava = ((com.google.android.gms.internal.measurement.zzks[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v5_18, v7_24));
                                                                    }
                                                                }
                                                            } else {
                                                                Long v19_1;
                                                                this.zzjf();
                                                                int v6_6 = v14_4.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v6_6);
                                                                String v11_1 = v6_6.hashCode();
                                                                if (v11_1 == 94660) {
                                                                    if (!v6_6.equals("_in")) {
                                                                        v19_1 = -1;
                                                                    } else {
                                                                        v19_1 = 0;
                                                                    }
                                                                } else {
                                                                    if (v11_1 == 95025) {
                                                                        if (!v6_6.equals("_ug")) {
                                                                        } else {
                                                                            v19_1 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v11_1 == 95027) {
                                                                            if (!v6_6.equals("_ui")) {
                                                                            } else {
                                                                                v19_1 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v6_10;
                                                                switch (v19_1) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v6_10 = 1;
                                                                    default:
                                                                        v6_10 = 0;
                                                                }
                                                                if (v6_10 == 0) {
                                                                    v15_1 = v7_30;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v4_7 != null) && ("_e".equals(v14_4.name))) {
                                                                com.google.android.gms.internal.measurement.zzfk v5_32;
                                                                com.google.android.gms.internal.measurement.zzet v7_27;
                                                                int v6_42;
                                                                if (v14_4.zzava == null) {
                                                                    v5_32 = this.zzacv.zzgi().zziy();
                                                                    v6_42 = "Engagement event does not contain any parameters. appId";
                                                                    v7_27 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth);
                                                                } else {
                                                                    if (v14_4.zzava.length != 0) {
                                                                        this.zzjf();
                                                                        com.google.android.gms.internal.measurement.zzfk v5_28 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v14_4, "_et"));
                                                                        if (v5_28 != null) {
                                                                            v12_10 += v5_28.longValue();
                                                                            int v6_43 = (v8_1 + 1);
                                                                            v3_7.zzavi[v8_1] = v14_4;
                                                                            v8_1 = v6_43;
                                                                            v9_1 = v20_2;
                                                                            v7_30 = (v15_1 + 1);
                                                                            String v11 = 1;
                                                                        } else {
                                                                            v5_32 = this.zzacv.zzgi().zziy();
                                                                            v6_42 = "Engagement event does not include duration. appId";
                                                                            v7_27 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth);
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                v5_32.zzg(v6_42, v7_27);
                                                            }
                                                        } else {
                                                            com.google.android.gms.internal.measurement.zzfk v5_47;
                                                            this.zzacv.zzgi().zziy().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth), this.zzacv.zzgf().zzbm(v14_4.name));
                                                            if (this.zzky().zzcb(v2_3.zzasp.zzth)) {
                                                                v5_47 = 1;
                                                            } else {
                                                                if (!this.zzky().zzcc(v2_3.zzasp.zzth)) {
                                                                    v5_47 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_47 == null) && (!"_err".equals(v14_4.name))) {
                                                                this.zzacv.zzgg().zza(v2_3.zzasp.zzth, 11, "_ev", v14_4.name, 0);
                                                            }
                                                            v15_1 = v7_30;
                                                        }
                                                    }
                                                    boolean v16_7 = v9_1;
                                                    if (v8_1 < v2_3.zzasr.size()) {
                                                        v3_7.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v3_7.zzavi, v8_1));
                                                    }
                                                    if (v4_7 != null) {
                                                        String v4_12;
                                                        String v4_9 = this.zzjh().zzh(v3_7.zzth, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.internal.measurement.zzkc;
                                                            v4_12(v3_7.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf(v12_10));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                com.google.android.gms.internal.measurement.zzfk v5_68 = new com.google.android.gms.internal.measurement.zzkc;
                                                                v5_68(v3_7.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v12_10)));
                                                                v4_12 = v5_68;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v5_71 = new com.google.android.gms.internal.measurement.zzkx();
                                                        v5_71.name = "_lte";
                                                        v5_71.zzaws = Long.valueOf(this.zzacv.zzbt().currentTimeMillis());
                                                        v5_71.zzave = ((Long) v4_12.value);
                                                        int v6_81 = 0;
                                                        while (v6_81 < v3_7.zzavj.length) {
                                                            if (!"_lte".equals(v3_7.zzavj[v6_81].name)) {
                                                                v6_81++;
                                                            } else {
                                                                v3_7.zzavj[v6_81] = v5_71;
                                                                int v6_82 = 1;
                                                            }
                                                            if (v6_82 == 0) {
                                                                v3_7.zzavj = ((com.google.android.gms.internal.measurement.zzkx[]) java.util.Arrays.copyOf(v3_7.zzavj, (v3_7.zzavj.length + 1)));
                                                                v3_7.zzavj[(v2_3.zzasp.zzavj.length - 1)] = v5_71;
                                                            }
                                                            if (v12_10 > 0) {
                                                                this.zzjh().zza(v4_12);
                                                                this.zzacv.zzgi().zzjb().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_82 = 0;
                                                    }
                                                    v3_7.zzawa = this.zza(v3_7.zzth, v3_7.zzavj, v3_7.zzavi);
                                                    try {
                                                        if (this.zzacv.zzgk().zzav(v2_3.zzasp.zzth)) {
                                                            String v4_20 = new java.util.HashMap();
                                                            com.google.android.gms.internal.measurement.zzfk v5_82 = new com.google.android.gms.internal.measurement.zzkr[v3_7.zzavi.length];
                                                            int v6_1 = this.zzacv.zzgg().zzlo();
                                                            com.google.android.gms.internal.measurement.zzet v7_3 = v3_7.zzavi;
                                                            com.google.android.gms.internal.measurement.zzet v8_0 = v7_3.length;
                                                            String v9_0 = 0;
                                                            boolean v10_0 = 0;
                                                            while (v9_0 < v8_0) {
                                                                Long v19_0;
                                                                long v24_0;
                                                                String v20_0;
                                                                String v11_27 = v7_3[v9_0];
                                                                if (!v11_27.name.equals("_ep")) {
                                                                    v19_0 = v7_3;
                                                                    com.google.android.gms.internal.measurement.zzet v7_84;
                                                                    long v14_16 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v14_16 != 0)) {
                                                                        String v12_38 = v11_27.zzava;
                                                                        Boolean v13_19 = v12_38.length;
                                                                        Long v15_17 = 0;
                                                                        while (v15_17 < v13_19) {
                                                                            v20_0 = v8_0;
                                                                            com.google.android.gms.internal.measurement.zzet v8_20 = v12_38[v15_17];
                                                                            if (!"_dbg".equals(v8_20.name)) {
                                                                                v15_17++;
                                                                                v8_0 = v20_0;
                                                                            } else {
                                                                                if (((!(v14_16 instanceof Long)) || (!v14_16.equals(v8_20.zzave))) && (((!(v14_16 instanceof String)) || (!v14_16.equals(v8_20.zzale))) && ((!(v14_16 instanceof Double)) || (!v14_16.equals(v8_20.zzasw))))) {
                                                                                    v7_84 = 0;
                                                                                } else {
                                                                                    v7_84 = 1;
                                                                                }
                                                                            }
                                                                        }
                                                                        v20_0 = v8_0;
                                                                    }
                                                                    com.google.android.gms.internal.measurement.zzet v7_85;
                                                                    if (v7_84 != null) {
                                                                        v7_85 = 1;
                                                                    } else {
                                                                        v7_85 = this.zzky().zzp(v2_3.zzasp.zzth, v11_27.name);
                                                                    }
                                                                    com.google.android.gms.internal.measurement.zzet v7_96;
                                                                    if (v7_85 > null) {
                                                                        com.google.android.gms.internal.measurement.zzet v8_25 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v11_27.name));
                                                                        if (v8_25 == null) {
                                                                            v8_25 = this.zzjh().zzf(v2_3.zzasp.zzth, v11_27.name);
                                                                            if (v8_25 == null) {
                                                                                v1_0.zzacv.zzgi().zziy().zze("Event being bundled has no eventAggregate. appId, eventName", v2_3.zzasp.zzth, v11_27.name);
                                                                                v8_25 = new com.google.android.gms.internal.measurement.zzet;
                                                                                v8_25(v2_3.zzasp.zzth, v11_27.name, 1, 1, v11_27.zzavb.longValue(), 0, 0, 0, 0);
                                                                            }
                                                                        }
                                                                        Boolean v13_24;
                                                                        this.zzjf();
                                                                        String v12_50 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v11_27, "_eid"));
                                                                        if (v12_50 == null) {
                                                                            v13_24 = 0;
                                                                        } else {
                                                                            v13_24 = 1;
                                                                        }
                                                                        Boolean v13_25 = Boolean.valueOf(v13_24);
                                                                        if (v7_85 != 1) {
                                                                            if (v6_1.nextInt(v7_85) != 0) {
                                                                                v24_0 = v6_1;
                                                                                if (Math.abs((v11_27.zzavb.longValue() - v8_25.zzahk)) < 86400000) {
                                                                                    if (!v13_25.booleanValue()) {
                                                                                        v9_0++;
                                                                                        v7_3 = v19_0;
                                                                                        v8_0 = v20_0;
                                                                                        v6_1 = v24_0;
                                                                                        v1_0 = this;
                                                                                    } else {
                                                                                        v4_20.put(v11_27.name, v8_25.zza(v12_50, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzjf();
                                                                                    v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_efs", Long.valueOf(1));
                                                                                    this.zzjf();
                                                                                    long v14_27 = ((long) v7_85);
                                                                                    v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_sr", Long.valueOf(v14_27));
                                                                                    String v1_27 = (v10_0 + 1);
                                                                                    v5_82[v10_0] = v11_27;
                                                                                    if (v13_25.booleanValue()) {
                                                                                        v8_25 = v8_25.zza(0, Long.valueOf(v14_27), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_20.put(v11_27.name, v8_25.zzai(v11_27.zzavb.longValue()));
                                                                                    v10_0 = v1_27;
                                                                                }
                                                                            } else {
                                                                                this.zzjf();
                                                                                int v6_125 = ((long) v7_85);
                                                                                v24_0 = v6_1;
                                                                                v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_sr", Long.valueOf(v6_125));
                                                                                String v12_55 = (v10_0 + 1);
                                                                                v5_82[v10_0] = v11_27;
                                                                                if (v13_25.booleanValue()) {
                                                                                    v8_25 = v8_25.zza(0, Long.valueOf(v6_125), 0);
                                                                                }
                                                                                v4_20.put(v11_27.name, v8_25.zzai(v11_27.zzavb.longValue()));
                                                                                v10_0 = v12_55;
                                                                            }
                                                                        } else {
                                                                            v7_96 = (v10_0 + 1);
                                                                            v5_82[v10_0] = v11_27;
                                                                            if ((v13_25.booleanValue()) && ((v8_25.zzahl != null) || ((v8_25.zzahm != null) || (v8_25.zzahn != null)))) {
                                                                                v4_20.put(v11_27.name, v8_25.zza(0, 0, 0));
                                                                            }
                                                                        }
                                                                    } else {
                                                                        v1_0.zzacv.zzgi().zziy().zze("Sample rate must be positive. event, rate", v11_27.name, Integer.valueOf(v7_85));
                                                                        v7_96 = (v10_0 + 1);
                                                                        v5_82[v10_0] = v11_27;
                                                                    }
                                                                    v24_0 = v6_1;
                                                                    v10_0 = v7_96;
                                                                } else {
                                                                    this.zzjf();
                                                                    String v12_59 = ((String) com.google.android.gms.internal.measurement.zzjz.zzb(v11_27, "_en"));
                                                                    Boolean v13_28 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v12_59));
                                                                    if (v13_28 == null) {
                                                                        v13_28 = this.zzjh().zzf(v2_3.zzasp.zzth, v12_59);
                                                                        v4_20.put(v12_59, v13_28);
                                                                    }
                                                                    if (v13_28.zzahl != null) {
                                                                        v19_0 = v7_3;
                                                                        v24_0 = v6_1;
                                                                    } else {
                                                                        if (v13_28.zzahm.longValue() > 1) {
                                                                            this.zzjf();
                                                                            v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_sr", v13_28.zzahm);
                                                                        }
                                                                        if ((v13_28.zzahn == null) || (!v13_28.zzahn.booleanValue())) {
                                                                            v19_0 = v7_3;
                                                                        } else {
                                                                            this.zzjf();
                                                                            v19_0 = v7_3;
                                                                            v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_efs", Long.valueOf(1));
                                                                        }
                                                                        com.google.android.gms.internal.measurement.zzet v7_2 = (v10_0 + 1);
                                                                        v5_82[v10_0] = v11_27;
                                                                        v24_0 = v6_1;
                                                                        v10_0 = v7_2;
                                                                    }
                                                                    v20_0 = v8_0;
                                                                }
                                                            }
                                                            if (v10_0 < v3_7.zzavi.length) {
                                                                v3_7.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v5_82, v10_0));
                                                            }
                                                            String v1_11 = v4_20.entrySet().iterator();
                                                            while (v1_11.hasNext()) {
                                                                this.zzjh().zza(((com.google.android.gms.internal.measurement.zzet) ((java.util.Map$Entry) v1_11.next()).getValue()));
                                                            }
                                                        }
                                                        try {
                                                            v3_7.zzavl = Long.valueOf(nan);
                                                            v3_7.zzavm = Long.valueOf(-0.0);
                                                            String v1_14 = 0;
                                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                                            String v1_1 = v0_3;
                                                            this.zzjh().endTransaction();
                                                            throw v1_1;
                                                        }
                                                        while (v1_14 < v3_7.zzavi.length) {
                                                            String v4_52 = v3_7.zzavi[v1_14];
                                                            if (v4_52.zzavb.longValue() < v3_7.zzavl.longValue()) {
                                                                v3_7.zzavl = v4_52.zzavb;
                                                            }
                                                            if (v4_52.zzavb.longValue() > v3_7.zzavm.longValue()) {
                                                                v3_7.zzavm = v4_52.zzavb;
                                                            }
                                                            v1_14++;
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v5_83;
                                                        String v1_16 = v2_3.zzasp.zzth;
                                                        String v4_27 = this.zzjh().zzbf(v1_16);
                                                        if (v4_27 != null) {
                                                            v5_83 = this;
                                                            if (v3_7.zzavi.length > 0) {
                                                                com.google.android.gms.internal.measurement.zzet v8_16;
                                                                int v6_93 = v4_27.zzgt();
                                                                if (v6_93 == 0) {
                                                                    v8_16 = 0;
                                                                } else {
                                                                    v8_16 = Long.valueOf(v6_93);
                                                                }
                                                                v3_7.zzavo = v8_16;
                                                                com.google.android.gms.internal.measurement.zzet v8_17 = v4_27.zzgs();
                                                                if (v8_17 != 0) {
                                                                    v6_93 = v8_17;
                                                                } else {
                                                                }
                                                                int v6_94;
                                                                if (v6_93 == 0) {
                                                                    v6_94 = 0;
                                                                } else {
                                                                    v6_94 = Long.valueOf(v6_93);
                                                                }
                                                                v3_7.zzavn = v6_94;
                                                                v4_27.zzhb();
                                                                v3_7.zzavy = Integer.valueOf(((int) v4_27.zzgy()));
                                                                v4_27.zzr(v3_7.zzavl.longValue());
                                                                v4_27.zzs(v3_7.zzavm.longValue());
                                                                v3_7.zzafy = v4_27.zzhj();
                                                                this.zzjh().zza(v4_27);
                                                            }
                                                        } else {
                                                            v5_83 = this;
                                                            this.zzacv.zzgi().zziv().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                        }
                                                        if (v3_7.zzavi.length > 0) {
                                                            String v4_36;
                                                            v5_83.zzacv.zzgl();
                                                            String v4_35 = this.zzky().zzbx(v2_3.zzasp.zzth);
                                                            if (v4_35 == null) {
                                                                if (!android.text.TextUtils.isEmpty(v2_3.zzasp.zzafa)) {
                                                                    v5_83.zzacv.zzgi().zziy().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                                } else {
                                                                    v4_36 = Long.valueOf(-1);
                                                                    v3_7.zzawf = v4_36;
                                                                }
                                                            } else {
                                                                if (v4_35.zzaum != null) {
                                                                    v4_36 = v4_35.zzaum;
                                                                } else {
                                                                }
                                                            }
                                                            this.zzjh().zza(v3_7, v16_7);
                                                        }
                                                        android.database.sqlite.SQLiteException v3_11 = this.zzjh();
                                                        com.google.android.gms.internal.measurement.zzfk v2_4 = v2_3.zzasq;
                                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_4);
                                                        v3_11.zzab();
                                                        v3_11.zzch();
                                                        String v4_45 = new StringBuilder("rowid in (");
                                                        int v6_110 = 0;
                                                        while (v6_110 < v2_4.size()) {
                                                            if (v6_110 != 0) {
                                                                v4_45.append(",");
                                                            }
                                                            v4_45.append(((Long) v2_4.get(v6_110)).longValue());
                                                            v6_110++;
                                                        }
                                                        v4_45.append(")");
                                                        String v4_47 = v3_11.getWritableDatabase().delete("raw_events", v4_45.toString(), 0);
                                                        if (v4_47 != v2_4.size()) {
                                                            v3_11.zzgi().zziv().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v4_47), Integer.valueOf(v2_4.size()));
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v2_7 = this.zzjh();
                                                        android.database.sqlite.SQLiteException v3_14 = v2_7.getWritableDatabase();
                                                        try {
                                                            int v6_116 = new String[2];
                                                            v6_116[0] = v1_16;
                                                            v6_116[1] = v1_16;
                                                            v3_14.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v6_116);
                                                        } catch (android.database.sqlite.SQLiteException v0_6) {
                                                            v2_7.zzgi().zziv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v1_16), v0_6);
                                                        }
                                                        this.zzjh().setTransactionSuccessful();
                                                        this.zzjh().endTransaction();
                                                        return 1;
                                                    } catch (android.database.sqlite.SQLiteException v0_1) {
                                                        v1_1 = v0_1;
                                                    }
                                                }
                                            } else {
                                                v6_0.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                        }
                                        if (v15_14.moveToNext()) {
                                            v4_58.zzgi().zziy().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                        }
                                        boolean v16_6;
                                        com.google.android.gms.internal.measurement.zzfk v5_54;
                                        v15_14.close();
                                        v2_3.zzb(v13_5);
                                        if (v5_90 == -1) {
                                            v5_54 = "app_id = ? and metadata_fingerprint = ?";
                                            String v12_19 = new String[2];
                                            v12_19[0] = v3_0;
                                            v12_19[1] = v21_0;
                                            v16_6 = v12_19;
                                        } else {
                                            Boolean v13_6 = new String[3];
                                            v13_6[0] = v3_0;
                                            v13_6[1] = v21_0;
                                            v13_6[2] = String.valueOf(v5_90);
                                            v5_54 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_6 = v13_6;
                                        }
                                        v6_0 = v15_14;
                                        com.google.android.gms.internal.measurement.zzfk v5_56 = v24_1.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_54, v16_6, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_56.moveToFirst()) {
                                                do {
                                                    int v6_63 = v5_56.getLong(0);
                                                    com.google.android.gms.internal.measurement.zzet v8_3 = v5_56.getBlob(3);
                                                    com.google.android.gms.internal.measurement.zzet v8_4 = com.google.android.gms.internal.measurement.zzaca.zza(v8_3, 0, v8_3.length);
                                                    String v12_26 = new com.google.android.gms.internal.measurement.zzkr();
                                                    v12_26.zzb(v8_4);
                                                    v12_26.name = v5_56.getString(1);
                                                    v12_26.zzavb = Long.valueOf(v5_56.getLong(2));
                                                    if (v2_3.zza(v6_63, v12_26)) {
                                                    } else {
                                                        if (v5_56 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_56.moveToNext());
                                                if (v5_56 == null) {
                                                }
                                            } else {
                                                v4_58.zzgi().zziy().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                                if (v5_56 == null) {
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v6_0 = v5_56;
                                            String v1_2 = v0_0;
                                            if (v6_0 != 0) {
                                                v6_0.close();
                                            }
                                            throw v1_2;
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            String v12_4 = v3_0;
                                            v6_0 = v5_56;
                                            android.database.sqlite.SQLiteException v3_2 = v0_2;
                                            v4_58.zzgi().zziv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_4), v3_2);
                                            if (v6_0 == 0) {
                                            }
                                        }
                                        v5_56.close();
                                    } else {
                                        v4_58.zzgi().zziv().zzg("Raw event metadata record is missing. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                        if (v15_14 == null) {
                                        } else {
                                            v15_14.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_14;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v6_0 = v15_14;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_14;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v12_4 = v3_0;
                                    v6_0 = v15_14;
                                }
                                v12_4 = v3_0;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v6_0 = v22;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v12_4 = v3_0;
                                v6_0 = v22;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                            }
                        }
                    } else {
                        Boolean v13_17;
                        String v12_33 = v5_90 cmp -1;
                        try {
                            if (v12_33 == null) {
                                v13_17 = new String[1];
                                v13_17[0] = String.valueOf(p41);
                            } else {
                                v13_17 = new String[2];
                                v13_17[0] = String.valueOf(v5_90);
                                v13_17[1] = String.valueOf(p41);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                            v6_0 = 0;
                            v12_4 = 0;
                        }
                        String v12_41;
                        if (v12_33 == null) {
                            v12_41 = "";
                        } else {
                            v12_41 = "rowid <= ? and ";
                        }
                        android.database.sqlite.SQLiteException v3_17 = new StringBuilder((String.valueOf(v12_41).length() + 148));
                        v3_17.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_17.append(v12_41);
                        v3_17.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_15.rawQuery(v3_17.toString(), v13_17);
                        if (v3_0.moveToFirst()) {
                            v12_4 = v3_0.getString(0);
                            try {
                                Boolean v13_1 = v3_0.getString(1);
                                v3_0.close();
                                v22 = v3_0;
                                v3_0 = v12_4;
                                v21_0 = v13_1;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v6_0 = v3_0;
                            }
                        } else {
                            if (v3_0 == null) {
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v6_0 = v3_0;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v6_0 = v3_0;
                    v12_4 = 0;
                }
                v3_0.close();
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v6_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
                v3_2 = v0_7;
                v6_0 = 0;
                v12_4 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
            } catch (android.database.sqlite.SQLiteException v0_3) {
            }
        } catch (android.database.sqlite.SQLiteException v0_3) {
        }
    }

Method com.google.android.gms.internal.firebase_database.zzu.zzm() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzm()
    {
        this.zzn();
        com.google.android.gms.internal.firebase_database.zzhz v0_3 = System.currentTimeMillis();
        Object[] v2_4 = this.zzbr.delete("writes", 0, 0);
        Long v5_0 = (System.currentTimeMillis() - v0_3);
        if (this.zzbs.zzfa()) {
            com.google.android.gms.internal.firebase_database.zzhz v0_2 = this.zzbs;
            Object[] v3_1 = new Object[2];
            v3_1[0] = Integer.valueOf(v2_4);
            v3_1[1] = Long.valueOf(v5_0);
            Object[] v2_2 = new Object[0];
            v0_2.zza(String.format("Deleted %d (all) write(s) in %dms", v3_1), 0, v2_2);
        }
        return;
    }

Method com.google.android.gms.internal.firebase_database.zzu.zzb() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzb(long p6)
    {
        this.zzn();
        String v6_1 = String.valueOf(p6);
        android.database.sqlite.SQLiteDatabase v0_1 = this.zzbr;
        String[] v3 = new String[1];
        v3[0] = v6_1;
        v0_1.delete("trackedQueries", "id = ?", v3);
        android.database.sqlite.SQLiteDatabase v0_0 = this.zzbr;
        String[] v2_0 = new String[1];
        v2_0[0] = v6_1;
        v0_0.delete("trackedKeys", "id = ?", v2_0);
        return;
    }

Method com.google.android.gms.internal.firebase_database.zzu.zza() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zza(com.google.android.gms.internal.firebase_database.zzch p17, com.google.android.gms.internal.firebase_database.zzfx p18)
    {
        if (p18.zzdh()) {
            void v16_1 = this.zzn();
            long v9 = System.currentTimeMillis();
            String v0_1 = this.zza(p17, new String[] {"rowid", "path"}));
            com.google.android.gms.internal.firebase_database.zzgj v12 = new com.google.android.gms.internal.firebase_database.zzgj(0);
            com.google.android.gms.internal.firebase_database.zzhz v4_4 = new com.google.android.gms.internal.firebase_database.zzgj(0);
            while (v0_1.moveToNext()) {
                StringBuilder v13_5;
                String v2_2;
                Object[] v1_2;
                Object[] v1_1 = v0_1.getLong(0);
                int v3_2 = new com.google.android.gms.internal.firebase_database.zzch(v0_1.getString(1));
                if (p17.zzi(v3_2)) {
                    Object[] v6_2 = com.google.android.gms.internal.firebase_database.zzch.zza(p17, v3_2);
                    if (!p18.zzv(v6_2)) {
                        if (!p18.zzw(v6_2)) {
                            v1_2 = this.zzbs;
                            String v2_0 = String.valueOf(p17);
                            int v3_3 = String.valueOf(v3_2);
                            v13_5 = new StringBuilder(((String.valueOf(v2_0).length() + 88) + String.valueOf(v3_3).length()));
                            v13_5.append("We are pruning at ");
                            v13_5.append(v2_0);
                            v13_5.append(" and have data at ");
                            v13_5.append(v3_3);
                            v2_2 = " that isn\'t marked for pruning or keeping. Ignoring.";
                        } else {
                            v4_4 = v4_4.zzb(v6_2, Long.valueOf(v1_1));
                        }
                    } else {
                        v12 = v12.zzb(v6_2, Long.valueOf(v1_1));
                    }
                } else {
                    v1_2 = this.zzbs;
                    String v2_3 = String.valueOf(p17);
                    int v3_4 = String.valueOf(v3_2);
                    v13_5 = new StringBuilder(((String.valueOf(v2_3).length() + 67) + String.valueOf(v3_4).length()));
                    v13_5.append("We are pruning at ");
                    v13_5.append(v2_3);
                    v13_5.append(" but we have data stored higher up at ");
                    v13_5.append(v3_4);
                    v2_2 = ". Ignoring.";
                }
                v13_5.append(v2_2);
                v1_2.zzb(v13_5.toString(), 0);
            }
            Object[] v1_8;
            String v0_3;
            if (v12.isEmpty()) {
                v0_3 = 0;
                v1_8 = 0;
            } else {
                java.util.ArrayList v15_1 = new java.util.ArrayList();
                v16_1.zza(p17, com.google.android.gms.internal.firebase_database.zzch.zzbt(), v12, v4_4, p18, v15_1);
                String v0_6 = v12.values();
                Object[] v1_10 = com.google.android.gms.internal.firebase_database.zzu.zza(v0_6);
                int v3_7 = new StringBuilder((String.valueOf(v1_10).length() + 11));
                v3_7.append("rowid IN (");
                v3_7.append(v1_10);
                v3_7.append(")");
                this.zzbr.delete("serverCache", v3_7.toString(), 0);
                Object[] v1_14 = ((java.util.ArrayList) v15_1);
                String v2_14 = v1_14.size();
                int v3_0 = 0;
                while (v3_0 < v2_14) {
                    com.google.android.gms.internal.firebase_database.zzhz v4_0 = v1_14.get(v3_0);
                    v3_0++;
                    com.google.android.gms.internal.firebase_database.zzhz v4_1 = ((com.google.android.gms.internal.firebase_database.zzkn) v4_0);
                    this.zzc(p17.zzh(((com.google.android.gms.internal.firebase_database.zzch) v4_1.getFirst())), ((com.google.android.gms.internal.firebase_database.zzja) v4_1.zzgv()));
                }
                v0_3 = v0_6.size();
                v1_8 = v15_1.size();
            }
            String v2_16 = (System.currentTimeMillis() - v9);
            if (this.zzbs.zzfa()) {
                com.google.android.gms.internal.firebase_database.zzhz v4_7 = this.zzbs;
                Object[] v6_15 = new Object[3];
                v6_15[0] = Integer.valueOf(v0_3);
                v6_15[1] = Integer.valueOf(v1_8);
                v6_15[2] = Long.valueOf(v2_16);
                Object[] v1_16 = new Object[0];
                v4_7.zza(String.format("Pruned %d rows with %d nodes resaved in %dms", v6_15), 0, v1_16);
            }
            return;
        } else {
            return;
        }
    }

Method com.google.android.gms.internal.firebase_database.zzu.zza() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zza(long p12, java.util.Set p14, java.util.Set p15)
    {
        this.zzn();
        com.google.android.gms.internal.firebase_database.zzhz v0_0 = System.currentTimeMillis();
        android.database.sqlite.SQLiteDatabase v3_1 = String.valueOf(p12);
        int v4_1 = p15.iterator();
        while (v4_1.hasNext()) {
            Object[] v5_5 = ((com.google.android.gms.internal.firebase_database.zzid) v4_1.next());
            String v9_3 = this.zzbr;
            String[] v7_1 = new String[2];
            v7_1[0] = v3_1;
            v7_1[1] = v5_5.zzfg();
            v9_3.delete("trackedKeys", "id = ? AND key = ?", v7_1);
        }
        long v2_0 = p14.iterator();
        while (v2_0.hasNext()) {
            android.database.sqlite.SQLiteDatabase v3_3 = ((com.google.android.gms.internal.firebase_database.zzid) v2_0.next());
            Object[] v5_3 = new android.content.ContentValues();
            v5_3.put("id", Long.valueOf(p12));
            v5_3.put("key", v3_3.zzfg());
            this.zzbr.insertWithOnConflict("trackedKeys", 0, v5_3, 5);
        }
        long v2_2 = (System.currentTimeMillis() - v0_0);
        if (this.zzbs.zzfa()) {
            com.google.android.gms.internal.firebase_database.zzhz v0_3 = this.zzbs;
            Object[] v5_1 = new Object[4];
            v5_1[0] = Integer.valueOf(p14.size());
            v5_1[1] = Integer.valueOf(p15.size());
            v5_1[2] = Long.valueOf(p12);
            v5_1[3] = Long.valueOf(v2_2);
            Object[] v13_1 = new Object[0];
            v0_3.zza(String.format("Updated tracked query keys (%d added, %d removed) for tracked query id %d in %dms", v5_1), 0, v13_1);
        }
        return;
    }

Method com.google.android.gms.internal.firebase_database.zzu.zza() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zza(long p11, java.util.Set p13)
    {
        this.zzn();
        com.google.android.gms.internal.firebase_database.zzhz v0_0 = System.currentTimeMillis();
        int v4_1 = this.zzbr;
        String v7_3 = new String[1];
        v7_3[0] = String.valueOf(p11);
        v4_1.delete("trackedKeys", "id = ?", v7_3);
        long v2_0 = p13.iterator();
        while (v2_0.hasNext()) {
            android.database.sqlite.SQLiteDatabase v3_2 = ((com.google.android.gms.internal.firebase_database.zzid) v2_0.next());
            Object[] v5_3 = new android.content.ContentValues();
            v5_3.put("id", Long.valueOf(p11));
            v5_3.put("key", v3_2.zzfg());
            this.zzbr.insertWithOnConflict("trackedKeys", 0, v5_3, 5);
        }
        long v2_2 = (System.currentTimeMillis() - v0_0);
        if (this.zzbs.zzfa()) {
            com.google.android.gms.internal.firebase_database.zzhz v0_3 = this.zzbs;
            Object[] v5_1 = new Object[3];
            v5_1[0] = Integer.valueOf(p13.size());
            v5_1[1] = Long.valueOf(p11);
            v5_1[2] = Long.valueOf(v2_2);
            Object[] v12_1 = new Object[0];
            v0_3.zza(String.format("Set %d tracked query keys for tracked query %d in %dms", v5_1), 0, v12_1);
        }
        return;
    }

Method com.google.android.gms.internal.firebase_database.zzu.zza() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zza(long p10)
    {
        this.zzn();
        com.google.android.gms.internal.firebase_database.zzhz v0_2 = System.currentTimeMillis();
        Integer v2_2 = this.zzbr;
        Object[] v6_2 = new String[1];
        v6_2[0] = String.valueOf(p10);
        Integer v2_0 = v2_2.delete("writes", "id = ?", v6_2);
        long v3_1 = (System.currentTimeMillis() - v0_2);
        if (this.zzbs.zzfa()) {
            com.google.android.gms.internal.firebase_database.zzhz v0_3 = this.zzbs;
            Object[] v6_1 = new Object[3];
            v6_1[0] = Integer.valueOf(v2_0);
            v6_1[1] = Long.valueOf(p10);
            v6_1[2] = Long.valueOf(v3_1);
            Object[] v11_1 = new Object[0];
            v0_3.zza(String.format("Deleted %d write(s) with writeId %d in %dms", v6_1), 0, v11_1);
        }
        return;
    }

Method com.google.android.gms.internal.firebase_database.zzu.zza() calling method android.database.sqlite.SQLiteDatabase.delete()


    private final void zza(com.google.android.gms.internal.firebase_database.zzch p7, long p8, String p10, byte[] p11)
    {
        this.zzn();
        android.content.ContentValues v0_0 = this.zzbr;
        int v3_2 = new String[1];
        int v5 = 0;
        v3_2[0] = String.valueOf(p8);
        v0_0.delete("writes", "id = ?", v3_2);
        if (p11.length < 262144) {
            android.content.ContentValues v0_3 = new android.content.ContentValues();
            v0_3.put("id", Long.valueOf(p8));
            v0_3.put("path", com.google.android.gms.internal.firebase_database.zzu.zzc(p7));
            v0_3.put("type", p10);
            v0_3.put("part", 0);
            v0_3.put("node", p11);
            this.zzbr.insertWithOnConflict("writes", 0, v0_3, 5);
            return;
        } else {
            java.util.List v11_1 = com.google.android.gms.internal.firebase_database.zzu.zza(p11, 262144);
            while (v5 < v11_1.size()) {
                android.content.ContentValues v0_6 = new android.content.ContentValues();
                v0_6.put("id", Long.valueOf(p8));
                v0_6.put("path", com.google.android.gms.internal.firebase_database.zzu.zzc(p7));
                v0_6.put("type", p10);
                v0_6.put("part", Integer.valueOf(v5));
                v0_6.put("node", ((byte[]) v11_1.get(v5)));
                this.zzbr.insertWithOnConflict("writes", 0, v0_6, 5);
                v5++;
            }
            return;
        }
    }

Method com.google.android.gms.internal.firebase_database.zzu.zza() calling method android.database.sqlite.SQLiteDatabase.delete()


    private final int zza(String p6, com.google.android.gms.internal.firebase_database.zzch p7)
    {
        int v7_2 = com.google.android.gms.internal.firebase_database.zzu.zzc(p7);
        String v1 = com.google.android.gms.internal.firebase_database.zzu.zzc(v7_2);
        android.database.sqlite.SQLiteDatabase v2 = this.zzbr;
        String[] v3_1 = new String[2];
        v3_1[0] = v7_2;
        v3_1[1] = v1;
        return v2.delete(p6, "path >= ? AND path < ?", v3_1);
    }

Method com.facebook.react.modules.storage.AsyncStorageModule$3.doInBackgroundGuarded() calling method android.database.sqlite.SQLiteDatabase.delete()


    protected varargs void doInBackgroundGuarded(Void[] p9)
    {
        com.facebook.react.bridge.WritableMap v2_1 = 0;
        if (com.facebook.react.modules.storage.AsyncStorageModule.access$000(this.this$0)) {
            try {
                com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.this$0).get().beginTransaction();
                com.facebook.react.bridge.Callback v9_3 = 0;
            } catch (com.facebook.react.bridge.Callback v9_22) {
                try {
                    com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.this$0).get().endTransaction();
                } catch (Object[] v0_1) {
                    com.facebook.common.logging.FLog.w("ReactNative", v0_1.getMessage(), v0_1);
                    com.facebook.react.modules.storage.AsyncStorageErrorUtil.getError(0, v0_1.getMessage());
                }
                throw v9_22;
            } catch (com.facebook.react.bridge.Callback v9_13) {
                com.facebook.common.logging.FLog.w("ReactNative", v9_13.getMessage(), v9_13);
                com.facebook.react.bridge.Callback v9_15 = com.facebook.react.modules.storage.AsyncStorageErrorUtil.getError(0, v9_13.getMessage());
                try {
                    com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.this$0).get().endTransaction();
                    v2_1 = v9_15;
                } catch (String v3_13) {
                    com.facebook.common.logging.FLog.w("ReactNative", v3_13.getMessage(), v3_13);
                    if (v9_15 != null) {
                        v2_1 = v9_15;
                    } else {
                        v2_1 = com.facebook.react.modules.storage.AsyncStorageErrorUtil.getError(v2_1, v3_13.getMessage());
                    }
                }
                if (v2_1 == null) {
                    Object[] v0_5 = new Object[0];
                    this.val$callback.invoke(v0_5);
                } else {
                    com.facebook.react.bridge.Callback v9_21 = this.val$callback;
                    Object[] v0_6 = new Object[1];
                    v0_6[0] = v2_1;
                    v9_21.invoke(v0_6);
                }
                return;
            }
            while (v9_3 < this.val$keys.size()) {
                String v3_7 = Math.min((this.val$keys.size() - v9_3), 999);
                com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.this$0).get().delete("catalystLocalStorage", com.facebook.react.modules.storage.AsyncLocalStorageUtil.buildKeySelection(v3_7), com.facebook.react.modules.storage.AsyncLocalStorageUtil.buildKeySelectionArgs(this.val$keys, v9_3, v3_7));
                v9_3 += 999;
            }
            com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.this$0).get().setTransactionSuccessful();
            try {
                com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.this$0).get().endTransaction();
            } catch (com.facebook.react.bridge.Callback v9_11) {
                com.facebook.common.logging.FLog.w("ReactNative", v9_11.getMessage(), v9_11);
                v2_1 = com.facebook.react.modules.storage.AsyncStorageErrorUtil.getError(0, v9_11.getMessage());
            }
        } else {
            com.facebook.react.bridge.Callback v9_2 = this.val$callback;
            Object[] v0_3 = new Object[1];
            v0_3[0] = com.facebook.react.modules.storage.AsyncStorageErrorUtil.getDBError(0);
            v9_2.invoke(v0_3);
            return;
        }
    }

Method com.facebook.react.modules.storage.ReactDatabaseSupplier.clear() calling method android.database.sqlite.SQLiteDatabase.delete()


    declared_synchronized void clear()
    {
        try {
            this.get().delete("catalystLocalStorage", 0, 0);
            return;
        } catch (Throwable v0_1) {
            throw v0_1;
        }
    }

Method com.google.firebase.firestore.c.zzat.zza() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    final android.database.sqlite.SQLiteStatement zza(String p2)
    {
        return this.zze.compileStatement(p2);
    }

Method com.facebook.react.modules.storage.AsyncStorageModule$2.doInBackgroundGuarded() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    protected varargs void doInBackgroundGuarded(Void[] p7)
    {
        com.facebook.react.bridge.WritableMap v2_0 = 0;
        if (com.facebook.react.modules.storage.AsyncStorageModule.access$000(this.this$0)) {
            String v7_7 = com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.this$0).get().compileStatement("INSERT OR REPLACE INTO catalystLocalStorage VALUES (?, ?);");
            try {
                com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.this$0).get().beginTransaction();
                String v3_13 = 0;
            } catch (String v7_12) {
                try {
                    com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.this$0).get().endTransaction();
                } catch (Exception v0_8) {
                    com.facebook.common.logging.FLog.w("ReactNative", v0_8.getMessage(), v0_8);
                    com.facebook.react.modules.storage.AsyncStorageErrorUtil.getError(0, v0_8.getMessage());
                }
                throw v7_12;
            } catch (String v7_4) {
                com.facebook.common.logging.FLog.w("ReactNative", v7_4.getMessage(), v7_4);
                String v7_6 = com.facebook.react.modules.storage.AsyncStorageErrorUtil.getError(0, v7_4.getMessage());
                try {
                    com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.this$0).get().endTransaction();
                    v2_0 = v7_6;
                } catch (String v3_7) {
                    com.facebook.common.logging.FLog.w("ReactNative", v3_7.getMessage(), v3_7);
                    if (v7_6 != null) {
                        v2_0 = v7_6;
                    } else {
                        v2_0 = com.facebook.react.modules.storage.AsyncStorageErrorUtil.getError(v2_0, v3_7.getMessage());
                    }
                }
                if (v2_0 == null) {
                    Exception v0_4 = new Object[0];
                    this.val$callback.invoke(v0_4);
                } else {
                    String v7_11 = this.val$callback;
                    String v1_1 = new Object[1];
                    v1_1[0] = v2_0;
                    v7_11.invoke(v1_1);
                }
                return;
            }
            while (v3_13 < this.val$keyValueArray.size()) {
                if (this.val$keyValueArray.getArray(v3_13).size() == 2) {
                    if (this.val$keyValueArray.getArray(v3_13).getString(0) != null) {
                        if (this.val$keyValueArray.getArray(v3_13).getString(1) != null) {
                            v7_7.clearBindings();
                            v7_7.bindString(1, this.val$keyValueArray.getArray(v3_13).getString(0));
                            v7_7.bindString(2, this.val$keyValueArray.getArray(v3_13).getString(1));
                            v7_7.execute();
                            v3_13++;
                        } else {
                            String v7_25 = com.facebook.react.modules.storage.AsyncStorageErrorUtil.getInvalidValueError(0);
                            try {
                                com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.this$0).get().endTransaction();
                            } catch (Exception v0_18) {
                                com.facebook.common.logging.FLog.w("ReactNative", v0_18.getMessage(), v0_18);
                                if (v7_25 != null) {
                                } else {
                                    com.facebook.react.modules.storage.AsyncStorageErrorUtil.getError(0, v0_18.getMessage());
                                }
                            }
                            return;
                        }
                    } else {
                        String v7_1 = com.facebook.react.modules.storage.AsyncStorageErrorUtil.getInvalidKeyError(0);
                        try {
                            com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.this$0).get().endTransaction();
                        } catch (Exception v0_3) {
                            com.facebook.common.logging.FLog.w("ReactNative", v0_3.getMessage(), v0_3);
                            if (v7_1 != null) {
                            } else {
                                com.facebook.react.modules.storage.AsyncStorageErrorUtil.getError(0, v0_3.getMessage());
                            }
                        }
                        return;
                    }
                } else {
                    String v7_3 = com.facebook.react.modules.storage.AsyncStorageErrorUtil.getInvalidValueError(0);
                    try {
                        com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.this$0).get().endTransaction();
                    } catch (Exception v0_13) {
                        com.facebook.common.logging.FLog.w("ReactNative", v0_13.getMessage(), v0_13);
                        if (v7_3 != null) {
                        } else {
                            com.facebook.react.modules.storage.AsyncStorageErrorUtil.getError(0, v0_13.getMessage());
                        }
                    }
                    return;
                }
            }
            com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.this$0).get().setTransactionSuccessful();
            try {
                com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.this$0).get().endTransaction();
            } catch (String v7_22) {
                com.facebook.common.logging.FLog.w("ReactNative", v7_22.getMessage(), v7_22);
                v2_0 = com.facebook.react.modules.storage.AsyncStorageErrorUtil.getError(0, v7_22.getMessage());
            }
        } else {
            String v7_14 = this.val$callback;
            String v1_4 = new Object[1];
            v1_4[0] = com.facebook.react.modules.storage.AsyncStorageErrorUtil.getDBError(0);
            v7_14.invoke(v1_4);
            return;
        }
    }

Method com.google.android.gms.internal.measurement.zzfe.zzp() calling method android.database.sqlite.SQLiteDatabase.query()

Couldn't retrieve source code

Method com.google.android.gms.internal.measurement.zzek.zzl() calling method android.database.sqlite.SQLiteDatabase.query()


    final java.util.Map zzl(String p13, String p14)
    {
        this.zzch();
        this.zzab();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p14);
        android.database.sqlite.SQLiteException v0_2 = new android.support.v4.util.ArrayMap();
        Integer v1_8 = this.getWritableDatabase();
        try {
            String[] v5_1 = new String[2];
            v5_1[0] = p13;
            v5_1[1] = p14;
            int v14_1 = v1_8.query("property_filters", new String[] {"audience_id", "data"}), "app_id=? AND property_name=?", v5_1, 0, 0, 0);
            try {
                if (!v14_1.moveToFirst()) {
                    java.util.Map v13_3 = java.util.Collections.emptyMap();
                    if (v14_1 != 0) {
                        v14_1.close();
                    }
                    return v13_3;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                this.zzgi().zziv().zze("Database error querying filters. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p13), v0_0);
                if (v14_1 != 0) {
                    v14_1.close();
                }
                return 0;
            }
            do {
                Integer v1_1 = v14_1.getBlob(1);
                Integer v1_2 = com.google.android.gms.internal.measurement.zzaca.zza(v1_1, 0, v1_1.length);
                com.google.android.gms.internal.measurement.zzfk v2_2 = new com.google.android.gms.internal.measurement.zzkk();
                v2_2.zzb(v1_2);
                Integer v1_4 = v14_1.getInt(0);
                java.util.ArrayList v3_5 = ((java.util.List) v0_2.get(Integer.valueOf(v1_4)));
                if (v3_5 == null) {
                    v3_5 = new java.util.ArrayList();
                    v0_2.put(Integer.valueOf(v1_4), v3_5);
                }
                v3_5.add(v2_2);
            } while(v14_1.moveToNext());
            if (v14_1 != 0) {
                v14_1.close();
            }
            return v0_2;
        } catch (java.util.Map v13_1) {
            v14_1 = 0;
            if (v14_1 != 0) {
                v14_1.close();
            }
            throw v13_1;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v14_1 = 0;
        } catch (java.util.Map v13_1) {
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zzk() calling method android.database.sqlite.SQLiteDatabase.query()


    final java.util.Map zzk(String p13, String p14)
    {
        this.zzch();
        this.zzab();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p14);
        android.database.sqlite.SQLiteException v0_2 = new android.support.v4.util.ArrayMap();
        Integer v1_8 = this.getWritableDatabase();
        try {
            String[] v5_1 = new String[2];
            v5_1[0] = p13;
            v5_1[1] = p14;
            int v14_1 = v1_8.query("event_filters", new String[] {"audience_id", "data"}), "app_id=? AND event_name=?", v5_1, 0, 0, 0);
            try {
                if (!v14_1.moveToFirst()) {
                    java.util.Map v13_3 = java.util.Collections.emptyMap();
                    if (v14_1 != 0) {
                        v14_1.close();
                    }
                    return v13_3;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                this.zzgi().zziv().zze("Database error querying filters. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p13), v0_0);
                if (v14_1 != 0) {
                    v14_1.close();
                }
                return 0;
            }
            do {
                Integer v1_1 = v14_1.getBlob(1);
                Integer v1_2 = com.google.android.gms.internal.measurement.zzaca.zza(v1_1, 0, v1_1.length);
                com.google.android.gms.internal.measurement.zzfk v2_2 = new com.google.android.gms.internal.measurement.zzkh();
                v2_2.zzb(v1_2);
                Integer v1_4 = v14_1.getInt(0);
                java.util.ArrayList v3_5 = ((java.util.List) v0_2.get(Integer.valueOf(v1_4)));
                if (v3_5 == null) {
                    v3_5 = new java.util.ArrayList();
                    v0_2.put(Integer.valueOf(v1_4), v3_5);
                }
                v3_5.add(v2_2);
            } while(v14_1.moveToNext());
            if (v14_1 != 0) {
                v14_1.close();
            }
            return v0_2;
        } catch (java.util.Map v13_1) {
            v14_1 = 0;
            if (v14_1 != 0) {
                v14_1.close();
            }
            throw v13_1;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v14_1 = 0;
        } catch (java.util.Map v13_1) {
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zzi() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.measurement.zzef zzi(String p30, String p31)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p30);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p31);
        this.zzab();
        this.zzch();
        try {
            int v9_1 = this.getWritableDatabase();
            String[] v13 = "active";
            String v15 = "trigger_timeout";
            com.google.android.gms.internal.measurement.zzka v17 = "creation_timestamp";
            String v19 = "triggered_timestamp";
            v13 = new String[2];
            v13[0] = p30;
            v13[1] = p31;
            int v9_0 = v9_1.query("conditional_properties", new String[] {"origin", "expired_event"}), "app_id=? and name=?", v13, 0, 0, 0);
            try {
                if (v9_0.moveToFirst()) {
                    String v16_1 = v9_0.getString(0);
                    try {
                        int v20;
                        Object v5 = this.zza(v9_0, 1);
                    } catch (com.google.android.gms.internal.measurement.zzef v0_1) {
                        this.zzgi().zziv().zzd("Error querying conditional property", com.google.android.gms.internal.measurement.zzfi.zzbp(p30), this.zzgf().zzbo(p31), v0_1);
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        return 0;
                    }
                    if (v9_0.getInt(2) == 0) {
                        v20 = 0;
                    } else {
                        v20 = 1;
                    }
                    String v21_1 = v9_0.getString(3);
                    long v23 = v9_0.getLong(4);
                    com.google.android.gms.internal.measurement.zzex v22_1 = ((com.google.android.gms.internal.measurement.zzex) this.zzjf().zza(v9_0.getBlob(5), com.google.android.gms.internal.measurement.zzex.CREATOR));
                    long v18 = v9_0.getLong(6);
                    com.google.android.gms.internal.measurement.zzex v25_1 = ((com.google.android.gms.internal.measurement.zzex) this.zzjf().zza(v9_0.getBlob(7), com.google.android.gms.internal.measurement.zzex.CREATOR));
                    Object v3_3 = v9_0.getLong(8);
                    long v26 = v9_0.getLong(9);
                    com.google.android.gms.internal.measurement.zzex v28_1 = ((com.google.android.gms.internal.measurement.zzex) this.zzjf().zza(v9_0.getBlob(10), com.google.android.gms.internal.measurement.zzex.CREATOR));
                    v17 = new com.google.android.gms.internal.measurement.zzka;
                    v17(p31, v3_3, v5, v16_1);
                    com.google.android.gms.internal.measurement.zzef v0_0 = new com.google.android.gms.internal.measurement.zzef;
                    v0_0(p30, v16_1, v17, v18, v20, v21_1, v22_1, v23, v25_1, v26, v28_1);
                    if (v9_0.moveToNext()) {
                        this.zzgi().zziv().zze("Got multiple records for conditional property, expected one", com.google.android.gms.internal.measurement.zzfi.zzbp(p30), this.zzgf().zzbo(p31));
                    }
                    if (v9_0 != 0) {
                        v9_0.close();
                    }
                    return v0_0;
                } else {
                    if (v9_0 != 0) {
                        v9_0.close();
                    }
                    return 0;
                }
            } catch (com.google.android.gms.internal.measurement.zzef v0_2) {
                if (v9_0 != 0) {
                    v9_0.close();
                }
                throw v0_2;
            } catch (com.google.android.gms.internal.measurement.zzef v0_1) {
            }
        } catch (com.google.android.gms.internal.measurement.zzef v0_2) {
            v9_0 = 0;
        } catch (com.google.android.gms.internal.measurement.zzef v0_1) {
            v9_0 = 0;
        } catch (com.google.android.gms.internal.measurement.zzef v0_2) {
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zzh() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.measurement.zzkc zzh(String p19, String p20)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p19);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p20);
        this.zzab();
        this.zzch();
        try {
            int v10_1 = this.getWritableDatabase();
            String[] v14 = new String[2];
            v14[0] = p19;
            v14[1] = p20;
            int v10_0 = v10_1.query("user_attributes", new String[] {"set_timestamp", "value", "origin"}), "app_id=? and name=?", v14, 0, 0, 0);
            try {
                if (v10_0.moveToFirst()) {
                    try {
                        android.database.sqlite.SQLiteException v0_3 = new com.google.android.gms.internal.measurement.zzkc;
                        v0_3(p19, v10_0.getString(2), p20, v10_0.getLong(0), this.zza(v10_0, 1));
                    } catch (android.database.sqlite.SQLiteException v0_1) {
                        this.zzgi().zziv().zzd("Error querying user property. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p19), this.zzgf().zzbo(p20), v0_1);
                        if (v10_0 != 0) {
                            v10_0.close();
                        }
                        return 0;
                    }
                    if (v10_0.moveToNext()) {
                        this.zzgi().zziv().zzg("Got multiple records for user property, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p19));
                    }
                    if (v10_0 != 0) {
                        v10_0.close();
                    }
                    return v0_3;
                } else {
                    if (v10_0 != 0) {
                        v10_0.close();
                    }
                    return 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_2) {
                if (v10_0 != 0) {
                    v10_0.close();
                }
                throw v0_2;
            } catch (android.database.sqlite.SQLiteException v0_1) {
            }
        } catch (android.database.sqlite.SQLiteException v0_2) {
            v10_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_1) {
            v10_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_2) {
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zzf() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.measurement.zzet zzf(String p22, String p23)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p22);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p23);
        this.zzab();
        this.zzch();
        try {
            String v1_9 = this.getWritableDatabase();
            String[] v5 = "last_fire_timestamp";
            int v7 = "last_sampled_complex_event_id";
            v5 = new String[2];
            int v9_1 = 0;
            v5[0] = p22;
            v5[1] = p23;
            Boolean v14_0 = v1_9.query("events", new String[] {"lifetime_count", "last_exempt_from_sampling"}), "app_id=? and name=?", v5, 0, 0, 0);
            try {
                if (v14_0.moveToFirst()) {
                    com.google.android.gms.internal.measurement.zzfk v0_6;
                    long v4_3 = v14_0.getLong(0);
                    long v6_1 = v14_0.getLong(1);
                    long v11 = v14_0.getLong(2);
                    if (!v14_0.isNull(3)) {
                        v0_6 = v14_0.getLong(3);
                    } else {
                        v0_6 = 0;
                    }
                    com.google.android.gms.internal.measurement.zzfk v0_9;
                    android.database.Cursor v17_1 = v0_6;
                    if (!v14_0.isNull(4)) {
                        v0_9 = Long.valueOf(v14_0.getLong(4));
                    } else {
                        v0_9 = 0;
                    }
                    Long v13;
                    if (!v14_0.isNull(5)) {
                        v13 = Long.valueOf(v14_0.getLong(5));
                    } else {
                        v13 = 0;
                    }
                    Boolean v19_0;
                    if (v14_0.isNull(6)) {
                        v19_0 = 0;
                    } else {
                        if (v14_0.getLong(6) == 1) {
                            v9_1 = 1;
                        }
                        v19_0 = Boolean.valueOf(v9_1);
                    }
                    com.google.android.gms.internal.measurement.zzet v20 = new com.google.android.gms.internal.measurement.zzet;
                    android.database.Cursor v17_0 = v14_0;
                    try {
                        v20(p22, p23, v4_3, v6_1, v11, v17_1, v0_9, v13, v19_0);
                    } catch (com.google.android.gms.internal.measurement.zzfk v0_2) {
                        this.zzgi().zziv().zzd("Error querying events. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p22), this.zzgf().zzbm(p23), v0_2);
                        if (v17_0 != null) {
                            v17_0.close();
                        }
                        return 0;
                    }
                    if (v17_0.moveToNext()) {
                        this.zzgi().zziv().zzg("Got multiple records for event aggregates, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p22));
                    }
                    if (v17_0 != null) {
                        v17_0.close();
                    }
                    return v20;
                } else {
                    if (v14_0 != null) {
                        v14_0.close();
                    }
                    return 0;
                }
            } catch (com.google.android.gms.internal.measurement.zzfk v0_3) {
                v17_0 = v14_0;
                if (v17_0 != null) {
                    v17_0.close();
                }
                throw v0_3;
            } catch (com.google.android.gms.internal.measurement.zzfk v0_2) {
                v17_0 = v14_0;
            }
        } catch (com.google.android.gms.internal.measurement.zzfk v0_3) {
            v17_0 = 0;
        } catch (com.google.android.gms.internal.measurement.zzfk v0_2) {
            v17_0 = 0;
        } catch (com.google.android.gms.internal.measurement.zzfk v0_3) {
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zzbi() calling method android.database.sqlite.SQLiteDatabase.query()


    final java.util.Map zzbi(String p12)
    {
        this.zzch();
        this.zzab();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p12);
        int v0_1 = this.getWritableDatabase();
        try {
            com.google.android.gms.internal.measurement.zzfk v4_0 = new String[1];
            v4_0[0] = p12;
            int v0_0 = v0_1.query("audience_filter_values", new String[] {"audience_id", "current_results"}), "app_id=?", v4_0, 0, 0, 0);
            try {
                if (v0_0.moveToFirst()) {
                    android.support.v4.util.ArrayMap v1_3 = new android.support.v4.util.ArrayMap();
                    do {
                        boolean v2_1 = v0_0.getInt(0);
                        java.io.IOException v3_1 = v0_0.getBlob(1);
                        java.io.IOException v3_2 = com.google.android.gms.internal.measurement.zzaca.zza(v3_1, 0, v3_1.length);
                        com.google.android.gms.internal.measurement.zzfk v4_3 = new com.google.android.gms.internal.measurement.zzkv();
                        v4_3.zzb(v3_2);
                        v1_3.put(Integer.valueOf(v2_1), v4_3);
                    } while(v0_0.moveToNext());
                    if (v0_0 != 0) {
                        v0_0.close();
                    }
                    return v1_3;
                } else {
                    if (v0_0 != 0) {
                        v0_0.close();
                    }
                    return 0;
                }
            } catch (android.support.v4.util.ArrayMap v1_0) {
                this.zzgi().zziv().zze("Database error querying filter results. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p12), v1_0);
                if (v0_0 != 0) {
                    v0_0.close();
                }
                return 0;
            }
        } catch (Throwable v12_1) {
            v0_0 = 0;
            if (v0_0 != 0) {
                v0_0.close();
            }
            throw v12_1;
        } catch (android.support.v4.util.ArrayMap v1_0) {
            v0_0 = 0;
        } catch (Throwable v12_1) {
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zzbh() calling method android.database.sqlite.SQLiteDatabase.query()


    public final byte[] zzbh(String p11)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p11);
        this.zzab();
        this.zzch();
        try {
            int v1_1 = this.getWritableDatabase();
            Object v5_1 = new String[1];
            v5_1[0] = p11;
            int v1_0 = v1_1.query("apps", new String[] {"remote_config"}), "app_id=?", v5_1, 0, 0, 0);
            try {
                if (v1_0.moveToFirst()) {
                    byte[] v2_2 = v1_0.getBlob(0);
                    if (v1_0.moveToNext()) {
                        this.zzgi().zziv().zzg("Got multiple records for app config, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p11));
                    }
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return v2_2;
                } else {
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return 0;
                }
            } catch (byte[] v2_0) {
                this.zzgi().zziv().zze("Error querying remote config. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p11), v2_0);
                if (v1_0 != 0) {
                    v1_0.close();
                }
                return 0;
            }
        } catch (Throwable v11_1) {
            v1_0 = 0;
            if (v1_0 != 0) {
                v1_0.close();
            }
            throw v11_1;
        } catch (byte[] v2_0) {
            v1_0 = 0;
        } catch (Throwable v11_1) {
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zzbf() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.measurement.zzea zzbf(String p31)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p31);
        this.zzab();
        this.zzch();
        try {
            int v3_1 = this.getWritableDatabase();
            Object v7 = "resettable_device_id_hash";
            int v9 = "last_bundle_start_timestamp";
            int v11 = "app_version";
            String v13 = "gmp_version";
            String v15 = "measurement_enabled";
            String v17 = "daily_public_events_count";
            String v19 = "daily_conversions_count";
            String v21 = "failed_config_fetch_time";
            String v23 = "firebase_instance_id";
            String v25 = "daily_realtime_events_count";
            String v27 = "android_id";
            com.google.android.gms.internal.measurement.zzfk v0_0 = 1;
            Object v7_6 = new String[1];
            v7_6[0] = p31;
            int v3_0 = v3_1.query("apps", new String[] {"app_instance_id", "ssaid_reporting_enabled"}), "app_id=?", v7_6, 0, 0, 0);
            try {
                if (v3_0.moveToFirst()) {
                    try {
                        String v6_3;
                        com.google.android.gms.internal.measurement.zzea v4_4 = new com.google.android.gms.internal.measurement.zzea(this.zzalo.zzlm(), p31);
                        v4_4.zzam(v3_0.getString(0));
                        v4_4.zzan(v3_0.getString(1));
                        v4_4.zzao(v3_0.getString(2));
                        v4_4.zzw(v3_0.getLong(3));
                        v4_4.zzr(v3_0.getLong(4));
                        v4_4.zzs(v3_0.getLong(5));
                        v4_4.setAppVersion(v3_0.getString(6));
                        v4_4.zzaq(v3_0.getString(7));
                        v4_4.zzu(v3_0.getLong(8));
                        v4_4.zzv(v3_0.getLong(9));
                    } catch (com.google.android.gms.internal.measurement.zzfk v0_4) {
                        this.zzgi().zziv().zze("Error querying app. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p31), v0_4);
                        if (v3_0 != 0) {
                            v3_0.close();
                        }
                        return 0;
                    }
                    if (v3_0.isNull(10)) {
                        v6_3 = 1;
                    } else {
                        if (v3_0.getInt(10) == 0) {
                            v6_3 = 0;
                        } else {
                        }
                    }
                    String v6_18;
                    v4_4.setMeasurementEnabled(v6_3);
                    v4_4.zzz(v3_0.getLong(11));
                    v4_4.zzaa(v3_0.getLong(12));
                    v4_4.zzab(v3_0.getLong(13));
                    v4_4.zzac(v3_0.getLong(14));
                    v4_4.zzx(v3_0.getLong(15));
                    v4_4.zzy(v3_0.getLong(16));
                    if (!v3_0.isNull(17)) {
                        v6_18 = ((long) v3_0.getInt(17));
                    } else {
                        v6_18 = -2147483648;
                    }
                    String v6_28;
                    v4_4.zzt(v6_18);
                    v4_4.zzap(v3_0.getString(18));
                    v4_4.zzae(v3_0.getLong(19));
                    v4_4.zzad(v3_0.getLong(20));
                    v4_4.zzar(v3_0.getString(21));
                    if (!v3_0.isNull(22)) {
                        v6_28 = v3_0.getLong(22);
                    } else {
                        v6_28 = 0;
                    }
                    String v6_31;
                    v4_4.zzaf(v6_28);
                    if (v3_0.isNull(23)) {
                        v6_31 = 1;
                    } else {
                        if (v3_0.getInt(23) == 0) {
                            v6_31 = 0;
                        } else {
                        }
                    }
                    v4_4.zzd(v6_31);
                    if (!v3_0.isNull(24)) {
                        if (v3_0.getInt(24) == 0) {
                            v0_0 = 0;
                        } else {
                        }
                    }
                    v4_4.zze(v0_0);
                    v4_4.zzgp();
                    if (v3_0.moveToNext()) {
                        this.zzgi().zziv().zzg("Got multiple records for app, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p31));
                    }
                    if (v3_0 != 0) {
                        v3_0.close();
                    }
                    return v4_4;
                } else {
                    if (v3_0 != 0) {
                        v3_0.close();
                    }
                    return 0;
                }
            } catch (com.google.android.gms.internal.measurement.zzfk v0_5) {
                if (v3_0 != 0) {
                    v3_0.close();
                }
                throw v0_5;
            } catch (com.google.android.gms.internal.measurement.zzfk v0_4) {
            }
        } catch (com.google.android.gms.internal.measurement.zzfk v0_5) {
            v3_0 = 0;
        } catch (com.google.android.gms.internal.measurement.zzfk v0_4) {
            v3_0 = 0;
        } catch (com.google.android.gms.internal.measurement.zzfk v0_5) {
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zzbe() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzbe(String p14)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p14);
        this.zzab();
        this.zzch();
        android.database.sqlite.SQLiteException v0_2 = new java.util.ArrayList();
        try {
            int v2_1 = this.getWritableDatabase();
            String v6_1 = new String[1];
            v6_1[0] = p14;
            int v2_0 = v2_1.query("user_attributes", new String[] {"name", "origin", "set_timestamp", "value"}), "app_id=?", v6_1, 0, 0, "rowid", "1000");
            try {
                if (!v2_0.moveToFirst()) {
                    if (v2_0 != 0) {
                        v2_0.close();
                    }
                    return v0_2;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                this.zzgi().zziv().zze("Error querying user properties. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p14), v0_0);
                if (v2_0 != 0) {
                    v2_0.close();
                }
                return 0;
            }
            do {
                String v7_2 = v2_0.getString(0);
                boolean v3_1 = v2_0.getString(1);
                if (!v3_1) {
                    v3_1 = "";
                }
                String v6_2 = v3_1;
                long v8_1 = v2_0.getLong(2);
                Object v10_1 = this.zza(v2_0, 3);
                if (v10_1 != null) {
                    boolean v3_4 = new com.google.android.gms.internal.measurement.zzkc;
                    v3_4(p14, v6_2, v7_2, v8_1, v10_1);
                    v0_2.add(v3_4);
                } else {
                    this.zzgi().zziv().zzg("Read invalid user property value, ignoring it. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p14));
                }
            } while(v2_0.moveToNext());
            if (v2_0 != 0) {
                v2_0.close();
            }
            return v0_2;
        } catch (Throwable v14_1) {
            v2_0 = 0;
            if (v2_0 != 0) {
                v2_0.close();
            }
            throw v14_1;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v2_0 = 0;
        } catch (Throwable v14_1) {
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zzb() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzb(String p25, String[] p26)
    {
        this.zzab();
        this.zzch();
        java.util.List v0_4 = new java.util.ArrayList();
        try {
            com.google.android.gms.internal.measurement.zzka v6 = "name";
            int v8 = "active";
            String v10 = "trigger_timeout";
            long v12 = "creation_timestamp";
            com.google.android.gms.internal.measurement.zzex v14 = "triggered_timestamp";
            android.database.Cursor v1 = this.getWritableDatabase().query("conditional_properties", new String[] {"app_id", "expired_event"}), p25, p26, 0, 0, "rowid", "1001");
        } catch (java.util.List v0_2) {
            if (v1 != null) {
                v1.close();
            }
            throw v0_2;
        } catch (java.util.List v0_0) {
            this.zzgi().zziv().zzg("Error querying conditional user property value", v0_0);
            java.util.List v0_1 = java.util.Collections.emptyList();
            if (v1 != null) {
                v1.close();
            }
            return v0_1;
        }
        if (!v1.moveToFirst()) {
            if (v1 != null) {
                v1.close();
            }
            return v0_4;
        }
        while (v0_4.size() < 1000) {
            boolean v2_8 = 0;
            String v4_2 = v1.getString(0);
            com.google.android.gms.internal.measurement.zzex v11_1 = v1.getString(1);
            com.google.android.gms.internal.measurement.zzka v6_2 = v1.getString(2);
            int v9_2 = this.zza(v1, 3);
            if (v1.getInt(4) != 0) {
                v2_8 = 1;
            }
            long v12_1 = v1.getString(5);
            long v13 = v1.getLong(6);
            com.google.android.gms.internal.measurement.zzex v16_2 = ((com.google.android.gms.internal.measurement.zzex) this.zzjf().zza(v1.getBlob(7), com.google.android.gms.internal.measurement.zzex.CREATOR));
            com.google.android.gms.internal.measurement.zzex v17_1 = v1.getLong(8);
            com.google.android.gms.internal.measurement.zzex v19_1 = ((com.google.android.gms.internal.measurement.zzex) this.zzjf().zza(v1.getBlob(9), com.google.android.gms.internal.measurement.zzex.CREATOR));
            long v7_4 = v1.getLong(10);
            long v20 = v1.getLong(11);
            com.google.android.gms.internal.measurement.zzex v22_0 = ((com.google.android.gms.internal.measurement.zzex) this.zzjf().zza(v1.getBlob(12), com.google.android.gms.internal.measurement.zzex.CREATOR));
            com.google.android.gms.internal.measurement.zzka v23 = new com.google.android.gms.internal.measurement.zzka;
            v23(v6_2, v7_4, v9_2, v11_1);
            String v10_1 = new com.google.android.gms.internal.measurement.zzef;
            boolean v2_0 = v10_1;
            v10_1(v4_2, v11_1, v23, v17_1, v2_8, v12_1, v16_2, v13, v19_1, v20, v22_0);
            v0_4.add(v2_0);
            if (!v1.moveToNext()) {
            }
            if (v1 != null) {
                v1.close();
            }
            return v0_4;
        }
        this.zzgi().zziv().zzg("Read more than the max allowed conditional properties, ignoring extra", Integer.valueOf(1000));
    }

Method com.google.android.gms.internal.measurement.zzek.zzb() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzb(String p22, String p23, String p24)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p22);
        this.zzab();
        this.zzch();
        android.database.sqlite.SQLiteException v0_3 = new java.util.ArrayList();
        android.database.Cursor v1 = 0;
        try {
            android.database.Cursor v2_4 = new java.util.ArrayList(3);
            try {
                String v5_1;
                v2_4.add(p22);
                boolean v4_4 = new StringBuilder("app_id=?");
                try {
                    if (android.text.TextUtils.isEmpty(p23)) {
                        v5_1 = p23;
                    } else {
                        v5_1 = p23;
                        v2_4.add(p23);
                        v4_4.append(" and origin=?");
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    android.database.Cursor v2_3 = 0;
                    this.zzgi().zziv().zzd("(2)Error querying user properties", com.google.android.gms.internal.measurement.zzfi.zzbp(p22), v5_1, v0_0);
                    if (v2_3 != null) {
                        v2_3.close();
                    }
                    return 0;
                }
                if (!android.text.TextUtils.isEmpty(p24)) {
                    v2_4.add(String.valueOf(p24).concat("*"));
                    v4_4.append(" and name glob ?");
                }
                String v6_9 = new String[v2_4.size()];
                v2_3 = this.getWritableDatabase().query("user_attributes", new String[] {"name", "set_timestamp", "value", "origin"}), v4_4.toString(), ((String[]) v2_4.toArray(v6_9)), 0, 0, "rowid", "1001");
                try {
                    if (!v2_3.moveToFirst()) {
                        if (v2_3 != null) {
                            v2_3.close();
                        }
                        return v0_3;
                    }
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v1 = v2_3;
                    if (v1 != null) {
                        v1.close();
                    }
                    throw v0_1;
                } catch (android.database.sqlite.SQLiteException v0_0) {
                }
                while (v0_3.size() < 1000) {
                    String v7_2 = v2_3.getString(0);
                    long v8_1 = v2_3.getLong(1);
                    try {
                        Object v10 = this.zza(v2_3, 2);
                        String v13_1 = v2_3.getString(3);
                        try {
                            if (v10 != null) {
                                com.google.android.gms.internal.measurement.zzkc v15_1 = new com.google.android.gms.internal.measurement.zzkc;
                                v15_1(p22, v13_1, v7_2, v8_1, v10);
                                v0_3.add(v15_1);
                            } else {
                                this.zzgi().zziv().zzd("(2)Read invalid user property value, ignoring it", com.google.android.gms.internal.measurement.zzfi.zzbp(p22), v13_1, p24);
                            }
                            if (v2_3.moveToNext()) {
                                v5_1 = v13_1;
                            }
                            if (v2_3 != null) {
                                v2_3.close();
                            }
                            return v0_3;
                        } catch (android.database.sqlite.SQLiteException v0_0) {
                            v5_1 = v13_1;
                        }
                    } catch (android.database.sqlite.SQLiteException v0_0) {
                    }
                }
                this.zzgi().zziv().zzg("Read more than the max allowed user properties, ignoring excess", Integer.valueOf(1000));
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v5_1 = p23;
            }
        } catch (android.database.sqlite.SQLiteException v0_1) {
        } catch (android.database.sqlite.SQLiteException v0_0) {
            String v11 = p22;
        } catch (android.database.sqlite.SQLiteException v0_1) {
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zzb() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzb(String p13, int p14, int p15)
    {
        android.database.Cursor v2_2;
        this.zzab();
        this.zzch();
        if (p14 <= null) {
            v2_2 = 0;
        } else {
            v2_2 = 1;
        }
        android.database.Cursor v2_0;
        com.google.android.gms.common.internal.Preconditions.checkArgument(v2_2);
        if (p15 <= null) {
            v2_0 = 0;
        } else {
            v2_0 = 1;
        }
        com.google.android.gms.common.internal.Preconditions.checkArgument(v2_0);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
        try {
            int v3_0 = this.getWritableDatabase();
            Integer v7_1 = new String[1];
            v7_1[0] = p13;
            android.database.Cursor v2_1 = v3_0.query("queue", new String[] {"rowid", "data", "retry_count"}), "app_id=?", v7_1, 0, 0, "rowid", String.valueOf(p14));
        } catch (java.util.List v13_2) {
            if (v2_1 != null) {
                v2_1.close();
            }
            throw v13_2;
        } catch (java.util.ArrayList v14_4) {
            this.zzgi().zziv().zze("Error querying bundles. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p13), v14_4);
            java.util.List v13_1 = java.util.Collections.emptyList();
            if (v2_1 != null) {
                v2_1.close();
            }
            return v13_1;
        }
        if (v2_1.moveToFirst()) {
            java.util.ArrayList v14_3 = new java.util.ArrayList();
            int v3_1 = 0;
            do {
                android.util.Pair v4_2 = v2_1.getLong(0);
                int v6_3 = this.zzjf().zza(v2_1.getBlob(1));
                if ((!v14_3.isEmpty()) && ((v6_3.length + v3_1) > p15)) {
                    break;
                }
                Integer v7_8 = com.google.android.gms.internal.measurement.zzaca.zza(v6_3, 0, v6_3.length);
                com.google.android.gms.internal.measurement.zzku v8_2 = new com.google.android.gms.internal.measurement.zzku();
                v8_2.zzb(v7_8);
                if (!v2_1.isNull(2)) {
                    v8_2.zzawj = Integer.valueOf(v2_1.getInt(2));
                }
                v3_1 += v6_3.length;
                v14_3.add(android.util.Pair.create(v8_2, Long.valueOf(v4_2)));
            } while((v2_1.moveToNext()) && (v3_1 <= p15));
            if (v2_1 != null) {
                v2_1.close();
            }
            return v14_3;
        } else {
            java.util.List v13_3 = java.util.Collections.emptyList();
            if (v2_1 != null) {
                v2_1.close();
            }
            return v13_3;
        }
    }

Method com.google.android.gms.internal.measurement.zzek.zza() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.measurement.zzel zza(long p15, String p17, boolean p18, boolean p19, boolean p20, boolean p21, boolean p22)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p17);
        this.zzab();
        this.zzch();
        com.google.android.gms.internal.measurement.zzfk v1_1 = new String[1];
        v1_1[0] = p17;
        com.google.android.gms.internal.measurement.zzel v3_1 = new com.google.android.gms.internal.measurement.zzel();
        try {
            android.database.sqlite.SQLiteDatabase v13 = this.getWritableDatabase();
            String[] v9 = "daily_public_events_count";
            int v11 = "daily_error_events_count";
            v9 = new String[1];
            v9[0] = p17;
            android.database.Cursor v4 = v13.query("apps", new String[] {"day", "daily_realtime_events_count"}), "app_id=?", v9, 0, 0, 0);
        } catch (android.content.ContentValues v0_8) {
            if (v4 != null) {
                v4.close();
            }
            throw v0_8;
        } catch (android.content.ContentValues v0_7) {
            this.zzgi().zziv().zze("Error updating daily counts. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p17), v0_7);
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        }
        if (v4.moveToFirst()) {
            if (v4.getLong(0) == p15) {
                v3_1.zzagu = v4.getLong(1);
                v3_1.zzagt = v4.getLong(2);
                v3_1.zzagv = v4.getLong(3);
                v3_1.zzagw = v4.getLong(4);
                v3_1.zzagx = v4.getLong(5);
            }
            if (p18) {
                v3_1.zzagu = (v3_1.zzagu + 1);
            }
            if (p19) {
                v3_1.zzagt = (v3_1.zzagt + 1);
            }
            if (p20) {
                v3_1.zzagv = (v3_1.zzagv + 1);
            }
            if (p21) {
                v3_1.zzagw = (v3_1.zzagw + 1);
            }
            if (p22) {
                v3_1.zzagx = (v3_1.zzagx + 1);
            }
            android.content.ContentValues v0_10 = new android.content.ContentValues();
            v0_10.put("day", Long.valueOf(p15));
            v0_10.put("daily_public_events_count", Long.valueOf(v3_1.zzagt));
            v0_10.put("daily_events_count", Long.valueOf(v3_1.zzagu));
            v0_10.put("daily_conversions_count", Long.valueOf(v3_1.zzagv));
            v0_10.put("daily_error_events_count", Long.valueOf(v3_1.zzagw));
            v0_10.put("daily_realtime_events_count", Long.valueOf(v3_1.zzagx));
            v13.update("apps", v0_10, "app_id=?", v1_1);
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        } else {
            this.zzgi().zziy().zzg("Not updating daily counts, app is not known. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p17));
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        }
    }

Method com.google.android.gms.internal.measurement.zzjt.zzd() calling method android.database.sqlite.SQLiteDatabase.query()


    private final boolean zzd(String p40, long p41)
    {
        String v1_0 = this;
        this.zzjh().beginTransaction();
        try {
            android.database.sqlite.SQLiteException v3_0 = 0;
            com.google.android.gms.internal.measurement.zzfk v2_3 = new com.google.android.gms.internal.measurement.zzjt$zza(this, 0);
            String v4_58 = this.zzjh();
            com.google.android.gms.internal.measurement.zzfk v5_90 = this.zzasl;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_3);
            v4_58.zzab();
            v4_58.zzch();
            try {
                int v22;
                long v21_0;
                Long v15_15 = v4_58.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        String v12_29;
                        android.database.sqlite.SQLiteException v3_1 = v5_90 cmp -1;
                        if (v3_1 == null) {
                            v12_29 = new String[] {0});
                        } else {
                            v12_29 = new String[2];
                            v12_29[0] = 0;
                            v12_29[1] = String.valueOf(v5_90);
                        }
                        android.database.sqlite.SQLiteException v3_8;
                        if (v3_1 == null) {
                            v3_8 = "";
                        } else {
                            v3_8 = " and rowid <= ?";
                        }
                        long v14_12 = new StringBuilder((String.valueOf(v3_8).length() + 84));
                        v14_12.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_12.append(v3_8);
                        v14_12.append(" order by rowid limit 1;");
                        v3_0 = v15_15.rawQuery(v14_12.toString(), v12_29);
                        if (v3_0.moveToFirst()) {
                            Boolean v13_16 = v3_0.getString(0);
                            v3_0.close();
                            v22 = v3_0;
                            v21_0 = v13_16;
                            v3_0 = 0;
                            try {
                                String v12_9 = new String[2];
                                v12_9[0] = v3_0;
                                v12_9[1] = v21_0;
                                long v24_1 = v15_15;
                                Long v15_14 = v15_15.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_9, 0, 0, "rowid", "2");
                                try {
                                    if (v15_14.moveToFirst()) {
                                        String v12_13 = v15_14.getBlob(0);
                                        String v12_14 = com.google.android.gms.internal.measurement.zzaca.zza(v12_13, 0, v12_13.length);
                                        Boolean v13_5 = new com.google.android.gms.internal.measurement.zzku();
                                        try {
                                            v13_5.zzb(v12_14);
                                        } catch (android.database.sqlite.SQLiteException v0_4) {
                                            int v6_0 = v15_14;
                                            v4_58.zzgi().zziv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0), v0_4);
                                            if (v6_0 == 0) {
                                                android.database.sqlite.SQLiteException v3_6;
                                                if (v2_3.zzasr == null) {
                                                    v3_6 = 1;
                                                } else {
                                                    if (!v2_3.zzasr.isEmpty()) {
                                                        v3_6 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_6 != null) {
                                                    this.zzjh().setTransactionSuccessful();
                                                    this.zzjh().endTransaction();
                                                    return 0;
                                                } else {
                                                    android.database.sqlite.SQLiteException v3_7 = v2_3.zzasp;
                                                    String v4_4 = new com.google.android.gms.internal.measurement.zzkr[v2_3.zzasr.size()];
                                                    v3_7.zzavi = v4_4;
                                                    String v4_7 = this.zzacv.zzgk().zzaw(v3_7.zzth);
                                                    com.google.android.gms.internal.measurement.zzet v7_30 = 0;
                                                    com.google.android.gms.internal.measurement.zzet v8_1 = 0;
                                                    String v9_1 = 0;
                                                    String v12_10 = 0;
                                                    while (v7_30 < v2_3.zzasr.size()) {
                                                        Long v15_1;
                                                        long v14_4 = ((com.google.android.gms.internal.measurement.zzkr) v2_3.zzasr.get(v7_30));
                                                        if (!this.zzky().zzn(v2_3.zzasp.zzth, v14_4.name)) {
                                                            String v20_2;
                                                            com.google.android.gms.internal.measurement.zzfk v5_3 = this.zzky().zzo(v2_3.zzasp.zzth, v14_4.name);
                                                            if (v5_3 != null) {
                                                                if (v14_4.zzava == null) {
                                                                    boolean v10_8 = new com.google.android.gms.internal.measurement.zzks[0];
                                                                    v14_4.zzava = v10_8;
                                                                }
                                                                int v6_13 = v14_4.zzava;
                                                                boolean v10_9 = v6_13.length;
                                                                String v11_2 = 0;
                                                                Long v19_2 = 0;
                                                                String v20_1 = 0;
                                                                while (v11_2 < v10_9) {
                                                                    Long v15_10 = v6_13[v11_2];
                                                                    boolean v16_4 = v6_13;
                                                                    long v24_2 = v10_9;
                                                                    if (!"_c".equals(v15_10.name)) {
                                                                        if ("_r".equals(v15_10.name)) {
                                                                            v15_10.zzave = Long.valueOf(1);
                                                                            v20_1 = 1;
                                                                        }
                                                                    } else {
                                                                        v15_10.zzave = Long.valueOf(1);
                                                                        v19_2 = 1;
                                                                    }
                                                                    v11_2++;
                                                                    v6_13 = v16_4;
                                                                    v10_9 = v24_2;
                                                                }
                                                                if ((v19_2 == null) && (v5_3 != null)) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as conversion", this.zzacv.zzgf().zzbm(v14_4.name));
                                                                    int v6_19 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v14_4.zzava, (v14_4.zzava.length + 1)));
                                                                    boolean v10_15 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v10_15.name = "_c";
                                                                    v10_15.zzave = Long.valueOf(1);
                                                                    v6_19[(v6_19.length - 1)] = v10_15;
                                                                    v14_4.zzava = v6_19;
                                                                }
                                                                if (v20_1 == null) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as real-time", this.zzacv.zzgf().zzbm(v14_4.name));
                                                                    int v6_25 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v14_4.zzava, (v14_4.zzava.length + 1)));
                                                                    boolean v10_21 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v10_21.name = "_r";
                                                                    v10_21.zzave = Long.valueOf(1);
                                                                    v6_25[(v6_25.length - 1)] = v10_21;
                                                                    v14_4.zzava = v6_25;
                                                                }
                                                                v15_1 = v7_30;
                                                                if (this.zzjh().zza(this.zzld(), v2_3.zzasp.zzth, 0, 0, 0, 0, 1).zzagx <= ((long) this.zzacv.zzgk().zzas(v2_3.zzasp.zzth))) {
                                                                    v9_1 = 1;
                                                                } else {
                                                                    int v6_33 = 0;
                                                                    while (v6_33 < v14_4.zzava.length) {
                                                                        if (!"_r".equals(v14_4.zzava[v6_33].name)) {
                                                                            v6_33++;
                                                                        } else {
                                                                            com.google.android.gms.internal.measurement.zzet v7_11 = new com.google.android.gms.internal.measurement.zzks[(v14_4.zzava.length - 1)];
                                                                            if (v6_33 > 0) {
                                                                                System.arraycopy(v14_4.zzava, 0, v7_11, 0, v6_33);
                                                                            }
                                                                            if (v6_33 >= v7_11.length) {
                                                                                boolean v16_1 = v9_1;
                                                                            } else {
                                                                                v16_1 = v9_1;
                                                                                System.arraycopy(v14_4.zzava, (v6_33 + 1), v7_11, v6_33, (v7_11.length - v6_33));
                                                                            }
                                                                            v14_4.zzava = v7_11;
                                                                        }
                                                                        v9_1 = v16_1;
                                                                    }
                                                                    v16_1 = v9_1;
                                                                }
                                                                if ((!com.google.android.gms.internal.measurement.zzkd.zzcg(v14_4.name)) || ((v5_3 == null) || (this.zzjh().zza(this.zzld(), v2_3.zzasp.zzth, 0, 0, 1, 0, 0).zzagv <= ((long) this.zzacv.zzgk().zzb(v2_3.zzasp.zzth, com.google.android.gms.internal.measurement.zzez.zzair))))) {
                                                                    v20_2 = v9_1;
                                                                } else {
                                                                    this.zzacv.zzgi().zziy().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                                    com.google.android.gms.internal.measurement.zzfk v5_11 = v14_4.zzava;
                                                                    int v6_37 = v5_11.length;
                                                                    com.google.android.gms.internal.measurement.zzet v7_19 = 0;
                                                                    boolean v10_33 = 0;
                                                                    String v11_22 = 0;
                                                                    while (v7_19 < v6_37) {
                                                                        int v6_44 = v5_11[v7_19];
                                                                        if (!"_c".equals(v6_44.name)) {
                                                                            if ("_err".equals(v6_44.name)) {
                                                                                v10_33 = 1;
                                                                            }
                                                                        } else {
                                                                            v11_22 = v6_44;
                                                                        }
                                                                        v7_19++;
                                                                    }
                                                                    v20_2 = v9_1;
                                                                    if ((!v10_33) || (v11_22 == null)) {
                                                                        if (v11_22 == null) {
                                                                            this.zzacv.zzgi().zziv().zzg("Did not find conversion parameter. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                                        } else {
                                                                            v11_22.name = "_err";
                                                                            v11_22.zzave = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.measurement.zzfk v5_18 = v14_4.zzava;
                                                                        com.google.android.gms.internal.measurement.zzet v7_24 = new com.google.android.gms.internal.measurement.zzks[1];
                                                                        v7_24[0] = v11_22;
                                                                        v14_4.zzava = ((com.google.android.gms.internal.measurement.zzks[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v5_18, v7_24));
                                                                    }
                                                                }
                                                            } else {
                                                                Long v19_1;
                                                                this.zzjf();
                                                                int v6_6 = v14_4.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v6_6);
                                                                String v11_1 = v6_6.hashCode();
                                                                if (v11_1 == 94660) {
                                                                    if (!v6_6.equals("_in")) {
                                                                        v19_1 = -1;
                                                                    } else {
                                                                        v19_1 = 0;
                                                                    }
                                                                } else {
                                                                    if (v11_1 == 95025) {
                                                                        if (!v6_6.equals("_ug")) {
                                                                        } else {
                                                                            v19_1 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v11_1 == 95027) {
                                                                            if (!v6_6.equals("_ui")) {
                                                                            } else {
                                                                                v19_1 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v6_10;
                                                                switch (v19_1) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v6_10 = 1;
                                                                    default:
                                                                        v6_10 = 0;
                                                                }
                                                                if (v6_10 == 0) {
                                                                    v15_1 = v7_30;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v4_7 != null) && ("_e".equals(v14_4.name))) {
                                                                int v6_42;
                                                                com.google.android.gms.internal.measurement.zzfk v5_32;
                                                                com.google.android.gms.internal.measurement.zzet v7_27;
                                                                if (v14_4.zzava == null) {
                                                                    v5_32 = this.zzacv.zzgi().zziy();
                                                                    v6_42 = "Engagement event does not contain any parameters. appId";
                                                                    v7_27 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth);
                                                                } else {
                                                                    if (v14_4.zzava.length != 0) {
                                                                        this.zzjf();
                                                                        com.google.android.gms.internal.measurement.zzfk v5_28 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v14_4, "_et"));
                                                                        if (v5_28 != null) {
                                                                            v12_10 += v5_28.longValue();
                                                                            int v6_43 = (v8_1 + 1);
                                                                            v3_7.zzavi[v8_1] = v14_4;
                                                                            v8_1 = v6_43;
                                                                            v9_1 = v20_2;
                                                                            v7_30 = (v15_1 + 1);
                                                                            String v11 = 1;
                                                                        } else {
                                                                            v5_32 = this.zzacv.zzgi().zziy();
                                                                            v6_42 = "Engagement event does not include duration. appId";
                                                                            v7_27 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth);
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                v5_32.zzg(v6_42, v7_27);
                                                            }
                                                        } else {
                                                            com.google.android.gms.internal.measurement.zzfk v5_47;
                                                            this.zzacv.zzgi().zziy().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth), this.zzacv.zzgf().zzbm(v14_4.name));
                                                            if (this.zzky().zzcb(v2_3.zzasp.zzth)) {
                                                                v5_47 = 1;
                                                            } else {
                                                                if (!this.zzky().zzcc(v2_3.zzasp.zzth)) {
                                                                    v5_47 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_47 == null) && (!"_err".equals(v14_4.name))) {
                                                                this.zzacv.zzgg().zza(v2_3.zzasp.zzth, 11, "_ev", v14_4.name, 0);
                                                            }
                                                            v15_1 = v7_30;
                                                        }
                                                    }
                                                    boolean v16_7 = v9_1;
                                                    if (v8_1 < v2_3.zzasr.size()) {
                                                        v3_7.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v3_7.zzavi, v8_1));
                                                    }
                                                    if (v4_7 != null) {
                                                        String v4_12;
                                                        String v4_9 = this.zzjh().zzh(v3_7.zzth, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.internal.measurement.zzkc;
                                                            v4_12(v3_7.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf(v12_10));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                com.google.android.gms.internal.measurement.zzfk v5_68 = new com.google.android.gms.internal.measurement.zzkc;
                                                                v5_68(v3_7.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v12_10)));
                                                                v4_12 = v5_68;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v5_71 = new com.google.android.gms.internal.measurement.zzkx();
                                                        v5_71.name = "_lte";
                                                        v5_71.zzaws = Long.valueOf(this.zzacv.zzbt().currentTimeMillis());
                                                        v5_71.zzave = ((Long) v4_12.value);
                                                        int v6_81 = 0;
                                                        while (v6_81 < v3_7.zzavj.length) {
                                                            if (!"_lte".equals(v3_7.zzavj[v6_81].name)) {
                                                                v6_81++;
                                                            } else {
                                                                v3_7.zzavj[v6_81] = v5_71;
                                                                int v6_82 = 1;
                                                            }
                                                            if (v6_82 == 0) {
                                                                v3_7.zzavj = ((com.google.android.gms.internal.measurement.zzkx[]) java.util.Arrays.copyOf(v3_7.zzavj, (v3_7.zzavj.length + 1)));
                                                                v3_7.zzavj[(v2_3.zzasp.zzavj.length - 1)] = v5_71;
                                                            }
                                                            if (v12_10 > 0) {
                                                                this.zzjh().zza(v4_12);
                                                                this.zzacv.zzgi().zzjb().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_82 = 0;
                                                    }
                                                    v3_7.zzawa = this.zza(v3_7.zzth, v3_7.zzavj, v3_7.zzavi);
                                                    try {
                                                        if (this.zzacv.zzgk().zzav(v2_3.zzasp.zzth)) {
                                                            String v4_20 = new java.util.HashMap();
                                                            com.google.android.gms.internal.measurement.zzfk v5_82 = new com.google.android.gms.internal.measurement.zzkr[v3_7.zzavi.length];
                                                            int v6_1 = this.zzacv.zzgg().zzlo();
                                                            com.google.android.gms.internal.measurement.zzet v7_3 = v3_7.zzavi;
                                                            com.google.android.gms.internal.measurement.zzet v8_0 = v7_3.length;
                                                            String v9_0 = 0;
                                                            boolean v10_0 = 0;
                                                            while (v9_0 < v8_0) {
                                                                String v20_0;
                                                                Long v19_0;
                                                                long v24_0;
                                                                String v11_27 = v7_3[v9_0];
                                                                if (!v11_27.name.equals("_ep")) {
                                                                    v19_0 = v7_3;
                                                                    com.google.android.gms.internal.measurement.zzet v7_84;
                                                                    long v14_16 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v14_16 != 0)) {
                                                                        String v12_38 = v11_27.zzava;
                                                                        Boolean v13_19 = v12_38.length;
                                                                        Long v15_17 = 0;
                                                                        while (v15_17 < v13_19) {
                                                                            v20_0 = v8_0;
                                                                            com.google.android.gms.internal.measurement.zzet v8_20 = v12_38[v15_17];
                                                                            if (!"_dbg".equals(v8_20.name)) {
                                                                                v15_17++;
                                                                                v8_0 = v20_0;
                                                                            } else {
                                                                                if (((!(v14_16 instanceof Long)) || (!v14_16.equals(v8_20.zzave))) && (((!(v14_16 instanceof String)) || (!v14_16.equals(v8_20.zzale))) && ((!(v14_16 instanceof Double)) || (!v14_16.equals(v8_20.zzasw))))) {
                                                                                    v7_84 = 0;
                                                                                } else {
                                                                                    v7_84 = 1;
                                                                                }
                                                                            }
                                                                        }
                                                                        v20_0 = v8_0;
                                                                    }
                                                                    com.google.android.gms.internal.measurement.zzet v7_85;
                                                                    if (v7_84 != null) {
                                                                        v7_85 = 1;
                                                                    } else {
                                                                        v7_85 = this.zzky().zzp(v2_3.zzasp.zzth, v11_27.name);
                                                                    }
                                                                    com.google.android.gms.internal.measurement.zzet v7_96;
                                                                    if (v7_85 > null) {
                                                                        com.google.android.gms.internal.measurement.zzet v8_25 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v11_27.name));
                                                                        if (v8_25 == null) {
                                                                            v8_25 = this.zzjh().zzf(v2_3.zzasp.zzth, v11_27.name);
                                                                            if (v8_25 == null) {
                                                                                v1_0.zzacv.zzgi().zziy().zze("Event being bundled has no eventAggregate. appId, eventName", v2_3.zzasp.zzth, v11_27.name);
                                                                                v8_25 = new com.google.android.gms.internal.measurement.zzet;
                                                                                v8_25(v2_3.zzasp.zzth, v11_27.name, 1, 1, v11_27.zzavb.longValue(), 0, 0, 0, 0);
                                                                            }
                                                                        }
                                                                        Boolean v13_24;
                                                                        this.zzjf();
                                                                        String v12_50 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v11_27, "_eid"));
                                                                        if (v12_50 == null) {
                                                                            v13_24 = 0;
                                                                        } else {
                                                                            v13_24 = 1;
                                                                        }
                                                                        Boolean v13_25 = Boolean.valueOf(v13_24);
                                                                        if (v7_85 != 1) {
                                                                            if (v6_1.nextInt(v7_85) != 0) {
                                                                                v24_0 = v6_1;
                                                                                if (Math.abs((v11_27.zzavb.longValue() - v8_25.zzahk)) < 86400000) {
                                                                                    if (!v13_25.booleanValue()) {
                                                                                        v9_0++;
                                                                                        v7_3 = v19_0;
                                                                                        v8_0 = v20_0;
                                                                                        v6_1 = v24_0;
                                                                                        v1_0 = this;
                                                                                    } else {
                                                                                        v4_20.put(v11_27.name, v8_25.zza(v12_50, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzjf();
                                                                                    v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_efs", Long.valueOf(1));
                                                                                    this.zzjf();
                                                                                    long v14_27 = ((long) v7_85);
                                                                                    v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_sr", Long.valueOf(v14_27));
                                                                                    String v1_27 = (v10_0 + 1);
                                                                                    v5_82[v10_0] = v11_27;
                                                                                    if (v13_25.booleanValue()) {
                                                                                        v8_25 = v8_25.zza(0, Long.valueOf(v14_27), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_20.put(v11_27.name, v8_25.zzai(v11_27.zzavb.longValue()));
                                                                                    v10_0 = v1_27;
                                                                                }
                                                                            } else {
                                                                                this.zzjf();
                                                                                int v6_125 = ((long) v7_85);
                                                                                v24_0 = v6_1;
                                                                                v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_sr", Long.valueOf(v6_125));
                                                                                String v12_55 = (v10_0 + 1);
                                                                                v5_82[v10_0] = v11_27;
                                                                                if (v13_25.booleanValue()) {
                                                                                    v8_25 = v8_25.zza(0, Long.valueOf(v6_125), 0);
                                                                                }
                                                                                v4_20.put(v11_27.name, v8_25.zzai(v11_27.zzavb.longValue()));
                                                                                v10_0 = v12_55;
                                                                            }
                                                                        } else {
                                                                            v7_96 = (v10_0 + 1);
                                                                            v5_82[v10_0] = v11_27;
                                                                            if ((v13_25.booleanValue()) && ((v8_25.zzahl != null) || ((v8_25.zzahm != null) || (v8_25.zzahn != null)))) {
                                                                                v4_20.put(v11_27.name, v8_25.zza(0, 0, 0));
                                                                            }
                                                                        }
                                                                    } else {
                                                                        v1_0.zzacv.zzgi().zziy().zze("Sample rate must be positive. event, rate", v11_27.name, Integer.valueOf(v7_85));
                                                                        v7_96 = (v10_0 + 1);
                                                                        v5_82[v10_0] = v11_27;
                                                                    }
                                                                    v24_0 = v6_1;
                                                                    v10_0 = v7_96;
                                                                } else {
                                                                    this.zzjf();
                                                                    String v12_59 = ((String) com.google.android.gms.internal.measurement.zzjz.zzb(v11_27, "_en"));
                                                                    Boolean v13_28 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v12_59));
                                                                    if (v13_28 == null) {
                                                                        v13_28 = this.zzjh().zzf(v2_3.zzasp.zzth, v12_59);
                                                                        v4_20.put(v12_59, v13_28);
                                                                    }
                                                                    if (v13_28.zzahl != null) {
                                                                        v19_0 = v7_3;
                                                                        v24_0 = v6_1;
                                                                    } else {
                                                                        if (v13_28.zzahm.longValue() > 1) {
                                                                            this.zzjf();
                                                                            v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_sr", v13_28.zzahm);
                                                                        }
                                                                        if ((v13_28.zzahn == null) || (!v13_28.zzahn.booleanValue())) {
                                                                            v19_0 = v7_3;
                                                                        } else {
                                                                            this.zzjf();
                                                                            v19_0 = v7_3;
                                                                            v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_efs", Long.valueOf(1));
                                                                        }
                                                                        com.google.android.gms.internal.measurement.zzet v7_2 = (v10_0 + 1);
                                                                        v5_82[v10_0] = v11_27;
                                                                        v24_0 = v6_1;
                                                                        v10_0 = v7_2;
                                                                    }
                                                                    v20_0 = v8_0;
                                                                }
                                                            }
                                                            if (v10_0 < v3_7.zzavi.length) {
                                                                v3_7.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v5_82, v10_0));
                                                            }
                                                            String v1_11 = v4_20.entrySet().iterator();
                                                            while (v1_11.hasNext()) {
                                                                this.zzjh().zza(((com.google.android.gms.internal.measurement.zzet) ((java.util.Map$Entry) v1_11.next()).getValue()));
                                                            }
                                                        }
                                                        try {
                                                            v3_7.zzavl = Long.valueOf(nan);
                                                            v3_7.zzavm = Long.valueOf(-0.0);
                                                            String v1_14 = 0;
                                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                                            String v1_1 = v0_3;
                                                            this.zzjh().endTransaction();
                                                            throw v1_1;
                                                        }
                                                        while (v1_14 < v3_7.zzavi.length) {
                                                            String v4_52 = v3_7.zzavi[v1_14];
                                                            if (v4_52.zzavb.longValue() < v3_7.zzavl.longValue()) {
                                                                v3_7.zzavl = v4_52.zzavb;
                                                            }
                                                            if (v4_52.zzavb.longValue() > v3_7.zzavm.longValue()) {
                                                                v3_7.zzavm = v4_52.zzavb;
                                                            }
                                                            v1_14++;
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v5_83;
                                                        String v1_16 = v2_3.zzasp.zzth;
                                                        String v4_27 = this.zzjh().zzbf(v1_16);
                                                        if (v4_27 != null) {
                                                            v5_83 = this;
                                                            if (v3_7.zzavi.length > 0) {
                                                                com.google.android.gms.internal.measurement.zzet v8_16;
                                                                int v6_93 = v4_27.zzgt();
                                                                if (v6_93 == 0) {
                                                                    v8_16 = 0;
                                                                } else {
                                                                    v8_16 = Long.valueOf(v6_93);
                                                                }
                                                                v3_7.zzavo = v8_16;
                                                                com.google.android.gms.internal.measurement.zzet v8_17 = v4_27.zzgs();
                                                                if (v8_17 != 0) {
                                                                    v6_93 = v8_17;
                                                                } else {
                                                                }
                                                                int v6_94;
                                                                if (v6_93 == 0) {
                                                                    v6_94 = 0;
                                                                } else {
                                                                    v6_94 = Long.valueOf(v6_93);
                                                                }
                                                                v3_7.zzavn = v6_94;
                                                                v4_27.zzhb();
                                                                v3_7.zzavy = Integer.valueOf(((int) v4_27.zzgy()));
                                                                v4_27.zzr(v3_7.zzavl.longValue());
                                                                v4_27.zzs(v3_7.zzavm.longValue());
                                                                v3_7.zzafy = v4_27.zzhj();
                                                                this.zzjh().zza(v4_27);
                                                            }
                                                        } else {
                                                            v5_83 = this;
                                                            this.zzacv.zzgi().zziv().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                        }
                                                        if (v3_7.zzavi.length > 0) {
                                                            String v4_36;
                                                            v5_83.zzacv.zzgl();
                                                            String v4_35 = this.zzky().zzbx(v2_3.zzasp.zzth);
                                                            if (v4_35 == null) {
                                                                if (!android.text.TextUtils.isEmpty(v2_3.zzasp.zzafa)) {
                                                                    v5_83.zzacv.zzgi().zziy().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                                } else {
                                                                    v4_36 = Long.valueOf(-1);
                                                                    v3_7.zzawf = v4_36;
                                                                }
                                                            } else {
                                                                if (v4_35.zzaum != null) {
                                                                    v4_36 = v4_35.zzaum;
                                                                } else {
                                                                }
                                                            }
                                                            this.zzjh().zza(v3_7, v16_7);
                                                        }
                                                        android.database.sqlite.SQLiteException v3_11 = this.zzjh();
                                                        com.google.android.gms.internal.measurement.zzfk v2_4 = v2_3.zzasq;
                                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_4);
                                                        v3_11.zzab();
                                                        v3_11.zzch();
                                                        String v4_45 = new StringBuilder("rowid in (");
                                                        int v6_110 = 0;
                                                        while (v6_110 < v2_4.size()) {
                                                            if (v6_110 != 0) {
                                                                v4_45.append(",");
                                                            }
                                                            v4_45.append(((Long) v2_4.get(v6_110)).longValue());
                                                            v6_110++;
                                                        }
                                                        v4_45.append(")");
                                                        String v4_47 = v3_11.getWritableDatabase().delete("raw_events", v4_45.toString(), 0);
                                                        if (v4_47 != v2_4.size()) {
                                                            v3_11.zzgi().zziv().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v4_47), Integer.valueOf(v2_4.size()));
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v2_7 = this.zzjh();
                                                        android.database.sqlite.SQLiteException v3_14 = v2_7.getWritableDatabase();
                                                        try {
                                                            int v6_116 = new String[2];
                                                            v6_116[0] = v1_16;
                                                            v6_116[1] = v1_16;
                                                            v3_14.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v6_116);
                                                        } catch (android.database.sqlite.SQLiteException v0_6) {
                                                            v2_7.zzgi().zziv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v1_16), v0_6);
                                                        }
                                                        this.zzjh().setTransactionSuccessful();
                                                        this.zzjh().endTransaction();
                                                        return 1;
                                                    } catch (android.database.sqlite.SQLiteException v0_1) {
                                                        v1_1 = v0_1;
                                                    }
                                                }
                                            } else {
                                                v6_0.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                        }
                                        if (v15_14.moveToNext()) {
                                            v4_58.zzgi().zziy().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                        }
                                        com.google.android.gms.internal.measurement.zzfk v5_54;
                                        boolean v16_6;
                                        v15_14.close();
                                        v2_3.zzb(v13_5);
                                        if (v5_90 == -1) {
                                            v5_54 = "app_id = ? and metadata_fingerprint = ?";
                                            String v12_19 = new String[2];
                                            v12_19[0] = v3_0;
                                            v12_19[1] = v21_0;
                                            v16_6 = v12_19;
                                        } else {
                                            Boolean v13_6 = new String[3];
                                            v13_6[0] = v3_0;
                                            v13_6[1] = v21_0;
                                            v13_6[2] = String.valueOf(v5_90);
                                            v5_54 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_6 = v13_6;
                                        }
                                        v6_0 = v15_14;
                                        com.google.android.gms.internal.measurement.zzfk v5_56 = v24_1.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_54, v16_6, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_56.moveToFirst()) {
                                                do {
                                                    int v6_63 = v5_56.getLong(0);
                                                    com.google.android.gms.internal.measurement.zzet v8_3 = v5_56.getBlob(3);
                                                    com.google.android.gms.internal.measurement.zzet v8_4 = com.google.android.gms.internal.measurement.zzaca.zza(v8_3, 0, v8_3.length);
                                                    String v12_26 = new com.google.android.gms.internal.measurement.zzkr();
                                                    v12_26.zzb(v8_4);
                                                    v12_26.name = v5_56.getString(1);
                                                    v12_26.zzavb = Long.valueOf(v5_56.getLong(2));
                                                    if (v2_3.zza(v6_63, v12_26)) {
                                                    } else {
                                                        if (v5_56 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_56.moveToNext());
                                                if (v5_56 == null) {
                                                }
                                            } else {
                                                v4_58.zzgi().zziy().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                                if (v5_56 == null) {
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v6_0 = v5_56;
                                            String v1_2 = v0_0;
                                            if (v6_0 != 0) {
                                                v6_0.close();
                                            }
                                            throw v1_2;
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            String v12_4 = v3_0;
                                            v6_0 = v5_56;
                                            android.database.sqlite.SQLiteException v3_2 = v0_2;
                                            v4_58.zzgi().zziv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_4), v3_2);
                                            if (v6_0 == 0) {
                                            }
                                        }
                                        v5_56.close();
                                    } else {
                                        v4_58.zzgi().zziv().zzg("Raw event metadata record is missing. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                        if (v15_14 == null) {
                                        } else {
                                            v15_14.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_14;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v6_0 = v15_14;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_14;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v12_4 = v3_0;
                                    v6_0 = v15_14;
                                }
                                v12_4 = v3_0;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v6_0 = v22;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v12_4 = v3_0;
                                v6_0 = v22;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                            }
                        }
                    } else {
                        Boolean v13_17;
                        String v12_33 = v5_90 cmp -1;
                        try {
                            if (v12_33 == null) {
                                v13_17 = new String[1];
                                v13_17[0] = String.valueOf(p41);
                            } else {
                                v13_17 = new String[2];
                                v13_17[0] = String.valueOf(v5_90);
                                v13_17[1] = String.valueOf(p41);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                            v6_0 = 0;
                            v12_4 = 0;
                        }
                        String v12_41;
                        if (v12_33 == null) {
                            v12_41 = "";
                        } else {
                            v12_41 = "rowid <= ? and ";
                        }
                        android.database.sqlite.SQLiteException v3_17 = new StringBuilder((String.valueOf(v12_41).length() + 148));
                        v3_17.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_17.append(v12_41);
                        v3_17.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_15.rawQuery(v3_17.toString(), v13_17);
                        if (v3_0.moveToFirst()) {
                            v12_4 = v3_0.getString(0);
                            try {
                                Boolean v13_1 = v3_0.getString(1);
                                v3_0.close();
                                v22 = v3_0;
                                v3_0 = v12_4;
                                v21_0 = v13_1;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v6_0 = v3_0;
                            }
                        } else {
                            if (v3_0 == null) {
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v6_0 = v3_0;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v6_0 = v3_0;
                    v12_4 = 0;
                }
                v3_0.close();
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v6_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
                v3_2 = v0_7;
                v6_0 = 0;
                v12_4 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
            } catch (android.database.sqlite.SQLiteException v0_3) {
            }
        } catch (android.database.sqlite.SQLiteException v0_3) {
        }
    }

Method com.google.android.gms.internal.measurement.zzjt.zzd() calling method android.database.sqlite.SQLiteDatabase.query()


    private final boolean zzd(String p40, long p41)
    {
        String v1_0 = this;
        this.zzjh().beginTransaction();
        try {
            android.database.sqlite.SQLiteException v3_0 = 0;
            com.google.android.gms.internal.measurement.zzfk v2_3 = new com.google.android.gms.internal.measurement.zzjt$zza(this, 0);
            String v4_58 = this.zzjh();
            com.google.android.gms.internal.measurement.zzfk v5_90 = this.zzasl;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_3);
            v4_58.zzab();
            v4_58.zzch();
            try {
                long v21_0;
                int v22;
                Long v15_15 = v4_58.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        String v12_29;
                        android.database.sqlite.SQLiteException v3_1 = v5_90 cmp -1;
                        if (v3_1 == null) {
                            v12_29 = new String[] {0});
                        } else {
                            v12_29 = new String[2];
                            v12_29[0] = 0;
                            v12_29[1] = String.valueOf(v5_90);
                        }
                        android.database.sqlite.SQLiteException v3_8;
                        if (v3_1 == null) {
                            v3_8 = "";
                        } else {
                            v3_8 = " and rowid <= ?";
                        }
                        long v14_12 = new StringBuilder((String.valueOf(v3_8).length() + 84));
                        v14_12.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_12.append(v3_8);
                        v14_12.append(" order by rowid limit 1;");
                        v3_0 = v15_15.rawQuery(v14_12.toString(), v12_29);
                        if (v3_0.moveToFirst()) {
                            Boolean v13_16 = v3_0.getString(0);
                            v3_0.close();
                            v22 = v3_0;
                            v21_0 = v13_16;
                            v3_0 = 0;
                            try {
                                String v12_9 = new String[2];
                                v12_9[0] = v3_0;
                                v12_9[1] = v21_0;
                                long v24_1 = v15_15;
                                Long v15_14 = v15_15.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_9, 0, 0, "rowid", "2");
                                try {
                                    if (v15_14.moveToFirst()) {
                                        String v12_13 = v15_14.getBlob(0);
                                        String v12_14 = com.google.android.gms.internal.measurement.zzaca.zza(v12_13, 0, v12_13.length);
                                        Boolean v13_5 = new com.google.android.gms.internal.measurement.zzku();
                                        try {
                                            v13_5.zzb(v12_14);
                                        } catch (android.database.sqlite.SQLiteException v0_4) {
                                            int v6_0 = v15_14;
                                            v4_58.zzgi().zziv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0), v0_4);
                                            if (v6_0 == 0) {
                                                android.database.sqlite.SQLiteException v3_6;
                                                if (v2_3.zzasr == null) {
                                                    v3_6 = 1;
                                                } else {
                                                    if (!v2_3.zzasr.isEmpty()) {
                                                        v3_6 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_6 != null) {
                                                    this.zzjh().setTransactionSuccessful();
                                                    this.zzjh().endTransaction();
                                                    return 0;
                                                } else {
                                                    android.database.sqlite.SQLiteException v3_7 = v2_3.zzasp;
                                                    String v4_4 = new com.google.android.gms.internal.measurement.zzkr[v2_3.zzasr.size()];
                                                    v3_7.zzavi = v4_4;
                                                    String v4_7 = this.zzacv.zzgk().zzaw(v3_7.zzth);
                                                    com.google.android.gms.internal.measurement.zzet v7_30 = 0;
                                                    com.google.android.gms.internal.measurement.zzet v8_1 = 0;
                                                    String v9_1 = 0;
                                                    String v12_10 = 0;
                                                    while (v7_30 < v2_3.zzasr.size()) {
                                                        Long v15_1;
                                                        long v14_4 = ((com.google.android.gms.internal.measurement.zzkr) v2_3.zzasr.get(v7_30));
                                                        if (!this.zzky().zzn(v2_3.zzasp.zzth, v14_4.name)) {
                                                            String v20_2;
                                                            com.google.android.gms.internal.measurement.zzfk v5_3 = this.zzky().zzo(v2_3.zzasp.zzth, v14_4.name);
                                                            if (v5_3 != null) {
                                                                if (v14_4.zzava == null) {
                                                                    boolean v10_8 = new com.google.android.gms.internal.measurement.zzks[0];
                                                                    v14_4.zzava = v10_8;
                                                                }
                                                                int v6_13 = v14_4.zzava;
                                                                boolean v10_9 = v6_13.length;
                                                                String v11_2 = 0;
                                                                Long v19_2 = 0;
                                                                String v20_1 = 0;
                                                                while (v11_2 < v10_9) {
                                                                    Long v15_10 = v6_13[v11_2];
                                                                    boolean v16_4 = v6_13;
                                                                    long v24_2 = v10_9;
                                                                    if (!"_c".equals(v15_10.name)) {
                                                                        if ("_r".equals(v15_10.name)) {
                                                                            v15_10.zzave = Long.valueOf(1);
                                                                            v20_1 = 1;
                                                                        }
                                                                    } else {
                                                                        v15_10.zzave = Long.valueOf(1);
                                                                        v19_2 = 1;
                                                                    }
                                                                    v11_2++;
                                                                    v6_13 = v16_4;
                                                                    v10_9 = v24_2;
                                                                }
                                                                if ((v19_2 == null) && (v5_3 != null)) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as conversion", this.zzacv.zzgf().zzbm(v14_4.name));
                                                                    int v6_19 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v14_4.zzava, (v14_4.zzava.length + 1)));
                                                                    boolean v10_15 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v10_15.name = "_c";
                                                                    v10_15.zzave = Long.valueOf(1);
                                                                    v6_19[(v6_19.length - 1)] = v10_15;
                                                                    v14_4.zzava = v6_19;
                                                                }
                                                                if (v20_1 == null) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as real-time", this.zzacv.zzgf().zzbm(v14_4.name));
                                                                    int v6_25 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v14_4.zzava, (v14_4.zzava.length + 1)));
                                                                    boolean v10_21 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v10_21.name = "_r";
                                                                    v10_21.zzave = Long.valueOf(1);
                                                                    v6_25[(v6_25.length - 1)] = v10_21;
                                                                    v14_4.zzava = v6_25;
                                                                }
                                                                v15_1 = v7_30;
                                                                if (this.zzjh().zza(this.zzld(), v2_3.zzasp.zzth, 0, 0, 0, 0, 1).zzagx <= ((long) this.zzacv.zzgk().zzas(v2_3.zzasp.zzth))) {
                                                                    v9_1 = 1;
                                                                } else {
                                                                    int v6_33 = 0;
                                                                    while (v6_33 < v14_4.zzava.length) {
                                                                        if (!"_r".equals(v14_4.zzava[v6_33].name)) {
                                                                            v6_33++;
                                                                        } else {
                                                                            com.google.android.gms.internal.measurement.zzet v7_11 = new com.google.android.gms.internal.measurement.zzks[(v14_4.zzava.length - 1)];
                                                                            if (v6_33 > 0) {
                                                                                System.arraycopy(v14_4.zzava, 0, v7_11, 0, v6_33);
                                                                            }
                                                                            if (v6_33 >= v7_11.length) {
                                                                                boolean v16_1 = v9_1;
                                                                            } else {
                                                                                v16_1 = v9_1;
                                                                                System.arraycopy(v14_4.zzava, (v6_33 + 1), v7_11, v6_33, (v7_11.length - v6_33));
                                                                            }
                                                                            v14_4.zzava = v7_11;
                                                                        }
                                                                        v9_1 = v16_1;
                                                                    }
                                                                    v16_1 = v9_1;
                                                                }
                                                                if ((!com.google.android.gms.internal.measurement.zzkd.zzcg(v14_4.name)) || ((v5_3 == null) || (this.zzjh().zza(this.zzld(), v2_3.zzasp.zzth, 0, 0, 1, 0, 0).zzagv <= ((long) this.zzacv.zzgk().zzb(v2_3.zzasp.zzth, com.google.android.gms.internal.measurement.zzez.zzair))))) {
                                                                    v20_2 = v9_1;
                                                                } else {
                                                                    this.zzacv.zzgi().zziy().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                                    com.google.android.gms.internal.measurement.zzfk v5_11 = v14_4.zzava;
                                                                    int v6_37 = v5_11.length;
                                                                    com.google.android.gms.internal.measurement.zzet v7_19 = 0;
                                                                    boolean v10_33 = 0;
                                                                    String v11_22 = 0;
                                                                    while (v7_19 < v6_37) {
                                                                        int v6_44 = v5_11[v7_19];
                                                                        if (!"_c".equals(v6_44.name)) {
                                                                            if ("_err".equals(v6_44.name)) {
                                                                                v10_33 = 1;
                                                                            }
                                                                        } else {
                                                                            v11_22 = v6_44;
                                                                        }
                                                                        v7_19++;
                                                                    }
                                                                    v20_2 = v9_1;
                                                                    if ((!v10_33) || (v11_22 == null)) {
                                                                        if (v11_22 == null) {
                                                                            this.zzacv.zzgi().zziv().zzg("Did not find conversion parameter. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                                        } else {
                                                                            v11_22.name = "_err";
                                                                            v11_22.zzave = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.measurement.zzfk v5_18 = v14_4.zzava;
                                                                        com.google.android.gms.internal.measurement.zzet v7_24 = new com.google.android.gms.internal.measurement.zzks[1];
                                                                        v7_24[0] = v11_22;
                                                                        v14_4.zzava = ((com.google.android.gms.internal.measurement.zzks[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v5_18, v7_24));
                                                                    }
                                                                }
                                                            } else {
                                                                Long v19_1;
                                                                this.zzjf();
                                                                int v6_6 = v14_4.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v6_6);
                                                                String v11_1 = v6_6.hashCode();
                                                                if (v11_1 == 94660) {
                                                                    if (!v6_6.equals("_in")) {
                                                                        v19_1 = -1;
                                                                    } else {
                                                                        v19_1 = 0;
                                                                    }
                                                                } else {
                                                                    if (v11_1 == 95025) {
                                                                        if (!v6_6.equals("_ug")) {
                                                                        } else {
                                                                            v19_1 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v11_1 == 95027) {
                                                                            if (!v6_6.equals("_ui")) {
                                                                            } else {
                                                                                v19_1 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v6_10;
                                                                switch (v19_1) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v6_10 = 1;
                                                                    default:
                                                                        v6_10 = 0;
                                                                }
                                                                if (v6_10 == 0) {
                                                                    v15_1 = v7_30;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v4_7 != null) && ("_e".equals(v14_4.name))) {
                                                                com.google.android.gms.internal.measurement.zzet v7_27;
                                                                int v6_42;
                                                                com.google.android.gms.internal.measurement.zzfk v5_32;
                                                                if (v14_4.zzava == null) {
                                                                    v5_32 = this.zzacv.zzgi().zziy();
                                                                    v6_42 = "Engagement event does not contain any parameters. appId";
                                                                    v7_27 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth);
                                                                } else {
                                                                    if (v14_4.zzava.length != 0) {
                                                                        this.zzjf();
                                                                        com.google.android.gms.internal.measurement.zzfk v5_28 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v14_4, "_et"));
                                                                        if (v5_28 != null) {
                                                                            v12_10 += v5_28.longValue();
                                                                            int v6_43 = (v8_1 + 1);
                                                                            v3_7.zzavi[v8_1] = v14_4;
                                                                            v8_1 = v6_43;
                                                                            v9_1 = v20_2;
                                                                            v7_30 = (v15_1 + 1);
                                                                            String v11 = 1;
                                                                        } else {
                                                                            v5_32 = this.zzacv.zzgi().zziy();
                                                                            v6_42 = "Engagement event does not include duration. appId";
                                                                            v7_27 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth);
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                v5_32.zzg(v6_42, v7_27);
                                                            }
                                                        } else {
                                                            com.google.android.gms.internal.measurement.zzfk v5_47;
                                                            this.zzacv.zzgi().zziy().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth), this.zzacv.zzgf().zzbm(v14_4.name));
                                                            if (this.zzky().zzcb(v2_3.zzasp.zzth)) {
                                                                v5_47 = 1;
                                                            } else {
                                                                if (!this.zzky().zzcc(v2_3.zzasp.zzth)) {
                                                                    v5_47 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_47 == null) && (!"_err".equals(v14_4.name))) {
                                                                this.zzacv.zzgg().zza(v2_3.zzasp.zzth, 11, "_ev", v14_4.name, 0);
                                                            }
                                                            v15_1 = v7_30;
                                                        }
                                                    }
                                                    boolean v16_7 = v9_1;
                                                    if (v8_1 < v2_3.zzasr.size()) {
                                                        v3_7.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v3_7.zzavi, v8_1));
                                                    }
                                                    if (v4_7 != null) {
                                                        String v4_12;
                                                        String v4_9 = this.zzjh().zzh(v3_7.zzth, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.internal.measurement.zzkc;
                                                            v4_12(v3_7.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf(v12_10));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                com.google.android.gms.internal.measurement.zzfk v5_68 = new com.google.android.gms.internal.measurement.zzkc;
                                                                v5_68(v3_7.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v12_10)));
                                                                v4_12 = v5_68;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v5_71 = new com.google.android.gms.internal.measurement.zzkx();
                                                        v5_71.name = "_lte";
                                                        v5_71.zzaws = Long.valueOf(this.zzacv.zzbt().currentTimeMillis());
                                                        v5_71.zzave = ((Long) v4_12.value);
                                                        int v6_81 = 0;
                                                        while (v6_81 < v3_7.zzavj.length) {
                                                            if (!"_lte".equals(v3_7.zzavj[v6_81].name)) {
                                                                v6_81++;
                                                            } else {
                                                                v3_7.zzavj[v6_81] = v5_71;
                                                                int v6_82 = 1;
                                                            }
                                                            if (v6_82 == 0) {
                                                                v3_7.zzavj = ((com.google.android.gms.internal.measurement.zzkx[]) java.util.Arrays.copyOf(v3_7.zzavj, (v3_7.zzavj.length + 1)));
                                                                v3_7.zzavj[(v2_3.zzasp.zzavj.length - 1)] = v5_71;
                                                            }
                                                            if (v12_10 > 0) {
                                                                this.zzjh().zza(v4_12);
                                                                this.zzacv.zzgi().zzjb().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_82 = 0;
                                                    }
                                                    v3_7.zzawa = this.zza(v3_7.zzth, v3_7.zzavj, v3_7.zzavi);
                                                    try {
                                                        if (this.zzacv.zzgk().zzav(v2_3.zzasp.zzth)) {
                                                            String v4_20 = new java.util.HashMap();
                                                            com.google.android.gms.internal.measurement.zzfk v5_82 = new com.google.android.gms.internal.measurement.zzkr[v3_7.zzavi.length];
                                                            int v6_1 = this.zzacv.zzgg().zzlo();
                                                            com.google.android.gms.internal.measurement.zzet v7_3 = v3_7.zzavi;
                                                            com.google.android.gms.internal.measurement.zzet v8_0 = v7_3.length;
                                                            String v9_0 = 0;
                                                            boolean v10_0 = 0;
                                                            while (v9_0 < v8_0) {
                                                                String v20_0;
                                                                Long v19_0;
                                                                long v24_0;
                                                                String v11_27 = v7_3[v9_0];
                                                                if (!v11_27.name.equals("_ep")) {
                                                                    v19_0 = v7_3;
                                                                    com.google.android.gms.internal.measurement.zzet v7_84;
                                                                    long v14_16 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v14_16 != 0)) {
                                                                        String v12_38 = v11_27.zzava;
                                                                        Boolean v13_19 = v12_38.length;
                                                                        Long v15_17 = 0;
                                                                        while (v15_17 < v13_19) {
                                                                            v20_0 = v8_0;
                                                                            com.google.android.gms.internal.measurement.zzet v8_20 = v12_38[v15_17];
                                                                            if (!"_dbg".equals(v8_20.name)) {
                                                                                v15_17++;
                                                                                v8_0 = v20_0;
                                                                            } else {
                                                                                if (((!(v14_16 instanceof Long)) || (!v14_16.equals(v8_20.zzave))) && (((!(v14_16 instanceof String)) || (!v14_16.equals(v8_20.zzale))) && ((!(v14_16 instanceof Double)) || (!v14_16.equals(v8_20.zzasw))))) {
                                                                                    v7_84 = 0;
                                                                                } else {
                                                                                    v7_84 = 1;
                                                                                }
                                                                            }
                                                                        }
                                                                        v20_0 = v8_0;
                                                                    }
                                                                    com.google.android.gms.internal.measurement.zzet v7_85;
                                                                    if (v7_84 != null) {
                                                                        v7_85 = 1;
                                                                    } else {
                                                                        v7_85 = this.zzky().zzp(v2_3.zzasp.zzth, v11_27.name);
                                                                    }
                                                                    com.google.android.gms.internal.measurement.zzet v7_96;
                                                                    if (v7_85 > null) {
                                                                        com.google.android.gms.internal.measurement.zzet v8_25 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v11_27.name));
                                                                        if (v8_25 == null) {
                                                                            v8_25 = this.zzjh().zzf(v2_3.zzasp.zzth, v11_27.name);
                                                                            if (v8_25 == null) {
                                                                                v1_0.zzacv.zzgi().zziy().zze("Event being bundled has no eventAggregate. appId, eventName", v2_3.zzasp.zzth, v11_27.name);
                                                                                v8_25 = new com.google.android.gms.internal.measurement.zzet;
                                                                                v8_25(v2_3.zzasp.zzth, v11_27.name, 1, 1, v11_27.zzavb.longValue(), 0, 0, 0, 0);
                                                                            }
                                                                        }
                                                                        Boolean v13_24;
                                                                        this.zzjf();
                                                                        String v12_50 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v11_27, "_eid"));
                                                                        if (v12_50 == null) {
                                                                            v13_24 = 0;
                                                                        } else {
                                                                            v13_24 = 1;
                                                                        }
                                                                        Boolean v13_25 = Boolean.valueOf(v13_24);
                                                                        if (v7_85 != 1) {
                                                                            if (v6_1.nextInt(v7_85) != 0) {
                                                                                v24_0 = v6_1;
                                                                                if (Math.abs((v11_27.zzavb.longValue() - v8_25.zzahk)) < 86400000) {
                                                                                    if (!v13_25.booleanValue()) {
                                                                                        v9_0++;
                                                                                        v7_3 = v19_0;
                                                                                        v8_0 = v20_0;
                                                                                        v6_1 = v24_0;
                                                                                        v1_0 = this;
                                                                                    } else {
                                                                                        v4_20.put(v11_27.name, v8_25.zza(v12_50, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzjf();
                                                                                    v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_efs", Long.valueOf(1));
                                                                                    this.zzjf();
                                                                                    long v14_27 = ((long) v7_85);
                                                                                    v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_sr", Long.valueOf(v14_27));
                                                                                    String v1_27 = (v10_0 + 1);
                                                                                    v5_82[v10_0] = v11_27;
                                                                                    if (v13_25.booleanValue()) {
                                                                                        v8_25 = v8_25.zza(0, Long.valueOf(v14_27), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_20.put(v11_27.name, v8_25.zzai(v11_27.zzavb.longValue()));
                                                                                    v10_0 = v1_27;
                                                                                }
                                                                            } else {
                                                                                this.zzjf();
                                                                                int v6_125 = ((long) v7_85);
                                                                                v24_0 = v6_1;
                                                                                v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_sr", Long.valueOf(v6_125));
                                                                                String v12_55 = (v10_0 + 1);
                                                                                v5_82[v10_0] = v11_27;
                                                                                if (v13_25.booleanValue()) {
                                                                                    v8_25 = v8_25.zza(0, Long.valueOf(v6_125), 0);
                                                                                }
                                                                                v4_20.put(v11_27.name, v8_25.zzai(v11_27.zzavb.longValue()));
                                                                                v10_0 = v12_55;
                                                                            }
                                                                        } else {
                                                                            v7_96 = (v10_0 + 1);
                                                                            v5_82[v10_0] = v11_27;
                                                                            if ((v13_25.booleanValue()) && ((v8_25.zzahl != null) || ((v8_25.zzahm != null) || (v8_25.zzahn != null)))) {
                                                                                v4_20.put(v11_27.name, v8_25.zza(0, 0, 0));
                                                                            }
                                                                        }
                                                                    } else {
                                                                        v1_0.zzacv.zzgi().zziy().zze("Sample rate must be positive. event, rate", v11_27.name, Integer.valueOf(v7_85));
                                                                        v7_96 = (v10_0 + 1);
                                                                        v5_82[v10_0] = v11_27;
                                                                    }
                                                                    v24_0 = v6_1;
                                                                    v10_0 = v7_96;
                                                                } else {
                                                                    this.zzjf();
                                                                    String v12_59 = ((String) com.google.android.gms.internal.measurement.zzjz.zzb(v11_27, "_en"));
                                                                    Boolean v13_28 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v12_59));
                                                                    if (v13_28 == null) {
                                                                        v13_28 = this.zzjh().zzf(v2_3.zzasp.zzth, v12_59);
                                                                        v4_20.put(v12_59, v13_28);
                                                                    }
                                                                    if (v13_28.zzahl != null) {
                                                                        v19_0 = v7_3;
                                                                        v24_0 = v6_1;
                                                                    } else {
                                                                        if (v13_28.zzahm.longValue() > 1) {
                                                                            this.zzjf();
                                                                            v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_sr", v13_28.zzahm);
                                                                        }
                                                                        if ((v13_28.zzahn == null) || (!v13_28.zzahn.booleanValue())) {
                                                                            v19_0 = v7_3;
                                                                        } else {
                                                                            this.zzjf();
                                                                            v19_0 = v7_3;
                                                                            v11_27.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_27.zzava, "_efs", Long.valueOf(1));
                                                                        }
                                                                        com.google.android.gms.internal.measurement.zzet v7_2 = (v10_0 + 1);
                                                                        v5_82[v10_0] = v11_27;
                                                                        v24_0 = v6_1;
                                                                        v10_0 = v7_2;
                                                                    }
                                                                    v20_0 = v8_0;
                                                                }
                                                            }
                                                            if (v10_0 < v3_7.zzavi.length) {
                                                                v3_7.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v5_82, v10_0));
                                                            }
                                                            String v1_11 = v4_20.entrySet().iterator();
                                                            while (v1_11.hasNext()) {
                                                                this.zzjh().zza(((com.google.android.gms.internal.measurement.zzet) ((java.util.Map$Entry) v1_11.next()).getValue()));
                                                            }
                                                        }
                                                        try {
                                                            v3_7.zzavl = Long.valueOf(nan);
                                                            v3_7.zzavm = Long.valueOf(-0.0);
                                                            String v1_14 = 0;
                                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                                            String v1_1 = v0_3;
                                                            this.zzjh().endTransaction();
                                                            throw v1_1;
                                                        }
                                                        while (v1_14 < v3_7.zzavi.length) {
                                                            String v4_52 = v3_7.zzavi[v1_14];
                                                            if (v4_52.zzavb.longValue() < v3_7.zzavl.longValue()) {
                                                                v3_7.zzavl = v4_52.zzavb;
                                                            }
                                                            if (v4_52.zzavb.longValue() > v3_7.zzavm.longValue()) {
                                                                v3_7.zzavm = v4_52.zzavb;
                                                            }
                                                            v1_14++;
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v5_83;
                                                        String v1_16 = v2_3.zzasp.zzth;
                                                        String v4_27 = this.zzjh().zzbf(v1_16);
                                                        if (v4_27 != null) {
                                                            v5_83 = this;
                                                            if (v3_7.zzavi.length > 0) {
                                                                com.google.android.gms.internal.measurement.zzet v8_16;
                                                                int v6_93 = v4_27.zzgt();
                                                                if (v6_93 == 0) {
                                                                    v8_16 = 0;
                                                                } else {
                                                                    v8_16 = Long.valueOf(v6_93);
                                                                }
                                                                v3_7.zzavo = v8_16;
                                                                com.google.android.gms.internal.measurement.zzet v8_17 = v4_27.zzgs();
                                                                if (v8_17 != 0) {
                                                                    v6_93 = v8_17;
                                                                } else {
                                                                }
                                                                int v6_94;
                                                                if (v6_93 == 0) {
                                                                    v6_94 = 0;
                                                                } else {
                                                                    v6_94 = Long.valueOf(v6_93);
                                                                }
                                                                v3_7.zzavn = v6_94;
                                                                v4_27.zzhb();
                                                                v3_7.zzavy = Integer.valueOf(((int) v4_27.zzgy()));
                                                                v4_27.zzr(v3_7.zzavl.longValue());
                                                                v4_27.zzs(v3_7.zzavm.longValue());
                                                                v3_7.zzafy = v4_27.zzhj();
                                                                this.zzjh().zza(v4_27);
                                                            }
                                                        } else {
                                                            v5_83 = this;
                                                            this.zzacv.zzgi().zziv().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                        }
                                                        if (v3_7.zzavi.length > 0) {
                                                            String v4_36;
                                                            v5_83.zzacv.zzgl();
                                                            String v4_35 = this.zzky().zzbx(v2_3.zzasp.zzth);
                                                            if (v4_35 == null) {
                                                                if (!android.text.TextUtils.isEmpty(v2_3.zzasp.zzafa)) {
                                                                    v5_83.zzacv.zzgi().zziy().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_3.zzasp.zzth));
                                                                } else {
                                                                    v4_36 = Long.valueOf(-1);
                                                                    v3_7.zzawf = v4_36;
                                                                }
                                                            } else {
                                                                if (v4_35.zzaum != null) {
                                                                    v4_36 = v4_35.zzaum;
                                                                } else {
                                                                }
                                                            }
                                                            this.zzjh().zza(v3_7, v16_7);
                                                        }
                                                        android.database.sqlite.SQLiteException v3_11 = this.zzjh();
                                                        com.google.android.gms.internal.measurement.zzfk v2_4 = v2_3.zzasq;
                                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_4);
                                                        v3_11.zzab();
                                                        v3_11.zzch();
                                                        String v4_45 = new StringBuilder("rowid in (");
                                                        int v6_110 = 0;
                                                        while (v6_110 < v2_4.size()) {
                                                            if (v6_110 != 0) {
                                                                v4_45.append(",");
                                                            }
                                                            v4_45.append(((Long) v2_4.get(v6_110)).longValue());
                                                            v6_110++;
                                                        }
                                                        v4_45.append(")");
                                                        String v4_47 = v3_11.getWritableDatabase().delete("raw_events", v4_45.toString(), 0);
                                                        if (v4_47 != v2_4.size()) {
                                                            v3_11.zzgi().zziv().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v4_47), Integer.valueOf(v2_4.size()));
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v2_7 = this.zzjh();
                                                        android.database.sqlite.SQLiteException v3_14 = v2_7.getWritableDatabase();
                                                        try {
                                                            int v6_116 = new String[2];
                                                            v6_116[0] = v1_16;
                                                            v6_116[1] = v1_16;
                                                            v3_14.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v6_116);
                                                        } catch (android.database.sqlite.SQLiteException v0_6) {
                                                            v2_7.zzgi().zziv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v1_16), v0_6);
                                                        }
                                                        this.zzjh().setTransactionSuccessful();
                                                        this.zzjh().endTransaction();
                                                        return 1;
                                                    } catch (android.database.sqlite.SQLiteException v0_1) {
                                                        v1_1 = v0_1;
                                                    }
                                                }
                                            } else {
                                                v6_0.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                        }
                                        if (v15_14.moveToNext()) {
                                            v4_58.zzgi().zziy().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                        }
                                        boolean v16_6;
                                        com.google.android.gms.internal.measurement.zzfk v5_54;
                                        v15_14.close();
                                        v2_3.zzb(v13_5);
                                        if (v5_90 == -1) {
                                            v5_54 = "app_id = ? and metadata_fingerprint = ?";
                                            String v12_19 = new String[2];
                                            v12_19[0] = v3_0;
                                            v12_19[1] = v21_0;
                                            v16_6 = v12_19;
                                        } else {
                                            Boolean v13_6 = new String[3];
                                            v13_6[0] = v3_0;
                                            v13_6[1] = v21_0;
                                            v13_6[2] = String.valueOf(v5_90);
                                            v5_54 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_6 = v13_6;
                                        }
                                        v6_0 = v15_14;
                                        com.google.android.gms.internal.measurement.zzfk v5_56 = v24_1.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_54, v16_6, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_56.moveToFirst()) {
                                                do {
                                                    int v6_63 = v5_56.getLong(0);
                                                    com.google.android.gms.internal.measurement.zzet v8_3 = v5_56.getBlob(3);
                                                    com.google.android.gms.internal.measurement.zzet v8_4 = com.google.android.gms.internal.measurement.zzaca.zza(v8_3, 0, v8_3.length);
                                                    String v12_26 = new com.google.android.gms.internal.measurement.zzkr();
                                                    v12_26.zzb(v8_4);
                                                    v12_26.name = v5_56.getString(1);
                                                    v12_26.zzavb = Long.valueOf(v5_56.getLong(2));
                                                    if (v2_3.zza(v6_63, v12_26)) {
                                                    } else {
                                                        if (v5_56 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_56.moveToNext());
                                                if (v5_56 == null) {
                                                }
                                            } else {
                                                v4_58.zzgi().zziy().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                                if (v5_56 == null) {
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v6_0 = v5_56;
                                            String v1_2 = v0_0;
                                            if (v6_0 != 0) {
                                                v6_0.close();
                                            }
                                            throw v1_2;
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            String v12_4 = v3_0;
                                            v6_0 = v5_56;
                                            android.database.sqlite.SQLiteException v3_2 = v0_2;
                                            v4_58.zzgi().zziv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_4), v3_2);
                                            if (v6_0 == 0) {
                                            }
                                        }
                                        v5_56.close();
                                    } else {
                                        v4_58.zzgi().zziv().zzg("Raw event metadata record is missing. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                        if (v15_14 == null) {
                                        } else {
                                            v15_14.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_14;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v6_0 = v15_14;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_14;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v12_4 = v3_0;
                                    v6_0 = v15_14;
                                }
                                v12_4 = v3_0;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v6_0 = v22;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v12_4 = v3_0;
                                v6_0 = v22;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                            }
                        }
                    } else {
                        Boolean v13_17;
                        String v12_33 = v5_90 cmp -1;
                        try {
                            if (v12_33 == null) {
                                v13_17 = new String[1];
                                v13_17[0] = String.valueOf(p41);
                            } else {
                                v13_17 = new String[2];
                                v13_17[0] = String.valueOf(v5_90);
                                v13_17[1] = String.valueOf(p41);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                            v6_0 = 0;
                            v12_4 = 0;
                        }
                        String v12_41;
                        if (v12_33 == null) {
                            v12_41 = "";
                        } else {
                            v12_41 = "rowid <= ? and ";
                        }
                        android.database.sqlite.SQLiteException v3_17 = new StringBuilder((String.valueOf(v12_41).length() + 148));
                        v3_17.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_17.append(v12_41);
                        v3_17.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_15.rawQuery(v3_17.toString(), v13_17);
                        if (v3_0.moveToFirst()) {
                            v12_4 = v3_0.getString(0);
                            try {
                                Boolean v13_1 = v3_0.getString(1);
                                v3_0.close();
                                v22 = v3_0;
                                v3_0 = v12_4;
                                v21_0 = v13_1;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v6_0 = v3_0;
                            }
                        } else {
                            if (v3_0 == null) {
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v6_0 = v3_0;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v6_0 = v3_0;
                    v12_4 = 0;
                }
                v3_0.close();
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v6_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
                v3_2 = v0_7;
                v6_0 = 0;
                v12_4 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
            } catch (android.database.sqlite.SQLiteException v0_3) {
            }
        } catch (android.database.sqlite.SQLiteException v0_3) {
        }
    }

Method com.google.android.gms.internal.firebase_database.zzu.zzl() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzl()
    {
        android.database.Cursor v4 = "queryParams";
        com.google.android.gms.internal.firebase_database.zzhe v6 = "complete";
        java.io.IOException v2_1 = System.currentTimeMillis();
        v4 = this.zzbr.query("trackedQueries", new String[] {"id", "active"}), 0, 0, 0, 0, "id");
        RuntimeException v0_1 = new java.util.ArrayList();
        try {
            while (v4.moveToNext()) {
                long v10_0 = v4.getLong(0);
                int v15_1;
                com.google.android.gms.internal.firebase_database.zzhh v12_2 = new com.google.android.gms.internal.firebase_database.zzhh(new com.google.android.gms.internal.firebase_database.zzch(v4.getString(1)), com.google.android.gms.internal.firebase_database.zzhe.zzh(com.google.android.gms.internal.firebase_database.zzke.zzv(v4.getString(2))));
                long v13_1 = v4.getLong(3);
                if (v4.getInt(4) == 0) {
                    v15_1 = 0;
                } else {
                    v15_1 = 1;
                }
                int v16;
                if (v4.getInt(5) == 0) {
                    v16 = 0;
                } else {
                    v16 = 1;
                }
                com.google.android.gms.internal.firebase_database.zzgb v5_10 = new com.google.android.gms.internal.firebase_database.zzgb;
                v5_10(v10_0, v12_2, v13_1, v15_1, v16);
                v0_1.add(v5_10);
            }
        } catch (RuntimeException v0_5) {
            v4.close();
            throw v0_5;
        }
        com.google.android.gms.internal.firebase_database.zzgb v9_2 = (System.currentTimeMillis() - v2_1);
        if (this.zzbs.zzfa()) {
            java.io.IOException v2_4 = this.zzbs;
            com.google.android.gms.internal.firebase_database.zzgb v5_1 = new Object[2];
            v5_1[0] = Integer.valueOf(v0_1.size());
            v5_1[1] = Long.valueOf(v9_2);
            com.google.android.gms.internal.firebase_database.zzgb v5_2 = new Object[0];
            v2_4.zza(String.format("Loaded %d tracked queries in %dms", v5_1), 0, v5_2);
        }
        v4.close();
        return v0_1;
    }

Method com.google.android.gms.internal.firebase_database.zzu.zzj() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzj()
    {
        IllegalStateException v0_7 = System.currentTimeMillis();
        android.database.Cursor v2_0 = this.zzbr.query("writes", new String[] {"id", "path", "type", "part", "node"}), 0, 0, 0, 0, "id, part");
        String v3_4 = new java.util.ArrayList();
        try {
            while (v2_0.moveToNext()) {
                com.google.android.gms.internal.firebase_database.zzfa v5_12;
                long v9_1 = v2_0.getLong(0);
                com.google.android.gms.internal.firebase_database.zzch v11_2 = new com.google.android.gms.internal.firebase_database.zzch(v2_0.getString(1));
                int v4_8 = v2_0.getString(2);
                if (!v2_0.isNull(3)) {
                    com.google.android.gms.internal.firebase_database.zzfa v5_11 = new java.util.ArrayList();
                    do {
                        v5_11.add(v2_0.getBlob(4));
                    } while((v2_0.moveToNext()) && (v2_0.getLong(0) == v9_1));
                    v2_0.moveToPrevious();
                    v5_12 = com.google.android.gms.internal.firebase_database.zzu.zza(v5_11);
                } else {
                    v5_12 = v2_0.getBlob(4);
                }
                int v4_1;
                com.google.android.gms.internal.firebase_database.zzfa v5_13 = com.google.android.gms.internal.firebase_database.zzke.zzw(new String(v5_12, com.google.android.gms.internal.firebase_database.zzu.zzbq));
                if (!"o".equals(v4_8)) {
                    if (!"m".equals(v4_8)) {
                        String v1_1;
                        String v3_6 = String.valueOf(v4_8);
                        if (v3_6.length() == 0) {
                            v1_1 = new String("Got invalid write type: ");
                        } else {
                            v1_1 = "Got invalid write type: ".concat(v3_6);
                        }
                        throw new IllegalStateException(v1_1);
                    } else {
                        v4_1 = new com.google.android.gms.internal.firebase_database.zzfa(v9_1, v11_2, com.google.android.gms.internal.firebase_database.zzbv.zzf(((java.util.Map) v5_13)));
                    }
                } else {
                    v4_1 = new com.google.android.gms.internal.firebase_database.zzfa;
                    v4_1(v9_1, v11_2, com.google.android.gms.internal.firebase_database.zzjd.zza(v5_13, com.google.android.gms.internal.firebase_database.zzir.zzfv()), 1);
                }
                v3_4.add(v4_1);
            }
        } catch (IllegalStateException v0_3) {
            v2_0.close();
            throw v0_3;
        } catch (IllegalStateException v0_2) {
            throw new RuntimeException("Failed to load writes", v0_2);
        }
        long v8_3 = (System.currentTimeMillis() - v0_7);
        if (this.zzbs.zzfa()) {
            IllegalStateException v0_6 = this.zzbs;
            int v4_4 = new Object[2];
            v4_4[0] = Integer.valueOf(v3_4.size());
            v4_4[1] = Long.valueOf(v8_3);
            int v4_6 = new Object[0];
            v0_6.zza(String.format("Loaded %d writes in %dms", v4_4), 0, v4_6);
        }
        v2_0.close();
        return v3_4;
    }

Method com.google.android.gms.internal.firebase_database.zzu.zza() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.Set zza(java.util.Set p14)
    {
        long v11 = System.currentTimeMillis();
        android.database.Cursor v0_3 = com.google.android.gms.internal.firebase_database.zzu.zza(p14);
        com.google.android.gms.internal.firebase_database.zzhz v2_1 = new StringBuilder((String.valueOf(v0_3).length() + 8));
        v2_1.append("id IN (");
        v2_1.append(v0_3);
        v2_1.append(")");
        android.database.Cursor v0_2 = this.zzbr.query(1, "trackedKeys", new String[] {"key"}), v2_1.toString(), 0, 0, 0, 0, 0);
        java.util.HashSet v1_5 = new java.util.HashSet();
        try {
            while (v0_2.moveToNext()) {
                v1_5.add(com.google.android.gms.internal.firebase_database.zzid.zzt(v0_2.getString(0)));
            }
        } catch (String v14_4) {
            v0_2.close();
            throw v14_4;
        }
        int v4_2 = (System.currentTimeMillis() - v11);
        if (this.zzbs.zzfa()) {
            com.google.android.gms.internal.firebase_database.zzhz v2_6 = this.zzbs;
            Object[] v7_2 = new Object[3];
            v7_2[0] = Integer.valueOf(v1_5.size());
            v7_2[1] = p14.toString();
            v7_2[2] = Long.valueOf(v4_2);
            Object[] v3_2 = new Object[0];
            v2_6.zza(String.format("Loaded %d tracked queries keys for tracked queries %s in %dms", v7_2), 0, v3_2);
        }
        v0_2.close();
        return v1_5;
    }

Method com.google.android.gms.internal.firebase_database.zzu.zza() calling method android.database.sqlite.SQLiteDatabase.query()


    private final android.database.Cursor zza(com.google.android.gms.internal.firebase_database.zzch p12, String[] p13)
    {
        String v0 = com.google.android.gms.internal.firebase_database.zzu.zzc(p12);
        String v1 = com.google.android.gms.internal.firebase_database.zzu.zzc(v0);
        String[] v7 = new String[(p12.size() + 3)];
        int v2_0 = new StringBuilder("(");
        android.database.sqlite.SQLiteDatabase v3_0 = p12;
        String v4_0 = 0;
        while (!v3_0.isEmpty()) {
            v2_0.append("path");
            v2_0.append(" = ? OR ");
            v7[v4_0] = com.google.android.gms.internal.firebase_database.zzu.zzc(v3_0);
            v3_0 = v3_0.zzby();
            v4_0++;
        }
        String v6;
        v2_0.append("path");
        v2_0.append(" = ?)");
        v7[v4_0] = com.google.android.gms.internal.firebase_database.zzu.zzc(com.google.android.gms.internal.firebase_database.zzch.zzbt());
        int v2_2 = String.valueOf(v2_0.toString());
        android.database.sqlite.SQLiteDatabase v3_6 = String.valueOf(" OR (path > ? AND path < ?)");
        if (v3_6.length() == 0) {
            v6 = new String(v2_2);
        } else {
            v6 = v2_2.concat(v3_6);
        }
        v7[(p12.size() + 1)] = v0;
        v7[(p12.size() + 2)] = v1;
        return this.zzbr.query("serverCache", p13, v6, v7, 0, 0, "path");
    }

Method com.facebook.react.modules.storage.AsyncStorageModule$6.doInBackgroundGuarded() calling method android.database.sqlite.SQLiteDatabase.query()


    protected varargs void doInBackgroundGuarded(Void[] p14)
    {
        if (com.facebook.react.modules.storage.AsyncStorageModule.access$000(this.this$0)) {
            com.facebook.react.bridge.WritableMap v14_7 = com.facebook.react.bridge.Arguments.createArray();
            com.facebook.react.bridge.Callback v4_3 = com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.this$0).get().query("catalystLocalStorage", new String[] {"key"}), 0, 0, 0, 0, 0);
            try {
                if (v4_3.moveToFirst()) {
                    do {
                        v14_7.pushString(v4_3.getString(0));
                    } while(v4_3.moveToNext());
                }
            } catch (com.facebook.react.bridge.WritableMap v14_5) {
                v4_3.close();
                throw v14_5;
            } catch (com.facebook.react.bridge.WritableMap v14_2) {
                com.facebook.common.logging.FLog.w("ReactNative", v14_2.getMessage(), v14_2);
                com.facebook.react.bridge.Callback v5_3 = this.val$callback;
                Object[] v1_0 = new Object[2];
                v1_0[0] = com.facebook.react.modules.storage.AsyncStorageErrorUtil.getError(0, v14_2.getMessage());
                v1_0[1] = 0;
                v5_3.invoke(v1_0);
                v4_3.close();
                return;
            }
            v4_3.close();
            com.facebook.react.bridge.Callback v4_4 = this.val$callback;
            Object[] v1_2 = new Object[2];
            v1_2[0] = 0;
            v1_2[1] = v14_7;
            v4_4.invoke(v1_2);
            return;
        } else {
            com.facebook.react.bridge.WritableMap v14_6 = this.val$callback;
            Object[] v1_3 = new Object[2];
            v1_3[0] = com.facebook.react.modules.storage.AsyncStorageErrorUtil.getDBError(0);
            v1_3[1] = 0;
            v14_6.invoke(v1_3);
            return;
        }
    }

Method com.facebook.react.modules.storage.AsyncStorageModule$1.doInBackgroundGuarded() calling method android.database.sqlite.SQLiteDatabase.query()


    protected varargs void doInBackgroundGuarded(Void[] p20)
    {
        if (com.facebook.react.modules.storage.AsyncStorageModule.access$000(this.this$0)) {
            int v6_5 = new java.util.HashSet();
            com.facebook.react.bridge.WritableArray v15 = com.facebook.react.bridge.Arguments.createArray();
            int v14_0 = 0;
            while (v14_0 < this.val$keys.size()) {
                int v13_0 = Math.min((this.val$keys.size() - v14_0), 999);
                int v18 = v13_0;
                int v4_3 = v14_0;
                java.util.Iterator v7_8 = com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.this$0).get().query("catalystLocalStorage", new String[] {"key", "value"}), com.facebook.react.modules.storage.AsyncLocalStorageUtil.buildKeySelection(v13_0), com.facebook.react.modules.storage.AsyncLocalStorageUtil.buildKeySelectionArgs(this.val$keys, v14_0, v13_0), 0, 0, 0);
                v6_5.clear();
                try {
                    if (v7_8.getCount() != this.val$keys.size()) {
                        String v8_0 = v4_3;
                        while (v8_0 < (v4_3 + v18)) {
                            v6_5.add(this.val$keys.getString(v8_0));
                            v8_0++;
                        }
                    }
                    if (v7_8.moveToFirst()) {
                        do {
                            String v8_5 = com.facebook.react.bridge.Arguments.createArray();
                            v8_5.pushString(v7_8.getString(0));
                            v8_5.pushString(v7_8.getString(1));
                            v15.pushArray(v8_5);
                            v6_5.remove(v7_8.getString(0));
                        } while(v7_8.moveToNext());
                    }
                    v7_8.close();
                    java.util.Iterator v7_9 = v6_5.iterator();
                    while (v7_9.hasNext()) {
                        String v8_10 = ((String) v7_9.next());
                        com.facebook.react.bridge.WritableArray v9_8 = com.facebook.react.bridge.Arguments.createArray();
                        v9_8.pushString(v8_10);
                        v9_8.pushNull();
                        v15.pushArray(v9_8);
                    }
                    v6_5.clear();
                    v14_0 = (v4_3 + 999);
                } catch (com.facebook.react.bridge.WritableMap v0_5) {
                    v7_8.close();
                    throw v0_5;
                } catch (com.facebook.react.bridge.WritableMap v0_1) {
                    com.facebook.common.logging.FLog.w("ReactNative", v0_1.getMessage(), v0_1);
                    int v4_1 = this.val$callback;
                    Object[] v2_0 = new Object[2];
                    v2_0[0] = com.facebook.react.modules.storage.AsyncStorageErrorUtil.getError(0, v0_1.getMessage());
                    v2_0[1] = 0;
                    v4_1.invoke(v2_0);
                    v7_8.close();
                    return;
                }
            }
            com.facebook.react.bridge.WritableMap v0_7 = this.val$callback;
            Object[] v2_2 = new Object[2];
            v2_2[0] = 0;
            v2_2[1] = v15;
            v0_7.invoke(v2_2);
            return;
        } else {
            com.facebook.react.bridge.WritableMap v0_6 = this.val$callback;
            Object[] v2_1 = new Object[2];
            v2_1[0] = com.facebook.react.modules.storage.AsyncStorageErrorUtil.getDBError(0);
            v2_1[1] = 0;
            v0_6.invoke(v2_1);
            return;
        }
    }

Method com.google.android.gms.internal.measurement.zzeo.zza() calling method android.database.sqlite.SQLiteDatabase.query()


    private static boolean zza(com.google.android.gms.internal.measurement.zzfi p10, android.database.sqlite.SQLiteDatabase p11, String p12)
    {
        if (p10 == null) {
            throw new IllegalArgumentException("Monitor must not be null");
        } else {
            try {
                String[] v6 = new String[1];
                v6[0] = p12;
                android.database.Cursor v0 = p11.query("SQLITE_MASTER", new String[] {"name"}), "name=?", v6, 0, 0, 0);
                com.google.android.gms.internal.measurement.zzfk v10_2 = v0.moveToFirst();
            } catch (com.google.android.gms.internal.measurement.zzfk v10_5) {
                if (v0 != null) {
                    v0.close();
                }
                throw v10_5;
            } catch (android.database.sqlite.SQLiteException v11_2) {
                v10_2.zziy().zze("Error querying for table", p12, v11_2);
                if (v0 != null) {
                    v0.close();
                }
                return 0;
            }
            if (v0 != null) {
                v0.close();
            }
            return v10_2;
        }
    }

Method com.facebook.react.modules.storage.AsyncLocalStorageUtil.getItemImpl() calling method android.database.sqlite.SQLiteDatabase.query()


    public static String getItemImpl(android.database.sqlite.SQLiteDatabase p9, String p10)
    {
        String[] v5 = new String[1];
        v5[0] = p10;
        android.database.Cursor v9_1 = p9.query("catalystLocalStorage", new String[] {"value"}), "key=?", v5, 0, 0, 0);
        try {
            if (v9_1.moveToFirst()) {
                String v10_2 = v9_1.getString(0);
                v9_1.close();
                return v10_2;
            } else {
                v9_1.close();
                return 0;
            }
        } catch (String v10_3) {
            v9_1.close();
            throw v10_3;
        }
    }