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.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_8) {
                v9_7.zzgi().zziv().zze("Error storing remote config. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p7), v0_8);
                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_6 = new android.content.ContentValues();
        v0_6.put("app_id", p8.zzah());
        v0_6.put("app_instance_id", p8.getAppInstanceId());
        v0_6.put("gmp_app_id", p8.getGmpAppId());
        v0_6.put("resettable_device_id_hash", p8.zzgq());
        v0_6.put("last_bundle_index", Long.valueOf(p8.zzgy()));
        v0_6.put("last_bundle_start_timestamp", Long.valueOf(p8.zzgs()));
        v0_6.put("last_bundle_end_timestamp", Long.valueOf(p8.zzgt()));
        v0_6.put("app_version", p8.zzag());
        v0_6.put("app_store", p8.zzgv());
        v0_6.put("gmp_version", Long.valueOf(p8.zzgw()));
        v0_6.put("dev_cert_hash", Long.valueOf(p8.zzgx()));
        v0_6.put("measurement_enabled", Boolean.valueOf(p8.isMeasurementEnabled()));
        v0_6.put("day", Long.valueOf(p8.zzhc()));
        v0_6.put("daily_public_events_count", Long.valueOf(p8.zzhd()));
        v0_6.put("daily_events_count", Long.valueOf(p8.zzhe()));
        v0_6.put("daily_conversions_count", Long.valueOf(p8.zzhf()));
        v0_6.put("config_fetched_time", Long.valueOf(p8.zzgz()));
        v0_6.put("failed_config_fetch_time", Long.valueOf(p8.zzha()));
        v0_6.put("app_version_int", Long.valueOf(p8.zzgu()));
        v0_6.put("firebase_instance_id", p8.zzgr());
        v0_6.put("daily_error_events_count", Long.valueOf(p8.zzhh()));
        v0_6.put("daily_realtime_events_count", Long.valueOf(p8.zzhg()));
        v0_6.put("health_monitor_sample", p8.zzhi());
        v0_6.put("android_id", Long.valueOf(p8.zzhk()));
        v0_6.put("adid_reporting_enabled", Boolean.valueOf(p8.zzhl()));
        v0_6.put("ssaid_reporting_enabled", Boolean.valueOf(p8.zzhm()));
        try {
            String v1_9 = this.getWritableDatabase();
            int v4_1 = new String[1];
            v4_1[0] = p8.zzah();
        } catch (com.google.android.gms.internal.measurement.zzfk v0_4) {
            this.zzgi().zziv().zze("Error storing app. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p8.zzah()), v0_4);
            return;
        }
        if ((((long) v1_9.update("apps", v0_6, "app_id = ?", v4_1)) == 0) && (v1_9.insertWithOnConflict("apps", 0, v0_6, 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 p16, String p18, boolean p19, boolean p20, boolean p21, boolean p22, boolean p23)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p18);
        this.zzab();
        this.zzch();
        String v2_1 = new String[1];
        v2_1[0] = p18;
        com.google.android.gms.internal.measurement.zzel v4_1 = new com.google.android.gms.internal.measurement.zzel();
        String v5_8 = 0;
        try {
            android.database.sqlite.SQLiteDatabase v14 = this.getWritableDatabase();
            String[] v10 = "daily_public_events_count";
            int v12 = "daily_error_events_count";
            v10 = new String[1];
            v10[0] = p18;
            int v6_1 = v14.query("apps", new String[] {"day", "daily_realtime_events_count"}), "app_id=?", v10, 0, 0, 0);
            try {
                if (v6_1.moveToFirst()) {
                    if (v6_1.getLong(0) == p16) {
                        v4_1.zzagu = v6_1.getLong(1);
                        v4_1.zzagt = v6_1.getLong(2);
                        v4_1.zzagv = v6_1.getLong(3);
                        v4_1.zzagw = v6_1.getLong(4);
                        v4_1.zzagx = v6_1.getLong(5);
                    }
                    if (p19) {
                        v4_1.zzagu = (v4_1.zzagu + 1);
                    }
                    if (p20) {
                        v4_1.zzagt = (v4_1.zzagt + 1);
                    }
                    if (p21) {
                        v4_1.zzagv = (v4_1.zzagv + 1);
                    }
                    if (p22) {
                        v4_1.zzagw = (v4_1.zzagw + 1);
                    }
                    if (p23) {
                        v4_1.zzagx = (v4_1.zzagx + 1);
                    }
                    android.content.ContentValues v0_1 = new android.content.ContentValues();
                    v0_1.put("day", Long.valueOf(p16));
                    v0_1.put("daily_public_events_count", Long.valueOf(v4_1.zzagt));
                    v0_1.put("daily_events_count", Long.valueOf(v4_1.zzagu));
                    v0_1.put("daily_conversions_count", Long.valueOf(v4_1.zzagv));
                    v0_1.put("daily_error_events_count", Long.valueOf(v4_1.zzagw));
                    v0_1.put("daily_realtime_events_count", Long.valueOf(v4_1.zzagx));
                    v14.update("apps", v0_1, "app_id=?", v2_1);
                    if (v6_1 != 0) {
                        v6_1.close();
                    }
                    return v4_1;
                } else {
                    this.zzgi().zziy().zzg("Not updating daily counts, app is not known. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p18));
                    if (v6_1 != 0) {
                        v6_1.close();
                    }
                    return v4_1;
                }
            } catch (android.content.ContentValues v0_10) {
                if (v6_1 != 0) {
                    v6_1.close();
                }
                throw v0_10;
            } catch (android.content.ContentValues v0_5) {
                v5_8 = v6_1;
                this.zzgi().zziv().zze("Error updating daily counts. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p18), v0_5);
                if (v5_8 != null) {
                    v5_8.close();
                }
                return v4_1;
            }
        } catch (android.content.ContentValues v0_10) {
            v6_1 = v5_8;
        } catch (android.content.ContentValues v0_5) {
        }
    }

Method com.google.android.gms.tagmanager.zzeb.zzc() calling method android.database.sqlite.SQLiteDatabase.update()


    private final void zzc(long p6, long p8)
    {
        android.database.sqlite.SQLiteDatabase v0_1 = this.zzcy("Error opening database for getNumStoredHits.");
        if (v0_1 != null) {
            android.content.ContentValues v1_1 = new android.content.ContentValues();
            v1_1.put("hit_first_send_time", Long.valueOf(p8));
            try {
                String[] v2_1 = new String[1];
                v2_1[0] = String.valueOf(p6);
                v0_1.update("gtm_hits", v1_1, "hit_id=?", v2_1);
                return;
            } catch (android.database.sqlite.SQLiteException) {
                StringBuilder v9_2 = new StringBuilder(69);
                v9_2.append("Error setting HIT_FIRST_DISPATCH_TIME for hitId: ");
                v9_2.append(p6);
                com.google.android.gms.tagmanager.zzdi.zzab(v9_2.toString());
                this.zze(p6);
                return;
            }
        } else {
            return;
        }
    }

Method com.evernote.android.job.l.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(com.evernote.android.job.k p8, android.content.ContentValues p9)
    {
        this.h.writeLock().lock();
        com.evernote.android.job.a.d v2_1 = 0;
        try {
            this.c(p8);
            com.evernote.android.job.a.d v3_1 = this.b();
            try {
                String[] v5 = new String[1];
                v5[0] = String.valueOf(p8.c());
                v3_1.update("jobs", p9, "_id=?", v5);
                ark>com.evernote.android.job.lark>.a(v3_1);
            } catch (java.util.concurrent.locks.Lock v8_1) {
                v2_1 = v3_1;
                ark>com.evernote.android.job.lark>.a(v2_1);
                this.h.writeLock().unlock();
                throw v8_1;
            } catch (Exception v9_1) {
                v2_1 = v3_1;
                Object[] v1_0 = new Object[1];
                v1_0[0] = p8;
                ark>com.evernote.android.job.lark>.a.b(v9_1, "could not update %s", v1_0);
                ark>com.evernote.android.job.lark>.a(v2_1);
            }
            this.h.writeLock().unlock();
            return;
        } catch (java.util.concurrent.locks.Lock v8_1) {
        } catch (Exception v9_1) {
        }
    }

Method com.evernote.android.job.l$b.c() calling method android.database.sqlite.SQLiteDatabase.update()


    private void c(android.database.sqlite.SQLiteDatabase p6)
    {
        p6.execSQL("alter table jobs add column flexMs integer;");
        p6.execSQL("alter table jobs add column flexSupport integer;");
        String v0_4 = new android.content.ContentValues();
        v0_4.put("intervalMs", Long.valueOf(com.evernote.android.job.k.d));
        String v2_1 = new StringBuilder();
        v2_1.append("intervalMs>0 AND intervalMs<");
        v2_1.append(com.evernote.android.job.k.d);
        String[] v3_3 = new String[0];
        p6.update("jobs", v0_4, v2_1.toString(), v3_3);
        p6.execSQL("update jobs set flexMs = intervalMs;");
        return;
    }

Method net.skyscanner.go.platform.database.b.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private android.database.Cursor b(long[] p8)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getReadableDatabase();
        int v1_3 = new StringBuilder();
        String v2_0 = p8.length;
        int v3 = 0;
        while (v3 < v2_0) {
            long v4 = p8[v3];
            if (v1_3.length() > 0) {
                v1_3.append(",");
            }
            v1_3.append(v4);
            v3++;
        }
        android.database.Cursor v8_4 = new StringBuilder();
        v8_4.append("SELECT coordinates.id AS id, coordinates.route_node_id AS route_node_id, coordinates.lat AS lat, coordinates.long AS long, coordinates.time_zone AS time_zone, coordinates.parent_id AS parent_id, coordinates.time_zone AS time_zone, coordinates.airport_type AS airport_type, coordinates.ddb_id AS ddb_id, COALESCE(coordinates.image_url, parent.image_url) AS resolved_image_url FROM coordinates LEFT JOIN coordinates AS parent ON LENGTH(coordinates.id) == 3 AND LENGTH(coordinates.parent_id) == 4 AND coordinates.image_url IS NULL AND coordinates.parent_id == parent.id WHERE coordinates.route_node_id IN (");
        v8_4.append(v1_3);
        v8_4.append(")");
        return v0.rawQuery(v8_4.toString(), 0);
    }

Method net.skyscanner.go.platform.database.b.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private android.database.Cursor b(java.util.List p6)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getReadableDatabase();
        int v1_3 = new StringBuilder();
        android.database.Cursor v6_4 = p6.iterator();
        while (v6_4.hasNext()) {
            String v2_2 = ((String) v6_4.next());
            if ((v2_2 != null) && (v2_2.length() > 0)) {
                if (v1_3.length() > 0) {
                    v1_3.append(",");
                }
                v1_3.append(39);
                v1_3.append(v2_2.toUpperCase(java.util.Locale.ENGLISH));
                v1_3.append(39);
            }
        }
        android.database.Cursor v6_1 = new StringBuilder();
        v6_1.append("SELECT coordinates.id AS id, coordinates.route_node_id AS route_node_id, coordinates.lat AS lat, coordinates.long AS long, coordinates.time_zone AS time_zone, coordinates.parent_id AS parent_id, coordinates.time_zone AS time_zone, coordinates.airport_type AS airport_type, coordinates.ddb_id AS ddb_id, COALESCE(coordinates.image_url, parent.image_url) AS resolved_image_url FROM coordinates LEFT JOIN coordinates AS parent ON LENGTH(coordinates.id) == 3 AND LENGTH(coordinates.parent_id) == 4 AND coordinates.image_url IS NULL AND coordinates.parent_id == parent.id WHERE coordinates.id IN (");
        v6_1.append(v1_3);
        v6_1.append(")");
        return v0.rawQuery(v6_1.toString(), 0);
    }

Method net.skyscanner.go.platform.database.b.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private android.database.Cursor b(double p17, double p19, double p21)
    {
        android.database.Cursor v0_0 = this.getReadableDatabase();
        Double v3_3 = ((p17 * 3.141592653589793) / 180.0);
        double v7 = Math.cos(v3_3);
        Double v3_5 = Math.sin(v3_3);
        String v1_1 = ((3.141592653589793 * p19) / 180.0);
        double v5_0 = Math.cos(v1_1);
        String v1_2 = Math.sin(v1_1);
        Double v9_2 = Math.cos((p21 / 6371.0));
        Object[] v13_1 = new Object[9];
        v13_1[0] = Double.valueOf(v3_5);
        v13_1[1] = Double.valueOf(v7);
        v13_1[2] = Double.valueOf(v5_0);
        v13_1[3] = Double.valueOf(v1_2);
        v13_1[4] = Double.valueOf(v9_2);
        v13_1[5] = Double.valueOf(v3_5);
        v13_1[6] = Double.valueOf(v7);
        v13_1[7] = Double.valueOf(v5_0);
        v13_1[8] = Double.valueOf(v1_2);
        return v0_0.rawQuery(String.format(java.util.Locale.US, "SELECT coordinates.id AS id, coordinates.route_node_id AS route_node_id, coordinates.lat AS lat, coordinates.long AS long, coordinates.time_zone AS time_zone, coordinates.parent_id AS parent_id, coordinates.time_zone AS time_zone, coordinates.airport_type AS airport_type, coordinates.ddb_id AS ddb_id, COALESCE(coordinates.image_url, parent.image_url) AS resolved_image_url FROM coordinates LEFT JOIN coordinates AS parent ON LENGTH(coordinates.id) == 3 AND LENGTH(coordinates.parent_id) == 4 AND coordinates.image_url IS NULL AND coordinates.parent_id == parent.id WHERE length(coordinates.id) = 3 AND %1$f * coordinates.sin_lat + %2$f * coordinates.cos_lat * (coordinates.cos_lng * %3$f + coordinates.sin_lng * %4$f) > %5$f ORDER BY ABS(%6$f * coordinates.sin_lat + %7$f * coordinates.cos_lat * (coordinates.cos_lng * %8$f + coordinates.sin_lng * %9$f)) DESC;", v13_1), 0);
    }

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


    private final boolean zza(int p18, byte[] p19)
    {
        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(p18));
            v3_1.put("entry", p19);
            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) {
                            if (v7.inTransaction()) {
                                v7.endTransaction();
                            }
                        }
                        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;
                    if (v12 != 0) {
                        v12.close();
                    }
                    if (v9 != 0) {
                        v9.close();
                    }
                    throw v0_1;
                } 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()
    {
        int v2_0 = 0;
        try {
            android.database.sqlite.SQLiteException v3_2 = this.getWritableDatabase().rawQuery("select rowid from raw_events order by rowid desc limit 1;", 0);
            try {
                if (v3_2.moveToFirst()) {
                    long v4_0 = v3_2.getLong(0);
                    if (v3_2 != null) {
                        v3_2.close();
                    }
                    return v4_0;
                } else {
                    if (v3_2 != null) {
                        v3_2.close();
                    }
                    return -1;
                }
            } catch (Throwable v0_1) {
                v2_0 = v3_2;
                if (v2_0 != 0) {
                    v2_0.close();
                }
                throw v0_1;
            } catch (int v2_2) {
                android.database.sqlite.SQLiteException v3_0 = v2_2;
                v2_0 = v3_2;
                this.zzgi().zziv().zzg("Error querying raw events", v3_0);
                if (v2_0 != 0) {
                    v2_0.close();
                }
                return -1;
            }
        } catch (Throwable v0_1) {
        } catch (android.database.sqlite.SQLiteException v3_0) {
        }
    }

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 v2_4 = v0_1.getString(0);
                    if (v0_1 != null) {
                        v0_1.close();
                    }
                    return v2_4;
                }
            } catch (String 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) {
            Throwable v1_0 = v0_2;
            v0_1 = 0;
            if (v0_1 != null) {
                v0_1.close();
            }
            throw v1_0;
        } catch (String v2_1) {
            v0_1 = 0;
        } catch (Throwable 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)
    {
        com.google.android.gms.internal.measurement.zzfk v1 = 0;
        try {
            com.google.android.gms.internal.measurement.zzfk v4_3 = this.getWritableDatabase().rawQuery(p3, p4);
            try {
                if (!v4_3.moveToFirst()) {
                    if (v4_3 != null) {
                        v4_3.close();
                    }
                    return p5;
                } else {
                    long v5_2 = v4_3.getLong(0);
                    if (v4_3 != null) {
                        v4_3.close();
                    }
                    return v5_2;
                }
            } catch (Throwable v3_1) {
                v1 = v4_3;
                if (v1 != null) {
                    v1.close();
                }
                throw v3_1;
            } catch (long v5_3) {
                v1 = v4_3;
                this.zzgi().zziv().zze("Database error", p3, v5_3);
                throw v5_3;
            }
        } catch (Throwable v3_1) {
        } catch (long v5_3) {
        }
    }

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


    private final long zza(String p4, String[] p5)
    {
        String v1_1 = 0;
        try {
            com.google.android.gms.internal.measurement.zzfk v5_3 = this.getWritableDatabase().rawQuery(p4, p5);
            try {
                if (!v5_3.moveToFirst()) {
                    throw new android.database.sqlite.SQLiteException("Database returned empty set");
                } else {
                    android.database.sqlite.SQLiteException v0_4 = v5_3.getLong(0);
                    if (v5_3 != null) {
                        v5_3.close();
                    }
                    return v0_4;
                }
            } catch (Throwable v4_1) {
                if (v5_3 != null) {
                    v5_3.close();
                }
                throw v4_1;
            } catch (android.database.sqlite.SQLiteException v0_2) {
                v1_1 = v5_3;
                this.zzgi().zziv().zze("Database error", p4, v0_2);
                throw v0_2;
            }
        } catch (Throwable v4_1) {
            v5_3 = v1_1;
        } catch (android.database.sqlite.SQLiteException v0_2) {
        }
    }

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


    private final long zza(String p1, String[] p2, long p3)
    {
        String v4 = 0;
        try {
            String v2_2 = this.getWritableDatabase().rawQuery(p1, p2);
            try {
                if (!v2_2.moveToFirst()) {
                    if (v2_2 != null) {
                        v2_2.close();
                    }
                    return 0;
                } else {
                    long v3_2 = v2_2.getLong(0);
                    if (v2_2 != null) {
                        v2_2.close();
                    }
                    return v3_2;
                }
            } catch (long v1_1) {
                v4 = v2_2;
                if (v4 != null) {
                    v4.close();
                }
                throw v1_1;
            } catch (long v3_3) {
                v4 = v2_2;
                this.zzd("Database error", p1, v3_3);
                throw v3_3;
            }
        } catch (long v1_1) {
        } catch (long v3_3) {
        }
    }

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


    private final long zza(String p4, String[] p5)
    {
        try {
            int v5_1 = this.getWritableDatabase().rawQuery(p4, 0);
            try {
                if (!v5_1.moveToFirst()) {
                    throw new android.database.sqlite.SQLiteException("Database returned empty set");
                } else {
                    android.database.sqlite.SQLiteException v0_6 = v5_1.getLong(0);
                    if (v5_1 != 0) {
                        v5_1.close();
                    }
                    return v0_6;
                }
            } catch (android.database.sqlite.SQLiteException v0_3) {
                this.zzd("Database error", p4, v0_3);
                throw v0_3;
            }
        } catch (Throwable v4_1) {
            v5_1 = 0;
            if (v5_1 != 0) {
                v5_1.close();
            }
            throw v4_1;
        } catch (int v5_2) {
            v0_3 = v5_2;
            v5_1 = 0;
        } catch (Throwable v4_1) {
        }
    }

Method com.google.android.gms.tagmanager.zzeb.zzoh() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final int zzoh()
    {
        String v0_2 = this.zzcy("Error opening database for getNumStoredHits.");
        int v1_1 = 0;
        if (v0_2 != null) {
            long v2_1 = 0;
            try {
                String v0_3 = v0_2.rawQuery("SELECT COUNT(*) from gtm_hits", 0);
                try {
                    if (v0_3.moveToFirst()) {
                        v1_1 = ((int) v0_3.getLong(0));
                    }
                } catch (int v1_0) {
                    v2_1 = v0_3;
                    if (v2_1 != 0) {
                        v2_1.close();
                    }
                    throw v1_0;
                } catch (android.database.sqlite.SQLiteException) {
                    v2_1 = v0_3;
                    com.google.android.gms.tagmanager.zzdi.zzab("Error getting numStoredHits");
                    if (v2_1 == 0) {
                        return v1_1;
                    } else {
                        v2_1.close();
                        return v1_1;
                    }
                }
                if (v0_3 == null) {
                    return v1_1;
                } else {
                    v0_3.close();
                    return v1_1;
                }
            } catch (int v1_0) {
            }
        } else {
            return 0;
        }
    }

Method com.google.android.gms.tagmanager.zzat.zzni() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final int zzni()
    {
        String v0_2 = this.zzcy("Error opening database for getNumStoredEntries.");
        int v1_1 = 0;
        if (v0_2 != null) {
            long v2_1 = 0;
            try {
                String v0_3 = v0_2.rawQuery("SELECT COUNT(*) from datalayer", 0);
                try {
                    if (v0_3.moveToFirst()) {
                        v1_1 = ((int) v0_3.getLong(0));
                    }
                } catch (int v1_0) {
                    v2_1 = v0_3;
                    if (v2_1 != 0) {
                        v2_1.close();
                    }
                    throw v1_0;
                } catch (android.database.sqlite.SQLiteException) {
                    v2_1 = v0_3;
                    com.google.android.gms.tagmanager.zzdi.zzab("Error getting numStoredEntries");
                    if (v2_1 == 0) {
                        return v1_1;
                    } else {
                        v2_1.close();
                        return v1_1;
                    }
                }
                if (v0_3 == null) {
                    return v1_1;
                } else {
                    v0_3.close();
                    return v1_1;
                }
            } catch (int v1_0) {
            }
        } else {
            return 0;
        }
    }

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


    private final boolean zzd(String p65, long p66)
    {
        this.zzjh().beginTransaction();
        try {
            android.database.sqlite.SQLiteException v3_0 = 0;
            com.google.android.gms.internal.measurement.zzfk v2_7 = new com.google.android.gms.internal.measurement.zzjt$zza(this, 0);
            Object v4_31 = this.zzjh();
            com.google.android.gms.internal.measurement.zzfk v5_123 = this.zzasl;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_7);
            v4_31.zzab();
            v4_31.zzch();
            try {
                int v23;
                String v22;
                Long v15_2 = v4_31.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        Boolean v12_30;
                        android.database.sqlite.SQLiteException v3_2 = v5_123 cmp -1;
                        if (v3_2 == null) {
                            v12_30 = new String[] {0});
                        } else {
                            v12_30 = new String[2];
                            v12_30[0] = 0;
                            v12_30[1] = String.valueOf(v5_123);
                        }
                        android.database.sqlite.SQLiteException v3_9;
                        if (v3_2 == null) {
                            v3_9 = "";
                        } else {
                            v3_9 = " and rowid <= ?";
                        }
                        long v14_12 = new StringBuilder((String.valueOf(v3_9).length() + 84));
                        v14_12.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_12.append(v3_9);
                        v14_12.append(" order by rowid limit 1;");
                        v3_0 = v15_2.rawQuery(v14_12.toString(), v12_30);
                        if (v3_0.moveToFirst()) {
                            Boolean v13_17 = v3_0.getString(0);
                            v3_0.close();
                            v23 = v3_0;
                            v22 = v13_17;
                            v3_0 = 0;
                            try {
                                Boolean v12_11 = new String[2];
                                v12_11[0] = v3_0;
                                v12_11[1] = v22;
                                android.database.sqlite.SQLiteDatabase v25 = v15_2;
                                Long v15_1 = v15_2.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_11, 0, 0, "rowid", "2");
                                try {
                                    if (v15_1.moveToFirst()) {
                                        Boolean v12_16 = v15_1.getBlob(0);
                                        Boolean v12_17 = com.google.android.gms.internal.measurement.zzaca.zza(v12_16, 0, v12_16.length);
                                        Boolean v13_6 = new com.google.android.gms.internal.measurement.zzku();
                                        try {
                                            v13_6.zzb(v12_17);
                                        } catch (android.database.sqlite.SQLiteException v0_5) {
                                            int v9_0 = v15_1;
                                            v4_31.zzgi().zziv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0), v0_5);
                                            if (v9_0 == 0) {
                                                android.database.sqlite.SQLiteException v3_7;
                                                if (v2_7.zzasr == null) {
                                                    v3_7 = 1;
                                                } else {
                                                    if (!v2_7.zzasr.isEmpty()) {
                                                        v3_7 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_7 != null) {
                                                    this.zzjh().setTransactionSuccessful();
                                                    this.zzjh().endTransaction();
                                                    return 0;
                                                } else {
                                                    android.database.sqlite.SQLiteException v3_8 = v2_7.zzasp;
                                                    Object v4_4 = new com.google.android.gms.internal.measurement.zzkr[v2_7.zzasr.size()];
                                                    v3_8.zzavi = v4_4;
                                                    Object v4_7 = this.zzacv.zzgk().zzaw(v3_8.zzth);
                                                    int v9_13 = 0;
                                                    Boolean v12_9 = 0;
                                                    Boolean v13_3 = 0;
                                                    long v14_2 = 0;
                                                    while (v9_13 < v2_7.zzasr.size()) {
                                                        String[] v44;
                                                        int v7_3 = ((com.google.android.gms.internal.measurement.zzkr) v2_7.zzasr.get(v9_13));
                                                        if (!this.zzky().zzn(v2_7.zzasp.zzth, v7_3.name)) {
                                                            com.google.android.gms.internal.measurement.zzfk v5_4 = this.zzky().zzo(v2_7.zzasp.zzth, v7_3.name);
                                                            if (v5_4 != null) {
                                                                if (v7_3.zzava == null) {
                                                                    com.google.android.gms.internal.measurement.zzet v8_4 = new com.google.android.gms.internal.measurement.zzks[0];
                                                                    v7_3.zzava = v8_4;
                                                                }
                                                                String v6_11 = v7_3.zzava;
                                                                com.google.android.gms.internal.measurement.zzet v8_5 = v6_11.length;
                                                                boolean v10_5 = 0;
                                                                long v11_3 = 0;
                                                                long v18_0 = 0;
                                                                while (v10_5 < v8_5) {
                                                                    int v32_1 = v8_5;
                                                                    com.google.android.gms.internal.measurement.zzet v8_46 = v6_11[v10_5];
                                                                    int v33_1 = v6_11;
                                                                    int v34_2 = v12_9;
                                                                    if (!"_c".equals(v8_46.name)) {
                                                                        if ("_r".equals(v8_46.name)) {
                                                                            v8_46.zzave = Long.valueOf(1);
                                                                            v18_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v8_46.zzave = Long.valueOf(1);
                                                                        v11_3 = 1;
                                                                    }
                                                                    v10_5++;
                                                                    v8_5 = v32_1;
                                                                    v6_11 = v33_1;
                                                                    v12_9 = v34_2;
                                                                }
                                                                int v34_0 = v12_9;
                                                                if ((v11_3 == 0) && (v5_4 != null)) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as conversion", this.zzacv.zzgf().zzbm(v7_3.name));
                                                                    String v6_17 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v7_3.zzava, (v7_3.zzava.length + 1)));
                                                                    com.google.android.gms.internal.measurement.zzet v8_11 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v8_11.name = "_c";
                                                                    v8_11.zzave = Long.valueOf(1);
                                                                    v6_17[(v6_17.length - 1)] = v8_11;
                                                                    v7_3.zzava = v6_17;
                                                                }
                                                                if (v18_0 == 0) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as real-time", this.zzacv.zzgf().zzbm(v7_3.name));
                                                                    String v6_23 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v7_3.zzava, (v7_3.zzava.length + 1)));
                                                                    com.google.android.gms.internal.measurement.zzet v8_17 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v8_17.name = "_r";
                                                                    v8_17.zzave = Long.valueOf(1);
                                                                    v6_23[(v6_23.length - 1)] = v8_17;
                                                                    v7_3.zzava = v6_23;
                                                                }
                                                                v44 = v9_13;
                                                                if (this.zzjh().zza(this.zzld(), v2_7.zzasp.zzth, 0, 0, 0, 0, 1).zzagx <= ((long) this.zzacv.zzgk().zzas(v2_7.zzasp.zzth))) {
                                                                    v12_9 = 1;
                                                                } else {
                                                                    String v6_31 = 0;
                                                                    while (v6_31 < v7_3.zzava.length) {
                                                                        if (!"_r".equals(v7_3.zzava[v6_31].name)) {
                                                                            v6_31++;
                                                                        } else {
                                                                            com.google.android.gms.internal.measurement.zzet v8_28 = new com.google.android.gms.internal.measurement.zzks[(v7_3.zzava.length - 1)];
                                                                            if (v6_31 > null) {
                                                                                System.arraycopy(v7_3.zzava, 0, v8_28, 0, v6_31);
                                                                            }
                                                                            if (v6_31 < v8_28.length) {
                                                                                System.arraycopy(v7_3.zzava, (v6_31 + 1), v8_28, v6_31, (v8_28.length - v6_31));
                                                                            }
                                                                            v7_3.zzava = v8_28;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_9 = v34_0;
                                                                }
                                                                if ((com.google.android.gms.internal.measurement.zzkd.zzcg(v7_3.name)) && ((v5_4 != null) && (this.zzjh().zza(this.zzld(), v2_7.zzasp.zzth, 0, 0, 1, 0, 0).zzagv > ((long) this.zzacv.zzgk().zzb(v2_7.zzasp.zzth, com.google.android.gms.internal.measurement.zzez.zzair))))) {
                                                                    this.zzacv.zzgi().zziy().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                                    com.google.android.gms.internal.measurement.zzfk v5_13 = v7_3.zzava;
                                                                    String v6_35 = v5_13.length;
                                                                    com.google.android.gms.internal.measurement.zzet v8_36 = 0;
                                                                    int v9_11 = 0;
                                                                    boolean v10_26 = 0;
                                                                    while (v8_36 < v6_35) {
                                                                        long v11_10 = v5_13[v8_36];
                                                                        if (!"_c".equals(v11_10.name)) {
                                                                            if ("_err".equals(v11_10.name)) {
                                                                                v9_11 = 1;
                                                                            }
                                                                        } else {
                                                                            v10_26 = v11_10;
                                                                        }
                                                                        v8_36++;
                                                                    }
                                                                    if ((v9_11 == 0) || (!v10_26)) {
                                                                        if (!v10_26) {
                                                                            this.zzacv.zzgi().zziv().zzg("Did not find conversion parameter. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                                        } else {
                                                                            v10_26.name = "_err";
                                                                            v10_26.zzave = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.measurement.zzfk v5_20 = v7_3.zzava;
                                                                        com.google.android.gms.internal.measurement.zzet v8_40 = new com.google.android.gms.internal.measurement.zzks[1];
                                                                        v8_40[0] = v10_26;
                                                                        v7_3.zzava = ((com.google.android.gms.internal.measurement.zzks[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v5_20, v8_40));
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzjf();
                                                                String v6_4 = v7_3.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v6_4);
                                                                com.google.android.gms.internal.measurement.zzet v8_3 = -1;
                                                                boolean v10_1 = v6_4.hashCode();
                                                                if (v10_1 == 94660) {
                                                                    if (v6_4.equals("_in")) {
                                                                        v8_3 = 0;
                                                                    }
                                                                } else {
                                                                    if (v10_1 == 95025) {
                                                                        if (v6_4.equals("_ug")) {
                                                                            v8_3 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v10_1 == 95027) {
                                                                            if (v6_4.equals("_ui")) {
                                                                                v8_3 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                String v6_8;
                                                                switch (v8_3) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v6_8 = 1;
                                                                    default:
                                                                        v6_8 = 0;
                                                                }
                                                                if (v6_8 == null) {
                                                                    v44 = v9_13;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v4_7 != null) && ("_e".equals(v7_3.name))) {
                                                                com.google.android.gms.internal.measurement.zzet v8_43;
                                                                com.google.android.gms.internal.measurement.zzfk v5_34;
                                                                String v6_40;
                                                                if (v7_3.zzava == null) {
                                                                    v5_34 = this.zzacv.zzgi().zziy();
                                                                    v6_40 = "Engagement event does not contain any parameters. appId";
                                                                    v8_43 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth);
                                                                } else {
                                                                    if (v7_3.zzava.length != 0) {
                                                                        this.zzjf();
                                                                        com.google.android.gms.internal.measurement.zzfk v5_30 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v7_3, "_et"));
                                                                        if (v5_30 != null) {
                                                                            v14_2 += v5_30.longValue();
                                                                            String v6_41 = (v13_3 + 1);
                                                                            v3_8.zzavi[v13_3] = v7_3;
                                                                            v13_3 = v6_41;
                                                                            v9_13 = (v44 + 1);
                                                                            long v11 = 1;
                                                                        } else {
                                                                            v5_34 = this.zzacv.zzgi().zziy();
                                                                            v6_40 = "Engagement event does not include duration. appId";
                                                                            v8_43 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth);
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                v5_34.zzg(v6_40, v8_43);
                                                            }
                                                        } else {
                                                            com.google.android.gms.internal.measurement.zzfk v5_49;
                                                            this.zzacv.zzgi().zziy().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth), this.zzacv.zzgf().zzbm(v7_3.name));
                                                            if (this.zzky().zzcb(v2_7.zzasp.zzth)) {
                                                                v5_49 = 1;
                                                            } else {
                                                                if (!this.zzky().zzcc(v2_7.zzasp.zzth)) {
                                                                    v5_49 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_49 == null) && (!"_err".equals(v7_3.name))) {
                                                                this.zzacv.zzgg().zza(v2_7.zzasp.zzth, 11, "_ev", v7_3.name, 0);
                                                            }
                                                            v44 = v9_13;
                                                        }
                                                    }
                                                    int v34_3 = v12_9;
                                                    if (v13_3 < v2_7.zzasr.size()) {
                                                        v3_8.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v3_8.zzavi, v13_3));
                                                    }
                                                    if (v4_7 != null) {
                                                        Object v4_12;
                                                        Object v4_9 = this.zzjh().zzh(v3_8.zzth, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.internal.measurement.zzkc;
                                                            v4_12(v3_8.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf(v14_2));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                com.google.android.gms.internal.measurement.zzfk v5_70 = new com.google.android.gms.internal.measurement.zzkc;
                                                                v5_70(v3_8.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v14_2)));
                                                                v4_12 = v5_70;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v5_73 = new com.google.android.gms.internal.measurement.zzkx();
                                                        v5_73.name = "_lte";
                                                        v5_73.zzaws = Long.valueOf(this.zzacv.zzbt().currentTimeMillis());
                                                        v5_73.zzave = ((Long) v4_12.value);
                                                        String v6_80 = 0;
                                                        while (v6_80 < v3_8.zzavj.length) {
                                                            if (!"_lte".equals(v3_8.zzavj[v6_80].name)) {
                                                                v6_80++;
                                                            } else {
                                                                v3_8.zzavj[v6_80] = v5_73;
                                                                String v6_81 = 1;
                                                            }
                                                            if (v6_81 == null) {
                                                                v3_8.zzavj = ((com.google.android.gms.internal.measurement.zzkx[]) java.util.Arrays.copyOf(v3_8.zzavj, (v3_8.zzavj.length + 1)));
                                                                v3_8.zzavj[(v2_7.zzasp.zzavj.length - 1)] = v5_73;
                                                            }
                                                            if (v14_2 > 0) {
                                                                this.zzjh().zza(v4_12);
                                                                this.zzacv.zzgi().zzjb().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_81 = 0;
                                                    }
                                                    v3_8.zzawa = this.zza(v3_8.zzth, v3_8.zzavj, v3_8.zzavi);
                                                    if (this.zzacv.zzgk().zzav(v2_7.zzasp.zzth)) {
                                                        Object v4_20 = new java.util.HashMap();
                                                        com.google.android.gms.internal.measurement.zzfk v5_84 = new com.google.android.gms.internal.measurement.zzkr[v3_8.zzavi.length];
                                                        String v6_0 = this.zzacv.zzgg().zzlo();
                                                        int v7_0 = v3_8.zzavi;
                                                        com.google.android.gms.internal.measurement.zzet v8_0 = v7_0.length;
                                                        int v9_1 = 0;
                                                        boolean v10_0 = 0;
                                                        while (v9_1 < v8_0) {
                                                            boolean v48;
                                                            Boolean v12_7;
                                                            long v63;
                                                            int v47;
                                                            long v11_14 = v7_0[v9_1];
                                                            if (!v11_14.name.equals("_ep")) {
                                                                int v7_45;
                                                                Boolean v13_20 = Long.valueOf(1);
                                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                                    v47 = v7_0;
                                                                    v48 = v8_0;
                                                                    v7_45 = 0;
                                                                } else {
                                                                    if (v13_20 != null) {
                                                                        long v14_17 = v11_14.zzava;
                                                                        Long v15_5 = v14_17.length;
                                                                        v47 = v7_0;
                                                                        int v7_35 = 0;
                                                                        while (v7_35 < v15_5) {
                                                                            v48 = v8_0;
                                                                            com.google.android.gms.internal.measurement.zzet v8_65 = v14_17[v7_35];
                                                                            if (!"_dbg".equals(v8_65.name)) {
                                                                                v7_35++;
                                                                                v8_0 = v48;
                                                                            } else {
                                                                                if (((!(v13_20 instanceof Long)) || (!v13_20.equals(v8_65.zzave))) && (((!(v13_20 instanceof String)) || (!v13_20.equals(v8_65.zzale))) && ((!(v13_20 instanceof Double)) || (!v13_20.equals(v8_65.zzasw))))) {
                                                                                } else {
                                                                                    v7_45 = 1;
                                                                                }
                                                                            }
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                int v7_46;
                                                                if (v7_45 != 0) {
                                                                    v7_46 = 1;
                                                                } else {
                                                                    v7_46 = this.zzky().zzp(v2_7.zzasp.zzth, v11_14.name);
                                                                }
                                                                int v7_56;
                                                                if (v7_46 > 0) {
                                                                    com.google.android.gms.internal.measurement.zzet v8_70 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v11_14.name));
                                                                    if (v8_70 == null) {
                                                                        v8_70 = this.zzjh().zzf(v2_7.zzasp.zzth, v11_14.name);
                                                                        if (v8_70 == null) {
                                                                            this.zzacv.zzgi().zziy().zze("Event being bundled has no eventAggregate. appId, eventName", v2_7.zzasp.zzth, v11_14.name);
                                                                            v8_70 = new com.google.android.gms.internal.measurement.zzet;
                                                                            v8_70(v2_7.zzasp.zzth, v11_14.name, 1, 1, v11_14.zzavb.longValue(), 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    Boolean v13_25;
                                                                    this.zzjf();
                                                                    Boolean v12_52 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v11_14, "_eid"));
                                                                    if (v12_52 == null) {
                                                                        v13_25 = 0;
                                                                    } else {
                                                                        v13_25 = 1;
                                                                    }
                                                                    Boolean v13_26 = Boolean.valueOf(v13_25);
                                                                    if (v7_46 != 1) {
                                                                        if (v6_0.nextInt(v7_46) != 0) {
                                                                            v63 = v6_0;
                                                                            if (Math.abs((v11_14.zzavb.longValue() - v8_70.zzahk)) < 86400000) {
                                                                                if (!v13_26.booleanValue()) {
                                                                                    v9_1++;
                                                                                    v7_0 = v47;
                                                                                    v8_0 = v48;
                                                                                    v6_0 = v63;
                                                                                } else {
                                                                                    v4_20.put(v11_14.name, v8_70.zza(v12_52, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.zzjf();
                                                                                v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_efs", Long.valueOf(1));
                                                                                this.zzjf();
                                                                                long v14_30 = ((long) v7_46);
                                                                                v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_sr", Long.valueOf(v14_30));
                                                                                String v6_134 = (v10_0 + 1);
                                                                                v5_84[v10_0] = v11_14;
                                                                                if (v13_26.booleanValue()) {
                                                                                    v8_70 = v8_70.zza(0, Long.valueOf(v14_30), Boolean.valueOf(1));
                                                                                }
                                                                                v4_20.put(v11_14.name, v8_70.zzai(v11_14.zzavb.longValue()));
                                                                                v10_0 = v6_134;
                                                                            }
                                                                        } else {
                                                                            this.zzjf();
                                                                            v63 = v6_0;
                                                                            String v6_135 = ((long) v7_46);
                                                                            v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_sr", Long.valueOf(v6_135));
                                                                            v12_7 = (v10_0 + 1);
                                                                            v5_84[v10_0] = v11_14;
                                                                            if (v13_26.booleanValue()) {
                                                                                v8_70 = v8_70.zza(0, Long.valueOf(v6_135), 0);
                                                                            }
                                                                            v4_20.put(v11_14.name, v8_70.zzai(v11_14.zzavb.longValue()));
                                                                            v10_0 = v12_7;
                                                                        }
                                                                    } else {
                                                                        v7_56 = (v10_0 + 1);
                                                                        v5_84[v10_0] = v11_14;
                                                                        if ((v13_26.booleanValue()) && ((v8_70.zzahl != null) || ((v8_70.zzahm != null) || (v8_70.zzahn != null)))) {
                                                                            v4_20.put(v11_14.name, v8_70.zza(0, 0, 0));
                                                                        }
                                                                    }
                                                                } else {
                                                                    this.zzacv.zzgi().zziy().zze("Sample rate must be positive. event, rate", v11_14.name, Integer.valueOf(v7_46));
                                                                    v7_56 = (v10_0 + 1);
                                                                    v5_84[v10_0] = v11_14;
                                                                }
                                                                v63 = v6_0;
                                                                v10_0 = v7_56;
                                                            } else {
                                                                this.zzjf();
                                                                Boolean v12_62 = ((String) com.google.android.gms.internal.measurement.zzjz.zzb(v11_14, "_en"));
                                                                Boolean v13_29 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v12_62));
                                                                if (v13_29 == null) {
                                                                    v13_29 = this.zzjh().zzf(v2_7.zzasp.zzth, v12_62);
                                                                    v4_20.put(v12_62, v13_29);
                                                                }
                                                                if (v13_29.zzahl != null) {
                                                                    v63 = v6_0;
                                                                    v47 = v7_0;
                                                                    v48 = v8_0;
                                                                } else {
                                                                    if (v13_29.zzahm.longValue() > 1) {
                                                                        this.zzjf();
                                                                        v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_sr", v13_29.zzahm);
                                                                    }
                                                                    if ((v13_29.zzahn != null) && (v13_29.zzahn.booleanValue())) {
                                                                        this.zzjf();
                                                                        v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_efs", Long.valueOf(1));
                                                                    }
                                                                    v12_7 = (v10_0 + 1);
                                                                    v5_84[v10_0] = v11_14;
                                                                    v63 = v6_0;
                                                                    v47 = v7_0;
                                                                    v48 = v8_0;
                                                                }
                                                            }
                                                        }
                                                        if (v10_0 < v3_8.zzavi.length) {
                                                            v3_8.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v5_84, v10_0));
                                                        }
                                                        Object v4_22 = v4_20.entrySet().iterator();
                                                        while (v4_22.hasNext()) {
                                                            this.zzjh().zza(((com.google.android.gms.internal.measurement.zzet) ((java.util.Map$Entry) v4_22.next()).getValue()));
                                                        }
                                                    }
                                                    v3_8.zzavl = Long.valueOf(nan);
                                                    v3_8.zzavm = Long.valueOf(-0.0);
                                                    Object v4_27 = 0;
                                                    while (v4_27 < v3_8.zzavi.length) {
                                                        com.google.android.gms.internal.measurement.zzfk v5_117 = v3_8.zzavi[v4_27];
                                                        if (v5_117.zzavb.longValue() < v3_8.zzavl.longValue()) {
                                                            v3_8.zzavl = v5_117.zzavb;
                                                        }
                                                        if (v5_117.zzavb.longValue() > v3_8.zzavm.longValue()) {
                                                            v3_8.zzavm = v5_117.zzavb;
                                                        }
                                                        v4_27++;
                                                    }
                                                    Object v4_29 = v2_7.zzasp.zzth;
                                                    com.google.android.gms.internal.measurement.zzfk v5_91 = this.zzjh().zzbf(v4_29);
                                                    if (v5_91 != null) {
                                                        if (v3_8.zzavi.length > 0) {
                                                            com.google.android.gms.internal.measurement.zzet v8_57;
                                                            String v6_94 = v5_91.zzgt();
                                                            if (v6_94 == 0) {
                                                                v8_57 = 0;
                                                            } else {
                                                                v8_57 = Long.valueOf(v6_94);
                                                            }
                                                            v3_8.zzavo = v8_57;
                                                            com.google.android.gms.internal.measurement.zzet v8_58 = v5_91.zzgs();
                                                            if (v8_58 != 0) {
                                                                v6_94 = v8_58;
                                                            } else {
                                                            }
                                                            String v6_95;
                                                            if (v6_94 == 0) {
                                                                v6_95 = 0;
                                                            } else {
                                                                v6_95 = Long.valueOf(v6_94);
                                                            }
                                                            v3_8.zzavn = v6_95;
                                                            v5_91.zzhb();
                                                            v3_8.zzavy = Integer.valueOf(((int) v5_91.zzgy()));
                                                            v5_91.zzr(v3_8.zzavl.longValue());
                                                            v5_91.zzs(v3_8.zzavm.longValue());
                                                            v3_8.zzafy = v5_91.zzhj();
                                                            this.zzjh().zza(v5_91);
                                                        }
                                                    } else {
                                                        this.zzacv.zzgi().zziv().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                    }
                                                    if (v3_8.zzavi.length > 0) {
                                                        com.google.android.gms.internal.measurement.zzfk v5_100;
                                                        this.zzacv.zzgl();
                                                        com.google.android.gms.internal.measurement.zzfk v5_99 = this.zzky().zzbx(v2_7.zzasp.zzth);
                                                        if (v5_99 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v2_7.zzasp.zzafa)) {
                                                                this.zzacv.zzgi().zziy().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                            } else {
                                                                v5_100 = Long.valueOf(-1);
                                                                v3_8.zzawf = v5_100;
                                                            }
                                                        } else {
                                                            if (v5_99.zzaum != null) {
                                                                v5_100 = v5_99.zzaum;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzjh().zza(v3_8, v34_3);
                                                    }
                                                    android.database.sqlite.SQLiteException v3_12 = this.zzjh();
                                                    com.google.android.gms.internal.measurement.zzfk v2_8 = v2_7.zzasq;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_8);
                                                    v3_12.zzab();
                                                    v3_12.zzch();
                                                    com.google.android.gms.internal.measurement.zzfk v5_110 = new StringBuilder("rowid in (");
                                                    String v6_111 = 0;
                                                    while (v6_111 < v2_8.size()) {
                                                        if (v6_111 != null) {
                                                            v5_110.append(",");
                                                        }
                                                        v5_110.append(((Long) v2_8.get(v6_111)).longValue());
                                                        v6_111++;
                                                    }
                                                    v5_110.append(")");
                                                    com.google.android.gms.internal.measurement.zzfk v5_112 = v3_12.getWritableDatabase().delete("raw_events", v5_110.toString(), 0);
                                                    if (v5_112 != v2_8.size()) {
                                                        v3_12.zzgi().zziv().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_112), Integer.valueOf(v2_8.size()));
                                                    }
                                                    com.google.android.gms.internal.measurement.zzfk v2_11 = this.zzjh();
                                                    android.database.sqlite.SQLiteException v3_15 = v2_11.getWritableDatabase();
                                                    try {
                                                        String v6_117 = new String[2];
                                                        v6_117[0] = v4_29;
                                                        v6_117[1] = v4_29;
                                                        v3_15.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_117);
                                                    } catch (android.database.sqlite.SQLiteException v0_10) {
                                                        v2_11.zzgi().zziv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v4_29), v0_10);
                                                    }
                                                    this.zzjh().setTransactionSuccessful();
                                                    this.zzjh().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v9_0.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                        }
                                        if (v15_1.moveToNext()) {
                                            v4_31.zzgi().zziy().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                        }
                                        String[] v16_2;
                                        com.google.android.gms.internal.measurement.zzfk v5_56;
                                        v15_1.close();
                                        v2_7.zzb(v13_6);
                                        if (v5_123 == -1) {
                                            v5_56 = "app_id = ? and metadata_fingerprint = ?";
                                            int v9_16 = new String[2];
                                            v9_16[0] = v3_0;
                                            v9_16[1] = v22;
                                            v16_2 = v9_16;
                                        } else {
                                            Boolean v12_22 = new String[3];
                                            v12_22[0] = v3_0;
                                            v12_22[1] = v22;
                                            v12_22[2] = String.valueOf(v5_123);
                                            v5_56 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_2 = v12_22;
                                        }
                                        v9_0 = v15_1;
                                        com.google.android.gms.internal.measurement.zzfk v5_58 = v25.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_56, v16_2, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_58.moveToFirst()) {
                                                do {
                                                    Boolean v12_26 = v5_58.getLong(0);
                                                    int v9_20 = v5_58.getBlob(3);
                                                    int v9_21 = com.google.android.gms.internal.measurement.zzaca.zza(v9_20, 0, v9_20.length);
                                                    long v14_9 = new com.google.android.gms.internal.measurement.zzkr();
                                                    v14_9.zzb(v9_21);
                                                    v14_9.name = v5_58.getString(1);
                                                    v14_9.zzavb = Long.valueOf(v5_58.getLong(2));
                                                    if (v2_7.zza(v12_26, v14_9)) {
                                                    } else {
                                                        if (v5_58 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_58.moveToNext());
                                                if (v5_58 == null) {
                                                }
                                            } else {
                                                v4_31.zzgi().zziy().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                                if (v5_58 == null) {
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_8) {
                                            com.google.android.gms.internal.measurement.zzfk v2_0 = v0_8;
                                            int v21 = v5_58;
                                            if (v21 != 0) {
                                                v21.close();
                                            }
                                            throw v2_0;
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            Boolean v12_5 = v3_0;
                                            v9_0 = v5_58;
                                            android.database.sqlite.SQLiteException v3_3 = v0_1;
                                            v4_31.zzgi().zziv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_5), v3_3);
                                            if (v9_0 == 0) {
                                            }
                                        }
                                        v5_58.close();
                                    } else {
                                        v4_31.zzgi().zziv().zzg("Raw event metadata record is missing. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                        if (v15_1 == null) {
                                        } else {
                                            v15_1.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_6) {
                                    v9_0 = v15_1;
                                    v2_0 = v0_6;
                                    v21 = v9_0;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v9_0 = v15_1;
                                } catch (android.database.sqlite.SQLiteException v0_9) {
                                    v2_0 = v0_9;
                                    v21 = v15_1;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v12_5 = v3_0;
                                    v9_0 = v15_1;
                                }
                                v12_5 = v3_0;
                            } catch (android.database.sqlite.SQLiteException v0_4) {
                                v2_0 = v0_4;
                                v21 = v23;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v12_5 = v3_0;
                                v9_0 = v23;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                            }
                        }
                    } else {
                        Boolean v13_18;
                        Boolean v12_39 = v5_123 cmp -1;
                        try {
                            if (v12_39 == null) {
                                v13_18 = new String[1];
                                v13_18[0] = String.valueOf(p66);
                            } else {
                                v13_18 = new String[2];
                                v13_18[0] = String.valueOf(v5_123);
                                v13_18[1] = String.valueOf(p66);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            v9_0 = 0;
                            v12_5 = 0;
                        }
                        Boolean v12_43;
                        if (v12_39 == null) {
                            v12_43 = "";
                        } else {
                            v12_43 = "rowid <= ? and ";
                        }
                        android.database.sqlite.SQLiteException v3_18 = new StringBuilder((String.valueOf(v12_43).length() + 148));
                        v3_18.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_18.append(v12_43);
                        v3_18.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_2.rawQuery(v3_18.toString(), v13_18);
                        if (v3_0.moveToFirst()) {
                            v12_5 = v3_0.getString(0);
                            try {
                                Boolean v13_1 = v3_0.getString(1);
                                v3_0.close();
                                v23 = v3_0;
                                v3_0 = v12_5;
                                v22 = v13_1;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v9_0 = v3_0;
                            }
                        } else {
                            if (v3_0 == null) {
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v2_0 = v0_2;
                    v21 = v3_0;
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v9_0 = v3_0;
                    v12_5 = 0;
                }
                v3_0.close();
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v2_0 = v0_0;
                v21 = 0;
            } catch (android.database.sqlite.SQLiteException v0_11) {
                v3_3 = v0_11;
                v9_0 = 0;
                v12_5 = 0;
            } catch (android.database.sqlite.SQLiteException v0_6) {
            }
        } catch (android.database.sqlite.SQLiteException v0_3) {
            com.google.android.gms.internal.measurement.zzfk v2_1 = v0_3;
            this.zzjh().endTransaction();
            throw v2_1;
        }
    }

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


    private final boolean zzd(String p65, long p66)
    {
        this.zzjh().beginTransaction();
        try {
            android.database.sqlite.SQLiteException v3_0 = 0;
            com.google.android.gms.internal.measurement.zzfk v2_7 = new com.google.android.gms.internal.measurement.zzjt$zza(this, 0);
            Object v4_31 = this.zzjh();
            com.google.android.gms.internal.measurement.zzfk v5_123 = this.zzasl;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_7);
            v4_31.zzab();
            v4_31.zzch();
            try {
                int v23;
                String v22;
                Long v15_2 = v4_31.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        Boolean v12_30;
                        android.database.sqlite.SQLiteException v3_2 = v5_123 cmp -1;
                        if (v3_2 == null) {
                            v12_30 = new String[] {0});
                        } else {
                            v12_30 = new String[2];
                            v12_30[0] = 0;
                            v12_30[1] = String.valueOf(v5_123);
                        }
                        android.database.sqlite.SQLiteException v3_9;
                        if (v3_2 == null) {
                            v3_9 = "";
                        } else {
                            v3_9 = " and rowid <= ?";
                        }
                        long v14_12 = new StringBuilder((String.valueOf(v3_9).length() + 84));
                        v14_12.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_12.append(v3_9);
                        v14_12.append(" order by rowid limit 1;");
                        v3_0 = v15_2.rawQuery(v14_12.toString(), v12_30);
                        if (v3_0.moveToFirst()) {
                            Boolean v13_17 = v3_0.getString(0);
                            v3_0.close();
                            v23 = v3_0;
                            v22 = v13_17;
                            v3_0 = 0;
                            try {
                                Boolean v12_11 = new String[2];
                                v12_11[0] = v3_0;
                                v12_11[1] = v22;
                                android.database.sqlite.SQLiteDatabase v25 = v15_2;
                                Long v15_1 = v15_2.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_11, 0, 0, "rowid", "2");
                                try {
                                    if (v15_1.moveToFirst()) {
                                        Boolean v12_16 = v15_1.getBlob(0);
                                        Boolean v12_17 = com.google.android.gms.internal.measurement.zzaca.zza(v12_16, 0, v12_16.length);
                                        Boolean v13_6 = new com.google.android.gms.internal.measurement.zzku();
                                        try {
                                            v13_6.zzb(v12_17);
                                        } catch (android.database.sqlite.SQLiteException v0_5) {
                                            int v9_0 = v15_1;
                                            v4_31.zzgi().zziv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0), v0_5);
                                            if (v9_0 == 0) {
                                                android.database.sqlite.SQLiteException v3_7;
                                                if (v2_7.zzasr == null) {
                                                    v3_7 = 1;
                                                } else {
                                                    if (!v2_7.zzasr.isEmpty()) {
                                                        v3_7 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_7 != null) {
                                                    this.zzjh().setTransactionSuccessful();
                                                    this.zzjh().endTransaction();
                                                    return 0;
                                                } else {
                                                    android.database.sqlite.SQLiteException v3_8 = v2_7.zzasp;
                                                    Object v4_4 = new com.google.android.gms.internal.measurement.zzkr[v2_7.zzasr.size()];
                                                    v3_8.zzavi = v4_4;
                                                    Object v4_7 = this.zzacv.zzgk().zzaw(v3_8.zzth);
                                                    int v9_13 = 0;
                                                    Boolean v12_9 = 0;
                                                    Boolean v13_3 = 0;
                                                    long v14_2 = 0;
                                                    while (v9_13 < v2_7.zzasr.size()) {
                                                        String[] v44;
                                                        int v7_3 = ((com.google.android.gms.internal.measurement.zzkr) v2_7.zzasr.get(v9_13));
                                                        if (!this.zzky().zzn(v2_7.zzasp.zzth, v7_3.name)) {
                                                            com.google.android.gms.internal.measurement.zzfk v5_4 = this.zzky().zzo(v2_7.zzasp.zzth, v7_3.name);
                                                            if (v5_4 != null) {
                                                                if (v7_3.zzava == null) {
                                                                    com.google.android.gms.internal.measurement.zzet v8_4 = new com.google.android.gms.internal.measurement.zzks[0];
                                                                    v7_3.zzava = v8_4;
                                                                }
                                                                String v6_11 = v7_3.zzava;
                                                                com.google.android.gms.internal.measurement.zzet v8_5 = v6_11.length;
                                                                boolean v10_5 = 0;
                                                                long v11_3 = 0;
                                                                long v18_0 = 0;
                                                                while (v10_5 < v8_5) {
                                                                    int v32_1 = v8_5;
                                                                    com.google.android.gms.internal.measurement.zzet v8_46 = v6_11[v10_5];
                                                                    int v33_1 = v6_11;
                                                                    int v34_2 = v12_9;
                                                                    if (!"_c".equals(v8_46.name)) {
                                                                        if ("_r".equals(v8_46.name)) {
                                                                            v8_46.zzave = Long.valueOf(1);
                                                                            v18_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v8_46.zzave = Long.valueOf(1);
                                                                        v11_3 = 1;
                                                                    }
                                                                    v10_5++;
                                                                    v8_5 = v32_1;
                                                                    v6_11 = v33_1;
                                                                    v12_9 = v34_2;
                                                                }
                                                                int v34_0 = v12_9;
                                                                if ((v11_3 == 0) && (v5_4 != null)) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as conversion", this.zzacv.zzgf().zzbm(v7_3.name));
                                                                    String v6_17 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v7_3.zzava, (v7_3.zzava.length + 1)));
                                                                    com.google.android.gms.internal.measurement.zzet v8_11 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v8_11.name = "_c";
                                                                    v8_11.zzave = Long.valueOf(1);
                                                                    v6_17[(v6_17.length - 1)] = v8_11;
                                                                    v7_3.zzava = v6_17;
                                                                }
                                                                if (v18_0 == 0) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as real-time", this.zzacv.zzgf().zzbm(v7_3.name));
                                                                    String v6_23 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v7_3.zzava, (v7_3.zzava.length + 1)));
                                                                    com.google.android.gms.internal.measurement.zzet v8_17 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v8_17.name = "_r";
                                                                    v8_17.zzave = Long.valueOf(1);
                                                                    v6_23[(v6_23.length - 1)] = v8_17;
                                                                    v7_3.zzava = v6_23;
                                                                }
                                                                v44 = v9_13;
                                                                if (this.zzjh().zza(this.zzld(), v2_7.zzasp.zzth, 0, 0, 0, 0, 1).zzagx <= ((long) this.zzacv.zzgk().zzas(v2_7.zzasp.zzth))) {
                                                                    v12_9 = 1;
                                                                } else {
                                                                    String v6_31 = 0;
                                                                    while (v6_31 < v7_3.zzava.length) {
                                                                        if (!"_r".equals(v7_3.zzava[v6_31].name)) {
                                                                            v6_31++;
                                                                        } else {
                                                                            com.google.android.gms.internal.measurement.zzet v8_28 = new com.google.android.gms.internal.measurement.zzks[(v7_3.zzava.length - 1)];
                                                                            if (v6_31 > null) {
                                                                                System.arraycopy(v7_3.zzava, 0, v8_28, 0, v6_31);
                                                                            }
                                                                            if (v6_31 < v8_28.length) {
                                                                                System.arraycopy(v7_3.zzava, (v6_31 + 1), v8_28, v6_31, (v8_28.length - v6_31));
                                                                            }
                                                                            v7_3.zzava = v8_28;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_9 = v34_0;
                                                                }
                                                                if ((com.google.android.gms.internal.measurement.zzkd.zzcg(v7_3.name)) && ((v5_4 != null) && (this.zzjh().zza(this.zzld(), v2_7.zzasp.zzth, 0, 0, 1, 0, 0).zzagv > ((long) this.zzacv.zzgk().zzb(v2_7.zzasp.zzth, com.google.android.gms.internal.measurement.zzez.zzair))))) {
                                                                    this.zzacv.zzgi().zziy().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                                    com.google.android.gms.internal.measurement.zzfk v5_13 = v7_3.zzava;
                                                                    String v6_35 = v5_13.length;
                                                                    com.google.android.gms.internal.measurement.zzet v8_36 = 0;
                                                                    int v9_11 = 0;
                                                                    boolean v10_26 = 0;
                                                                    while (v8_36 < v6_35) {
                                                                        long v11_10 = v5_13[v8_36];
                                                                        if (!"_c".equals(v11_10.name)) {
                                                                            if ("_err".equals(v11_10.name)) {
                                                                                v9_11 = 1;
                                                                            }
                                                                        } else {
                                                                            v10_26 = v11_10;
                                                                        }
                                                                        v8_36++;
                                                                    }
                                                                    if ((v9_11 == 0) || (!v10_26)) {
                                                                        if (!v10_26) {
                                                                            this.zzacv.zzgi().zziv().zzg("Did not find conversion parameter. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                                        } else {
                                                                            v10_26.name = "_err";
                                                                            v10_26.zzave = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.measurement.zzfk v5_20 = v7_3.zzava;
                                                                        com.google.android.gms.internal.measurement.zzet v8_40 = new com.google.android.gms.internal.measurement.zzks[1];
                                                                        v8_40[0] = v10_26;
                                                                        v7_3.zzava = ((com.google.android.gms.internal.measurement.zzks[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v5_20, v8_40));
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzjf();
                                                                String v6_4 = v7_3.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v6_4);
                                                                com.google.android.gms.internal.measurement.zzet v8_3 = -1;
                                                                boolean v10_1 = v6_4.hashCode();
                                                                if (v10_1 == 94660) {
                                                                    if (v6_4.equals("_in")) {
                                                                        v8_3 = 0;
                                                                    }
                                                                } else {
                                                                    if (v10_1 == 95025) {
                                                                        if (v6_4.equals("_ug")) {
                                                                            v8_3 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v10_1 == 95027) {
                                                                            if (v6_4.equals("_ui")) {
                                                                                v8_3 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                String v6_8;
                                                                switch (v8_3) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v6_8 = 1;
                                                                    default:
                                                                        v6_8 = 0;
                                                                }
                                                                if (v6_8 == null) {
                                                                    v44 = v9_13;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v4_7 != null) && ("_e".equals(v7_3.name))) {
                                                                String v6_40;
                                                                com.google.android.gms.internal.measurement.zzfk v5_34;
                                                                com.google.android.gms.internal.measurement.zzet v8_43;
                                                                if (v7_3.zzava == null) {
                                                                    v5_34 = this.zzacv.zzgi().zziy();
                                                                    v6_40 = "Engagement event does not contain any parameters. appId";
                                                                    v8_43 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth);
                                                                } else {
                                                                    if (v7_3.zzava.length != 0) {
                                                                        this.zzjf();
                                                                        com.google.android.gms.internal.measurement.zzfk v5_30 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v7_3, "_et"));
                                                                        if (v5_30 != null) {
                                                                            v14_2 += v5_30.longValue();
                                                                            String v6_41 = (v13_3 + 1);
                                                                            v3_8.zzavi[v13_3] = v7_3;
                                                                            v13_3 = v6_41;
                                                                            v9_13 = (v44 + 1);
                                                                            long v11 = 1;
                                                                        } else {
                                                                            v5_34 = this.zzacv.zzgi().zziy();
                                                                            v6_40 = "Engagement event does not include duration. appId";
                                                                            v8_43 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth);
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                v5_34.zzg(v6_40, v8_43);
                                                            }
                                                        } else {
                                                            com.google.android.gms.internal.measurement.zzfk v5_49;
                                                            this.zzacv.zzgi().zziy().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth), this.zzacv.zzgf().zzbm(v7_3.name));
                                                            if (this.zzky().zzcb(v2_7.zzasp.zzth)) {
                                                                v5_49 = 1;
                                                            } else {
                                                                if (!this.zzky().zzcc(v2_7.zzasp.zzth)) {
                                                                    v5_49 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_49 == null) && (!"_err".equals(v7_3.name))) {
                                                                this.zzacv.zzgg().zza(v2_7.zzasp.zzth, 11, "_ev", v7_3.name, 0);
                                                            }
                                                            v44 = v9_13;
                                                        }
                                                    }
                                                    int v34_3 = v12_9;
                                                    if (v13_3 < v2_7.zzasr.size()) {
                                                        v3_8.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v3_8.zzavi, v13_3));
                                                    }
                                                    if (v4_7 != null) {
                                                        Object v4_12;
                                                        Object v4_9 = this.zzjh().zzh(v3_8.zzth, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.internal.measurement.zzkc;
                                                            v4_12(v3_8.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf(v14_2));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                com.google.android.gms.internal.measurement.zzfk v5_70 = new com.google.android.gms.internal.measurement.zzkc;
                                                                v5_70(v3_8.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v14_2)));
                                                                v4_12 = v5_70;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v5_73 = new com.google.android.gms.internal.measurement.zzkx();
                                                        v5_73.name = "_lte";
                                                        v5_73.zzaws = Long.valueOf(this.zzacv.zzbt().currentTimeMillis());
                                                        v5_73.zzave = ((Long) v4_12.value);
                                                        String v6_80 = 0;
                                                        while (v6_80 < v3_8.zzavj.length) {
                                                            if (!"_lte".equals(v3_8.zzavj[v6_80].name)) {
                                                                v6_80++;
                                                            } else {
                                                                v3_8.zzavj[v6_80] = v5_73;
                                                                String v6_81 = 1;
                                                            }
                                                            if (v6_81 == null) {
                                                                v3_8.zzavj = ((com.google.android.gms.internal.measurement.zzkx[]) java.util.Arrays.copyOf(v3_8.zzavj, (v3_8.zzavj.length + 1)));
                                                                v3_8.zzavj[(v2_7.zzasp.zzavj.length - 1)] = v5_73;
                                                            }
                                                            if (v14_2 > 0) {
                                                                this.zzjh().zza(v4_12);
                                                                this.zzacv.zzgi().zzjb().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_81 = 0;
                                                    }
                                                    v3_8.zzawa = this.zza(v3_8.zzth, v3_8.zzavj, v3_8.zzavi);
                                                    if (this.zzacv.zzgk().zzav(v2_7.zzasp.zzth)) {
                                                        Object v4_20 = new java.util.HashMap();
                                                        com.google.android.gms.internal.measurement.zzfk v5_84 = new com.google.android.gms.internal.measurement.zzkr[v3_8.zzavi.length];
                                                        String v6_0 = this.zzacv.zzgg().zzlo();
                                                        int v7_0 = v3_8.zzavi;
                                                        com.google.android.gms.internal.measurement.zzet v8_0 = v7_0.length;
                                                        int v9_1 = 0;
                                                        boolean v10_0 = 0;
                                                        while (v9_1 < v8_0) {
                                                            boolean v48;
                                                            Boolean v12_7;
                                                            long v63;
                                                            int v47;
                                                            long v11_14 = v7_0[v9_1];
                                                            if (!v11_14.name.equals("_ep")) {
                                                                int v7_45;
                                                                Boolean v13_20 = Long.valueOf(1);
                                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                                    v47 = v7_0;
                                                                    v48 = v8_0;
                                                                    v7_45 = 0;
                                                                } else {
                                                                    if (v13_20 != null) {
                                                                        long v14_17 = v11_14.zzava;
                                                                        Long v15_5 = v14_17.length;
                                                                        v47 = v7_0;
                                                                        int v7_35 = 0;
                                                                        while (v7_35 < v15_5) {
                                                                            v48 = v8_0;
                                                                            com.google.android.gms.internal.measurement.zzet v8_65 = v14_17[v7_35];
                                                                            if (!"_dbg".equals(v8_65.name)) {
                                                                                v7_35++;
                                                                                v8_0 = v48;
                                                                            } else {
                                                                                if (((!(v13_20 instanceof Long)) || (!v13_20.equals(v8_65.zzave))) && (((!(v13_20 instanceof String)) || (!v13_20.equals(v8_65.zzale))) && ((!(v13_20 instanceof Double)) || (!v13_20.equals(v8_65.zzasw))))) {
                                                                                } else {
                                                                                    v7_45 = 1;
                                                                                }
                                                                            }
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                int v7_46;
                                                                if (v7_45 != 0) {
                                                                    v7_46 = 1;
                                                                } else {
                                                                    v7_46 = this.zzky().zzp(v2_7.zzasp.zzth, v11_14.name);
                                                                }
                                                                int v7_56;
                                                                if (v7_46 > 0) {
                                                                    com.google.android.gms.internal.measurement.zzet v8_70 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v11_14.name));
                                                                    if (v8_70 == null) {
                                                                        v8_70 = this.zzjh().zzf(v2_7.zzasp.zzth, v11_14.name);
                                                                        if (v8_70 == null) {
                                                                            this.zzacv.zzgi().zziy().zze("Event being bundled has no eventAggregate. appId, eventName", v2_7.zzasp.zzth, v11_14.name);
                                                                            v8_70 = new com.google.android.gms.internal.measurement.zzet;
                                                                            v8_70(v2_7.zzasp.zzth, v11_14.name, 1, 1, v11_14.zzavb.longValue(), 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    Boolean v13_25;
                                                                    this.zzjf();
                                                                    Boolean v12_52 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v11_14, "_eid"));
                                                                    if (v12_52 == null) {
                                                                        v13_25 = 0;
                                                                    } else {
                                                                        v13_25 = 1;
                                                                    }
                                                                    Boolean v13_26 = Boolean.valueOf(v13_25);
                                                                    if (v7_46 != 1) {
                                                                        if (v6_0.nextInt(v7_46) != 0) {
                                                                            v63 = v6_0;
                                                                            if (Math.abs((v11_14.zzavb.longValue() - v8_70.zzahk)) < 86400000) {
                                                                                if (!v13_26.booleanValue()) {
                                                                                    v9_1++;
                                                                                    v7_0 = v47;
                                                                                    v8_0 = v48;
                                                                                    v6_0 = v63;
                                                                                } else {
                                                                                    v4_20.put(v11_14.name, v8_70.zza(v12_52, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.zzjf();
                                                                                v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_efs", Long.valueOf(1));
                                                                                this.zzjf();
                                                                                long v14_30 = ((long) v7_46);
                                                                                v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_sr", Long.valueOf(v14_30));
                                                                                String v6_134 = (v10_0 + 1);
                                                                                v5_84[v10_0] = v11_14;
                                                                                if (v13_26.booleanValue()) {
                                                                                    v8_70 = v8_70.zza(0, Long.valueOf(v14_30), Boolean.valueOf(1));
                                                                                }
                                                                                v4_20.put(v11_14.name, v8_70.zzai(v11_14.zzavb.longValue()));
                                                                                v10_0 = v6_134;
                                                                            }
                                                                        } else {
                                                                            this.zzjf();
                                                                            v63 = v6_0;
                                                                            String v6_135 = ((long) v7_46);
                                                                            v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_sr", Long.valueOf(v6_135));
                                                                            v12_7 = (v10_0 + 1);
                                                                            v5_84[v10_0] = v11_14;
                                                                            if (v13_26.booleanValue()) {
                                                                                v8_70 = v8_70.zza(0, Long.valueOf(v6_135), 0);
                                                                            }
                                                                            v4_20.put(v11_14.name, v8_70.zzai(v11_14.zzavb.longValue()));
                                                                            v10_0 = v12_7;
                                                                        }
                                                                    } else {
                                                                        v7_56 = (v10_0 + 1);
                                                                        v5_84[v10_0] = v11_14;
                                                                        if ((v13_26.booleanValue()) && ((v8_70.zzahl != null) || ((v8_70.zzahm != null) || (v8_70.zzahn != null)))) {
                                                                            v4_20.put(v11_14.name, v8_70.zza(0, 0, 0));
                                                                        }
                                                                    }
                                                                } else {
                                                                    this.zzacv.zzgi().zziy().zze("Sample rate must be positive. event, rate", v11_14.name, Integer.valueOf(v7_46));
                                                                    v7_56 = (v10_0 + 1);
                                                                    v5_84[v10_0] = v11_14;
                                                                }
                                                                v63 = v6_0;
                                                                v10_0 = v7_56;
                                                            } else {
                                                                this.zzjf();
                                                                Boolean v12_62 = ((String) com.google.android.gms.internal.measurement.zzjz.zzb(v11_14, "_en"));
                                                                Boolean v13_29 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v12_62));
                                                                if (v13_29 == null) {
                                                                    v13_29 = this.zzjh().zzf(v2_7.zzasp.zzth, v12_62);
                                                                    v4_20.put(v12_62, v13_29);
                                                                }
                                                                if (v13_29.zzahl != null) {
                                                                    v63 = v6_0;
                                                                    v47 = v7_0;
                                                                    v48 = v8_0;
                                                                } else {
                                                                    if (v13_29.zzahm.longValue() > 1) {
                                                                        this.zzjf();
                                                                        v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_sr", v13_29.zzahm);
                                                                    }
                                                                    if ((v13_29.zzahn != null) && (v13_29.zzahn.booleanValue())) {
                                                                        this.zzjf();
                                                                        v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_efs", Long.valueOf(1));
                                                                    }
                                                                    v12_7 = (v10_0 + 1);
                                                                    v5_84[v10_0] = v11_14;
                                                                    v63 = v6_0;
                                                                    v47 = v7_0;
                                                                    v48 = v8_0;
                                                                }
                                                            }
                                                        }
                                                        if (v10_0 < v3_8.zzavi.length) {
                                                            v3_8.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v5_84, v10_0));
                                                        }
                                                        Object v4_22 = v4_20.entrySet().iterator();
                                                        while (v4_22.hasNext()) {
                                                            this.zzjh().zza(((com.google.android.gms.internal.measurement.zzet) ((java.util.Map$Entry) v4_22.next()).getValue()));
                                                        }
                                                    }
                                                    v3_8.zzavl = Long.valueOf(nan);
                                                    v3_8.zzavm = Long.valueOf(-0.0);
                                                    Object v4_27 = 0;
                                                    while (v4_27 < v3_8.zzavi.length) {
                                                        com.google.android.gms.internal.measurement.zzfk v5_117 = v3_8.zzavi[v4_27];
                                                        if (v5_117.zzavb.longValue() < v3_8.zzavl.longValue()) {
                                                            v3_8.zzavl = v5_117.zzavb;
                                                        }
                                                        if (v5_117.zzavb.longValue() > v3_8.zzavm.longValue()) {
                                                            v3_8.zzavm = v5_117.zzavb;
                                                        }
                                                        v4_27++;
                                                    }
                                                    Object v4_29 = v2_7.zzasp.zzth;
                                                    com.google.android.gms.internal.measurement.zzfk v5_91 = this.zzjh().zzbf(v4_29);
                                                    if (v5_91 != null) {
                                                        if (v3_8.zzavi.length > 0) {
                                                            com.google.android.gms.internal.measurement.zzet v8_57;
                                                            String v6_94 = v5_91.zzgt();
                                                            if (v6_94 == 0) {
                                                                v8_57 = 0;
                                                            } else {
                                                                v8_57 = Long.valueOf(v6_94);
                                                            }
                                                            v3_8.zzavo = v8_57;
                                                            com.google.android.gms.internal.measurement.zzet v8_58 = v5_91.zzgs();
                                                            if (v8_58 != 0) {
                                                                v6_94 = v8_58;
                                                            } else {
                                                            }
                                                            String v6_95;
                                                            if (v6_94 == 0) {
                                                                v6_95 = 0;
                                                            } else {
                                                                v6_95 = Long.valueOf(v6_94);
                                                            }
                                                            v3_8.zzavn = v6_95;
                                                            v5_91.zzhb();
                                                            v3_8.zzavy = Integer.valueOf(((int) v5_91.zzgy()));
                                                            v5_91.zzr(v3_8.zzavl.longValue());
                                                            v5_91.zzs(v3_8.zzavm.longValue());
                                                            v3_8.zzafy = v5_91.zzhj();
                                                            this.zzjh().zza(v5_91);
                                                        }
                                                    } else {
                                                        this.zzacv.zzgi().zziv().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                    }
                                                    if (v3_8.zzavi.length > 0) {
                                                        com.google.android.gms.internal.measurement.zzfk v5_100;
                                                        this.zzacv.zzgl();
                                                        com.google.android.gms.internal.measurement.zzfk v5_99 = this.zzky().zzbx(v2_7.zzasp.zzth);
                                                        if (v5_99 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v2_7.zzasp.zzafa)) {
                                                                this.zzacv.zzgi().zziy().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                            } else {
                                                                v5_100 = Long.valueOf(-1);
                                                                v3_8.zzawf = v5_100;
                                                            }
                                                        } else {
                                                            if (v5_99.zzaum != null) {
                                                                v5_100 = v5_99.zzaum;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzjh().zza(v3_8, v34_3);
                                                    }
                                                    android.database.sqlite.SQLiteException v3_12 = this.zzjh();
                                                    com.google.android.gms.internal.measurement.zzfk v2_8 = v2_7.zzasq;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_8);
                                                    v3_12.zzab();
                                                    v3_12.zzch();
                                                    com.google.android.gms.internal.measurement.zzfk v5_110 = new StringBuilder("rowid in (");
                                                    String v6_111 = 0;
                                                    while (v6_111 < v2_8.size()) {
                                                        if (v6_111 != null) {
                                                            v5_110.append(",");
                                                        }
                                                        v5_110.append(((Long) v2_8.get(v6_111)).longValue());
                                                        v6_111++;
                                                    }
                                                    v5_110.append(")");
                                                    com.google.android.gms.internal.measurement.zzfk v5_112 = v3_12.getWritableDatabase().delete("raw_events", v5_110.toString(), 0);
                                                    if (v5_112 != v2_8.size()) {
                                                        v3_12.zzgi().zziv().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_112), Integer.valueOf(v2_8.size()));
                                                    }
                                                    com.google.android.gms.internal.measurement.zzfk v2_11 = this.zzjh();
                                                    android.database.sqlite.SQLiteException v3_15 = v2_11.getWritableDatabase();
                                                    try {
                                                        String v6_117 = new String[2];
                                                        v6_117[0] = v4_29;
                                                        v6_117[1] = v4_29;
                                                        v3_15.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_117);
                                                    } catch (android.database.sqlite.SQLiteException v0_10) {
                                                        v2_11.zzgi().zziv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v4_29), v0_10);
                                                    }
                                                    this.zzjh().setTransactionSuccessful();
                                                    this.zzjh().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v9_0.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                        }
                                        if (v15_1.moveToNext()) {
                                            v4_31.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_56;
                                        String[] v16_2;
                                        v15_1.close();
                                        v2_7.zzb(v13_6);
                                        if (v5_123 == -1) {
                                            v5_56 = "app_id = ? and metadata_fingerprint = ?";
                                            int v9_16 = new String[2];
                                            v9_16[0] = v3_0;
                                            v9_16[1] = v22;
                                            v16_2 = v9_16;
                                        } else {
                                            Boolean v12_22 = new String[3];
                                            v12_22[0] = v3_0;
                                            v12_22[1] = v22;
                                            v12_22[2] = String.valueOf(v5_123);
                                            v5_56 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_2 = v12_22;
                                        }
                                        v9_0 = v15_1;
                                        com.google.android.gms.internal.measurement.zzfk v5_58 = v25.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_56, v16_2, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_58.moveToFirst()) {
                                                do {
                                                    Boolean v12_26 = v5_58.getLong(0);
                                                    int v9_20 = v5_58.getBlob(3);
                                                    int v9_21 = com.google.android.gms.internal.measurement.zzaca.zza(v9_20, 0, v9_20.length);
                                                    long v14_9 = new com.google.android.gms.internal.measurement.zzkr();
                                                    v14_9.zzb(v9_21);
                                                    v14_9.name = v5_58.getString(1);
                                                    v14_9.zzavb = Long.valueOf(v5_58.getLong(2));
                                                    if (v2_7.zza(v12_26, v14_9)) {
                                                    } else {
                                                        if (v5_58 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_58.moveToNext());
                                                if (v5_58 == null) {
                                                }
                                            } else {
                                                v4_31.zzgi().zziy().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                                if (v5_58 == null) {
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_8) {
                                            com.google.android.gms.internal.measurement.zzfk v2_0 = v0_8;
                                            int v21 = v5_58;
                                            if (v21 != 0) {
                                                v21.close();
                                            }
                                            throw v2_0;
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            Boolean v12_5 = v3_0;
                                            v9_0 = v5_58;
                                            android.database.sqlite.SQLiteException v3_3 = v0_1;
                                            v4_31.zzgi().zziv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_5), v3_3);
                                            if (v9_0 == 0) {
                                            }
                                        }
                                        v5_58.close();
                                    } else {
                                        v4_31.zzgi().zziv().zzg("Raw event metadata record is missing. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                        if (v15_1 == null) {
                                        } else {
                                            v15_1.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_6) {
                                    v9_0 = v15_1;
                                    v2_0 = v0_6;
                                    v21 = v9_0;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v9_0 = v15_1;
                                } catch (android.database.sqlite.SQLiteException v0_9) {
                                    v2_0 = v0_9;
                                    v21 = v15_1;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v12_5 = v3_0;
                                    v9_0 = v15_1;
                                }
                                v12_5 = v3_0;
                            } catch (android.database.sqlite.SQLiteException v0_4) {
                                v2_0 = v0_4;
                                v21 = v23;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v12_5 = v3_0;
                                v9_0 = v23;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                            }
                        }
                    } else {
                        Boolean v13_18;
                        Boolean v12_39 = v5_123 cmp -1;
                        try {
                            if (v12_39 == null) {
                                v13_18 = new String[1];
                                v13_18[0] = String.valueOf(p66);
                            } else {
                                v13_18 = new String[2];
                                v13_18[0] = String.valueOf(v5_123);
                                v13_18[1] = String.valueOf(p66);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            v9_0 = 0;
                            v12_5 = 0;
                        }
                        Boolean v12_43;
                        if (v12_39 == null) {
                            v12_43 = "";
                        } else {
                            v12_43 = "rowid <= ? and ";
                        }
                        android.database.sqlite.SQLiteException v3_18 = new StringBuilder((String.valueOf(v12_43).length() + 148));
                        v3_18.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_18.append(v12_43);
                        v3_18.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_2.rawQuery(v3_18.toString(), v13_18);
                        if (v3_0.moveToFirst()) {
                            v12_5 = v3_0.getString(0);
                            try {
                                Boolean v13_1 = v3_0.getString(1);
                                v3_0.close();
                                v23 = v3_0;
                                v3_0 = v12_5;
                                v22 = v13_1;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v9_0 = v3_0;
                            }
                        } else {
                            if (v3_0 == null) {
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v2_0 = v0_2;
                    v21 = v3_0;
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v9_0 = v3_0;
                    v12_5 = 0;
                }
                v3_0.close();
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v2_0 = v0_0;
                v21 = 0;
            } catch (android.database.sqlite.SQLiteException v0_11) {
                v3_3 = v0_11;
                v9_0 = 0;
                v12_5 = 0;
            } catch (android.database.sqlite.SQLiteException v0_6) {
            }
        } catch (android.database.sqlite.SQLiteException v0_3) {
            com.google.android.gms.internal.measurement.zzfk v2_1 = v0_3;
            this.zzjh().endTransaction();
            throw v2_1;
        }
    }

Method com.mixpanel.android.mpmetrics.MPDbAdapter.generateDataString() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public String[] generateDataString(com.mixpanel.android.mpmetrics.MPDbAdapter$Table p9, String p10, boolean p11)
    {
        com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v9_1 = p9.getName();
        com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v0_3 = this.mDb.getReadableDatabase();
        android.database.sqlite.SQLiteException v2 = 0;
        try {
            String v4_8 = new StringBuilder();
            v4_8.append("SELECT * FROM ");
            v4_8.append(v9_1);
            v4_8.append(" WHERE ");
            v4_8.append("token");
            v4_8.append(" = \'");
            v4_8.append(p10);
            v4_8.append("\' ");
            android.database.sqlite.SQLiteException v3_3 = new StringBuffer(v4_8.toString());
            org.json.JSONObject v5_11 = new StringBuilder();
            v5_11.append("SELECT COUNT(*) FROM ");
            v5_11.append(v9_1);
            v5_11.append(" WHERE ");
            v5_11.append("token");
            v5_11.append(" = \'");
            v5_11.append(p10);
            v5_11.append("\' ");
            String v4_6 = new StringBuffer(v5_11.toString());
        } catch (com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v9_5) {
            android.database.sqlite.SQLiteException v11_2 = 0;
            this.mDb.close();
            if (v2 != null) {
                v2.close();
            }
            if (v11_2 != null) {
                v11_2.close();
            }
            throw v9_5;
        } catch (int v10_1) {
            android.database.sqlite.SQLiteException v11_1 = 0;
            com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v0_0 = 0;
            android.database.sqlite.SQLiteException v3_1 = 0;
            try {
                org.json.JSONObject v5_5 = new StringBuilder();
                v5_5.append("Could not pull records for Mixpanel out of database ");
                v5_5.append(v9_1);
                v5_5.append(". Waiting to send.");
                com.mixpanel.android.util.MPLog.e("MixpanelAPI.Database", v5_5.toString(), v10_1);
                this.mDb.close();
            } catch (com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v9_5) {
                v2 = v11_1;
                v11_2 = v0_0;
            }
            if (v11_1 != null) {
                v11_1.close();
            }
            if (v0_0 != null) {
                v0_0.close();
            }
            String v4_2 = 0;
            com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v0_1 = v3_1;
            android.database.sqlite.SQLiteException v3_2 = 0;
        }
        if (p11 == null) {
            v3_3.append("AND automatic_data = 0 ");
            v4_6.append(" AND automatic_data = 0");
        }
        v3_3.append("ORDER BY created_at ASC LIMIT 50");
        int v10_11 = v0_3.rawQuery(v3_3.toString(), 0);
        try {
            v11_2 = v0_3.rawQuery(v4_6.toString(), 0);
            try {
                v11_2.moveToFirst();
                v0_1 = String.valueOf(v11_2.getInt(0));
                try {
                    android.database.sqlite.SQLiteException v3_6 = new org.json.JSONArray();
                    v4_2 = 0;
                } catch (android.database.sqlite.SQLiteException v3_0) {
                    android.database.sqlite.SQLiteException v7_0 = v11_2;
                    v11_1 = v10_11;
                    v10_1 = v3_0;
                    v3_1 = v0_1;
                    v0_0 = v7_0;
                }
                while (v10_11.moveToNext()) {
                    if (v10_11.isLast()) {
                        v4_2 = v10_11.getString(v10_11.getColumnIndex("_id"));
                    }
                    v3_6.put(new org.json.JSONObject(v10_11.getString(v10_11.getColumnIndex("data"))));
                }
                if (v3_6.length() <= 0) {
                    v3_2 = 0;
                } else {
                    v3_2 = v3_6.toString();
                }
                this.mDb.close();
                if (v10_11 != 0) {
                    v10_11.close();
                }
                if (v11_2 == null) {
                    if ((v4_2 == null) || (v3_2 == null)) {
                        return 0;
                    } else {
                        com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v9_7 = new String[3];
                        v9_7[0] = v4_2;
                        v9_7[1] = v3_2;
                        v9_7[2] = v0_1;
                        return v9_7;
                    }
                } else {
                    v11_2.close();
                }
            } catch (com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v9_5) {
                v2 = v10_11;
            } catch (com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v0_5) {
                v3_1 = 0;
                v7_0 = v11_2;
                v11_1 = v10_11;
                v10_1 = v0_5;
            }
        } catch (com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v9_5) {
            v11_2 = 0;
        } catch (android.database.sqlite.SQLiteException v11_4) {
            v0_0 = 0;
            v3_1 = 0;
            v11_1 = v10_11;
            v10_1 = v11_4;
        }
    }

Method com.mixpanel.android.mpmetrics.MPDbAdapter.addJSON() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public int addJSON(org.json.JSONObject p7, String p8, com.mixpanel.android.mpmetrics.MPDbAdapter$Table p9, boolean p10)
    {
        if (this.belowMemThreshold()) {
            String v9_1 = p9.getName();
            com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v1 = 0;
            try {
                StringBuilder v2_3 = this.mDb.getWritableDatabase();
                String v3_1 = new android.content.ContentValues();
                v3_1.put("data", p7.toString());
                v3_1.put("created_at", Long.valueOf(System.currentTimeMillis()));
                v3_1.put("automatic_data", Boolean.valueOf(p10));
                v3_1.put("token", p8);
                v2_3.insert(v9_1, 0, v3_1);
                com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v7_6 = new StringBuilder();
                v7_6.append("SELECT COUNT(*) FROM ");
                v7_6.append(v9_1);
                v7_6.append(" WHERE token=\'");
                v7_6.append(p8);
                v7_6.append("\'");
                com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v7_8 = v2_3.rawQuery(v7_6.toString(), 0);
                try {
                    v7_8.moveToFirst();
                    int v8_4 = v7_8.getInt(0);
                } catch (int v8_2) {
                    StringBuilder v2_1 = new StringBuilder();
                    v2_1.append("Could not add Mixpanel data to table ");
                    v2_1.append(v9_1);
                    v2_1.append(". Re-initializing database.");
                    com.mixpanel.android.util.MPLog.e("MixpanelAPI.Database", v2_1.toString(), v8_2);
                    if (v7_8 == null) {
                        v1 = v7_8;
                    } else {
                        v7_8.close();
                    }
                    this.mDb.deleteDatabase();
                    if (v1 != null) {
                        v1.close();
                    }
                    this.mDb.close();
                    v8_4 = -1;
                    return v8_4;
                }
                if (v7_8 != null) {
                    v7_8.close();
                }
                this.mDb.close();
                return v8_4;
            } catch (int v8_5) {
                if (v1 != null) {
                    v1.close();
                }
                this.mDb.close();
                throw v8_5;
            } catch (int v8_2) {
                v7_8 = 0;
            } catch (int v8_5) {
                v1 = v7_8;
            }
        } else {
            com.mixpanel.android.util.MPLog.e("MixpanelAPI.Database", "There is not enough space left on the device to store Mixpanel data, so data was discarded");
            return -2;
        }
    }

Method com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper.migrateTableFrom4To5() calling method android.database.sqlite.SQLiteDatabase.rawQuery()

Couldn't retrieve source code

Method com.google.android.gms.tagmanager.zzed.onOpen() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final void onOpen(android.database.sqlite.SQLiteDatabase p5)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_10 = p5.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_10.moveToFirst();
                v0_10.close();
            } catch (android.database.sqlite.SQLiteException v5_15) {
                v0_10.close();
                throw v5_15;
            }
        }
        if (com.google.android.gms.tagmanager.zzed.zza("gtm_hits", p5)) {
            android.database.sqlite.SQLiteException v5_1 = p5.rawQuery("SELECT * FROM gtm_hits WHERE 0", 0);
            String v0_5 = new java.util.HashSet();
            try {
                String[] v1_1 = v5_1.getColumnNames();
                int v2_1 = 0;
            } catch (String v0_6) {
                v5_1.close();
                throw v0_6;
            }
            while (v2_1 < v1_1.length) {
                v0_5.add(v1_1[v2_1]);
                v2_1++;
            }
            v5_1.close();
            if ((!v0_5.remove("hit_id")) || ((!v0_5.remove("hit_url")) || ((!v0_5.remove("hit_time")) || (!v0_5.remove("hit_first_send_time"))))) {
                throw new android.database.sqlite.SQLiteException("Database column missing");
            } else {
                if (!v0_5.isEmpty()) {
                    throw new android.database.sqlite.SQLiteException("Database has extra columns");
                } else {
                    return;
                }
            }
        } else {
            p5.execSQL(com.google.android.gms.tagmanager.zzeb.zzoj());
            return;
        }
    }

Method com.google.android.gms.tagmanager.zzax.onOpen() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final void onOpen(android.database.sqlite.SQLiteDatabase p5)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_10 = p5.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_10.moveToFirst();
                v0_10.close();
            } catch (android.database.sqlite.SQLiteException v5_15) {
                v0_10.close();
                throw v5_15;
            }
        }
        if (com.google.android.gms.tagmanager.zzax.zza("datalayer", p5)) {
            android.database.sqlite.SQLiteException v5_1 = p5.rawQuery("SELECT * FROM datalayer WHERE 0", 0);
            String v0_5 = new java.util.HashSet();
            try {
                String[] v1_1 = v5_1.getColumnNames();
                int v2_1 = 0;
            } catch (String v0_6) {
                v5_1.close();
                throw v0_6;
            }
            while (v2_1 < v1_1.length) {
                v0_5.add(v1_1[v2_1]);
                v2_1++;
            }
            v5_1.close();
            if ((!v0_5.remove("key")) || ((!v0_5.remove("value")) || ((!v0_5.remove("ID")) || (!v0_5.remove("expires"))))) {
                throw new android.database.sqlite.SQLiteException("Database column missing");
            } else {
                if (!v0_5.isEmpty()) {
                    throw new android.database.sqlite.SQLiteException("Database has extra columns");
                } else {
                    return;
                }
            }
        } else {
            p5.execSQL(com.google.android.gms.tagmanager.zzat.zznk());
            return;
        }
    }

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) {
            android.database.Cursor v0_1 = 0;
            try {
                android.database.Cursor v1_3 = p8.rawQuery("PRAGMA journal_mode=memory", 0);
                try {
                    v1_3.moveToFirst();
                } catch (Throwable v8_1) {
                    v0_1 = v1_3;
                    if (v0_1 != null) {
                        v0_1.close();
                    }
                    throw v8_1;
                }
                if (v1_3 != null) {
                    v1_3.close();
                }
            } catch (Throwable v8_1) {
            }
        }
        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 com.google.android.gms.internal.measurement.zzbd.onOpen() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final void onOpen(android.database.sqlite.SQLiteDatabase p9)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_13 = p9.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_13.moveToFirst();
                v0_13.close();
            } catch (android.database.sqlite.SQLiteException v9_10) {
                v0_13.close();
                throw v9_10;
            }
        }
        String v0_10;
        String v1_3 = 0;
        if (this.zza(p9, "hits2")) {
            String v0_6 = com.google.android.gms.internal.measurement.zzbd.zzb(p9, "hits2");
            boolean v3_1 = 0;
            while (v3_1 < 4) {
                String v4_2 = new String[] {"hit_id", "hit_string", "hit_time", "hit_url"})[v3_1];
                if (v0_6.remove(v4_2)) {
                    v3_1++;
                } else {
                    String v0_12;
                    String v1_5 = String.valueOf(v4_2);
                    if (v1_5.length() == 0) {
                        v0_12 = new String("Database hits2 is missing required column: ");
                    } else {
                        v0_12 = "Database hits2 is missing required column: ".concat(v1_5);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_12);
                }
            }
            int v2_4 = (v0_6.remove("hit_app_id") ^ 1);
            if (!v0_6.isEmpty()) {
                throw new android.database.sqlite.SQLiteException("Database hits2 has extra columns");
            } else {
                if (v2_4 != 0) {
                    v0_10 = "ALTER TABLE hits2 ADD COLUMN hit_app_id INTEGER";
                    p9.execSQL(v0_10);
                }
            }
        } else {
            v0_10 = com.google.android.gms.internal.measurement.zzbc.zzda();
        }
        if (this.zza(p9, "properties")) {
            android.database.sqlite.SQLiteException v9_6 = com.google.android.gms.internal.measurement.zzbd.zzb(p9, "properties");
            String v4 = "tid";
            String v6 = "adid";
            while (v1_3 < 6) {
                int v2_8 = new String[] {"app_uid", "hits_count"})[v1_3];
                if (v9_6.remove(v2_8)) {
                    v1_3++;
                } else {
                    String v0_1;
                    String v1_8 = String.valueOf(v2_8);
                    if (v1_8.length() == 0) {
                        v0_1 = new String("Database properties is missing required column: ");
                    } else {
                        v0_1 = "Database properties is missing required column: ".concat(v1_8);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_1);
                }
            }
            if (!v9_6.isEmpty()) {
                throw new android.database.sqlite.SQLiteException("Database properties table has extra columns");
            } else {
                return;
            }
        } else {
            p9.execSQL("CREATE TABLE IF NOT EXISTS properties ( app_uid INTEGER NOT NULL, cid TEXT NOT NULL, tid TEXT NOT NULL, params TEXT NOT NULL, adid INTEGER NOT NULL, hits_count INTEGER NOT NULL, PRIMARY KEY (app_uid, cid, tid)) ;");
            return;
        }
    }

Method com.google.android.gms.internal.measurement.zzbd.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();
        Throwable v2_3 = new StringBuilder((String.valueOf(p4).length() + 22));
        v2_3.append("SELECT * FROM ");
        v2_3.append(p4);
        v2_3.append(" LIMIT 0");
        android.database.Cursor v3_1 = p3.rawQuery(v2_3.toString(), 0);
        try {
            Throwable v4_3 = v3_1.getColumnNames();
            int v1_1 = 0;
        } catch (Throwable v4_4) {
            v3_1.close();
            throw v4_4;
        }
        while (v1_1 < v4_3.length) {
            v0_1.add(v4_3[v1_1]);
            v1_1++;
        }
        v3_1.close();
        return v0_1;
    }

Method com.evernote.android.job.l.c() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    int c()
    {
        try {
            int v2_0 = this.b();
            try {
                int v1_3;
                android.content.SharedPreferences v3_0 = v2_0.rawQuery("SELECT MAX(_id) FROM jobs", 0);
                try {
                    if ((v3_0 == null) || (!v3_0.moveToFirst())) {
                        v1_3 = 0;
                    } else {
                        v1_3 = v3_0.getInt(0);
                    }
                } catch (int v1_1) {
                    com.evernote.android.job.l.a.a(v1_1);
                    com.evernote.android.job.l.a(v3_0);
                    com.evernote.android.job.l.a(v2_0);
                    v1_3 = 0;
                    return Math.max(com.evernote.android.job.e.e(), Math.max(v1_3, this.b.getInt("JOB_ID_COUNTER_v2", 0)));
                }
                com.evernote.android.job.l.a(v3_0);
                com.evernote.android.job.l.a(v2_0);
                return Math.max(com.evernote.android.job.e.e(), Math.max(v1_3, this.b.getInt("JOB_ID_COUNTER_v2", 0)));
            } catch (int v0_1) {
                v3_0 = 0;
                com.evernote.android.job.l.a(v3_0);
                com.evernote.android.job.l.a(v2_0);
                throw v0_1;
            } catch (android.content.SharedPreferences v3_2) {
                v3_0 = 0;
                v1_1 = v3_2;
            }
        } catch (int v0_1) {
            v2_0 = 0;
            v3_0 = 0;
        } catch (int v2_1) {
            v3_0 = 0;
            v1_1 = v2_1;
            v2_0 = 0;
        } catch (int v0_1) {
        }
    }

Method io.fabric.sdk.android.d.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.d.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 net.skyscanner.go.platform.database.b.e() calling method android.database.sqlite.SQLiteDatabase.openDatabase()


    private int e()
    {
        android.database.sqlite.SQLiteDatabase v0_1 = android.database.sqlite.SQLiteDatabase.openDatabase(this.d, 0, 0);
        int v1_1 = v0_1.getVersion();
        v0_1.close();
        return v1_1;
    }

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


    private final boolean zza(int p18, byte[] p19)
    {
        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(p18));
            v3_1.put("entry", p19);
            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) {
                            if (v7.inTransaction()) {
                                v7.endTransaction();
                            }
                        }
                        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;
                    if (v12 != 0) {
                        v12.close();
                    }
                    if (v9 != 0) {
                        v9.close();
                    }
                    throw v0_1;
                } 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 p7, boolean p8)
    {
        this.zzab();
        this.zzch();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p7);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p7.zzth);
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p7.zzavm);
        this.zzhx();
        int v0_0 = this.zzbt().currentTimeMillis();
        if ((p7.zzavm.longValue() < (v0_0 - com.google.android.gms.internal.measurement.zzeh.zzhq())) || (p7.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(p7.zzth), Long.valueOf(v0_0), p7.zzavm);
        }
        try {
            String v1_4 = new byte[p7.zzwb()];
            Object v2_12 = com.google.android.gms.internal.measurement.zzacb.zzb(v1_4, 0, v1_4.length);
            p7.zza(v2_12);
            v2_12.zzvt();
            String v1_5 = this.zzjf().zzb(v1_4);
            this.zzgi().zzjc().zzg("Saving bundle, size", Integer.valueOf(v1_5.length));
            Object v2_17 = new android.content.ContentValues();
            v2_17.put("app_id", p7.zzth);
            v2_17.put("bundle_end_timestamp", p7.zzavm);
            v2_17.put("data", v1_5);
            v2_17.put("has_realtime", Integer.valueOf(p8));
        } catch (com.google.android.gms.internal.measurement.zzfk v8_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(p7.zzth), v8_5);
            return 0;
        }
        if (p7.zzawj != null) {
            v2_17.put("retry_count", p7.zzawj);
        }
        try {
            if (this.getWritableDatabase().insert("queue", 0, v2_17) != -1) {
                return 1;
            } else {
                this.zzgi().zziv().zzg("Failed to insert bundle (got -1). appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p7.zzth));
                return 0;
            }
        } catch (com.google.android.gms.internal.measurement.zzfk v8_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(p7.zzth), v8_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.android.gms.internal.measurement.zzbc.zzc() calling method android.database.sqlite.SQLiteDatabase.insert()


    public final void zzc(com.google.android.gms.internal.measurement.zzch p7)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p7);
        com.google.android.gms.analytics.zzk.zzab();
        this.zzch();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p7);
        Long v0_3 = new android.net.Uri$Builder();
        android.database.sqlite.SQLiteDatabase v1_0 = p7.zzcs().entrySet().iterator();
        while (v1_0.hasNext()) {
            String v2_1 = ((java.util.Map$Entry) v1_0.next());
            int v3_1 = ((String) v2_1.getKey());
            if ((!"ht".equals(v3_1)) && ((!"qt".equals(v3_1)) && (!"AppUID".equals(v3_1)))) {
                v0_3.appendQueryParameter(v3_1, ((String) v2_1.getValue()));
            }
        }
        Long v0_1 = v0_3.build().getEncodedQuery();
        if (v0_1 == null) {
            v0_1 = "";
        }
        if (v0_1.length() <= 8192) {
            android.database.sqlite.SQLiteDatabase v1_5 = ((Integer) com.google.android.gms.internal.measurement.zzcc.zzyo.get()).intValue();
            String v2_6 = this.zzcr();
            if (v2_6 > ((long) (v1_5 - 1))) {
                android.database.sqlite.SQLiteDatabase v1_6 = this.zzc(((v2_6 - ((long) v1_5)) + 1));
                this.zzd("Store full, deleting hits to make room, count", Integer.valueOf(v1_6.size()));
                this.zza(v1_6);
            }
            int v3_10;
            android.database.sqlite.SQLiteDatabase v1_7 = this.getWritableDatabase();
            String v2_11 = new android.content.ContentValues();
            v2_11.put("hit_string", v0_1);
            v2_11.put("hit_time", Long.valueOf(p7.zzen()));
            v2_11.put("hit_app_id", Integer.valueOf(p7.zzel()));
            if (!p7.zzep()) {
                v3_10 = com.google.android.gms.internal.measurement.zzbu.zzea();
            } else {
                v3_10 = com.google.android.gms.internal.measurement.zzbu.zzdz();
            }
            v2_11.put("hit_url", v3_10);
            try {
                Long v0_8 = v1_7.insert("hits2", 0, v2_11);
            } catch (String v7_2) {
                this.zze("Error storing a hit", v7_2);
                return;
            }
            if (v0_8 != -1) {
                this.zzb("Hit saved to database. db-id, hit", Long.valueOf(v0_8), p7);
                return;
            } else {
                this.zzu("Failed to insert a hit (got -1)");
                return;
            }
        } else {
            this.zzbu().zza(p7, "Hit length exceeds the maximum allowed size");
            return;
        }
    }

Method com.google.android.gms.tagmanager.zzeb.zzb() calling method android.database.sqlite.SQLiteDatabase.insert()


    public final void zzb(long p9, String p11)
    {
        android.database.sqlite.SQLiteDatabase v0_3 = this.clock.currentTimeMillis();
        if (v0_3 > (this.zzbbq + 86400000)) {
            this.zzbbq = v0_3;
            android.database.sqlite.SQLiteDatabase v0_2 = this.zzcy("Error opening database for deleteStaleHits.");
            if (v0_2 != null) {
                android.content.ContentValues v1_5;
                String[] v7 = new String[1];
                v7[0] = Long.toString((this.clock.currentTimeMillis() - 1.280618154e-314));
                v0_2.delete("gtm_hits", "HIT_TIME < ?", v7);
                if (this.zzoh() != 0) {
                    v1_5 = 0;
                } else {
                    v1_5 = 1;
                }
                this.zzbbo.zzo(v1_5);
            }
        }
        android.database.sqlite.SQLiteDatabase v0_7 = ((this.zzoh() - this.zzbbr) + 1);
        if (v0_7 > null) {
            android.database.sqlite.SQLiteDatabase v0_8 = this.zzx(v0_7);
            android.content.ContentValues v1_7 = v0_8.size();
            StringBuilder v3_1 = new StringBuilder(51);
            v3_1.append("Store full, deleting ");
            v3_1.append(v1_7);
            v3_1.append(" hits to make room.");
            com.google.android.gms.tagmanager.zzdi.v(v3_1.toString());
            android.content.ContentValues v1_10 = new String[0];
            this.zza(((String[]) v0_8.toArray(v1_10)));
        }
        android.database.sqlite.SQLiteDatabase v0_12 = this.zzcy("Error opening database for putHit");
        if (v0_12 != null) {
            android.content.ContentValues v1_12 = new android.content.ContentValues();
            v1_12.put("hit_time", Long.valueOf(p9));
            v1_12.put("hit_url", p11);
            v1_12.put("hit_first_send_time", Integer.valueOf(0));
            try {
                v0_12.insert("gtm_hits", 0, v1_12);
                this.zzbbo.zzo(0);
                return;
            } catch (android.database.sqlite.SQLiteException) {
                com.google.android.gms.tagmanager.zzdi.zzab("Error storing hit");
            }
        }
        return;
    }

Method com.google.android.gms.tagmanager.zzat.zzb() calling method android.database.sqlite.SQLiteDatabase.insert()


    private final declared_synchronized void zzb(java.util.List p11, long p12)
    {
        try {
            long v0_1 = this.clock.currentTimeMillis();
            this.zzan(v0_1);
            String v3_0 = ((this.zzni() - this.zzazj) + p11.size());
        } catch (Throwable v11_2) {
            this.zznj();
            throw v11_2;
        } catch (Throwable v11_3) {
            throw v11_3;
        }
        if (v3_0 > null) {
            String v2_0 = this.zzs(v3_0);
            String v3_3 = v2_0.size();
            String v5_1 = new StringBuilder(64);
            v5_1.append("DataLayer store full, deleting ");
            v5_1.append(v3_3);
            v5_1.append(" entries to make room.");
            com.google.android.gms.tagmanager.zzdi.zzcz(v5_1.toString());
            int v4_2 = new String[0];
            String v2_2 = ((String[]) v2_0.toArray(v4_2));
            if (v2_2 != null) {
                if (v2_2.length != 0) {
                    int v4_5 = this.zzcy("Error opening database for deleteEntries.");
                    if (v4_5 != 0) {
                        Object[] v6_1 = new Object[2];
                        v6_1[0] = "ID";
                        v6_1[1] = android.text.TextUtils.join(",", java.util.Collections.nCopies(v2_2.length, "?"));
                        v4_5.delete("datalayer", String.format("%s in (%s)", v6_1), v2_2);
                    }
                } else {
                }
            }
        }
        long v0_2 = (v0_1 + p12);
        android.database.sqlite.SQLiteDatabase v12_2 = this.zzcy("Error opening database for writeEntryToDatabase.");
        if (v12_2 != null) {
            Throwable v11_1 = p11.iterator();
            while (v11_1.hasNext()) {
                String v13_4 = ((com.google.android.gms.tagmanager.zzay) v11_1.next());
                String v2_9 = new android.content.ContentValues();
                v2_9.put("expires", Long.valueOf(v0_2));
                v2_9.put("key", v13_4.zzny);
                v2_9.put("value", v13_4.zzazp);
                v12_2.insert("datalayer", 0, v2_9);
            }
        }
        this.zznj();
        return;
    }

Method com.mixpanel.android.mpmetrics.MPDbAdapter.addJSON() calling method android.database.sqlite.SQLiteDatabase.insert()


    public int addJSON(org.json.JSONObject p7, String p8, com.mixpanel.android.mpmetrics.MPDbAdapter$Table p9, boolean p10)
    {
        if (this.belowMemThreshold()) {
            String v9_1 = p9.getName();
            com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v1 = 0;
            try {
                StringBuilder v2_3 = this.mDb.getWritableDatabase();
                String v3_1 = new android.content.ContentValues();
                v3_1.put("data", p7.toString());
                v3_1.put("created_at", Long.valueOf(System.currentTimeMillis()));
                v3_1.put("automatic_data", Boolean.valueOf(p10));
                v3_1.put("token", p8);
                v2_3.insert(v9_1, 0, v3_1);
                com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v7_6 = new StringBuilder();
                v7_6.append("SELECT COUNT(*) FROM ");
                v7_6.append(v9_1);
                v7_6.append(" WHERE token=\'");
                v7_6.append(p8);
                v7_6.append("\'");
                com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v7_8 = v2_3.rawQuery(v7_6.toString(), 0);
                try {
                    v7_8.moveToFirst();
                    int v8_4 = v7_8.getInt(0);
                } catch (int v8_2) {
                    StringBuilder v2_1 = new StringBuilder();
                    v2_1.append("Could not add Mixpanel data to table ");
                    v2_1.append(v9_1);
                    v2_1.append(". Re-initializing database.");
                    com.mixpanel.android.util.MPLog.e("MixpanelAPI.Database", v2_1.toString(), v8_2);
                    if (v7_8 == null) {
                        v1 = v7_8;
                    } else {
                        v7_8.close();
                    }
                    this.mDb.deleteDatabase();
                    if (v1 != null) {
                        v1.close();
                    }
                    this.mDb.close();
                    v8_4 = -1;
                    return v8_4;
                }
                if (v7_8 != null) {
                    v7_8.close();
                }
                this.mDb.close();
                return v8_4;
            } catch (int v8_5) {
                if (v1 != null) {
                    v1.close();
                }
                this.mDb.close();
                throw v8_5;
            } catch (int v8_2) {
                v7_8 = 0;
            } catch (int v8_5) {
                v1 = v7_8;
            }
        } else {
            com.mixpanel.android.util.MPLog.e("MixpanelAPI.Database", "There is not enough space left on the device to store Mixpanel data, so data was discarded");
            return -2;
        }
    }

Method com.braintreepayments.api.internal.a$1.run() calling method android.database.sqlite.SQLiteDatabase.insert()

Couldn't retrieve source code

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


    final void zzc(java.util.List p5)
    {
        this.zzab();
        this.zzch();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p5);
        com.google.android.gms.common.internal.Preconditions.checkNotZero(p5.size());
        if (this.zzid()) {
            android.database.sqlite.SQLiteException v5_1 = android.text.TextUtils.join(",", p5);
            String v1_1 = new StringBuilder((String.valueOf(v5_1).length() + 2));
            v1_1.append("(");
            v1_1.append(v5_1);
            v1_1.append(")");
            android.database.sqlite.SQLiteException v5_3 = v1_1.toString();
            String v1_3 = new StringBuilder((String.valueOf(v5_3).length() + 80));
            v1_3.append("SELECT COUNT(1) FROM queue WHERE rowid IN ");
            v1_3.append(v5_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_15 = this.getWritableDatabase();
                StringBuilder v2_2 = new StringBuilder((String.valueOf(v5_3).length() + 127));
                v2_2.append("UPDATE queue SET retry_count = IFNULL(retry_count, 0) + 1 WHERE rowid IN ");
                v2_2.append(v5_3);
                v2_2.append(" AND (retry_count IS NULL OR retry_count < 2147483647)");
                v0_15.execSQL(v2_2.toString());
                return;
            } catch (android.database.sqlite.SQLiteException v5_6) {
                this.zzgi().zziv().zzg("Error incrementing retry count. error", v5_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 p69, com.google.android.gms.internal.measurement.zzkr[] p70, com.google.android.gms.internal.measurement.zzkx[] p71)
    {
        Integer v15_0 = p69;
        String v13_0 = p70;
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p69);
        java.util.BitSet v11_3 = new java.util.HashSet();
        android.util.Pair v12_2 = new androidx.collection.a();
        int v10_0 = new androidx.collection.a();
        long v9_2 = new androidx.collection.a();
        Object v8_11 = new androidx.collection.a();
        boolean v22 = this.zzgk().zzd(p69, com.google.android.gms.internal.measurement.zzez.zzajx);
        com.google.android.gms.internal.measurement.zzfk v0_11 = this.zzjh().zzbi(p69);
        if (v0_11 != null) {
            int v1_35 = v0_11.keySet().iterator();
            while (v1_35.hasNext()) {
                java.util.Iterator v28_0;
                com.google.android.gms.internal.measurement.zzkq[] v26_0;
                Integer v5_9;
                int v27;
                long v2_34 = ((Integer) v1_35.next()).intValue();
                String v3_8 = ((com.google.android.gms.internal.measurement.zzkv) v0_11.get(Integer.valueOf(v2_34)));
                String v6_7 = ((java.util.BitSet) v10_0.get(Integer.valueOf(v2_34)));
                Integer v4_13 = ((java.util.BitSet) v9_2.get(Integer.valueOf(v2_34)));
                if (!v22) {
                    v26_0 = v0_11;
                    v27 = v1_35;
                    v28_0 = v4_13;
                    v5_9 = 0;
                } else {
                    v5_9 = new androidx.collection.a();
                    if (v3_8 == null) {
                        v26_0 = v0_11;
                        v27 = v1_35;
                        v28_0 = v4_13;
                    } else {
                        v26_0 = v0_11;
                        if (v3_8.zzawn != null) {
                            com.google.android.gms.internal.measurement.zzfk v0_1 = v3_8.zzawn;
                            v27 = v1_35;
                            int v1_22 = v0_1.length;
                            v28_0 = v4_13;
                            Integer v4_14 = 0;
                            while (v4_14 < v1_22) {
                                com.google.android.gms.internal.measurement.zzks[] v29_0 = v1_22;
                                int v1_23 = v0_1[v4_14];
                                int v30 = v0_1;
                                if (v1_23.zzaux != null) {
                                    v5_9.put(v1_23.zzaux, v1_23.zzauy);
                                }
                                v4_14++;
                                v1_22 = v29_0;
                                v0_1 = v30;
                            }
                        }
                    }
                    v8_11.put(Integer.valueOf(v2_34), v5_9);
                }
                Integer v4_15;
                if (v6_7 != null) {
                    v4_15 = v28_0;
                } else {
                    v6_7 = new java.util.BitSet();
                    v10_0.put(Integer.valueOf(v2_34), v6_7);
                    v4_15 = new java.util.BitSet();
                    v9_2.put(Integer.valueOf(v2_34), v4_15);
                }
                com.google.android.gms.internal.measurement.zzfk v0_7 = 0;
                while (v0_7 < (v3_8.zzawl.length << 6)) {
                    Integer v32_2;
                    Integer v33_2;
                    int v1_42;
                    String v31_2;
                    if (!com.google.android.gms.internal.measurement.zzjz.zza(v3_8.zzawl, v0_7)) {
                        v31_2 = v8_11;
                        v32_2 = v9_2;
                        v33_2 = v10_0;
                        v1_42 = 0;
                    } else {
                        v31_2 = v8_11;
                        v32_2 = v9_2;
                        v33_2 = v10_0;
                        this.zzgi().zzjc().zze("Filter already evaluated. audience ID, filter ID", Integer.valueOf(v2_34), 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_42 = 1;
                        }
                    }
                    if ((v5_9 != null) && (v1_42 == 0)) {
                        v5_9.remove(Integer.valueOf(v0_7));
                    }
                    v0_7++;
                    v8_11 = v31_2;
                    v9_2 = v32_2;
                    v10_0 = v33_2;
                }
                String v31_1 = v8_11;
                Integer v32_1 = v9_2;
                Integer v33_1 = 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_34), 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_9);
                }
                v0_11 = v26_0;
                v1_35 = v27;
                v8_11 = v31_1;
                v9_2 = v32_1;
                v10_0 = v33_1;
            }
        }
        String v31_0 = v8_11;
        Integer v32_0 = v9_2;
        Integer v33_0 = v10_0;
        if (p70 != null) {
            Object v8_6 = new androidx.collection.a();
            String v6_4 = p70.length;
            long v2_31 = 0;
            com.google.android.gms.internal.measurement.zzfk v0_26 = 0;
            int v1_68 = 0;
            Integer v4_10 = 0;
            while (v4_10 < v6_4) {
                String v59_1;
                android.util.Pair v56_1;
                String v13_7;
                com.google.android.gms.internal.measurement.zzks v39_1;
                java.util.Iterator v28_1;
                int v24_1;
                Integer v47_0;
                String v58_1;
                com.google.android.gms.internal.measurement.zzks[] v29_1;
                com.google.android.gms.internal.measurement.zzfk v0_31;
                boolean v25;
                com.google.android.gms.internal.measurement.zzed v23;
                Integer v57_1;
                com.google.android.gms.internal.measurement.zzkx[] v14_0;
                Integer v5_38 = v13_0[v4_10];
                long v9_26 = v5_38.name;
                int v10_7 = v5_38.zzava;
                long v34 = v2_31;
                if (!this.zzgk().zzd(v15_0, com.google.android.gms.internal.measurement.zzez.zzajr)) {
                    v25 = v4_10;
                    v13_7 = v5_38;
                    v23 = v6_4;
                    v24_1 = 1;
                    v39_1 = v0_26;
                    v28_1 = v1_68;
                    v0_31 = v9_26;
                    v29_1 = v10_7;
                    int v1_96;
                    androidx.collection.a v42;
                    String v45;
                    Integer v5_39;
                    androidx.collection.a v41;
                    long v2_67;
                    com.google.android.gms.internal.measurement.zzet v40;
                    int v43;
                    com.google.android.gms.internal.measurement.zzkx[] v44;
                    int v1_95 = this.zzjh().zzf(v15_0, v13_7.name);
                    if (v1_95 != 0) {
                        v40 = v8_6;
                        v44 = v11_3;
                        v45 = v12_2;
                        v2_67 = v13_7;
                        v5_39 = v15_0;
                        v42 = v31_0;
                        v41 = v32_0;
                        v43 = v33_0;
                        v1_96 = v1_95.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(p69), this.zzgf().zzbm(v0_31));
                        v1_96 = new com.google.android.gms.internal.measurement.zzet;
                        v40 = v8_6;
                        v42 = v31_0;
                        v41 = v32_0;
                        v43 = v33_0;
                        v44 = v11_3;
                        v45 = v12_2;
                        v2_67 = v13_7;
                        v5_39 = v15_0;
                        v1_96(p69, v13_7.name, 1, 1, v13_7.zzavb.longValue(), 0, 0, 0, 0);
                    }
                    this.zzjh().zza(v1_96);
                    Object v8_28 = v1_96.zzahh;
                    int v10_9 = v40;
                    int v1_100 = ((java.util.Map) v10_9.get(v0_31));
                    if (v1_100 == 0) {
                        v1_100 = this.zzjh().zzk(v5_39, v0_31);
                        if (v1_100 == 0) {
                            v1_100 = new androidx.collection.a();
                        }
                        v10_9.put(v0_31, v1_100);
                    }
                    java.util.BitSet v11_2 = v1_100;
                    android.util.Pair 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 = v44;
                        if (!v14_3.contains(Integer.valueOf(v13_9))) {
                            long v2_73;
                            android.util.Pair v12_1;
                            java.util.Map v48;
                            androidx.collection.a v49;
                            Integer v15_3 = v45;
                            String v6_1 = v43;
                            Integer v4_4 = ((java.util.BitSet) v6_1.get(Integer.valueOf(v13_9)));
                            android.util.Pair v46 = v2_67;
                            Integer v47_1 = v10_9;
                            int v10_2 = v41;
                            long v2_72 = ((java.util.BitSet) v10_2.get(Integer.valueOf(v13_9)));
                            if (!v22) {
                                v48 = v2_72;
                                v49 = v12_6;
                                v12_1 = v42;
                                v2_73 = 0;
                            } else {
                                v48 = v2_72;
                                v49 = v12_6;
                                v12_1 = v42;
                                v2_73 = ((java.util.Map) v12_1.get(Integer.valueOf(v13_9)));
                            }
                            Integer v52;
                            long v2_25;
                            if (((com.google.android.gms.internal.measurement.zzkp) v15_3.get(Integer.valueOf(v13_9))) != null) {
                                v2_25 = v48;
                                v52 = v2_73;
                            } else {
                                Integer v51;
                                int v1_113 = new com.google.android.gms.internal.measurement.zzkp();
                                v15_3.put(Integer.valueOf(v13_9), v1_113);
                                v1_113.zzauv = Boolean.valueOf(v24_1);
                                v4_4 = new java.util.BitSet();
                                v6_1.put(Integer.valueOf(v13_9), v4_4);
                                int v1_116 = new java.util.BitSet();
                                Integer v50_1 = v2_73;
                                v10_2.put(Integer.valueOf(v13_9), v1_116);
                                if (!v22) {
                                    v51 = v1_116;
                                    v52 = v50_1;
                                } else {
                                    long v2_78 = new androidx.collection.a();
                                    v51 = v1_116;
                                    v12_1.put(Integer.valueOf(v13_9), v2_78);
                                    v52 = v2_78;
                                }
                                v2_25 = v51;
                            }
                            String v16_8 = ((java.util.List) v11_2.get(Integer.valueOf(v13_9))).iterator();
                            while (v16_8.hasNext()) {
                                String v55;
                                int v1_123 = ((com.google.android.gms.internal.measurement.zzkh) v16_8.next());
                                int v53 = v2_25;
                                java.util.BitSet v54 = v11_2;
                                if (!this.zzgi().isLoggable(2)) {
                                    v55 = v6_1;
                                } else {
                                    v55 = v6_1;
                                    this.zzgi().zzjc().zzd("Evaluating filter. audience, filter, event", Integer.valueOf(v13_9), v1_123.zzatk, this.zzgf().zzbm(v1_123.zzatl));
                                    this.zzgi().zzjc().zzg("Filter definition", this.zzjf().zza(v1_123));
                                }
                                if ((v1_123.zzatk != null) && (v1_123.zzatk.intValue() <= 256)) {
                                    if (!v22) {
                                        Integer v57_0 = v10_2;
                                        android.util.Pair v56_0 = v12_1;
                                        String v58_0 = v15_3;
                                        android.util.Pair v12_0 = v46;
                                        Integer v7_0 = v52;
                                        java.util.BitSet v11_1 = v53;
                                        String v59_0 = v55;
                                        Integer v15_9 = v1_123;
                                        int v10_1 = v4_4;
                                        if (!v10_1.get(v15_9.zzatk.intValue())) {
                                            Integer v4_40;
                                            int v1_128 = this.zza(v15_9, v0_31, v29_1, v8_28);
                                            com.google.android.gms.internal.measurement.zzfk vtmp259 = this.zzgi().zzjc();
                                            if (v1_128 != 0) {
                                                v4_40 = v1_128;
                                            } else {
                                                v4_40 = "null";
                                            }
                                            vtmp259.zzg("Event filter result", v4_40);
                                            if (v1_128 != 0) {
                                                v11_1.set(v15_9.zzatk.intValue());
                                                if (!v1_128.booleanValue()) {
                                                    v52 = v7_0;
                                                    v4_4 = v10_1;
                                                    v2_25 = v11_1;
                                                    v46 = v12_0;
                                                    v11_2 = v54;
                                                    v12_1 = v56_0;
                                                    v10_2 = v57_0;
                                                    v15_3 = v58_0;
                                                    v6_1 = v59_0;
                                                    Integer v5 = p69;
                                                } else {
                                                    v10_1.set(v15_9.zzatk.intValue());
                                                }
                                            }
                                        } else {
                                            int v1_4 = this.zzgi().zzjc();
                                            long v2_2 = "Event filter already evaluated true. audience ID, filter ID";
                                            String v3_0 = Integer.valueOf(v13_9);
                                            Integer v4_0 = v15_9.zzatk;
                                            v1_4.zze(v2_2, v3_0, v4_0);
                                        }
                                    } else {
                                        if ((v1_123 == 0) || ((v1_123.zzatm == null) || ((v1_123.zzatm.length <= 0) || ((v1_123.zzatm[0].zzatu == null) || (!v1_123.zzatm[0].zzatu.booleanValue()))))) {
                                            int v17_0 = 0;
                                        } else {
                                            v17_0 = 1;
                                        }
                                        if ((!v4_4.get(v1_123.zzatk.intValue())) || (v17_0 != 0)) {
                                            Integer v4_2;
                                            Integer v5_3 = v1_123;
                                            v11_1 = v53;
                                            v56_0 = v12_1;
                                            v12_0 = v46;
                                            v57_0 = v10_2;
                                            v10_1 = v4_4;
                                            v7_0 = v52;
                                            v58_0 = v15_3;
                                            v59_0 = v55;
                                            Integer v15_1 = v5_3;
                                            int v1_6 = this.zza(v5_3, v0_31, v29_1, v8_28);
                                            com.google.android.gms.internal.measurement.zzfk vtmp272 = this.zzgi().zzjc();
                                            if (v1_6 != 0) {
                                                v4_2 = v1_6;
                                            } else {
                                                v4_2 = "null";
                                            }
                                            vtmp272.zzg("Event filter result", v4_2);
                                            if (v1_6 != 0) {
                                                v11_1.set(v15_1.zzatk.intValue());
                                                if (!v1_6.booleanValue()) {
                                                } else {
                                                    v10_1.set(v15_1.zzatk.intValue());
                                                    if ((v17_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_123.zzatk);
                                            v2_25 = v53;
                                            v11_2 = v54;
                                            v6_1 = v55;
                                        }
                                    }
                                    v14_3.add(Integer.valueOf(v13_9));
                                } else {
                                    v57_0 = v10_2;
                                    v56_0 = v12_1;
                                    v58_0 = v15_3;
                                    v12_0 = v46;
                                    v7_0 = v52;
                                    v11_1 = v53;
                                    v59_0 = v55;
                                    Integer v15_2 = v1_123;
                                    v10_1 = v4_4;
                                    v1_4 = this.zzgi().zziy();
                                    v2_2 = "Invalid event filter ID. appId, id";
                                    v3_0 = com.google.android.gms.internal.measurement.zzfi.zzbp(p69);
                                    v4_0 = String.valueOf(v15_2.zzatk);
                                }
                            }
                            v43 = v6_1;
                            v41 = v10_2;
                            v44 = v14_3;
                            v45 = v15_3;
                            v2_67 = v46;
                            v10_9 = v47_1;
                            v12_6 = v49;
                            v42 = v12_1;
                            v5 = p69;
                        } else {
                            this.zzgi().zzjc().zzg("Skipping failed audience ID", Integer.valueOf(v13_9));
                            v44 = v14_3;
                        }
                    }
                    v47_0 = v10_9;
                    v57_1 = v41;
                    v56_1 = v42;
                    v59_1 = v43;
                    v14_0 = v44;
                    v58_1 = v45;
                    v1_68 = v28_1;
                    v2_31 = v34;
                    v0_26 = v39_1;
                } else {
                    long v2_51;
                    this.zzjf();
                    String v3_19 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v5_38, "_eid"));
                    if (v3_19 == null) {
                        v2_51 = 0;
                    } else {
                        v2_51 = 1;
                    }
                    boolean v36;
                    Integer v4_20;
                    if (v2_51 == 0) {
                        v36 = v4_10;
                        v4_20 = 0;
                    } else {
                        v36 = v4_10;
                        if (!v9_26.equals("_ep")) {
                        } else {
                            v4_20 = 1;
                        }
                    }
                    if (v4_20 == null) {
                        v13_7 = v5_38;
                        v23 = v6_4;
                        v25 = v36;
                        v24_1 = 1;
                        if (v2_51 == 0) {
                        } else {
                            this.zzjf();
                            int v1_80 = 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_80;
                            }
                            com.google.android.gms.internal.measurement.zzfk v0_36;
                            String v16_4 = ((Long) v0_33).longValue();
                            if (v16_4 > 0) {
                                v0_36 = v3_19;
                                this.zzjh().zza(p69, v3_19, v16_4, v13_7);
                            } else {
                                this.zzgi().zziy().zzg("Complex event with zero extra param count. eventName", v9_26);
                                v0_36 = v3_19;
                            }
                            v28_1 = v0_36;
                            v0_31 = v9_26;
                            v29_1 = v10_7;
                            v39_1 = v13_7;
                            v34 = v16_4;
                        }
                    } else {
                        this.zzjf();
                        long v9_28 = ((String) com.google.android.gms.internal.measurement.zzjz.zzb(v5_38, "_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;
                                String v16_6 = v1_68;
                                int v1_83 = v34;
                            } else {
                                long v2_58 = this.zzjh().zza(v15_0, v3_19);
                                if ((v2_58 != 0) && (v2_58.first != null)) {
                                    com.google.android.gms.internal.measurement.zzfk v0_40 = ((com.google.android.gms.internal.measurement.zzkr) v2_58.first);
                                    v1_83 = ((Long) v2_58.second).longValue();
                                    this.zzjf();
                                    v16_6 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v0_40, "_eid"));
                                    v4_22 = v0_40;
                                } else {
                                    v23 = v6_4;
                                    v25 = v36;
                                    this.zzgi().zziv().zze("Extra parameter without existing main event. eventName, eventId", v9_28, v3_19);
                                    v47_0 = v8_6;
                                    v14_0 = v11_3;
                                    v58_1 = v12_2;
                                    v56_1 = v31_0;
                                    v57_1 = v32_0;
                                    v59_1 = v33_0;
                                    v2_31 = v34;
                                    v4_10 = (v25 + 1);
                                    v13_0 = p70;
                                    v11_3 = v14_0;
                                    v6_4 = v23;
                                    v8_6 = v47_0;
                                    v31_0 = v56_1;
                                    v32_0 = v57_1;
                                    v12_2 = v58_1;
                                    v33_0 = v59_1;
                                    v15_0 = p69;
                                }
                            }
                            int v1_21;
                            int v17_2 = (v1_83 - 1);
                            if (v17_2 > 0) {
                                int v19 = 0;
                                v13_7 = v5_38;
                                v25 = v36;
                                java.util.BitSet v38 = v4_22;
                                v24_1 = 1;
                                v23 = v6_4;
                                this.zzjh().zza(p69, v3_19, v17_2, v38);
                                v1_21 = v38;
                            } else {
                                int v1_88 = this.zzjh();
                                v1_88.zzab();
                                v1_88.zzgi().zzjc().zzg("Clearing complex main event info. appId", v15_0);
                                try {
                                    com.google.android.gms.internal.measurement.zzfk v0_46 = v1_88.getWritableDatabase();
                                    int v37_1 = 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_88.zzgi().zziv().zzg("Error clearing complex main event", v0_47);
                                        }
                                        v13_7 = v5_38;
                                        v23 = v6_4;
                                        v25 = v36;
                                        v1_21 = v37_1;
                                        v24_1 = 1;
                                    } catch (com.google.android.gms.internal.measurement.zzfk v0_47) {
                                    }
                                } catch (com.google.android.gms.internal.measurement.zzfk v0_47) {
                                    v37_1 = v4_22;
                                }
                            }
                            com.google.android.gms.internal.measurement.zzfk v0_51 = new com.google.android.gms.internal.measurement.zzks[(v1_21.zzava.length + v10_7.length)];
                            long v2_65 = v1_21.zzava;
                            String v3_21 = v2_65.length;
                            Integer v4_7 = 0;
                            Integer v5_8 = 0;
                            while (v4_7 < v3_21) {
                                String v6_3 = v2_65[v4_7];
                                this.zzjf();
                                com.google.android.gms.internal.measurement.zzks v39_0 = v1_21;
                                if (com.google.android.gms.internal.measurement.zzjz.zza(v13_7, v6_3.name) == null) {
                                    int v1_20 = (v5_8 + 1);
                                    v0_51[v5_8] = v6_3;
                                    v5_8 = v1_20;
                                }
                                v4_7++;
                                v1_21 = v39_0;
                            }
                            v39_1 = v1_21;
                            if (v5_8 <= null) {
                                this.zzgi().zziy().zzg("No unique parameters in main event. eventName", v9_28);
                                v0_31 = v9_28;
                                v29_1 = v10_7;
                            } else {
                                int v1_92 = v10_7.length;
                                long v2_26 = 0;
                                while (v2_26 < v1_92) {
                                    Integer v4_6 = (v5_8 + 1);
                                    v0_51[v5_8] = v10_7[v2_26];
                                    v2_26++;
                                    v5_8 = v4_6;
                                }
                                if (v5_8 != v0_51.length) {
                                    v0_51 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v0_51, v5_8));
                                }
                                v29_1 = v0_51;
                                v0_31 = v9_28;
                            }
                            v28_1 = v16_6;
                            v34 = v17_2;
                        } else {
                            this.zzgi().zziv().zzg("Extra parameter without an event name. eventId", v3_19);
                            v23 = v6_4;
                            v25 = v36;
                        }
                    }
                }
            }
        }
        com.google.android.gms.internal.measurement.zzkx[] v14_2 = v11_3;
        String v58_2 = v12_2;
        android.util.Pair v56_2 = v31_0;
        Integer v57_2 = v32_0;
        String v59_2 = v33_0;
        int v1_45 = p71;
        if (p71 != null) {
            com.google.android.gms.internal.measurement.zzfk v0_25 = new androidx.collection.a();
            long v2_43 = p71.length;
            String v3_16 = 0;
            while (v3_16 < v2_43) {
                Integer v4_17 = v1_45[v3_16];
                Integer v5_17 = ((java.util.Map) v0_25.get(v4_17.name));
                if (v5_17 == null) {
                    v5_17 = this.zzjh().zzl(p69, v4_17.name);
                    if (v5_17 == null) {
                        v5_17 = new androidx.collection.a();
                    }
                    v0_25.put(v4_17.name, v5_17);
                }
                String v6_12 = v5_17.keySet().iterator();
                while (v6_12.hasNext()) {
                    Object v8_24 = ((Integer) v6_12.next()).intValue();
                    if (!v14_2.contains(Integer.valueOf(v8_24))) {
                        int v1_47;
                        com.google.android.gms.internal.measurement.zzfk v0_21;
                        java.util.Map v60;
                        int v10_5 = v58_2;
                        android.util.Pair v12_3 = v59_2;
                        java.util.BitSet v11_11 = ((java.util.BitSet) v12_3.get(Integer.valueOf(v8_24)));
                        Integer v15_5 = v57_2;
                        String v13_5 = ((java.util.BitSet) v15_5.get(Integer.valueOf(v8_24)));
                        if (!v22) {
                            v60 = v0_25;
                            v1_47 = v56_2;
                            v0_21 = 0;
                        } else {
                            v60 = v0_25;
                            v1_47 = v56_2;
                            v0_21 = ((java.util.Map) v1_47.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 androidx.collection.a();
                                v1_47.put(Integer.valueOf(v8_24), v0_21);
                            }
                        }
                        long v9_17 = ((java.util.List) v5_17.get(Integer.valueOf(v8_24))).iterator();
                        while (v9_17.hasNext()) {
                            String v66_1;
                            com.google.android.gms.internal.measurement.zzfk v65_1;
                            Integer v64;
                            int v61 = v2_43;
                            long v2_40 = ((com.google.android.gms.internal.measurement.zzkk) v9_17.next());
                            String v62 = v5_17;
                            int v63_1 = v6_12;
                            if (!this.zzgi().isLoggable(2)) {
                                v65_1 = v1_47;
                                v64 = v9_17;
                                v66_1 = v15_5;
                            } else {
                                v64 = v9_17;
                                v65_1 = v1_47;
                                v66_1 = v15_5;
                                this.zzgi().zzjc().zzd("Evaluating filter. audience, filter, property", Integer.valueOf(v8_24), v2_40.zzatk, this.zzgf().zzbo(v2_40.zzauc));
                                this.zzgi().zzjc().zzg("Filter definition", this.zzjf().zza(v2_40));
                            }
                            if ((v2_40.zzatk != null) && (v2_40.zzatk.intValue() <= 256)) {
                                int v67_1;
                                if (!v22) {
                                    v67_1 = v10_5;
                                    if (!v11_11.get(v2_40.zzatk.intValue())) {
                                        long v9_19;
                                        int v1_58 = this.zza(v2_40, v4_17);
                                        Integer v5_27 = this.zzgi().zzjc();
                                        if (v1_58 != 0) {
                                            v9_19 = v1_58;
                                        } else {
                                            v9_19 = "null";
                                        }
                                        v5_27.zzg("Property filter result", v9_19);
                                        if (v1_58 != 0) {
                                            v13_5.set(v2_40.zzatk.intValue());
                                            if (v1_58.booleanValue()) {
                                                v11_11.set(v2_40.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_40.zzatk);
                                    }
                                } else {
                                    if ((v2_40 == 0) || ((v2_40.zzaud == null) || ((v2_40.zzaud.zzatu == null) || (!v2_40.zzaud.zzatu.booleanValue())))) {
                                        int v1_72 = 0;
                                    } else {
                                        v1_72 = 1;
                                    }
                                    if ((!v11_11.get(v2_40.zzatk.intValue())) || (v1_72 != 0)) {
                                        Integer v5_31;
                                        Integer v7_5 = this.zza(v2_40, v4_17);
                                        long v9_21 = this.zzgi().zzjc();
                                        if (v7_5 != null) {
                                            v5_31 = v7_5;
                                        } else {
                                            v5_31 = "null";
                                        }
                                        v9_21.zzg("Property filter result", v5_31);
                                        if (v7_5 != null) {
                                            v13_5.set(v2_40.zzatk.intValue());
                                            v11_11.set(v2_40.zzatk.intValue(), v7_5.booleanValue());
                                            if ((v7_5.booleanValue()) && ((v1_72 != 0) && (v4_17.zzaws != null))) {
                                                v67_1 = v10_5;
                                                com.google.android.gms.internal.measurement.zzed.zza(v0_21, v2_40.zzatk.intValue(), v4_17.zzaws.longValue());
                                                v2_43 = v61;
                                                v5_17 = v62;
                                                v6_12 = v63_1;
                                                v9_17 = v64;
                                                v1_47 = v65_1;
                                                v15_5 = v66_1;
                                                v10_5 = v67_1;
                                            }
                                        } 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_40.zzatk);
                                    }
                                    v2_43 = v61;
                                    v5_17 = v62;
                                    v6_12 = v63_1;
                                    v9_17 = v64;
                                    v1_47 = v65_1;
                                    v15_5 = v66_1;
                                }
                            } else {
                                int v67_2 = v10_5;
                                this.zzgi().zziy().zze("Invalid property filter ID. appId, id", com.google.android.gms.internal.measurement.zzfi.zzbp(p69), String.valueOf(v2_40.zzatk));
                                v14_2.add(Integer.valueOf(v8_24));
                                v59_2 = v12_3;
                                v0_25 = v60;
                                v2_43 = v61;
                                v5_17 = v62;
                                v6_12 = v63_1;
                                v56_2 = v65_1;
                                v57_2 = v66_1;
                                v58_2 = v67_2;
                            }
                            Integer v7 = p69;
                        }
                        v56_2 = v1_47;
                        v58_2 = v10_5;
                        v59_2 = v12_3;
                        v57_2 = v15_5;
                        v0_25 = v60;
                    } else {
                        this.zzgi().zzjc().zzg("Skipping failed audience ID", Integer.valueOf(v8_24));
                    }
                }
                v61 = v2_43;
                String v66 = v57_2;
                android.util.Pair v12 = v59_2;
                v3_16++;
                v1_45 = p71;
            }
        }
        com.google.android.gms.internal.measurement.zzfk v65_0 = v56_2;
        String v66_0 = v57_2;
        int v67_0 = v58_2;
        android.util.Pair v12_4 = v59_2;
        int v1_86 = new com.google.android.gms.internal.measurement.zzkp[v12_4.size()];
        long v2_62 = v12_4.keySet().iterator();
        Integer v5_14 = 0;
        while (v2_62.hasNext()) {
            com.google.android.gms.internal.measurement.zzfk v0_60 = ((Integer) v2_62.next()).intValue();
            if (!v14_2.contains(Integer.valueOf(v0_60))) {
                Integer v4_38 = v67_0;
                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();
                }
                int v10_3;
                Integer v7_9 = (v5_14 + 1);
                v1_86[v5_14] = 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 = v66_0;
                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 = v65_0;
                } else {
                    v10_3 = v65_0;
                    v3_27.zzaut.zzawn = com.google.android.gms.internal.measurement.zzed.zzd(((java.util.Map) v10_3.get(Integer.valueOf(v0_60))));
                }
                Integer v5_12 = this.zzjh();
                String v3_9 = v3_27.zzaut;
                v5_12.zzch();
                v5_12.zzab();
                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p69);
                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", p69);
                    v3_11.put("audience_id", Integer.valueOf(v0_60));
                    v3_11.put("current_results", v8_17);
                    try {
                        try {
                            if (v5_12.getWritableDatabase().insertWithOnConflict("audience_filter_values", 0, v3_11, 5) != -1) {
                                v67_0 = v4_38;
                                v5_14 = v7_9;
                                v66_0 = v9_1;
                                v65_0 = v10_3;
                            } else {
                                v5_12.zzgi().zziv().zzg("Failed to insert filter results (got -1). appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p69));
                            }
                        } catch (com.google.android.gms.internal.measurement.zzfk v0_15) {
                            String v3_13 = v5_12.zzgi().zziv();
                            Integer v5_13 = "Error storing filter results. appId";
                            v3_13.zze(v5_13, com.google.android.gms.internal.measurement.zzfi.zzbp(p69), v0_15);
                        }
                    } catch (com.google.android.gms.internal.measurement.zzfk v0_15) {
                    }
                } catch (com.google.android.gms.internal.measurement.zzfk v0_15) {
                    Integer v15 = p69;
                    v3_13 = v5_12.zzgi().zziv();
                    v5_13 = "Configuration loss. Failed to serialize filter results. appId";
                }
            }
        }
        return ((com.google.android.gms.internal.measurement.zzkp[]) java.util.Arrays.copyOf(v1_86, v5_14));
    }

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


    private final boolean zzd(String p65, long p66)
    {
        this.zzjh().beginTransaction();
        try {
            android.database.sqlite.SQLiteException v3_0 = 0;
            com.google.android.gms.internal.measurement.zzfk v2_7 = new com.google.android.gms.internal.measurement.zzjt$zza(this, 0);
            Object v4_31 = this.zzjh();
            com.google.android.gms.internal.measurement.zzfk v5_123 = this.zzasl;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_7);
            v4_31.zzab();
            v4_31.zzch();
            try {
                String v22;
                int v23;
                Long v15_2 = v4_31.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        Boolean v12_30;
                        android.database.sqlite.SQLiteException v3_2 = v5_123 cmp -1;
                        if (v3_2 == null) {
                            v12_30 = new String[] {0});
                        } else {
                            v12_30 = new String[2];
                            v12_30[0] = 0;
                            v12_30[1] = String.valueOf(v5_123);
                        }
                        android.database.sqlite.SQLiteException v3_9;
                        if (v3_2 == null) {
                            v3_9 = "";
                        } else {
                            v3_9 = " and rowid <= ?";
                        }
                        long v14_12 = new StringBuilder((String.valueOf(v3_9).length() + 84));
                        v14_12.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_12.append(v3_9);
                        v14_12.append(" order by rowid limit 1;");
                        v3_0 = v15_2.rawQuery(v14_12.toString(), v12_30);
                        if (v3_0.moveToFirst()) {
                            Boolean v13_17 = v3_0.getString(0);
                            v3_0.close();
                            v23 = v3_0;
                            v22 = v13_17;
                            v3_0 = 0;
                            try {
                                Boolean v12_11 = new String[2];
                                v12_11[0] = v3_0;
                                v12_11[1] = v22;
                                android.database.sqlite.SQLiteDatabase v25 = v15_2;
                                Long v15_1 = v15_2.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_11, 0, 0, "rowid", "2");
                                try {
                                    if (v15_1.moveToFirst()) {
                                        Boolean v12_16 = v15_1.getBlob(0);
                                        Boolean v12_17 = com.google.android.gms.internal.measurement.zzaca.zza(v12_16, 0, v12_16.length);
                                        Boolean v13_6 = new com.google.android.gms.internal.measurement.zzku();
                                        try {
                                            v13_6.zzb(v12_17);
                                        } catch (android.database.sqlite.SQLiteException v0_5) {
                                            int v9_0 = v15_1;
                                            v4_31.zzgi().zziv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0), v0_5);
                                            if (v9_0 == 0) {
                                                android.database.sqlite.SQLiteException v3_7;
                                                if (v2_7.zzasr == null) {
                                                    v3_7 = 1;
                                                } else {
                                                    if (!v2_7.zzasr.isEmpty()) {
                                                        v3_7 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_7 != null) {
                                                    this.zzjh().setTransactionSuccessful();
                                                    this.zzjh().endTransaction();
                                                    return 0;
                                                } else {
                                                    android.database.sqlite.SQLiteException v3_8 = v2_7.zzasp;
                                                    Object v4_4 = new com.google.android.gms.internal.measurement.zzkr[v2_7.zzasr.size()];
                                                    v3_8.zzavi = v4_4;
                                                    Object v4_7 = this.zzacv.zzgk().zzaw(v3_8.zzth);
                                                    int v9_13 = 0;
                                                    Boolean v12_9 = 0;
                                                    Boolean v13_3 = 0;
                                                    long v14_2 = 0;
                                                    while (v9_13 < v2_7.zzasr.size()) {
                                                        String[] v44;
                                                        int v7_3 = ((com.google.android.gms.internal.measurement.zzkr) v2_7.zzasr.get(v9_13));
                                                        if (!this.zzky().zzn(v2_7.zzasp.zzth, v7_3.name)) {
                                                            com.google.android.gms.internal.measurement.zzfk v5_4 = this.zzky().zzo(v2_7.zzasp.zzth, v7_3.name);
                                                            if (v5_4 != null) {
                                                                if (v7_3.zzava == null) {
                                                                    com.google.android.gms.internal.measurement.zzet v8_4 = new com.google.android.gms.internal.measurement.zzks[0];
                                                                    v7_3.zzava = v8_4;
                                                                }
                                                                String v6_11 = v7_3.zzava;
                                                                com.google.android.gms.internal.measurement.zzet v8_5 = v6_11.length;
                                                                boolean v10_5 = 0;
                                                                long v11_3 = 0;
                                                                long v18_0 = 0;
                                                                while (v10_5 < v8_5) {
                                                                    int v32_1 = v8_5;
                                                                    com.google.android.gms.internal.measurement.zzet v8_46 = v6_11[v10_5];
                                                                    int v33_1 = v6_11;
                                                                    int v34_2 = v12_9;
                                                                    if (!"_c".equals(v8_46.name)) {
                                                                        if ("_r".equals(v8_46.name)) {
                                                                            v8_46.zzave = Long.valueOf(1);
                                                                            v18_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v8_46.zzave = Long.valueOf(1);
                                                                        v11_3 = 1;
                                                                    }
                                                                    v10_5++;
                                                                    v8_5 = v32_1;
                                                                    v6_11 = v33_1;
                                                                    v12_9 = v34_2;
                                                                }
                                                                int v34_0 = v12_9;
                                                                if ((v11_3 == 0) && (v5_4 != null)) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as conversion", this.zzacv.zzgf().zzbm(v7_3.name));
                                                                    String v6_17 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v7_3.zzava, (v7_3.zzava.length + 1)));
                                                                    com.google.android.gms.internal.measurement.zzet v8_11 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v8_11.name = "_c";
                                                                    v8_11.zzave = Long.valueOf(1);
                                                                    v6_17[(v6_17.length - 1)] = v8_11;
                                                                    v7_3.zzava = v6_17;
                                                                }
                                                                if (v18_0 == 0) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as real-time", this.zzacv.zzgf().zzbm(v7_3.name));
                                                                    String v6_23 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v7_3.zzava, (v7_3.zzava.length + 1)));
                                                                    com.google.android.gms.internal.measurement.zzet v8_17 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v8_17.name = "_r";
                                                                    v8_17.zzave = Long.valueOf(1);
                                                                    v6_23[(v6_23.length - 1)] = v8_17;
                                                                    v7_3.zzava = v6_23;
                                                                }
                                                                v44 = v9_13;
                                                                if (this.zzjh().zza(this.zzld(), v2_7.zzasp.zzth, 0, 0, 0, 0, 1).zzagx <= ((long) this.zzacv.zzgk().zzas(v2_7.zzasp.zzth))) {
                                                                    v12_9 = 1;
                                                                } else {
                                                                    String v6_31 = 0;
                                                                    while (v6_31 < v7_3.zzava.length) {
                                                                        if (!"_r".equals(v7_3.zzava[v6_31].name)) {
                                                                            v6_31++;
                                                                        } else {
                                                                            com.google.android.gms.internal.measurement.zzet v8_28 = new com.google.android.gms.internal.measurement.zzks[(v7_3.zzava.length - 1)];
                                                                            if (v6_31 > null) {
                                                                                System.arraycopy(v7_3.zzava, 0, v8_28, 0, v6_31);
                                                                            }
                                                                            if (v6_31 < v8_28.length) {
                                                                                System.arraycopy(v7_3.zzava, (v6_31 + 1), v8_28, v6_31, (v8_28.length - v6_31));
                                                                            }
                                                                            v7_3.zzava = v8_28;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_9 = v34_0;
                                                                }
                                                                if ((com.google.android.gms.internal.measurement.zzkd.zzcg(v7_3.name)) && ((v5_4 != null) && (this.zzjh().zza(this.zzld(), v2_7.zzasp.zzth, 0, 0, 1, 0, 0).zzagv > ((long) this.zzacv.zzgk().zzb(v2_7.zzasp.zzth, com.google.android.gms.internal.measurement.zzez.zzair))))) {
                                                                    this.zzacv.zzgi().zziy().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                                    com.google.android.gms.internal.measurement.zzfk v5_13 = v7_3.zzava;
                                                                    String v6_35 = v5_13.length;
                                                                    com.google.android.gms.internal.measurement.zzet v8_36 = 0;
                                                                    int v9_11 = 0;
                                                                    boolean v10_26 = 0;
                                                                    while (v8_36 < v6_35) {
                                                                        long v11_10 = v5_13[v8_36];
                                                                        if (!"_c".equals(v11_10.name)) {
                                                                            if ("_err".equals(v11_10.name)) {
                                                                                v9_11 = 1;
                                                                            }
                                                                        } else {
                                                                            v10_26 = v11_10;
                                                                        }
                                                                        v8_36++;
                                                                    }
                                                                    if ((v9_11 == 0) || (!v10_26)) {
                                                                        if (!v10_26) {
                                                                            this.zzacv.zzgi().zziv().zzg("Did not find conversion parameter. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                                        } else {
                                                                            v10_26.name = "_err";
                                                                            v10_26.zzave = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.measurement.zzfk v5_20 = v7_3.zzava;
                                                                        com.google.android.gms.internal.measurement.zzet v8_40 = new com.google.android.gms.internal.measurement.zzks[1];
                                                                        v8_40[0] = v10_26;
                                                                        v7_3.zzava = ((com.google.android.gms.internal.measurement.zzks[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v5_20, v8_40));
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzjf();
                                                                String v6_4 = v7_3.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v6_4);
                                                                com.google.android.gms.internal.measurement.zzet v8_3 = -1;
                                                                boolean v10_1 = v6_4.hashCode();
                                                                if (v10_1 == 94660) {
                                                                    if (v6_4.equals("_in")) {
                                                                        v8_3 = 0;
                                                                    }
                                                                } else {
                                                                    if (v10_1 == 95025) {
                                                                        if (v6_4.equals("_ug")) {
                                                                            v8_3 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v10_1 == 95027) {
                                                                            if (v6_4.equals("_ui")) {
                                                                                v8_3 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                String v6_8;
                                                                switch (v8_3) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v6_8 = 1;
                                                                    default:
                                                                        v6_8 = 0;
                                                                }
                                                                if (v6_8 == null) {
                                                                    v44 = v9_13;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v4_7 != null) && ("_e".equals(v7_3.name))) {
                                                                com.google.android.gms.internal.measurement.zzfk v5_34;
                                                                String v6_40;
                                                                com.google.android.gms.internal.measurement.zzet v8_43;
                                                                if (v7_3.zzava == null) {
                                                                    v5_34 = this.zzacv.zzgi().zziy();
                                                                    v6_40 = "Engagement event does not contain any parameters. appId";
                                                                    v8_43 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth);
                                                                } else {
                                                                    if (v7_3.zzava.length != 0) {
                                                                        this.zzjf();
                                                                        com.google.android.gms.internal.measurement.zzfk v5_30 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v7_3, "_et"));
                                                                        if (v5_30 != null) {
                                                                            v14_2 += v5_30.longValue();
                                                                            String v6_41 = (v13_3 + 1);
                                                                            v3_8.zzavi[v13_3] = v7_3;
                                                                            v13_3 = v6_41;
                                                                            v9_13 = (v44 + 1);
                                                                            long v11 = 1;
                                                                        } else {
                                                                            v5_34 = this.zzacv.zzgi().zziy();
                                                                            v6_40 = "Engagement event does not include duration. appId";
                                                                            v8_43 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth);
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                v5_34.zzg(v6_40, v8_43);
                                                            }
                                                        } else {
                                                            com.google.android.gms.internal.measurement.zzfk v5_49;
                                                            this.zzacv.zzgi().zziy().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth), this.zzacv.zzgf().zzbm(v7_3.name));
                                                            if (this.zzky().zzcb(v2_7.zzasp.zzth)) {
                                                                v5_49 = 1;
                                                            } else {
                                                                if (!this.zzky().zzcc(v2_7.zzasp.zzth)) {
                                                                    v5_49 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_49 == null) && (!"_err".equals(v7_3.name))) {
                                                                this.zzacv.zzgg().zza(v2_7.zzasp.zzth, 11, "_ev", v7_3.name, 0);
                                                            }
                                                            v44 = v9_13;
                                                        }
                                                    }
                                                    int v34_3 = v12_9;
                                                    if (v13_3 < v2_7.zzasr.size()) {
                                                        v3_8.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v3_8.zzavi, v13_3));
                                                    }
                                                    if (v4_7 != null) {
                                                        Object v4_12;
                                                        Object v4_9 = this.zzjh().zzh(v3_8.zzth, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.internal.measurement.zzkc;
                                                            v4_12(v3_8.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf(v14_2));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                com.google.android.gms.internal.measurement.zzfk v5_70 = new com.google.android.gms.internal.measurement.zzkc;
                                                                v5_70(v3_8.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v14_2)));
                                                                v4_12 = v5_70;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v5_73 = new com.google.android.gms.internal.measurement.zzkx();
                                                        v5_73.name = "_lte";
                                                        v5_73.zzaws = Long.valueOf(this.zzacv.zzbt().currentTimeMillis());
                                                        v5_73.zzave = ((Long) v4_12.value);
                                                        String v6_80 = 0;
                                                        while (v6_80 < v3_8.zzavj.length) {
                                                            if (!"_lte".equals(v3_8.zzavj[v6_80].name)) {
                                                                v6_80++;
                                                            } else {
                                                                v3_8.zzavj[v6_80] = v5_73;
                                                                String v6_81 = 1;
                                                            }
                                                            if (v6_81 == null) {
                                                                v3_8.zzavj = ((com.google.android.gms.internal.measurement.zzkx[]) java.util.Arrays.copyOf(v3_8.zzavj, (v3_8.zzavj.length + 1)));
                                                                v3_8.zzavj[(v2_7.zzasp.zzavj.length - 1)] = v5_73;
                                                            }
                                                            if (v14_2 > 0) {
                                                                this.zzjh().zza(v4_12);
                                                                this.zzacv.zzgi().zzjb().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_81 = 0;
                                                    }
                                                    v3_8.zzawa = this.zza(v3_8.zzth, v3_8.zzavj, v3_8.zzavi);
                                                    if (this.zzacv.zzgk().zzav(v2_7.zzasp.zzth)) {
                                                        Object v4_20 = new java.util.HashMap();
                                                        com.google.android.gms.internal.measurement.zzfk v5_84 = new com.google.android.gms.internal.measurement.zzkr[v3_8.zzavi.length];
                                                        String v6_0 = this.zzacv.zzgg().zzlo();
                                                        int v7_0 = v3_8.zzavi;
                                                        com.google.android.gms.internal.measurement.zzet v8_0 = v7_0.length;
                                                        int v9_1 = 0;
                                                        boolean v10_0 = 0;
                                                        while (v9_1 < v8_0) {
                                                            boolean v48;
                                                            long v63;
                                                            Boolean v12_7;
                                                            int v47;
                                                            long v11_14 = v7_0[v9_1];
                                                            if (!v11_14.name.equals("_ep")) {
                                                                int v7_45;
                                                                Boolean v13_20 = Long.valueOf(1);
                                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                                    v47 = v7_0;
                                                                    v48 = v8_0;
                                                                    v7_45 = 0;
                                                                } else {
                                                                    if (v13_20 != null) {
                                                                        long v14_17 = v11_14.zzava;
                                                                        Long v15_5 = v14_17.length;
                                                                        v47 = v7_0;
                                                                        int v7_35 = 0;
                                                                        while (v7_35 < v15_5) {
                                                                            v48 = v8_0;
                                                                            com.google.android.gms.internal.measurement.zzet v8_65 = v14_17[v7_35];
                                                                            if (!"_dbg".equals(v8_65.name)) {
                                                                                v7_35++;
                                                                                v8_0 = v48;
                                                                            } else {
                                                                                if (((!(v13_20 instanceof Long)) || (!v13_20.equals(v8_65.zzave))) && (((!(v13_20 instanceof String)) || (!v13_20.equals(v8_65.zzale))) && ((!(v13_20 instanceof Double)) || (!v13_20.equals(v8_65.zzasw))))) {
                                                                                } else {
                                                                                    v7_45 = 1;
                                                                                }
                                                                            }
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                int v7_46;
                                                                if (v7_45 != 0) {
                                                                    v7_46 = 1;
                                                                } else {
                                                                    v7_46 = this.zzky().zzp(v2_7.zzasp.zzth, v11_14.name);
                                                                }
                                                                int v7_56;
                                                                if (v7_46 > 0) {
                                                                    com.google.android.gms.internal.measurement.zzet v8_70 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v11_14.name));
                                                                    if (v8_70 == null) {
                                                                        v8_70 = this.zzjh().zzf(v2_7.zzasp.zzth, v11_14.name);
                                                                        if (v8_70 == null) {
                                                                            this.zzacv.zzgi().zziy().zze("Event being bundled has no eventAggregate. appId, eventName", v2_7.zzasp.zzth, v11_14.name);
                                                                            v8_70 = new com.google.android.gms.internal.measurement.zzet;
                                                                            v8_70(v2_7.zzasp.zzth, v11_14.name, 1, 1, v11_14.zzavb.longValue(), 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    Boolean v13_25;
                                                                    this.zzjf();
                                                                    Boolean v12_52 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v11_14, "_eid"));
                                                                    if (v12_52 == null) {
                                                                        v13_25 = 0;
                                                                    } else {
                                                                        v13_25 = 1;
                                                                    }
                                                                    Boolean v13_26 = Boolean.valueOf(v13_25);
                                                                    if (v7_46 != 1) {
                                                                        if (v6_0.nextInt(v7_46) != 0) {
                                                                            v63 = v6_0;
                                                                            if (Math.abs((v11_14.zzavb.longValue() - v8_70.zzahk)) < 86400000) {
                                                                                if (!v13_26.booleanValue()) {
                                                                                    v9_1++;
                                                                                    v7_0 = v47;
                                                                                    v8_0 = v48;
                                                                                    v6_0 = v63;
                                                                                } else {
                                                                                    v4_20.put(v11_14.name, v8_70.zza(v12_52, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.zzjf();
                                                                                v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_efs", Long.valueOf(1));
                                                                                this.zzjf();
                                                                                long v14_30 = ((long) v7_46);
                                                                                v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_sr", Long.valueOf(v14_30));
                                                                                String v6_134 = (v10_0 + 1);
                                                                                v5_84[v10_0] = v11_14;
                                                                                if (v13_26.booleanValue()) {
                                                                                    v8_70 = v8_70.zza(0, Long.valueOf(v14_30), Boolean.valueOf(1));
                                                                                }
                                                                                v4_20.put(v11_14.name, v8_70.zzai(v11_14.zzavb.longValue()));
                                                                                v10_0 = v6_134;
                                                                            }
                                                                        } else {
                                                                            this.zzjf();
                                                                            v63 = v6_0;
                                                                            String v6_135 = ((long) v7_46);
                                                                            v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_sr", Long.valueOf(v6_135));
                                                                            v12_7 = (v10_0 + 1);
                                                                            v5_84[v10_0] = v11_14;
                                                                            if (v13_26.booleanValue()) {
                                                                                v8_70 = v8_70.zza(0, Long.valueOf(v6_135), 0);
                                                                            }
                                                                            v4_20.put(v11_14.name, v8_70.zzai(v11_14.zzavb.longValue()));
                                                                            v10_0 = v12_7;
                                                                        }
                                                                    } else {
                                                                        v7_56 = (v10_0 + 1);
                                                                        v5_84[v10_0] = v11_14;
                                                                        if ((v13_26.booleanValue()) && ((v8_70.zzahl != null) || ((v8_70.zzahm != null) || (v8_70.zzahn != null)))) {
                                                                            v4_20.put(v11_14.name, v8_70.zza(0, 0, 0));
                                                                        }
                                                                    }
                                                                } else {
                                                                    this.zzacv.zzgi().zziy().zze("Sample rate must be positive. event, rate", v11_14.name, Integer.valueOf(v7_46));
                                                                    v7_56 = (v10_0 + 1);
                                                                    v5_84[v10_0] = v11_14;
                                                                }
                                                                v63 = v6_0;
                                                                v10_0 = v7_56;
                                                            } else {
                                                                this.zzjf();
                                                                Boolean v12_62 = ((String) com.google.android.gms.internal.measurement.zzjz.zzb(v11_14, "_en"));
                                                                Boolean v13_29 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v12_62));
                                                                if (v13_29 == null) {
                                                                    v13_29 = this.zzjh().zzf(v2_7.zzasp.zzth, v12_62);
                                                                    v4_20.put(v12_62, v13_29);
                                                                }
                                                                if (v13_29.zzahl != null) {
                                                                    v63 = v6_0;
                                                                    v47 = v7_0;
                                                                    v48 = v8_0;
                                                                } else {
                                                                    if (v13_29.zzahm.longValue() > 1) {
                                                                        this.zzjf();
                                                                        v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_sr", v13_29.zzahm);
                                                                    }
                                                                    if ((v13_29.zzahn != null) && (v13_29.zzahn.booleanValue())) {
                                                                        this.zzjf();
                                                                        v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_efs", Long.valueOf(1));
                                                                    }
                                                                    v12_7 = (v10_0 + 1);
                                                                    v5_84[v10_0] = v11_14;
                                                                    v63 = v6_0;
                                                                    v47 = v7_0;
                                                                    v48 = v8_0;
                                                                }
                                                            }
                                                        }
                                                        if (v10_0 < v3_8.zzavi.length) {
                                                            v3_8.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v5_84, v10_0));
                                                        }
                                                        Object v4_22 = v4_20.entrySet().iterator();
                                                        while (v4_22.hasNext()) {
                                                            this.zzjh().zza(((com.google.android.gms.internal.measurement.zzet) ((java.util.Map$Entry) v4_22.next()).getValue()));
                                                        }
                                                    }
                                                    v3_8.zzavl = Long.valueOf(nan);
                                                    v3_8.zzavm = Long.valueOf(-0.0);
                                                    Object v4_27 = 0;
                                                    while (v4_27 < v3_8.zzavi.length) {
                                                        com.google.android.gms.internal.measurement.zzfk v5_117 = v3_8.zzavi[v4_27];
                                                        if (v5_117.zzavb.longValue() < v3_8.zzavl.longValue()) {
                                                            v3_8.zzavl = v5_117.zzavb;
                                                        }
                                                        if (v5_117.zzavb.longValue() > v3_8.zzavm.longValue()) {
                                                            v3_8.zzavm = v5_117.zzavb;
                                                        }
                                                        v4_27++;
                                                    }
                                                    Object v4_29 = v2_7.zzasp.zzth;
                                                    com.google.android.gms.internal.measurement.zzfk v5_91 = this.zzjh().zzbf(v4_29);
                                                    if (v5_91 != null) {
                                                        if (v3_8.zzavi.length > 0) {
                                                            com.google.android.gms.internal.measurement.zzet v8_57;
                                                            String v6_94 = v5_91.zzgt();
                                                            if (v6_94 == 0) {
                                                                v8_57 = 0;
                                                            } else {
                                                                v8_57 = Long.valueOf(v6_94);
                                                            }
                                                            v3_8.zzavo = v8_57;
                                                            com.google.android.gms.internal.measurement.zzet v8_58 = v5_91.zzgs();
                                                            if (v8_58 != 0) {
                                                                v6_94 = v8_58;
                                                            } else {
                                                            }
                                                            String v6_95;
                                                            if (v6_94 == 0) {
                                                                v6_95 = 0;
                                                            } else {
                                                                v6_95 = Long.valueOf(v6_94);
                                                            }
                                                            v3_8.zzavn = v6_95;
                                                            v5_91.zzhb();
                                                            v3_8.zzavy = Integer.valueOf(((int) v5_91.zzgy()));
                                                            v5_91.zzr(v3_8.zzavl.longValue());
                                                            v5_91.zzs(v3_8.zzavm.longValue());
                                                            v3_8.zzafy = v5_91.zzhj();
                                                            this.zzjh().zza(v5_91);
                                                        }
                                                    } else {
                                                        this.zzacv.zzgi().zziv().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                    }
                                                    if (v3_8.zzavi.length > 0) {
                                                        com.google.android.gms.internal.measurement.zzfk v5_100;
                                                        this.zzacv.zzgl();
                                                        com.google.android.gms.internal.measurement.zzfk v5_99 = this.zzky().zzbx(v2_7.zzasp.zzth);
                                                        if (v5_99 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v2_7.zzasp.zzafa)) {
                                                                this.zzacv.zzgi().zziy().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                            } else {
                                                                v5_100 = Long.valueOf(-1);
                                                                v3_8.zzawf = v5_100;
                                                            }
                                                        } else {
                                                            if (v5_99.zzaum != null) {
                                                                v5_100 = v5_99.zzaum;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzjh().zza(v3_8, v34_3);
                                                    }
                                                    android.database.sqlite.SQLiteException v3_12 = this.zzjh();
                                                    com.google.android.gms.internal.measurement.zzfk v2_8 = v2_7.zzasq;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_8);
                                                    v3_12.zzab();
                                                    v3_12.zzch();
                                                    com.google.android.gms.internal.measurement.zzfk v5_110 = new StringBuilder("rowid in (");
                                                    String v6_111 = 0;
                                                    while (v6_111 < v2_8.size()) {
                                                        if (v6_111 != null) {
                                                            v5_110.append(",");
                                                        }
                                                        v5_110.append(((Long) v2_8.get(v6_111)).longValue());
                                                        v6_111++;
                                                    }
                                                    v5_110.append(")");
                                                    com.google.android.gms.internal.measurement.zzfk v5_112 = v3_12.getWritableDatabase().delete("raw_events", v5_110.toString(), 0);
                                                    if (v5_112 != v2_8.size()) {
                                                        v3_12.zzgi().zziv().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_112), Integer.valueOf(v2_8.size()));
                                                    }
                                                    com.google.android.gms.internal.measurement.zzfk v2_11 = this.zzjh();
                                                    android.database.sqlite.SQLiteException v3_15 = v2_11.getWritableDatabase();
                                                    try {
                                                        String v6_117 = new String[2];
                                                        v6_117[0] = v4_29;
                                                        v6_117[1] = v4_29;
                                                        v3_15.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_117);
                                                    } catch (android.database.sqlite.SQLiteException v0_10) {
                                                        v2_11.zzgi().zziv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v4_29), v0_10);
                                                    }
                                                    this.zzjh().setTransactionSuccessful();
                                                    this.zzjh().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v9_0.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                        }
                                        if (v15_1.moveToNext()) {
                                            v4_31.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_56;
                                        String[] v16_2;
                                        v15_1.close();
                                        v2_7.zzb(v13_6);
                                        if (v5_123 == -1) {
                                            v5_56 = "app_id = ? and metadata_fingerprint = ?";
                                            int v9_16 = new String[2];
                                            v9_16[0] = v3_0;
                                            v9_16[1] = v22;
                                            v16_2 = v9_16;
                                        } else {
                                            Boolean v12_22 = new String[3];
                                            v12_22[0] = v3_0;
                                            v12_22[1] = v22;
                                            v12_22[2] = String.valueOf(v5_123);
                                            v5_56 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_2 = v12_22;
                                        }
                                        v9_0 = v15_1;
                                        com.google.android.gms.internal.measurement.zzfk v5_58 = v25.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_56, v16_2, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_58.moveToFirst()) {
                                                do {
                                                    Boolean v12_26 = v5_58.getLong(0);
                                                    int v9_20 = v5_58.getBlob(3);
                                                    int v9_21 = com.google.android.gms.internal.measurement.zzaca.zza(v9_20, 0, v9_20.length);
                                                    long v14_9 = new com.google.android.gms.internal.measurement.zzkr();
                                                    v14_9.zzb(v9_21);
                                                    v14_9.name = v5_58.getString(1);
                                                    v14_9.zzavb = Long.valueOf(v5_58.getLong(2));
                                                    if (v2_7.zza(v12_26, v14_9)) {
                                                    } else {
                                                        if (v5_58 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_58.moveToNext());
                                                if (v5_58 == null) {
                                                }
                                            } else {
                                                v4_31.zzgi().zziy().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                                if (v5_58 == null) {
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_8) {
                                            com.google.android.gms.internal.measurement.zzfk v2_0 = v0_8;
                                            int v21 = v5_58;
                                            if (v21 != 0) {
                                                v21.close();
                                            }
                                            throw v2_0;
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            Boolean v12_5 = v3_0;
                                            v9_0 = v5_58;
                                            android.database.sqlite.SQLiteException v3_3 = v0_1;
                                            v4_31.zzgi().zziv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_5), v3_3);
                                            if (v9_0 == 0) {
                                            }
                                        }
                                        v5_58.close();
                                    } else {
                                        v4_31.zzgi().zziv().zzg("Raw event metadata record is missing. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                        if (v15_1 == null) {
                                        } else {
                                            v15_1.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_6) {
                                    v9_0 = v15_1;
                                    v2_0 = v0_6;
                                    v21 = v9_0;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v9_0 = v15_1;
                                } catch (android.database.sqlite.SQLiteException v0_9) {
                                    v2_0 = v0_9;
                                    v21 = v15_1;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v12_5 = v3_0;
                                    v9_0 = v15_1;
                                }
                                v12_5 = v3_0;
                            } catch (android.database.sqlite.SQLiteException v0_4) {
                                v2_0 = v0_4;
                                v21 = v23;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v12_5 = v3_0;
                                v9_0 = v23;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                            }
                        }
                    } else {
                        Boolean v13_18;
                        Boolean v12_39 = v5_123 cmp -1;
                        try {
                            if (v12_39 == null) {
                                v13_18 = new String[1];
                                v13_18[0] = String.valueOf(p66);
                            } else {
                                v13_18 = new String[2];
                                v13_18[0] = String.valueOf(v5_123);
                                v13_18[1] = String.valueOf(p66);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            v9_0 = 0;
                            v12_5 = 0;
                        }
                        Boolean v12_43;
                        if (v12_39 == null) {
                            v12_43 = "";
                        } else {
                            v12_43 = "rowid <= ? and ";
                        }
                        android.database.sqlite.SQLiteException v3_18 = new StringBuilder((String.valueOf(v12_43).length() + 148));
                        v3_18.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_18.append(v12_43);
                        v3_18.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_2.rawQuery(v3_18.toString(), v13_18);
                        if (v3_0.moveToFirst()) {
                            v12_5 = v3_0.getString(0);
                            try {
                                Boolean v13_1 = v3_0.getString(1);
                                v3_0.close();
                                v23 = v3_0;
                                v3_0 = v12_5;
                                v22 = v13_1;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v9_0 = v3_0;
                            }
                        } else {
                            if (v3_0 == null) {
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v2_0 = v0_2;
                    v21 = v3_0;
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v9_0 = v3_0;
                    v12_5 = 0;
                }
                v3_0.close();
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v2_0 = v0_0;
                v21 = 0;
            } catch (android.database.sqlite.SQLiteException v0_11) {
                v3_3 = v0_11;
                v9_0 = 0;
                v12_5 = 0;
            } catch (android.database.sqlite.SQLiteException v0_6) {
            }
        } catch (android.database.sqlite.SQLiteException v0_3) {
            com.google.android.gms.internal.measurement.zzfk v2_1 = v0_3;
            this.zzjh().endTransaction();
            throw v2_1;
        }
    }

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.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p2, int p3, int p4)
    {
        com.mixpanel.android.util.MPLog.v("MixpanelAPI.Database", "Upgrading app, replacing Mixpanel events DB");
        if (p4 != 5) {
            String v3_11 = new StringBuilder();
            v3_11.append("DROP TABLE IF EXISTS ");
            v3_11.append(com.mixpanel.android.mpmetrics.MPDbAdapter$Table.EVENTS.getName());
            p2.execSQL(v3_11.toString());
            String v3_3 = new StringBuilder();
            v3_3.append("DROP TABLE IF EXISTS ");
            v3_3.append(com.mixpanel.android.mpmetrics.MPDbAdapter$Table.PEOPLE.getName());
            p2.execSQL(v3_3.toString());
            p2.execSQL(com.mixpanel.android.mpmetrics.MPDbAdapter.access$000());
            p2.execSQL(com.mixpanel.android.mpmetrics.MPDbAdapter.access$100());
            p2.execSQL(com.mixpanel.android.mpmetrics.MPDbAdapter.access$200());
            p2.execSQL(com.mixpanel.android.mpmetrics.MPDbAdapter.access$300());
        } else {
            this.migrateTableFrom4To5(p2);
        }
        return;
    }

Method com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p3)
    {
        com.mixpanel.android.util.MPLog.v("MixpanelAPI.Database", "Creating a new Mixpanel events DB");
        p3.execSQL(com.mixpanel.android.mpmetrics.MPDbAdapter.access$000());
        p3.execSQL(com.mixpanel.android.mpmetrics.MPDbAdapter.access$100());
        p3.execSQL(com.mixpanel.android.mpmetrics.MPDbAdapter.access$200());
        p3.execSQL(com.mixpanel.android.mpmetrics.MPDbAdapter.access$300());
        return;
    }

Method com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper.migrateTableFrom4To5() calling method android.database.sqlite.SQLiteDatabase.execSQL()

Couldn't retrieve source code

Method com.google.android.gms.tagmanager.zzed.onOpen() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public final void onOpen(android.database.sqlite.SQLiteDatabase p5)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_10 = p5.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_10.moveToFirst();
                v0_10.close();
            } catch (android.database.sqlite.SQLiteException v5_15) {
                v0_10.close();
                throw v5_15;
            }
        }
        if (com.google.android.gms.tagmanager.zzed.zza("gtm_hits", p5)) {
            android.database.sqlite.SQLiteException v5_1 = p5.rawQuery("SELECT * FROM gtm_hits WHERE 0", 0);
            String v0_5 = new java.util.HashSet();
            try {
                String[] v1_1 = v5_1.getColumnNames();
                int v2_1 = 0;
            } catch (String v0_6) {
                v5_1.close();
                throw v0_6;
            }
            while (v2_1 < v1_1.length) {
                v0_5.add(v1_1[v2_1]);
                v2_1++;
            }
            v5_1.close();
            if ((!v0_5.remove("hit_id")) || ((!v0_5.remove("hit_url")) || ((!v0_5.remove("hit_time")) || (!v0_5.remove("hit_first_send_time"))))) {
                throw new android.database.sqlite.SQLiteException("Database column missing");
            } else {
                if (!v0_5.isEmpty()) {
                    throw new android.database.sqlite.SQLiteException("Database has extra columns");
                } else {
                    return;
                }
            }
        } else {
            p5.execSQL(com.google.android.gms.tagmanager.zzeb.zzoj());
            return;
        }
    }

Method com.google.android.gms.tagmanager.zzax.onOpen() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public final void onOpen(android.database.sqlite.SQLiteDatabase p5)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_10 = p5.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_10.moveToFirst();
                v0_10.close();
            } catch (android.database.sqlite.SQLiteException v5_15) {
                v0_10.close();
                throw v5_15;
            }
        }
        if (com.google.android.gms.tagmanager.zzax.zza("datalayer", p5)) {
            android.database.sqlite.SQLiteException v5_1 = p5.rawQuery("SELECT * FROM datalayer WHERE 0", 0);
            String v0_5 = new java.util.HashSet();
            try {
                String[] v1_1 = v5_1.getColumnNames();
                int v2_1 = 0;
            } catch (String v0_6) {
                v5_1.close();
                throw v0_6;
            }
            while (v2_1 < v1_1.length) {
                v0_5.add(v1_1[v2_1]);
                v2_1++;
            }
            v5_1.close();
            if ((!v0_5.remove("key")) || ((!v0_5.remove("value")) || ((!v0_5.remove("ID")) || (!v0_5.remove("expires"))))) {
                throw new android.database.sqlite.SQLiteException("Database column missing");
            } else {
                if (!v0_5.isEmpty()) {
                    throw new android.database.sqlite.SQLiteException("Database has extra columns");
                } else {
                    return;
                }
            }
        } else {
            p5.execSQL(com.google.android.gms.tagmanager.zzat.zznk());
            return;
        }
    }

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);
            }
            try {
                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;
                }
            } catch (com.google.android.gms.internal.measurement.zzfk v6_8) {
                p5.zziv().zzg("Failed to verify columns on table that was just created", p7);
                throw v6_8;
            }
        }
    }

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p9)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_13 = p9.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_13.moveToFirst();
                v0_13.close();
            } catch (android.database.sqlite.SQLiteException v9_10) {
                v0_13.close();
                throw v9_10;
            }
        }
        String v0_10;
        String v1_3 = 0;
        if (this.zza(p9, "hits2")) {
            String v0_6 = com.google.android.gms.internal.measurement.zzbd.zzb(p9, "hits2");
            boolean v3_1 = 0;
            while (v3_1 < 4) {
                String v4_2 = new String[] {"hit_id", "hit_string", "hit_time", "hit_url"})[v3_1];
                if (v0_6.remove(v4_2)) {
                    v3_1++;
                } else {
                    String v0_12;
                    String v1_5 = String.valueOf(v4_2);
                    if (v1_5.length() == 0) {
                        v0_12 = new String("Database hits2 is missing required column: ");
                    } else {
                        v0_12 = "Database hits2 is missing required column: ".concat(v1_5);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_12);
                }
            }
            int v2_4 = (v0_6.remove("hit_app_id") ^ 1);
            if (!v0_6.isEmpty()) {
                throw new android.database.sqlite.SQLiteException("Database hits2 has extra columns");
            } else {
                if (v2_4 != 0) {
                    v0_10 = "ALTER TABLE hits2 ADD COLUMN hit_app_id INTEGER";
                    p9.execSQL(v0_10);
                }
            }
        } else {
            v0_10 = com.google.android.gms.internal.measurement.zzbc.zzda();
        }
        if (this.zza(p9, "properties")) {
            android.database.sqlite.SQLiteException v9_6 = com.google.android.gms.internal.measurement.zzbd.zzb(p9, "properties");
            String v4 = "tid";
            String v6 = "adid";
            while (v1_3 < 6) {
                int v2_8 = new String[] {"app_uid", "hits_count"})[v1_3];
                if (v9_6.remove(v2_8)) {
                    v1_3++;
                } else {
                    String v0_1;
                    String v1_8 = String.valueOf(v2_8);
                    if (v1_8.length() == 0) {
                        v0_1 = new String("Database properties is missing required column: ");
                    } else {
                        v0_1 = "Database properties is missing required column: ".concat(v1_8);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_1);
                }
            }
            if (!v9_6.isEmpty()) {
                throw new android.database.sqlite.SQLiteException("Database properties table has extra columns");
            } else {
                return;
            }
        } else {
            p9.execSQL("CREATE TABLE IF NOT EXISTS properties ( app_uid INTEGER NOT NULL, cid TEXT NOT NULL, tid TEXT NOT NULL, params TEXT NOT NULL, adid INTEGER NOT NULL, hits_count INTEGER NOT NULL, PRIMARY KEY (app_uid, cid, tid)) ;");
            return;
        }
    }

Method com.google.android.gms.common.util.DbUtils.zza() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private static varargs void zza(android.database.sqlite.SQLiteDatabase p11, String p12, String[] p13)
    {
        if ((!"table".equals(p12)) && ((!"view".equals(p12)) && (!"trigger".equals(p12)))) {
            int v0_3 = 0;
        } else {
            v0_3 = 1;
        }
        com.google.android.gms.common.internal.Preconditions.checkArgument(v0_3);
        String[] v7 = new String[1];
        v7[0] = p12;
        int v0_6 = p11.query("SQLITE_MASTER", new String[] {"name"}), "type == ?", v7, 0, 0, 0);
        Throwable v1_1 = 0;
        try {
            java.util.Set v13_1 = com.google.android.gms.common.util.CollectionUtils.setOf(p13);
        } catch (Throwable v11_2) {
            if (v0_6 != 0) {
                if (v1_1 == null) {
                    v0_6.close();
                } else {
                    try {
                        v0_6.close();
                    } catch (Throwable v12_1) {
                        com.google.android.gms.internal.stable.zzk.zza(v1_1, v12_1);
                    }
                }
            }
            throw v11_2;
        } catch (Throwable v11_1) {
            v1_1 = v11_1;
            throw v1_1;
        }
        while (v0_6.moveToNext()) {
            String v3_2 = v0_6.getString(0);
            if (!v13_1.contains(v3_2)) {
                StringBuilder v5_4 = new StringBuilder(((String.valueOf(p12).length() + 8) + String.valueOf(v3_2).length()));
                v5_4.append("DROP ");
                v5_4.append(p12);
                v5_4.append(" \'");
                v5_4.append(v3_2);
                v5_4.append("\'");
                p11.execSQL(v5_4.toString());
            }
        }
        if (v0_6 != 0) {
            v0_6.close();
        }
        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.evernote.android.job.l$b.f() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void f(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("alter table jobs add column requiresBatteryNotLow integer;");
        p2.execSQL("alter table jobs add column requiresStorageNotLow integer;");
        return;
    }

Method com.evernote.android.job.l$b.e() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void e(android.database.sqlite.SQLiteDatabase p4)
    {
        try {
            p4.beginTransaction();
            StringBuilder v1_5 = new StringBuilder();
            v1_5.append("create table ");
            v1_5.append("jobs_new");
            v1_5.append(" (");
            v1_5.append("_id");
            v1_5.append(" integer primary key, ");
            v1_5.append("tag");
            v1_5.append(" text not null, ");
            v1_5.append("startMs");
            v1_5.append(" integer, ");
            v1_5.append("endMs");
            v1_5.append(" integer, ");
            v1_5.append("backoffMs");
            v1_5.append(" integer, ");
            v1_5.append("backoffPolicy");
            v1_5.append(" text not null, ");
            v1_5.append("intervalMs");
            v1_5.append(" integer, ");
            v1_5.append("requirementsEnforced");
            v1_5.append(" integer, ");
            v1_5.append("requiresCharging");
            v1_5.append(" integer, ");
            v1_5.append("requiresDeviceIdle");
            v1_5.append(" integer, ");
            v1_5.append("exact");
            v1_5.append(" integer, ");
            v1_5.append("networkType");
            v1_5.append(" text not null, ");
            v1_5.append("extras");
            v1_5.append(" text, ");
            v1_5.append("numFailures");
            v1_5.append(" integer, ");
            v1_5.append("scheduledAt");
            v1_5.append(" integer, ");
            v1_5.append("started");
            v1_5.append(" integer, ");
            v1_5.append("flexMs");
            v1_5.append(" integer, ");
            v1_5.append("flexSupport");
            v1_5.append(" integer, ");
            v1_5.append("lastRun");
            v1_5.append(" integer);");
            p4.execSQL(v1_5.toString());
            StringBuilder v1_8 = new StringBuilder();
            v1_8.append("INSERT INTO ");
            v1_8.append("jobs_new");
            v1_8.append(" SELECT ");
            v1_8.append("_id");
            v1_8.append(",");
            v1_8.append("tag");
            v1_8.append(",");
            v1_8.append("startMs");
            v1_8.append(",");
            v1_8.append("endMs");
            v1_8.append(",");
            v1_8.append("backoffMs");
            v1_8.append(",");
            v1_8.append("backoffPolicy");
            v1_8.append(",");
            v1_8.append("intervalMs");
            v1_8.append(",");
            v1_8.append("requirementsEnforced");
            v1_8.append(",");
            v1_8.append("requiresCharging");
            v1_8.append(",");
            v1_8.append("requiresDeviceIdle");
            v1_8.append(",");
            v1_8.append("exact");
            v1_8.append(",");
            v1_8.append("networkType");
            v1_8.append(",");
            v1_8.append("extras");
            v1_8.append(",");
            v1_8.append("numFailures");
            v1_8.append(",");
            v1_8.append("scheduledAt");
            v1_8.append(",");
            v1_8.append("isTransient");
            v1_8.append(",");
            v1_8.append("flexMs");
            v1_8.append(",");
            v1_8.append("flexSupport");
            v1_8.append(",");
            v1_8.append("lastRun");
            v1_8.append(" FROM ");
            v1_8.append("jobs");
            p4.execSQL(v1_8.toString());
            p4.execSQL("DROP TABLE jobs");
            StringBuilder v1_3 = new StringBuilder();
            v1_3.append("ALTER TABLE ");
            v1_3.append("jobs_new");
            v1_3.append(" RENAME TO ");
            v1_3.append("jobs");
            p4.execSQL(v1_3.toString());
            p4.execSQL("alter table jobs add column transient integer;");
            p4.setTransactionSuccessful();
            p4.endTransaction();
            return;
        } catch (Throwable v0_5) {
            p4.endTransaction();
            throw v0_5;
        }
    }

Method com.evernote.android.job.l$b.d() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void d(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("alter table jobs add column lastRun integer;");
        return;
    }

Method com.evernote.android.job.l$b.c() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void c(android.database.sqlite.SQLiteDatabase p6)
    {
        p6.execSQL("alter table jobs add column flexMs integer;");
        p6.execSQL("alter table jobs add column flexSupport integer;");
        String v0_4 = new android.content.ContentValues();
        v0_4.put("intervalMs", Long.valueOf(com.evernote.android.job.k.d));
        String v2_1 = new StringBuilder();
        v2_1.append("intervalMs>0 AND intervalMs<");
        v2_1.append(com.evernote.android.job.k.d);
        String[] v3_3 = new String[0];
        p6.update("jobs", v0_4, v2_1.toString(), v3_3);
        p6.execSQL("update jobs set flexMs = intervalMs;");
        return;
    }

Method com.evernote.android.job.l$b.b() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void b(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("alter table jobs add column isTransient integer;");
        return;
    }

Method com.evernote.android.job.l$b.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("create table jobs (_id integer primary key, tag text not null, startMs integer, endMs integer, backoffMs integer, backoffPolicy text not null, intervalMs integer, requirementsEnforced integer, requiresCharging integer, requiresDeviceIdle integer, exact integer, networkType text not null, extras text, numFailures integer, scheduledAt integer, started integer, flexMs integer, flexSupport integer, lastRun integer, transient integer, requiresBatteryNotLow integer, requiresStorageNotLow integer);");
        return;
    }

Method com.braintreepayments.api.internal.a.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        p1.execSQL("drop table if exists analytics");
        this.onCreate(p1);
        return;
    }

Method com.braintreepayments.api.internal.a.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("create table analytics(_id integer primary key autoincrement, event text not null, timestamp long not null, meta_json 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 p18, byte[] p19)
    {
        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(p18));
            v3_1.put("entry", p19);
            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) {
                            if (v7.inTransaction()) {
                                v7.endTransaction();
                            }
                        }
                        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;
                    if (v12 != 0) {
                        v12.close();
                    }
                    if (v9 != 0) {
                        v9.close();
                    }
                    throw v0_1;
                } 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_2 = this.getWritableDatabase();
            com.google.android.gms.internal.measurement.zzfg v4_0 = new String[2];
            v4_0[0] = p7;
            v4_0[1] = p8;
            return v1_2.delete("conditional_properties", "app_id=? and name=?", v4_0);
        } catch (android.database.sqlite.SQLiteException v1_1) {
            this.zzgi().zziv().zzd("Error deleting conditional property", com.google.android.gms.internal.measurement.zzfi.zzbp(p7), this.zzgf().zzbo(p8), v1_1);
            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_12 = this.zzgj().zzalw.get();
            String v2_1 = this.zzbt().elapsedRealtime();
            if (Math.abs((v2_1 - v0_12)) > ((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_7 = 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_8 = v0_7.delete("queue", "abs(bundle_end_timestamp - ?) > cast(? as integer)", v1_1);
                    if (v0_8 > null) {
                        this.zzgi().zzjc().zzg("Deleted stale rows. rowsDeleted", Integer.valueOf(v0_8));
                    }
                }
            }
            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_4 = 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;
            return ((long) v0_4.delete("raw_events", "rowid in (select rowid from raw_events where app_id=? order by rowid desc limit -1 offset ?)", v5_1));
        } catch (long v0_2) {
            this.zzgi().zziv().zze("Error deleting over the limit events. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p7), v0_2);
            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 p9, java.util.List p10)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p9);
        this.zzch();
        this.zzab();
        com.google.android.gms.internal.measurement.zzfk v0_2 = this.getWritableDatabase();
        try {
            String v4_9 = new String[1];
            v4_9[0] = p9;
            String v4_0 = this.zza("select count(1) from audience_filter_values where app_id=?", v4_9);
            String v2_3 = Math.max(0, Math.min(2000, this.zzgk().zzb(p9, com.google.android.gms.internal.measurement.zzez.zzajj)));
        } catch (String v10_1) {
            this.zzgi().zziv().zze("Database error querying filters. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p9), v10_1);
            return 0;
        }
        if (v4_0 > ((long) v2_3)) {
            String v4_3 = new java.util.ArrayList();
            int v5_0 = 0;
            while (v5_0 < p10.size()) {
                String v6_11 = ((Integer) p10.get(v5_0));
                if ((v6_11 != null) && ((v6_11 instanceof Integer))) {
                    v4_3.add(Integer.toString(v6_11.intValue()));
                    v5_0++;
                } else {
                    return 0;
                }
            }
            String v10_3 = android.text.TextUtils.join(",", v4_3);
            String v6_5 = new StringBuilder((String.valueOf(v10_3).length() + 2));
            v6_5.append("(");
            v6_5.append(v10_3);
            v6_5.append(")");
            String v10_5 = v6_5.toString();
            boolean v7_1 = new StringBuilder((String.valueOf(v10_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(v10_5);
            v7_1.append(" order by rowid desc limit -1 offset ?)");
            String v10_7 = v7_1.toString();
            int v5_2 = new String[2];
            v5_2[0] = p9;
            v5_2[1] = Integer.toString(v2_3);
            if (v0_2.delete("audience_filter_values", v10_7, v5_2) <= 0) {
                return 0;
            } else {
                return 1;
            }
        } else {
            return 0;
        }
    }

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


    public final void zzbn()
    {
        com.google.android.gms.analytics.zzk.zzab();
        this.zzch();
        this.zzq("Delete all hits from local store");
        try {
            String v0_7 = this.zzwz;
            com.google.android.gms.analytics.zzk.zzab();
            v0_7.zzch();
            v0_7.getWritableDatabase().delete("hits2", 0, 0);
            String v0_0 = this.zzwz;
            com.google.android.gms.analytics.zzk.zzab();
            v0_0.zzch();
            v0_0.getWritableDatabase().delete("properties", 0, 0);
            this.zzdi();
        } catch (String v0_3) {
            this.zzd("Failed to delete hits from store", v0_3);
        }
        this.zzdf();
        if (this.zzxc.zzct()) {
            this.zzq("Device service unavailable. Can\'t clear hits stored on the device service.");
        }
        return;
    }

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


    public final long zza(com.google.android.gms.internal.measurement.zzaw p11, boolean p12)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p11);
        this.zzch();
        com.google.android.gms.analytics.zzk.zzab();
        try {
            this.zzwz.beginTransaction();
            String v12_8 = this.zzwz;
            long v2_6 = p11.zzco();
            String v4_0 = p11.zzaz();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v4_0);
            v12_8.zzch();
            com.google.android.gms.analytics.zzk.zzab();
            int v5_1 = v12_8.getWritableDatabase();
            long v8_3 = new String[2];
            v8_3[0] = String.valueOf(v2_6);
            v8_3[1] = v4_0;
            long v2_2 = v5_1.delete("properties", "app_uid=? AND cid<>?", v8_3);
        } catch (android.database.sqlite.SQLiteException v11_10) {
            try {
                this.zzwz.endTransaction();
            } catch (String v12_4) {
                this.zze("Failed to end transaction", v12_4);
            }
            throw v11_10;
        } catch (android.database.sqlite.SQLiteException v11_7) {
            this.zze("Failed to update Analytics property", v11_7);
            try {
                this.zzwz.endTransaction();
            } catch (android.database.sqlite.SQLiteException v11_9) {
                this.zze("Failed to end transaction", v11_9);
            }
            return -1;
        }
        if (v2_2 > 0) {
            v12_8.zza("Deleted property records", Integer.valueOf(v2_2));
        }
        long v2_5 = this.zzwz.zza(p11.zzco(), p11.zzaz(), p11.zzcp());
        p11.zzb((1 + v2_5));
        String v12_7 = this.zzwz;
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p11);
        v12_7.zzch();
        com.google.android.gms.analytics.zzk.zzab();
        String v4_6 = v12_7.getWritableDatabase();
        int v5_3 = p11.zzcs();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(v5_3);
        android.content.ContentValues v6_2 = new android.net.Uri$Builder();
        int v5_5 = v5_3.entrySet().iterator();
        while (v5_5.hasNext()) {
            int v7_2 = ((java.util.Map$Entry) v5_5.next());
            v6_2.appendQueryParameter(((String) v7_2.getKey()), ((String) v7_2.getValue()));
        }
        int v5_7 = v6_2.build().getEncodedQuery();
        if (v5_7 == 0) {
            v5_7 = "";
        }
        android.content.ContentValues v6_4 = new android.content.ContentValues();
        v6_4.put("app_uid", Long.valueOf(p11.zzco()));
        v6_4.put("cid", p11.zzaz());
        v6_4.put("tid", p11.zzcp());
        v6_4.put("adid", Integer.valueOf(p11.zzcq()));
        v6_4.put("hits_count", Long.valueOf(p11.zzcr()));
        v6_4.put("params", v5_7);
        try {
            if (v4_6.insertWithOnConflict("properties", 0, v6_4, 5) == -1) {
                v12_7.zzu("Failed to insert/update a property (got -1)");
            }
        } catch (android.database.sqlite.SQLiteException v11_2) {
            v12_7.zze("Error storing a property", v11_2);
        }
        this.zzwz.setTransactionSuccessful();
        try {
            this.zzwz.endTransaction();
        } catch (android.database.sqlite.SQLiteException v11_6) {
            this.zze("Failed to end transaction", v11_6);
        }
        return v2_5;
    }

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


    public final int zzcx()
    {
        com.google.android.gms.analytics.zzk.zzab();
        this.zzch();
        if (this.zzww.zzj(86400000)) {
            this.zzww.start();
            this.zzq("Deleting stale hits (if any)");
            int v0_1 = this.getWritableDatabase();
            String[] v6_1 = new String[1];
            v6_1[0] = Long.toString((this.zzbt().currentTimeMillis() - 1.280618154e-314));
            int v0_3 = v0_1.delete("hits2", "hit_time < ?", v6_1);
            this.zza("Deleted stale hits, count", Integer.valueOf(v0_3));
            return v0_3;
        } else {
            return 0;
        }
    }

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


    public final void zza(java.util.List p8)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p8);
        com.google.android.gms.analytics.zzk.zzab();
        this.zzch();
        if (!p8.isEmpty()) {
            String v0_5 = new StringBuilder("hit_id");
            v0_5.append(" in (");
            int v1_0 = 0;
            while (v1_0 < p8.size()) {
                String v2_6 = ((Long) p8.get(v1_0));
                if ((v2_6 == null) || (v2_6.longValue() == 0)) {
                    throw new android.database.sqlite.SQLiteException("Invalid hit id");
                } else {
                    if (v1_0 > 0) {
                        v0_5.append(",");
                    }
                    v0_5.append(v2_6);
                    v1_0++;
                }
            }
            v0_5.append(")");
            String v0_0 = v0_5.toString();
            try {
                int v1_2 = this.getWritableDatabase();
                this.zza("Deleting dispatched hits. count", Integer.valueOf(p8.size()));
                int v1_3 = v1_2.delete("hits2", v0_0, 0);
            } catch (Integer v8_3) {
                this.zze("Error deleting hits", v8_3);
                throw v8_3;
            }
            if (v1_3 != p8.size()) {
                this.zzb("Deleted fewer hits then expected", Integer.valueOf(p8.size()), Integer.valueOf(v1_3), v0_0);
            }
            return;
        } else {
            return;
        }
    }

Method com.google.android.gms.tagmanager.zzeb.zzb() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzb(long p9, String p11)
    {
        android.database.sqlite.SQLiteDatabase v0_3 = this.clock.currentTimeMillis();
        if (v0_3 > (this.zzbbq + 86400000)) {
            this.zzbbq = v0_3;
            android.database.sqlite.SQLiteDatabase v0_2 = this.zzcy("Error opening database for deleteStaleHits.");
            if (v0_2 != null) {
                android.content.ContentValues v1_5;
                String[] v7 = new String[1];
                v7[0] = Long.toString((this.clock.currentTimeMillis() - 1.280618154e-314));
                v0_2.delete("gtm_hits", "HIT_TIME < ?", v7);
                if (this.zzoh() != 0) {
                    v1_5 = 0;
                } else {
                    v1_5 = 1;
                }
                this.zzbbo.zzo(v1_5);
            }
        }
        android.database.sqlite.SQLiteDatabase v0_7 = ((this.zzoh() - this.zzbbr) + 1);
        if (v0_7 > null) {
            android.database.sqlite.SQLiteDatabase v0_8 = this.zzx(v0_7);
            android.content.ContentValues v1_7 = v0_8.size();
            StringBuilder v3_1 = new StringBuilder(51);
            v3_1.append("Store full, deleting ");
            v3_1.append(v1_7);
            v3_1.append(" hits to make room.");
            com.google.android.gms.tagmanager.zzdi.v(v3_1.toString());
            android.content.ContentValues v1_10 = new String[0];
            this.zza(((String[]) v0_8.toArray(v1_10)));
        }
        android.database.sqlite.SQLiteDatabase v0_12 = this.zzcy("Error opening database for putHit");
        if (v0_12 != null) {
            android.content.ContentValues v1_12 = new android.content.ContentValues();
            v1_12.put("hit_time", Long.valueOf(p9));
            v1_12.put("hit_url", p11);
            v1_12.put("hit_first_send_time", Integer.valueOf(0));
            try {
                v0_12.insert("gtm_hits", 0, v1_12);
                this.zzbbo.zzo(0);
                return;
            } catch (android.database.sqlite.SQLiteException) {
                com.google.android.gms.tagmanager.zzdi.zzab("Error storing hit");
            }
        }
        return;
    }

Method com.google.android.gms.tagmanager.zzeb.zza() calling method android.database.sqlite.SQLiteDatabase.delete()


    private final void zza(String[] p8)
    {
        if ((p8 != null) && (p8.length != 0)) {
            int v0_3 = this.zzcy("Error opening database for deleteHits.");
            if (v0_3 != 0) {
                int v2 = 1;
                String v3_1 = new Object[1];
                v3_1[0] = android.text.TextUtils.join(",", java.util.Collections.nCopies(p8.length, "?"));
                try {
                    v0_3.delete("gtm_hits", String.format("HIT_ID in (%s)", v3_1), p8);
                } catch (android.database.sqlite.SQLiteException) {
                    com.google.android.gms.tagmanager.zzdi.zzab("Error deleting hits");
                }
                if (this.zzoh() != 0) {
                    v2 = 0;
                } else {
                }
                this.zzbbo.zzo(v2);
                return;
            } else {
                return;
            }
        }
        return;
    }

Method com.google.android.gms.tagmanager.zzat.zzcx() calling method android.database.sqlite.SQLiteDatabase.delete()


    private final void zzcx(String p8)
    {
        String v0_2 = this.zzcy("Error opening database for clearKeysWithPrefix.");
        if (v0_2 != null) {
            try {
                String[] v3_1 = new String[2];
                v3_1[0] = p8;
                v3_1[1] = String.valueOf(p8).concat(".%");
                String v0_1 = v0_2.delete("datalayer", "key = ? OR key LIKE ?", v3_1);
                StringBuilder v2_1 = new StringBuilder(25);
                v2_1.append("Cleared ");
                v2_1.append(v0_1);
                v2_1.append(" items");
                com.google.android.gms.tagmanager.zzdi.v(v2_1.toString());
                this.zznj();
                return;
            } catch (String v8_4) {
                this.zznj();
                throw v8_4;
            } catch (String v0_5) {
                String v0_6 = String.valueOf(v0_5);
                StringBuilder v2_5 = new StringBuilder(((String.valueOf(p8).length() + 44) + String.valueOf(v0_6).length()));
                v2_5.append("Error deleting entries with key prefix: ");
                v2_5.append(p8);
                v2_5.append(" (");
                v2_5.append(v0_6);
                v2_5.append(").");
                com.google.android.gms.tagmanager.zzdi.zzab(v2_5.toString());
                this.zznj();
                return;
            }
        } else {
            return;
        }
    }

Method com.google.android.gms.tagmanager.zzat.zzb() calling method android.database.sqlite.SQLiteDatabase.delete()


    private final declared_synchronized void zzb(java.util.List p11, long p12)
    {
        try {
            long v0_1 = this.clock.currentTimeMillis();
            this.zzan(v0_1);
            String v3_0 = ((this.zzni() - this.zzazj) + p11.size());
        } catch (Throwable v11_2) {
            this.zznj();
            throw v11_2;
        } catch (Throwable v11_3) {
            throw v11_3;
        }
        if (v3_0 > null) {
            String v2_0 = this.zzs(v3_0);
            String v3_3 = v2_0.size();
            String v5_1 = new StringBuilder(64);
            v5_1.append("DataLayer store full, deleting ");
            v5_1.append(v3_3);
            v5_1.append(" entries to make room.");
            com.google.android.gms.tagmanager.zzdi.zzcz(v5_1.toString());
            int v4_2 = new String[0];
            String v2_2 = ((String[]) v2_0.toArray(v4_2));
            if (v2_2 != null) {
                if (v2_2.length != 0) {
                    int v4_5 = this.zzcy("Error opening database for deleteEntries.");
                    if (v4_5 != 0) {
                        Object[] v6_1 = new Object[2];
                        v6_1[0] = "ID";
                        v6_1[1] = android.text.TextUtils.join(",", java.util.Collections.nCopies(v2_2.length, "?"));
                        v4_5.delete("datalayer", String.format("%s in (%s)", v6_1), v2_2);
                    }
                } else {
                }
            }
        }
        long v0_2 = (v0_1 + p12);
        android.database.sqlite.SQLiteDatabase v12_2 = this.zzcy("Error opening database for writeEntryToDatabase.");
        if (v12_2 != null) {
            Throwable v11_1 = p11.iterator();
            while (v11_1.hasNext()) {
                String v13_4 = ((com.google.android.gms.tagmanager.zzay) v11_1.next());
                String v2_9 = new android.content.ContentValues();
                v2_9.put("expires", Long.valueOf(v0_2));
                v2_9.put("key", v13_4.zzny);
                v2_9.put("value", v13_4.zzazp);
                v12_2.insert("datalayer", 0, v2_9);
            }
        }
        this.zznj();
        return;
    }

Method com.google.android.gms.tagmanager.zzat.zzan() calling method android.database.sqlite.SQLiteDatabase.delete()


    private final void zzan(long p6)
    {
        StringBuilder v0_3 = this.zzcy("Error opening database for deleteOlderThan.");
        if (v0_3 != null) {
            try {
                String[] v3_1 = new String[1];
                v3_1[0] = Long.toString(p6);
                String v6_2 = v0_3.delete("datalayer", "expires <= ?", v3_1);
                StringBuilder v0_2 = new StringBuilder(33);
                v0_2.append("Deleted ");
                v0_2.append(v6_2);
                v0_2.append(" expired items");
                com.google.android.gms.tagmanager.zzdi.v(v0_2.toString());
                return;
            } catch (android.database.sqlite.SQLiteException) {
                com.google.android.gms.tagmanager.zzdi.zzab("Error deleting old entries.");
                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_46 = v18_1.zzjh();
                    String v8_21 = v0_7.zzah();
                    v7_46.zzch();
                    v7_46.zzab();
                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v8_21);
                    try {
                        String v0_0 = v7_46.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_46.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_46.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_15;
                            String v0_11;
                            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_15 = p19.packageName;
                                    v8_6 = "_v";
                                    v0_11 = v0_12.zzf(v7_15, v8_6);
                                }
                            } else {
                                v0_12 = v18_1.zzjh();
                                v7_15 = 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_21;
                                            String v12_10 = new com.google.android.gms.internal.measurement.zzka;
                                            if (v0_42 == null) {
                                                v9_21 = 0;
                                            } else {
                                                v9_21 = 1;
                                            }
                                            com.google.android.gms.internal.measurement.zzka v3_12 = v12_10;
                                            v12_10("_fi", v5_6, Long.valueOf(v9_21), "auto");
                                            this.zzb(v3_12, p19);
                                        }
                                        try {
                                            String v0_49 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzacv.getContext()).getApplicationInfo(p19.packageName, 0);
                                        } catch (String v0_50) {
                                            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_50);
                                            v0_49 = 0;
                                        }
                                        if (v0_49 != null) {
                                            if ((v0_49.flags & 1) != 0) {
                                                v15_2.putLong("_sys", 1);
                                            }
                                            if ((v0_49.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_8 = new android.os.Bundle();
                            v7_8.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_8), "auto", v5_6);
                        }
                    } else {
                        if (v0_7.zzgu() == p19.zzafg) {
                        } else {
                            com.google.android.gms.internal.measurement.zzka v7_13 = new android.os.Bundle();
                            v7_13.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_13), "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_46 = v18_1.zzjh();
                    String v8_21 = v0_7.zzah();
                    v7_46.zzch();
                    v7_46.zzab();
                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v8_21);
                    try {
                        String v0_0 = v7_46.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_46.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_46.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_15;
                            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_15 = p19.packageName;
                                    v8_6 = "_v";
                                    v0_11 = v0_12.zzf(v7_15, v8_6);
                                }
                            } else {
                                v0_12 = v18_1.zzjh();
                                v7_15 = 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_21;
                                            String v12_10 = new com.google.android.gms.internal.measurement.zzka;
                                            if (v0_42 == null) {
                                                v9_21 = 0;
                                            } else {
                                                v9_21 = 1;
                                            }
                                            com.google.android.gms.internal.measurement.zzka v3_12 = v12_10;
                                            v12_10("_fi", v5_6, Long.valueOf(v9_21), "auto");
                                            this.zzb(v3_12, p19);
                                        }
                                        try {
                                            String v0_49 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzacv.getContext()).getApplicationInfo(p19.packageName, 0);
                                        } catch (String v0_50) {
                                            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_50);
                                            v0_49 = 0;
                                        }
                                        if (v0_49 != null) {
                                            if ((v0_49.flags & 1) != 0) {
                                                v15_2.putLong("_sys", 1);
                                            }
                                            if ((v0_49.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_8 = new android.os.Bundle();
                            v7_8.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_8), "auto", v5_6);
                        }
                    } else {
                        if (v0_7.zzgu() == p19.zzafg) {
                        } else {
                            com.google.android.gms.internal.measurement.zzka v7_13 = new android.os.Bundle();
                            v7_13.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_13), "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_46 = v18_1.zzjh();
                    String v8_21 = v0_7.zzah();
                    v7_46.zzch();
                    v7_46.zzab();
                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v8_21);
                    try {
                        String v0_0 = v7_46.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_46.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_46.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 v0_12;
                            com.google.android.gms.internal.measurement.zzka v7_15;
                            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_15 = p19.packageName;
                                    v8_6 = "_v";
                                    v0_11 = v0_12.zzf(v7_15, v8_6);
                                }
                            } else {
                                v0_12 = v18_1.zzjh();
                                v7_15 = 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_21;
                                            String v12_10 = new com.google.android.gms.internal.measurement.zzka;
                                            if (v0_42 == null) {
                                                v9_21 = 0;
                                            } else {
                                                v9_21 = 1;
                                            }
                                            com.google.android.gms.internal.measurement.zzka v3_12 = v12_10;
                                            v12_10("_fi", v5_6, Long.valueOf(v9_21), "auto");
                                            this.zzb(v3_12, p19);
                                        }
                                        try {
                                            String v0_49 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzacv.getContext()).getApplicationInfo(p19.packageName, 0);
                                        } catch (String v0_50) {
                                            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_50);
                                            v0_49 = 0;
                                        }
                                        if (v0_49 != null) {
                                            if ((v0_49.flags & 1) != 0) {
                                                v15_2.putLong("_sys", 1);
                                            }
                                            if ((v0_49.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_8 = new android.os.Bundle();
                            v7_8.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_8), "auto", v5_6);
                        }
                    } else {
                        if (v0_7.zzgu() == p19.zzafg) {
                        } else {
                            com.google.android.gms.internal.measurement.zzka v7_13 = new android.os.Bundle();
                            v7_13.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_13), "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_46 = v18_1.zzjh();
                    String v8_21 = v0_7.zzah();
                    v7_46.zzch();
                    v7_46.zzab();
                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v8_21);
                    try {
                        String v0_0 = v7_46.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_46.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_46.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_15;
                            String v0_11;
                            String v8_6;
                            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_15 = p19.packageName;
                                    v8_6 = "_v";
                                    v0_11 = v0_12.zzf(v7_15, v8_6);
                                }
                            } else {
                                v0_12 = v18_1.zzjh();
                                v7_15 = 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_21;
                                            String v12_10 = new com.google.android.gms.internal.measurement.zzka;
                                            if (v0_42 == null) {
                                                v9_21 = 0;
                                            } else {
                                                v9_21 = 1;
                                            }
                                            com.google.android.gms.internal.measurement.zzka v3_12 = v12_10;
                                            v12_10("_fi", v5_6, Long.valueOf(v9_21), "auto");
                                            this.zzb(v3_12, p19);
                                        }
                                        try {
                                            String v0_49 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzacv.getContext()).getApplicationInfo(p19.packageName, 0);
                                        } catch (String v0_50) {
                                            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_50);
                                            v0_49 = 0;
                                        }
                                        if (v0_49 != null) {
                                            if ((v0_49.flags & 1) != 0) {
                                                v15_2.putLong("_sys", 1);
                                            }
                                            if ((v0_49.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_8 = new android.os.Bundle();
                            v7_8.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_8), "auto", v5_6);
                        }
                    } else {
                        if (v0_7.zzgu() == p19.zzafg) {
                        } else {
                            com.google.android.gms.internal.measurement.zzka v7_13 = new android.os.Bundle();
                            v7_13.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_13), "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_46 = v18_1.zzjh();
                    String v8_21 = v0_7.zzah();
                    v7_46.zzch();
                    v7_46.zzab();
                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v8_21);
                    try {
                        String v0_0 = v7_46.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_46.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_46.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;
                            com.google.android.gms.internal.measurement.zzka v7_15;
                            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_15 = p19.packageName;
                                    v8_6 = "_v";
                                    v0_11 = v0_12.zzf(v7_15, v8_6);
                                }
                            } else {
                                v0_12 = v18_1.zzjh();
                                v7_15 = 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_21;
                                            String v12_10 = new com.google.android.gms.internal.measurement.zzka;
                                            if (v0_42 == null) {
                                                v9_21 = 0;
                                            } else {
                                                v9_21 = 1;
                                            }
                                            com.google.android.gms.internal.measurement.zzka v3_12 = v12_10;
                                            v12_10("_fi", v5_6, Long.valueOf(v9_21), "auto");
                                            this.zzb(v3_12, p19);
                                        }
                                        try {
                                            String v0_49 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzacv.getContext()).getApplicationInfo(p19.packageName, 0);
                                        } catch (String v0_50) {
                                            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_50);
                                            v0_49 = 0;
                                        }
                                        if (v0_49 != null) {
                                            if ((v0_49.flags & 1) != 0) {
                                                v15_2.putLong("_sys", 1);
                                            }
                                            if ((v0_49.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_8 = new android.os.Bundle();
                            v7_8.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_8), "auto", v5_6);
                        }
                    } else {
                        if (v0_7.zzgu() == p19.zzafg) {
                        } else {
                            com.google.android.gms.internal.measurement.zzka v7_13 = new android.os.Bundle();
                            v7_13.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_13), "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_46 = v18_1.zzjh();
                    String v8_21 = v0_7.zzah();
                    v7_46.zzch();
                    v7_46.zzab();
                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v8_21);
                    try {
                        String v0_0 = v7_46.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_46.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_46.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_15;
                            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_15 = p19.packageName;
                                    v8_6 = "_v";
                                    v0_11 = v0_12.zzf(v7_15, v8_6);
                                }
                            } else {
                                v0_12 = v18_1.zzjh();
                                v7_15 = 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_21;
                                            String v12_10 = new com.google.android.gms.internal.measurement.zzka;
                                            if (v0_42 == null) {
                                                v9_21 = 0;
                                            } else {
                                                v9_21 = 1;
                                            }
                                            com.google.android.gms.internal.measurement.zzka v3_12 = v12_10;
                                            v12_10("_fi", v5_6, Long.valueOf(v9_21), "auto");
                                            this.zzb(v3_12, p19);
                                        }
                                        try {
                                            String v0_49 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzacv.getContext()).getApplicationInfo(p19.packageName, 0);
                                        } catch (String v0_50) {
                                            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_50);
                                            v0_49 = 0;
                                        }
                                        if (v0_49 != null) {
                                            if ((v0_49.flags & 1) != 0) {
                                                v15_2.putLong("_sys", 1);
                                            }
                                            if ((v0_49.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_8 = new android.os.Bundle();
                            v7_8.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_8), "auto", v5_6);
                        }
                    } else {
                        if (v0_7.zzgu() == p19.zzafg) {
                        } else {
                            com.google.android.gms.internal.measurement.zzka v7_13 = new android.os.Bundle();
                            v7_13.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_13), "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_46 = v18_1.zzjh();
                    String v8_21 = v0_7.zzah();
                    v7_46.zzch();
                    v7_46.zzab();
                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v8_21);
                    try {
                        String v0_0 = v7_46.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_46.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_46.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_15;
                            v18_1.zzg(p19);
                            if (v15_3 != null) {
                                if (v15_3 != 1) {
                                    v0_11 = 0;
                                } else {
                                    v0_12 = v18_1.zzjh();
                                    v7_15 = p19.packageName;
                                    v8_6 = "_v";
                                    v0_11 = v0_12.zzf(v7_15, v8_6);
                                }
                            } else {
                                v0_12 = v18_1.zzjh();
                                v7_15 = 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_21;
                                            String v12_10 = new com.google.android.gms.internal.measurement.zzka;
                                            if (v0_42 == null) {
                                                v9_21 = 0;
                                            } else {
                                                v9_21 = 1;
                                            }
                                            com.google.android.gms.internal.measurement.zzka v3_12 = v12_10;
                                            v12_10("_fi", v5_6, Long.valueOf(v9_21), "auto");
                                            this.zzb(v3_12, p19);
                                        }
                                        try {
                                            String v0_49 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzacv.getContext()).getApplicationInfo(p19.packageName, 0);
                                        } catch (String v0_50) {
                                            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_50);
                                            v0_49 = 0;
                                        }
                                        if (v0_49 != null) {
                                            if ((v0_49.flags & 1) != 0) {
                                                v15_2.putLong("_sys", 1);
                                            }
                                            if ((v0_49.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_8 = new android.os.Bundle();
                            v7_8.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_8), "auto", v5_6);
                        }
                    } else {
                        if (v0_7.zzgu() == p19.zzafg) {
                        } else {
                            com.google.android.gms.internal.measurement.zzka v7_13 = new android.os.Bundle();
                            v7_13.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_13), "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_46 = v18_1.zzjh();
                    String v8_21 = v0_7.zzah();
                    v7_46.zzch();
                    v7_46.zzab();
                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v8_21);
                    try {
                        String v0_0 = v7_46.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_46.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_46.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;
                            String v0_12;
                            com.google.android.gms.internal.measurement.zzka v7_15;
                            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_15 = p19.packageName;
                                    v8_6 = "_v";
                                    v0_11 = v0_12.zzf(v7_15, v8_6);
                                }
                            } else {
                                v0_12 = v18_1.zzjh();
                                v7_15 = 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_21;
                                            String v12_10 = new com.google.android.gms.internal.measurement.zzka;
                                            if (v0_42 == null) {
                                                v9_21 = 0;
                                            } else {
                                                v9_21 = 1;
                                            }
                                            com.google.android.gms.internal.measurement.zzka v3_12 = v12_10;
                                            v12_10("_fi", v5_6, Long.valueOf(v9_21), "auto");
                                            this.zzb(v3_12, p19);
                                        }
                                        try {
                                            String v0_49 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzacv.getContext()).getApplicationInfo(p19.packageName, 0);
                                        } catch (String v0_50) {
                                            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_50);
                                            v0_49 = 0;
                                        }
                                        if (v0_49 != null) {
                                            if ((v0_49.flags & 1) != 0) {
                                                v15_2.putLong("_sys", 1);
                                            }
                                            if ((v0_49.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_8 = new android.os.Bundle();
                            v7_8.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_8), "auto", v5_6);
                        }
                    } else {
                        if (v0_7.zzgu() == p19.zzafg) {
                        } else {
                            com.google.android.gms.internal.measurement.zzka v7_13 = new android.os.Bundle();
                            v7_13.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_13), "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();
        if (p12 == null) {
            p12 = new byte[0];
        }
        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 p65, long p66)
    {
        this.zzjh().beginTransaction();
        try {
            android.database.sqlite.SQLiteException v3_0 = 0;
            com.google.android.gms.internal.measurement.zzfk v2_7 = new com.google.android.gms.internal.measurement.zzjt$zza(this, 0);
            Object v4_31 = this.zzjh();
            com.google.android.gms.internal.measurement.zzfk v5_123 = this.zzasl;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_7);
            v4_31.zzab();
            v4_31.zzch();
            try {
                int v23;
                String v22;
                Long v15_2 = v4_31.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        Boolean v12_30;
                        android.database.sqlite.SQLiteException v3_2 = v5_123 cmp -1;
                        if (v3_2 == null) {
                            v12_30 = new String[] {0});
                        } else {
                            v12_30 = new String[2];
                            v12_30[0] = 0;
                            v12_30[1] = String.valueOf(v5_123);
                        }
                        android.database.sqlite.SQLiteException v3_9;
                        if (v3_2 == null) {
                            v3_9 = "";
                        } else {
                            v3_9 = " and rowid <= ?";
                        }
                        long v14_12 = new StringBuilder((String.valueOf(v3_9).length() + 84));
                        v14_12.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_12.append(v3_9);
                        v14_12.append(" order by rowid limit 1;");
                        v3_0 = v15_2.rawQuery(v14_12.toString(), v12_30);
                        if (v3_0.moveToFirst()) {
                            Boolean v13_17 = v3_0.getString(0);
                            v3_0.close();
                            v23 = v3_0;
                            v22 = v13_17;
                            v3_0 = 0;
                            try {
                                Boolean v12_11 = new String[2];
                                v12_11[0] = v3_0;
                                v12_11[1] = v22;
                                android.database.sqlite.SQLiteDatabase v25 = v15_2;
                                Long v15_1 = v15_2.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_11, 0, 0, "rowid", "2");
                                try {
                                    if (v15_1.moveToFirst()) {
                                        Boolean v12_16 = v15_1.getBlob(0);
                                        Boolean v12_17 = com.google.android.gms.internal.measurement.zzaca.zza(v12_16, 0, v12_16.length);
                                        Boolean v13_6 = new com.google.android.gms.internal.measurement.zzku();
                                        try {
                                            v13_6.zzb(v12_17);
                                        } catch (android.database.sqlite.SQLiteException v0_5) {
                                            int v9_0 = v15_1;
                                            v4_31.zzgi().zziv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0), v0_5);
                                            if (v9_0 == 0) {
                                                android.database.sqlite.SQLiteException v3_7;
                                                if (v2_7.zzasr == null) {
                                                    v3_7 = 1;
                                                } else {
                                                    if (!v2_7.zzasr.isEmpty()) {
                                                        v3_7 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_7 != null) {
                                                    this.zzjh().setTransactionSuccessful();
                                                    this.zzjh().endTransaction();
                                                    return 0;
                                                } else {
                                                    android.database.sqlite.SQLiteException v3_8 = v2_7.zzasp;
                                                    Object v4_4 = new com.google.android.gms.internal.measurement.zzkr[v2_7.zzasr.size()];
                                                    v3_8.zzavi = v4_4;
                                                    Object v4_7 = this.zzacv.zzgk().zzaw(v3_8.zzth);
                                                    int v9_13 = 0;
                                                    Boolean v12_9 = 0;
                                                    Boolean v13_3 = 0;
                                                    long v14_2 = 0;
                                                    while (v9_13 < v2_7.zzasr.size()) {
                                                        String[] v44;
                                                        int v7_3 = ((com.google.android.gms.internal.measurement.zzkr) v2_7.zzasr.get(v9_13));
                                                        if (!this.zzky().zzn(v2_7.zzasp.zzth, v7_3.name)) {
                                                            com.google.android.gms.internal.measurement.zzfk v5_4 = this.zzky().zzo(v2_7.zzasp.zzth, v7_3.name);
                                                            if (v5_4 != null) {
                                                                if (v7_3.zzava == null) {
                                                                    com.google.android.gms.internal.measurement.zzet v8_4 = new com.google.android.gms.internal.measurement.zzks[0];
                                                                    v7_3.zzava = v8_4;
                                                                }
                                                                String v6_11 = v7_3.zzava;
                                                                com.google.android.gms.internal.measurement.zzet v8_5 = v6_11.length;
                                                                boolean v10_5 = 0;
                                                                long v11_3 = 0;
                                                                long v18_0 = 0;
                                                                while (v10_5 < v8_5) {
                                                                    int v32_1 = v8_5;
                                                                    com.google.android.gms.internal.measurement.zzet v8_46 = v6_11[v10_5];
                                                                    int v33_1 = v6_11;
                                                                    int v34_2 = v12_9;
                                                                    if (!"_c".equals(v8_46.name)) {
                                                                        if ("_r".equals(v8_46.name)) {
                                                                            v8_46.zzave = Long.valueOf(1);
                                                                            v18_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v8_46.zzave = Long.valueOf(1);
                                                                        v11_3 = 1;
                                                                    }
                                                                    v10_5++;
                                                                    v8_5 = v32_1;
                                                                    v6_11 = v33_1;
                                                                    v12_9 = v34_2;
                                                                }
                                                                int v34_0 = v12_9;
                                                                if ((v11_3 == 0) && (v5_4 != null)) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as conversion", this.zzacv.zzgf().zzbm(v7_3.name));
                                                                    String v6_17 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v7_3.zzava, (v7_3.zzava.length + 1)));
                                                                    com.google.android.gms.internal.measurement.zzet v8_11 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v8_11.name = "_c";
                                                                    v8_11.zzave = Long.valueOf(1);
                                                                    v6_17[(v6_17.length - 1)] = v8_11;
                                                                    v7_3.zzava = v6_17;
                                                                }
                                                                if (v18_0 == 0) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as real-time", this.zzacv.zzgf().zzbm(v7_3.name));
                                                                    String v6_23 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v7_3.zzava, (v7_3.zzava.length + 1)));
                                                                    com.google.android.gms.internal.measurement.zzet v8_17 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v8_17.name = "_r";
                                                                    v8_17.zzave = Long.valueOf(1);
                                                                    v6_23[(v6_23.length - 1)] = v8_17;
                                                                    v7_3.zzava = v6_23;
                                                                }
                                                                v44 = v9_13;
                                                                if (this.zzjh().zza(this.zzld(), v2_7.zzasp.zzth, 0, 0, 0, 0, 1).zzagx <= ((long) this.zzacv.zzgk().zzas(v2_7.zzasp.zzth))) {
                                                                    v12_9 = 1;
                                                                } else {
                                                                    String v6_31 = 0;
                                                                    while (v6_31 < v7_3.zzava.length) {
                                                                        if (!"_r".equals(v7_3.zzava[v6_31].name)) {
                                                                            v6_31++;
                                                                        } else {
                                                                            com.google.android.gms.internal.measurement.zzet v8_28 = new com.google.android.gms.internal.measurement.zzks[(v7_3.zzava.length - 1)];
                                                                            if (v6_31 > null) {
                                                                                System.arraycopy(v7_3.zzava, 0, v8_28, 0, v6_31);
                                                                            }
                                                                            if (v6_31 < v8_28.length) {
                                                                                System.arraycopy(v7_3.zzava, (v6_31 + 1), v8_28, v6_31, (v8_28.length - v6_31));
                                                                            }
                                                                            v7_3.zzava = v8_28;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_9 = v34_0;
                                                                }
                                                                if ((com.google.android.gms.internal.measurement.zzkd.zzcg(v7_3.name)) && ((v5_4 != null) && (this.zzjh().zza(this.zzld(), v2_7.zzasp.zzth, 0, 0, 1, 0, 0).zzagv > ((long) this.zzacv.zzgk().zzb(v2_7.zzasp.zzth, com.google.android.gms.internal.measurement.zzez.zzair))))) {
                                                                    this.zzacv.zzgi().zziy().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                                    com.google.android.gms.internal.measurement.zzfk v5_13 = v7_3.zzava;
                                                                    String v6_35 = v5_13.length;
                                                                    com.google.android.gms.internal.measurement.zzet v8_36 = 0;
                                                                    int v9_11 = 0;
                                                                    boolean v10_26 = 0;
                                                                    while (v8_36 < v6_35) {
                                                                        long v11_10 = v5_13[v8_36];
                                                                        if (!"_c".equals(v11_10.name)) {
                                                                            if ("_err".equals(v11_10.name)) {
                                                                                v9_11 = 1;
                                                                            }
                                                                        } else {
                                                                            v10_26 = v11_10;
                                                                        }
                                                                        v8_36++;
                                                                    }
                                                                    if ((v9_11 == 0) || (!v10_26)) {
                                                                        if (!v10_26) {
                                                                            this.zzacv.zzgi().zziv().zzg("Did not find conversion parameter. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                                        } else {
                                                                            v10_26.name = "_err";
                                                                            v10_26.zzave = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.measurement.zzfk v5_20 = v7_3.zzava;
                                                                        com.google.android.gms.internal.measurement.zzet v8_40 = new com.google.android.gms.internal.measurement.zzks[1];
                                                                        v8_40[0] = v10_26;
                                                                        v7_3.zzava = ((com.google.android.gms.internal.measurement.zzks[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v5_20, v8_40));
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzjf();
                                                                String v6_4 = v7_3.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v6_4);
                                                                com.google.android.gms.internal.measurement.zzet v8_3 = -1;
                                                                boolean v10_1 = v6_4.hashCode();
                                                                if (v10_1 == 94660) {
                                                                    if (v6_4.equals("_in")) {
                                                                        v8_3 = 0;
                                                                    }
                                                                } else {
                                                                    if (v10_1 == 95025) {
                                                                        if (v6_4.equals("_ug")) {
                                                                            v8_3 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v10_1 == 95027) {
                                                                            if (v6_4.equals("_ui")) {
                                                                                v8_3 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                String v6_8;
                                                                switch (v8_3) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v6_8 = 1;
                                                                    default:
                                                                        v6_8 = 0;
                                                                }
                                                                if (v6_8 == null) {
                                                                    v44 = v9_13;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v4_7 != null) && ("_e".equals(v7_3.name))) {
                                                                String v6_40;
                                                                com.google.android.gms.internal.measurement.zzfk v5_34;
                                                                com.google.android.gms.internal.measurement.zzet v8_43;
                                                                if (v7_3.zzava == null) {
                                                                    v5_34 = this.zzacv.zzgi().zziy();
                                                                    v6_40 = "Engagement event does not contain any parameters. appId";
                                                                    v8_43 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth);
                                                                } else {
                                                                    if (v7_3.zzava.length != 0) {
                                                                        this.zzjf();
                                                                        com.google.android.gms.internal.measurement.zzfk v5_30 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v7_3, "_et"));
                                                                        if (v5_30 != null) {
                                                                            v14_2 += v5_30.longValue();
                                                                            String v6_41 = (v13_3 + 1);
                                                                            v3_8.zzavi[v13_3] = v7_3;
                                                                            v13_3 = v6_41;
                                                                            v9_13 = (v44 + 1);
                                                                            long v11 = 1;
                                                                        } else {
                                                                            v5_34 = this.zzacv.zzgi().zziy();
                                                                            v6_40 = "Engagement event does not include duration. appId";
                                                                            v8_43 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth);
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                v5_34.zzg(v6_40, v8_43);
                                                            }
                                                        } else {
                                                            com.google.android.gms.internal.measurement.zzfk v5_49;
                                                            this.zzacv.zzgi().zziy().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth), this.zzacv.zzgf().zzbm(v7_3.name));
                                                            if (this.zzky().zzcb(v2_7.zzasp.zzth)) {
                                                                v5_49 = 1;
                                                            } else {
                                                                if (!this.zzky().zzcc(v2_7.zzasp.zzth)) {
                                                                    v5_49 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_49 == null) && (!"_err".equals(v7_3.name))) {
                                                                this.zzacv.zzgg().zza(v2_7.zzasp.zzth, 11, "_ev", v7_3.name, 0);
                                                            }
                                                            v44 = v9_13;
                                                        }
                                                    }
                                                    int v34_3 = v12_9;
                                                    if (v13_3 < v2_7.zzasr.size()) {
                                                        v3_8.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v3_8.zzavi, v13_3));
                                                    }
                                                    if (v4_7 != null) {
                                                        Object v4_12;
                                                        Object v4_9 = this.zzjh().zzh(v3_8.zzth, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.internal.measurement.zzkc;
                                                            v4_12(v3_8.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf(v14_2));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                com.google.android.gms.internal.measurement.zzfk v5_70 = new com.google.android.gms.internal.measurement.zzkc;
                                                                v5_70(v3_8.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v14_2)));
                                                                v4_12 = v5_70;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v5_73 = new com.google.android.gms.internal.measurement.zzkx();
                                                        v5_73.name = "_lte";
                                                        v5_73.zzaws = Long.valueOf(this.zzacv.zzbt().currentTimeMillis());
                                                        v5_73.zzave = ((Long) v4_12.value);
                                                        String v6_80 = 0;
                                                        while (v6_80 < v3_8.zzavj.length) {
                                                            if (!"_lte".equals(v3_8.zzavj[v6_80].name)) {
                                                                v6_80++;
                                                            } else {
                                                                v3_8.zzavj[v6_80] = v5_73;
                                                                String v6_81 = 1;
                                                            }
                                                            if (v6_81 == null) {
                                                                v3_8.zzavj = ((com.google.android.gms.internal.measurement.zzkx[]) java.util.Arrays.copyOf(v3_8.zzavj, (v3_8.zzavj.length + 1)));
                                                                v3_8.zzavj[(v2_7.zzasp.zzavj.length - 1)] = v5_73;
                                                            }
                                                            if (v14_2 > 0) {
                                                                this.zzjh().zza(v4_12);
                                                                this.zzacv.zzgi().zzjb().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_81 = 0;
                                                    }
                                                    v3_8.zzawa = this.zza(v3_8.zzth, v3_8.zzavj, v3_8.zzavi);
                                                    if (this.zzacv.zzgk().zzav(v2_7.zzasp.zzth)) {
                                                        Object v4_20 = new java.util.HashMap();
                                                        com.google.android.gms.internal.measurement.zzfk v5_84 = new com.google.android.gms.internal.measurement.zzkr[v3_8.zzavi.length];
                                                        String v6_0 = this.zzacv.zzgg().zzlo();
                                                        int v7_0 = v3_8.zzavi;
                                                        com.google.android.gms.internal.measurement.zzet v8_0 = v7_0.length;
                                                        int v9_1 = 0;
                                                        boolean v10_0 = 0;
                                                        while (v9_1 < v8_0) {
                                                            int v47;
                                                            boolean v48;
                                                            Boolean v12_7;
                                                            long v63;
                                                            long v11_14 = v7_0[v9_1];
                                                            if (!v11_14.name.equals("_ep")) {
                                                                int v7_45;
                                                                Boolean v13_20 = Long.valueOf(1);
                                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                                    v47 = v7_0;
                                                                    v48 = v8_0;
                                                                    v7_45 = 0;
                                                                } else {
                                                                    if (v13_20 != null) {
                                                                        long v14_17 = v11_14.zzava;
                                                                        Long v15_5 = v14_17.length;
                                                                        v47 = v7_0;
                                                                        int v7_35 = 0;
                                                                        while (v7_35 < v15_5) {
                                                                            v48 = v8_0;
                                                                            com.google.android.gms.internal.measurement.zzet v8_65 = v14_17[v7_35];
                                                                            if (!"_dbg".equals(v8_65.name)) {
                                                                                v7_35++;
                                                                                v8_0 = v48;
                                                                            } else {
                                                                                if (((!(v13_20 instanceof Long)) || (!v13_20.equals(v8_65.zzave))) && (((!(v13_20 instanceof String)) || (!v13_20.equals(v8_65.zzale))) && ((!(v13_20 instanceof Double)) || (!v13_20.equals(v8_65.zzasw))))) {
                                                                                } else {
                                                                                    v7_45 = 1;
                                                                                }
                                                                            }
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                int v7_46;
                                                                if (v7_45 != 0) {
                                                                    v7_46 = 1;
                                                                } else {
                                                                    v7_46 = this.zzky().zzp(v2_7.zzasp.zzth, v11_14.name);
                                                                }
                                                                int v7_56;
                                                                if (v7_46 > 0) {
                                                                    com.google.android.gms.internal.measurement.zzet v8_70 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v11_14.name));
                                                                    if (v8_70 == null) {
                                                                        v8_70 = this.zzjh().zzf(v2_7.zzasp.zzth, v11_14.name);
                                                                        if (v8_70 == null) {
                                                                            this.zzacv.zzgi().zziy().zze("Event being bundled has no eventAggregate. appId, eventName", v2_7.zzasp.zzth, v11_14.name);
                                                                            v8_70 = new com.google.android.gms.internal.measurement.zzet;
                                                                            v8_70(v2_7.zzasp.zzth, v11_14.name, 1, 1, v11_14.zzavb.longValue(), 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    Boolean v13_25;
                                                                    this.zzjf();
                                                                    Boolean v12_52 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v11_14, "_eid"));
                                                                    if (v12_52 == null) {
                                                                        v13_25 = 0;
                                                                    } else {
                                                                        v13_25 = 1;
                                                                    }
                                                                    Boolean v13_26 = Boolean.valueOf(v13_25);
                                                                    if (v7_46 != 1) {
                                                                        if (v6_0.nextInt(v7_46) != 0) {
                                                                            v63 = v6_0;
                                                                            if (Math.abs((v11_14.zzavb.longValue() - v8_70.zzahk)) < 86400000) {
                                                                                if (!v13_26.booleanValue()) {
                                                                                    v9_1++;
                                                                                    v7_0 = v47;
                                                                                    v8_0 = v48;
                                                                                    v6_0 = v63;
                                                                                } else {
                                                                                    v4_20.put(v11_14.name, v8_70.zza(v12_52, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.zzjf();
                                                                                v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_efs", Long.valueOf(1));
                                                                                this.zzjf();
                                                                                long v14_30 = ((long) v7_46);
                                                                                v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_sr", Long.valueOf(v14_30));
                                                                                String v6_134 = (v10_0 + 1);
                                                                                v5_84[v10_0] = v11_14;
                                                                                if (v13_26.booleanValue()) {
                                                                                    v8_70 = v8_70.zza(0, Long.valueOf(v14_30), Boolean.valueOf(1));
                                                                                }
                                                                                v4_20.put(v11_14.name, v8_70.zzai(v11_14.zzavb.longValue()));
                                                                                v10_0 = v6_134;
                                                                            }
                                                                        } else {
                                                                            this.zzjf();
                                                                            v63 = v6_0;
                                                                            String v6_135 = ((long) v7_46);
                                                                            v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_sr", Long.valueOf(v6_135));
                                                                            v12_7 = (v10_0 + 1);
                                                                            v5_84[v10_0] = v11_14;
                                                                            if (v13_26.booleanValue()) {
                                                                                v8_70 = v8_70.zza(0, Long.valueOf(v6_135), 0);
                                                                            }
                                                                            v4_20.put(v11_14.name, v8_70.zzai(v11_14.zzavb.longValue()));
                                                                            v10_0 = v12_7;
                                                                        }
                                                                    } else {
                                                                        v7_56 = (v10_0 + 1);
                                                                        v5_84[v10_0] = v11_14;
                                                                        if ((v13_26.booleanValue()) && ((v8_70.zzahl != null) || ((v8_70.zzahm != null) || (v8_70.zzahn != null)))) {
                                                                            v4_20.put(v11_14.name, v8_70.zza(0, 0, 0));
                                                                        }
                                                                    }
                                                                } else {
                                                                    this.zzacv.zzgi().zziy().zze("Sample rate must be positive. event, rate", v11_14.name, Integer.valueOf(v7_46));
                                                                    v7_56 = (v10_0 + 1);
                                                                    v5_84[v10_0] = v11_14;
                                                                }
                                                                v63 = v6_0;
                                                                v10_0 = v7_56;
                                                            } else {
                                                                this.zzjf();
                                                                Boolean v12_62 = ((String) com.google.android.gms.internal.measurement.zzjz.zzb(v11_14, "_en"));
                                                                Boolean v13_29 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v12_62));
                                                                if (v13_29 == null) {
                                                                    v13_29 = this.zzjh().zzf(v2_7.zzasp.zzth, v12_62);
                                                                    v4_20.put(v12_62, v13_29);
                                                                }
                                                                if (v13_29.zzahl != null) {
                                                                    v63 = v6_0;
                                                                    v47 = v7_0;
                                                                    v48 = v8_0;
                                                                } else {
                                                                    if (v13_29.zzahm.longValue() > 1) {
                                                                        this.zzjf();
                                                                        v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_sr", v13_29.zzahm);
                                                                    }
                                                                    if ((v13_29.zzahn != null) && (v13_29.zzahn.booleanValue())) {
                                                                        this.zzjf();
                                                                        v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_efs", Long.valueOf(1));
                                                                    }
                                                                    v12_7 = (v10_0 + 1);
                                                                    v5_84[v10_0] = v11_14;
                                                                    v63 = v6_0;
                                                                    v47 = v7_0;
                                                                    v48 = v8_0;
                                                                }
                                                            }
                                                        }
                                                        if (v10_0 < v3_8.zzavi.length) {
                                                            v3_8.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v5_84, v10_0));
                                                        }
                                                        Object v4_22 = v4_20.entrySet().iterator();
                                                        while (v4_22.hasNext()) {
                                                            this.zzjh().zza(((com.google.android.gms.internal.measurement.zzet) ((java.util.Map$Entry) v4_22.next()).getValue()));
                                                        }
                                                    }
                                                    v3_8.zzavl = Long.valueOf(nan);
                                                    v3_8.zzavm = Long.valueOf(-0.0);
                                                    Object v4_27 = 0;
                                                    while (v4_27 < v3_8.zzavi.length) {
                                                        com.google.android.gms.internal.measurement.zzfk v5_117 = v3_8.zzavi[v4_27];
                                                        if (v5_117.zzavb.longValue() < v3_8.zzavl.longValue()) {
                                                            v3_8.zzavl = v5_117.zzavb;
                                                        }
                                                        if (v5_117.zzavb.longValue() > v3_8.zzavm.longValue()) {
                                                            v3_8.zzavm = v5_117.zzavb;
                                                        }
                                                        v4_27++;
                                                    }
                                                    Object v4_29 = v2_7.zzasp.zzth;
                                                    com.google.android.gms.internal.measurement.zzfk v5_91 = this.zzjh().zzbf(v4_29);
                                                    if (v5_91 != null) {
                                                        if (v3_8.zzavi.length > 0) {
                                                            com.google.android.gms.internal.measurement.zzet v8_57;
                                                            String v6_94 = v5_91.zzgt();
                                                            if (v6_94 == 0) {
                                                                v8_57 = 0;
                                                            } else {
                                                                v8_57 = Long.valueOf(v6_94);
                                                            }
                                                            v3_8.zzavo = v8_57;
                                                            com.google.android.gms.internal.measurement.zzet v8_58 = v5_91.zzgs();
                                                            if (v8_58 != 0) {
                                                                v6_94 = v8_58;
                                                            } else {
                                                            }
                                                            String v6_95;
                                                            if (v6_94 == 0) {
                                                                v6_95 = 0;
                                                            } else {
                                                                v6_95 = Long.valueOf(v6_94);
                                                            }
                                                            v3_8.zzavn = v6_95;
                                                            v5_91.zzhb();
                                                            v3_8.zzavy = Integer.valueOf(((int) v5_91.zzgy()));
                                                            v5_91.zzr(v3_8.zzavl.longValue());
                                                            v5_91.zzs(v3_8.zzavm.longValue());
                                                            v3_8.zzafy = v5_91.zzhj();
                                                            this.zzjh().zza(v5_91);
                                                        }
                                                    } else {
                                                        this.zzacv.zzgi().zziv().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                    }
                                                    if (v3_8.zzavi.length > 0) {
                                                        com.google.android.gms.internal.measurement.zzfk v5_100;
                                                        this.zzacv.zzgl();
                                                        com.google.android.gms.internal.measurement.zzfk v5_99 = this.zzky().zzbx(v2_7.zzasp.zzth);
                                                        if (v5_99 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v2_7.zzasp.zzafa)) {
                                                                this.zzacv.zzgi().zziy().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                            } else {
                                                                v5_100 = Long.valueOf(-1);
                                                                v3_8.zzawf = v5_100;
                                                            }
                                                        } else {
                                                            if (v5_99.zzaum != null) {
                                                                v5_100 = v5_99.zzaum;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzjh().zza(v3_8, v34_3);
                                                    }
                                                    android.database.sqlite.SQLiteException v3_12 = this.zzjh();
                                                    com.google.android.gms.internal.measurement.zzfk v2_8 = v2_7.zzasq;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_8);
                                                    v3_12.zzab();
                                                    v3_12.zzch();
                                                    com.google.android.gms.internal.measurement.zzfk v5_110 = new StringBuilder("rowid in (");
                                                    String v6_111 = 0;
                                                    while (v6_111 < v2_8.size()) {
                                                        if (v6_111 != null) {
                                                            v5_110.append(",");
                                                        }
                                                        v5_110.append(((Long) v2_8.get(v6_111)).longValue());
                                                        v6_111++;
                                                    }
                                                    v5_110.append(")");
                                                    com.google.android.gms.internal.measurement.zzfk v5_112 = v3_12.getWritableDatabase().delete("raw_events", v5_110.toString(), 0);
                                                    if (v5_112 != v2_8.size()) {
                                                        v3_12.zzgi().zziv().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_112), Integer.valueOf(v2_8.size()));
                                                    }
                                                    com.google.android.gms.internal.measurement.zzfk v2_11 = this.zzjh();
                                                    android.database.sqlite.SQLiteException v3_15 = v2_11.getWritableDatabase();
                                                    try {
                                                        String v6_117 = new String[2];
                                                        v6_117[0] = v4_29;
                                                        v6_117[1] = v4_29;
                                                        v3_15.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_117);
                                                    } catch (android.database.sqlite.SQLiteException v0_10) {
                                                        v2_11.zzgi().zziv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v4_29), v0_10);
                                                    }
                                                    this.zzjh().setTransactionSuccessful();
                                                    this.zzjh().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v9_0.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                        }
                                        if (v15_1.moveToNext()) {
                                            v4_31.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_56;
                                        String[] v16_2;
                                        v15_1.close();
                                        v2_7.zzb(v13_6);
                                        if (v5_123 == -1) {
                                            v5_56 = "app_id = ? and metadata_fingerprint = ?";
                                            int v9_16 = new String[2];
                                            v9_16[0] = v3_0;
                                            v9_16[1] = v22;
                                            v16_2 = v9_16;
                                        } else {
                                            Boolean v12_22 = new String[3];
                                            v12_22[0] = v3_0;
                                            v12_22[1] = v22;
                                            v12_22[2] = String.valueOf(v5_123);
                                            v5_56 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_2 = v12_22;
                                        }
                                        v9_0 = v15_1;
                                        com.google.android.gms.internal.measurement.zzfk v5_58 = v25.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_56, v16_2, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_58.moveToFirst()) {
                                                do {
                                                    Boolean v12_26 = v5_58.getLong(0);
                                                    int v9_20 = v5_58.getBlob(3);
                                                    int v9_21 = com.google.android.gms.internal.measurement.zzaca.zza(v9_20, 0, v9_20.length);
                                                    long v14_9 = new com.google.android.gms.internal.measurement.zzkr();
                                                    v14_9.zzb(v9_21);
                                                    v14_9.name = v5_58.getString(1);
                                                    v14_9.zzavb = Long.valueOf(v5_58.getLong(2));
                                                    if (v2_7.zza(v12_26, v14_9)) {
                                                    } else {
                                                        if (v5_58 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_58.moveToNext());
                                                if (v5_58 == null) {
                                                }
                                            } else {
                                                v4_31.zzgi().zziy().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                                if (v5_58 == null) {
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_8) {
                                            com.google.android.gms.internal.measurement.zzfk v2_0 = v0_8;
                                            int v21 = v5_58;
                                            if (v21 != 0) {
                                                v21.close();
                                            }
                                            throw v2_0;
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            Boolean v12_5 = v3_0;
                                            v9_0 = v5_58;
                                            android.database.sqlite.SQLiteException v3_3 = v0_1;
                                            v4_31.zzgi().zziv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_5), v3_3);
                                            if (v9_0 == 0) {
                                            }
                                        }
                                        v5_58.close();
                                    } else {
                                        v4_31.zzgi().zziv().zzg("Raw event metadata record is missing. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                        if (v15_1 == null) {
                                        } else {
                                            v15_1.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_6) {
                                    v9_0 = v15_1;
                                    v2_0 = v0_6;
                                    v21 = v9_0;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v9_0 = v15_1;
                                } catch (android.database.sqlite.SQLiteException v0_9) {
                                    v2_0 = v0_9;
                                    v21 = v15_1;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v12_5 = v3_0;
                                    v9_0 = v15_1;
                                }
                                v12_5 = v3_0;
                            } catch (android.database.sqlite.SQLiteException v0_4) {
                                v2_0 = v0_4;
                                v21 = v23;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v12_5 = v3_0;
                                v9_0 = v23;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                            }
                        }
                    } else {
                        Boolean v13_18;
                        Boolean v12_39 = v5_123 cmp -1;
                        try {
                            if (v12_39 == null) {
                                v13_18 = new String[1];
                                v13_18[0] = String.valueOf(p66);
                            } else {
                                v13_18 = new String[2];
                                v13_18[0] = String.valueOf(v5_123);
                                v13_18[1] = String.valueOf(p66);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            v9_0 = 0;
                            v12_5 = 0;
                        }
                        Boolean v12_43;
                        if (v12_39 == null) {
                            v12_43 = "";
                        } else {
                            v12_43 = "rowid <= ? and ";
                        }
                        android.database.sqlite.SQLiteException v3_18 = new StringBuilder((String.valueOf(v12_43).length() + 148));
                        v3_18.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_18.append(v12_43);
                        v3_18.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_2.rawQuery(v3_18.toString(), v13_18);
                        if (v3_0.moveToFirst()) {
                            v12_5 = v3_0.getString(0);
                            try {
                                Boolean v13_1 = v3_0.getString(1);
                                v3_0.close();
                                v23 = v3_0;
                                v3_0 = v12_5;
                                v22 = v13_1;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v9_0 = v3_0;
                            }
                        } else {
                            if (v3_0 == null) {
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v2_0 = v0_2;
                    v21 = v3_0;
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v9_0 = v3_0;
                    v12_5 = 0;
                }
                v3_0.close();
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v2_0 = v0_0;
                v21 = 0;
            } catch (android.database.sqlite.SQLiteException v0_11) {
                v3_3 = v0_11;
                v9_0 = 0;
                v12_5 = 0;
            } catch (android.database.sqlite.SQLiteException v0_6) {
            }
        } catch (android.database.sqlite.SQLiteException v0_3) {
            com.google.android.gms.internal.measurement.zzfk v2_1 = v0_3;
            this.zzjh().endTransaction();
            throw v2_1;
        }
    }

Method com.mixpanel.android.mpmetrics.MPDbAdapter.cleanupEvents() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void cleanupEvents(String p5, com.mixpanel.android.mpmetrics.MPDbAdapter$Table p6, String p7, boolean p8)
    {
        String v6_1 = p6.getName();
        try {
            String v0_2 = this.mDb.getWritableDatabase();
            StringBuilder v2_1 = new StringBuilder();
            v2_1.append("_id <= ");
            v2_1.append(p5);
            v2_1.append(" AND ");
            v2_1.append("token");
            v2_1.append(" = \'");
            v2_1.append(p7);
            v2_1.append("\'");
            StringBuffer v1_0 = new StringBuffer(v2_1.toString());
        } catch (com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v5_9) {
            this.mDb.close();
            throw v5_9;
        } catch (com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v5_7) {
            StringBuilder v8_2 = new StringBuilder();
            v8_2.append("Could not clean sent Mixpanel records from ");
            v8_2.append(v6_1);
            v8_2.append(". Re-initializing database.");
            com.mixpanel.android.util.MPLog.e("MixpanelAPI.Database", v8_2.toString(), v5_7);
            this.mDb.deleteDatabase();
            this.mDb.close();
            return;
        }
        if (p8 == null) {
            v1_0.append(" AND automatic_data=0");
        }
        v0_2.delete(v6_1, v1_0.toString(), 0);
        this.mDb.close();
        return;
    }

Method com.mixpanel.android.mpmetrics.MPDbAdapter.cleanupEvents() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void cleanupEvents(long p4, com.mixpanel.android.mpmetrics.MPDbAdapter$Table p6)
    {
        String v6_1 = p6.getName();
        try {
            StringBuilder v0_3 = this.mDb.getWritableDatabase();
            String v1_2 = new StringBuilder();
            v1_2.append("created_at <= ");
            v1_2.append(p4);
            v0_3.delete(v6_1, v1_2.toString(), 0);
        } catch (com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v4_4) {
            this.mDb.close();
            throw v4_4;
        } catch (com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v4_2) {
            StringBuilder v0_1 = new StringBuilder();
            v0_1.append("Could not clean timed-out Mixpanel records from ");
            v0_1.append(v6_1);
            v0_1.append(". Re-initializing database.");
            com.mixpanel.android.util.MPLog.e("MixpanelAPI.Database", v0_1.toString(), v4_2);
            this.mDb.deleteDatabase();
        }
        this.mDb.close();
        return;
    }

Method com.mixpanel.android.mpmetrics.MPDbAdapter.cleanupAllEvents() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void cleanupAllEvents(com.mixpanel.android.mpmetrics.MPDbAdapter$Table p4, String p5)
    {
        com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v4_1 = p4.getName();
        try {
            String v0_2 = this.mDb.getWritableDatabase();
            StringBuilder v1_4 = new StringBuilder();
            v1_4.append("token = \'");
            v1_4.append(p5);
            v1_4.append("\'");
            v0_2.delete(v4_1, v1_4.toString(), 0);
        } catch (com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v4_5) {
            this.mDb.close();
            throw v4_5;
        } catch (com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v5_3) {
            StringBuilder v1_2 = new StringBuilder();
            v1_2.append("Could not clean timed-out Mixpanel records from ");
            v1_2.append(v4_1);
            v1_2.append(". Re-initializing database.");
            com.mixpanel.android.util.MPLog.e("MixpanelAPI.Database", v1_2.toString(), v5_3);
            this.mDb.deleteDatabase();
        }
        this.mDb.close();
        return;
    }

Method com.mixpanel.android.mpmetrics.MPDbAdapter.cleanupAutomaticEvents() calling method android.database.sqlite.SQLiteDatabase.delete()


    private void cleanupAutomaticEvents(com.mixpanel.android.mpmetrics.MPDbAdapter$Table p4, String p5)
    {
        com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v4_1 = p4.getName();
        try {
            String v0_2 = this.mDb.getWritableDatabase();
            StringBuilder v1_4 = new StringBuilder();
            v1_4.append("automatic_data = 1 AND token = \'");
            v1_4.append(p5);
            v1_4.append("\'");
            v0_2.delete(v4_1, v1_4.toString(), 0);
        } catch (com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v4_5) {
            this.mDb.close();
            throw v4_5;
        } catch (com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v5_3) {
            StringBuilder v1_2 = new StringBuilder();
            v1_2.append("Could not clean automatic Mixpanel records from ");
            v1_2.append(v4_1);
            v1_2.append(". Re-initializing database.");
            com.mixpanel.android.util.MPLog.e("MixpanelAPI.Database", v1_2.toString(), v5_3);
            this.mDb.deleteDatabase();
        }
        this.mDb.close();
        return;
    }

Method com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper.migrateTableFrom4To5() calling method android.database.sqlite.SQLiteDatabase.delete()

Couldn't retrieve source code

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_21) {
                try {
                    com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.this$0).get().endTransaction();
                } catch (Object[] v0_0) {
                    com.facebook.common.logging.FLog.w("ReactNative", v0_0.getMessage(), v0_0);
                    com.facebook.react.modules.storage.AsyncStorageErrorUtil.getError(0, v0_0.getMessage());
                }
                throw v9_21;
            } 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();
                } catch (String v3_13) {
                    com.facebook.common.logging.FLog.w("ReactNative", v3_13.getMessage(), v3_13);
                    if (v9_15 != null) {
                    } else {
                        v9_15 = com.facebook.react.modules.storage.AsyncStorageErrorUtil.getError(0, v3_13.getMessage());
                    }
                }
                v2_1 = v9_15;
                if (v2_1 == null) {
                    Object[] v0_4 = new Object[0];
                    this.val$callback.invoke(v0_4);
                } else {
                    com.facebook.react.bridge.Callback v9_19 = this.val$callback;
                    Object[] v0_5 = new Object[1];
                    v0_5[0] = v2_1;
                    v9_19.invoke(v0_5);
                }
                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_2 = new Object[1];
            v0_2[0] = com.facebook.react.modules.storage.AsyncStorageErrorUtil.getDBError(0);
            v9_2.invoke(v0_2);
            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.evernote.android.job.l.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    private boolean a(com.evernote.android.job.k p10, int p11)
    {
        this.h.writeLock().lock();
        try {
            this.c.remove(Integer.valueOf(p11));
            int v3_0 = this.b();
            try {
                String v5_0 = new String[1];
                v5_0[0] = String.valueOf(p11);
                v3_0.delete("jobs", "_id=?", v5_0);
                ark>com.evernote.android.job.lark>.a(v3_0);
                p10 = this.h.writeLock();
                p10.unlock();
                return 1;
            } catch (Exception v2_0) {
                Object[] v6_2 = new Object[2];
                v6_2[0] = Integer.valueOf(p11);
                v6_2[1] = p10;
                ark>com.evernote.android.job.lark>.a.b(v2_0, "could not delete %d %s", v6_2);
                this.b(p11);
                ark>com.evernote.android.job.lark>.a(v3_0);
                this.h.writeLock().unlock();
                return 0;
            }
        } catch (Throwable v10_1) {
            v3_0 = 0;
            ark>com.evernote.android.job.lark>.a(v3_0);
            this.h.writeLock().unlock();
            throw v10_1;
        } catch (int v3_1) {
            v3_0 = 0;
            v2_0 = v3_1;
            v6_2 = new Object[2];
            v6_2[0] = Integer.valueOf(p11);
            v6_2[1] = p10;
            ark>com.evernote.android.job.lark>.a.b(v2_0, "could not delete %d %s", v6_2);
            this.b(p11);
            ark>com.evernote.android.job.lark>.a(v3_0);
            this.h.writeLock().unlock();
            return 0;
        } catch (Throwable v10_1) {
        }
        v5_0 = new String[1];
        v5_0[0] = String.valueOf(p11);
        v3_0.delete("jobs", "_id=?", v5_0);
        ark>com.evernote.android.job.lark>.a(v3_0);
        p10 = this.h.writeLock();
        p10.unlock();
        return 1;
    }

Method com.braintreepayments.api.internal.a$2.run() calling method android.database.sqlite.SQLiteDatabase.delete()

Couldn't retrieve source code

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_11) {
                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_11;
            } 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();
                } catch (String v3_7) {
                    com.facebook.common.logging.FLog.w("ReactNative", v3_7.getMessage(), v3_7);
                    if (v7_6 != null) {
                    } else {
                        v7_6 = com.facebook.react.modules.storage.AsyncStorageErrorUtil.getError(0, v3_7.getMessage());
                    }
                }
                v2_0 = v7_6;
                if (v2_0 == null) {
                    Exception v0_4 = new Object[0];
                    this.val$callback.invoke(v0_4);
                } else {
                    String v7_10 = this.val$callback;
                    String v1_1 = new Object[1];
                    v1_1[0] = v2_0;
                    v7_10.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_24 = 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_24 != 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_21) {
                com.facebook.common.logging.FLog.w("ReactNative", v7_21.getMessage(), v7_21);
                v2_0 = com.facebook.react.modules.storage.AsyncStorageErrorUtil.getError(0, v7_21.getMessage());
            }
        } else {
            String v7_13 = this.val$callback;
            String v1_4 = new Object[1];
            v1_4[0] = com.facebook.react.modules.storage.AsyncStorageErrorUtil.getDBError(0);
            v7_13.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);
        java.util.Map v0_2 = new androidx.collection.a();
        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 v0_3 = java.util.Collections.emptyMap();
                    if (v14_1 != 0) {
                        v14_1.close();
                    }
                    return v0_3;
                }
            } catch (java.util.Map 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 (Throwable v13_1) {
            v14_1 = 0;
            if (v14_1 != 0) {
                v14_1.close();
            }
            throw v13_1;
        } catch (java.util.Map v0_0) {
            v14_1 = 0;
        } catch (Throwable 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);
        java.util.Map v0_2 = new androidx.collection.a();
        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 v0_3 = java.util.Collections.emptyMap();
                    if (v14_1 != 0) {
                        v14_1.close();
                    }
                    return v0_3;
                }
            } catch (java.util.Map 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 (Throwable v13_1) {
            v14_1 = 0;
            if (v14_1 != 0) {
                v14_1.close();
            }
            throw v13_1;
        } catch (java.util.Map v0_0) {
            v14_1 = 0;
        } catch (Throwable 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;
                    }
                    android.database.Cursor v17_1 = v0_6;
                    com.google.android.gms.internal.measurement.zzfk v0_9;
                    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()) {
                    androidx.collection.a v1_3 = new androidx.collection.a();
                    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 (androidx.collection.a 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 (androidx.collection.a 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();
        android.database.sqlite.SQLiteException v0_4 = new java.util.ArrayList();
        boolean v1_4 = 0;
        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";
            com.google.android.gms.internal.measurement.zzfk v2_2 = this.getWritableDatabase().query("conditional_properties", new String[] {"app_id", "expired_event"}), p25, p26, 0, 0, "rowid", "1001");
            try {
                if (!v2_2.moveToFirst()) {
                    if (v2_2 != null) {
                        v2_2.close();
                    }
                    return v0_4;
                }
            } catch (android.database.sqlite.SQLiteException v0_2) {
                if (v2_2 != null) {
                    v2_2.close();
                }
                throw v0_2;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v1_4 = v2_2;
                this.zzgi().zziv().zzg("Error querying conditional user property value", v0_0);
                android.database.sqlite.SQLiteException v0_1 = java.util.Collections.emptyList();
                if (v1_4) {
                    v1_4.close();
                }
                return v0_1;
            }
            while (v0_4.size() < 1000) {
                boolean v1_7 = 0;
                String v4_2 = v2_2.getString(0);
                com.google.android.gms.internal.measurement.zzex v11_1 = v2_2.getString(1);
                com.google.android.gms.internal.measurement.zzka v6_2 = v2_2.getString(2);
                int v9_2 = this.zza(v2_2, 3);
                if (v2_2.getInt(4) != 0) {
                    v1_7 = 1;
                }
                long v12_1 = v2_2.getString(5);
                long v13 = v2_2.getLong(6);
                com.google.android.gms.internal.measurement.zzex v16_2 = ((com.google.android.gms.internal.measurement.zzex) this.zzjf().zza(v2_2.getBlob(7), com.google.android.gms.internal.measurement.zzex.CREATOR));
                com.google.android.gms.internal.measurement.zzex v17_1 = v2_2.getLong(8);
                com.google.android.gms.internal.measurement.zzex v19_1 = ((com.google.android.gms.internal.measurement.zzex) this.zzjf().zza(v2_2.getBlob(9), com.google.android.gms.internal.measurement.zzex.CREATOR));
                long v7_4 = v2_2.getLong(10);
                long v20 = v2_2.getLong(11);
                com.google.android.gms.internal.measurement.zzex v22_1 = ((com.google.android.gms.internal.measurement.zzex) this.zzjf().zza(v2_2.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 v1_0 = v10_1;
                v10_1(v4_2, v11_1, v23, v17_1, v1_7, v12_1, v16_2, v13, v19_1, v20, v22_1);
                v0_4.add(v1_0);
                if (!v2_2.moveToNext()) {
                }
                if (v2_2 != null) {
                    v2_2.close();
                }
                return v0_4;
            }
            this.zzgi().zziv().zzg("Read more than the max allowed conditional properties, ignoring extra", Integer.valueOf(1000));
        } catch (android.database.sqlite.SQLiteException v0_2) {
            v2_2 = v1_4;
        } catch (android.database.sqlite.SQLiteException v0_0) {
        }
    }

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=?");
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v5_1 = p23;
                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(p23)) {
                v5_1 = p23;
            } else {
                v5_1 = p23;
                v2_4.add(p23);
                v4_4.append(" and origin=?");
            }
            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);
                } catch (android.database.sqlite.SQLiteException v0_0) {
                }
                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;
            }
            this.zzgi().zziv().zzg("Read more than the max allowed user properties, ignoring excess", Integer.valueOf(1000));
        } 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)
    {
        java.util.ArrayList v2_5;
        this.zzab();
        this.zzch();
        if (p14 <= null) {
            v2_5 = 0;
        } else {
            v2_5 = 1;
        }
        java.util.ArrayList v2_0;
        com.google.android.gms.common.internal.Preconditions.checkArgument(v2_5);
        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);
        java.util.ArrayList v2_1 = 0;
        try {
            int v3_0 = this.getWritableDatabase();
            Integer v7_1 = new String[1];
            v7_1[0] = p13;
            com.google.android.gms.internal.measurement.zzfk v14_1 = v3_0.query("queue", new String[] {"rowid", "data", "retry_count"}), "app_id=?", v7_1, 0, 0, "rowid", String.valueOf(p14));
            try {
                if (v14_1.moveToFirst()) {
                    java.util.ArrayList v2_4 = new java.util.ArrayList();
                    int v3_1 = 0;
                    do {
                        android.util.Pair v4_2 = v14_1.getLong(0);
                        int v6_3 = this.zzjf().zza(v14_1.getBlob(1));
                        if ((!v2_4.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 (!v14_1.isNull(2)) {
                            v8_2.zzawj = Integer.valueOf(v14_1.getInt(2));
                        }
                        v3_1 += v6_3.length;
                        v2_4.add(android.util.Pair.create(v8_2, Long.valueOf(v4_2)));
                    } while((v14_1.moveToNext()) && (v3_1 <= p15));
                    if (v14_1 != null) {
                        v14_1.close();
                    }
                    return v2_4;
                } else {
                    java.util.List v15_1 = java.util.Collections.emptyList();
                    if (v14_1 != null) {
                        v14_1.close();
                    }
                    return v15_1;
                }
            } catch (Throwable v13_3) {
                if (v14_1 != null) {
                    v14_1.close();
                }
                throw v13_3;
            } catch (java.util.List v15_2) {
                v2_1 = v14_1;
                this.zzgi().zziv().zze("Error querying bundles. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p13), v15_2);
                Throwable v13_2 = java.util.Collections.emptyList();
                if (v2_1 != null) {
                    v2_1.close();
                }
                return v13_2;
            }
        } catch (Throwable v13_3) {
            v14_1 = v2_1;
        } catch (java.util.List v15_2) {
        }
    }

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 p16, String p18, boolean p19, boolean p20, boolean p21, boolean p22, boolean p23)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p18);
        this.zzab();
        this.zzch();
        String v2_1 = new String[1];
        v2_1[0] = p18;
        com.google.android.gms.internal.measurement.zzel v4_1 = new com.google.android.gms.internal.measurement.zzel();
        String v5_8 = 0;
        try {
            android.database.sqlite.SQLiteDatabase v14 = this.getWritableDatabase();
            String[] v10 = "daily_public_events_count";
            int v12 = "daily_error_events_count";
            v10 = new String[1];
            v10[0] = p18;
            int v6_1 = v14.query("apps", new String[] {"day", "daily_realtime_events_count"}), "app_id=?", v10, 0, 0, 0);
            try {
                if (v6_1.moveToFirst()) {
                    if (v6_1.getLong(0) == p16) {
                        v4_1.zzagu = v6_1.getLong(1);
                        v4_1.zzagt = v6_1.getLong(2);
                        v4_1.zzagv = v6_1.getLong(3);
                        v4_1.zzagw = v6_1.getLong(4);
                        v4_1.zzagx = v6_1.getLong(5);
                    }
                    if (p19) {
                        v4_1.zzagu = (v4_1.zzagu + 1);
                    }
                    if (p20) {
                        v4_1.zzagt = (v4_1.zzagt + 1);
                    }
                    if (p21) {
                        v4_1.zzagv = (v4_1.zzagv + 1);
                    }
                    if (p22) {
                        v4_1.zzagw = (v4_1.zzagw + 1);
                    }
                    if (p23) {
                        v4_1.zzagx = (v4_1.zzagx + 1);
                    }
                    android.content.ContentValues v0_1 = new android.content.ContentValues();
                    v0_1.put("day", Long.valueOf(p16));
                    v0_1.put("daily_public_events_count", Long.valueOf(v4_1.zzagt));
                    v0_1.put("daily_events_count", Long.valueOf(v4_1.zzagu));
                    v0_1.put("daily_conversions_count", Long.valueOf(v4_1.zzagv));
                    v0_1.put("daily_error_events_count", Long.valueOf(v4_1.zzagw));
                    v0_1.put("daily_realtime_events_count", Long.valueOf(v4_1.zzagx));
                    v14.update("apps", v0_1, "app_id=?", v2_1);
                    if (v6_1 != 0) {
                        v6_1.close();
                    }
                    return v4_1;
                } else {
                    this.zzgi().zziy().zzg("Not updating daily counts, app is not known. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p18));
                    if (v6_1 != 0) {
                        v6_1.close();
                    }
                    return v4_1;
                }
            } catch (android.content.ContentValues v0_10) {
                if (v6_1 != 0) {
                    v6_1.close();
                }
                throw v0_10;
            } catch (android.content.ContentValues v0_5) {
                v5_8 = v6_1;
                this.zzgi().zziv().zze("Error updating daily counts. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p18), v0_5);
                if (v5_8 != null) {
                    v5_8.close();
                }
                return v4_1;
            }
        } catch (android.content.ContentValues v0_10) {
            v6_1 = v5_8;
        } catch (android.content.ContentValues v0_5) {
        }
    }

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


    public final java.util.List zzf(long p12)
    {
        this.zzch();
        com.google.android.gms.analytics.zzk.zzab();
        Throwable v0_1 = this.getWritableDatabase();
        try {
            String v13_3 = ((Integer) com.google.android.gms.internal.measurement.zzcc.zzyq.get()).intValue();
            Throwable v0_0 = v0_1.query("properties", new String[] {"cid", "tid", "adid", "hits_count", "params"}), "app_uid=?", new String[] {"0"}), 0, 0, 0, String.valueOf(v13_3));
            try {
                android.database.sqlite.SQLiteException v12_3 = new java.util.ArrayList();
            } catch (android.database.sqlite.SQLiteException v12_0) {
                this.zze("Error loading hits from the database", v12_0);
                throw v12_0;
            }
            if (v0_0.moveToFirst()) {
                do {
                    int v7_1;
                    String v5_1 = v0_0.getString(0);
                    String v6_1 = v0_0.getString(1);
                    if (v0_0.getInt(2) == 0) {
                        v7_1 = 0;
                    } else {
                        v7_1 = 1;
                    }
                    long v8_1 = ((long) v0_0.getInt(3));
                    java.util.Map vtmp15 = this.zzw(v0_0.getString(4));
                    if (android.text.TextUtils.isEmpty(v5_1)) {
                        this.zzc("Read property with empty client id or tracker id", v5_1, v6_1);
                    } else {
                        if (!android.text.TextUtils.isEmpty(v6_1)) {
                            boolean v1_11 = new com.google.android.gms.internal.measurement.zzaw;
                            v1_11(0, v5_1, v6_1, v7_1, v8_1, vtmp15);
                            v12_3.add(v1_11);
                        } else {
                        }
                    }
                } while(v0_0.moveToNext());
            }
            if (v12_3.size() >= v13_3) {
                this.zzt("Sending hits to too many properties. Campaign report might be incorrect");
            }
            if (v0_0 != null) {
                v0_0.close();
            }
            return v12_3;
        } catch (String v13_5) {
            v0_0 = 0;
            android.database.sqlite.SQLiteException v12_1 = v13_5;
            if (v0_0 != null) {
                v0_0.close();
            }
            throw v12_1;
        } catch (String v13_4) {
            v0_0 = 0;
            v12_0 = v13_4;
        } catch (android.database.sqlite.SQLiteException v12_1) {
        }
    }

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


    public final java.util.List zzd(long p14)
    {
        boolean v0_4;
        if (p14 < 0) {
            v0_4 = 0;
        } else {
            v0_4 = 1;
        }
        com.google.android.gms.common.internal.Preconditions.checkArgument(v0_4);
        com.google.android.gms.analytics.zzk.zzab();
        this.zzch();
        com.google.android.gms.internal.measurement.zzch v3_0 = this.getWritableDatabase();
        boolean v0_2 = 0;
        try {
            int v11_0 = new Object[1];
            v11_0[0] = "hit_id";
            String v14_1 = v3_0.query("hits2", new String[] {"hit_id", "hit_time", "hit_string", "hit_url", "hit_app_id"}), 0, 0, 0, 0, String.format("%s ASC", v11_0), Long.toString(p14));
            try {
                android.database.sqlite.SQLiteException v15_2 = new java.util.ArrayList();
            } catch (android.database.sqlite.SQLiteException v15_3) {
                v0_2 = v14_1;
                if (v0_2) {
                    v0_2.close();
                }
                throw v15_3;
            } catch (android.database.sqlite.SQLiteException v15_0) {
                v0_2 = v14_1;
                this.zze("Error loading hits from the database", v15_0);
                throw v15_0;
            }
            if (v14_1.moveToFirst()) {
                do {
                    boolean v0_7 = new com.google.android.gms.internal.measurement.zzch;
                    v0_7(this, this.zzv(v14_1.getString(2)), v14_1.getLong(1), com.google.android.gms.internal.measurement.zzdd.zzah(v14_1.getString(3)), v14_1.getLong(0), v14_1.getInt(4));
                    v15_2.add(v0_7);
                } while(v14_1.moveToNext());
            }
            if (v14_1 != null) {
                v14_1.close();
            }
            return v15_2;
        } catch (android.database.sqlite.SQLiteException v15_3) {
        } catch (android.database.sqlite.SQLiteException v15_0) {
        }
    }

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


    private final java.util.List zzc(long p14)
    {
        com.google.android.gms.analytics.zzk.zzab();
        this.zzch();
        if (p14 > 0) {
            long v0_3 = this.getWritableDatabase();
            java.util.ArrayList v9_1 = new java.util.ArrayList();
            String v10 = 0;
            try {
                String v8_1 = new Object[1];
                v8_1[0] = "hit_id";
                String v14_1 = v0_3.query("hits2", new String[] {"hit_id"}), 0, 0, 0, 0, String.format("%s ASC", v8_1), Long.toString(p14));
                try {
                    if (v14_1.moveToFirst()) {
                        do {
                            v9_1.add(Long.valueOf(v14_1.getLong(0)));
                        } while(v14_1.moveToNext());
                    }
                } catch (boolean v15_2) {
                    v10 = v14_1;
                    if (v10 != null) {
                        v10.close();
                    }
                    throw v15_2;
                } catch (boolean v15_0) {
                    v10 = v14_1;
                    this.zzd("Error selecting hit ids", v15_0);
                    if (v10 == null) {
                        return v9_1;
                    } else {
                        v10.close();
                        return v9_1;
                    }
                }
                if (v14_1 == null) {
                    return v9_1;
                } else {
                    v14_1.close();
                    return v9_1;
                }
            } catch (boolean v15_2) {
            } catch (boolean v15_0) {
            }
        } else {
            return java.util.Collections.emptyList();
        }
    }

Method com.google.android.gms.tagmanager.zzeb.zzy() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List zzy(int p17)
    {
        boolean v1_1 = new java.util.ArrayList();
        int v0_13 = this.zzcy("Error opening database for peekHits");
        if (v0_13 != 0) {
            java.util.ArrayList v12_3 = 0;
            try {
                String v10_1 = new Object[1];
                int v14 = 0;
                v10_1[0] = "hit_id";
                String v11_3 = v0_13.query("gtm_hits", new String[] {"hit_id", "hit_time", "hit_first_send_time"}), 0, 0, 0, 0, String.format("%s ASC", v10_1), Integer.toString(40));
                try {
                    java.util.ArrayList v12_2 = new java.util.ArrayList();
                    try {
                        if (v11_3.moveToFirst()) {
                            try {
                                do {
                                    boolean v1_15 = new com.google.android.gms.tagmanager.zzbw;
                                    v1_15(v11_3.getLong(0), v11_3.getLong(1), v11_3.getLong(2));
                                    v12_2.add(v1_15);
                                } while(v11_3.moveToNext());
                            } catch (int v0_12) {
                                v12_3 = v11_3;
                                if (v12_3 != null) {
                                    v12_3.close();
                                }
                                throw v0_12;
                            } catch (int v0_11) {
                                v1_1 = v12_2;
                                v12_3 = v11_3;
                                int v0_15 = String.valueOf(v0_11.getMessage());
                                if (v0_15.length() == 0) {
                                    int v0_17 = new String("Error in peekHits fetching hitIds: ");
                                } else {
                                    v0_17 = "Error in peekHits fetching hitIds: ".concat(v0_15);
                                }
                                com.google.android.gms.tagmanager.zzdi.zzab(v0_17);
                                if (v12_3 != null) {
                                    v12_3.close();
                                }
                                return v1_1;
                            }
                            if (!v11_3.moveToNext()) {
                            }
                        }
                    } catch (int v0_11) {
                        String v15_2 = v11_3;
                        v1_1 = v12_2;
                        v12_3 = v15_2;
                    }
                    if (v11_3 != null) {
                        v11_3.close();
                    }
                    try {
                        int v3_12 = new Object[1];
                        v3_12[0] = "hit_id";
                        String v15_0 = v11_3;
                        String v11_0 = Integer.toString(40);
                        try {
                            v11_0 = v0_13.query("gtm_hits", new String[] {"hit_id", "hit_url"}), 0, 0, 0, 0, String.format("%s ASC", v3_12), v11_0);
                            try {
                                if (v11_0.moveToFirst()) {
                                    int v0_3 = 0;
                                    do {
                                        if (((android.database.sqlite.SQLiteCursor) v11_0).getWindow().getNumRows() <= 0) {
                                            int v3_1 = new Object[1];
                                            v3_1[0] = Long.valueOf(((com.google.android.gms.tagmanager.zzbw) v12_2.get(v0_3)).zznu());
                                            com.google.android.gms.tagmanager.zzdi.zzab(String.format("HitString for hitId %d too large.  Hit will be deleted.", v3_1));
                                        } else {
                                            ((com.google.android.gms.tagmanager.zzbw) v12_2.get(v0_3)).zzdf(v11_0.getString(1));
                                        }
                                        v0_3++;
                                    } while(v11_0.moveToNext());
                                }
                            } catch (int v0_0) {
                                int v0_5 = String.valueOf(v0_0.getMessage());
                                if (v0_5.length() == 0) {
                                    int v0_7 = new String("Error in peekHits fetching hit url: ");
                                } else {
                                    v0_7 = "Error in peekHits fetching hit url: ".concat(v0_5);
                                }
                                com.google.android.gms.tagmanager.zzdi.zzab(v0_7);
                                int v0_9 = new java.util.ArrayList();
                                java.util.ArrayList v12_0 = ((java.util.ArrayList) v12_2);
                                boolean v1_12 = v12_0.size();
                                int v3_4 = 0;
                            }
                            if (v11_0 != null) {
                                v11_0.close();
                            }
                            return v12_2;
                        } catch (int v0_1) {
                            v11_0 = v15_0;
                            if (v11_0 != null) {
                                v11_0.close();
                            }
                            throw v0_1;
                        } catch (int v0_0) {
                            v11_0 = v15_0;
                        }
                    } catch (int v0_1) {
                    } catch (int v0_0) {
                    } catch (int v0_1) {
                    }
                } catch (int v0_12) {
                    v12_3 = v11_3;
                } catch (int v0_11) {
                    v15_2 = v11_3;
                }
            } catch (int v0_12) {
            } catch (int v0_11) {
            }
        } else {
            return v1_1;
        }
    }

Method com.google.android.gms.tagmanager.zzeb.zzx() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List zzx(int p15)
    {
        Throwable v0_1 = new java.util.ArrayList();
        if (p15 > null) {
            String v2_1 = this.zzcy("Error opening database for peekHitIds.");
            if (v2_1 != null) {
                boolean v1_3 = 0;
                try {
                    String v10_1 = new Object[1];
                    v10_1[0] = "hit_id";
                    String v15_1 = v2_1.query("gtm_hits", new String[] {"hit_id"}), 0, 0, 0, 0, String.format("%s ASC", v10_1), Integer.toString(p15));
                    try {
                        if (v15_1.moveToFirst()) {
                            do {
                                v0_1.add(String.valueOf(v15_1.getLong(0)));
                            } while(v15_1.moveToNext());
                        }
                    } catch (Throwable v0_2) {
                        v1_3 = v15_1;
                        if (v1_3) {
                            v1_3.close();
                        }
                        throw v0_2;
                    } catch (boolean v1_2) {
                        v1_3 = v15_1;
                        String v15_2 = v1_2;
                        String v15_4 = String.valueOf(v15_2.getMessage());
                        if (v15_4.length() == 0) {
                            String v15_6 = new String("Error in peekHits fetching hitIds: ");
                        } else {
                            v15_6 = "Error in peekHits fetching hitIds: ".concat(v15_4);
                        }
                        com.google.android.gms.tagmanager.zzdi.zzab(v15_6);
                        if (!v1_3) {
                            return v0_1;
                        } else {
                            v1_3.close();
                            return v0_1;
                        }
                    }
                    if (v15_1 == null) {
                        return v0_1;
                    } else {
                        v15_1.close();
                        return v0_1;
                    }
                } catch (Throwable v0_2) {
                } catch (String v15_2) {
                }
            } else {
                return v0_1;
            }
        } else {
            com.google.android.gms.tagmanager.zzdi.zzab("Invalid maxHits specified. Skipping");
            return v0_1;
        }
    }

Method com.google.android.gms.tagmanager.zzeb.zzoi() calling method android.database.sqlite.SQLiteDatabase.query()


    private final int zzoi()
    {
        String v1_1 = this.zzcy("Error opening database for getNumStoredHits.");
        int v0_2 = 0;
        if (v1_1 != null) {
            String v9 = 0;
            try {
                String v1_0 = v1_1.query("gtm_hits", new String[] {"hit_id", "hit_first_send_time"}), "hit_first_send_time=0", 0, 0, 0, 0);
                try {
                    int v2_0 = v1_0.getCount();
                } catch (int v0_1) {
                    v9 = v1_0;
                    if (v9 != null) {
                        v9.close();
                    }
                    throw v0_1;
                } catch (android.database.sqlite.SQLiteException) {
                    v9 = v1_0;
                    com.google.android.gms.tagmanager.zzdi.zzab("Error getting num untried hits");
                    if (v9 == null) {
                        return v0_2;
                    } else {
                        v9.close();
                        return v0_2;
                    }
                }
                if (v1_0 != null) {
                    v1_0.close();
                }
                v0_2 = v2_0;
                return v0_2;
            } catch (int v0_1) {
            }
        } else {
            return 0;
        }
    }

Method com.google.android.gms.tagmanager.zzat.zzs() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List zzs(int p15)
    {
        Throwable v0_1 = new java.util.ArrayList();
        if (p15 > null) {
            String v2_1 = this.zzcy("Error opening database for peekEntryIds.");
            if (v2_1 != null) {
                boolean v1_3 = 0;
                try {
                    String v10_1 = new Object[1];
                    v10_1[0] = "ID";
                    String v15_1 = v2_1.query("datalayer", new String[] {"ID"}), 0, 0, 0, 0, String.format("%s ASC", v10_1), Integer.toString(p15));
                    try {
                        if (v15_1.moveToFirst()) {
                            do {
                                v0_1.add(String.valueOf(v15_1.getLong(0)));
                            } while(v15_1.moveToNext());
                        }
                    } catch (Throwable v0_2) {
                        v1_3 = v15_1;
                        if (v1_3) {
                            v1_3.close();
                        }
                        throw v0_2;
                    } catch (boolean v1_2) {
                        v1_3 = v15_1;
                        String v15_2 = v1_2;
                        String v15_4 = String.valueOf(v15_2.getMessage());
                        if (v15_4.length() == 0) {
                            String v15_6 = new String("Error in peekEntries fetching entryIds: ");
                        } else {
                            v15_6 = "Error in peekEntries fetching entryIds: ".concat(v15_4);
                        }
                        com.google.android.gms.tagmanager.zzdi.zzab(v15_6);
                        if (!v1_3) {
                            return v0_1;
                        } else {
                            v1_3.close();
                            return v0_1;
                        }
                    }
                    if (v15_1 == null) {
                        return v0_1;
                    } else {
                        v15_1.close();
                        return v0_1;
                    }
                } catch (Throwable v0_2) {
                } catch (String v15_2) {
                }
            } else {
                return v0_1;
            }
        } else {
            com.google.android.gms.tagmanager.zzdi.zzab("Invalid maxEntries specified. Skipping.");
            return v0_1;
        }
    }

Method com.google.android.gms.tagmanager.zzat.zznh() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List zznh()
    {
        android.database.Cursor v1_1 = this.zzcy("Error opening database for loadSerialized.");
        Throwable v0_3 = new java.util.ArrayList();
        if (v1_1 != null) {
            android.database.Cursor v1_0 = v1_1.query("datalayer", new String[] {"key", "value"}), 0, 0, 0, 0, "ID", 0);
            try {
                while (v1_0.moveToNext()) {
                    v0_3.add(new com.google.android.gms.tagmanager.zzay(v1_0.getString(0), v1_0.getBlob(1)));
                }
            } catch (Throwable v0_1) {
                v1_0.close();
                throw v0_1;
            }
            v1_0.close();
            return v0_3;
        } else {
            return v0_3;
        }
    }

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


    private final boolean zzd(String p65, long p66)
    {
        this.zzjh().beginTransaction();
        try {
            android.database.sqlite.SQLiteException v3_0 = 0;
            com.google.android.gms.internal.measurement.zzfk v2_7 = new com.google.android.gms.internal.measurement.zzjt$zza(this, 0);
            Object v4_31 = this.zzjh();
            com.google.android.gms.internal.measurement.zzfk v5_123 = this.zzasl;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_7);
            v4_31.zzab();
            v4_31.zzch();
            try {
                String v22;
                int v23;
                Long v15_2 = v4_31.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        Boolean v12_30;
                        android.database.sqlite.SQLiteException v3_2 = v5_123 cmp -1;
                        if (v3_2 == null) {
                            v12_30 = new String[] {0});
                        } else {
                            v12_30 = new String[2];
                            v12_30[0] = 0;
                            v12_30[1] = String.valueOf(v5_123);
                        }
                        android.database.sqlite.SQLiteException v3_9;
                        if (v3_2 == null) {
                            v3_9 = "";
                        } else {
                            v3_9 = " and rowid <= ?";
                        }
                        long v14_12 = new StringBuilder((String.valueOf(v3_9).length() + 84));
                        v14_12.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_12.append(v3_9);
                        v14_12.append(" order by rowid limit 1;");
                        v3_0 = v15_2.rawQuery(v14_12.toString(), v12_30);
                        if (v3_0.moveToFirst()) {
                            Boolean v13_17 = v3_0.getString(0);
                            v3_0.close();
                            v23 = v3_0;
                            v22 = v13_17;
                            v3_0 = 0;
                            try {
                                Boolean v12_11 = new String[2];
                                v12_11[0] = v3_0;
                                v12_11[1] = v22;
                                android.database.sqlite.SQLiteDatabase v25 = v15_2;
                                Long v15_1 = v15_2.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_11, 0, 0, "rowid", "2");
                                try {
                                    if (v15_1.moveToFirst()) {
                                        Boolean v12_16 = v15_1.getBlob(0);
                                        Boolean v12_17 = com.google.android.gms.internal.measurement.zzaca.zza(v12_16, 0, v12_16.length);
                                        Boolean v13_6 = new com.google.android.gms.internal.measurement.zzku();
                                        try {
                                            v13_6.zzb(v12_17);
                                        } catch (android.database.sqlite.SQLiteException v0_5) {
                                            int v9_0 = v15_1;
                                            v4_31.zzgi().zziv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0), v0_5);
                                            if (v9_0 == 0) {
                                                android.database.sqlite.SQLiteException v3_7;
                                                if (v2_7.zzasr == null) {
                                                    v3_7 = 1;
                                                } else {
                                                    if (!v2_7.zzasr.isEmpty()) {
                                                        v3_7 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_7 != null) {
                                                    this.zzjh().setTransactionSuccessful();
                                                    this.zzjh().endTransaction();
                                                    return 0;
                                                } else {
                                                    android.database.sqlite.SQLiteException v3_8 = v2_7.zzasp;
                                                    Object v4_4 = new com.google.android.gms.internal.measurement.zzkr[v2_7.zzasr.size()];
                                                    v3_8.zzavi = v4_4;
                                                    Object v4_7 = this.zzacv.zzgk().zzaw(v3_8.zzth);
                                                    int v9_13 = 0;
                                                    Boolean v12_9 = 0;
                                                    Boolean v13_3 = 0;
                                                    long v14_2 = 0;
                                                    while (v9_13 < v2_7.zzasr.size()) {
                                                        String[] v44;
                                                        int v7_3 = ((com.google.android.gms.internal.measurement.zzkr) v2_7.zzasr.get(v9_13));
                                                        if (!this.zzky().zzn(v2_7.zzasp.zzth, v7_3.name)) {
                                                            com.google.android.gms.internal.measurement.zzfk v5_4 = this.zzky().zzo(v2_7.zzasp.zzth, v7_3.name);
                                                            if (v5_4 != null) {
                                                                if (v7_3.zzava == null) {
                                                                    com.google.android.gms.internal.measurement.zzet v8_4 = new com.google.android.gms.internal.measurement.zzks[0];
                                                                    v7_3.zzava = v8_4;
                                                                }
                                                                String v6_11 = v7_3.zzava;
                                                                com.google.android.gms.internal.measurement.zzet v8_5 = v6_11.length;
                                                                boolean v10_5 = 0;
                                                                long v11_3 = 0;
                                                                long v18_0 = 0;
                                                                while (v10_5 < v8_5) {
                                                                    int v32_1 = v8_5;
                                                                    com.google.android.gms.internal.measurement.zzet v8_46 = v6_11[v10_5];
                                                                    int v33_1 = v6_11;
                                                                    int v34_2 = v12_9;
                                                                    if (!"_c".equals(v8_46.name)) {
                                                                        if ("_r".equals(v8_46.name)) {
                                                                            v8_46.zzave = Long.valueOf(1);
                                                                            v18_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v8_46.zzave = Long.valueOf(1);
                                                                        v11_3 = 1;
                                                                    }
                                                                    v10_5++;
                                                                    v8_5 = v32_1;
                                                                    v6_11 = v33_1;
                                                                    v12_9 = v34_2;
                                                                }
                                                                int v34_0 = v12_9;
                                                                if ((v11_3 == 0) && (v5_4 != null)) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as conversion", this.zzacv.zzgf().zzbm(v7_3.name));
                                                                    String v6_17 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v7_3.zzava, (v7_3.zzava.length + 1)));
                                                                    com.google.android.gms.internal.measurement.zzet v8_11 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v8_11.name = "_c";
                                                                    v8_11.zzave = Long.valueOf(1);
                                                                    v6_17[(v6_17.length - 1)] = v8_11;
                                                                    v7_3.zzava = v6_17;
                                                                }
                                                                if (v18_0 == 0) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as real-time", this.zzacv.zzgf().zzbm(v7_3.name));
                                                                    String v6_23 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v7_3.zzava, (v7_3.zzava.length + 1)));
                                                                    com.google.android.gms.internal.measurement.zzet v8_17 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v8_17.name = "_r";
                                                                    v8_17.zzave = Long.valueOf(1);
                                                                    v6_23[(v6_23.length - 1)] = v8_17;
                                                                    v7_3.zzava = v6_23;
                                                                }
                                                                v44 = v9_13;
                                                                if (this.zzjh().zza(this.zzld(), v2_7.zzasp.zzth, 0, 0, 0, 0, 1).zzagx <= ((long) this.zzacv.zzgk().zzas(v2_7.zzasp.zzth))) {
                                                                    v12_9 = 1;
                                                                } else {
                                                                    String v6_31 = 0;
                                                                    while (v6_31 < v7_3.zzava.length) {
                                                                        if (!"_r".equals(v7_3.zzava[v6_31].name)) {
                                                                            v6_31++;
                                                                        } else {
                                                                            com.google.android.gms.internal.measurement.zzet v8_28 = new com.google.android.gms.internal.measurement.zzks[(v7_3.zzava.length - 1)];
                                                                            if (v6_31 > null) {
                                                                                System.arraycopy(v7_3.zzava, 0, v8_28, 0, v6_31);
                                                                            }
                                                                            if (v6_31 < v8_28.length) {
                                                                                System.arraycopy(v7_3.zzava, (v6_31 + 1), v8_28, v6_31, (v8_28.length - v6_31));
                                                                            }
                                                                            v7_3.zzava = v8_28;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_9 = v34_0;
                                                                }
                                                                if ((com.google.android.gms.internal.measurement.zzkd.zzcg(v7_3.name)) && ((v5_4 != null) && (this.zzjh().zza(this.zzld(), v2_7.zzasp.zzth, 0, 0, 1, 0, 0).zzagv > ((long) this.zzacv.zzgk().zzb(v2_7.zzasp.zzth, com.google.android.gms.internal.measurement.zzez.zzair))))) {
                                                                    this.zzacv.zzgi().zziy().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                                    com.google.android.gms.internal.measurement.zzfk v5_13 = v7_3.zzava;
                                                                    String v6_35 = v5_13.length;
                                                                    com.google.android.gms.internal.measurement.zzet v8_36 = 0;
                                                                    int v9_11 = 0;
                                                                    boolean v10_26 = 0;
                                                                    while (v8_36 < v6_35) {
                                                                        long v11_10 = v5_13[v8_36];
                                                                        if (!"_c".equals(v11_10.name)) {
                                                                            if ("_err".equals(v11_10.name)) {
                                                                                v9_11 = 1;
                                                                            }
                                                                        } else {
                                                                            v10_26 = v11_10;
                                                                        }
                                                                        v8_36++;
                                                                    }
                                                                    if ((v9_11 == 0) || (!v10_26)) {
                                                                        if (!v10_26) {
                                                                            this.zzacv.zzgi().zziv().zzg("Did not find conversion parameter. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                                        } else {
                                                                            v10_26.name = "_err";
                                                                            v10_26.zzave = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.measurement.zzfk v5_20 = v7_3.zzava;
                                                                        com.google.android.gms.internal.measurement.zzet v8_40 = new com.google.android.gms.internal.measurement.zzks[1];
                                                                        v8_40[0] = v10_26;
                                                                        v7_3.zzava = ((com.google.android.gms.internal.measurement.zzks[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v5_20, v8_40));
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzjf();
                                                                String v6_4 = v7_3.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v6_4);
                                                                com.google.android.gms.internal.measurement.zzet v8_3 = -1;
                                                                boolean v10_1 = v6_4.hashCode();
                                                                if (v10_1 == 94660) {
                                                                    if (v6_4.equals("_in")) {
                                                                        v8_3 = 0;
                                                                    }
                                                                } else {
                                                                    if (v10_1 == 95025) {
                                                                        if (v6_4.equals("_ug")) {
                                                                            v8_3 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v10_1 == 95027) {
                                                                            if (v6_4.equals("_ui")) {
                                                                                v8_3 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                String v6_8;
                                                                switch (v8_3) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v6_8 = 1;
                                                                    default:
                                                                        v6_8 = 0;
                                                                }
                                                                if (v6_8 == null) {
                                                                    v44 = v9_13;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v4_7 != null) && ("_e".equals(v7_3.name))) {
                                                                com.google.android.gms.internal.measurement.zzet v8_43;
                                                                String v6_40;
                                                                com.google.android.gms.internal.measurement.zzfk v5_34;
                                                                if (v7_3.zzava == null) {
                                                                    v5_34 = this.zzacv.zzgi().zziy();
                                                                    v6_40 = "Engagement event does not contain any parameters. appId";
                                                                    v8_43 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth);
                                                                } else {
                                                                    if (v7_3.zzava.length != 0) {
                                                                        this.zzjf();
                                                                        com.google.android.gms.internal.measurement.zzfk v5_30 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v7_3, "_et"));
                                                                        if (v5_30 != null) {
                                                                            v14_2 += v5_30.longValue();
                                                                            String v6_41 = (v13_3 + 1);
                                                                            v3_8.zzavi[v13_3] = v7_3;
                                                                            v13_3 = v6_41;
                                                                            v9_13 = (v44 + 1);
                                                                            long v11 = 1;
                                                                        } else {
                                                                            v5_34 = this.zzacv.zzgi().zziy();
                                                                            v6_40 = "Engagement event does not include duration. appId";
                                                                            v8_43 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth);
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                v5_34.zzg(v6_40, v8_43);
                                                            }
                                                        } else {
                                                            com.google.android.gms.internal.measurement.zzfk v5_49;
                                                            this.zzacv.zzgi().zziy().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth), this.zzacv.zzgf().zzbm(v7_3.name));
                                                            if (this.zzky().zzcb(v2_7.zzasp.zzth)) {
                                                                v5_49 = 1;
                                                            } else {
                                                                if (!this.zzky().zzcc(v2_7.zzasp.zzth)) {
                                                                    v5_49 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_49 == null) && (!"_err".equals(v7_3.name))) {
                                                                this.zzacv.zzgg().zza(v2_7.zzasp.zzth, 11, "_ev", v7_3.name, 0);
                                                            }
                                                            v44 = v9_13;
                                                        }
                                                    }
                                                    int v34_3 = v12_9;
                                                    if (v13_3 < v2_7.zzasr.size()) {
                                                        v3_8.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v3_8.zzavi, v13_3));
                                                    }
                                                    if (v4_7 != null) {
                                                        Object v4_12;
                                                        Object v4_9 = this.zzjh().zzh(v3_8.zzth, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.internal.measurement.zzkc;
                                                            v4_12(v3_8.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf(v14_2));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                com.google.android.gms.internal.measurement.zzfk v5_70 = new com.google.android.gms.internal.measurement.zzkc;
                                                                v5_70(v3_8.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v14_2)));
                                                                v4_12 = v5_70;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v5_73 = new com.google.android.gms.internal.measurement.zzkx();
                                                        v5_73.name = "_lte";
                                                        v5_73.zzaws = Long.valueOf(this.zzacv.zzbt().currentTimeMillis());
                                                        v5_73.zzave = ((Long) v4_12.value);
                                                        String v6_80 = 0;
                                                        while (v6_80 < v3_8.zzavj.length) {
                                                            if (!"_lte".equals(v3_8.zzavj[v6_80].name)) {
                                                                v6_80++;
                                                            } else {
                                                                v3_8.zzavj[v6_80] = v5_73;
                                                                String v6_81 = 1;
                                                            }
                                                            if (v6_81 == null) {
                                                                v3_8.zzavj = ((com.google.android.gms.internal.measurement.zzkx[]) java.util.Arrays.copyOf(v3_8.zzavj, (v3_8.zzavj.length + 1)));
                                                                v3_8.zzavj[(v2_7.zzasp.zzavj.length - 1)] = v5_73;
                                                            }
                                                            if (v14_2 > 0) {
                                                                this.zzjh().zza(v4_12);
                                                                this.zzacv.zzgi().zzjb().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_81 = 0;
                                                    }
                                                    v3_8.zzawa = this.zza(v3_8.zzth, v3_8.zzavj, v3_8.zzavi);
                                                    if (this.zzacv.zzgk().zzav(v2_7.zzasp.zzth)) {
                                                        Object v4_20 = new java.util.HashMap();
                                                        com.google.android.gms.internal.measurement.zzfk v5_84 = new com.google.android.gms.internal.measurement.zzkr[v3_8.zzavi.length];
                                                        String v6_0 = this.zzacv.zzgg().zzlo();
                                                        int v7_0 = v3_8.zzavi;
                                                        com.google.android.gms.internal.measurement.zzet v8_0 = v7_0.length;
                                                        int v9_1 = 0;
                                                        boolean v10_0 = 0;
                                                        while (v9_1 < v8_0) {
                                                            long v63;
                                                            int v47;
                                                            boolean v48;
                                                            Boolean v12_7;
                                                            long v11_14 = v7_0[v9_1];
                                                            if (!v11_14.name.equals("_ep")) {
                                                                int v7_45;
                                                                Boolean v13_20 = Long.valueOf(1);
                                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                                    v47 = v7_0;
                                                                    v48 = v8_0;
                                                                    v7_45 = 0;
                                                                } else {
                                                                    if (v13_20 != null) {
                                                                        long v14_17 = v11_14.zzava;
                                                                        Long v15_5 = v14_17.length;
                                                                        v47 = v7_0;
                                                                        int v7_35 = 0;
                                                                        while (v7_35 < v15_5) {
                                                                            v48 = v8_0;
                                                                            com.google.android.gms.internal.measurement.zzet v8_65 = v14_17[v7_35];
                                                                            if (!"_dbg".equals(v8_65.name)) {
                                                                                v7_35++;
                                                                                v8_0 = v48;
                                                                            } else {
                                                                                if (((!(v13_20 instanceof Long)) || (!v13_20.equals(v8_65.zzave))) && (((!(v13_20 instanceof String)) || (!v13_20.equals(v8_65.zzale))) && ((!(v13_20 instanceof Double)) || (!v13_20.equals(v8_65.zzasw))))) {
                                                                                } else {
                                                                                    v7_45 = 1;
                                                                                }
                                                                            }
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                int v7_46;
                                                                if (v7_45 != 0) {
                                                                    v7_46 = 1;
                                                                } else {
                                                                    v7_46 = this.zzky().zzp(v2_7.zzasp.zzth, v11_14.name);
                                                                }
                                                                int v7_56;
                                                                if (v7_46 > 0) {
                                                                    com.google.android.gms.internal.measurement.zzet v8_70 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v11_14.name));
                                                                    if (v8_70 == null) {
                                                                        v8_70 = this.zzjh().zzf(v2_7.zzasp.zzth, v11_14.name);
                                                                        if (v8_70 == null) {
                                                                            this.zzacv.zzgi().zziy().zze("Event being bundled has no eventAggregate. appId, eventName", v2_7.zzasp.zzth, v11_14.name);
                                                                            v8_70 = new com.google.android.gms.internal.measurement.zzet;
                                                                            v8_70(v2_7.zzasp.zzth, v11_14.name, 1, 1, v11_14.zzavb.longValue(), 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    Boolean v13_25;
                                                                    this.zzjf();
                                                                    Boolean v12_52 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v11_14, "_eid"));
                                                                    if (v12_52 == null) {
                                                                        v13_25 = 0;
                                                                    } else {
                                                                        v13_25 = 1;
                                                                    }
                                                                    Boolean v13_26 = Boolean.valueOf(v13_25);
                                                                    if (v7_46 != 1) {
                                                                        if (v6_0.nextInt(v7_46) != 0) {
                                                                            v63 = v6_0;
                                                                            if (Math.abs((v11_14.zzavb.longValue() - v8_70.zzahk)) < 86400000) {
                                                                                if (!v13_26.booleanValue()) {
                                                                                    v9_1++;
                                                                                    v7_0 = v47;
                                                                                    v8_0 = v48;
                                                                                    v6_0 = v63;
                                                                                } else {
                                                                                    v4_20.put(v11_14.name, v8_70.zza(v12_52, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.zzjf();
                                                                                v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_efs", Long.valueOf(1));
                                                                                this.zzjf();
                                                                                long v14_30 = ((long) v7_46);
                                                                                v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_sr", Long.valueOf(v14_30));
                                                                                String v6_134 = (v10_0 + 1);
                                                                                v5_84[v10_0] = v11_14;
                                                                                if (v13_26.booleanValue()) {
                                                                                    v8_70 = v8_70.zza(0, Long.valueOf(v14_30), Boolean.valueOf(1));
                                                                                }
                                                                                v4_20.put(v11_14.name, v8_70.zzai(v11_14.zzavb.longValue()));
                                                                                v10_0 = v6_134;
                                                                            }
                                                                        } else {
                                                                            this.zzjf();
                                                                            v63 = v6_0;
                                                                            String v6_135 = ((long) v7_46);
                                                                            v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_sr", Long.valueOf(v6_135));
                                                                            v12_7 = (v10_0 + 1);
                                                                            v5_84[v10_0] = v11_14;
                                                                            if (v13_26.booleanValue()) {
                                                                                v8_70 = v8_70.zza(0, Long.valueOf(v6_135), 0);
                                                                            }
                                                                            v4_20.put(v11_14.name, v8_70.zzai(v11_14.zzavb.longValue()));
                                                                            v10_0 = v12_7;
                                                                        }
                                                                    } else {
                                                                        v7_56 = (v10_0 + 1);
                                                                        v5_84[v10_0] = v11_14;
                                                                        if ((v13_26.booleanValue()) && ((v8_70.zzahl != null) || ((v8_70.zzahm != null) || (v8_70.zzahn != null)))) {
                                                                            v4_20.put(v11_14.name, v8_70.zza(0, 0, 0));
                                                                        }
                                                                    }
                                                                } else {
                                                                    this.zzacv.zzgi().zziy().zze("Sample rate must be positive. event, rate", v11_14.name, Integer.valueOf(v7_46));
                                                                    v7_56 = (v10_0 + 1);
                                                                    v5_84[v10_0] = v11_14;
                                                                }
                                                                v63 = v6_0;
                                                                v10_0 = v7_56;
                                                            } else {
                                                                this.zzjf();
                                                                Boolean v12_62 = ((String) com.google.android.gms.internal.measurement.zzjz.zzb(v11_14, "_en"));
                                                                Boolean v13_29 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v12_62));
                                                                if (v13_29 == null) {
                                                                    v13_29 = this.zzjh().zzf(v2_7.zzasp.zzth, v12_62);
                                                                    v4_20.put(v12_62, v13_29);
                                                                }
                                                                if (v13_29.zzahl != null) {
                                                                    v63 = v6_0;
                                                                    v47 = v7_0;
                                                                    v48 = v8_0;
                                                                } else {
                                                                    if (v13_29.zzahm.longValue() > 1) {
                                                                        this.zzjf();
                                                                        v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_sr", v13_29.zzahm);
                                                                    }
                                                                    if ((v13_29.zzahn != null) && (v13_29.zzahn.booleanValue())) {
                                                                        this.zzjf();
                                                                        v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_efs", Long.valueOf(1));
                                                                    }
                                                                    v12_7 = (v10_0 + 1);
                                                                    v5_84[v10_0] = v11_14;
                                                                    v63 = v6_0;
                                                                    v47 = v7_0;
                                                                    v48 = v8_0;
                                                                }
                                                            }
                                                        }
                                                        if (v10_0 < v3_8.zzavi.length) {
                                                            v3_8.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v5_84, v10_0));
                                                        }
                                                        Object v4_22 = v4_20.entrySet().iterator();
                                                        while (v4_22.hasNext()) {
                                                            this.zzjh().zza(((com.google.android.gms.internal.measurement.zzet) ((java.util.Map$Entry) v4_22.next()).getValue()));
                                                        }
                                                    }
                                                    v3_8.zzavl = Long.valueOf(nan);
                                                    v3_8.zzavm = Long.valueOf(-0.0);
                                                    Object v4_27 = 0;
                                                    while (v4_27 < v3_8.zzavi.length) {
                                                        com.google.android.gms.internal.measurement.zzfk v5_117 = v3_8.zzavi[v4_27];
                                                        if (v5_117.zzavb.longValue() < v3_8.zzavl.longValue()) {
                                                            v3_8.zzavl = v5_117.zzavb;
                                                        }
                                                        if (v5_117.zzavb.longValue() > v3_8.zzavm.longValue()) {
                                                            v3_8.zzavm = v5_117.zzavb;
                                                        }
                                                        v4_27++;
                                                    }
                                                    Object v4_29 = v2_7.zzasp.zzth;
                                                    com.google.android.gms.internal.measurement.zzfk v5_91 = this.zzjh().zzbf(v4_29);
                                                    if (v5_91 != null) {
                                                        if (v3_8.zzavi.length > 0) {
                                                            com.google.android.gms.internal.measurement.zzet v8_57;
                                                            String v6_94 = v5_91.zzgt();
                                                            if (v6_94 == 0) {
                                                                v8_57 = 0;
                                                            } else {
                                                                v8_57 = Long.valueOf(v6_94);
                                                            }
                                                            v3_8.zzavo = v8_57;
                                                            com.google.android.gms.internal.measurement.zzet v8_58 = v5_91.zzgs();
                                                            if (v8_58 != 0) {
                                                                v6_94 = v8_58;
                                                            } else {
                                                            }
                                                            String v6_95;
                                                            if (v6_94 == 0) {
                                                                v6_95 = 0;
                                                            } else {
                                                                v6_95 = Long.valueOf(v6_94);
                                                            }
                                                            v3_8.zzavn = v6_95;
                                                            v5_91.zzhb();
                                                            v3_8.zzavy = Integer.valueOf(((int) v5_91.zzgy()));
                                                            v5_91.zzr(v3_8.zzavl.longValue());
                                                            v5_91.zzs(v3_8.zzavm.longValue());
                                                            v3_8.zzafy = v5_91.zzhj();
                                                            this.zzjh().zza(v5_91);
                                                        }
                                                    } else {
                                                        this.zzacv.zzgi().zziv().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                    }
                                                    if (v3_8.zzavi.length > 0) {
                                                        com.google.android.gms.internal.measurement.zzfk v5_100;
                                                        this.zzacv.zzgl();
                                                        com.google.android.gms.internal.measurement.zzfk v5_99 = this.zzky().zzbx(v2_7.zzasp.zzth);
                                                        if (v5_99 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v2_7.zzasp.zzafa)) {
                                                                this.zzacv.zzgi().zziy().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                            } else {
                                                                v5_100 = Long.valueOf(-1);
                                                                v3_8.zzawf = v5_100;
                                                            }
                                                        } else {
                                                            if (v5_99.zzaum != null) {
                                                                v5_100 = v5_99.zzaum;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzjh().zza(v3_8, v34_3);
                                                    }
                                                    android.database.sqlite.SQLiteException v3_12 = this.zzjh();
                                                    com.google.android.gms.internal.measurement.zzfk v2_8 = v2_7.zzasq;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_8);
                                                    v3_12.zzab();
                                                    v3_12.zzch();
                                                    com.google.android.gms.internal.measurement.zzfk v5_110 = new StringBuilder("rowid in (");
                                                    String v6_111 = 0;
                                                    while (v6_111 < v2_8.size()) {
                                                        if (v6_111 != null) {
                                                            v5_110.append(",");
                                                        }
                                                        v5_110.append(((Long) v2_8.get(v6_111)).longValue());
                                                        v6_111++;
                                                    }
                                                    v5_110.append(")");
                                                    com.google.android.gms.internal.measurement.zzfk v5_112 = v3_12.getWritableDatabase().delete("raw_events", v5_110.toString(), 0);
                                                    if (v5_112 != v2_8.size()) {
                                                        v3_12.zzgi().zziv().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_112), Integer.valueOf(v2_8.size()));
                                                    }
                                                    com.google.android.gms.internal.measurement.zzfk v2_11 = this.zzjh();
                                                    android.database.sqlite.SQLiteException v3_15 = v2_11.getWritableDatabase();
                                                    try {
                                                        String v6_117 = new String[2];
                                                        v6_117[0] = v4_29;
                                                        v6_117[1] = v4_29;
                                                        v3_15.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_117);
                                                    } catch (android.database.sqlite.SQLiteException v0_10) {
                                                        v2_11.zzgi().zziv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v4_29), v0_10);
                                                    }
                                                    this.zzjh().setTransactionSuccessful();
                                                    this.zzjh().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v9_0.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                        }
                                        if (v15_1.moveToNext()) {
                                            v4_31.zzgi().zziy().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                        }
                                        String[] v16_2;
                                        com.google.android.gms.internal.measurement.zzfk v5_56;
                                        v15_1.close();
                                        v2_7.zzb(v13_6);
                                        if (v5_123 == -1) {
                                            v5_56 = "app_id = ? and metadata_fingerprint = ?";
                                            int v9_16 = new String[2];
                                            v9_16[0] = v3_0;
                                            v9_16[1] = v22;
                                            v16_2 = v9_16;
                                        } else {
                                            Boolean v12_22 = new String[3];
                                            v12_22[0] = v3_0;
                                            v12_22[1] = v22;
                                            v12_22[2] = String.valueOf(v5_123);
                                            v5_56 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_2 = v12_22;
                                        }
                                        v9_0 = v15_1;
                                        com.google.android.gms.internal.measurement.zzfk v5_58 = v25.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_56, v16_2, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_58.moveToFirst()) {
                                                do {
                                                    Boolean v12_26 = v5_58.getLong(0);
                                                    int v9_20 = v5_58.getBlob(3);
                                                    int v9_21 = com.google.android.gms.internal.measurement.zzaca.zza(v9_20, 0, v9_20.length);
                                                    long v14_9 = new com.google.android.gms.internal.measurement.zzkr();
                                                    v14_9.zzb(v9_21);
                                                    v14_9.name = v5_58.getString(1);
                                                    v14_9.zzavb = Long.valueOf(v5_58.getLong(2));
                                                    if (v2_7.zza(v12_26, v14_9)) {
                                                    } else {
                                                        if (v5_58 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_58.moveToNext());
                                                if (v5_58 == null) {
                                                }
                                            } else {
                                                v4_31.zzgi().zziy().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                                if (v5_58 == null) {
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_8) {
                                            com.google.android.gms.internal.measurement.zzfk v2_0 = v0_8;
                                            int v21 = v5_58;
                                            if (v21 != 0) {
                                                v21.close();
                                            }
                                            throw v2_0;
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            Boolean v12_5 = v3_0;
                                            v9_0 = v5_58;
                                            android.database.sqlite.SQLiteException v3_3 = v0_1;
                                            v4_31.zzgi().zziv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_5), v3_3);
                                            if (v9_0 == 0) {
                                            }
                                        }
                                        v5_58.close();
                                    } else {
                                        v4_31.zzgi().zziv().zzg("Raw event metadata record is missing. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                        if (v15_1 == null) {
                                        } else {
                                            v15_1.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_6) {
                                    v9_0 = v15_1;
                                    v2_0 = v0_6;
                                    v21 = v9_0;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v9_0 = v15_1;
                                } catch (android.database.sqlite.SQLiteException v0_9) {
                                    v2_0 = v0_9;
                                    v21 = v15_1;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v12_5 = v3_0;
                                    v9_0 = v15_1;
                                }
                                v12_5 = v3_0;
                            } catch (android.database.sqlite.SQLiteException v0_4) {
                                v2_0 = v0_4;
                                v21 = v23;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v12_5 = v3_0;
                                v9_0 = v23;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                            }
                        }
                    } else {
                        Boolean v13_18;
                        Boolean v12_39 = v5_123 cmp -1;
                        try {
                            if (v12_39 == null) {
                                v13_18 = new String[1];
                                v13_18[0] = String.valueOf(p66);
                            } else {
                                v13_18 = new String[2];
                                v13_18[0] = String.valueOf(v5_123);
                                v13_18[1] = String.valueOf(p66);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            v9_0 = 0;
                            v12_5 = 0;
                        }
                        Boolean v12_43;
                        if (v12_39 == null) {
                            v12_43 = "";
                        } else {
                            v12_43 = "rowid <= ? and ";
                        }
                        android.database.sqlite.SQLiteException v3_18 = new StringBuilder((String.valueOf(v12_43).length() + 148));
                        v3_18.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_18.append(v12_43);
                        v3_18.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_2.rawQuery(v3_18.toString(), v13_18);
                        if (v3_0.moveToFirst()) {
                            v12_5 = v3_0.getString(0);
                            try {
                                Boolean v13_1 = v3_0.getString(1);
                                v3_0.close();
                                v23 = v3_0;
                                v3_0 = v12_5;
                                v22 = v13_1;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v9_0 = v3_0;
                            }
                        } else {
                            if (v3_0 == null) {
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v2_0 = v0_2;
                    v21 = v3_0;
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v9_0 = v3_0;
                    v12_5 = 0;
                }
                v3_0.close();
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v2_0 = v0_0;
                v21 = 0;
            } catch (android.database.sqlite.SQLiteException v0_11) {
                v3_3 = v0_11;
                v9_0 = 0;
                v12_5 = 0;
            } catch (android.database.sqlite.SQLiteException v0_6) {
            }
        } catch (android.database.sqlite.SQLiteException v0_3) {
            com.google.android.gms.internal.measurement.zzfk v2_1 = v0_3;
            this.zzjh().endTransaction();
            throw v2_1;
        }
    }

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


    private final boolean zzd(String p65, long p66)
    {
        this.zzjh().beginTransaction();
        try {
            android.database.sqlite.SQLiteException v3_0 = 0;
            com.google.android.gms.internal.measurement.zzfk v2_7 = new com.google.android.gms.internal.measurement.zzjt$zza(this, 0);
            Object v4_31 = this.zzjh();
            com.google.android.gms.internal.measurement.zzfk v5_123 = this.zzasl;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_7);
            v4_31.zzab();
            v4_31.zzch();
            try {
                String v22;
                int v23;
                Long v15_2 = v4_31.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        Boolean v12_30;
                        android.database.sqlite.SQLiteException v3_2 = v5_123 cmp -1;
                        if (v3_2 == null) {
                            v12_30 = new String[] {0});
                        } else {
                            v12_30 = new String[2];
                            v12_30[0] = 0;
                            v12_30[1] = String.valueOf(v5_123);
                        }
                        android.database.sqlite.SQLiteException v3_9;
                        if (v3_2 == null) {
                            v3_9 = "";
                        } else {
                            v3_9 = " and rowid <= ?";
                        }
                        long v14_12 = new StringBuilder((String.valueOf(v3_9).length() + 84));
                        v14_12.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_12.append(v3_9);
                        v14_12.append(" order by rowid limit 1;");
                        v3_0 = v15_2.rawQuery(v14_12.toString(), v12_30);
                        if (v3_0.moveToFirst()) {
                            Boolean v13_17 = v3_0.getString(0);
                            v3_0.close();
                            v23 = v3_0;
                            v22 = v13_17;
                            v3_0 = 0;
                            try {
                                Boolean v12_11 = new String[2];
                                v12_11[0] = v3_0;
                                v12_11[1] = v22;
                                android.database.sqlite.SQLiteDatabase v25 = v15_2;
                                Long v15_1 = v15_2.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_11, 0, 0, "rowid", "2");
                                try {
                                    if (v15_1.moveToFirst()) {
                                        Boolean v12_16 = v15_1.getBlob(0);
                                        Boolean v12_17 = com.google.android.gms.internal.measurement.zzaca.zza(v12_16, 0, v12_16.length);
                                        Boolean v13_6 = new com.google.android.gms.internal.measurement.zzku();
                                        try {
                                            v13_6.zzb(v12_17);
                                        } catch (android.database.sqlite.SQLiteException v0_5) {
                                            int v9_0 = v15_1;
                                            v4_31.zzgi().zziv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0), v0_5);
                                            if (v9_0 == 0) {
                                                android.database.sqlite.SQLiteException v3_7;
                                                if (v2_7.zzasr == null) {
                                                    v3_7 = 1;
                                                } else {
                                                    if (!v2_7.zzasr.isEmpty()) {
                                                        v3_7 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_7 != null) {
                                                    this.zzjh().setTransactionSuccessful();
                                                    this.zzjh().endTransaction();
                                                    return 0;
                                                } else {
                                                    android.database.sqlite.SQLiteException v3_8 = v2_7.zzasp;
                                                    Object v4_4 = new com.google.android.gms.internal.measurement.zzkr[v2_7.zzasr.size()];
                                                    v3_8.zzavi = v4_4;
                                                    Object v4_7 = this.zzacv.zzgk().zzaw(v3_8.zzth);
                                                    int v9_13 = 0;
                                                    Boolean v12_9 = 0;
                                                    Boolean v13_3 = 0;
                                                    long v14_2 = 0;
                                                    while (v9_13 < v2_7.zzasr.size()) {
                                                        String[] v44;
                                                        int v7_3 = ((com.google.android.gms.internal.measurement.zzkr) v2_7.zzasr.get(v9_13));
                                                        if (!this.zzky().zzn(v2_7.zzasp.zzth, v7_3.name)) {
                                                            com.google.android.gms.internal.measurement.zzfk v5_4 = this.zzky().zzo(v2_7.zzasp.zzth, v7_3.name);
                                                            if (v5_4 != null) {
                                                                if (v7_3.zzava == null) {
                                                                    com.google.android.gms.internal.measurement.zzet v8_4 = new com.google.android.gms.internal.measurement.zzks[0];
                                                                    v7_3.zzava = v8_4;
                                                                }
                                                                String v6_11 = v7_3.zzava;
                                                                com.google.android.gms.internal.measurement.zzet v8_5 = v6_11.length;
                                                                boolean v10_5 = 0;
                                                                long v11_3 = 0;
                                                                long v18_0 = 0;
                                                                while (v10_5 < v8_5) {
                                                                    int v32_1 = v8_5;
                                                                    com.google.android.gms.internal.measurement.zzet v8_46 = v6_11[v10_5];
                                                                    int v33_1 = v6_11;
                                                                    int v34_2 = v12_9;
                                                                    if (!"_c".equals(v8_46.name)) {
                                                                        if ("_r".equals(v8_46.name)) {
                                                                            v8_46.zzave = Long.valueOf(1);
                                                                            v18_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v8_46.zzave = Long.valueOf(1);
                                                                        v11_3 = 1;
                                                                    }
                                                                    v10_5++;
                                                                    v8_5 = v32_1;
                                                                    v6_11 = v33_1;
                                                                    v12_9 = v34_2;
                                                                }
                                                                int v34_0 = v12_9;
                                                                if ((v11_3 == 0) && (v5_4 != null)) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as conversion", this.zzacv.zzgf().zzbm(v7_3.name));
                                                                    String v6_17 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v7_3.zzava, (v7_3.zzava.length + 1)));
                                                                    com.google.android.gms.internal.measurement.zzet v8_11 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v8_11.name = "_c";
                                                                    v8_11.zzave = Long.valueOf(1);
                                                                    v6_17[(v6_17.length - 1)] = v8_11;
                                                                    v7_3.zzava = v6_17;
                                                                }
                                                                if (v18_0 == 0) {
                                                                    this.zzacv.zzgi().zzjc().zzg("Marking event as real-time", this.zzacv.zzgf().zzbm(v7_3.name));
                                                                    String v6_23 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v7_3.zzava, (v7_3.zzava.length + 1)));
                                                                    com.google.android.gms.internal.measurement.zzet v8_17 = new com.google.android.gms.internal.measurement.zzks();
                                                                    v8_17.name = "_r";
                                                                    v8_17.zzave = Long.valueOf(1);
                                                                    v6_23[(v6_23.length - 1)] = v8_17;
                                                                    v7_3.zzava = v6_23;
                                                                }
                                                                v44 = v9_13;
                                                                if (this.zzjh().zza(this.zzld(), v2_7.zzasp.zzth, 0, 0, 0, 0, 1).zzagx <= ((long) this.zzacv.zzgk().zzas(v2_7.zzasp.zzth))) {
                                                                    v12_9 = 1;
                                                                } else {
                                                                    String v6_31 = 0;
                                                                    while (v6_31 < v7_3.zzava.length) {
                                                                        if (!"_r".equals(v7_3.zzava[v6_31].name)) {
                                                                            v6_31++;
                                                                        } else {
                                                                            com.google.android.gms.internal.measurement.zzet v8_28 = new com.google.android.gms.internal.measurement.zzks[(v7_3.zzava.length - 1)];
                                                                            if (v6_31 > null) {
                                                                                System.arraycopy(v7_3.zzava, 0, v8_28, 0, v6_31);
                                                                            }
                                                                            if (v6_31 < v8_28.length) {
                                                                                System.arraycopy(v7_3.zzava, (v6_31 + 1), v8_28, v6_31, (v8_28.length - v6_31));
                                                                            }
                                                                            v7_3.zzava = v8_28;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_9 = v34_0;
                                                                }
                                                                if ((com.google.android.gms.internal.measurement.zzkd.zzcg(v7_3.name)) && ((v5_4 != null) && (this.zzjh().zza(this.zzld(), v2_7.zzasp.zzth, 0, 0, 1, 0, 0).zzagv > ((long) this.zzacv.zzgk().zzb(v2_7.zzasp.zzth, com.google.android.gms.internal.measurement.zzez.zzair))))) {
                                                                    this.zzacv.zzgi().zziy().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                                    com.google.android.gms.internal.measurement.zzfk v5_13 = v7_3.zzava;
                                                                    String v6_35 = v5_13.length;
                                                                    com.google.android.gms.internal.measurement.zzet v8_36 = 0;
                                                                    int v9_11 = 0;
                                                                    boolean v10_26 = 0;
                                                                    while (v8_36 < v6_35) {
                                                                        long v11_10 = v5_13[v8_36];
                                                                        if (!"_c".equals(v11_10.name)) {
                                                                            if ("_err".equals(v11_10.name)) {
                                                                                v9_11 = 1;
                                                                            }
                                                                        } else {
                                                                            v10_26 = v11_10;
                                                                        }
                                                                        v8_36++;
                                                                    }
                                                                    if ((v9_11 == 0) || (!v10_26)) {
                                                                        if (!v10_26) {
                                                                            this.zzacv.zzgi().zziv().zzg("Did not find conversion parameter. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                                        } else {
                                                                            v10_26.name = "_err";
                                                                            v10_26.zzave = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.measurement.zzfk v5_20 = v7_3.zzava;
                                                                        com.google.android.gms.internal.measurement.zzet v8_40 = new com.google.android.gms.internal.measurement.zzks[1];
                                                                        v8_40[0] = v10_26;
                                                                        v7_3.zzava = ((com.google.android.gms.internal.measurement.zzks[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v5_20, v8_40));
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzjf();
                                                                String v6_4 = v7_3.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v6_4);
                                                                com.google.android.gms.internal.measurement.zzet v8_3 = -1;
                                                                boolean v10_1 = v6_4.hashCode();
                                                                if (v10_1 == 94660) {
                                                                    if (v6_4.equals("_in")) {
                                                                        v8_3 = 0;
                                                                    }
                                                                } else {
                                                                    if (v10_1 == 95025) {
                                                                        if (v6_4.equals("_ug")) {
                                                                            v8_3 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v10_1 == 95027) {
                                                                            if (v6_4.equals("_ui")) {
                                                                                v8_3 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                String v6_8;
                                                                switch (v8_3) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v6_8 = 1;
                                                                    default:
                                                                        v6_8 = 0;
                                                                }
                                                                if (v6_8 == null) {
                                                                    v44 = v9_13;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v4_7 != null) && ("_e".equals(v7_3.name))) {
                                                                com.google.android.gms.internal.measurement.zzet v8_43;
                                                                String v6_40;
                                                                com.google.android.gms.internal.measurement.zzfk v5_34;
                                                                if (v7_3.zzava == null) {
                                                                    v5_34 = this.zzacv.zzgi().zziy();
                                                                    v6_40 = "Engagement event does not contain any parameters. appId";
                                                                    v8_43 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth);
                                                                } else {
                                                                    if (v7_3.zzava.length != 0) {
                                                                        this.zzjf();
                                                                        com.google.android.gms.internal.measurement.zzfk v5_30 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v7_3, "_et"));
                                                                        if (v5_30 != null) {
                                                                            v14_2 += v5_30.longValue();
                                                                            String v6_41 = (v13_3 + 1);
                                                                            v3_8.zzavi[v13_3] = v7_3;
                                                                            v13_3 = v6_41;
                                                                            v9_13 = (v44 + 1);
                                                                            long v11 = 1;
                                                                        } else {
                                                                            v5_34 = this.zzacv.zzgi().zziy();
                                                                            v6_40 = "Engagement event does not include duration. appId";
                                                                            v8_43 = com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth);
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                v5_34.zzg(v6_40, v8_43);
                                                            }
                                                        } else {
                                                            com.google.android.gms.internal.measurement.zzfk v5_49;
                                                            this.zzacv.zzgi().zziy().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth), this.zzacv.zzgf().zzbm(v7_3.name));
                                                            if (this.zzky().zzcb(v2_7.zzasp.zzth)) {
                                                                v5_49 = 1;
                                                            } else {
                                                                if (!this.zzky().zzcc(v2_7.zzasp.zzth)) {
                                                                    v5_49 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_49 == null) && (!"_err".equals(v7_3.name))) {
                                                                this.zzacv.zzgg().zza(v2_7.zzasp.zzth, 11, "_ev", v7_3.name, 0);
                                                            }
                                                            v44 = v9_13;
                                                        }
                                                    }
                                                    int v34_3 = v12_9;
                                                    if (v13_3 < v2_7.zzasr.size()) {
                                                        v3_8.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v3_8.zzavi, v13_3));
                                                    }
                                                    if (v4_7 != null) {
                                                        Object v4_12;
                                                        Object v4_9 = this.zzjh().zzh(v3_8.zzth, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.internal.measurement.zzkc;
                                                            v4_12(v3_8.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf(v14_2));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                com.google.android.gms.internal.measurement.zzfk v5_70 = new com.google.android.gms.internal.measurement.zzkc;
                                                                v5_70(v3_8.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v14_2)));
                                                                v4_12 = v5_70;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.internal.measurement.zzfk v5_73 = new com.google.android.gms.internal.measurement.zzkx();
                                                        v5_73.name = "_lte";
                                                        v5_73.zzaws = Long.valueOf(this.zzacv.zzbt().currentTimeMillis());
                                                        v5_73.zzave = ((Long) v4_12.value);
                                                        String v6_80 = 0;
                                                        while (v6_80 < v3_8.zzavj.length) {
                                                            if (!"_lte".equals(v3_8.zzavj[v6_80].name)) {
                                                                v6_80++;
                                                            } else {
                                                                v3_8.zzavj[v6_80] = v5_73;
                                                                String v6_81 = 1;
                                                            }
                                                            if (v6_81 == null) {
                                                                v3_8.zzavj = ((com.google.android.gms.internal.measurement.zzkx[]) java.util.Arrays.copyOf(v3_8.zzavj, (v3_8.zzavj.length + 1)));
                                                                v3_8.zzavj[(v2_7.zzasp.zzavj.length - 1)] = v5_73;
                                                            }
                                                            if (v14_2 > 0) {
                                                                this.zzjh().zza(v4_12);
                                                                this.zzacv.zzgi().zzjb().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_81 = 0;
                                                    }
                                                    v3_8.zzawa = this.zza(v3_8.zzth, v3_8.zzavj, v3_8.zzavi);
                                                    if (this.zzacv.zzgk().zzav(v2_7.zzasp.zzth)) {
                                                        Object v4_20 = new java.util.HashMap();
                                                        com.google.android.gms.internal.measurement.zzfk v5_84 = new com.google.android.gms.internal.measurement.zzkr[v3_8.zzavi.length];
                                                        String v6_0 = this.zzacv.zzgg().zzlo();
                                                        int v7_0 = v3_8.zzavi;
                                                        com.google.android.gms.internal.measurement.zzet v8_0 = v7_0.length;
                                                        int v9_1 = 0;
                                                        boolean v10_0 = 0;
                                                        while (v9_1 < v8_0) {
                                                            long v63;
                                                            Boolean v12_7;
                                                            boolean v48;
                                                            int v47;
                                                            long v11_14 = v7_0[v9_1];
                                                            if (!v11_14.name.equals("_ep")) {
                                                                int v7_45;
                                                                Boolean v13_20 = Long.valueOf(1);
                                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                                    v47 = v7_0;
                                                                    v48 = v8_0;
                                                                    v7_45 = 0;
                                                                } else {
                                                                    if (v13_20 != null) {
                                                                        long v14_17 = v11_14.zzava;
                                                                        Long v15_5 = v14_17.length;
                                                                        v47 = v7_0;
                                                                        int v7_35 = 0;
                                                                        while (v7_35 < v15_5) {
                                                                            v48 = v8_0;
                                                                            com.google.android.gms.internal.measurement.zzet v8_65 = v14_17[v7_35];
                                                                            if (!"_dbg".equals(v8_65.name)) {
                                                                                v7_35++;
                                                                                v8_0 = v48;
                                                                            } else {
                                                                                if (((!(v13_20 instanceof Long)) || (!v13_20.equals(v8_65.zzave))) && (((!(v13_20 instanceof String)) || (!v13_20.equals(v8_65.zzale))) && ((!(v13_20 instanceof Double)) || (!v13_20.equals(v8_65.zzasw))))) {
                                                                                } else {
                                                                                    v7_45 = 1;
                                                                                }
                                                                            }
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                int v7_46;
                                                                if (v7_45 != 0) {
                                                                    v7_46 = 1;
                                                                } else {
                                                                    v7_46 = this.zzky().zzp(v2_7.zzasp.zzth, v11_14.name);
                                                                }
                                                                int v7_56;
                                                                if (v7_46 > 0) {
                                                                    com.google.android.gms.internal.measurement.zzet v8_70 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v11_14.name));
                                                                    if (v8_70 == null) {
                                                                        v8_70 = this.zzjh().zzf(v2_7.zzasp.zzth, v11_14.name);
                                                                        if (v8_70 == null) {
                                                                            this.zzacv.zzgi().zziy().zze("Event being bundled has no eventAggregate. appId, eventName", v2_7.zzasp.zzth, v11_14.name);
                                                                            v8_70 = new com.google.android.gms.internal.measurement.zzet;
                                                                            v8_70(v2_7.zzasp.zzth, v11_14.name, 1, 1, v11_14.zzavb.longValue(), 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    Boolean v13_25;
                                                                    this.zzjf();
                                                                    Boolean v12_52 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v11_14, "_eid"));
                                                                    if (v12_52 == null) {
                                                                        v13_25 = 0;
                                                                    } else {
                                                                        v13_25 = 1;
                                                                    }
                                                                    Boolean v13_26 = Boolean.valueOf(v13_25);
                                                                    if (v7_46 != 1) {
                                                                        if (v6_0.nextInt(v7_46) != 0) {
                                                                            v63 = v6_0;
                                                                            if (Math.abs((v11_14.zzavb.longValue() - v8_70.zzahk)) < 86400000) {
                                                                                if (!v13_26.booleanValue()) {
                                                                                    v9_1++;
                                                                                    v7_0 = v47;
                                                                                    v8_0 = v48;
                                                                                    v6_0 = v63;
                                                                                } else {
                                                                                    v4_20.put(v11_14.name, v8_70.zza(v12_52, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.zzjf();
                                                                                v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_efs", Long.valueOf(1));
                                                                                this.zzjf();
                                                                                long v14_30 = ((long) v7_46);
                                                                                v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_sr", Long.valueOf(v14_30));
                                                                                String v6_134 = (v10_0 + 1);
                                                                                v5_84[v10_0] = v11_14;
                                                                                if (v13_26.booleanValue()) {
                                                                                    v8_70 = v8_70.zza(0, Long.valueOf(v14_30), Boolean.valueOf(1));
                                                                                }
                                                                                v4_20.put(v11_14.name, v8_70.zzai(v11_14.zzavb.longValue()));
                                                                                v10_0 = v6_134;
                                                                            }
                                                                        } else {
                                                                            this.zzjf();
                                                                            v63 = v6_0;
                                                                            String v6_135 = ((long) v7_46);
                                                                            v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_sr", Long.valueOf(v6_135));
                                                                            v12_7 = (v10_0 + 1);
                                                                            v5_84[v10_0] = v11_14;
                                                                            if (v13_26.booleanValue()) {
                                                                                v8_70 = v8_70.zza(0, Long.valueOf(v6_135), 0);
                                                                            }
                                                                            v4_20.put(v11_14.name, v8_70.zzai(v11_14.zzavb.longValue()));
                                                                            v10_0 = v12_7;
                                                                        }
                                                                    } else {
                                                                        v7_56 = (v10_0 + 1);
                                                                        v5_84[v10_0] = v11_14;
                                                                        if ((v13_26.booleanValue()) && ((v8_70.zzahl != null) || ((v8_70.zzahm != null) || (v8_70.zzahn != null)))) {
                                                                            v4_20.put(v11_14.name, v8_70.zza(0, 0, 0));
                                                                        }
                                                                    }
                                                                } else {
                                                                    this.zzacv.zzgi().zziy().zze("Sample rate must be positive. event, rate", v11_14.name, Integer.valueOf(v7_46));
                                                                    v7_56 = (v10_0 + 1);
                                                                    v5_84[v10_0] = v11_14;
                                                                }
                                                                v63 = v6_0;
                                                                v10_0 = v7_56;
                                                            } else {
                                                                this.zzjf();
                                                                Boolean v12_62 = ((String) com.google.android.gms.internal.measurement.zzjz.zzb(v11_14, "_en"));
                                                                Boolean v13_29 = ((com.google.android.gms.internal.measurement.zzet) v4_20.get(v12_62));
                                                                if (v13_29 == null) {
                                                                    v13_29 = this.zzjh().zzf(v2_7.zzasp.zzth, v12_62);
                                                                    v4_20.put(v12_62, v13_29);
                                                                }
                                                                if (v13_29.zzahl != null) {
                                                                    v63 = v6_0;
                                                                    v47 = v7_0;
                                                                    v48 = v8_0;
                                                                } else {
                                                                    if (v13_29.zzahm.longValue() > 1) {
                                                                        this.zzjf();
                                                                        v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_sr", v13_29.zzahm);
                                                                    }
                                                                    if ((v13_29.zzahn != null) && (v13_29.zzahn.booleanValue())) {
                                                                        this.zzjf();
                                                                        v11_14.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v11_14.zzava, "_efs", Long.valueOf(1));
                                                                    }
                                                                    v12_7 = (v10_0 + 1);
                                                                    v5_84[v10_0] = v11_14;
                                                                    v63 = v6_0;
                                                                    v47 = v7_0;
                                                                    v48 = v8_0;
                                                                }
                                                            }
                                                        }
                                                        if (v10_0 < v3_8.zzavi.length) {
                                                            v3_8.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v5_84, v10_0));
                                                        }
                                                        Object v4_22 = v4_20.entrySet().iterator();
                                                        while (v4_22.hasNext()) {
                                                            this.zzjh().zza(((com.google.android.gms.internal.measurement.zzet) ((java.util.Map$Entry) v4_22.next()).getValue()));
                                                        }
                                                    }
                                                    v3_8.zzavl = Long.valueOf(nan);
                                                    v3_8.zzavm = Long.valueOf(-0.0);
                                                    Object v4_27 = 0;
                                                    while (v4_27 < v3_8.zzavi.length) {
                                                        com.google.android.gms.internal.measurement.zzfk v5_117 = v3_8.zzavi[v4_27];
                                                        if (v5_117.zzavb.longValue() < v3_8.zzavl.longValue()) {
                                                            v3_8.zzavl = v5_117.zzavb;
                                                        }
                                                        if (v5_117.zzavb.longValue() > v3_8.zzavm.longValue()) {
                                                            v3_8.zzavm = v5_117.zzavb;
                                                        }
                                                        v4_27++;
                                                    }
                                                    Object v4_29 = v2_7.zzasp.zzth;
                                                    com.google.android.gms.internal.measurement.zzfk v5_91 = this.zzjh().zzbf(v4_29);
                                                    if (v5_91 != null) {
                                                        if (v3_8.zzavi.length > 0) {
                                                            com.google.android.gms.internal.measurement.zzet v8_57;
                                                            String v6_94 = v5_91.zzgt();
                                                            if (v6_94 == 0) {
                                                                v8_57 = 0;
                                                            } else {
                                                                v8_57 = Long.valueOf(v6_94);
                                                            }
                                                            v3_8.zzavo = v8_57;
                                                            com.google.android.gms.internal.measurement.zzet v8_58 = v5_91.zzgs();
                                                            if (v8_58 != 0) {
                                                                v6_94 = v8_58;
                                                            } else {
                                                            }
                                                            String v6_95;
                                                            if (v6_94 == 0) {
                                                                v6_95 = 0;
                                                            } else {
                                                                v6_95 = Long.valueOf(v6_94);
                                                            }
                                                            v3_8.zzavn = v6_95;
                                                            v5_91.zzhb();
                                                            v3_8.zzavy = Integer.valueOf(((int) v5_91.zzgy()));
                                                            v5_91.zzr(v3_8.zzavl.longValue());
                                                            v5_91.zzs(v3_8.zzavm.longValue());
                                                            v3_8.zzafy = v5_91.zzhj();
                                                            this.zzjh().zza(v5_91);
                                                        }
                                                    } else {
                                                        this.zzacv.zzgi().zziv().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                    }
                                                    if (v3_8.zzavi.length > 0) {
                                                        com.google.android.gms.internal.measurement.zzfk v5_100;
                                                        this.zzacv.zzgl();
                                                        com.google.android.gms.internal.measurement.zzfk v5_99 = this.zzky().zzbx(v2_7.zzasp.zzth);
                                                        if (v5_99 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v2_7.zzasp.zzafa)) {
                                                                this.zzacv.zzgi().zziy().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_7.zzasp.zzth));
                                                            } else {
                                                                v5_100 = Long.valueOf(-1);
                                                                v3_8.zzawf = v5_100;
                                                            }
                                                        } else {
                                                            if (v5_99.zzaum != null) {
                                                                v5_100 = v5_99.zzaum;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzjh().zza(v3_8, v34_3);
                                                    }
                                                    android.database.sqlite.SQLiteException v3_12 = this.zzjh();
                                                    com.google.android.gms.internal.measurement.zzfk v2_8 = v2_7.zzasq;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_8);
                                                    v3_12.zzab();
                                                    v3_12.zzch();
                                                    com.google.android.gms.internal.measurement.zzfk v5_110 = new StringBuilder("rowid in (");
                                                    String v6_111 = 0;
                                                    while (v6_111 < v2_8.size()) {
                                                        if (v6_111 != null) {
                                                            v5_110.append(",");
                                                        }
                                                        v5_110.append(((Long) v2_8.get(v6_111)).longValue());
                                                        v6_111++;
                                                    }
                                                    v5_110.append(")");
                                                    com.google.android.gms.internal.measurement.zzfk v5_112 = v3_12.getWritableDatabase().delete("raw_events", v5_110.toString(), 0);
                                                    if (v5_112 != v2_8.size()) {
                                                        v3_12.zzgi().zziv().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_112), Integer.valueOf(v2_8.size()));
                                                    }
                                                    com.google.android.gms.internal.measurement.zzfk v2_11 = this.zzjh();
                                                    android.database.sqlite.SQLiteException v3_15 = v2_11.getWritableDatabase();
                                                    try {
                                                        String v6_117 = new String[2];
                                                        v6_117[0] = v4_29;
                                                        v6_117[1] = v4_29;
                                                        v3_15.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_117);
                                                    } catch (android.database.sqlite.SQLiteException v0_10) {
                                                        v2_11.zzgi().zziv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v4_29), v0_10);
                                                    }
                                                    this.zzjh().setTransactionSuccessful();
                                                    this.zzjh().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v9_0.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                        }
                                        if (v15_1.moveToNext()) {
                                            v4_31.zzgi().zziy().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                        }
                                        String[] v16_2;
                                        com.google.android.gms.internal.measurement.zzfk v5_56;
                                        v15_1.close();
                                        v2_7.zzb(v13_6);
                                        if (v5_123 == -1) {
                                            v5_56 = "app_id = ? and metadata_fingerprint = ?";
                                            int v9_16 = new String[2];
                                            v9_16[0] = v3_0;
                                            v9_16[1] = v22;
                                            v16_2 = v9_16;
                                        } else {
                                            Boolean v12_22 = new String[3];
                                            v12_22[0] = v3_0;
                                            v12_22[1] = v22;
                                            v12_22[2] = String.valueOf(v5_123);
                                            v5_56 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_2 = v12_22;
                                        }
                                        v9_0 = v15_1;
                                        com.google.android.gms.internal.measurement.zzfk v5_58 = v25.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_56, v16_2, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_58.moveToFirst()) {
                                                do {
                                                    Boolean v12_26 = v5_58.getLong(0);
                                                    int v9_20 = v5_58.getBlob(3);
                                                    int v9_21 = com.google.android.gms.internal.measurement.zzaca.zza(v9_20, 0, v9_20.length);
                                                    long v14_9 = new com.google.android.gms.internal.measurement.zzkr();
                                                    v14_9.zzb(v9_21);
                                                    v14_9.name = v5_58.getString(1);
                                                    v14_9.zzavb = Long.valueOf(v5_58.getLong(2));
                                                    if (v2_7.zza(v12_26, v14_9)) {
                                                    } else {
                                                        if (v5_58 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_58.moveToNext());
                                                if (v5_58 == null) {
                                                }
                                            } else {
                                                v4_31.zzgi().zziy().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                                if (v5_58 == null) {
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_8) {
                                            com.google.android.gms.internal.measurement.zzfk v2_0 = v0_8;
                                            int v21 = v5_58;
                                            if (v21 != 0) {
                                                v21.close();
                                            }
                                            throw v2_0;
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            Boolean v12_5 = v3_0;
                                            v9_0 = v5_58;
                                            android.database.sqlite.SQLiteException v3_3 = v0_1;
                                            v4_31.zzgi().zziv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_5), v3_3);
                                            if (v9_0 == 0) {
                                            }
                                        }
                                        v5_58.close();
                                    } else {
                                        v4_31.zzgi().zziv().zzg("Raw event metadata record is missing. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v3_0));
                                        if (v15_1 == null) {
                                        } else {
                                            v15_1.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_6) {
                                    v9_0 = v15_1;
                                    v2_0 = v0_6;
                                    v21 = v9_0;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v9_0 = v15_1;
                                } catch (android.database.sqlite.SQLiteException v0_9) {
                                    v2_0 = v0_9;
                                    v21 = v15_1;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v12_5 = v3_0;
                                    v9_0 = v15_1;
                                }
                                v12_5 = v3_0;
                            } catch (android.database.sqlite.SQLiteException v0_4) {
                                v2_0 = v0_4;
                                v21 = v23;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v12_5 = v3_0;
                                v9_0 = v23;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                            }
                        }
                    } else {
                        Boolean v13_18;
                        Boolean v12_39 = v5_123 cmp -1;
                        try {
                            if (v12_39 == null) {
                                v13_18 = new String[1];
                                v13_18[0] = String.valueOf(p66);
                            } else {
                                v13_18 = new String[2];
                                v13_18[0] = String.valueOf(v5_123);
                                v13_18[1] = String.valueOf(p66);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            v9_0 = 0;
                            v12_5 = 0;
                        }
                        Boolean v12_43;
                        if (v12_39 == null) {
                            v12_43 = "";
                        } else {
                            v12_43 = "rowid <= ? and ";
                        }
                        android.database.sqlite.SQLiteException v3_18 = new StringBuilder((String.valueOf(v12_43).length() + 148));
                        v3_18.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_18.append(v12_43);
                        v3_18.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_2.rawQuery(v3_18.toString(), v13_18);
                        if (v3_0.moveToFirst()) {
                            v12_5 = v3_0.getString(0);
                            try {
                                Boolean v13_1 = v3_0.getString(1);
                                v3_0.close();
                                v23 = v3_0;
                                v3_0 = v12_5;
                                v22 = v13_1;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v9_0 = v3_0;
                            }
                        } else {
                            if (v3_0 == null) {
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v2_0 = v0_2;
                    v21 = v3_0;
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v9_0 = v3_0;
                    v12_5 = 0;
                }
                v3_0.close();
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v2_0 = v0_0;
                v21 = 0;
            } catch (android.database.sqlite.SQLiteException v0_11) {
                v3_3 = v0_11;
                v9_0 = 0;
                v12_5 = 0;
            } catch (android.database.sqlite.SQLiteException v0_6) {
            }
        } catch (android.database.sqlite.SQLiteException v0_3) {
            com.google.android.gms.internal.measurement.zzfk v2_1 = v0_3;
            this.zzjh().endTransaction();
            throw v2_1;
        }
    }

Method com.google.android.gms.tagmanager.zzed.zza() calling method android.database.sqlite.SQLiteDatabase.query()


    private static boolean zza(String p10, android.database.sqlite.SQLiteDatabase p11)
    {
        String v1_0 = 0;
        try {
            String[] v6 = new String[1];
            v6[0] = p10;
            String v11_1 = p11.query("SQLITE_MASTER", new String[] {"name"}), "name=?", v6, 0, 0, 0);
            try {
                String v1_1 = v11_1.moveToFirst();
            } catch (Throwable v10_4) {
                v1_0 = v11_1;
                if (v1_0 != null) {
                    v1_0.close();
                }
                throw v10_4;
            } catch (android.database.sqlite.SQLiteException) {
                v1_0 = v11_1;
                Throwable v10_1 = String.valueOf(p10);
                if (v10_1.length() == 0) {
                    Throwable v10_3 = new String("Error querying for table ");
                } else {
                    v10_3 = "Error querying for table ".concat(v10_1);
                }
                com.google.android.gms.tagmanager.zzdi.zzab(v10_3);
                if (v1_0 != null) {
                    v1_0.close();
                }
                return 0;
            }
            if (v11_1 != null) {
                v11_1.close();
            }
            return v1_1;
        } catch (Throwable v10_4) {
        }
    }

Method com.google.android.gms.tagmanager.zzax.zza() calling method android.database.sqlite.SQLiteDatabase.query()


    private static boolean zza(String p10, android.database.sqlite.SQLiteDatabase p11)
    {
        String v1_0 = 0;
        try {
            String[] v6 = new String[1];
            v6[0] = p10;
            String v11_1 = p11.query("SQLITE_MASTER", new String[] {"name"}), "name=?", v6, 0, 0, 0);
            try {
                String v1_1 = v11_1.moveToFirst();
            } catch (Throwable v10_4) {
                v1_0 = v11_1;
                if (v1_0 != null) {
                    v1_0.close();
                }
                throw v10_4;
            } catch (android.database.sqlite.SQLiteException) {
                v1_0 = v11_1;
                Throwable v10_1 = String.valueOf(p10);
                if (v10_1.length() == 0) {
                    Throwable v10_3 = new String("Error querying for table ");
                } else {
                    v10_3 = "Error querying for table ".concat(v10_1);
                }
                com.google.android.gms.tagmanager.zzdi.zzab(v10_3);
                if (v1_0 != null) {
                    v1_0.close();
                }
                return 0;
            }
            if (v11_1 != null) {
                v11_1.close();
            }
            return v1_1;
        } catch (Throwable v10_4) {
        }
    }

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 p11, android.database.sqlite.SQLiteDatabase p12, String p13)
    {
        if (p11 == null) {
            throw new IllegalArgumentException("Monitor must not be null");
        } else {
            android.database.sqlite.SQLiteException v0_2 = 0;
            try {
                String[] v6 = new String[1];
                v6[0] = p13;
                android.database.sqlite.SQLiteException v12_2 = p12.query("SQLITE_MASTER", new String[] {"name"}), "name=?", v6, 0, 0, 0);
                try {
                    android.database.sqlite.SQLiteException v0_0 = v12_2.moveToFirst();
                } catch (Throwable v11_4) {
                    v0_2 = v12_2;
                    if (v0_2 != null) {
                        v0_2.close();
                    }
                    throw v11_4;
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v0_2 = v12_2;
                    android.database.sqlite.SQLiteException v12_3 = v0_1;
                    p11.zziy().zze("Error querying for table", p13, v12_3);
                    if (v0_2 != null) {
                        v0_2.close();
                    }
                    return 0;
                }
                if (v12_2 != null) {
                    v12_2.close();
                }
                return v0_0;
            } catch (Throwable v11_4) {
            } catch (android.database.sqlite.SQLiteException v12_3) {
            }
        }
    }

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


    private final boolean zza(android.database.sqlite.SQLiteDatabase p12, String p13)
    {
        android.database.sqlite.SQLiteException v1_0 = 0;
        try {
            String[] v6 = new String[1];
            v6[0] = p13;
            android.database.sqlite.SQLiteException v12_1 = p12.query("SQLITE_MASTER", new String[] {"name"}), "name=?", v6, 0, 0, 0);
            try {
                android.database.sqlite.SQLiteException v1_1 = v12_1.moveToFirst();
            } catch (Throwable v13_1) {
                v1_0 = v12_1;
                if (v1_0 != null) {
                    v1_0.close();
                }
                throw v13_1;
            } catch (android.database.sqlite.SQLiteException v1_2) {
                v1_0 = v12_1;
                android.database.sqlite.SQLiteException v12_2 = v1_2;
                this.zzwy.zzc("Error querying for table", p13, v12_2);
                if (v1_0 != null) {
                    v1_0.close();
                }
                return 0;
            }
            if (v12_1 != null) {
                v12_1.close();
            }
            return v1_1;
        } catch (Throwable v13_1) {
        } catch (android.database.sqlite.SQLiteException v12_2) {
        }
    }

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.common.util.DbUtils.zza() calling method android.database.sqlite.SQLiteDatabase.query()


    private static varargs void zza(android.database.sqlite.SQLiteDatabase p11, String p12, String[] p13)
    {
        if ((!"table".equals(p12)) && ((!"view".equals(p12)) && (!"trigger".equals(p12)))) {
            int v0_3 = 0;
        } else {
            v0_3 = 1;
        }
        com.google.android.gms.common.internal.Preconditions.checkArgument(v0_3);
        String[] v7 = new String[1];
        v7[0] = p12;
        int v0_6 = p11.query("SQLITE_MASTER", new String[] {"name"}), "type == ?", v7, 0, 0, 0);
        Throwable v1_1 = 0;
        try {
            java.util.Set v13_1 = com.google.android.gms.common.util.CollectionUtils.setOf(p13);
        } catch (Throwable v11_2) {
            if (v0_6 != 0) {
                if (v1_1 == null) {
                    v0_6.close();
                } else {
                    try {
                        v0_6.close();
                    } catch (Throwable v12_1) {
                        com.google.android.gms.internal.stable.zzk.zza(v1_1, v12_1);
                    }
                }
            }
            throw v11_2;
        } catch (Throwable v11_1) {
            v1_1 = v11_1;
            throw v1_1;
        }
        while (v0_6.moveToNext()) {
            String v3_2 = v0_6.getString(0);
            if (!v13_1.contains(v3_2)) {
                StringBuilder v5_4 = new StringBuilder(((String.valueOf(p12).length() + 8) + String.valueOf(v3_2).length()));
                v5_4.append("DROP ");
                v5_4.append(p12);
                v5_4.append(" \'");
                v5_4.append(v3_2);
                v5_4.append("\'");
                p11.execSQL(v5_4.toString());
            }
        }
        if (v0_6 != 0) {
            v0_6.close();
        }
        return;
    }

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;
        }
    }

Method com.evernote.android.job.l.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.Set a(String p14, boolean p15)
    {
        Throwable v0_1 = new java.util.HashSet();
        this.h.readLock().lock();
        try {
            String v7;
            String[] v8;
            if (!android.text.TextUtils.isEmpty(p14)) {
                Exception v15_1;
                if (p15 == null) {
                    v15_1 = "ifnull(started, 0)<=0 AND ";
                } else {
                    v15_1 = "";
                }
                com.evernote.android.job.k v3_1 = new StringBuilder();
                v3_1.append(v15_1);
                v3_1.append("tag=?");
                Exception v15_3 = v3_1.toString();
                com.evernote.android.job.k v3_3 = new String[1];
                v3_3[0] = p14;
                v7 = v15_3;
                v8 = v3_3;
                android.database.sqlite.SQLiteDatabase v14_4 = this.b();
                try {
                    Exception v15_4 = v14_4.query("jobs", 0, v7, v8, 0, 0, 0);
                    try {
                        Exception v2_2 = new java.util.HashMap(this.c.snapshot());
                    } catch (Exception v2_0) {
                        Object[] v1_3 = new Object[0];
                        ark>com.evernote.android.job.lark>.a.b(v2_0, "could not load all jobs", v1_3);
                    }
                    while ((v15_4 != null) && (v15_4.moveToNext())) {
                        com.evernote.android.job.k v3_10 = Integer.valueOf(v15_4.getInt(v15_4.getColumnIndex("_id")));
                        if (!this.c(v3_10.intValue())) {
                            if (!v2_2.containsKey(v3_10)) {
                                v0_1.add(com.evernote.android.job.k.a(v15_4));
                            } else {
                                v0_1.add(v2_2.get(v3_10));
                            }
                        }
                    }
                } catch (Exception v15_6) {
                    Throwable v0_2 = v15_6;
                    v15_4 = 0;
                    ark>com.evernote.android.job.lark>.a(v15_4);
                    ark>com.evernote.android.job.lark>.a(v14_4);
                    this.h.readLock().unlock();
                    throw v0_2;
                } catch (Exception v15_5) {
                    v2_0 = v15_5;
                    v15_4 = 0;
                }
            } else {
                android.database.sqlite.SQLiteDatabase v14_3;
                if (p15 == null) {
                    v14_3 = "ifnull(started, 0)<=0";
                } else {
                    v14_3 = 0;
                }
                v7 = v14_3;
                v8 = 0;
            }
        } catch (android.database.sqlite.SQLiteDatabase v14_6) {
            v0_2 = v14_6;
            v14_4 = 0;
            v15_4 = 0;
        } catch (android.database.sqlite.SQLiteDatabase v14_5) {
            v15_4 = 0;
            v2_0 = v14_5;
            v14_4 = 0;
        } catch (Throwable v0_2) {
        }
        ark>com.evernote.android.job.lark>.a(v15_4);
        ark>com.evernote.android.job.lark>.a(v14_4);
        this.h.readLock().unlock();
        return v0_1;
    }

Method com.evernote.android.job.l.a() calling method android.database.sqlite.SQLiteDatabase.query()


    private com.evernote.android.job.k a(int p13, boolean p14)
    {
        android.database.Cursor v1 = 0;
        if (!this.c(p13)) {
            try {
                android.database.Cursor v3_1 = "_id=?";
            } catch (Throwable v13_1) {
                Exception v14_1 = 0;
                ark>com.evernote.android.job.lark>.a(v1);
                ark>com.evernote.android.job.lark>.a(v14_1);
                throw v13_1;
            } catch (Exception v14_2) {
                android.database.Cursor v3_2 = 0;
                com.evernote.android.job.k v4_0 = 0;
                try {
                    Object[] v2_1 = new Object[1];
                    v2_1[0] = Integer.valueOf(p13);
                    ark>com.evernote.android.job.lark>.a.b(v14_2, "could not load id %d", v2_1);
                    ark>com.evernote.android.job.lark>.a(v3_2);
                    ark>com.evernote.android.job.lark>.a(v4_0);
                } catch (Throwable v13_1) {
                    v1 = v3_2;
                    v14_1 = v4_0;
                }
                return 0;
            }
            if (p14 == null) {
                Exception v14_4 = new StringBuilder();
                v14_4.append("_id=?");
                v14_4.append(" AND started<=0");
                v3_1 = v14_4.toString();
            }
            String v6_0 = v3_1;
            v14_1 = this.b();
            try {
                String[] v7 = new String[1];
                v7[0] = String.valueOf(p13);
                v3_2 = v14_1.query("jobs", 0, v6_0, v7, 0, 0, 0);
                try {
                    if ((v3_2 == null) || (!v3_2.moveToFirst())) {
                        ark>com.evernote.android.job.lark>.a(v3_2);
                        ark>com.evernote.android.job.lark>.a(v14_1);
                        return 0;
                    } else {
                        com.evernote.android.job.k v4_4 = com.evernote.android.job.k.a(v3_2);
                        ark>com.evernote.android.job.lark>.a(v3_2);
                        ark>com.evernote.android.job.lark>.a(v14_1);
                        return v4_4;
                    }
                } catch (Throwable v13_1) {
                    v1 = v3_2;
                } catch (com.evernote.android.job.k v4_3) {
                    v4_0 = v14_1;
                    v14_2 = v4_3;
                }
            } catch (Throwable v13_1) {
            } catch (android.database.Cursor v3_5) {
                v4_0 = v14_1;
                v14_2 = v3_5;
                v3_2 = 0;
            }
        } else {
            return 0;
        }
    }

Method com.braintreepayments.api.internal.a.a() calling method android.database.sqlite.SQLiteDatabase.query()

Couldn't retrieve source code