Info Call to SQLite query API

Description

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

Recommendation

This entry is informative, no recommendations applicable.

Technical details

Method com.google.firebase.database.android.SqlPersistenceStorageEngine.resetPreviouslyActiveTrackedQueries() calling method android.database.sqlite.SQLiteDatabase.updateWithOnConflict()


    public void resetPreviouslyActiveTrackedQueries(long p10)
    {
        this.verifyInsideTransaction();
        com.google.firebase.database.logging.LogWrapper v0_0 = System.currentTimeMillis();
        android.content.ContentValues v4_1 = new android.content.ContentValues();
        v4_1.put("active", Boolean.valueOf(0));
        v4_1.put("lastUse", Long.valueOf(p10));
        String[] v6 = new String[0];
        this.database.updateWithOnConflict("trackedQueries", v4_1, "active = 1", v6, 5);
        String v10_2 = System.currentTimeMillis();
        if (this.logger.logsDebug()) {
            com.google.firebase.database.logging.LogWrapper v0_3 = this.logger;
            Object[] v2_3 = new Object[1];
            v2_3[0] = Long.valueOf((v10_2 - v0_0));
            Object[] v11 = new Object[0];
            v0_3.debug(String.format("Reset active tracked queries in %dms", v2_3), v11);
        }
        return;
    }

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


    protected final long zzn(String p14, String p15)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p14);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p15);
        this.zzaf();
        this.zzcl();
        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_5 = v4_2.toString();
            Object v5_1 = new String[1];
            v5_1[0] = p14;
            com.google.android.gms.measurement.internal.zzas v9_0 = this.zza(v3_5, v5_1, -1);
        } catch (Object v14_2) {
            v0.endTransaction();
            throw v14_2;
        } catch (Object v3_10) {
            v9_0 = 0;
            this.zzgt().zzjg().zzd("Error inserting column. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p14), p15, v3_10);
            v0.endTransaction();
            return v9_0;
        }
        if (v9_0 == -1) {
            Object v3_8 = new android.content.ContentValues();
            v3_8.put("app_id", p14);
            v3_8.put("first_open_count", Integer.valueOf(0));
            v3_8.put("previous_install_count", Integer.valueOf(0));
            if (v0.insertWithOnConflict("app2", 0, v3_8, 5) != -1) {
                v9_0 = 0;
            } else {
                this.zzgt().zzjg().zze("Failed to insert column (got -1). appId", com.google.android.gms.measurement.internal.zzaq.zzby(p14), p15);
                v0.endTransaction();
                return -1;
            }
        }
        try {
            Object v3_12 = new android.content.ContentValues();
            v3_12.put("app_id", p14);
            v3_12.put(p15, Long.valueOf((1 + v9_0)));
            String v4_4 = new String[1];
            v4_4[0] = p14;
        } catch (Object v3_10) {
        }
        if (((long) v0.update("app2", v3_12, "app_id = ?", v4_4)) != 0) {
            v0.setTransactionSuccessful();
            v0.endTransaction();
            return v9_0;
        } else {
            this.zzgt().zzjg().zze("Failed to update column (got 0). appId", com.google.android.gms.measurement.internal.zzaq.zzby(p14), p15);
            v0.endTransaction();
            return -1;
        }
    }

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


    public final void zza(com.google.android.gms.measurement.internal.zzg p8)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p8);
        this.zzaf();
        this.zzcl();
        com.google.android.gms.measurement.internal.zzas v0_5 = new android.content.ContentValues();
        v0_5.put("app_id", p8.zzal());
        v0_5.put("app_instance_id", p8.getAppInstanceId());
        v0_5.put("gmp_app_id", p8.getGmpAppId());
        v0_5.put("resettable_device_id_hash", p8.zzhc());
        v0_5.put("last_bundle_index", Long.valueOf(p8.zzhj()));
        v0_5.put("last_bundle_start_timestamp", Long.valueOf(p8.zzhd()));
        v0_5.put("last_bundle_end_timestamp", Long.valueOf(p8.zzhe()));
        v0_5.put("app_version", p8.zzak());
        v0_5.put("app_store", p8.zzhg());
        v0_5.put("gmp_version", Long.valueOf(p8.zzhh()));
        v0_5.put("dev_cert_hash", Long.valueOf(p8.zzhi()));
        v0_5.put("measurement_enabled", Boolean.valueOf(p8.isMeasurementEnabled()));
        v0_5.put("day", Long.valueOf(p8.zzhn()));
        v0_5.put("daily_public_events_count", Long.valueOf(p8.zzho()));
        v0_5.put("daily_events_count", Long.valueOf(p8.zzhp()));
        v0_5.put("daily_conversions_count", Long.valueOf(p8.zzhq()));
        v0_5.put("config_fetched_time", Long.valueOf(p8.zzhk()));
        v0_5.put("failed_config_fetch_time", Long.valueOf(p8.zzhl()));
        v0_5.put("app_version_int", Long.valueOf(p8.zzhf()));
        v0_5.put("firebase_instance_id", p8.getFirebaseInstanceId());
        v0_5.put("daily_error_events_count", Long.valueOf(p8.zzhs()));
        v0_5.put("daily_realtime_events_count", Long.valueOf(p8.zzhr()));
        v0_5.put("health_monitor_sample", p8.zzht());
        v0_5.put("android_id", Long.valueOf(p8.zzhv()));
        v0_5.put("adid_reporting_enabled", Boolean.valueOf(p8.zzhw()));
        v0_5.put("ssaid_reporting_enabled", Boolean.valueOf(p8.zzhx()));
        v0_5.put("admob_app_id", p8.zzhb());
        try {
            String v1_10 = this.getWritableDatabase();
            long v4_1 = new String[1];
            v4_1[0] = p8.zzal();
        } catch (com.google.android.gms.measurement.internal.zzas v0_3) {
            this.zzgt().zzjg().zze("Error storing app. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p8.zzal()), v0_3);
            return;
        }
        if ((((long) v1_10.update("apps", v0_5, "app_id = ?", v4_1)) == 0) && (v1_10.insertWithOnConflict("apps", 0, v0_5, 5) == -1)) {
            this.zzgt().zzjg().zzg("Failed to insert/update app (got -1). appId", com.google.android.gms.measurement.internal.zzaq.zzby(p8.zzal()));
        }
        return;
    }

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


    public final com.google.android.gms.measurement.internal.zzs zza(long p20, String p22, boolean p23, boolean p24, boolean p25, boolean p26, boolean p27)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p22);
        this.zzaf();
        this.zzcl();
        String v2_3 = new String[1];
        v2_3[0] = p22;
        com.google.android.gms.measurement.internal.zzs v4_1 = new com.google.android.gms.measurement.internal.zzs();
        try {
            android.database.sqlite.SQLiteDatabase v14 = this.getWritableDatabase();
            String[] v8 = new String[6];
            v8[0] = "day";
            v8[1] = "daily_events_count";
            v8[2] = "daily_public_events_count";
            v8[3] = "daily_conversions_count";
            v8[4] = "daily_error_events_count";
            v8[5] = "daily_realtime_events_count";
            String[] v10 = new String[1];
            v10[0] = p22;
            int v6_0 = v14.query("apps", v8, "app_id=?", v10, 0, 0, 0);
            try {
                if (v6_0.moveToFirst()) {
                    if (v6_0.getLong(0) == p20) {
                        v4_1.zzahu = v6_0.getLong(1);
                        v4_1.zzaht = v6_0.getLong(2);
                        v4_1.zzahv = v6_0.getLong(3);
                        v4_1.zzahw = v6_0.getLong(4);
                        v4_1.zzahx = v6_0.getLong(5);
                    }
                    if (p23) {
                        v4_1.zzahu = (v4_1.zzahu + 1);
                    }
                    if (p24) {
                        v4_1.zzaht = (v4_1.zzaht + 1);
                    }
                    if (p25) {
                        v4_1.zzahv = (v4_1.zzahv + 1);
                    }
                    if (p26) {
                        v4_1.zzahw = (v4_1.zzahw + 1);
                    }
                    if (p27) {
                        v4_1.zzahx = (v4_1.zzahx + 1);
                    }
                    android.content.ContentValues v0_2 = new android.content.ContentValues();
                    v0_2.put("day", Long.valueOf(p20));
                    v0_2.put("daily_public_events_count", Long.valueOf(v4_1.zzaht));
                    v0_2.put("daily_events_count", Long.valueOf(v4_1.zzahu));
                    v0_2.put("daily_conversions_count", Long.valueOf(v4_1.zzahv));
                    v0_2.put("daily_error_events_count", Long.valueOf(v4_1.zzahw));
                    v0_2.put("daily_realtime_events_count", Long.valueOf(v4_1.zzahx));
                    v14.update("apps", v0_2, "app_id=?", v2_3);
                    if (v6_0 != 0) {
                        v6_0.close();
                    }
                    return v4_1;
                } else {
                    this.zzgt().zzjj().zzg("Not updating daily counts, app is not known. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p22));
                    if (v6_0 != 0) {
                        v6_0.close();
                    }
                    return v4_1;
                }
            } catch (android.content.ContentValues v0_0) {
                if (v6_0 != 0) {
                    v6_0.close();
                }
                throw v0_0;
            } catch (android.content.ContentValues v0_6) {
                String v5_0 = v6_0;
                try {
                    this.zzgt().zzjg().zze("Error updating daily counts. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p22), v0_6);
                } catch (android.content.ContentValues v0_0) {
                    v6_0 = v5_0;
                }
                if (v5_0 != null) {
                    v5_0.close();
                }
                return v4_1;
            }
        } catch (android.content.ContentValues v0_0) {
            v6_0 = 0;
        } catch (android.content.ContentValues v0_6) {
            v5_0 = 0;
        }
    }

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


    protected final boolean zza(String p17, byte[] p18, String p19)
    {
        this.zzcl();
        this.zzaf();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p17);
        com.google.android.gms.measurement.internal.zzas v0_3 = this.zza(p17, p18);
        if (v0_3 != null) {
            void v1_1 = this.zza(p17, v0_3);
            v1_1.zzaoy.put(p17, v0_3);
            v1_1.zzapa.put(p17, p19);
            v1_1.zzaov.put(p17, com.google.android.gms.measurement.internal.zzbo.zza(v0_3));
            com.google.android.gms.measurement.internal.zzas v4_3 = this.zzjs();
            String v5_2 = v0_3.zzaxb;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v5_2);
            Object v6_0 = v5_2.length;
            int v7_0 = 0;
            while (v7_0 < v6_0) {
                String[] v8_1 = v5_2[v7_0];
                int v9_2 = v8_1.zzavt;
                int v10_1 = v9_2.length;
                int v11_2 = 0;
                while (v11_2 < v10_1) {
                    com.google.android.gms.internal.measurement.zzfz[] v12_0 = v9_2[v11_2];
                    int v13_1 = com.google.android.gms.measurement.internal.zzcs.zzcq(v12_0.zzavy);
                    if (v13_1 != 0) {
                        v12_0.zzavy = v13_1;
                    }
                    com.google.android.gms.internal.measurement.zzfz[] v12_1 = v12_0.zzavz;
                    int v13_2 = v12_1.length;
                    int v14 = 0;
                    while (v14 < v13_2) {
                        com.google.android.gms.internal.measurement.zzfz v15 = v12_1[v14];
                        int v3_1 = com.google.android.gms.measurement.internal.zzct.zzcq(v15.zzawg);
                        if (v3_1 != 0) {
                            v15.zzawg = v3_1;
                        }
                        v14++;
                    }
                    v11_2++;
                }
                int v3_10 = v8_1.zzavs;
                String[] v8_2 = v3_10.length;
                int v9_0 = 0;
                while (v9_0 < v8_2) {
                    int v10_0 = v3_10[v9_0];
                    int v11_1 = com.google.android.gms.measurement.internal.zzcu.zzcq(v10_0.zzawn);
                    if (v11_1 != 0) {
                        v10_0.zzawn = v11_1;
                    }
                    v9_0++;
                }
                v7_0++;
            }
            v4_3.zzjt().zza(p17, v5_2);
            try {
                v0_3.zzaxb = 0;
                int v3_5 = new byte[v0_3.zzwe()];
                v0_3.zza(com.google.android.gms.internal.measurement.zzzj.zzk(v3_5, 0, v3_5.length));
            } catch (com.google.android.gms.measurement.internal.zzas v0_0) {
                this.zzgt().zzjj().zze("Unable to serialize reduced-size config. Storing full config instead. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p17), v0_0);
                v3_5 = p18;
            }
            com.google.android.gms.measurement.internal.zzas v4_7 = this.zzjt();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p17);
            v4_7.zzaf();
            v4_7.zzcl();
            com.google.android.gms.measurement.internal.zzas v0_2 = new android.content.ContentValues();
            v0_2.put("remote_config", v3_5);
            try {
                String v5_6 = v4_7.getWritableDatabase();
                String[] v8_0 = new String[1];
                v8_0[0] = p17;
            } catch (com.google.android.gms.measurement.internal.zzas v0_6) {
                v4_7.zzgt().zzjg().zze("Error storing remote config. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p17), v0_6);
                return 1;
            }
            if (((long) v5_6.update("apps", v0_2, "app_id = ?", v8_0)) != 0) {
                return 1;
            } else {
                v4_7.zzgt().zzjg().zzg("Failed to update remote config (got 0). appId", com.google.android.gms.measurement.internal.zzaq.zzby(p17));
                return 1;
            }
        } else {
            return 0;
        }
    }

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


    public final long zzio()
    {
        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.zzgt().zzjg().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.measurement.internal.zzr.zzih() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final String zzih()
    {
        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.zzgt().zzjg().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.measurement.internal.zzr.zzah() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final String zzah(long p5)
    {
        this.zzaf();
        this.zzcl();
        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.zzgt().zzjo().zzca("No expired configs for apps with pending events");
                    if (v5_1 != 0) {
                        v5_1.close();
                    }
                    return 0;
                }
            } catch (String v6_1) {
                this.zzgt().zzjg().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.measurement.internal.zzr.zza() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final android.util.Pair zza(String p8, Long p9)
    {
        this.zzaf();
        this.zzcl();
        try {
            int v1_1 = this.getWritableDatabase();
            com.google.android.gms.measurement.internal.zzas 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.measurement.internal.zzas v3_0 = Long.valueOf(v1_0.getLong(1));
                    java.io.IOException v2_2 = com.google.android.gms.internal.measurement.zzzi.zzj(v2_1, 0, v2_1.length);
                    String v4_1 = new com.google.android.gms.internal.measurement.zzgi();
                    try {
                        v4_1.zza(v2_2);
                    } catch (java.io.IOException v2_3) {
                        this.zzgt().zzjg().zzd("Failed to merge main event. appId, eventId", com.google.android.gms.measurement.internal.zzaq.zzby(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.zzgt().zzjo().zzca("Main event not found");
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return 0;
                }
            } catch (Object v8_1) {
                this.zzgt().zzjg().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.measurement.internal.zzr.zza() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final long zza(String p3, String[] p4, long p5)
    {
        com.google.android.gms.measurement.internal.zzas v1 = 0;
        try {
            com.google.android.gms.measurement.internal.zzas 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.zzgt().zzjg().zze("Database error", p3, v5_3);
                throw v5_3;
            }
        } catch (Throwable v3_1) {
        } catch (long v5_3) {
        }
    }

Method com.google.android.gms.measurement.internal.zzr.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.measurement.internal.zzas 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.zzgt().zzjg().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.measurement.internal.zzam.zza() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final boolean zza(int p18, byte[] p19)
    {
        this.zzgg();
        this.zzaf();
        Long v2_5 = 0;
        if (!this.zzaly) {
            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.zzgt().zzjg().zzca("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.zzgt().zzjg().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.zzaly = 1;
                            if (v9 != 0) {
                                v9.close();
                            }
                            return v2_5;
                        }
                        v7 = v9;
                        if (v7 != 0) {
                            if (v7.inTransaction()) {
                                v7.endTransaction();
                            }
                        }
                        this.zzgt().zzjg().zzg("Error writing entry to local database", com.google.android.gms.measurement.internal.zzas v0_0);
                        this.zzaly = 1;
                        if (v12 != 0) {
                            v12.close();
                        }
                        if (v7 == 0) {
                        } else {
                            v7.close();
                        }
                    } catch (com.google.android.gms.measurement.internal.zzas v0_3) {
                        this.zzgt().zzjg().zzg("Error writing entry to local database", v0_3);
                        this.zzaly = 1;
                        if (v7 != 0) {
                            v7.close();
                        }
                        if (v9 == 0) {
                        } else {
                            v9.close();
                        }
                    } catch (com.google.android.gms.measurement.internal.zzas v0_0) {
                        v12 = 0;
                    }
                } catch (com.google.android.gms.measurement.internal.zzas v0_1) {
                    v9 = 0;
                    v12 = 0;
                    if (v12 != 0) {
                        v12.close();
                    }
                    if (v9 != 0) {
                        v9.close();
                    }
                    throw v0_1;
                } catch (com.google.android.gms.measurement.internal.zzas v0_3) {
                    v9 = 0;
                } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                    v9 = 0;
                } catch (com.google.android.gms.measurement.internal.zzas v0_0) {
                    v12 = 0;
                } catch (com.google.android.gms.measurement.internal.zzas v0_1) {
                    v12 = v7;
                }
            }
            this.zzgt().zzjj().zzca("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

Method com.google.firebase.database.android.SqlPersistenceStorageEngine.serverCacheEstimatedSizeInBytes() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


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

Method com.google.firebase.database.android.SqlPersistenceStorageEngine.openDatabase() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


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

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


    private final boolean zzd(String p53, long p54)
    {
        String v1_0 = this;
        this.zzjt().beginTransaction();
        try {
            com.google.android.gms.measurement.internal.zzaa v3_9 = 0;
            int v2_0 = new com.google.android.gms.measurement.internal.zzfk$zza(this, 0);
            String v4_53 = this.zzjt();
            com.google.android.gms.measurement.internal.zzfk v5_40 = this.zzaup;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_0);
            v4_53.zzaf();
            v4_53.zzcl();
            try {
                int v22;
                String v7_3;
                boolean v15_7 = v4_53.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        com.google.android.gms.measurement.internal.zzaa v3_11;
                        if (v5_40 == -1) {
                            v3_11 = new String[1];
                            v3_11[0] = 0;
                        } else {
                            v3_11 = new String[2];
                            v3_11[0] = 0;
                            v3_11[1] = String.valueOf(v5_40);
                        }
                        String v7_30;
                        if (v5_40 == -1) {
                            v7_30 = "";
                        } else {
                            v7_30 = " and rowid <= ?";
                        }
                        int v14_27 = new StringBuilder((String.valueOf(v7_30).length() + 84));
                        v14_27.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_27.append(v7_30);
                        v14_27.append(" order by rowid limit 1;");
                        v3_9 = v15_7.rawQuery(v14_27.toString(), v3_11);
                        if (v3_9.moveToFirst()) {
                            int v13_50 = v3_9.getString(0);
                            v3_9.close();
                            v22 = v3_9;
                            v7_3 = v13_50;
                            v3_9 = 0;
                            try {
                                int v13_12 = new String[1];
                                v13_12[0] = "metadata";
                                Boolean v8_17 = new String[2];
                                v8_17[0] = v3_9;
                                v8_17[1] = v7_3;
                                android.database.sqlite.SQLiteDatabase v23 = v15_7;
                                Boolean v8_7 = v15_7.query("raw_events_metadata", v13_12, "app_id = ? and metadata_fingerprint = ?", v8_17, 0, 0, "rowid", "2");
                                try {
                                    if (v8_7.moveToFirst()) {
                                        Long v9_67 = v8_7.getBlob(0);
                                        Long v9_68 = com.google.android.gms.internal.measurement.zzzi.zzj(v9_67, 0, v9_67.length);
                                        int v13_34 = new com.google.android.gms.internal.measurement.zzgl();
                                        try {
                                            v13_34.zza(v9_68);
                                        } catch (android.database.sqlite.SQLiteException v0_4) {
                                            v4_53.zzgt().zzjg().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9), v0_4);
                                            if (v8_7 == null) {
                                                com.google.android.gms.measurement.internal.zzaa v3_15;
                                                if (v2_0.zzauv == null) {
                                                    v3_15 = 1;
                                                } else {
                                                    if (!v2_0.zzauv.isEmpty()) {
                                                        v3_15 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_15 != null) {
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.measurement.internal.zzaa v3_8 = v2_0.zzaut;
                                                    String v4_4 = new com.google.android.gms.internal.measurement.zzgi[v2_0.zzauv.size()];
                                                    v3_8.zzaxu = v4_4;
                                                    String v4_7 = this.zzadp.zzgv().zzaw(v3_8.zztt);
                                                    com.google.android.gms.measurement.internal.zzfk v5_16 = this.zzadp.zzgv().zze(v2_0.zzaut.zztt, com.google.android.gms.measurement.internal.zzag.zzalm);
                                                    long v6_13 = 0;
                                                    Boolean v8_71 = 0;
                                                    Long v9_73 = 0;
                                                    boolean v10_5 = 0;
                                                    int v13_40 = 0;
                                                    int v14_18 = 0;
                                                    while (v8_71 < v2_0.zzauv.size()) {
                                                        com.google.android.gms.measurement.internal.zzaa v25_0;
                                                        String v26_1;
                                                        String v7_18 = ((com.google.android.gms.internal.measurement.zzgi) v2_0.zzauv.get(v8_71));
                                                        boolean v24_0 = v9_73;
                                                        if (!this.zzls().zzo(v2_0.zzaut.zztt, v7_18.name)) {
                                                            int v39_0;
                                                            long v37_0;
                                                            v25_0 = v8_71;
                                                            String v26_0 = v13_40;
                                                            Boolean v8_15 = this.zzls().zzp(v2_0.zzaut.zztt, v7_18.name);
                                                            if (v8_15 != null) {
                                                                if (v7_18.zzaxm == null) {
                                                                    int v12_19 = new com.google.android.gms.internal.measurement.zzgj[0];
                                                                    v7_18.zzaxm = v12_19;
                                                                }
                                                                int v11_12 = v7_18.zzaxm;
                                                                int v12_20 = v11_12.length;
                                                                int v13_9 = 0;
                                                                long v18_0 = 0;
                                                                int v19_0 = 0;
                                                                while (v13_9 < v12_20) {
                                                                    Long v9_77 = v11_12[v13_9];
                                                                    long v28_1 = v11_12;
                                                                    long v29_1 = v12_20;
                                                                    if (!"_c".equals(v9_77.name)) {
                                                                        if ("_r".equals(v9_77.name)) {
                                                                            v9_77.zzaxq = Long.valueOf(1);
                                                                            v19_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v9_77.zzaxq = Long.valueOf(1);
                                                                        v18_0 = 1;
                                                                    }
                                                                    v13_9++;
                                                                    v11_12 = v28_1;
                                                                    v12_20 = v29_1;
                                                                }
                                                                if ((v18_0 == 0) && (v8_15 != null)) {
                                                                    this.zzadp.zzgt().zzjo().zzg("Marking event as conversion", this.zzadp.zzgq().zzbv(v7_18.name));
                                                                    Long v9_14 = ((com.google.android.gms.internal.measurement.zzgj[]) java.util.Arrays.copyOf(v7_18.zzaxm, (v7_18.zzaxm.length + 1)));
                                                                    int v11_18 = new com.google.android.gms.internal.measurement.zzgj();
                                                                    v11_18.name = "_c";
                                                                    v11_18.zzaxq = Long.valueOf(1);
                                                                    v9_14[(v9_14.length - 1)] = v11_18;
                                                                    v7_18.zzaxm = v9_14;
                                                                }
                                                                if (v19_0 == 0) {
                                                                    this.zzadp.zzgt().zzjo().zzg("Marking event as real-time", this.zzadp.zzgq().zzbv(v7_18.name));
                                                                    Long v9_20 = ((com.google.android.gms.internal.measurement.zzgj[]) java.util.Arrays.copyOf(v7_18.zzaxm, (v7_18.zzaxm.length + 1)));
                                                                    int v11_24 = new com.google.android.gms.internal.measurement.zzgj();
                                                                    v11_24.name = "_r";
                                                                    v11_24.zzaxq = Long.valueOf(1);
                                                                    v9_20[(v9_20.length - 1)] = v11_24;
                                                                    v7_18.zzaxm = v9_20;
                                                                }
                                                                Long v9_28;
                                                                v37_0 = v14_18;
                                                                if (this.zzjt().zza(this.zzly(), v2_0.zzaut.zztt, 0, 0, 0, 0, 1).zzahx <= ((long) this.zzadp.zzgv().zzas(v2_0.zzaut.zztt))) {
                                                                    v9_28 = 1;
                                                                } else {
                                                                    Long v9_29 = 0;
                                                                    while (v9_29 < v7_18.zzaxm.length) {
                                                                        if (!"_r".equals(v7_18.zzaxm[v9_29].name)) {
                                                                            v9_29++;
                                                                        } else {
                                                                            int v11_33 = new com.google.android.gms.internal.measurement.zzgj[(v7_18.zzaxm.length - 1)];
                                                                            if (v9_29 > null) {
                                                                                System.arraycopy(v7_18.zzaxm, 0, v11_33, 0, v9_29);
                                                                            }
                                                                            if (v9_29 < v11_33.length) {
                                                                                System.arraycopy(v7_18.zzaxm, (v9_29 + 1), v11_33, v9_29, (v11_33.length - v9_29));
                                                                            }
                                                                            v7_18.zzaxm = v11_33;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v9_28 = v24_0;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.zzfu.zzcv(v7_18.name)) || ((v8_15 == null) || (this.zzjt().zza(this.zzly(), v2_0.zzaut.zztt, 0, 0, 1, 0, 0).zzahv <= ((long) this.zzadp.zzgv().zzb(v2_0.zzaut.zztt, com.google.android.gms.measurement.internal.zzag.zzajt))))) {
                                                                    v39_0 = v9_28;
                                                                } else {
                                                                    this.zzadp.zzgt().zzjj().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                    int v11_42 = v7_18.zzaxm;
                                                                    int v12_46 = v11_42.length;
                                                                    int v13_29 = 0;
                                                                    int v14_11 = 0;
                                                                    boolean v15_4 = 0;
                                                                    while (v13_29 < v12_46) {
                                                                        Long v9_74 = v11_42[v13_29];
                                                                        if (!"_c".equals(v9_74.name)) {
                                                                            if ("_err".equals(v9_74.name)) {
                                                                                v14_11 = 1;
                                                                            }
                                                                        } else {
                                                                            v15_4 = v9_74;
                                                                        }
                                                                        v13_29++;
                                                                    }
                                                                    v39_0 = v9_28;
                                                                    if ((v14_11 == 0) || (!v15_4)) {
                                                                        if (!v15_4) {
                                                                            this.zzadp.zzgt().zzjg().zzg("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                        } else {
                                                                            v15_4.name = "_err";
                                                                            v15_4.zzaxq = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        Long v9_36 = v7_18.zzaxm;
                                                                        int v12_50 = new com.google.android.gms.internal.measurement.zzgj[1];
                                                                        v12_50[0] = v15_4;
                                                                        v7_18.zzaxm = ((com.google.android.gms.internal.measurement.zzgj[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v9_36, v12_50));
                                                                    }
                                                                }
                                                            } else {
                                                                int v11_6;
                                                                this.zzjr();
                                                                int v11_4 = v7_18.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v11_4);
                                                                int v12_15 = v11_4.hashCode();
                                                                if (v12_15 == 94660) {
                                                                    if (!v11_4.equals("_in")) {
                                                                        v11_6 = -1;
                                                                    } else {
                                                                        v11_6 = 0;
                                                                    }
                                                                } else {
                                                                    if (v12_15 == 95025) {
                                                                        if (!v11_4.equals("_ug")) {
                                                                        } else {
                                                                            v11_6 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v12_15 == 95027) {
                                                                            if (!v11_4.equals("_ui")) {
                                                                            } else {
                                                                                v11_6 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v11_9;
                                                                switch (v11_6) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v11_9 = 1;
                                                                    default:
                                                                        v11_9 = 0;
                                                                }
                                                                if (v11_9 == 0) {
                                                                    v37_0 = v14_18;
                                                                    v39_0 = v24_0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzadp.zzgv().zzbf(v2_0.zzaut.zztt)) || (v8_15 == null)) {
                                                            } else {
                                                                Boolean v8_18 = v7_18.zzaxm;
                                                                Long v9_42 = 0;
                                                                int v11_49 = -1;
                                                                int v12_51 = -1;
                                                                while (v9_42 < v8_18.length) {
                                                                    if (!"value".equals(v8_18[v9_42].name)) {
                                                                        if ("currency".equals(v8_18[v9_42].name)) {
                                                                            v12_51 = v9_42;
                                                                        }
                                                                    } else {
                                                                        v11_49 = v9_42;
                                                                    }
                                                                    v9_42++;
                                                                }
                                                                if (v11_49 == -1) {
                                                                } else {
                                                                    if ((v8_18[v11_49].zzaxq != null) || (v8_18[v11_49].zzava != null)) {
                                                                        Long v9_51;
                                                                        if (v12_51 != -1) {
                                                                            Long v9_50 = v8_18[v12_51].zzamw;
                                                                            if (v9_50 == null) {
                                                                            } else {
                                                                                if (v9_50.length() == 3) {
                                                                                    int v12_53 = 0;
                                                                                    while (v12_53 < v9_50.length()) {
                                                                                        int v14_13 = v9_50.codePointAt(v12_53);
                                                                                        if (Character.isLetter(v14_13)) {
                                                                                            v12_53 += Character.charCount(v14_13);
                                                                                        } else {
                                                                                        }
                                                                                    }
                                                                                    v9_51 = 0;
                                                                                    if (v9_51 != null) {
                                                                                        this.zzadp.zzgt().zzjl().zzca("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                        v8_18 = com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(v8_18, v11_49), "_c"), 19, "currency");
                                                                                    }
                                                                                    v7_18.zzaxm = v8_18;
                                                                                    if (this.zzadp.zzgv().zze(v2_0.zzaut.zztt, com.google.android.gms.measurement.internal.zzag.zzall)) {
                                                                                        if (!"_e".equals(v7_18.name)) {
                                                                                            if (!"_vs".equals(v7_18.name)) {
                                                                                                if ((v4_7 != null) && ((v5_16 == null) && ("_e".equals(v7_18.name)))) {
                                                                                                    if (v7_18.zzaxm != null) {
                                                                                                        if (v7_18.zzaxm.length != 0) {
                                                                                                            this.zzjr();
                                                                                                            Boolean v8_49 = ((Long) com.google.android.gms.measurement.internal.zzfq.zzb(v7_18, "_et"));
                                                                                                            if (v8_49 != null) {
                                                                                                                v37_0 += v8_49.longValue();
                                                                                                                Long v9_72 = (v26_0 + 1);
                                                                                                                v3_8.zzaxu[v26_0] = v7_18;
                                                                                                                v26_1 = v9_72;
                                                                                                                v14_18 = v37_0;
                                                                                                                v9_73 = v39_0;
                                                                                                                v8_71 = (v25_0 + 1);
                                                                                                                v13_40 = v26_1;
                                                                                                                int v12 = 1;
                                                                                                            } else {
                                                                                                                this.zzadp.zzgt().zzjj().zzg("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                                                            }
                                                                                                        } else {
                                                                                                        }
                                                                                                    }
                                                                                                    this.zzadp.zzgt().zzjj().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                                                }
                                                                                            } else {
                                                                                                this.zzjr();
                                                                                                if (com.google.android.gms.measurement.internal.zzfq.zza(v7_18, "_et") != null) {
                                                                                                } else {
                                                                                                    if ((!v10_5) || ((Math.abs((v10_5.zzaxn.longValue() - v7_18.zzaxn.longValue())) > 1000) || (!this.zza(v10_5, v7_18)))) {
                                                                                                        v6_13 = v7_18;
                                                                                                    } else {
                                                                                                    }
                                                                                                }
                                                                                            }
                                                                                        } else {
                                                                                            this.zzjr();
                                                                                            if (com.google.android.gms.measurement.internal.zzfq.zza(v7_18, "_fr") != null) {
                                                                                            } else {
                                                                                                if ((v6_13 == 0) || ((Math.abs((v6_13.zzaxn.longValue() - v7_18.zzaxn.longValue())) > 1000) || (!this.zza(v7_18, v6_13)))) {
                                                                                                    v10_5 = v7_18;
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                        v6_13 = 0;
                                                                                        v10_5 = 0;
                                                                                    }
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v9_51 = 1;
                                                                        } else {
                                                                            v9_51 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzadp.zzgt().zzjl().zzca("Value must be specified with a numeric type.");
                                                                        v8_18 = com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(v8_18, v11_49), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            Boolean v8_65;
                                                            v25_0 = v8_71;
                                                            v26_1 = v13_40;
                                                            this.zzadp.zzgt().zzjj().zze("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt), this.zzadp.zzgq().zzbv(v7_18.name));
                                                            if (this.zzls().zzcn(v2_0.zzaut.zztt)) {
                                                                v8_65 = 1;
                                                            } else {
                                                                if (!this.zzls().zzco(v2_0.zzaut.zztt)) {
                                                                    v8_65 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v8_65 == null) && (!"_err".equals(v7_18.name))) {
                                                                this.zzadp.zzgr().zza(v2_0.zzaut.zztt, 11, "_ev", v7_18.name, 0);
                                                            }
                                                            v9_73 = v24_0;
                                                        }
                                                    }
                                                    int v13_4;
                                                    boolean v24_1 = v9_73;
                                                    String v26_2 = v13_40;
                                                    long v37_1 = v14_18;
                                                    if (v5_16 == null) {
                                                        v13_4 = v26_2;
                                                    } else {
                                                        v13_4 = v26_2;
                                                        int v14_5 = v37_1;
                                                        com.google.android.gms.measurement.internal.zzfk v5_0 = 0;
                                                        while (v5_0 < v13_4) {
                                                            long v6_3 = v3_8.zzaxu[v5_0];
                                                            if (!"_e".equals(v6_3.name)) {
                                                                if (v4_7 != null) {
                                                                    this.zzjr();
                                                                    long v6_4 = com.google.android.gms.measurement.internal.zzfq.zza(v6_3, "_et");
                                                                    if (v6_4 != 0) {
                                                                        long v6_5 = v6_4.zzaxq;
                                                                        if ((v6_5 != 0) && (v6_5.longValue() > 0)) {
                                                                            v14_5 += v6_5.longValue();
                                                                        }
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzjr();
                                                                if (com.google.android.gms.measurement.internal.zzfq.zza(v6_3, "_fr") == null) {
                                                                } else {
                                                                    System.arraycopy(v3_8.zzaxu, (v5_0 + 1), v3_8.zzaxu, v5_0, ((v13_4 - v5_0) - 1));
                                                                    v13_4--;
                                                                    v5_0--;
                                                                }
                                                            }
                                                            v5_0++;
                                                        }
                                                        v37_1 = v14_5;
                                                    }
                                                    if (v13_4 < v2_0.zzauv.size()) {
                                                        v3_8.zzaxu = ((com.google.android.gms.internal.measurement.zzgi[]) java.util.Arrays.copyOf(v3_8.zzaxu, v13_4));
                                                    }
                                                    if (v4_7 != null) {
                                                        String v4_12;
                                                        String v4_9 = this.zzjt().zzi(v3_8.zztt, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.measurement.internal.zzft;
                                                            v4_12(v3_8.zztt, "auto", "_lte", this.zzadp.zzbx().currentTimeMillis(), Long.valueOf(v37_1));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                com.google.android.gms.measurement.internal.zzfk v5_24 = new com.google.android.gms.measurement.internal.zzft;
                                                                v5_24(v3_8.zztt, "auto", "_lte", this.zzadp.zzbx().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v37_1)));
                                                                v4_12 = v5_24;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.measurement.internal.zzfk v5_27 = new com.google.android.gms.internal.measurement.zzgo();
                                                        v5_27.name = "_lte";
                                                        v5_27.zzazg = Long.valueOf(this.zzadp.zzbx().currentTimeMillis());
                                                        v5_27.zzaxq = ((Long) v4_12.value);
                                                        long v6_42 = 0;
                                                        while (v6_42 < v3_8.zzaxv.length) {
                                                            if (!"_lte".equals(v3_8.zzaxv[v6_42].name)) {
                                                                v6_42++;
                                                            } else {
                                                                v3_8.zzaxv[v6_42] = v5_27;
                                                                long v6_43 = 1;
                                                            }
                                                            if (v6_43 == 0) {
                                                                v3_8.zzaxv = ((com.google.android.gms.internal.measurement.zzgo[]) java.util.Arrays.copyOf(v3_8.zzaxv, (v3_8.zzaxv.length + 1)));
                                                                v3_8.zzaxv[(v2_0.zzaut.zzaxv.length - 1)] = v5_27;
                                                            }
                                                            if (v37_1 > 0) {
                                                                this.zzjt().zza(v4_12);
                                                                this.zzadp.zzgt().zzjn().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_43 = 0;
                                                    }
                                                    android.database.sqlite.SQLiteException v50_1;
                                                    String v1_6;
                                                    String v4_14 = v3_8.zztt;
                                                    com.google.android.gms.measurement.internal.zzfk v5_33 = v3_8.zzaxv;
                                                    long v6_49 = v3_8.zzaxu;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v4_14);
                                                    v3_8.zzaym = this.zzjs().zza(v4_14, v6_49, v5_33);
                                                    try {
                                                        if (!this.zzadp.zzgv().zzav(v2_0.zzaut.zztt)) {
                                                            v50_1 = v2_0;
                                                            v1_6 = v3_8;
                                                        } else {
                                                            String v4_20 = new java.util.HashMap();
                                                            com.google.android.gms.measurement.internal.zzfk v5_38 = new com.google.android.gms.internal.measurement.zzgi[v3_8.zzaxu.length];
                                                            long v6_1 = this.zzadp.zzgr().zzmk();
                                                            String v7_8 = v3_8.zzaxu;
                                                            Boolean v8_11 = v7_8.length;
                                                            Long v9_1 = 0;
                                                            boolean v10_0 = 0;
                                                            while (v9_1 < v8_11) {
                                                                String v45;
                                                                boolean v43;
                                                                long v42;
                                                                android.database.sqlite.SQLiteException v50_0;
                                                                Long v44;
                                                                int v49;
                                                                int v11_71 = v7_8[v9_1];
                                                                if (!v11_71.name.equals("_ep")) {
                                                                    com.google.android.gms.measurement.internal.zzaa v3_41;
                                                                    Boolean v46;
                                                                    int v12_70 = this.zzls().zzcm(v2_0.zzaut.zztt);
                                                                    v1_0.zzadp.zzgr();
                                                                    int v14_35 = com.google.android.gms.measurement.internal.zzfu.zzc(v11_71.zzaxn.longValue(), v12_70);
                                                                    v42 = v7_8;
                                                                    v43 = v8_11;
                                                                    Boolean v8_92 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v8_92 != null)) {
                                                                        v44 = v3_8;
                                                                        com.google.android.gms.measurement.internal.zzaa v3_29 = v11_71.zzaxm;
                                                                        v45 = v9_1;
                                                                        Long v9_98 = v3_29.length;
                                                                        v46 = v12_70;
                                                                        int v12_71 = 0;
                                                                        while (v12_71 < v9_98) {
                                                                            int v13_56 = v3_29[v12_71];
                                                                            if (!"_dbg".equals(v13_56.name)) {
                                                                                v12_71++;
                                                                            } else {
                                                                                if (((!(v8_92 instanceof Long)) || (!v8_92.equals(v13_56.zzaxq))) && (((!(v8_92 instanceof String)) || (!v8_92.equals(v13_56.zzamw))) && ((!(v8_92 instanceof Double)) || (!v8_92.equals(v13_56.zzava))))) {
                                                                                    break;
                                                                                }
                                                                                v3_41 = 1;
                                                                            }
                                                                        }
                                                                        v3_41 = 0;
                                                                    } else {
                                                                        v44 = v3_8;
                                                                        v45 = v9_1;
                                                                        v46 = v12_70;
                                                                    }
                                                                    int v12_72;
                                                                    if (v3_41 != null) {
                                                                        v12_72 = 1;
                                                                    } else {
                                                                        v12_72 = this.zzls().zzq(v2_0.zzaut.zztt, v11_71.name);
                                                                    }
                                                                    if (v12_72 > 0) {
                                                                        com.google.android.gms.measurement.internal.zzaa v3_1 = ((com.google.android.gms.measurement.internal.zzaa) v4_20.get(v11_71.name));
                                                                        if (v3_1 == null) {
                                                                            v3_1 = this.zzjt().zzg(v2_0.zzaut.zztt, v11_71.name);
                                                                            if (v3_1 == null) {
                                                                                v1_0.zzadp.zzgt().zzjj().zze("Event being bundled has no eventAggregate. appId, eventName", v2_0.zzaut.zztt, v11_71.name);
                                                                                v3_1 = new com.google.android.gms.measurement.internal.zzaa;
                                                                                v3_1(v2_0.zzaut.zztt, v11_71.name, 1, 1, v11_71.zzaxn.longValue(), 0, 0, 0, 0, 0);
                                                                            }
                                                                        }
                                                                        Boolean v8_98;
                                                                        this.zzjr();
                                                                        String v7_77 = ((Long) com.google.android.gms.measurement.internal.zzfq.zzb(v11_71, "_eid"));
                                                                        if (v7_77 == null) {
                                                                            v8_98 = 0;
                                                                        } else {
                                                                            v8_98 = 1;
                                                                        }
                                                                        Boolean v8_99 = Boolean.valueOf(v8_98);
                                                                        if (v12_72 != 1) {
                                                                            if (v6_1.nextInt(v12_72) != 0) {
                                                                                v49 = v6_1;
                                                                                String v1_20;
                                                                                String v51;
                                                                                if (!v1_0.zzadp.zzgv().zzbh(v2_0.zzaut.zztt)) {
                                                                                    v50_0 = v2_0;
                                                                                    v51 = v7_77;
                                                                                    if (Math.abs((v11_71.zzaxn.longValue() - v3_1.zzaik)) < 86400000) {
                                                                                        v1_20 = 0;
                                                                                    } else {
                                                                                        v1_20 = 1;
                                                                                    }
                                                                                } else {
                                                                                    long v18_6;
                                                                                    if (v3_1.zzail == null) {
                                                                                        v1_0.zzadp.zzgr();
                                                                                        v50_0 = v2_0;
                                                                                        v51 = v7_77;
                                                                                        v18_6 = com.google.android.gms.measurement.internal.zzfu.zzc(v11_71.zzaxo.longValue(), v46);
                                                                                    } else {
                                                                                        v18_6 = v3_1.zzail.longValue();
                                                                                        v50_0 = v2_0;
                                                                                        v51 = v7_77;
                                                                                    }
                                                                                    if (v18_6 == v14_35) {
                                                                                    }
                                                                                }
                                                                                if (v1_20 == null) {
                                                                                    if (v8_99.booleanValue()) {
                                                                                        v4_20.put(v11_71.name, v3_1.zza(v51, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzjr();
                                                                                    v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_efs", Long.valueOf(1));
                                                                                    this.zzjr();
                                                                                    long v6_96 = ((long) v12_72);
                                                                                    v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_sr", Long.valueOf(v6_96));
                                                                                    String v1_27 = (v10_0 + 1);
                                                                                    v5_38[v10_0] = v11_71;
                                                                                    if (v8_99.booleanValue()) {
                                                                                        v3_1 = v3_1.zza(0, Long.valueOf(v6_96), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_20.put(v11_71.name, v3_1.zza(v11_71.zzaxn.longValue(), v14_35));
                                                                                    v10_0 = v1_27;
                                                                                }
                                                                            } else {
                                                                                this.zzjr();
                                                                                int v12_73 = ((long) v12_72);
                                                                                v49 = v6_1;
                                                                                v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_sr", Long.valueOf(v12_73));
                                                                                long v6_0 = (v10_0 + 1);
                                                                                v5_38[v10_0] = v11_71;
                                                                                if (v8_99.booleanValue()) {
                                                                                    v3_1 = v3_1.zza(0, Long.valueOf(v12_73), 0);
                                                                                }
                                                                                v4_20.put(v11_71.name, v3_1.zza(v11_71.zzaxn.longValue(), v14_35));
                                                                                v50_0 = v2_0;
                                                                                v10_0 = v6_0;
                                                                            }
                                                                        } else {
                                                                            String v7_4 = (v10_0 + 1);
                                                                            v5_38[v10_0] = v11_71;
                                                                            if ((v8_99.booleanValue()) && ((v3_1.zzaim != null) || ((v3_1.zzain != null) || (v3_1.zzaio != null)))) {
                                                                                v4_20.put(v11_71.name, v3_1.zza(0, 0, 0));
                                                                            }
                                                                            v50_0 = v2_0;
                                                                            v49 = v6_1;
                                                                            v10_0 = v7_4;
                                                                        }
                                                                    } else {
                                                                        v1_0.zzadp.zzgt().zzjj().zze("Sample rate must be positive. event, rate", v11_71.name, Integer.valueOf(v12_72));
                                                                        com.google.android.gms.measurement.internal.zzaa v3_7 = (v10_0 + 1);
                                                                        v5_38[v10_0] = v11_71;
                                                                        v50_0 = v2_0;
                                                                        v10_0 = v3_7;
                                                                        v49 = v6_1;
                                                                    }
                                                                } else {
                                                                    this.zzjr();
                                                                    int v12_2 = ((String) com.google.android.gms.measurement.internal.zzfq.zzb(v11_71, "_en"));
                                                                    int v13_1 = ((com.google.android.gms.measurement.internal.zzaa) v4_20.get(v12_2));
                                                                    if (v13_1 == 0) {
                                                                        v13_1 = this.zzjt().zzg(v2_0.zzaut.zztt, v12_2);
                                                                        v4_20.put(v12_2, v13_1);
                                                                    }
                                                                    if (v13_1.zzaim != null) {
                                                                        v50_0 = v2_0;
                                                                        v44 = v3_8;
                                                                        v49 = v6_1;
                                                                        v42 = v7_8;
                                                                        v43 = v8_11;
                                                                        v45 = v9_1;
                                                                    } else {
                                                                        if (v13_1.zzain.longValue() > 1) {
                                                                            this.zzjr();
                                                                            v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_sr", v13_1.zzain);
                                                                        }
                                                                        if ((v13_1.zzaio != null) && (v13_1.zzaio.booleanValue())) {
                                                                            this.zzjr();
                                                                            v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_efs", Long.valueOf(1));
                                                                        }
                                                                        int v12_13 = (v10_0 + 1);
                                                                        v5_38[v10_0] = v11_71;
                                                                        v50_0 = v2_0;
                                                                        v44 = v3_8;
                                                                        v49 = v6_1;
                                                                        v42 = v7_8;
                                                                        v43 = v8_11;
                                                                        v45 = v9_1;
                                                                        v10_0 = v12_13;
                                                                    }
                                                                }
                                                                v9_1 = (v45 + 1);
                                                                v7_8 = v42;
                                                                v8_11 = v43;
                                                                v3_8 = v44;
                                                                v6_1 = v49;
                                                                v2_0 = v50_0;
                                                                v1_0 = this;
                                                            }
                                                            v50_1 = v2_0;
                                                            v1_6 = v3_8;
                                                            if (v10_0 < v1_6.zzaxu.length) {
                                                                v1_6.zzaxu = ((com.google.android.gms.internal.measurement.zzgi[]) java.util.Arrays.copyOf(v5_38, v10_0));
                                                            }
                                                            int v2_9 = v4_20.entrySet().iterator();
                                                            while (v2_9.hasNext()) {
                                                                this.zzjt().zza(((com.google.android.gms.measurement.internal.zzaa) ((java.util.Map$Entry) v2_9.next()).getValue()));
                                                            }
                                                        }
                                                        try {
                                                            v1_6.zzaxx = Long.valueOf(nan);
                                                            v1_6.zzaxy = Long.valueOf(-0.0);
                                                            int v2_14 = 0;
                                                        } catch (android.database.sqlite.SQLiteException v0_5) {
                                                            String v1_1 = v0_5;
                                                            this.zzjt().endTransaction();
                                                            throw v1_1;
                                                        }
                                                        while (v2_14 < v1_6.zzaxu.length) {
                                                            com.google.android.gms.measurement.internal.zzaa v3_23 = v1_6.zzaxu[v2_14];
                                                            if (v3_23.zzaxn.longValue() < v1_6.zzaxx.longValue()) {
                                                                v1_6.zzaxx = v3_23.zzaxn;
                                                            }
                                                            if (v3_23.zzaxn.longValue() > v1_6.zzaxy.longValue()) {
                                                                v1_6.zzaxy = v3_23.zzaxn;
                                                            }
                                                            v2_14++;
                                                        }
                                                        int v2_15 = v50_1;
                                                        com.google.android.gms.measurement.internal.zzfk v5_39;
                                                        com.google.android.gms.measurement.internal.zzaa v3_20 = v2_15.zzaut.zztt;
                                                        String v4_22 = this.zzjt().zzbo(v3_20);
                                                        if (v4_22 != null) {
                                                            v5_39 = this;
                                                            if (v1_6.zzaxu.length > 0) {
                                                                Boolean v8_86;
                                                                long v6_54 = v4_22.zzhe();
                                                                if (v6_54 == 0) {
                                                                    v8_86 = 0;
                                                                } else {
                                                                    v8_86 = Long.valueOf(v6_54);
                                                                }
                                                                v1_6.zzaya = v8_86;
                                                                Boolean v8_87 = v4_22.zzhd();
                                                                if (v8_87 != 0) {
                                                                    v6_54 = v8_87;
                                                                } else {
                                                                }
                                                                long v6_55;
                                                                if (v6_54 == 0) {
                                                                    v6_55 = 0;
                                                                } else {
                                                                    v6_55 = Long.valueOf(v6_54);
                                                                }
                                                                v1_6.zzaxz = v6_55;
                                                                v4_22.zzhm();
                                                                v1_6.zzayk = Integer.valueOf(((int) v4_22.zzhj()));
                                                                v4_22.zzs(v1_6.zzaxx.longValue());
                                                                v4_22.zzt(v1_6.zzaxy.longValue());
                                                                v1_6.zzagy = v4_22.zzhu();
                                                                this.zzjt().zza(v4_22);
                                                            }
                                                        } else {
                                                            v5_39 = this;
                                                            this.zzadp.zzgt().zzjg().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_15.zzaut.zztt));
                                                        }
                                                        if (v1_6.zzaxu.length > 0) {
                                                            v5_39.zzadp.zzgw();
                                                            String v4_30 = this.zzls().zzci(v2_15.zzaut.zztt);
                                                            if (v4_30 == null) {
                                                                if (!android.text.TextUtils.isEmpty(v2_15.zzaut.zzafx)) {
                                                                    v5_39.zzadp.zzgt().zzjj().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_15.zzaut.zztt));
                                                                } else {
                                                                    v1_6.zzayr = Long.valueOf(-1);
                                                                }
                                                            } else {
                                                                if (v4_30.zzawx != null) {
                                                                    v1_6.zzayr = v4_30.zzawx;
                                                                } else {
                                                                }
                                                            }
                                                            this.zzjt().zza(v1_6, v24_1);
                                                        }
                                                        String v1_7 = this.zzjt();
                                                        int v2_16 = v2_15.zzauu;
                                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_16);
                                                        v1_7.zzaf();
                                                        v1_7.zzcl();
                                                        String v4_41 = new StringBuilder("rowid in (");
                                                        long v6_72 = 0;
                                                        while (v6_72 < v2_16.size()) {
                                                            if (v6_72 != 0) {
                                                                v4_41.append(",");
                                                            }
                                                            v4_41.append(((Long) v2_16.get(v6_72)).longValue());
                                                            v6_72++;
                                                        }
                                                        v4_41.append(")");
                                                        String v4_43 = v1_7.getWritableDatabase().delete("raw_events", v4_41.toString(), 0);
                                                        if (v4_43 != v2_16.size()) {
                                                            v1_7.zzgt().zzjg().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v4_43), Integer.valueOf(v2_16.size()));
                                                        }
                                                        String v1_10 = this.zzjt();
                                                        int v2_19 = v1_10.getWritableDatabase();
                                                        try {
                                                            long v6_78 = new String[2];
                                                            v6_78[0] = v3_20;
                                                            v6_78[1] = v3_20;
                                                            v2_19.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_78);
                                                        } catch (android.database.sqlite.SQLiteException v0_7) {
                                                            v1_10.zzgt().zzjg().zze("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_20), v0_7);
                                                        }
                                                        this.zzjt().setTransactionSuccessful();
                                                        this.zzjt().endTransaction();
                                                        return 1;
                                                    } catch (android.database.sqlite.SQLiteException v0_3) {
                                                        v1_1 = v0_3;
                                                    }
                                                }
                                            } else {
                                                v8_7.close();
                                            }
                                        }
                                        if (v8_7.moveToNext()) {
                                            v4_53.zzgt().zzjj().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9));
                                        }
                                        int v16_4;
                                        int v17_3;
                                        v8_7.close();
                                        v2_0.zzb(v13_34);
                                        if (v5_40 == -1) {
                                            long v6_16 = new String[2];
                                            v6_16[0] = v3_9;
                                            v6_16[1] = v7_3;
                                            v16_4 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_3 = v6_16;
                                        } else {
                                            int v14_24 = new String[3];
                                            v14_24[0] = v3_9;
                                            v14_24[1] = v7_3;
                                            v14_24[2] = String.valueOf(v5_40);
                                            v16_4 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_3 = v14_24;
                                        }
                                        boolean v15_9 = new String[4];
                                        v15_9[0] = "rowid";
                                        v15_9[1] = "name";
                                        v15_9[2] = "timestamp";
                                        v15_9[3] = "data";
                                        com.google.android.gms.measurement.internal.zzfk v5_9 = v23.query("raw_events", v15_9, v16_4, v17_3, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_9.moveToFirst()) {
                                                v4_53.zzgt().zzjj().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9));
                                                if (v5_9 == null) {
                                                } else {
                                                    v5_9.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v8_7 = v5_9;
                                            String v1_2 = v0_1;
                                            if (v8_7 != null) {
                                                v8_7.close();
                                            }
                                            throw v1_2;
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            v7_3 = v3_9;
                                            v8_7 = v5_9;
                                        }
                                        do {
                                            long v6_19 = v5_9.getLong(0);
                                            Long v9_92 = v5_9.getBlob(3);
                                            Boolean v8_74 = com.google.android.gms.internal.measurement.zzzi.zzj(v9_92, 0, v9_92.length);
                                            Long v9_94 = new com.google.android.gms.internal.measurement.zzgi();
                                            v9_94.zza(v8_74);
                                            v9_94.name = v5_9.getString(1);
                                            v9_94.zzaxn = Long.valueOf(v5_9.getLong(2));
                                            if (v2_0.zza(v6_19, v9_94)) {
                                            } else {
                                                if (v5_9 == null) {
                                                } else {
                                                    v5_9.close();
                                                }
                                            }
                                        } while(v5_9.moveToNext());
                                        if (v5_9 == null) {
                                        } else {
                                            v5_9.close();
                                        }
                                    } else {
                                        v4_53.zzgt().zzjg().zzg("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9));
                                        if (v8_7 == null) {
                                        } else {
                                            v8_7.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v7_3 = v3_9;
                                }
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v8_7 = v22;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v7_3 = v3_9;
                                v8_7 = v22;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    } else {
                        try {
                            int v13_52;
                            if (v5_40 == -1) {
                                v13_52 = new String[1];
                                v13_52[0] = String.valueOf(p54);
                            } else {
                                v13_52 = new String[2];
                                v13_52[0] = String.valueOf(v5_40);
                                v13_52[1] = String.valueOf(p54);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                            v7_3 = 0;
                            v8_7 = 0;
                        }
                        int v14_36;
                        if (v5_40 == -1) {
                            v14_36 = "";
                        } else {
                            v14_36 = "rowid <= ? and ";
                        }
                        com.google.android.gms.measurement.internal.zzaa v3_50 = new StringBuilder((String.valueOf(v14_36).length() + 148));
                        v3_50.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_50.append(v14_36);
                        v3_50.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_9 = v15_7.rawQuery(v3_50.toString(), v13_52);
                        if (v3_9.moveToFirst()) {
                            String v7_7 = v3_9.getString(0);
                            try {
                                int v13_5 = v3_9.getString(1);
                                v3_9.close();
                                v22 = v3_9;
                                v3_9 = v7_7;
                                v7_3 = v13_5;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v8_7 = v3_9;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v8_7 = v3_9;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v8_7 = v3_9;
                    v7_3 = 0;
                }
                com.google.android.gms.measurement.internal.zzaa v3_0 = v0_2;
                v4_53.zzgt().zzjg().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v7_3), v3_0);
                if (v8_7 == null) {
                } else {
                    v8_7.close();
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v8_7 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v3_0 = v0_0;
                v7_3 = 0;
                v8_7 = 0;
            } catch (android.database.sqlite.SQLiteException v0_1) {
            }
        } catch (android.database.sqlite.SQLiteException v0_5) {
        }
    }

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


    private final boolean zzd(String p53, long p54)
    {
        String v1_0 = this;
        this.zzjt().beginTransaction();
        try {
            com.google.android.gms.measurement.internal.zzaa v3_9 = 0;
            int v2_0 = new com.google.android.gms.measurement.internal.zzfk$zza(this, 0);
            String v4_53 = this.zzjt();
            com.google.android.gms.measurement.internal.zzfk v5_40 = this.zzaup;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_0);
            v4_53.zzaf();
            v4_53.zzcl();
            try {
                int v22;
                String v7_3;
                boolean v15_7 = v4_53.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        com.google.android.gms.measurement.internal.zzaa v3_11;
                        if (v5_40 == -1) {
                            v3_11 = new String[1];
                            v3_11[0] = 0;
                        } else {
                            v3_11 = new String[2];
                            v3_11[0] = 0;
                            v3_11[1] = String.valueOf(v5_40);
                        }
                        String v7_30;
                        if (v5_40 == -1) {
                            v7_30 = "";
                        } else {
                            v7_30 = " and rowid <= ?";
                        }
                        int v14_27 = new StringBuilder((String.valueOf(v7_30).length() + 84));
                        v14_27.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_27.append(v7_30);
                        v14_27.append(" order by rowid limit 1;");
                        v3_9 = v15_7.rawQuery(v14_27.toString(), v3_11);
                        if (v3_9.moveToFirst()) {
                            int v13_50 = v3_9.getString(0);
                            v3_9.close();
                            v22 = v3_9;
                            v7_3 = v13_50;
                            v3_9 = 0;
                            try {
                                int v13_12 = new String[1];
                                v13_12[0] = "metadata";
                                Boolean v8_17 = new String[2];
                                v8_17[0] = v3_9;
                                v8_17[1] = v7_3;
                                android.database.sqlite.SQLiteDatabase v23 = v15_7;
                                Boolean v8_7 = v15_7.query("raw_events_metadata", v13_12, "app_id = ? and metadata_fingerprint = ?", v8_17, 0, 0, "rowid", "2");
                                try {
                                    if (v8_7.moveToFirst()) {
                                        Long v9_67 = v8_7.getBlob(0);
                                        Long v9_68 = com.google.android.gms.internal.measurement.zzzi.zzj(v9_67, 0, v9_67.length);
                                        int v13_34 = new com.google.android.gms.internal.measurement.zzgl();
                                        try {
                                            v13_34.zza(v9_68);
                                        } catch (android.database.sqlite.SQLiteException v0_4) {
                                            v4_53.zzgt().zzjg().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9), v0_4);
                                            if (v8_7 == null) {
                                                com.google.android.gms.measurement.internal.zzaa v3_15;
                                                if (v2_0.zzauv == null) {
                                                    v3_15 = 1;
                                                } else {
                                                    if (!v2_0.zzauv.isEmpty()) {
                                                        v3_15 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_15 != null) {
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.measurement.internal.zzaa v3_8 = v2_0.zzaut;
                                                    String v4_4 = new com.google.android.gms.internal.measurement.zzgi[v2_0.zzauv.size()];
                                                    v3_8.zzaxu = v4_4;
                                                    String v4_7 = this.zzadp.zzgv().zzaw(v3_8.zztt);
                                                    com.google.android.gms.measurement.internal.zzfk v5_16 = this.zzadp.zzgv().zze(v2_0.zzaut.zztt, com.google.android.gms.measurement.internal.zzag.zzalm);
                                                    long v6_13 = 0;
                                                    Boolean v8_71 = 0;
                                                    Long v9_73 = 0;
                                                    boolean v10_5 = 0;
                                                    int v13_40 = 0;
                                                    int v14_18 = 0;
                                                    while (v8_71 < v2_0.zzauv.size()) {
                                                        String v26_1;
                                                        com.google.android.gms.measurement.internal.zzaa v25_0;
                                                        String v7_18 = ((com.google.android.gms.internal.measurement.zzgi) v2_0.zzauv.get(v8_71));
                                                        boolean v24_0 = v9_73;
                                                        if (!this.zzls().zzo(v2_0.zzaut.zztt, v7_18.name)) {
                                                            int v39_0;
                                                            long v37_0;
                                                            v25_0 = v8_71;
                                                            String v26_0 = v13_40;
                                                            Boolean v8_15 = this.zzls().zzp(v2_0.zzaut.zztt, v7_18.name);
                                                            if (v8_15 != null) {
                                                                if (v7_18.zzaxm == null) {
                                                                    int v12_19 = new com.google.android.gms.internal.measurement.zzgj[0];
                                                                    v7_18.zzaxm = v12_19;
                                                                }
                                                                int v11_12 = v7_18.zzaxm;
                                                                int v12_20 = v11_12.length;
                                                                int v13_9 = 0;
                                                                long v18_0 = 0;
                                                                int v19_0 = 0;
                                                                while (v13_9 < v12_20) {
                                                                    Long v9_77 = v11_12[v13_9];
                                                                    long v28_1 = v11_12;
                                                                    long v29_1 = v12_20;
                                                                    if (!"_c".equals(v9_77.name)) {
                                                                        if ("_r".equals(v9_77.name)) {
                                                                            v9_77.zzaxq = Long.valueOf(1);
                                                                            v19_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v9_77.zzaxq = Long.valueOf(1);
                                                                        v18_0 = 1;
                                                                    }
                                                                    v13_9++;
                                                                    v11_12 = v28_1;
                                                                    v12_20 = v29_1;
                                                                }
                                                                if ((v18_0 == 0) && (v8_15 != null)) {
                                                                    this.zzadp.zzgt().zzjo().zzg("Marking event as conversion", this.zzadp.zzgq().zzbv(v7_18.name));
                                                                    Long v9_14 = ((com.google.android.gms.internal.measurement.zzgj[]) java.util.Arrays.copyOf(v7_18.zzaxm, (v7_18.zzaxm.length + 1)));
                                                                    int v11_18 = new com.google.android.gms.internal.measurement.zzgj();
                                                                    v11_18.name = "_c";
                                                                    v11_18.zzaxq = Long.valueOf(1);
                                                                    v9_14[(v9_14.length - 1)] = v11_18;
                                                                    v7_18.zzaxm = v9_14;
                                                                }
                                                                if (v19_0 == 0) {
                                                                    this.zzadp.zzgt().zzjo().zzg("Marking event as real-time", this.zzadp.zzgq().zzbv(v7_18.name));
                                                                    Long v9_20 = ((com.google.android.gms.internal.measurement.zzgj[]) java.util.Arrays.copyOf(v7_18.zzaxm, (v7_18.zzaxm.length + 1)));
                                                                    int v11_24 = new com.google.android.gms.internal.measurement.zzgj();
                                                                    v11_24.name = "_r";
                                                                    v11_24.zzaxq = Long.valueOf(1);
                                                                    v9_20[(v9_20.length - 1)] = v11_24;
                                                                    v7_18.zzaxm = v9_20;
                                                                }
                                                                Long v9_28;
                                                                v37_0 = v14_18;
                                                                if (this.zzjt().zza(this.zzly(), v2_0.zzaut.zztt, 0, 0, 0, 0, 1).zzahx <= ((long) this.zzadp.zzgv().zzas(v2_0.zzaut.zztt))) {
                                                                    v9_28 = 1;
                                                                } else {
                                                                    Long v9_29 = 0;
                                                                    while (v9_29 < v7_18.zzaxm.length) {
                                                                        if (!"_r".equals(v7_18.zzaxm[v9_29].name)) {
                                                                            v9_29++;
                                                                        } else {
                                                                            int v11_33 = new com.google.android.gms.internal.measurement.zzgj[(v7_18.zzaxm.length - 1)];
                                                                            if (v9_29 > null) {
                                                                                System.arraycopy(v7_18.zzaxm, 0, v11_33, 0, v9_29);
                                                                            }
                                                                            if (v9_29 < v11_33.length) {
                                                                                System.arraycopy(v7_18.zzaxm, (v9_29 + 1), v11_33, v9_29, (v11_33.length - v9_29));
                                                                            }
                                                                            v7_18.zzaxm = v11_33;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v9_28 = v24_0;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.zzfu.zzcv(v7_18.name)) || ((v8_15 == null) || (this.zzjt().zza(this.zzly(), v2_0.zzaut.zztt, 0, 0, 1, 0, 0).zzahv <= ((long) this.zzadp.zzgv().zzb(v2_0.zzaut.zztt, com.google.android.gms.measurement.internal.zzag.zzajt))))) {
                                                                    v39_0 = v9_28;
                                                                } else {
                                                                    this.zzadp.zzgt().zzjj().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                    int v11_42 = v7_18.zzaxm;
                                                                    int v12_46 = v11_42.length;
                                                                    int v13_29 = 0;
                                                                    int v14_11 = 0;
                                                                    boolean v15_4 = 0;
                                                                    while (v13_29 < v12_46) {
                                                                        Long v9_74 = v11_42[v13_29];
                                                                        if (!"_c".equals(v9_74.name)) {
                                                                            if ("_err".equals(v9_74.name)) {
                                                                                v14_11 = 1;
                                                                            }
                                                                        } else {
                                                                            v15_4 = v9_74;
                                                                        }
                                                                        v13_29++;
                                                                    }
                                                                    v39_0 = v9_28;
                                                                    if ((v14_11 == 0) || (!v15_4)) {
                                                                        if (!v15_4) {
                                                                            this.zzadp.zzgt().zzjg().zzg("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                        } else {
                                                                            v15_4.name = "_err";
                                                                            v15_4.zzaxq = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        Long v9_36 = v7_18.zzaxm;
                                                                        int v12_50 = new com.google.android.gms.internal.measurement.zzgj[1];
                                                                        v12_50[0] = v15_4;
                                                                        v7_18.zzaxm = ((com.google.android.gms.internal.measurement.zzgj[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v9_36, v12_50));
                                                                    }
                                                                }
                                                            } else {
                                                                int v11_6;
                                                                this.zzjr();
                                                                int v11_4 = v7_18.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v11_4);
                                                                int v12_15 = v11_4.hashCode();
                                                                if (v12_15 == 94660) {
                                                                    if (!v11_4.equals("_in")) {
                                                                        v11_6 = -1;
                                                                    } else {
                                                                        v11_6 = 0;
                                                                    }
                                                                } else {
                                                                    if (v12_15 == 95025) {
                                                                        if (!v11_4.equals("_ug")) {
                                                                        } else {
                                                                            v11_6 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v12_15 == 95027) {
                                                                            if (!v11_4.equals("_ui")) {
                                                                            } else {
                                                                                v11_6 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v11_9;
                                                                switch (v11_6) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v11_9 = 1;
                                                                    default:
                                                                        v11_9 = 0;
                                                                }
                                                                if (v11_9 == 0) {
                                                                    v37_0 = v14_18;
                                                                    v39_0 = v24_0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzadp.zzgv().zzbf(v2_0.zzaut.zztt)) || (v8_15 == null)) {
                                                            } else {
                                                                Boolean v8_18 = v7_18.zzaxm;
                                                                Long v9_42 = 0;
                                                                int v11_49 = -1;
                                                                int v12_51 = -1;
                                                                while (v9_42 < v8_18.length) {
                                                                    if (!"value".equals(v8_18[v9_42].name)) {
                                                                        if ("currency".equals(v8_18[v9_42].name)) {
                                                                            v12_51 = v9_42;
                                                                        }
                                                                    } else {
                                                                        v11_49 = v9_42;
                                                                    }
                                                                    v9_42++;
                                                                }
                                                                if (v11_49 == -1) {
                                                                } else {
                                                                    if ((v8_18[v11_49].zzaxq != null) || (v8_18[v11_49].zzava != null)) {
                                                                        Long v9_51;
                                                                        if (v12_51 != -1) {
                                                                            Long v9_50 = v8_18[v12_51].zzamw;
                                                                            if (v9_50 == null) {
                                                                            } else {
                                                                                if (v9_50.length() == 3) {
                                                                                    int v12_53 = 0;
                                                                                    while (v12_53 < v9_50.length()) {
                                                                                        int v14_13 = v9_50.codePointAt(v12_53);
                                                                                        if (Character.isLetter(v14_13)) {
                                                                                            v12_53 += Character.charCount(v14_13);
                                                                                        } else {
                                                                                        }
                                                                                    }
                                                                                    v9_51 = 0;
                                                                                    if (v9_51 != null) {
                                                                                        this.zzadp.zzgt().zzjl().zzca("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                        v8_18 = com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(v8_18, v11_49), "_c"), 19, "currency");
                                                                                    }
                                                                                    v7_18.zzaxm = v8_18;
                                                                                    if (this.zzadp.zzgv().zze(v2_0.zzaut.zztt, com.google.android.gms.measurement.internal.zzag.zzall)) {
                                                                                        if (!"_e".equals(v7_18.name)) {
                                                                                            if (!"_vs".equals(v7_18.name)) {
                                                                                                if ((v4_7 != null) && ((v5_16 == null) && ("_e".equals(v7_18.name)))) {
                                                                                                    if (v7_18.zzaxm != null) {
                                                                                                        if (v7_18.zzaxm.length != 0) {
                                                                                                            this.zzjr();
                                                                                                            Boolean v8_49 = ((Long) com.google.android.gms.measurement.internal.zzfq.zzb(v7_18, "_et"));
                                                                                                            if (v8_49 != null) {
                                                                                                                v37_0 += v8_49.longValue();
                                                                                                                Long v9_72 = (v26_0 + 1);
                                                                                                                v3_8.zzaxu[v26_0] = v7_18;
                                                                                                                v26_1 = v9_72;
                                                                                                                v14_18 = v37_0;
                                                                                                                v9_73 = v39_0;
                                                                                                                v8_71 = (v25_0 + 1);
                                                                                                                v13_40 = v26_1;
                                                                                                                int v12 = 1;
                                                                                                            } else {
                                                                                                                this.zzadp.zzgt().zzjj().zzg("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                                                            }
                                                                                                        } else {
                                                                                                        }
                                                                                                    }
                                                                                                    this.zzadp.zzgt().zzjj().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                                                }
                                                                                            } else {
                                                                                                this.zzjr();
                                                                                                if (com.google.android.gms.measurement.internal.zzfq.zza(v7_18, "_et") != null) {
                                                                                                } else {
                                                                                                    if ((!v10_5) || ((Math.abs((v10_5.zzaxn.longValue() - v7_18.zzaxn.longValue())) > 1000) || (!this.zza(v10_5, v7_18)))) {
                                                                                                        v6_13 = v7_18;
                                                                                                    } else {
                                                                                                    }
                                                                                                }
                                                                                            }
                                                                                        } else {
                                                                                            this.zzjr();
                                                                                            if (com.google.android.gms.measurement.internal.zzfq.zza(v7_18, "_fr") != null) {
                                                                                            } else {
                                                                                                if ((v6_13 == 0) || ((Math.abs((v6_13.zzaxn.longValue() - v7_18.zzaxn.longValue())) > 1000) || (!this.zza(v7_18, v6_13)))) {
                                                                                                    v10_5 = v7_18;
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                        v6_13 = 0;
                                                                                        v10_5 = 0;
                                                                                    }
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v9_51 = 1;
                                                                        } else {
                                                                            v9_51 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzadp.zzgt().zzjl().zzca("Value must be specified with a numeric type.");
                                                                        v8_18 = com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(v8_18, v11_49), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            Boolean v8_65;
                                                            v25_0 = v8_71;
                                                            v26_1 = v13_40;
                                                            this.zzadp.zzgt().zzjj().zze("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt), this.zzadp.zzgq().zzbv(v7_18.name));
                                                            if (this.zzls().zzcn(v2_0.zzaut.zztt)) {
                                                                v8_65 = 1;
                                                            } else {
                                                                if (!this.zzls().zzco(v2_0.zzaut.zztt)) {
                                                                    v8_65 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v8_65 == null) && (!"_err".equals(v7_18.name))) {
                                                                this.zzadp.zzgr().zza(v2_0.zzaut.zztt, 11, "_ev", v7_18.name, 0);
                                                            }
                                                            v9_73 = v24_0;
                                                        }
                                                    }
                                                    int v13_4;
                                                    boolean v24_1 = v9_73;
                                                    String v26_2 = v13_40;
                                                    long v37_1 = v14_18;
                                                    if (v5_16 == null) {
                                                        v13_4 = v26_2;
                                                    } else {
                                                        v13_4 = v26_2;
                                                        int v14_5 = v37_1;
                                                        com.google.android.gms.measurement.internal.zzfk v5_0 = 0;
                                                        while (v5_0 < v13_4) {
                                                            long v6_3 = v3_8.zzaxu[v5_0];
                                                            if (!"_e".equals(v6_3.name)) {
                                                                if (v4_7 != null) {
                                                                    this.zzjr();
                                                                    long v6_4 = com.google.android.gms.measurement.internal.zzfq.zza(v6_3, "_et");
                                                                    if (v6_4 != 0) {
                                                                        long v6_5 = v6_4.zzaxq;
                                                                        if ((v6_5 != 0) && (v6_5.longValue() > 0)) {
                                                                            v14_5 += v6_5.longValue();
                                                                        }
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzjr();
                                                                if (com.google.android.gms.measurement.internal.zzfq.zza(v6_3, "_fr") == null) {
                                                                } else {
                                                                    System.arraycopy(v3_8.zzaxu, (v5_0 + 1), v3_8.zzaxu, v5_0, ((v13_4 - v5_0) - 1));
                                                                    v13_4--;
                                                                    v5_0--;
                                                                }
                                                            }
                                                            v5_0++;
                                                        }
                                                        v37_1 = v14_5;
                                                    }
                                                    if (v13_4 < v2_0.zzauv.size()) {
                                                        v3_8.zzaxu = ((com.google.android.gms.internal.measurement.zzgi[]) java.util.Arrays.copyOf(v3_8.zzaxu, v13_4));
                                                    }
                                                    if (v4_7 != null) {
                                                        String v4_12;
                                                        String v4_9 = this.zzjt().zzi(v3_8.zztt, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.measurement.internal.zzft;
                                                            v4_12(v3_8.zztt, "auto", "_lte", this.zzadp.zzbx().currentTimeMillis(), Long.valueOf(v37_1));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                com.google.android.gms.measurement.internal.zzfk v5_24 = new com.google.android.gms.measurement.internal.zzft;
                                                                v5_24(v3_8.zztt, "auto", "_lte", this.zzadp.zzbx().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v37_1)));
                                                                v4_12 = v5_24;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.measurement.internal.zzfk v5_27 = new com.google.android.gms.internal.measurement.zzgo();
                                                        v5_27.name = "_lte";
                                                        v5_27.zzazg = Long.valueOf(this.zzadp.zzbx().currentTimeMillis());
                                                        v5_27.zzaxq = ((Long) v4_12.value);
                                                        long v6_42 = 0;
                                                        while (v6_42 < v3_8.zzaxv.length) {
                                                            if (!"_lte".equals(v3_8.zzaxv[v6_42].name)) {
                                                                v6_42++;
                                                            } else {
                                                                v3_8.zzaxv[v6_42] = v5_27;
                                                                long v6_43 = 1;
                                                            }
                                                            if (v6_43 == 0) {
                                                                v3_8.zzaxv = ((com.google.android.gms.internal.measurement.zzgo[]) java.util.Arrays.copyOf(v3_8.zzaxv, (v3_8.zzaxv.length + 1)));
                                                                v3_8.zzaxv[(v2_0.zzaut.zzaxv.length - 1)] = v5_27;
                                                            }
                                                            if (v37_1 > 0) {
                                                                this.zzjt().zza(v4_12);
                                                                this.zzadp.zzgt().zzjn().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_43 = 0;
                                                    }
                                                    String v1_6;
                                                    android.database.sqlite.SQLiteException v50_1;
                                                    String v4_14 = v3_8.zztt;
                                                    com.google.android.gms.measurement.internal.zzfk v5_33 = v3_8.zzaxv;
                                                    long v6_49 = v3_8.zzaxu;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v4_14);
                                                    v3_8.zzaym = this.zzjs().zza(v4_14, v6_49, v5_33);
                                                    try {
                                                        if (!this.zzadp.zzgv().zzav(v2_0.zzaut.zztt)) {
                                                            v50_1 = v2_0;
                                                            v1_6 = v3_8;
                                                        } else {
                                                            String v4_20 = new java.util.HashMap();
                                                            com.google.android.gms.measurement.internal.zzfk v5_38 = new com.google.android.gms.internal.measurement.zzgi[v3_8.zzaxu.length];
                                                            long v6_1 = this.zzadp.zzgr().zzmk();
                                                            String v7_8 = v3_8.zzaxu;
                                                            Boolean v8_11 = v7_8.length;
                                                            Long v9_1 = 0;
                                                            boolean v10_0 = 0;
                                                            while (v9_1 < v8_11) {
                                                                String v45;
                                                                android.database.sqlite.SQLiteException v50_0;
                                                                boolean v43;
                                                                long v42;
                                                                Long v44;
                                                                int v49;
                                                                int v11_71 = v7_8[v9_1];
                                                                if (!v11_71.name.equals("_ep")) {
                                                                    Boolean v46;
                                                                    com.google.android.gms.measurement.internal.zzaa v3_41;
                                                                    int v12_70 = this.zzls().zzcm(v2_0.zzaut.zztt);
                                                                    v1_0.zzadp.zzgr();
                                                                    int v14_35 = com.google.android.gms.measurement.internal.zzfu.zzc(v11_71.zzaxn.longValue(), v12_70);
                                                                    v42 = v7_8;
                                                                    v43 = v8_11;
                                                                    Boolean v8_92 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v8_92 != null)) {
                                                                        v44 = v3_8;
                                                                        com.google.android.gms.measurement.internal.zzaa v3_29 = v11_71.zzaxm;
                                                                        v45 = v9_1;
                                                                        Long v9_98 = v3_29.length;
                                                                        v46 = v12_70;
                                                                        int v12_71 = 0;
                                                                        while (v12_71 < v9_98) {
                                                                            int v13_56 = v3_29[v12_71];
                                                                            if (!"_dbg".equals(v13_56.name)) {
                                                                                v12_71++;
                                                                            } else {
                                                                                if (((!(v8_92 instanceof Long)) || (!v8_92.equals(v13_56.zzaxq))) && (((!(v8_92 instanceof String)) || (!v8_92.equals(v13_56.zzamw))) && ((!(v8_92 instanceof Double)) || (!v8_92.equals(v13_56.zzava))))) {
                                                                                    break;
                                                                                }
                                                                                v3_41 = 1;
                                                                            }
                                                                        }
                                                                        v3_41 = 0;
                                                                    } else {
                                                                        v44 = v3_8;
                                                                        v45 = v9_1;
                                                                        v46 = v12_70;
                                                                    }
                                                                    int v12_72;
                                                                    if (v3_41 != null) {
                                                                        v12_72 = 1;
                                                                    } else {
                                                                        v12_72 = this.zzls().zzq(v2_0.zzaut.zztt, v11_71.name);
                                                                    }
                                                                    if (v12_72 > 0) {
                                                                        com.google.android.gms.measurement.internal.zzaa v3_1 = ((com.google.android.gms.measurement.internal.zzaa) v4_20.get(v11_71.name));
                                                                        if (v3_1 == null) {
                                                                            v3_1 = this.zzjt().zzg(v2_0.zzaut.zztt, v11_71.name);
                                                                            if (v3_1 == null) {
                                                                                v1_0.zzadp.zzgt().zzjj().zze("Event being bundled has no eventAggregate. appId, eventName", v2_0.zzaut.zztt, v11_71.name);
                                                                                v3_1 = new com.google.android.gms.measurement.internal.zzaa;
                                                                                v3_1(v2_0.zzaut.zztt, v11_71.name, 1, 1, v11_71.zzaxn.longValue(), 0, 0, 0, 0, 0);
                                                                            }
                                                                        }
                                                                        Boolean v8_98;
                                                                        this.zzjr();
                                                                        String v7_77 = ((Long) com.google.android.gms.measurement.internal.zzfq.zzb(v11_71, "_eid"));
                                                                        if (v7_77 == null) {
                                                                            v8_98 = 0;
                                                                        } else {
                                                                            v8_98 = 1;
                                                                        }
                                                                        Boolean v8_99 = Boolean.valueOf(v8_98);
                                                                        if (v12_72 != 1) {
                                                                            if (v6_1.nextInt(v12_72) != 0) {
                                                                                v49 = v6_1;
                                                                                String v1_20;
                                                                                String v51;
                                                                                if (!v1_0.zzadp.zzgv().zzbh(v2_0.zzaut.zztt)) {
                                                                                    v50_0 = v2_0;
                                                                                    v51 = v7_77;
                                                                                    if (Math.abs((v11_71.zzaxn.longValue() - v3_1.zzaik)) < 86400000) {
                                                                                        v1_20 = 0;
                                                                                    } else {
                                                                                        v1_20 = 1;
                                                                                    }
                                                                                } else {
                                                                                    long v18_6;
                                                                                    if (v3_1.zzail == null) {
                                                                                        v1_0.zzadp.zzgr();
                                                                                        v50_0 = v2_0;
                                                                                        v51 = v7_77;
                                                                                        v18_6 = com.google.android.gms.measurement.internal.zzfu.zzc(v11_71.zzaxo.longValue(), v46);
                                                                                    } else {
                                                                                        v18_6 = v3_1.zzail.longValue();
                                                                                        v50_0 = v2_0;
                                                                                        v51 = v7_77;
                                                                                    }
                                                                                    if (v18_6 == v14_35) {
                                                                                    }
                                                                                }
                                                                                if (v1_20 == null) {
                                                                                    if (v8_99.booleanValue()) {
                                                                                        v4_20.put(v11_71.name, v3_1.zza(v51, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzjr();
                                                                                    v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_efs", Long.valueOf(1));
                                                                                    this.zzjr();
                                                                                    long v6_96 = ((long) v12_72);
                                                                                    v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_sr", Long.valueOf(v6_96));
                                                                                    String v1_27 = (v10_0 + 1);
                                                                                    v5_38[v10_0] = v11_71;
                                                                                    if (v8_99.booleanValue()) {
                                                                                        v3_1 = v3_1.zza(0, Long.valueOf(v6_96), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_20.put(v11_71.name, v3_1.zza(v11_71.zzaxn.longValue(), v14_35));
                                                                                    v10_0 = v1_27;
                                                                                }
                                                                            } else {
                                                                                this.zzjr();
                                                                                int v12_73 = ((long) v12_72);
                                                                                v49 = v6_1;
                                                                                v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_sr", Long.valueOf(v12_73));
                                                                                long v6_0 = (v10_0 + 1);
                                                                                v5_38[v10_0] = v11_71;
                                                                                if (v8_99.booleanValue()) {
                                                                                    v3_1 = v3_1.zza(0, Long.valueOf(v12_73), 0);
                                                                                }
                                                                                v4_20.put(v11_71.name, v3_1.zza(v11_71.zzaxn.longValue(), v14_35));
                                                                                v50_0 = v2_0;
                                                                                v10_0 = v6_0;
                                                                            }
                                                                        } else {
                                                                            String v7_4 = (v10_0 + 1);
                                                                            v5_38[v10_0] = v11_71;
                                                                            if ((v8_99.booleanValue()) && ((v3_1.zzaim != null) || ((v3_1.zzain != null) || (v3_1.zzaio != null)))) {
                                                                                v4_20.put(v11_71.name, v3_1.zza(0, 0, 0));
                                                                            }
                                                                            v50_0 = v2_0;
                                                                            v49 = v6_1;
                                                                            v10_0 = v7_4;
                                                                        }
                                                                    } else {
                                                                        v1_0.zzadp.zzgt().zzjj().zze("Sample rate must be positive. event, rate", v11_71.name, Integer.valueOf(v12_72));
                                                                        com.google.android.gms.measurement.internal.zzaa v3_7 = (v10_0 + 1);
                                                                        v5_38[v10_0] = v11_71;
                                                                        v50_0 = v2_0;
                                                                        v10_0 = v3_7;
                                                                        v49 = v6_1;
                                                                    }
                                                                } else {
                                                                    this.zzjr();
                                                                    int v12_2 = ((String) com.google.android.gms.measurement.internal.zzfq.zzb(v11_71, "_en"));
                                                                    int v13_1 = ((com.google.android.gms.measurement.internal.zzaa) v4_20.get(v12_2));
                                                                    if (v13_1 == 0) {
                                                                        v13_1 = this.zzjt().zzg(v2_0.zzaut.zztt, v12_2);
                                                                        v4_20.put(v12_2, v13_1);
                                                                    }
                                                                    if (v13_1.zzaim != null) {
                                                                        v50_0 = v2_0;
                                                                        v44 = v3_8;
                                                                        v49 = v6_1;
                                                                        v42 = v7_8;
                                                                        v43 = v8_11;
                                                                        v45 = v9_1;
                                                                    } else {
                                                                        if (v13_1.zzain.longValue() > 1) {
                                                                            this.zzjr();
                                                                            v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_sr", v13_1.zzain);
                                                                        }
                                                                        if ((v13_1.zzaio != null) && (v13_1.zzaio.booleanValue())) {
                                                                            this.zzjr();
                                                                            v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_efs", Long.valueOf(1));
                                                                        }
                                                                        int v12_13 = (v10_0 + 1);
                                                                        v5_38[v10_0] = v11_71;
                                                                        v50_0 = v2_0;
                                                                        v44 = v3_8;
                                                                        v49 = v6_1;
                                                                        v42 = v7_8;
                                                                        v43 = v8_11;
                                                                        v45 = v9_1;
                                                                        v10_0 = v12_13;
                                                                    }
                                                                }
                                                                v9_1 = (v45 + 1);
                                                                v7_8 = v42;
                                                                v8_11 = v43;
                                                                v3_8 = v44;
                                                                v6_1 = v49;
                                                                v2_0 = v50_0;
                                                                v1_0 = this;
                                                            }
                                                            v50_1 = v2_0;
                                                            v1_6 = v3_8;
                                                            if (v10_0 < v1_6.zzaxu.length) {
                                                                v1_6.zzaxu = ((com.google.android.gms.internal.measurement.zzgi[]) java.util.Arrays.copyOf(v5_38, v10_0));
                                                            }
                                                            int v2_9 = v4_20.entrySet().iterator();
                                                            while (v2_9.hasNext()) {
                                                                this.zzjt().zza(((com.google.android.gms.measurement.internal.zzaa) ((java.util.Map$Entry) v2_9.next()).getValue()));
                                                            }
                                                        }
                                                        try {
                                                            v1_6.zzaxx = Long.valueOf(nan);
                                                            v1_6.zzaxy = Long.valueOf(-0.0);
                                                            int v2_14 = 0;
                                                        } catch (android.database.sqlite.SQLiteException v0_5) {
                                                            String v1_1 = v0_5;
                                                            this.zzjt().endTransaction();
                                                            throw v1_1;
                                                        }
                                                        while (v2_14 < v1_6.zzaxu.length) {
                                                            com.google.android.gms.measurement.internal.zzaa v3_23 = v1_6.zzaxu[v2_14];
                                                            if (v3_23.zzaxn.longValue() < v1_6.zzaxx.longValue()) {
                                                                v1_6.zzaxx = v3_23.zzaxn;
                                                            }
                                                            if (v3_23.zzaxn.longValue() > v1_6.zzaxy.longValue()) {
                                                                v1_6.zzaxy = v3_23.zzaxn;
                                                            }
                                                            v2_14++;
                                                        }
                                                        int v2_15 = v50_1;
                                                        com.google.android.gms.measurement.internal.zzfk v5_39;
                                                        com.google.android.gms.measurement.internal.zzaa v3_20 = v2_15.zzaut.zztt;
                                                        String v4_22 = this.zzjt().zzbo(v3_20);
                                                        if (v4_22 != null) {
                                                            v5_39 = this;
                                                            if (v1_6.zzaxu.length > 0) {
                                                                Boolean v8_86;
                                                                long v6_54 = v4_22.zzhe();
                                                                if (v6_54 == 0) {
                                                                    v8_86 = 0;
                                                                } else {
                                                                    v8_86 = Long.valueOf(v6_54);
                                                                }
                                                                v1_6.zzaya = v8_86;
                                                                Boolean v8_87 = v4_22.zzhd();
                                                                if (v8_87 != 0) {
                                                                    v6_54 = v8_87;
                                                                } else {
                                                                }
                                                                long v6_55;
                                                                if (v6_54 == 0) {
                                                                    v6_55 = 0;
                                                                } else {
                                                                    v6_55 = Long.valueOf(v6_54);
                                                                }
                                                                v1_6.zzaxz = v6_55;
                                                                v4_22.zzhm();
                                                                v1_6.zzayk = Integer.valueOf(((int) v4_22.zzhj()));
                                                                v4_22.zzs(v1_6.zzaxx.longValue());
                                                                v4_22.zzt(v1_6.zzaxy.longValue());
                                                                v1_6.zzagy = v4_22.zzhu();
                                                                this.zzjt().zza(v4_22);
                                                            }
                                                        } else {
                                                            v5_39 = this;
                                                            this.zzadp.zzgt().zzjg().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_15.zzaut.zztt));
                                                        }
                                                        if (v1_6.zzaxu.length > 0) {
                                                            v5_39.zzadp.zzgw();
                                                            String v4_30 = this.zzls().zzci(v2_15.zzaut.zztt);
                                                            if (v4_30 == null) {
                                                                if (!android.text.TextUtils.isEmpty(v2_15.zzaut.zzafx)) {
                                                                    v5_39.zzadp.zzgt().zzjj().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_15.zzaut.zztt));
                                                                } else {
                                                                    v1_6.zzayr = Long.valueOf(-1);
                                                                }
                                                            } else {
                                                                if (v4_30.zzawx != null) {
                                                                    v1_6.zzayr = v4_30.zzawx;
                                                                } else {
                                                                }
                                                            }
                                                            this.zzjt().zza(v1_6, v24_1);
                                                        }
                                                        String v1_7 = this.zzjt();
                                                        int v2_16 = v2_15.zzauu;
                                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_16);
                                                        v1_7.zzaf();
                                                        v1_7.zzcl();
                                                        String v4_41 = new StringBuilder("rowid in (");
                                                        long v6_72 = 0;
                                                        while (v6_72 < v2_16.size()) {
                                                            if (v6_72 != 0) {
                                                                v4_41.append(",");
                                                            }
                                                            v4_41.append(((Long) v2_16.get(v6_72)).longValue());
                                                            v6_72++;
                                                        }
                                                        v4_41.append(")");
                                                        String v4_43 = v1_7.getWritableDatabase().delete("raw_events", v4_41.toString(), 0);
                                                        if (v4_43 != v2_16.size()) {
                                                            v1_7.zzgt().zzjg().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v4_43), Integer.valueOf(v2_16.size()));
                                                        }
                                                        String v1_10 = this.zzjt();
                                                        int v2_19 = v1_10.getWritableDatabase();
                                                        try {
                                                            long v6_78 = new String[2];
                                                            v6_78[0] = v3_20;
                                                            v6_78[1] = v3_20;
                                                            v2_19.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_78);
                                                        } catch (android.database.sqlite.SQLiteException v0_7) {
                                                            v1_10.zzgt().zzjg().zze("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_20), v0_7);
                                                        }
                                                        this.zzjt().setTransactionSuccessful();
                                                        this.zzjt().endTransaction();
                                                        return 1;
                                                    } catch (android.database.sqlite.SQLiteException v0_3) {
                                                        v1_1 = v0_3;
                                                    }
                                                }
                                            } else {
                                                v8_7.close();
                                            }
                                        }
                                        if (v8_7.moveToNext()) {
                                            v4_53.zzgt().zzjj().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9));
                                        }
                                        int v16_4;
                                        int v17_3;
                                        v8_7.close();
                                        v2_0.zzb(v13_34);
                                        if (v5_40 == -1) {
                                            long v6_16 = new String[2];
                                            v6_16[0] = v3_9;
                                            v6_16[1] = v7_3;
                                            v16_4 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_3 = v6_16;
                                        } else {
                                            int v14_24 = new String[3];
                                            v14_24[0] = v3_9;
                                            v14_24[1] = v7_3;
                                            v14_24[2] = String.valueOf(v5_40);
                                            v16_4 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_3 = v14_24;
                                        }
                                        boolean v15_9 = new String[4];
                                        v15_9[0] = "rowid";
                                        v15_9[1] = "name";
                                        v15_9[2] = "timestamp";
                                        v15_9[3] = "data";
                                        com.google.android.gms.measurement.internal.zzfk v5_9 = v23.query("raw_events", v15_9, v16_4, v17_3, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_9.moveToFirst()) {
                                                v4_53.zzgt().zzjj().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9));
                                                if (v5_9 == null) {
                                                } else {
                                                    v5_9.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v8_7 = v5_9;
                                            String v1_2 = v0_1;
                                            if (v8_7 != null) {
                                                v8_7.close();
                                            }
                                            throw v1_2;
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            v7_3 = v3_9;
                                            v8_7 = v5_9;
                                        }
                                        do {
                                            long v6_19 = v5_9.getLong(0);
                                            Long v9_92 = v5_9.getBlob(3);
                                            Boolean v8_74 = com.google.android.gms.internal.measurement.zzzi.zzj(v9_92, 0, v9_92.length);
                                            Long v9_94 = new com.google.android.gms.internal.measurement.zzgi();
                                            v9_94.zza(v8_74);
                                            v9_94.name = v5_9.getString(1);
                                            v9_94.zzaxn = Long.valueOf(v5_9.getLong(2));
                                            if (v2_0.zza(v6_19, v9_94)) {
                                            } else {
                                                if (v5_9 == null) {
                                                } else {
                                                    v5_9.close();
                                                }
                                            }
                                        } while(v5_9.moveToNext());
                                        if (v5_9 == null) {
                                        } else {
                                            v5_9.close();
                                        }
                                    } else {
                                        v4_53.zzgt().zzjg().zzg("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9));
                                        if (v8_7 == null) {
                                        } else {
                                            v8_7.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v7_3 = v3_9;
                                }
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v8_7 = v22;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v7_3 = v3_9;
                                v8_7 = v22;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    } else {
                        try {
                            int v13_52;
                            if (v5_40 == -1) {
                                v13_52 = new String[1];
                                v13_52[0] = String.valueOf(p54);
                            } else {
                                v13_52 = new String[2];
                                v13_52[0] = String.valueOf(v5_40);
                                v13_52[1] = String.valueOf(p54);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                            v7_3 = 0;
                            v8_7 = 0;
                        }
                        int v14_36;
                        if (v5_40 == -1) {
                            v14_36 = "";
                        } else {
                            v14_36 = "rowid <= ? and ";
                        }
                        com.google.android.gms.measurement.internal.zzaa v3_50 = new StringBuilder((String.valueOf(v14_36).length() + 148));
                        v3_50.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_50.append(v14_36);
                        v3_50.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_9 = v15_7.rawQuery(v3_50.toString(), v13_52);
                        if (v3_9.moveToFirst()) {
                            String v7_7 = v3_9.getString(0);
                            try {
                                int v13_5 = v3_9.getString(1);
                                v3_9.close();
                                v22 = v3_9;
                                v3_9 = v7_7;
                                v7_3 = v13_5;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v8_7 = v3_9;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v8_7 = v3_9;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v8_7 = v3_9;
                    v7_3 = 0;
                }
                com.google.android.gms.measurement.internal.zzaa v3_0 = v0_2;
                v4_53.zzgt().zzjg().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v7_3), v3_0);
                if (v8_7 == null) {
                } else {
                    v8_7.close();
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v8_7 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v3_0 = v0_0;
                v7_3 = 0;
                v8_7 = 0;
            } catch (android.database.sqlite.SQLiteException v0_1) {
            }
        } catch (android.database.sqlite.SQLiteException v0_5) {
        }
    }

Method com.google.android.gms.measurement.internal.zzv.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.measurement.internal.zzan.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.measurement.internal.zzv.zza(this.zzalz.zzgt(), 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.measurement.internal.zzam.zza() calling method android.database.sqlite.SQLiteDatabase.insertOrThrow()


    private final boolean zza(int p18, byte[] p19)
    {
        this.zzgg();
        this.zzaf();
        Long v2_5 = 0;
        if (!this.zzaly) {
            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.zzgt().zzjg().zzca("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.zzgt().zzjg().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.zzaly = 1;
                            if (v9 != 0) {
                                v9.close();
                            }
                            return v2_5;
                        }
                        v7 = v9;
                        if (v7 != 0) {
                            if (v7.inTransaction()) {
                                v7.endTransaction();
                            }
                        }
                        this.zzgt().zzjg().zzg("Error writing entry to local database", com.google.android.gms.measurement.internal.zzas v0_0);
                        this.zzaly = 1;
                        if (v12 != 0) {
                            v12.close();
                        }
                        if (v7 == 0) {
                        } else {
                            v7.close();
                        }
                    } catch (com.google.android.gms.measurement.internal.zzas v0_3) {
                        this.zzgt().zzjg().zzg("Error writing entry to local database", v0_3);
                        this.zzaly = 1;
                        if (v7 != 0) {
                            v7.close();
                        }
                        if (v9 == 0) {
                        } else {
                            v9.close();
                        }
                    } catch (com.google.android.gms.measurement.internal.zzas v0_0) {
                        v12 = 0;
                    }
                } catch (com.google.android.gms.measurement.internal.zzas v0_1) {
                    v9 = 0;
                    v12 = 0;
                    if (v12 != 0) {
                        v12.close();
                    }
                    if (v9 != 0) {
                        v9.close();
                    }
                    throw v0_1;
                } catch (com.google.android.gms.measurement.internal.zzas v0_3) {
                    v9 = 0;
                } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                    v9 = 0;
                } catch (com.google.android.gms.measurement.internal.zzas v0_0) {
                    v12 = 0;
                } catch (com.google.android.gms.measurement.internal.zzas v0_1) {
                    v12 = v7;
                }
            }
            this.zzgt().zzjj().zzca("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

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


    public final boolean zza(com.google.android.gms.measurement.internal.zzz p9, long p10, boolean p12)
    {
        this.zzaf();
        this.zzcl();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p9);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p9.zztt);
        long v0_6 = new com.google.android.gms.internal.measurement.zzgi();
        v0_6.zzaxo = Long.valueOf(p9.zzaif);
        byte[] v1_2 = new com.google.android.gms.internal.measurement.zzgj[p9.zzaig.size()];
        v0_6.zzaxm = v1_2;
        byte[] v1_4 = p9.zzaig.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.zzgj();
            int v7 = (v3_2 + 1);
            v0_6.zzaxm[v3_2] = v5_1;
            v5_1.name = v4_1;
            this.zzjr().zza(v5_1, p9.zzaig.get(v4_1));
            v3_2 = v7;
        }
        try {
            byte[] v1_6 = new byte[v0_6.zzwe()];
            String v3_4 = com.google.android.gms.internal.measurement.zzzj.zzk(v1_6, 0, v1_6.length);
            v0_6.zza(v3_4);
            v3_4.zzzh();
            this.zzgt().zzjo().zze("Saving event, name, data size", this.zzgq().zzbv(p9.name), Integer.valueOf(v1_6.length));
            long v0_4 = new android.content.ContentValues();
            v0_4.put("app_id", p9.zztt);
            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.zzgt().zzjg().zzg("Failed to insert raw event (got -1). appId", com.google.android.gms.measurement.internal.zzaq.zzby(p9.zztt));
                    return 0;
                }
            } catch (com.google.android.gms.measurement.internal.zzas v10_9) {
                this.zzgt().zzjg().zze("Error storing raw event. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p9.zztt), v10_9);
                return 0;
            }
        } catch (com.google.android.gms.measurement.internal.zzas v10_6) {
            this.zzgt().zzjg().zze("Data loss. Failed to serialize event params/data. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p9.zztt), v10_6);
            return 0;
        }
    }

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


    public final boolean zza(com.google.android.gms.internal.measurement.zzgl p8, boolean p9)
    {
        this.zzaf();
        this.zzcl();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p8);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p8.zztt);
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p8.zzaxy);
        this.zzij();
        int v0_0 = this.zzbx().currentTimeMillis();
        if ((p8.zzaxy.longValue() < (v0_0 - com.google.android.gms.measurement.internal.zzo.zzib())) || (p8.zzaxy.longValue() > (com.google.android.gms.measurement.internal.zzo.zzib() + v0_0))) {
            this.zzgt().zzjj().zzd("Storing bundle outside of the max uploading time span. appId, now, timestamp", com.google.android.gms.measurement.internal.zzaq.zzby(p8.zztt), Long.valueOf(v0_0), p8.zzaxy);
        }
        try {
            String v1_5 = new byte[p8.zzwe()];
            Object v2_10 = com.google.android.gms.internal.measurement.zzzj.zzk(v1_5, 0, v1_5.length);
            p8.zza(v2_10);
            v2_10.zzzh();
            String v1_6 = this.zzjr().zzb(v1_5);
            this.zzgt().zzjo().zzg("Saving bundle, size", Integer.valueOf(v1_6.length));
            Object v2_15 = new android.content.ContentValues();
            v2_15.put("app_id", p8.zztt);
            v2_15.put("bundle_end_timestamp", p8.zzaxy);
            v2_15.put("data", v1_6);
            v2_15.put("has_realtime", Integer.valueOf(p9));
        } catch (com.google.android.gms.measurement.internal.zzas v9_6) {
            this.zzgt().zzjg().zze("Data loss. Failed to serialize bundle. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p8.zztt), v9_6);
            return 0;
        }
        if (p8.zzayv != null) {
            v2_15.put("retry_count", p8.zzayv);
        }
        try {
            if (this.getWritableDatabase().insert("queue", 0, v2_15) != -1) {
                return 1;
            } else {
                this.zzgt().zzjg().zzg("Failed to insert bundle (got -1). appId", com.google.android.gms.measurement.internal.zzaq.zzby(p8.zztt));
                return 0;
            }
        } catch (com.google.android.gms.measurement.internal.zzas v9_1) {
            this.zzgt().zzjg().zze("Error storing bundle. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p8.zztt), v9_1);
            return 0;
        }
    }

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


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

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


    final com.google.android.gms.internal.measurement.zzgg[] zza(String p99, com.google.android.gms.internal.measurement.zzgi[] p100, com.google.android.gms.internal.measurement.zzgo[] p101)
    {
        com.google.android.gms.measurement.internal.zzao v15_0 = p99;
        String v13_0 = p100;
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p99);
        java.util.BitSet v11_10 = new java.util.HashSet();
        int v12_6 = new android.support.v4.util.ArrayMap();
        String v10_0 = new android.support.v4.util.ArrayMap();
        android.support.v4.util.ArrayMap v9_2 = new android.support.v4.util.ArrayMap();
        Integer v8_10 = new android.support.v4.util.ArrayMap();
        String v6_7 = new android.support.v4.util.ArrayMap();
        boolean v23 = this.zzgv().zzbd(p99);
        int v0_19 = this.zzjt().zzbr(p99);
        if (v0_19 != 0) {
            long v1_54 = v0_19.keySet().iterator();
            while (v1_54.hasNext()) {
                com.google.android.gms.measurement.internal.zzas v29_0;
                int v0_15;
                android.support.v4.util.ArrayMap v27_0;
                com.google.android.gms.internal.measurement.zzgh[] v28;
                int v30_1;
                Long v2_55 = ((Integer) v1_54.next()).intValue();
                boolean v4_19 = ((com.google.android.gms.internal.measurement.zzgm) v0_19.get(Integer.valueOf(v2_55)));
                long v5_10 = ((java.util.BitSet) v10_0.get(Integer.valueOf(v2_55)));
                String v3_19 = ((java.util.BitSet) v9_2.get(Integer.valueOf(v2_55)));
                if (!v23) {
                    v27_0 = v0_19;
                    v28 = v1_54;
                    v29_0 = v3_19;
                    v30_1 = v11_10;
                    v0_15 = 0;
                } else {
                    v27_0 = v0_19;
                    v0_15 = new android.support.v4.util.ArrayMap();
                    if (!v4_19) {
                        v28 = v1_54;
                        v29_0 = v3_19;
                        v30_1 = v11_10;
                    } else {
                        v28 = v1_54;
                        if (v4_19.zzazb != null) {
                            long v1_42 = v4_19.zzazb;
                            v29_0 = v3_19;
                            String v3_21 = v1_42.length;
                            v30_1 = v11_10;
                            java.util.BitSet v11_6 = 0;
                            while (v11_6 < v3_21) {
                                boolean v31_1 = v3_21;
                                String v3_22 = v1_42[v11_6];
                                com.google.android.gms.measurement.internal.zzaa v32 = v1_42;
                                if (v3_22.zzaxj != null) {
                                    v0_15.put(v3_22.zzaxj, v3_22.zzaxk);
                                }
                                v11_6++;
                                v3_21 = v31_1;
                                v1_42 = v32;
                            }
                        }
                    }
                    v8_10.put(Integer.valueOf(v2_55), v0_15);
                }
                String v3_24;
                if (v5_10 != 0) {
                    v3_24 = v29_0;
                } else {
                    v5_10 = new java.util.BitSet();
                    v10_0.put(Integer.valueOf(v2_55), v5_10);
                    v3_24 = new java.util.BitSet();
                    v9_2.put(Integer.valueOf(v2_55), v3_24);
                }
                long v1_48 = 0;
                while (v1_48 < (v4_19.zzayz.length << 6)) {
                    Integer v35_2;
                    boolean v33_2;
                    Integer v8_23;
                    Integer v34_2;
                    if (!com.google.android.gms.measurement.internal.zzfq.zza(v4_19.zzayz, v1_48)) {
                        v33_2 = v8_10;
                        v34_2 = v9_2;
                        v35_2 = v10_0;
                        v8_23 = 0;
                    } else {
                        v33_2 = v8_10;
                        v34_2 = v9_2;
                        v35_2 = v10_0;
                        this.zzgt().zzjo().zze("Filter already evaluated. audience ID, filter ID", Integer.valueOf(v2_55), Integer.valueOf(v1_48));
                        v3_24.set(v1_48);
                        if (!com.google.android.gms.measurement.internal.zzfq.zza(v4_19.zzaza, v1_48)) {
                        } else {
                            v5_10.set(v1_48);
                            v8_23 = 1;
                        }
                    }
                    if ((v0_15 != 0) && (v8_23 == null)) {
                        v0_15.remove(Integer.valueOf(v1_48));
                    }
                    v1_48++;
                    v8_10 = v33_2;
                    v9_2 = v34_2;
                    v10_0 = v35_2;
                }
                boolean v33_1 = v8_10;
                Integer v34_1 = v9_2;
                Integer v35_1 = v10_0;
                long v1_50 = new com.google.android.gms.internal.measurement.zzgg();
                v12_6.put(Integer.valueOf(v2_55), v1_50);
                v1_50.zzaxh = Boolean.valueOf(0);
                v1_50.zzaxg = v4_19;
                v1_50.zzaxf = new com.google.android.gms.internal.measurement.zzgm();
                v1_50.zzaxf.zzaza = com.google.android.gms.measurement.internal.zzfq.zza(v5_10);
                v1_50.zzaxf.zzayz = com.google.android.gms.measurement.internal.zzfq.zza(v3_24);
                if (v23) {
                    v1_50.zzaxf.zzazb = com.google.android.gms.measurement.internal.zzk.zzd(v0_15);
                    v6_7.put(Integer.valueOf(v2_55), new android.support.v4.util.ArrayMap());
                }
                v0_19 = v27_0;
                v1_54 = v28;
                v11_10 = v30_1;
                v8_10 = v33_1;
                v9_2 = v34_1;
                v10_0 = v35_1;
            }
        }
        boolean v33_0 = v8_10;
        Integer v34_0 = v9_2;
        Integer v35_0 = v10_0;
        int v30_0 = v11_10;
        if (p100 != null) {
            android.support.v4.util.ArrayMap v9_3 = new android.support.v4.util.ArrayMap();
            Integer v8_12 = p100.length;
            Long v2_52 = 0;
            int v0_41 = 0;
            long v1_58 = 0;
            boolean v4_16 = 0;
            while (v4_16 < v8_12) {
                Integer v65_1;
                Long v25;
                com.google.android.gms.measurement.internal.zzao v79_2;
                com.google.android.gms.measurement.internal.zzas v29_1;
                boolean v26;
                int v72_1;
                int v24_1;
                com.google.android.gms.internal.measurement.zzgj v42_1;
                com.google.android.gms.internal.measurement.zzgo[] v14_0;
                String v78_1;
                String v80_1;
                int v0_11;
                String v13_12;
                boolean v31_0;
                String v41_0;
                String v77_1;
                long v5_47 = v13_0[v4_16];
                String v10_14 = v5_47.name;
                java.util.BitSet v11_22 = v5_47.zzaxm;
                long v36 = v2_52;
                if (!this.zzgv().zzd(v15_0, com.google.android.gms.measurement.internal.zzag.zzaku)) {
                    v26 = v4_16;
                    v13_12 = v5_47;
                    v41_0 = v6_7;
                    v24_1 = 1;
                    v42_1 = v0_41;
                    v25 = v1_58;
                    v0_11 = v10_14;
                    v29_1 = v11_22;
                    String v45;
                    long v1_105;
                    long v5_48;
                    android.support.v4.util.ArrayMap v48;
                    com.google.android.gms.measurement.internal.zzao v47;
                    String v44;
                    Long v2_14;
                    com.google.android.gms.internal.measurement.zzgo[] v46;
                    String v43;
                    long v1_103 = this.zzjt().zzg(v15_0, v13_12.name);
                    if (v1_103 != 0) {
                        v31_0 = v8_12;
                        v44 = v9_3;
                        v47 = v12_6;
                        v2_14 = v13_12;
                        v5_48 = v15_0;
                        v46 = v30_0;
                        v48 = v33_0;
                        v43 = v34_0;
                        v45 = v35_0;
                        boolean v4_42 = new com.google.android.gms.measurement.internal.zzaa;
                        v4_42(v1_103.zztt, v1_103.name, (v1_103.zzaih + 1), (v1_103.zzaii + 1), v1_103.zzaij, v1_103.zzaik, v1_103.zzail, v1_103.zzaim, v1_103.zzain, v1_103.zzaio);
                        v1_105 = v4_42;
                    } else {
                        this.zzgt().zzjj().zze("Event aggregate wasn\'t created during raw event logging. appId, event", com.google.android.gms.measurement.internal.zzaq.zzby(p99), this.zzgq().zzbv(v0_11));
                        v1_105 = new com.google.android.gms.measurement.internal.zzaa;
                        v31_0 = v8_12;
                        v44 = v9_3;
                        v43 = v34_0;
                        v45 = v35_0;
                        v48 = v33_0;
                        v47 = v12_6;
                        v46 = v30_0;
                        v2_14 = v13_12;
                        v5_48 = v15_0;
                        v1_105(p99, v13_12.name, 1, 1, v13_12.zzaxn.longValue(), 0, 0, 0, 0, 0);
                    }
                    this.zzjt().zza(v1_105);
                    Integer v8_34 = v1_105.zzaih;
                    String v10_2 = v44;
                    long v1_109 = ((java.util.Map) v10_2.get(v0_11));
                    if (v1_109 == 0) {
                        v1_109 = this.zzjt().zzl(v5_48, v0_11);
                        if (v1_109 == 0) {
                            v1_109 = new android.support.v4.util.ArrayMap();
                        }
                        v10_2.put(v0_11, v1_109);
                    }
                    java.util.BitSet v11_4 = v1_109;
                    int v12_1 = v11_4.keySet().iterator();
                    while (v12_1.hasNext()) {
                        String v13_15 = ((Integer) v12_1.next()).intValue();
                        com.google.android.gms.internal.measurement.zzgo[] v14_4 = v46;
                        if (!v14_4.contains(Integer.valueOf(v13_15))) {
                            Integer v7_0;
                            Long v2_3;
                            int v12_0;
                            android.support.v4.util.ArrayMap v67;
                            int v68;
                            java.util.Map v66;
                            com.google.android.gms.measurement.internal.zzao v15_2 = v47;
                            String v6_4 = v45;
                            boolean v4_2 = ((java.util.BitSet) v6_4.get(Integer.valueOf(v13_15)));
                            android.util.Pair v64 = v2_14;
                            Integer v65_0 = v10_2;
                            String v10_1 = v43;
                            Long v2_2 = ((java.util.BitSet) v10_1.get(Integer.valueOf(v13_15)));
                            if (!v23) {
                                v66 = v2_2;
                                v67 = v12_1;
                                v7_0 = v41_0;
                                v12_0 = v48;
                                v2_3 = 0;
                                v68 = 0;
                            } else {
                                v66 = v2_2;
                                v67 = v12_1;
                                v12_0 = v48;
                                v68 = ((java.util.Map) v12_0.get(Integer.valueOf(v13_15)));
                                v7_0 = v41_0;
                                v2_3 = ((java.util.Map) v7_0.get(Integer.valueOf(v13_15)));
                            }
                            Integer v7_1;
                            Long v2_9;
                            int v73;
                            int v72_0;
                            if (((com.google.android.gms.internal.measurement.zzgg) v15_2.get(Integer.valueOf(v13_15))) != null) {
                                v72_0 = v7_0;
                                v2_9 = v66;
                                v73 = v68;
                                v7_1 = v2_3;
                            } else {
                                long v1_1 = new com.google.android.gms.internal.measurement.zzgg();
                                v15_2.put(Integer.valueOf(v13_15), v1_1);
                                v1_1.zzaxh = Boolean.valueOf(v24_1);
                                v4_2 = new java.util.BitSet();
                                v6_4.put(Integer.valueOf(v13_15), v4_2);
                                long v1_4 = new java.util.BitSet();
                                Integer v69_1 = v2_3;
                                v10_1.put(Integer.valueOf(v13_15), v1_4);
                                if (!v23) {
                                    v72_0 = v7_0;
                                    v73 = v68;
                                    v7_1 = v69_1;
                                    v2_9 = v1_4;
                                } else {
                                    Long v2_12 = new android.support.v4.util.ArrayMap();
                                    android.support.v4.util.ArrayMap v70_1 = v1_4;
                                    v12_0.put(Integer.valueOf(v13_15), v2_12);
                                    long v1_7 = new android.support.v4.util.ArrayMap();
                                    android.support.v4.util.ArrayMap v71 = v2_12;
                                    v7_0.put(Integer.valueOf(v13_15), v1_7);
                                    v72_0 = v7_0;
                                    v2_9 = v70_1;
                                    v73 = v71;
                                    v7_1 = v1_7;
                                }
                            }
                            String v16_0 = ((java.util.List) v11_4.get(Integer.valueOf(v13_15))).iterator();
                            while (v16_0.hasNext()) {
                                String v76;
                                String v77_0;
                                long v1_13 = ((com.google.android.gms.internal.measurement.zzfy) v16_0.next());
                                com.google.android.gms.internal.measurement.zzgj[] v74 = v2_9;
                                java.util.BitSet v75 = v11_4;
                                if (!this.zzgt().isLoggable(2)) {
                                    v76 = v6_4;
                                    v77_0 = v12_0;
                                } else {
                                    v76 = v6_4;
                                    v77_0 = v12_0;
                                    this.zzgt().zzjo().zzd("Evaluating filter. audience, filter, event", Integer.valueOf(v13_15), v1_13.zzavx, this.zzgq().zzbv(v1_13.zzavy));
                                    this.zzgt().zzjo().zzg("Filter definition", this.zzjr().zza(v1_13));
                                }
                                if ((v1_13.zzavx != null) && (v1_13.zzavx.intValue() <= 256)) {
                                    if (!v23) {
                                        Integer v81 = v0_11;
                                        int v0_0 = v1_13;
                                        String v78_0 = v10_1;
                                        com.google.android.gms.measurement.internal.zzao v79_1 = v15_2;
                                        com.google.android.gms.measurement.internal.zzao v15_1 = v64;
                                        int v12_3 = v73;
                                        java.util.BitSet v11_3 = v74;
                                        String v80_0 = v76;
                                        String v10_3 = v4_2;
                                        if (!v10_3.get(v0_0.zzavx.intValue())) {
                                            boolean v4_8;
                                            long v1_18 = this.zza(v0_0, v81, v29_1, v8_34);
                                            com.google.android.gms.measurement.internal.zzas vtmp270 = this.zzgt().zzjo();
                                            if (v1_18 != 0) {
                                                v4_8 = v1_18;
                                            } else {
                                                v4_8 = "null";
                                            }
                                            vtmp270.zzg("Event filter result", v4_8);
                                            if (v1_18 != 0) {
                                                v11_3.set(v0_0.zzavx.intValue());
                                                if (!v1_18.booleanValue()) {
                                                    v4_2 = v10_3;
                                                    v2_9 = v11_3;
                                                    v73 = v12_3;
                                                    v64 = v15_1;
                                                    v11_4 = v75;
                                                    v12_0 = v77_0;
                                                    v10_1 = v78_0;
                                                    v15_2 = v79_1;
                                                    v6_4 = v80_0;
                                                    v0_11 = v81;
                                                } else {
                                                    v10_3.set(v0_0.zzavx.intValue());
                                                }
                                            } else {
                                                v14_4.add(Integer.valueOf(v13_15));
                                            }
                                        } else {
                                            this.zzgt().zzjo().zze("Event filter already evaluated true. audience ID, filter ID", Integer.valueOf(v13_15), v0_0.zzavx);
                                        }
                                    } else {
                                        if ((v1_13 == 0) || ((v1_13.zzavu == null) || (!v1_13.zzavu.booleanValue()))) {
                                            int v12_4 = 0;
                                        } else {
                                            v12_4 = 1;
                                        }
                                        if ((v1_13 == 0) || ((v1_13.zzavv == null) || (!v1_13.zzavv.booleanValue()))) {
                                            int v17_0 = 0;
                                        } else {
                                            v17_0 = 1;
                                        }
                                        if ((!v4_2.get(v1_13.zzavx.intValue())) || ((v12_4 != 0) || (v17_0 != 0))) {
                                            boolean v4_10;
                                            long v5_4 = v1_13;
                                            v11_3 = v74;
                                            v78_0 = v10_1;
                                            v79_1 = v15_2;
                                            v15_1 = v64;
                                            v10_3 = v4_2;
                                            v81 = v0_11;
                                            int v0_5 = v5_4;
                                            int v82 = v73;
                                            v80_0 = v76;
                                            long v1_23 = this.zza(v5_4, v0_11, v29_1, v8_34);
                                            com.google.android.gms.measurement.internal.zzas vtmp295 = this.zzgt().zzjo();
                                            if (v1_23 != 0) {
                                                v4_10 = v1_23;
                                            } else {
                                                v4_10 = "null";
                                            }
                                            vtmp295.zzg("Event filter result", v4_10);
                                            if (v1_23 != 0) {
                                                v11_3.set(v0_5.zzavx.intValue());
                                                if (v1_23.booleanValue()) {
                                                    v10_3.set(v0_5.zzavx.intValue());
                                                    if (((v12_4 != 0) || (v17_0 != 0)) && (v15_1.zzaxn != null)) {
                                                        if (v17_0 == 0) {
                                                            v12_3 = v82;
                                                            com.google.android.gms.measurement.internal.zzk.zza(v12_3, v0_5.zzavx.intValue(), v15_1.zzaxn.longValue());
                                                        } else {
                                                            com.google.android.gms.measurement.internal.zzk.zzb(v7_1, v0_5.zzavx.intValue(), v15_1.zzaxn.longValue());
                                                        }
                                                    }
                                                }
                                            } else {
                                                v14_4.add(Integer.valueOf(v13_15));
                                            }
                                            v4_2 = v10_3;
                                            v2_9 = v11_3;
                                            v64 = v15_1;
                                            v11_4 = v75;
                                            v12_0 = v77_0;
                                            v10_1 = v78_0;
                                            v15_2 = v79_1;
                                            v6_4 = v80_0;
                                            v0_11 = v81;
                                            v73 = v82;
                                        } else {
                                            this.zzgt().zzjo().zze("Event filter already evaluated true and it is not associated with a dynamic audience. audience ID, filter ID", Integer.valueOf(v13_15), v1_13.zzavx);
                                            v2_9 = v74;
                                            v11_4 = v75;
                                            v6_4 = v76;
                                            v12_0 = v77_0;
                                        }
                                    }
                                } else {
                                    v81 = v0_11;
                                    v78_0 = v10_1;
                                    v79_1 = v15_2;
                                    v15_1 = v64;
                                    v12_3 = v73;
                                    v11_3 = v74;
                                    v80_0 = v76;
                                    v10_3 = v4_2;
                                    this.zzgt().zzjj().zze("Invalid event filter ID. appId, id", com.google.android.gms.measurement.internal.zzaq.zzby(p99), String.valueOf(v1_13.zzavx));
                                }
                                long v5 = p99;
                            }
                            v45 = v6_4;
                            v43 = v10_1;
                            v48 = v12_0;
                            v46 = v14_4;
                            v2_14 = v64;
                            v10_2 = v65_0;
                            v12_1 = v67;
                            v41_0 = v72_0;
                            v47 = v15_2;
                            v5 = p99;
                        } else {
                            this.zzgt().zzjo().zzg("Skipping failed audience ID", Integer.valueOf(v13_15));
                            v46 = v14_4;
                        }
                    }
                    v65_1 = v10_2;
                    v72_1 = v41_0;
                    v78_1 = v43;
                    v80_1 = v45;
                    v14_0 = v46;
                    v79_2 = v47;
                    v77_1 = v48;
                    v1_58 = v25;
                    v2_52 = v36;
                    v0_41 = v42_1;
                } else {
                    Long v2_83;
                    this.zzjr();
                    String v3_38 = ((Long) com.google.android.gms.measurement.internal.zzfq.zzb(v5_47, "_eid"));
                    if (v3_38 == null) {
                        v2_83 = 0;
                    } else {
                        v2_83 = 1;
                    }
                    boolean v38;
                    boolean v4_33;
                    if (v2_83 == null) {
                        v38 = v4_16;
                        v4_33 = 0;
                    } else {
                        v38 = v4_16;
                        if (!v10_14.equals("_ep")) {
                        } else {
                            v4_33 = 1;
                        }
                    }
                    if (!v4_33) {
                        v13_12 = v5_47;
                        v41_0 = v6_7;
                        v26 = v38;
                        v24_1 = 1;
                        if (v2_83 == null) {
                        } else {
                            this.zzjr();
                            long v1_89 = Long.valueOf(0);
                            int v0_48 = com.google.android.gms.measurement.internal.zzfq.zzb(v13_12, "_epc");
                            if (v0_48 == 0) {
                                v0_48 = v1_89;
                            }
                            int v0_52;
                            Long v18_3 = ((Long) v0_48).longValue();
                            if (v18_3 > 0) {
                                v0_52 = v3_38;
                                this.zzjt().zza(p99, v3_38, v18_3, v13_12);
                            } else {
                                this.zzgt().zzjj().zzg("Complex event with zero extra param count. eventName", v10_14);
                                v0_52 = v3_38;
                            }
                            v25 = v0_52;
                            v0_11 = v10_14;
                            v29_1 = v11_22;
                            v42_1 = v13_12;
                            v36 = v18_3;
                        }
                    } else {
                        String v41_1;
                        this.zzjr();
                        String v10_16 = ((String) com.google.android.gms.measurement.internal.zzfq.zzb(v5_47, "_en"));
                        if (!android.text.TextUtils.isEmpty(v10_16)) {
                            if ((v0_41 != 0) && ((v1_58 != 0) && (v3_38.longValue() == v1_58.longValue()))) {
                                boolean v4_35 = v0_41;
                                Long v18_5 = v1_58;
                                long v1_92 = v36;
                            } else {
                                Long v2_90 = this.zzjt().zza(v15_0, v3_38);
                                if ((v2_90 != null) && (v2_90.first != null)) {
                                    int v0_57 = ((com.google.android.gms.internal.measurement.zzgi) v2_90.first);
                                    v1_92 = ((Long) v2_90.second).longValue();
                                    this.zzjr();
                                    v18_5 = ((Long) com.google.android.gms.measurement.internal.zzfq.zzb(v0_57, "_eid"));
                                    v4_35 = v0_57;
                                } else {
                                    v41_1 = v6_7;
                                    v26 = v38;
                                    this.zzgt().zzjg().zze("Extra parameter without existing main event. eventName, eventId", v10_16, v3_38);
                                    v31_0 = v8_12;
                                    v65_1 = v9_3;
                                    v79_2 = v12_6;
                                    v14_0 = v30_0;
                                    v77_1 = v33_0;
                                    v78_1 = v34_0;
                                    v80_1 = v35_0;
                                    v2_52 = v36;
                                    v72_1 = v41_1;
                                    v4_16 = (v26 + 1);
                                    v13_0 = p100;
                                    v30_0 = v14_0;
                                    v8_12 = v31_0;
                                    v9_3 = v65_1;
                                    v6_7 = v72_1;
                                    v33_0 = v77_1;
                                    v34_0 = v78_1;
                                    v12_6 = v79_2;
                                    v35_0 = v80_1;
                                    v15_0 = p99;
                                }
                            }
                            long v1_40;
                            long v19_3 = (v1_92 - 1);
                            if (v19_3 > 0) {
                                int v21 = 0;
                                v13_12 = v5_47;
                                v26 = v38;
                                java.util.BitSet v40 = v4_35;
                                v24_1 = 1;
                                v41_0 = v6_7;
                                this.zzjt().zza(p99, v3_38, v19_3, v40);
                                v1_40 = v40;
                            } else {
                                long v1_96 = this.zzjt();
                                v1_96.zzaf();
                                v1_96.zzgt().zzjo().zzg("Clearing complex main event info. appId", v15_0);
                                try {
                                    int v0_63 = v1_96.getWritableDatabase();
                                    int v39_1 = v4_35;
                                    try {
                                        boolean v4_41 = new String[1];
                                        try {
                                            v4_41[0] = v15_0;
                                            v0_63.execSQL("delete from main_event_params where app_id=?", v4_41);
                                        } catch (int v0_64) {
                                            v1_96.zzgt().zzjg().zzg("Error clearing complex main event", v0_64);
                                        }
                                        v13_12 = v5_47;
                                        v41_0 = v6_7;
                                        v26 = v38;
                                        v1_40 = v39_1;
                                        v24_1 = 1;
                                    } catch (int v0_64) {
                                    }
                                } catch (int v0_64) {
                                    v39_1 = v4_35;
                                }
                            }
                            int v0_69 = new com.google.android.gms.internal.measurement.zzgj[(v1_40.zzaxm.length + v11_22.length)];
                            Long v2_96 = v1_40.zzaxm;
                            String v3_40 = v2_96.length;
                            boolean v4_13 = 0;
                            long v5_7 = 0;
                            while (v4_13 < v3_40) {
                                String v6_6 = v2_96[v4_13];
                                this.zzjr();
                                com.google.android.gms.internal.measurement.zzgj v42_0 = v1_40;
                                if (com.google.android.gms.measurement.internal.zzfq.zza(v13_12, v6_6.name) == null) {
                                    long v1_39 = (v5_7 + 1);
                                    v0_69[v5_7] = v6_6;
                                    v5_7 = v1_39;
                                }
                                v4_13++;
                                v1_40 = v42_0;
                            }
                            v42_1 = v1_40;
                            if (v5_7 <= 0) {
                                this.zzgt().zzjj().zzg("No unique parameters in main event. eventName", v10_16);
                                v0_11 = v10_16;
                                v29_1 = v11_22;
                            } else {
                                long v1_100 = v11_22.length;
                                Long v2_47 = 0;
                                while (v2_47 < v1_100) {
                                    boolean v4_12 = (v5_7 + 1);
                                    v0_69[v5_7] = v11_22[v2_47];
                                    v2_47++;
                                    v5_7 = v4_12;
                                }
                                if (v5_7 != v0_69.length) {
                                    v0_69 = ((com.google.android.gms.internal.measurement.zzgj[]) java.util.Arrays.copyOf(v0_69, v5_7));
                                }
                                v29_1 = v0_69;
                                v0_11 = v10_16;
                            }
                            v25 = v18_5;
                            v36 = v19_3;
                        } else {
                            this.zzgt().zzjg().zzg("Extra parameter without an event name. eventId", v3_38);
                            v41_1 = v6_7;
                            v26 = v38;
                        }
                    }
                }
            }
        }
        int v72_2 = v6_7;
        com.google.android.gms.measurement.internal.zzao v79_3 = v12_6;
        com.google.android.gms.internal.measurement.zzgo[] v14_2 = v30_0;
        String v77_2 = v33_0;
        String v78_2 = v34_0;
        String v80_2 = v35_0;
        long v1_56 = p101;
        if (p101 != null) {
            int v0_40 = new android.support.v4.util.ArrayMap();
            Long v2_70 = p101.length;
            String v3_35 = 0;
            while (v3_35 < v2_70) {
                boolean v4_30 = v1_56[v3_35];
                long v5_24 = ((java.util.Map) v0_40.get(v4_30.name));
                if (v5_24 == 0) {
                    v5_24 = this.zzjt().zzm(p99, v4_30.name);
                    if (v5_24 == 0) {
                        v5_24 = new android.support.v4.util.ArrayMap();
                    }
                    v0_40.put(v4_30.name, v5_24);
                }
                String v6_12 = v5_24.keySet().iterator();
                while (v6_12.hasNext()) {
                    Integer v8_30 = ((Integer) v6_12.next()).intValue();
                    if (!v14_2.contains(Integer.valueOf(v8_30))) {
                        Long v2_65;
                        int v84;
                        java.util.Map v83;
                        long v1_57;
                        android.support.v4.util.ArrayMap v85;
                        int v0_30;
                        String v10_6 = v79_3;
                        int v12_7 = v80_2;
                        java.util.BitSet v11_17 = ((java.util.BitSet) v12_7.get(Integer.valueOf(v8_30)));
                        com.google.android.gms.measurement.internal.zzao v15_6 = v78_2;
                        String v13_10 = ((java.util.BitSet) v15_6.get(Integer.valueOf(v8_30)));
                        if (!v23) {
                            v83 = v0_40;
                            v85 = v2_70;
                            v2_65 = v72_2;
                            v1_57 = v77_2;
                            v0_30 = 0;
                            v84 = 0;
                        } else {
                            v83 = v0_40;
                            v1_57 = v77_2;
                            v84 = ((java.util.Map) v1_57.get(Integer.valueOf(v8_30)));
                            v85 = v2_70;
                            v2_65 = v72_2;
                            v0_30 = ((java.util.Map) v2_65.get(Integer.valueOf(v8_30)));
                        }
                        int v0_36;
                        android.support.v4.util.ArrayMap v9_16;
                        int v87;
                        if (((com.google.android.gms.internal.measurement.zzgg) v10_6.get(Integer.valueOf(v8_30))) != null) {
                            v9_16 = v0_30;
                            v87 = v2_65;
                            v0_36 = v84;
                        } else {
                            android.support.v4.util.ArrayMap v9_12 = new com.google.android.gms.internal.measurement.zzgg();
                            v10_6.put(Integer.valueOf(v8_30), v9_12);
                            v9_12.zzaxh = Boolean.valueOf(1);
                            v11_17 = new java.util.BitSet();
                            v12_7.put(Integer.valueOf(v8_30), v11_17);
                            v13_10 = new java.util.BitSet();
                            v15_6.put(Integer.valueOf(v8_30), v13_10);
                            if (!v23) {
                            } else {
                                int v0_38 = new android.support.v4.util.ArrayMap();
                                v1_57.put(Integer.valueOf(v8_30), v0_38);
                                v9_16 = new android.support.v4.util.ArrayMap();
                                android.support.v4.util.ArrayMap v86 = v0_38;
                                v2_65.put(Integer.valueOf(v8_30), v9_16);
                                v87 = v2_65;
                                v0_36 = v86;
                            }
                        }
                        Long v2_69 = ((java.util.List) v5_24.get(Integer.valueOf(v8_30))).iterator();
                        while (v2_69.hasNext()) {
                            com.google.android.gms.measurement.internal.zzas v91_1;
                            String v93_1;
                            com.google.android.gms.measurement.internal.zzao v92_1;
                            java.util.Map v88 = v2_69;
                            Long v2_72 = ((com.google.android.gms.internal.measurement.zzgb) v2_69.next());
                            long[] v89 = v5_24;
                            int v90 = v6_12;
                            if (!this.zzgt().isLoggable(2)) {
                                v91_1 = v1_57;
                                v93_1 = v10_6;
                                v92_1 = v15_6;
                            } else {
                                v91_1 = v1_57;
                                v92_1 = v15_6;
                                v93_1 = v10_6;
                                this.zzgt().zzjo().zzd("Evaluating filter. audience, filter, property", Integer.valueOf(v8_30), v2_72.zzavx, this.zzgq().zzbx(v2_72.zzawn));
                                this.zzgt().zzjo().zzg("Filter definition", this.zzjr().zza(v2_72));
                            }
                            if ((v2_72.zzavx != null) && (v2_72.zzavx.intValue() <= 256)) {
                                int v94_1;
                                String v95_1;
                                if (!v23) {
                                    v95_1 = v12_7;
                                    v94_1 = v87;
                                    if (!v11_17.get(v2_72.zzavx.intValue())) {
                                        String v10_9;
                                        long v1_68 = this.zza(v2_72, v4_30);
                                        long v5_34 = this.zzgt().zzjo();
                                        if (v1_68 != 0) {
                                            v10_9 = v1_68;
                                        } else {
                                            v10_9 = "null";
                                        }
                                        v5_34.zzg("Property filter result", v10_9);
                                        if (v1_68 != 0) {
                                            v13_10.set(v2_72.zzavx.intValue());
                                            if (v1_68.booleanValue()) {
                                                v11_17.set(v2_72.zzavx.intValue());
                                            }
                                        } else {
                                            v14_2.add(Integer.valueOf(v8_30));
                                        }
                                    } else {
                                        this.zzgt().zzjo().zze("Property filter already evaluated true. audience ID, filter ID", Integer.valueOf(v8_30), v2_72.zzavx);
                                    }
                                } else {
                                    if ((v2_72 == null) || ((v2_72.zzavu == null) || (!v2_72.zzavu.booleanValue()))) {
                                        long v1_78 = 0;
                                    } else {
                                        v1_78 = 1;
                                    }
                                    if ((v2_72 == null) || ((v2_72.zzavv == null) || (!v2_72.zzavv.booleanValue()))) {
                                        String v6_22 = 0;
                                    } else {
                                        v6_22 = 1;
                                    }
                                    if ((!v11_17.get(v2_72.zzavx.intValue())) || ((v1_78 != 0) || (v6_22 != null))) {
                                        int v12_8;
                                        String v10_10 = v87;
                                        com.google.android.gms.measurement.internal.zzao v15_8 = this.zza(v2_72, v4_30);
                                        long v5_38 = this.zzgt().zzjo();
                                        v94_1 = v10_10;
                                        if (v15_8 != null) {
                                            v95_1 = v12_7;
                                            v12_8 = v15_8;
                                        } else {
                                            v95_1 = v12_7;
                                            v12_8 = "null";
                                        }
                                        v5_38.zzg("Property filter result", v12_8);
                                        if (v15_8 != null) {
                                            v13_10.set(v2_72.zzavx.intValue());
                                            v11_17.set(v2_72.zzavx.intValue(), v15_8.booleanValue());
                                            if (((v15_8.booleanValue()) && ((v1_78 != 0) || (v6_22 != null))) && (v4_30.zzazg != null)) {
                                                if (v6_22 == null) {
                                                    com.google.android.gms.measurement.internal.zzk.zza(v0_36, v2_72.zzavx.intValue(), v4_30.zzazg.longValue());
                                                } else {
                                                    com.google.android.gms.measurement.internal.zzk.zzb(v9_16, v2_72.zzavx.intValue(), v4_30.zzazg.longValue());
                                                }
                                            }
                                        } else {
                                            v14_2.add(Integer.valueOf(v8_30));
                                        }
                                    } else {
                                        this.zzgt().zzjo().zze("Property filter already evaluated true and it is not associated with a dynamic audience. audience ID, filter ID", Integer.valueOf(v8_30), v2_72.zzavx);
                                        v2_69 = v88;
                                        v5_24 = v89;
                                        v6_12 = v90;
                                        v1_57 = v91_1;
                                        v15_6 = v92_1;
                                        v10_6 = v93_1;
                                    }
                                }
                                v2_69 = v88;
                                v5_24 = v89;
                                v6_12 = v90;
                                v1_57 = v91_1;
                                v15_6 = v92_1;
                                v10_6 = v93_1;
                                v87 = v94_1;
                                v12_7 = v95_1;
                            } else {
                                String v95_2 = v12_7;
                                int v94_2 = v87;
                                this.zzgt().zzjj().zze("Invalid property filter ID. appId, id", com.google.android.gms.measurement.internal.zzaq.zzby(p99), String.valueOf(v2_72.zzavx));
                                v14_2.add(Integer.valueOf(v8_30));
                                v0_40 = v83;
                                v2_70 = v85;
                                v5_24 = v89;
                                v6_12 = v90;
                                v77_2 = v91_1;
                                v78_2 = v92_1;
                                v79_3 = v93_1;
                                v72_2 = v94_2;
                                v80_2 = v95_2;
                            }
                            Integer v7 = p99;
                        }
                        v77_2 = v1_57;
                        v79_3 = v10_6;
                        v80_2 = v12_7;
                        v78_2 = v15_6;
                        v0_40 = v83;
                        v2_70 = v85;
                        v72_2 = v87;
                    } else {
                        this.zzgt().zzjo().zzg("Skipping failed audience ID", Integer.valueOf(v8_30));
                    }
                }
                v85 = v2_70;
                com.google.android.gms.measurement.internal.zzas v91 = v77_2;
                String v93 = v79_3;
                v7 = this;
                v3_35++;
                v1_56 = p101;
            }
        }
        int v94_0 = v72_2;
        com.google.android.gms.measurement.internal.zzas v91_0 = v77_2;
        com.google.android.gms.measurement.internal.zzao v92_0 = v78_2;
        String v93_0 = v79_3;
        String v95_0 = v80_2;
        long v1_88 = new com.google.android.gms.internal.measurement.zzgg[v95_0.size()];
        Long v2_58 = v95_0.keySet().iterator();
        String v3_34 = 0;
        while (v2_58.hasNext()) {
            int v0_74 = ((Integer) v2_58.next()).intValue();
            if (!v14_2.contains(Integer.valueOf(v0_74))) {
                long v5_16 = v93_0;
                boolean v4_3 = ((com.google.android.gms.internal.measurement.zzgg) v5_16.get(Integer.valueOf(v0_74)));
                if (!v4_3) {
                    v4_3 = new com.google.android.gms.internal.measurement.zzgg();
                }
                int v12_5;
                java.util.BitSet v11_5;
                com.google.android.gms.internal.measurement.zzgn v96_0;
                long[] v97_0;
                String v6_0 = (v3_34 + 1);
                v1_88[v3_34] = v4_3;
                v4_3.zzavr = Integer.valueOf(v0_74);
                v4_3.zzaxf = new com.google.android.gms.internal.measurement.zzgm();
                android.support.v4.util.ArrayMap v9_1 = v95_0;
                v4_3.zzaxf.zzaza = com.google.android.gms.measurement.internal.zzfq.zza(((java.util.BitSet) v9_1.get(Integer.valueOf(v0_74))));
                String v10_4 = v92_0;
                v4_3.zzaxf.zzayz = com.google.android.gms.measurement.internal.zzfq.zza(((java.util.BitSet) v10_4.get(Integer.valueOf(v0_74))));
                if (!v23) {
                    v96_0 = v2_58;
                    v97_0 = v5_16;
                    v11_5 = v91_0;
                    v12_5 = v94_0;
                } else {
                    com.google.android.gms.measurement.internal.zzao v15_4;
                    v11_5 = v91_0;
                    v4_3.zzaxf.zzazb = com.google.android.gms.measurement.internal.zzk.zzd(((java.util.Map) v11_5.get(Integer.valueOf(v0_74))));
                    String v3_20 = v4_3.zzaxf;
                    v12_5 = v94_0;
                    Integer v8_19 = ((java.util.Map) v12_5.get(Integer.valueOf(v0_74)));
                    if (v8_19 != null) {
                        v15_4 = new com.google.android.gms.internal.measurement.zzgn[v8_19.size()];
                        String v16_2 = v8_19.keySet().iterator();
                        int v17_1 = 0;
                        while (v16_2.hasNext()) {
                            long[] v97_1;
                            String v13_2 = ((Integer) v16_2.next());
                            com.google.android.gms.internal.measurement.zzgn v96_1 = v2_58;
                            Long v2_57 = new com.google.android.gms.internal.measurement.zzgn();
                            v2_57.zzaxj = v13_2;
                            String v13_4 = ((java.util.List) v8_19.get(v13_2));
                            if (v13_4 == null) {
                                v97_1 = v5_16;
                            } else {
                                java.util.Collections.sort(v13_4);
                                v97_1 = v5_16;
                                long v5_14 = new long[v13_4.size()];
                                String v13_5 = v13_4.iterator();
                                Long v18_2 = 0;
                                while (v13_5.hasNext()) {
                                    int v20_0 = (v18_2 + 1);
                                    v5_14[v18_2] = ((Long) v13_5.next()).longValue();
                                    v18_2 = v20_0;
                                }
                                v2_57.zzaze = v5_14;
                            }
                            long v5_15 = (v17_1 + 1);
                            v15_4[v17_1] = v2_57;
                            v17_1 = v5_15;
                            v2_58 = v96_1;
                            v5_16 = v97_1;
                        }
                        v96_0 = v2_58;
                        v97_0 = v5_16;
                    } else {
                        Integer v8_25 = new com.google.android.gms.internal.measurement.zzgn[0];
                        v96_0 = v2_58;
                        v97_0 = v5_16;
                        v15_4 = v8_25;
                    }
                    v3_20.zzazc = v15_4;
                }
                Long v2_59 = this.zzjt();
                String v3_27 = v4_3.zzaxf;
                v2_59.zzcl();
                v2_59.zzaf();
                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p99);
                com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_27);
                try {
                    boolean v4_25 = new byte[v3_27.zzwe()];
                    try {
                        long v5_18 = com.google.android.gms.internal.measurement.zzzj.zzk(v4_25, 0, v4_25.length);
                        v3_27.zza(v5_18);
                        v5_18.zzzh();
                        String v3_29 = new android.content.ContentValues();
                        v3_29.put("app_id", p99);
                        v3_29.put("audience_id", Integer.valueOf(v0_74));
                        v3_29.put("current_results", v4_25);
                        try {
                            try {
                                if (v2_59.getWritableDatabase().insertWithOnConflict("audience_filter_values", 0, v3_29, 5) != -1) {
                                    v3_34 = v6_0;
                                    v95_0 = v9_1;
                                    v92_0 = v10_4;
                                    v91_0 = v11_5;
                                    v94_0 = v12_5;
                                    v2_58 = v96_0;
                                    v93_0 = v97_0;
                                } else {
                                    v2_59.zzgt().zzjg().zzg("Failed to insert filter results (got -1). appId", com.google.android.gms.measurement.internal.zzaq.zzby(p99));
                                }
                            } catch (int v0_26) {
                                v2_59.zzgt().zzjg().zze("Error storing filter results. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p99), v0_26);
                            }
                        } catch (int v0_26) {
                        }
                    } catch (int v0_22) {
                        com.google.android.gms.measurement.internal.zzao v15 = 0;
                        v2_59.zzgt().zzjg().zze("Configuration loss. Failed to serialize filter results. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p99), v0_22);
                    }
                } catch (int v0_22) {
                }
            }
        }
        return ((com.google.android.gms.internal.measurement.zzgg[]) java.util.Arrays.copyOf(v1_88, v3_34));
    }

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


    private final boolean zzd(String p53, long p54)
    {
        String v1_0 = this;
        this.zzjt().beginTransaction();
        try {
            com.google.android.gms.measurement.internal.zzaa v3_9 = 0;
            int v2_0 = new com.google.android.gms.measurement.internal.zzfk$zza(this, 0);
            String v4_53 = this.zzjt();
            com.google.android.gms.measurement.internal.zzfk v5_40 = this.zzaup;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_0);
            v4_53.zzaf();
            v4_53.zzcl();
            try {
                int v22;
                String v7_3;
                boolean v15_7 = v4_53.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        com.google.android.gms.measurement.internal.zzaa v3_11;
                        if (v5_40 == -1) {
                            v3_11 = new String[1];
                            v3_11[0] = 0;
                        } else {
                            v3_11 = new String[2];
                            v3_11[0] = 0;
                            v3_11[1] = String.valueOf(v5_40);
                        }
                        String v7_30;
                        if (v5_40 == -1) {
                            v7_30 = "";
                        } else {
                            v7_30 = " and rowid <= ?";
                        }
                        int v14_27 = new StringBuilder((String.valueOf(v7_30).length() + 84));
                        v14_27.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_27.append(v7_30);
                        v14_27.append(" order by rowid limit 1;");
                        v3_9 = v15_7.rawQuery(v14_27.toString(), v3_11);
                        if (v3_9.moveToFirst()) {
                            int v13_50 = v3_9.getString(0);
                            v3_9.close();
                            v22 = v3_9;
                            v7_3 = v13_50;
                            v3_9 = 0;
                            try {
                                int v13_12 = new String[1];
                                v13_12[0] = "metadata";
                                Boolean v8_17 = new String[2];
                                v8_17[0] = v3_9;
                                v8_17[1] = v7_3;
                                android.database.sqlite.SQLiteDatabase v23 = v15_7;
                                Boolean v8_7 = v15_7.query("raw_events_metadata", v13_12, "app_id = ? and metadata_fingerprint = ?", v8_17, 0, 0, "rowid", "2");
                                try {
                                    if (v8_7.moveToFirst()) {
                                        Long v9_67 = v8_7.getBlob(0);
                                        Long v9_68 = com.google.android.gms.internal.measurement.zzzi.zzj(v9_67, 0, v9_67.length);
                                        int v13_34 = new com.google.android.gms.internal.measurement.zzgl();
                                        try {
                                            v13_34.zza(v9_68);
                                        } catch (android.database.sqlite.SQLiteException v0_4) {
                                            v4_53.zzgt().zzjg().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9), v0_4);
                                            if (v8_7 == null) {
                                                com.google.android.gms.measurement.internal.zzaa v3_15;
                                                if (v2_0.zzauv == null) {
                                                    v3_15 = 1;
                                                } else {
                                                    if (!v2_0.zzauv.isEmpty()) {
                                                        v3_15 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_15 != null) {
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.measurement.internal.zzaa v3_8 = v2_0.zzaut;
                                                    String v4_4 = new com.google.android.gms.internal.measurement.zzgi[v2_0.zzauv.size()];
                                                    v3_8.zzaxu = v4_4;
                                                    String v4_7 = this.zzadp.zzgv().zzaw(v3_8.zztt);
                                                    com.google.android.gms.measurement.internal.zzfk v5_16 = this.zzadp.zzgv().zze(v2_0.zzaut.zztt, com.google.android.gms.measurement.internal.zzag.zzalm);
                                                    long v6_13 = 0;
                                                    Boolean v8_71 = 0;
                                                    Long v9_73 = 0;
                                                    boolean v10_5 = 0;
                                                    int v13_40 = 0;
                                                    int v14_18 = 0;
                                                    while (v8_71 < v2_0.zzauv.size()) {
                                                        com.google.android.gms.measurement.internal.zzaa v25_0;
                                                        String v26_1;
                                                        String v7_18 = ((com.google.android.gms.internal.measurement.zzgi) v2_0.zzauv.get(v8_71));
                                                        boolean v24_0 = v9_73;
                                                        if (!this.zzls().zzo(v2_0.zzaut.zztt, v7_18.name)) {
                                                            long v37_0;
                                                            int v39_0;
                                                            v25_0 = v8_71;
                                                            String v26_0 = v13_40;
                                                            Boolean v8_15 = this.zzls().zzp(v2_0.zzaut.zztt, v7_18.name);
                                                            if (v8_15 != null) {
                                                                if (v7_18.zzaxm == null) {
                                                                    int v12_19 = new com.google.android.gms.internal.measurement.zzgj[0];
                                                                    v7_18.zzaxm = v12_19;
                                                                }
                                                                int v11_12 = v7_18.zzaxm;
                                                                int v12_20 = v11_12.length;
                                                                int v13_9 = 0;
                                                                long v18_0 = 0;
                                                                int v19_0 = 0;
                                                                while (v13_9 < v12_20) {
                                                                    Long v9_77 = v11_12[v13_9];
                                                                    long v28_1 = v11_12;
                                                                    long v29_1 = v12_20;
                                                                    if (!"_c".equals(v9_77.name)) {
                                                                        if ("_r".equals(v9_77.name)) {
                                                                            v9_77.zzaxq = Long.valueOf(1);
                                                                            v19_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v9_77.zzaxq = Long.valueOf(1);
                                                                        v18_0 = 1;
                                                                    }
                                                                    v13_9++;
                                                                    v11_12 = v28_1;
                                                                    v12_20 = v29_1;
                                                                }
                                                                if ((v18_0 == 0) && (v8_15 != null)) {
                                                                    this.zzadp.zzgt().zzjo().zzg("Marking event as conversion", this.zzadp.zzgq().zzbv(v7_18.name));
                                                                    Long v9_14 = ((com.google.android.gms.internal.measurement.zzgj[]) java.util.Arrays.copyOf(v7_18.zzaxm, (v7_18.zzaxm.length + 1)));
                                                                    int v11_18 = new com.google.android.gms.internal.measurement.zzgj();
                                                                    v11_18.name = "_c";
                                                                    v11_18.zzaxq = Long.valueOf(1);
                                                                    v9_14[(v9_14.length - 1)] = v11_18;
                                                                    v7_18.zzaxm = v9_14;
                                                                }
                                                                if (v19_0 == 0) {
                                                                    this.zzadp.zzgt().zzjo().zzg("Marking event as real-time", this.zzadp.zzgq().zzbv(v7_18.name));
                                                                    Long v9_20 = ((com.google.android.gms.internal.measurement.zzgj[]) java.util.Arrays.copyOf(v7_18.zzaxm, (v7_18.zzaxm.length + 1)));
                                                                    int v11_24 = new com.google.android.gms.internal.measurement.zzgj();
                                                                    v11_24.name = "_r";
                                                                    v11_24.zzaxq = Long.valueOf(1);
                                                                    v9_20[(v9_20.length - 1)] = v11_24;
                                                                    v7_18.zzaxm = v9_20;
                                                                }
                                                                Long v9_28;
                                                                v37_0 = v14_18;
                                                                if (this.zzjt().zza(this.zzly(), v2_0.zzaut.zztt, 0, 0, 0, 0, 1).zzahx <= ((long) this.zzadp.zzgv().zzas(v2_0.zzaut.zztt))) {
                                                                    v9_28 = 1;
                                                                } else {
                                                                    Long v9_29 = 0;
                                                                    while (v9_29 < v7_18.zzaxm.length) {
                                                                        if (!"_r".equals(v7_18.zzaxm[v9_29].name)) {
                                                                            v9_29++;
                                                                        } else {
                                                                            int v11_33 = new com.google.android.gms.internal.measurement.zzgj[(v7_18.zzaxm.length - 1)];
                                                                            if (v9_29 > null) {
                                                                                System.arraycopy(v7_18.zzaxm, 0, v11_33, 0, v9_29);
                                                                            }
                                                                            if (v9_29 < v11_33.length) {
                                                                                System.arraycopy(v7_18.zzaxm, (v9_29 + 1), v11_33, v9_29, (v11_33.length - v9_29));
                                                                            }
                                                                            v7_18.zzaxm = v11_33;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v9_28 = v24_0;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.zzfu.zzcv(v7_18.name)) || ((v8_15 == null) || (this.zzjt().zza(this.zzly(), v2_0.zzaut.zztt, 0, 0, 1, 0, 0).zzahv <= ((long) this.zzadp.zzgv().zzb(v2_0.zzaut.zztt, com.google.android.gms.measurement.internal.zzag.zzajt))))) {
                                                                    v39_0 = v9_28;
                                                                } else {
                                                                    this.zzadp.zzgt().zzjj().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                    int v11_42 = v7_18.zzaxm;
                                                                    int v12_46 = v11_42.length;
                                                                    int v13_29 = 0;
                                                                    int v14_11 = 0;
                                                                    boolean v15_4 = 0;
                                                                    while (v13_29 < v12_46) {
                                                                        Long v9_74 = v11_42[v13_29];
                                                                        if (!"_c".equals(v9_74.name)) {
                                                                            if ("_err".equals(v9_74.name)) {
                                                                                v14_11 = 1;
                                                                            }
                                                                        } else {
                                                                            v15_4 = v9_74;
                                                                        }
                                                                        v13_29++;
                                                                    }
                                                                    v39_0 = v9_28;
                                                                    if ((v14_11 == 0) || (!v15_4)) {
                                                                        if (!v15_4) {
                                                                            this.zzadp.zzgt().zzjg().zzg("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                        } else {
                                                                            v15_4.name = "_err";
                                                                            v15_4.zzaxq = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        Long v9_36 = v7_18.zzaxm;
                                                                        int v12_50 = new com.google.android.gms.internal.measurement.zzgj[1];
                                                                        v12_50[0] = v15_4;
                                                                        v7_18.zzaxm = ((com.google.android.gms.internal.measurement.zzgj[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v9_36, v12_50));
                                                                    }
                                                                }
                                                            } else {
                                                                int v11_6;
                                                                this.zzjr();
                                                                int v11_4 = v7_18.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v11_4);
                                                                int v12_15 = v11_4.hashCode();
                                                                if (v12_15 == 94660) {
                                                                    if (!v11_4.equals("_in")) {
                                                                        v11_6 = -1;
                                                                    } else {
                                                                        v11_6 = 0;
                                                                    }
                                                                } else {
                                                                    if (v12_15 == 95025) {
                                                                        if (!v11_4.equals("_ug")) {
                                                                        } else {
                                                                            v11_6 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v12_15 == 95027) {
                                                                            if (!v11_4.equals("_ui")) {
                                                                            } else {
                                                                                v11_6 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v11_9;
                                                                switch (v11_6) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v11_9 = 1;
                                                                    default:
                                                                        v11_9 = 0;
                                                                }
                                                                if (v11_9 == 0) {
                                                                    v37_0 = v14_18;
                                                                    v39_0 = v24_0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzadp.zzgv().zzbf(v2_0.zzaut.zztt)) || (v8_15 == null)) {
                                                            } else {
                                                                Boolean v8_18 = v7_18.zzaxm;
                                                                Long v9_42 = 0;
                                                                int v11_49 = -1;
                                                                int v12_51 = -1;
                                                                while (v9_42 < v8_18.length) {
                                                                    if (!"value".equals(v8_18[v9_42].name)) {
                                                                        if ("currency".equals(v8_18[v9_42].name)) {
                                                                            v12_51 = v9_42;
                                                                        }
                                                                    } else {
                                                                        v11_49 = v9_42;
                                                                    }
                                                                    v9_42++;
                                                                }
                                                                if (v11_49 == -1) {
                                                                } else {
                                                                    if ((v8_18[v11_49].zzaxq != null) || (v8_18[v11_49].zzava != null)) {
                                                                        Long v9_51;
                                                                        if (v12_51 != -1) {
                                                                            Long v9_50 = v8_18[v12_51].zzamw;
                                                                            if (v9_50 == null) {
                                                                            } else {
                                                                                if (v9_50.length() == 3) {
                                                                                    int v12_53 = 0;
                                                                                    while (v12_53 < v9_50.length()) {
                                                                                        int v14_13 = v9_50.codePointAt(v12_53);
                                                                                        if (Character.isLetter(v14_13)) {
                                                                                            v12_53 += Character.charCount(v14_13);
                                                                                        } else {
                                                                                        }
                                                                                    }
                                                                                    v9_51 = 0;
                                                                                    if (v9_51 != null) {
                                                                                        this.zzadp.zzgt().zzjl().zzca("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                        v8_18 = com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(v8_18, v11_49), "_c"), 19, "currency");
                                                                                    }
                                                                                    v7_18.zzaxm = v8_18;
                                                                                    if (this.zzadp.zzgv().zze(v2_0.zzaut.zztt, com.google.android.gms.measurement.internal.zzag.zzall)) {
                                                                                        if (!"_e".equals(v7_18.name)) {
                                                                                            if (!"_vs".equals(v7_18.name)) {
                                                                                                if ((v4_7 != null) && ((v5_16 == null) && ("_e".equals(v7_18.name)))) {
                                                                                                    if (v7_18.zzaxm != null) {
                                                                                                        if (v7_18.zzaxm.length != 0) {
                                                                                                            this.zzjr();
                                                                                                            Boolean v8_49 = ((Long) com.google.android.gms.measurement.internal.zzfq.zzb(v7_18, "_et"));
                                                                                                            if (v8_49 != null) {
                                                                                                                v37_0 += v8_49.longValue();
                                                                                                                Long v9_72 = (v26_0 + 1);
                                                                                                                v3_8.zzaxu[v26_0] = v7_18;
                                                                                                                v26_1 = v9_72;
                                                                                                                v14_18 = v37_0;
                                                                                                                v9_73 = v39_0;
                                                                                                                v8_71 = (v25_0 + 1);
                                                                                                                v13_40 = v26_1;
                                                                                                                int v12 = 1;
                                                                                                            } else {
                                                                                                                this.zzadp.zzgt().zzjj().zzg("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                                                            }
                                                                                                        } else {
                                                                                                        }
                                                                                                    }
                                                                                                    this.zzadp.zzgt().zzjj().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                                                }
                                                                                            } else {
                                                                                                this.zzjr();
                                                                                                if (com.google.android.gms.measurement.internal.zzfq.zza(v7_18, "_et") != null) {
                                                                                                } else {
                                                                                                    if ((!v10_5) || ((Math.abs((v10_5.zzaxn.longValue() - v7_18.zzaxn.longValue())) > 1000) || (!this.zza(v10_5, v7_18)))) {
                                                                                                        v6_13 = v7_18;
                                                                                                    } else {
                                                                                                    }
                                                                                                }
                                                                                            }
                                                                                        } else {
                                                                                            this.zzjr();
                                                                                            if (com.google.android.gms.measurement.internal.zzfq.zza(v7_18, "_fr") != null) {
                                                                                            } else {
                                                                                                if ((v6_13 == 0) || ((Math.abs((v6_13.zzaxn.longValue() - v7_18.zzaxn.longValue())) > 1000) || (!this.zza(v7_18, v6_13)))) {
                                                                                                    v10_5 = v7_18;
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                        v6_13 = 0;
                                                                                        v10_5 = 0;
                                                                                    }
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v9_51 = 1;
                                                                        } else {
                                                                            v9_51 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzadp.zzgt().zzjl().zzca("Value must be specified with a numeric type.");
                                                                        v8_18 = com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(v8_18, v11_49), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            Boolean v8_65;
                                                            v25_0 = v8_71;
                                                            v26_1 = v13_40;
                                                            this.zzadp.zzgt().zzjj().zze("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt), this.zzadp.zzgq().zzbv(v7_18.name));
                                                            if (this.zzls().zzcn(v2_0.zzaut.zztt)) {
                                                                v8_65 = 1;
                                                            } else {
                                                                if (!this.zzls().zzco(v2_0.zzaut.zztt)) {
                                                                    v8_65 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v8_65 == null) && (!"_err".equals(v7_18.name))) {
                                                                this.zzadp.zzgr().zza(v2_0.zzaut.zztt, 11, "_ev", v7_18.name, 0);
                                                            }
                                                            v9_73 = v24_0;
                                                        }
                                                    }
                                                    int v13_4;
                                                    boolean v24_1 = v9_73;
                                                    String v26_2 = v13_40;
                                                    long v37_1 = v14_18;
                                                    if (v5_16 == null) {
                                                        v13_4 = v26_2;
                                                    } else {
                                                        v13_4 = v26_2;
                                                        int v14_5 = v37_1;
                                                        com.google.android.gms.measurement.internal.zzfk v5_0 = 0;
                                                        while (v5_0 < v13_4) {
                                                            long v6_3 = v3_8.zzaxu[v5_0];
                                                            if (!"_e".equals(v6_3.name)) {
                                                                if (v4_7 != null) {
                                                                    this.zzjr();
                                                                    long v6_4 = com.google.android.gms.measurement.internal.zzfq.zza(v6_3, "_et");
                                                                    if (v6_4 != 0) {
                                                                        long v6_5 = v6_4.zzaxq;
                                                                        if ((v6_5 != 0) && (v6_5.longValue() > 0)) {
                                                                            v14_5 += v6_5.longValue();
                                                                        }
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzjr();
                                                                if (com.google.android.gms.measurement.internal.zzfq.zza(v6_3, "_fr") == null) {
                                                                } else {
                                                                    System.arraycopy(v3_8.zzaxu, (v5_0 + 1), v3_8.zzaxu, v5_0, ((v13_4 - v5_0) - 1));
                                                                    v13_4--;
                                                                    v5_0--;
                                                                }
                                                            }
                                                            v5_0++;
                                                        }
                                                        v37_1 = v14_5;
                                                    }
                                                    if (v13_4 < v2_0.zzauv.size()) {
                                                        v3_8.zzaxu = ((com.google.android.gms.internal.measurement.zzgi[]) java.util.Arrays.copyOf(v3_8.zzaxu, v13_4));
                                                    }
                                                    if (v4_7 != null) {
                                                        String v4_12;
                                                        String v4_9 = this.zzjt().zzi(v3_8.zztt, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.measurement.internal.zzft;
                                                            v4_12(v3_8.zztt, "auto", "_lte", this.zzadp.zzbx().currentTimeMillis(), Long.valueOf(v37_1));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                com.google.android.gms.measurement.internal.zzfk v5_24 = new com.google.android.gms.measurement.internal.zzft;
                                                                v5_24(v3_8.zztt, "auto", "_lte", this.zzadp.zzbx().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v37_1)));
                                                                v4_12 = v5_24;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.measurement.internal.zzfk v5_27 = new com.google.android.gms.internal.measurement.zzgo();
                                                        v5_27.name = "_lte";
                                                        v5_27.zzazg = Long.valueOf(this.zzadp.zzbx().currentTimeMillis());
                                                        v5_27.zzaxq = ((Long) v4_12.value);
                                                        long v6_42 = 0;
                                                        while (v6_42 < v3_8.zzaxv.length) {
                                                            if (!"_lte".equals(v3_8.zzaxv[v6_42].name)) {
                                                                v6_42++;
                                                            } else {
                                                                v3_8.zzaxv[v6_42] = v5_27;
                                                                long v6_43 = 1;
                                                            }
                                                            if (v6_43 == 0) {
                                                                v3_8.zzaxv = ((com.google.android.gms.internal.measurement.zzgo[]) java.util.Arrays.copyOf(v3_8.zzaxv, (v3_8.zzaxv.length + 1)));
                                                                v3_8.zzaxv[(v2_0.zzaut.zzaxv.length - 1)] = v5_27;
                                                            }
                                                            if (v37_1 > 0) {
                                                                this.zzjt().zza(v4_12);
                                                                this.zzadp.zzgt().zzjn().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_43 = 0;
                                                    }
                                                    String v1_6;
                                                    android.database.sqlite.SQLiteException v50_1;
                                                    String v4_14 = v3_8.zztt;
                                                    com.google.android.gms.measurement.internal.zzfk v5_33 = v3_8.zzaxv;
                                                    long v6_49 = v3_8.zzaxu;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v4_14);
                                                    v3_8.zzaym = this.zzjs().zza(v4_14, v6_49, v5_33);
                                                    try {
                                                        if (!this.zzadp.zzgv().zzav(v2_0.zzaut.zztt)) {
                                                            v50_1 = v2_0;
                                                            v1_6 = v3_8;
                                                        } else {
                                                            String v4_20 = new java.util.HashMap();
                                                            com.google.android.gms.measurement.internal.zzfk v5_38 = new com.google.android.gms.internal.measurement.zzgi[v3_8.zzaxu.length];
                                                            long v6_1 = this.zzadp.zzgr().zzmk();
                                                            String v7_8 = v3_8.zzaxu;
                                                            Boolean v8_11 = v7_8.length;
                                                            Long v9_1 = 0;
                                                            boolean v10_0 = 0;
                                                            while (v9_1 < v8_11) {
                                                                boolean v43;
                                                                String v45;
                                                                Long v44;
                                                                long v42;
                                                                int v49;
                                                                android.database.sqlite.SQLiteException v50_0;
                                                                int v11_71 = v7_8[v9_1];
                                                                if (!v11_71.name.equals("_ep")) {
                                                                    com.google.android.gms.measurement.internal.zzaa v3_41;
                                                                    Boolean v46;
                                                                    int v12_70 = this.zzls().zzcm(v2_0.zzaut.zztt);
                                                                    v1_0.zzadp.zzgr();
                                                                    int v14_35 = com.google.android.gms.measurement.internal.zzfu.zzc(v11_71.zzaxn.longValue(), v12_70);
                                                                    v42 = v7_8;
                                                                    v43 = v8_11;
                                                                    Boolean v8_92 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v8_92 != null)) {
                                                                        v44 = v3_8;
                                                                        com.google.android.gms.measurement.internal.zzaa v3_29 = v11_71.zzaxm;
                                                                        v45 = v9_1;
                                                                        Long v9_98 = v3_29.length;
                                                                        v46 = v12_70;
                                                                        int v12_71 = 0;
                                                                        while (v12_71 < v9_98) {
                                                                            int v13_56 = v3_29[v12_71];
                                                                            if (!"_dbg".equals(v13_56.name)) {
                                                                                v12_71++;
                                                                            } else {
                                                                                if (((!(v8_92 instanceof Long)) || (!v8_92.equals(v13_56.zzaxq))) && (((!(v8_92 instanceof String)) || (!v8_92.equals(v13_56.zzamw))) && ((!(v8_92 instanceof Double)) || (!v8_92.equals(v13_56.zzava))))) {
                                                                                    break;
                                                                                }
                                                                                v3_41 = 1;
                                                                            }
                                                                        }
                                                                        v3_41 = 0;
                                                                    } else {
                                                                        v44 = v3_8;
                                                                        v45 = v9_1;
                                                                        v46 = v12_70;
                                                                    }
                                                                    int v12_72;
                                                                    if (v3_41 != null) {
                                                                        v12_72 = 1;
                                                                    } else {
                                                                        v12_72 = this.zzls().zzq(v2_0.zzaut.zztt, v11_71.name);
                                                                    }
                                                                    if (v12_72 > 0) {
                                                                        com.google.android.gms.measurement.internal.zzaa v3_1 = ((com.google.android.gms.measurement.internal.zzaa) v4_20.get(v11_71.name));
                                                                        if (v3_1 == null) {
                                                                            v3_1 = this.zzjt().zzg(v2_0.zzaut.zztt, v11_71.name);
                                                                            if (v3_1 == null) {
                                                                                v1_0.zzadp.zzgt().zzjj().zze("Event being bundled has no eventAggregate. appId, eventName", v2_0.zzaut.zztt, v11_71.name);
                                                                                v3_1 = new com.google.android.gms.measurement.internal.zzaa;
                                                                                v3_1(v2_0.zzaut.zztt, v11_71.name, 1, 1, v11_71.zzaxn.longValue(), 0, 0, 0, 0, 0);
                                                                            }
                                                                        }
                                                                        Boolean v8_98;
                                                                        this.zzjr();
                                                                        String v7_77 = ((Long) com.google.android.gms.measurement.internal.zzfq.zzb(v11_71, "_eid"));
                                                                        if (v7_77 == null) {
                                                                            v8_98 = 0;
                                                                        } else {
                                                                            v8_98 = 1;
                                                                        }
                                                                        Boolean v8_99 = Boolean.valueOf(v8_98);
                                                                        if (v12_72 != 1) {
                                                                            if (v6_1.nextInt(v12_72) != 0) {
                                                                                v49 = v6_1;
                                                                                String v51;
                                                                                String v1_20;
                                                                                if (!v1_0.zzadp.zzgv().zzbh(v2_0.zzaut.zztt)) {
                                                                                    v50_0 = v2_0;
                                                                                    v51 = v7_77;
                                                                                    if (Math.abs((v11_71.zzaxn.longValue() - v3_1.zzaik)) < 86400000) {
                                                                                        v1_20 = 0;
                                                                                    } else {
                                                                                        v1_20 = 1;
                                                                                    }
                                                                                } else {
                                                                                    long v18_6;
                                                                                    if (v3_1.zzail == null) {
                                                                                        v1_0.zzadp.zzgr();
                                                                                        v50_0 = v2_0;
                                                                                        v51 = v7_77;
                                                                                        v18_6 = com.google.android.gms.measurement.internal.zzfu.zzc(v11_71.zzaxo.longValue(), v46);
                                                                                    } else {
                                                                                        v18_6 = v3_1.zzail.longValue();
                                                                                        v50_0 = v2_0;
                                                                                        v51 = v7_77;
                                                                                    }
                                                                                    if (v18_6 == v14_35) {
                                                                                    }
                                                                                }
                                                                                if (v1_20 == null) {
                                                                                    if (v8_99.booleanValue()) {
                                                                                        v4_20.put(v11_71.name, v3_1.zza(v51, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzjr();
                                                                                    v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_efs", Long.valueOf(1));
                                                                                    this.zzjr();
                                                                                    long v6_96 = ((long) v12_72);
                                                                                    v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_sr", Long.valueOf(v6_96));
                                                                                    String v1_27 = (v10_0 + 1);
                                                                                    v5_38[v10_0] = v11_71;
                                                                                    if (v8_99.booleanValue()) {
                                                                                        v3_1 = v3_1.zza(0, Long.valueOf(v6_96), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_20.put(v11_71.name, v3_1.zza(v11_71.zzaxn.longValue(), v14_35));
                                                                                    v10_0 = v1_27;
                                                                                }
                                                                            } else {
                                                                                this.zzjr();
                                                                                int v12_73 = ((long) v12_72);
                                                                                v49 = v6_1;
                                                                                v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_sr", Long.valueOf(v12_73));
                                                                                long v6_0 = (v10_0 + 1);
                                                                                v5_38[v10_0] = v11_71;
                                                                                if (v8_99.booleanValue()) {
                                                                                    v3_1 = v3_1.zza(0, Long.valueOf(v12_73), 0);
                                                                                }
                                                                                v4_20.put(v11_71.name, v3_1.zza(v11_71.zzaxn.longValue(), v14_35));
                                                                                v50_0 = v2_0;
                                                                                v10_0 = v6_0;
                                                                            }
                                                                        } else {
                                                                            String v7_4 = (v10_0 + 1);
                                                                            v5_38[v10_0] = v11_71;
                                                                            if ((v8_99.booleanValue()) && ((v3_1.zzaim != null) || ((v3_1.zzain != null) || (v3_1.zzaio != null)))) {
                                                                                v4_20.put(v11_71.name, v3_1.zza(0, 0, 0));
                                                                            }
                                                                            v50_0 = v2_0;
                                                                            v49 = v6_1;
                                                                            v10_0 = v7_4;
                                                                        }
                                                                    } else {
                                                                        v1_0.zzadp.zzgt().zzjj().zze("Sample rate must be positive. event, rate", v11_71.name, Integer.valueOf(v12_72));
                                                                        com.google.android.gms.measurement.internal.zzaa v3_7 = (v10_0 + 1);
                                                                        v5_38[v10_0] = v11_71;
                                                                        v50_0 = v2_0;
                                                                        v10_0 = v3_7;
                                                                        v49 = v6_1;
                                                                    }
                                                                } else {
                                                                    this.zzjr();
                                                                    int v12_2 = ((String) com.google.android.gms.measurement.internal.zzfq.zzb(v11_71, "_en"));
                                                                    int v13_1 = ((com.google.android.gms.measurement.internal.zzaa) v4_20.get(v12_2));
                                                                    if (v13_1 == 0) {
                                                                        v13_1 = this.zzjt().zzg(v2_0.zzaut.zztt, v12_2);
                                                                        v4_20.put(v12_2, v13_1);
                                                                    }
                                                                    if (v13_1.zzaim != null) {
                                                                        v50_0 = v2_0;
                                                                        v44 = v3_8;
                                                                        v49 = v6_1;
                                                                        v42 = v7_8;
                                                                        v43 = v8_11;
                                                                        v45 = v9_1;
                                                                    } else {
                                                                        if (v13_1.zzain.longValue() > 1) {
                                                                            this.zzjr();
                                                                            v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_sr", v13_1.zzain);
                                                                        }
                                                                        if ((v13_1.zzaio != null) && (v13_1.zzaio.booleanValue())) {
                                                                            this.zzjr();
                                                                            v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_efs", Long.valueOf(1));
                                                                        }
                                                                        int v12_13 = (v10_0 + 1);
                                                                        v5_38[v10_0] = v11_71;
                                                                        v50_0 = v2_0;
                                                                        v44 = v3_8;
                                                                        v49 = v6_1;
                                                                        v42 = v7_8;
                                                                        v43 = v8_11;
                                                                        v45 = v9_1;
                                                                        v10_0 = v12_13;
                                                                    }
                                                                }
                                                                v9_1 = (v45 + 1);
                                                                v7_8 = v42;
                                                                v8_11 = v43;
                                                                v3_8 = v44;
                                                                v6_1 = v49;
                                                                v2_0 = v50_0;
                                                                v1_0 = this;
                                                            }
                                                            v50_1 = v2_0;
                                                            v1_6 = v3_8;
                                                            if (v10_0 < v1_6.zzaxu.length) {
                                                                v1_6.zzaxu = ((com.google.android.gms.internal.measurement.zzgi[]) java.util.Arrays.copyOf(v5_38, v10_0));
                                                            }
                                                            int v2_9 = v4_20.entrySet().iterator();
                                                            while (v2_9.hasNext()) {
                                                                this.zzjt().zza(((com.google.android.gms.measurement.internal.zzaa) ((java.util.Map$Entry) v2_9.next()).getValue()));
                                                            }
                                                        }
                                                        try {
                                                            v1_6.zzaxx = Long.valueOf(nan);
                                                            v1_6.zzaxy = Long.valueOf(-0.0);
                                                            int v2_14 = 0;
                                                        } catch (android.database.sqlite.SQLiteException v0_5) {
                                                            String v1_1 = v0_5;
                                                            this.zzjt().endTransaction();
                                                            throw v1_1;
                                                        }
                                                        while (v2_14 < v1_6.zzaxu.length) {
                                                            com.google.android.gms.measurement.internal.zzaa v3_23 = v1_6.zzaxu[v2_14];
                                                            if (v3_23.zzaxn.longValue() < v1_6.zzaxx.longValue()) {
                                                                v1_6.zzaxx = v3_23.zzaxn;
                                                            }
                                                            if (v3_23.zzaxn.longValue() > v1_6.zzaxy.longValue()) {
                                                                v1_6.zzaxy = v3_23.zzaxn;
                                                            }
                                                            v2_14++;
                                                        }
                                                        int v2_15 = v50_1;
                                                        com.google.android.gms.measurement.internal.zzfk v5_39;
                                                        com.google.android.gms.measurement.internal.zzaa v3_20 = v2_15.zzaut.zztt;
                                                        String v4_22 = this.zzjt().zzbo(v3_20);
                                                        if (v4_22 != null) {
                                                            v5_39 = this;
                                                            if (v1_6.zzaxu.length > 0) {
                                                                Boolean v8_86;
                                                                long v6_54 = v4_22.zzhe();
                                                                if (v6_54 == 0) {
                                                                    v8_86 = 0;
                                                                } else {
                                                                    v8_86 = Long.valueOf(v6_54);
                                                                }
                                                                v1_6.zzaya = v8_86;
                                                                Boolean v8_87 = v4_22.zzhd();
                                                                if (v8_87 != 0) {
                                                                    v6_54 = v8_87;
                                                                } else {
                                                                }
                                                                long v6_55;
                                                                if (v6_54 == 0) {
                                                                    v6_55 = 0;
                                                                } else {
                                                                    v6_55 = Long.valueOf(v6_54);
                                                                }
                                                                v1_6.zzaxz = v6_55;
                                                                v4_22.zzhm();
                                                                v1_6.zzayk = Integer.valueOf(((int) v4_22.zzhj()));
                                                                v4_22.zzs(v1_6.zzaxx.longValue());
                                                                v4_22.zzt(v1_6.zzaxy.longValue());
                                                                v1_6.zzagy = v4_22.zzhu();
                                                                this.zzjt().zza(v4_22);
                                                            }
                                                        } else {
                                                            v5_39 = this;
                                                            this.zzadp.zzgt().zzjg().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_15.zzaut.zztt));
                                                        }
                                                        if (v1_6.zzaxu.length > 0) {
                                                            v5_39.zzadp.zzgw();
                                                            String v4_30 = this.zzls().zzci(v2_15.zzaut.zztt);
                                                            if (v4_30 == null) {
                                                                if (!android.text.TextUtils.isEmpty(v2_15.zzaut.zzafx)) {
                                                                    v5_39.zzadp.zzgt().zzjj().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_15.zzaut.zztt));
                                                                } else {
                                                                    v1_6.zzayr = Long.valueOf(-1);
                                                                }
                                                            } else {
                                                                if (v4_30.zzawx != null) {
                                                                    v1_6.zzayr = v4_30.zzawx;
                                                                } else {
                                                                }
                                                            }
                                                            this.zzjt().zza(v1_6, v24_1);
                                                        }
                                                        String v1_7 = this.zzjt();
                                                        int v2_16 = v2_15.zzauu;
                                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_16);
                                                        v1_7.zzaf();
                                                        v1_7.zzcl();
                                                        String v4_41 = new StringBuilder("rowid in (");
                                                        long v6_72 = 0;
                                                        while (v6_72 < v2_16.size()) {
                                                            if (v6_72 != 0) {
                                                                v4_41.append(",");
                                                            }
                                                            v4_41.append(((Long) v2_16.get(v6_72)).longValue());
                                                            v6_72++;
                                                        }
                                                        v4_41.append(")");
                                                        String v4_43 = v1_7.getWritableDatabase().delete("raw_events", v4_41.toString(), 0);
                                                        if (v4_43 != v2_16.size()) {
                                                            v1_7.zzgt().zzjg().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v4_43), Integer.valueOf(v2_16.size()));
                                                        }
                                                        String v1_10 = this.zzjt();
                                                        int v2_19 = v1_10.getWritableDatabase();
                                                        try {
                                                            long v6_78 = new String[2];
                                                            v6_78[0] = v3_20;
                                                            v6_78[1] = v3_20;
                                                            v2_19.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_78);
                                                        } catch (android.database.sqlite.SQLiteException v0_7) {
                                                            v1_10.zzgt().zzjg().zze("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_20), v0_7);
                                                        }
                                                        this.zzjt().setTransactionSuccessful();
                                                        this.zzjt().endTransaction();
                                                        return 1;
                                                    } catch (android.database.sqlite.SQLiteException v0_3) {
                                                        v1_1 = v0_3;
                                                    }
                                                }
                                            } else {
                                                v8_7.close();
                                            }
                                        }
                                        if (v8_7.moveToNext()) {
                                            v4_53.zzgt().zzjj().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9));
                                        }
                                        int v17_3;
                                        int v16_4;
                                        v8_7.close();
                                        v2_0.zzb(v13_34);
                                        if (v5_40 == -1) {
                                            long v6_16 = new String[2];
                                            v6_16[0] = v3_9;
                                            v6_16[1] = v7_3;
                                            v16_4 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_3 = v6_16;
                                        } else {
                                            int v14_24 = new String[3];
                                            v14_24[0] = v3_9;
                                            v14_24[1] = v7_3;
                                            v14_24[2] = String.valueOf(v5_40);
                                            v16_4 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_3 = v14_24;
                                        }
                                        boolean v15_9 = new String[4];
                                        v15_9[0] = "rowid";
                                        v15_9[1] = "name";
                                        v15_9[2] = "timestamp";
                                        v15_9[3] = "data";
                                        com.google.android.gms.measurement.internal.zzfk v5_9 = v23.query("raw_events", v15_9, v16_4, v17_3, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_9.moveToFirst()) {
                                                v4_53.zzgt().zzjj().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9));
                                                if (v5_9 == null) {
                                                } else {
                                                    v5_9.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v8_7 = v5_9;
                                            String v1_2 = v0_1;
                                            if (v8_7 != null) {
                                                v8_7.close();
                                            }
                                            throw v1_2;
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            v7_3 = v3_9;
                                            v8_7 = v5_9;
                                        }
                                        do {
                                            long v6_19 = v5_9.getLong(0);
                                            Long v9_92 = v5_9.getBlob(3);
                                            Boolean v8_74 = com.google.android.gms.internal.measurement.zzzi.zzj(v9_92, 0, v9_92.length);
                                            Long v9_94 = new com.google.android.gms.internal.measurement.zzgi();
                                            v9_94.zza(v8_74);
                                            v9_94.name = v5_9.getString(1);
                                            v9_94.zzaxn = Long.valueOf(v5_9.getLong(2));
                                            if (v2_0.zza(v6_19, v9_94)) {
                                            } else {
                                                if (v5_9 == null) {
                                                } else {
                                                    v5_9.close();
                                                }
                                            }
                                        } while(v5_9.moveToNext());
                                        if (v5_9 == null) {
                                        } else {
                                            v5_9.close();
                                        }
                                    } else {
                                        v4_53.zzgt().zzjg().zzg("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9));
                                        if (v8_7 == null) {
                                        } else {
                                            v8_7.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v7_3 = v3_9;
                                }
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v8_7 = v22;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v7_3 = v3_9;
                                v8_7 = v22;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    } else {
                        try {
                            int v13_52;
                            if (v5_40 == -1) {
                                v13_52 = new String[1];
                                v13_52[0] = String.valueOf(p54);
                            } else {
                                v13_52 = new String[2];
                                v13_52[0] = String.valueOf(v5_40);
                                v13_52[1] = String.valueOf(p54);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                            v7_3 = 0;
                            v8_7 = 0;
                        }
                        int v14_36;
                        if (v5_40 == -1) {
                            v14_36 = "";
                        } else {
                            v14_36 = "rowid <= ? and ";
                        }
                        com.google.android.gms.measurement.internal.zzaa v3_50 = new StringBuilder((String.valueOf(v14_36).length() + 148));
                        v3_50.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_50.append(v14_36);
                        v3_50.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_9 = v15_7.rawQuery(v3_50.toString(), v13_52);
                        if (v3_9.moveToFirst()) {
                            String v7_7 = v3_9.getString(0);
                            try {
                                int v13_5 = v3_9.getString(1);
                                v3_9.close();
                                v22 = v3_9;
                                v3_9 = v7_7;
                                v7_3 = v13_5;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v8_7 = v3_9;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v8_7 = v3_9;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v8_7 = v3_9;
                    v7_3 = 0;
                }
                com.google.android.gms.measurement.internal.zzaa v3_0 = v0_2;
                v4_53.zzgt().zzjg().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v7_3), v3_0);
                if (v8_7 == null) {
                } else {
                    v8_7.close();
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v8_7 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v3_0 = v0_0;
                v7_3 = 0;
                v8_7 = 0;
            } catch (android.database.sqlite.SQLiteException v0_1) {
            }
        } catch (android.database.sqlite.SQLiteException v0_5) {
        }
    }

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


    private final void zzd(com.google.android.gms.measurement.internal.zzae p26, com.google.android.gms.measurement.internal.zzi p27)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p27);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p27.packageName);
        String v4_32 = System.nanoTime();
        void v25_1 = this.zzaf();
        v25_1.zzlx();
        int v15_0 = p27.packageName;
        if (v25_1.zzjr().zze(p26, p27)) {
            if (p27.zzagg) {
                int v14_0 = 0;
                if (!v25_1.zzls().zzo(v15_0, p26.name)) {
                    if (this.zzadp.zzgt().isLoggable(2)) {
                        this.zzadp.zzgt().zzjo().zzg("Logging event", this.zzadp.zzgq().zzb(p26));
                    }
                    v25_1.zzjt().beginTransaction();
                    try {
                        this.zzg(p27);
                    } catch (boolean v0_141) {
                        v25_1.zzjt().endTransaction();
                        throw v0_141;
                    }
                    if (("_iap".equals(p26.name)) || ("ecommerce_purchase".equals(p26.name))) {
                        boolean v0_3;
                        long v6_1;
                        boolean v0_100 = p26.zzaig.getString("currency");
                        if (!"ecommerce_purchase".equals(p26.name)) {
                            v6_1 = p26.zzaig.getLong("value").longValue();
                            if (!android.text.TextUtils.isEmpty(v0_100)) {
                                boolean v0_4 = v0_100.toUpperCase(java.util.Locale.US);
                                if (v0_4.matches("[A-Z]{3}")) {
                                    boolean v0_8;
                                    long v8_6 = String.valueOf("_ltv_");
                                    boolean v0_6 = String.valueOf(v0_4);
                                    if (v0_6.length() == 0) {
                                        v0_8 = new String(v8_6);
                                    } else {
                                        v0_8 = v8_6.concat(v0_6);
                                    }
                                    int v9_2 = v0_8;
                                    boolean v0_14;
                                    boolean v0_11 = v25_1.zzjt().zzi(v15_0, v9_2);
                                    if (!v0_11) {
                                        long v8_10 = v25_1.zzjt();
                                        boolean v0_19 = (this.zzadp.zzgv().zzb(v15_0, com.google.android.gms.measurement.internal.zzag.zzakk) - 1);
                                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v15_0);
                                        v8_10.zzaf();
                                        v8_10.zzcl();
                                        try {
                                            long v10_4 = v8_10.getWritableDatabase();
                                            Long v12_4 = new String[3];
                                            v12_4[0] = v15_0;
                                            v12_4[1] = v15_0;
                                            v12_4[2] = String.valueOf(v0_19);
                                            v10_4.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);", v12_4);
                                        } catch (boolean v0_21) {
                                            v8_10.zzgt().zzjg().zze("Error pruning currencies. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v15_0), v0_21);
                                        }
                                        v0_14 = new com.google.android.gms.measurement.internal.zzft;
                                        v0_14(v15_0, p26.origin, v9_2, this.zzadp.zzbx().currentTimeMillis(), Long.valueOf(v6_1));
                                    } else {
                                        if ((v0_11.value instanceof Long)) {
                                            v0_14 = new com.google.android.gms.measurement.internal.zzft;
                                            v0_14(v15_0, p26.origin, v9_2, this.zzadp.zzbx().currentTimeMillis(), Long.valueOf((((Long) v0_11.value).longValue() + v6_1)));
                                        } else {
                                        }
                                    }
                                    if (!v25_1.zzjt().zza(v0_14)) {
                                        this.zzadp.zzgt().zzjg().zzd("Too many unique user properties are set. Ignoring user property. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v15_0), this.zzadp.zzgq().zzbx(v0_14.name), v0_14.value);
                                        this.zzadp.zzgr().zza(v15_0, 9, 0, 0, 0);
                                    }
                                }
                            }
                            v0_3 = 1;
                        } else {
                            long v6_91 = (p26.zzaig.zzbt("value").doubleValue() * 1000000.0);
                            if (v6_91 == 0) {
                                long v6_103 = ((double) p26.zzaig.getLong("value").longValue());
                                Double.isNaN(v6_103);
                                v6_91 = (v6_103 * 1000000.0);
                            }
                            if ((v6_91 > 9.223372036854776e+18) || (v6_91 < -9.223372036854776e+18)) {
                                this.zzadp.zzgt().zzjj().zze("Data lost. Currency value is too big. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v15_0), Double.valueOf(v6_91));
                                v0_3 = 0;
                            } else {
                                v6_1 = Math.round(v6_91);
                            }
                        }
                        if (!v0_3) {
                            v25_1.zzjt().setTransactionSuccessful();
                            v25_1.zzjt().endTransaction();
                            return;
                        }
                    }
                    boolean v0_27 = com.google.android.gms.measurement.internal.zzfu.zzcv(p26.name);
                    int v16_1 = "_err".equals(p26.name);
                    Object v22 = v4_32;
                    long v5_0 = v25_1.zzjt().zza(v25_1.zzly(), v15_0, 1, v0_27, 0, v16_1, 0);
                    long v6_14 = (v5_0.zzahu - ((long) ((Integer) com.google.android.gms.measurement.internal.zzag.zzajq.get()).intValue()));
                    if (v6_14 <= 0) {
                        if (v0_27) {
                            com.google.android.gms.measurement.internal.zzs v24 = v5_0;
                            long v6_16 = (v5_0.zzaht - ((long) ((Integer) com.google.android.gms.measurement.internal.zzag.zzajs.get()).intValue()));
                            if (v6_16 <= 0) {
                                v5_0 = v24;
                            } else {
                                if ((v6_16 % 1000) == 1) {
                                    this.zzadp.zzgt().zzjg().zze("Data loss. Too many public events logged. appId, count", com.google.android.gms.measurement.internal.zzaq.zzby(v15_0), Long.valueOf(v24.zzaht));
                                }
                                this.zzadp.zzgr().zza(v15_0, 16, "_ev", p26.name, 0);
                                v25_1.zzjt().setTransactionSuccessful();
                                v25_1.zzjt().endTransaction();
                                return;
                            }
                        }
                        if (v16_1 != 0) {
                            long v6_18 = (v5_0.zzahw - ((long) Math.max(0, Math.min(1000000, this.zzadp.zzgv().zzb(p27.packageName, com.google.android.gms.measurement.internal.zzag.zzajr)))));
                            if (v6_18 > 0) {
                                if (v6_18 == 1) {
                                    this.zzadp.zzgt().zzjg().zze("Too many error events logged. appId, count", com.google.android.gms.measurement.internal.zzaq.zzby(v15_0), Long.valueOf(v5_0.zzahw));
                                }
                                v25_1.zzjt().setTransactionSuccessful();
                                v25_1.zzjt().endTransaction();
                                return;
                            }
                        }
                        String v4_9 = p26.zzaig.zziy();
                        this.zzadp.zzgr().zza(v4_9, "_o", p26.origin);
                        if (this.zzadp.zzgr().zzdb(v15_0)) {
                            this.zzadp.zzgr().zza(v4_9, "_dbg", Long.valueOf(1));
                            this.zzadp.zzgr().zza(v4_9, "_r", Long.valueOf(1));
                        }
                        if ((this.zzadp.zzgv().zzbj(p27.packageName)) && ("_s".equals(p26.name))) {
                            long v5_16 = v25_1.zzjt().zzi(p27.packageName, "_sno");
                            if ((v5_16 != 0) && ((v5_16.value instanceof Long))) {
                                this.zzadp.zzgr().zza(v4_9, "_sno", v5_16.value);
                            }
                        }
                        long v5_19 = v25_1.zzjt().zzbp(v15_0);
                        if (v5_19 > 0) {
                            this.zzadp.zzgt().zzjj().zze("Data lost. Too many events stored on disk, deleted. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v15_0), Long.valueOf(v5_19));
                        }
                        boolean v0_36;
                        long v5_21 = new com.google.android.gms.measurement.internal.zzz;
                        long v2_2 = v15_0;
                        v5_21(this.zzadp, p26.origin, v15_0, p26.name, p26.zzais, 0, v4_9);
                        String v4_11 = v25_1.zzjt().zzg(v2_2, v5_21.name);
                        if (v4_11 != null) {
                            v5_21 = v5_21.zza(this.zzadp, v4_11.zzaij);
                            v0_36 = v4_11.zzai(v5_21.timestamp);
                        } else {
                            if ((v25_1.zzjt().zzbs(v2_2) < 500) || (!v0_27)) {
                                v0_36 = new com.google.android.gms.measurement.internal.zzaa;
                                v0_36(v2_2, v5_21.name, 0, 0, v5_21.timestamp, 0, 0, 0, 0, 0);
                            } else {
                                this.zzadp.zzgt().zzjg().zzd("Too many event names used, ignoring event. appId, name, supported count", com.google.android.gms.measurement.internal.zzaq.zzby(v2_2), this.zzadp.zzgq().zzbv(v5_21.name), Integer.valueOf(500));
                                this.zzadp.zzgr().zza(v2_2, 8, 0, 0, 0);
                                v25_1.zzjt().endTransaction();
                                return;
                            }
                        }
                        boolean v0_48;
                        v25_1.zzjt().zza(v0_36);
                        v25_1 = v25_1.zzaf();
                        v25_1.zzlx();
                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v5_21);
                        com.google.android.gms.common.internal.Preconditions.checkNotNull(p27);
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v5_21.zztt);
                        com.google.android.gms.common.internal.Preconditions.checkArgument(v5_21.zztt.equals(p27.packageName));
                        long v2_6 = new com.google.android.gms.internal.measurement.zzgl();
                        v2_6.zzaxt = Integer.valueOf(1);
                        v2_6.zzayb = "android";
                        v2_6.zztt = p27.packageName;
                        v2_6.zzage = p27.zzage;
                        v2_6.zzts = p27.zzts;
                        if (p27.zzagd != -2147483648) {
                            v0_48 = Integer.valueOf(((int) p27.zzagd));
                        } else {
                            v0_48 = 0;
                        }
                        boolean v0_53;
                        v2_6.zzayn = v0_48;
                        v2_6.zzayf = Long.valueOf(p27.zzadt);
                        v2_6.zzafx = p27.zzafx;
                        v2_6.zzaxc = p27.zzagk;
                        if (p27.zzagf != 0) {
                            v0_53 = Long.valueOf(p27.zzagf);
                        } else {
                            v0_53 = 0;
                        }
                        v2_6.zzayj = v0_53;
                        if (this.zzadp.zzgv().zze(p27.packageName, com.google.android.gms.measurement.internal.zzag.zzalq)) {
                            v2_6.zzayx = v25_1.zzjr().zzmi();
                        }
                        boolean v0_62 = this.zzadp.zzgu().zzcb(p27.packageName);
                        if ((!v0_62) || (android.text.TextUtils.isEmpty(((CharSequence) v0_62.first)))) {
                            if ((!this.zzadp.zzgp().zzl(this.zzadp.getContext())) && (p27.zzagj)) {
                                boolean v0_71 = android.provider.Settings$Secure.getString(this.zzadp.getContext().getContentResolver(), "android_id");
                                if (v0_71) {
                                    if (v0_71.isEmpty()) {
                                        this.zzadp.zzgt().zzjj().zzg("empty secure ID. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_6.zztt));
                                    }
                                } else {
                                    this.zzadp.zzgt().zzjj().zzg("null secure ID. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_6.zztt));
                                    v0_71 = "null";
                                }
                                v2_6.zzayq = v0_71;
                            }
                        } else {
                            if (p27.zzagi) {
                                v2_6.zzayh = ((String) v0_62.first);
                                v2_6.zzayi = ((Boolean) v0_62.second);
                            }
                        }
                        this.zzadp.zzgp().zzcl();
                        v2_6.zzayd = android.os.Build.MODEL;
                        this.zzadp.zzgp().zzcl();
                        v2_6.zzayc = android.os.Build$VERSION.RELEASE;
                        v2_6.zzaye = Integer.valueOf(((int) this.zzadp.zzgp().zziw()));
                        v2_6.zzaid = this.zzadp.zzgp().zzix();
                        v2_6.zzayg = 0;
                        v2_6.zzaxw = 0;
                        v2_6.zzaxx = 0;
                        v2_6.zzaxy = 0;
                        v2_6.zzays = Long.valueOf(p27.zzagh);
                        if ((this.zzadp.isEnabled()) && (com.google.android.gms.measurement.internal.zzo.zzie())) {
                            v2_6.zzayt = 0;
                        }
                        boolean v0_98 = v25_1.zzjt().zzbo(p27.packageName);
                        if (!v0_98) {
                            v0_98 = new com.google.android.gms.measurement.internal.zzg(this.zzadp, p27.packageName);
                            v0_98.zzal(this.zzadp.zzgr().zzmm());
                            v0_98.zzap(p27.zzafz);
                            v0_98.zzam(p27.zzafx);
                            v0_98.zzao(this.zzadp.zzgu().zzcc(p27.packageName));
                            v0_98.zzx(0);
                            v0_98.zzs(0);
                            v0_98.zzt(0);
                            v0_98.setAppVersion(p27.zzts);
                            v0_98.zzu(p27.zzagd);
                            v0_98.zzaq(p27.zzage);
                            v0_98.zzv(p27.zzadt);
                            v0_98.zzw(p27.zzagf);
                            v0_98.setMeasurementEnabled(p27.zzagg);
                            v0_98.zzag(p27.zzagh);
                            v25_1.zzjt().zza(v0_98);
                        }
                        v2_6.zzafw = v0_98.getAppInstanceId();
                        v2_6.zzafz = v0_98.getFirebaseInstanceId();
                        boolean v0_103 = v25_1.zzjt().zzbn(p27.packageName);
                        Long v3_4 = new com.google.android.gms.internal.measurement.zzgo[v0_103.size()];
                        v2_6.zzaxv = v3_4;
                        Long v3_5 = 0;
                        while (v3_5 < v0_103.size()) {
                            String v4_34 = new com.google.android.gms.internal.measurement.zzgo();
                            v2_6.zzaxv[v3_5] = v4_34;
                            v4_34.name = ((com.google.android.gms.measurement.internal.zzft) v0_103.get(v3_5)).name;
                            v4_34.zzazg = Long.valueOf(((com.google.android.gms.measurement.internal.zzft) v0_103.get(v3_5)).zzaux);
                            v25_1.zzjr().zza(v4_34, ((com.google.android.gms.measurement.internal.zzft) v0_103.get(v3_5)).value);
                            v3_5++;
                        }
                        Long v3_6 = v25_1.zzjt().zza(v2_6);
                        long v2_18;
                        boolean v0_106 = v25_1.zzjt();
                        if (v5_21.zzaig == null) {
                            v2_18 = 0;
                        } else {
                            long v2_11 = v5_21.zzaig.iterator();
                            while (v2_11.hasNext()) {
                                if ("_r".equals(((String) v2_11.next()))) {
                                }
                                v2_18 = 1;
                            }
                            long v2_13 = v25_1.zzls().zzp(v5_21.zztt, v5_21.name);
                            com.google.android.gms.measurement.internal.zzs vtmp242 = v25_1.zzjt().zza(v25_1.zzly(), v5_21.zztt, 0, 0, 0, 0, 0);
                            if ((v2_13 == 0) || (vtmp242.zzahx >= ((long) this.zzadp.zzgv().zzas(v5_21.zztt)))) {
                            } else {
                            }
                        }
                        if (!v0_106.zza(v5_21, v3_6, v2_18)) {
                            v25_1.zzjt().setTransactionSuccessful();
                            if (this.zzadp.zzgt().isLoggable(2)) {
                                this.zzadp.zzgt().zzjo().zzg("Event recorded", this.zzadp.zzgq().zza(v5_21));
                            }
                            v25_1.zzjt().endTransaction();
                            v25_1.zzmb();
                            this.zzadp.zzgt().zzjo().zzg("Background event processing time, ms", Long.valueOf((((System.nanoTime() - v22) + 500000) / 1000000)));
                            return;
                        } else {
                            this.zzaue = 0;
                        }
                    } else {
                        if ((v6_14 % 1000) == 1) {
                            this.zzadp.zzgt().zzjg().zze("Data loss. Too many events logged. appId, count", com.google.android.gms.measurement.internal.zzaq.zzby(v15_0), Long.valueOf(v5_0.zzahu));
                        }
                        v25_1.zzjt().setTransactionSuccessful();
                        v25_1.zzjt().endTransaction();
                        return;
                    }
                } else {
                    this.zzadp.zzgt().zzjj().zze("Dropping blacklisted event. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v15_0), this.zzadp.zzgq().zzbv(p26.name));
                    if ((v25_1.zzls().zzcn(v15_0)) || (v25_1.zzls().zzco(v15_0))) {
                        v14_0 = 1;
                    }
                    if ((v14_0 == 0) && (!"_err".equals(p26.name))) {
                        this.zzadp.zzgr().zza(v15_0, 11, "_ev", p26.name, 0);
                    }
                    if (v14_0 != 0) {
                        boolean v0_157 = v25_1.zzjt().zzbo(v15_0);
                        if ((v0_157) && (Math.abs((this.zzadp.zzbx().currentTimeMillis() - Math.max(v0_157.zzhl(), v0_157.zzhk()))) > ((Long) com.google.android.gms.measurement.internal.zzag.zzakf.get()).longValue())) {
                            this.zzadp.zzgt().zzjn().zzca("Fetching config for blacklisted app");
                            this.zzb(v0_157);
                        }
                    }
                    return;
                }
            } else {
                this.zzg(p27);
                return;
            }
        } else {
            return;
        }
    }

Method com.google.firebase.database.android.SqlPersistenceStorageEngine$PersistentCacheOpenHelper.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


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

Method com.google.firebase.database.android.SqlPersistenceStorageEngine$PersistentCacheOpenHelper.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


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

Method com.google.firebase.database.android.SqlPersistenceStorageEngine$PersistentCacheOpenHelper.dropTable() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void dropTable(android.database.sqlite.SQLiteDatabase p3, String p4)
    {
        StringBuilder v0_1 = new StringBuilder();
        v0_1.append("DROP TABLE IF EXISTS ");
        v0_1.append(p4);
        p3.execSQL(v0_1.toString());
        return;
    }

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


    static void zza(com.google.android.gms.measurement.internal.zzaq 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.measurement.internal.zzv.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.measurement.internal.zzv.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.zzjj().zze("Table has extra columns. table, columns", p7, android.text.TextUtils.join(", ", v8_2));
                    }
                    return;
                }
            } catch (com.google.android.gms.measurement.internal.zzas v6_8) {
                p5.zzjg().zzg("Failed to verify columns on table that was just created", p7);
                throw v6_8;
            }
        }
    }

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


    public final int zzk(String p7, String p8)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p7);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p8);
        this.zzaf();
        this.zzcl();
        try {
            android.database.sqlite.SQLiteException v1_2 = this.getWritableDatabase();
            com.google.android.gms.measurement.internal.zzao 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.zzgt().zzjg().zzd("Error deleting conditional property", com.google.android.gms.measurement.internal.zzaq.zzby(p7), this.zzgq().zzbx(p8), v1_1);
            return 0;
        }
    }

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


    final void zzij()
    {
        this.zzaf();
        this.zzcl();
        if (this.zzip()) {
            Integer v0_11 = this.zzgu().zzano.get();
            String v2_1 = this.zzbx().elapsedRealtime();
            if (Math.abs((v2_1 - v0_11)) > ((Long) com.google.android.gms.measurement.internal.zzag.zzake.get()).longValue()) {
                this.zzgu().zzano.set(v2_1);
                this.zzaf();
                this.zzcl();
                if (this.zzip()) {
                    Integer v0_6 = this.getWritableDatabase();
                    com.google.android.gms.measurement.internal.zzas v1_1 = new String[2];
                    v1_1[0] = String.valueOf(this.zzbx().currentTimeMillis());
                    v1_1[1] = String.valueOf(com.google.android.gms.measurement.internal.zzo.zzib());
                    Integer v0_7 = v0_6.delete("queue", "abs(bundle_end_timestamp - ?) > cast(? as integer)", v1_1);
                    if (v0_7 > null) {
                        this.zzgt().zzjo().zzg("Deleted stale rows. rowsDeleted", Integer.valueOf(v0_7));
                    }
                }
            }
            return;
        } else {
            return;
        }
    }

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


    public final void zzh(String p6, String p7)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p6);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p7);
        this.zzaf();
        this.zzcl();
        try {
            android.database.sqlite.SQLiteException v0_3 = this.getWritableDatabase();
            com.google.android.gms.measurement.internal.zzao v3_2 = new String[2];
            v3_2[0] = p6;
            v3_2[1] = p7;
            this.zzgt().zzjo().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.zzgt().zzjg().zzd("Error deleting user attribute. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p6), this.zzgq().zzbx(p7), v0_2);
            return;
        }
    }

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


    public final long zzbp(String p7)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p7);
        this.zzaf();
        this.zzcl();
        try {
            long v0_4 = this.getWritableDatabase();
            com.google.android.gms.measurement.internal.zzas v1_2 = String.valueOf(Math.max(0, Math.min(1000000, this.zzgv().zzb(p7, com.google.android.gms.measurement.internal.zzag.zzajv))));
            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.zzgt().zzjg().zze("Error deleting over the limit events. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p7), v0_2);
            return 0;
        }
    }

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


    final void zza(String p13, com.google.android.gms.internal.measurement.zzfx[] p14)
    {
        this.zzcl();
        this.zzaf();
        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.zzcl();
            this.zzaf();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
            java.util.ArrayList v1_0 = this.getWritableDatabase();
            String v5_6 = new String[1];
            int v6 = 0;
            v5_6[0] = p13;
            v1_0.delete("property_filters", "app_id=?", v5_6);
            String v5_7 = new String[1];
            v5_7[0] = p13;
            v1_0.delete("event_filters", "app_id=?", v5_7);
            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_8 = p14[v2_1];
            this.zzcl();
            this.zzaf();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_8);
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_8.zzavt);
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_8.zzavs);
            if (v3_8.zzavr != null) {
                String v5_12 = v3_8.zzavr.intValue();
                int v7_3 = v3_8.zzavt;
                int v9_2 = 0;
                while (v9_2 < v7_3.length) {
                    if (v7_3[v9_2].zzavx != null) {
                        v9_2++;
                    } else {
                        this.zzgt().zzjj().zze("Event filter with no ID. Audience definition ignored. appId, audienceId", com.google.android.gms.measurement.internal.zzaq.zzby(p13), v3_8.zzavr);
                    }
                }
                int v7_4 = v3_8.zzavs;
                int v9_1 = 0;
                while (v9_1 < v7_4.length) {
                    if (v7_4[v9_1].zzavx != null) {
                        v9_1++;
                    } else {
                        this.zzgt().zzjj().zze("Property filter with no ID. Audience definition ignored. appId, audienceId", com.google.android.gms.measurement.internal.zzaq.zzby(p13), v3_8.zzavr);
                    }
                }
                int v7_5 = v3_8.zzavt;
                int v9_3 = 0;
                while (v9_3 < v7_5.length) {
                    if (this.zza(p13, v5_12, v7_5[v9_3])) {
                        v9_3++;
                    } else {
                        int v7_6 = 0;
                    }
                    if (v7_6 != 0) {
                        android.database.sqlite.SQLiteDatabase v3_9 = v3_8.zzavs;
                        int v9_4 = 0;
                        while (v9_4 < v3_9.length) {
                            if (this.zza(p13, v5_12, v3_9[v9_4])) {
                                v9_4++;
                            } else {
                                v7_6 = 0;
                                break;
                            }
                        }
                    }
                    if (v7_6 == 0) {
                        this.zzcl();
                        this.zzaf();
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
                        android.database.sqlite.SQLiteDatabase v3_10 = this.getWritableDatabase();
                        boolean v10_8 = new String[2];
                        v10_8[0] = p13;
                        v10_8[1] = String.valueOf(v5_12);
                        v3_10.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_12);
                        v3_10.delete("event_filters", "app_id=? and audience_id=?", v9_0);
                    }
                }
                v7_6 = 1;
            } else {
                this.zzgt().zzjj().zzg("Audience with no ID. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p13));
            }
            v2_1++;
        }
        java.util.ArrayList v1_3 = new java.util.ArrayList();
        int v2_3 = p14.length;
        while (v6 < v2_3) {
            v1_3.add(p14[v6].zzavr);
            v6++;
        }
        this.zza(p13, v1_3);
        v0.setTransactionSuccessful();
        v0.endTransaction();
        return;
    }

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


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

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

Couldn't retrieve source code

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


    public final void resetAnalyticsData()
    {
        this.zzgg();
        this.zzaf();
        try {
            Integer v0_4 = (this.getWritableDatabase().delete("messages", 0, 0) + 0);
        } catch (Integer v0_1) {
            this.zzgt().zzjg().zzg("Error resetting local analytics data. error", v0_1);
            return;
        }
        if (v0_4 > null) {
            this.zzgt().zzjo().zzg("Reset local analytics data. records", Integer.valueOf(v0_4));
        }
        return;
    }

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


    private final boolean zza(int p18, byte[] p19)
    {
        this.zzgg();
        this.zzaf();
        Long v2_5 = 0;
        if (!this.zzaly) {
            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.zzgt().zzjg().zzca("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.zzgt().zzjg().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.zzaly = 1;
                            if (v9 != 0) {
                                v9.close();
                            }
                            return v2_5;
                        }
                        v7 = v9;
                        if (v7 != 0) {
                            if (v7.inTransaction()) {
                                v7.endTransaction();
                            }
                        }
                        this.zzgt().zzjg().zzg("Error writing entry to local database", com.google.android.gms.measurement.internal.zzas v0_0);
                        this.zzaly = 1;
                        if (v12 != 0) {
                            v12.close();
                        }
                        if (v7 == 0) {
                        } else {
                            v7.close();
                        }
                    } catch (com.google.android.gms.measurement.internal.zzas v0_3) {
                        this.zzgt().zzjg().zzg("Error writing entry to local database", v0_3);
                        this.zzaly = 1;
                        if (v7 != 0) {
                            v7.close();
                        }
                        if (v9 == 0) {
                        } else {
                            v9.close();
                        }
                    } catch (com.google.android.gms.measurement.internal.zzas v0_0) {
                        v12 = 0;
                    }
                } catch (com.google.android.gms.measurement.internal.zzas v0_1) {
                    v9 = 0;
                    v12 = 0;
                    if (v12 != 0) {
                        v12.close();
                    }
                    if (v9 != 0) {
                        v9.close();
                    }
                    throw v0_1;
                } catch (com.google.android.gms.measurement.internal.zzas v0_3) {
                    v9 = 0;
                } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                    v9 = 0;
                } catch (com.google.android.gms.measurement.internal.zzas v0_0) {
                    v12 = 0;
                } catch (com.google.android.gms.measurement.internal.zzas v0_1) {
                    v12 = v7;
                }
            }
            this.zzgt().zzjj().zzca("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

Method com.google.firebase.database.android.SqlPersistenceStorageEngine.updateTrackedQueryKeys() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void updateTrackedQueryKeys(long p12, java.util.Set p14, java.util.Set p15)
    {
        this.verifyInsideTransaction();
        com.google.firebase.database.logging.LogWrapper v0_0 = System.currentTimeMillis();
        android.database.sqlite.SQLiteDatabase v3_1 = String.valueOf(p12);
        Object[] v4_4 = p15.iterator();
        while (v4_4.hasNext()) {
            String v5_4 = ((com.google.firebase.database.snapshot.ChildKey) v4_4.next());
            int v9_2 = this.database;
            String[] v7_1 = new String[2];
            v7_1[0] = v3_1;
            v7_1[1] = v5_4.asString();
            v9_2.delete("trackedKeys", "id = ? AND key = ?", v7_1);
        }
        long v2_0 = p14.iterator();
        while (v2_0.hasNext()) {
            android.database.sqlite.SQLiteDatabase v3_3 = ((com.google.firebase.database.snapshot.ChildKey) v2_0.next());
            Object[] v4_3 = new android.content.ContentValues();
            v4_3.put("id", Long.valueOf(p12));
            v4_3.put("key", v3_3.asString());
            this.database.insertWithOnConflict("trackedKeys", 0, v4_3, 5);
        }
        long v2_2 = (System.currentTimeMillis() - v0_0);
        if (this.logger.logsDebug()) {
            com.google.firebase.database.logging.LogWrapper v0_3 = this.logger;
            Object[] v4_1 = new Object[4];
            v4_1[0] = Integer.valueOf(p14.size());
            v4_1[1] = Integer.valueOf(p15.size());
            v4_1[2] = Long.valueOf(p12);
            v4_1[3] = Long.valueOf(v2_2);
            Object[] v13_1 = new Object[0];
            v0_3.debug(String.format("Updated tracked query keys (%d added, %d removed) for tracked query id %d in %dms", v4_1), v13_1);
        }
        return;
    }

Method com.google.firebase.database.android.SqlPersistenceStorageEngine.saveTrackedQueryKeys() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void saveTrackedQueryKeys(long p11, java.util.Set p13)
    {
        this.verifyInsideTransaction();
        com.google.firebase.database.logging.LogWrapper v0_0 = System.currentTimeMillis();
        Object[] v4_4 = this.database;
        int v7_2 = new String[1];
        v7_2[0] = String.valueOf(p11);
        v4_4.delete("trackedKeys", "id = ?", v7_2);
        long v2_0 = p13.iterator();
        while (v2_0.hasNext()) {
            android.database.sqlite.SQLiteDatabase v3_2 = ((com.google.firebase.database.snapshot.ChildKey) v2_0.next());
            Object[] v4_3 = new android.content.ContentValues();
            v4_3.put("id", Long.valueOf(p11));
            v4_3.put("key", v3_2.asString());
            this.database.insertWithOnConflict("trackedKeys", 0, v4_3, 5);
        }
        long v2_2 = (System.currentTimeMillis() - v0_0);
        if (this.logger.logsDebug()) {
            com.google.firebase.database.logging.LogWrapper v0_3 = this.logger;
            Object[] v4_1 = new Object[3];
            v4_1[0] = Integer.valueOf(p13.size());
            v4_1[1] = Long.valueOf(p11);
            v4_1[2] = Long.valueOf(v2_2);
            Object[] v12_1 = new Object[0];
            v0_3.debug(String.format("Set %d tracked query keys for tracked query %d in %dms", v4_1), v12_1);
        }
        return;
    }

Method com.google.firebase.database.android.SqlPersistenceStorageEngine.removeUserWrite() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void removeUserWrite(long p10)
    {
        this.verifyInsideTransaction();
        com.google.firebase.database.logging.LogWrapper v0_2 = System.currentTimeMillis();
        Integer v2_2 = this.database;
        Object[] v6_2 = new String[1];
        v6_2[0] = String.valueOf(p10);
        Integer v2_0 = v2_2.delete("writes", "id = ?", v6_2);
        long v3_1 = (System.currentTimeMillis() - v0_2);
        if (this.logger.logsDebug()) {
            com.google.firebase.database.logging.LogWrapper v0_3 = this.logger;
            Object[] v6_1 = new Object[3];
            v6_1[0] = Integer.valueOf(v2_0);
            v6_1[1] = Long.valueOf(p10);
            v6_1[2] = Long.valueOf(v3_1);
            Object[] v11_1 = new Object[0];
            v0_3.debug(String.format("Deleted %d write(s) with writeId %d in %dms", v6_1), v11_1);
        }
        return;
    }

Method com.google.firebase.database.android.SqlPersistenceStorageEngine.removeAllUserWrites() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void removeAllUserWrites()
    {
        this.verifyInsideTransaction();
        com.google.firebase.database.logging.LogWrapper v0_3 = System.currentTimeMillis();
        Object[] v2_4 = this.database.delete("writes", 0, 0);
        Long v3_0 = (System.currentTimeMillis() - v0_3);
        if (this.logger.logsDebug()) {
            com.google.firebase.database.logging.LogWrapper v0_2 = this.logger;
            Object[] v5_1 = new Object[2];
            v5_1[0] = Integer.valueOf(v2_4);
            v5_1[1] = Long.valueOf(v3_0);
            Object[] v2_2 = new Object[0];
            v0_2.debug(String.format("Deleted %d (all) write(s) in %dms", v5_1), v2_2);
        }
        return;
    }

Method com.google.firebase.database.android.SqlPersistenceStorageEngine.purgeCache() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void purgeCache()
    {
        this.verifyInsideTransaction();
        this.database.delete("serverCache", 0, 0);
        this.database.delete("writes", 0, 0);
        this.database.delete("trackedQueries", 0, 0);
        this.database.delete("trackedKeys", 0, 0);
        return;
    }

Method com.google.firebase.database.android.SqlPersistenceStorageEngine.pruneCache() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void pruneCache(com.google.firebase.database.core.Path p18, com.google.firebase.database.core.persistence.PruneForest p19)
    {
        if (p19.prunesAnything()) {
            void v17_1 = this.verifyInsideTransaction();
            long v9 = System.currentTimeMillis();
            String v0_0 = new String[2];
            v0_0[0] = "rowid";
            v0_0[1] = "path";
            String v0_1 = this.loadNestedQuery(p18, v0_0);
            com.google.firebase.database.core.utilities.ImmutableTree v15 = new com.google.firebase.database.core.utilities.ImmutableTree(0);
            com.google.firebase.database.logging.LogWrapper v4_0 = new com.google.firebase.database.core.utilities.ImmutableTree(0);
            while (v0_1.moveToNext()) {
                Object[] v1_0 = v0_1.getLong(0);
                com.google.firebase.database.core.Path v3_2 = new com.google.firebase.database.core.Path(v0_1.getString(1));
                if (p18.contains(v3_2)) {
                    Object[] v6_2 = com.google.firebase.database.core.Path.getRelative(p18, v3_2);
                    if (!p19.shouldPruneUnkeptDescendants(v6_2)) {
                        if (!p19.shouldKeep(v6_2)) {
                            Object[] v1_2 = this.logger;
                            com.google.firebase.database.snapshot.Node v2_3 = new StringBuilder();
                            v2_3.append("We are pruning at ");
                            v2_3.append(p18);
                            v2_3.append(" and have data at ");
                            v2_3.append(v3_2);
                            v2_3.append(" that isn\'t marked for pruning or keeping. Ignoring.");
                            v1_2.warn(v2_3.toString());
                        } else {
                            v4_0 = v4_0.set(v6_2, Long.valueOf(v1_0));
                        }
                    } else {
                        v15 = v15.set(v6_2, Long.valueOf(v1_0));
                    }
                } else {
                    Object[] v1_6 = this.logger;
                    com.google.firebase.database.snapshot.Node v2_6 = new StringBuilder();
                    v2_6.append("We are pruning at ");
                    v2_6.append(p18);
                    v2_6.append(" but we have data stored higher up at ");
                    v2_6.append(v3_2);
                    v2_6.append(". Ignoring.");
                    v1_6.warn(v2_6.toString());
                }
            }
            Object[] v1_10;
            String v0_3;
            if (v15.isEmpty()) {
                v0_3 = 0;
                v1_10 = 0;
            } else {
                boolean v16_3 = new java.util.ArrayList();
                v17_1.pruneTreeRecursive(p18, com.google.firebase.database.core.Path.getEmptyPath(), v15, v4_0, p19, v16_3);
                String v0_6 = v15.values();
                Object[] v1_13 = new StringBuilder();
                v1_13.append("rowid IN (");
                v1_13.append(this.commaSeparatedList(v0_6));
                v1_13.append(")");
                this.database.delete("serverCache", v1_13.toString(), 0);
                Object[] v1_15 = v16_3.iterator();
                while (v1_15.hasNext()) {
                    com.google.firebase.database.snapshot.Node v2_19 = ((com.google.firebase.database.core.utilities.Pair) v1_15.next());
                    this.saveNested(p18.child(((com.google.firebase.database.core.Path) v2_19.getFirst())), ((com.google.firebase.database.snapshot.Node) v2_19.getSecond()));
                }
                v0_3 = v0_6.size();
                v1_10 = v16_3.size();
            }
            com.google.firebase.database.snapshot.Node v2_17 = (System.currentTimeMillis() - v9);
            if (this.logger.logsDebug()) {
                com.google.firebase.database.logging.LogWrapper v4_3 = this.logger;
                Object[] v6_9 = new Object[3];
                v6_9[0] = Integer.valueOf(v0_3);
                v6_9[1] = Integer.valueOf(v1_10);
                v6_9[2] = Long.valueOf(v2_17);
                Object[] v1_16 = new Object[0];
                v4_3.debug(String.format("Pruned %d rows with %d nodes resaved in %dms", v6_9), v1_16);
            }
            return;
        } else {
            return;
        }
    }

Method com.google.firebase.database.android.SqlPersistenceStorageEngine.deleteTrackedQuery() calling method android.database.sqlite.SQLiteDatabase.delete()


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

Method com.google.firebase.database.android.SqlPersistenceStorageEngine.saveWrite() calling method android.database.sqlite.SQLiteDatabase.delete()


    private void saveWrite(com.google.firebase.database.core.Path p7, long p8, String p10, byte[] p11)
    {
        this.verifyInsideTransaction();
        android.content.ContentValues v0_0 = this.database;
        int v3_2 = new String[1];
        int v5 = 0;
        v3_2[0] = String.valueOf(p8);
        v0_0.delete("writes", "id = ?", v3_2);
        if (p11.length < 262144) {
            android.content.ContentValues v0_3 = new android.content.ContentValues();
            v0_3.put("id", Long.valueOf(p8));
            v0_3.put("path", com.google.firebase.database.android.SqlPersistenceStorageEngine.pathToKey(p7));
            v0_3.put("type", p10);
            v0_3.put("part", ((Integer) 0));
            v0_3.put("node", p11);
            this.database.insertWithOnConflict("writes", 0, v0_3, 5);
        } else {
            java.util.List v11_1 = com.google.firebase.database.android.SqlPersistenceStorageEngine.splitBytes(p11, 262144);
            while (v5 < v11_1.size()) {
                android.content.ContentValues v0_6 = new android.content.ContentValues();
                v0_6.put("id", Long.valueOf(p8));
                v0_6.put("path", com.google.firebase.database.android.SqlPersistenceStorageEngine.pathToKey(p7));
                v0_6.put("type", p10);
                v0_6.put("part", Integer.valueOf(v5));
                v0_6.put("node", ((byte[]) v11_1.get(v5)));
                this.database.insertWithOnConflict("writes", 0, v0_6, 5);
                v5++;
            }
        }
        return;
    }

Method com.google.firebase.database.android.SqlPersistenceStorageEngine.removeNested() calling method android.database.sqlite.SQLiteDatabase.delete()


    private int removeNested(String p6, com.google.firebase.database.core.Path p7)
    {
        int v7_2 = com.google.firebase.database.android.SqlPersistenceStorageEngine.pathToKey(p7);
        String v1 = com.google.firebase.database.android.SqlPersistenceStorageEngine.pathPrefixStartToPrefixEnd(v7_2);
        android.database.sqlite.SQLiteDatabase v2 = this.database;
        String[] v3_1 = new String[2];
        v3_1[0] = v7_2;
        v3_1[1] = v1;
        return v2.delete(p6, "path >= ? AND path < ?", v3_1);
    }

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


    final void zzf(com.google.android.gms.measurement.internal.zzi p19)
    {
        void v18_1 = this.zzaf();
        v18_1.zzlx();
        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.zzafx)) || (!android.text.TextUtils.isEmpty(p19.zzagk))) {
            String v0_9 = v18_1.zzjt().zzbo(p19.packageName);
            if ((v0_9 != null) && ((android.text.TextUtils.isEmpty(v0_9.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzafx)))) {
                v0_9.zzy(0);
                v18_1.zzjt().zza(v0_9);
                v18_1.zzls().zzcl(p19.packageName);
            }
            if (p19.zzagg) {
                long v5_6 = p19.zzaha;
                if (v5_6 == 0) {
                    v5_6 = this.zzadp.zzbx().currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_76 = p19.zzahb;
                if ((v0_76 == null) || (v0_76 == 1)) {
                    v15_3 = v0_76;
                } else {
                    this.zzadp.zzgt().zzjj().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.measurement.internal.zzaq.zzby(p19.packageName), Integer.valueOf(v0_76));
                    v15_3 = 0;
                }
                v18_1.zzjt().beginTransaction();
                try {
                    String v0_8 = v18_1.zzjt().zzbo(p19.packageName);
                } catch (String v0_83) {
                    v18_1.zzjt().endTransaction();
                    throw v0_83;
                }
                if (v0_8 != null) {
                    this.zzadp.zzgr();
                    if (com.google.android.gms.measurement.internal.zzfu.zza(p19.zzafx, v0_8.getGmpAppId(), p19.zzagk, v0_8.zzhb())) {
                        this.zzadp.zzgt().zzjj().zzg("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v0_8.zzal()));
                        com.google.android.gms.measurement.internal.zzfr v7_0 = v18_1.zzjt();
                        String v8_0 = v0_8.zzal();
                        v7_0.zzcl();
                        v7_0.zzaf();
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v8_0);
                        try {
                            String v0_0 = v7_0.getWritableDatabase();
                            long v9_0 = new String[1];
                            v9_0[0] = v8_0;
                            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_0.zzgt().zzjg().zze("Error deleting application data. appId, error", com.google.android.gms.measurement.internal.zzaq.zzby(v8_0), v0_4);
                            v0_8 = 0;
                        }
                        if (v10_10 <= null) {
                        } else {
                            v7_0.zzgt().zzjo().zze("Deleted application data. app, records", v8_0, Integer.valueOf(v10_10));
                        }
                    }
                }
                if (v0_8 != null) {
                    if (v0_8.zzhf() == -2147483648) {
                        if ((v0_8.zzak() != null) && (!v0_8.zzak().equals(p19.zzts))) {
                            com.google.android.gms.measurement.internal.zzfr v7_8 = new android.os.Bundle();
                            v7_8.putString("_pv", v0_8.zzak());
                            String v0_11 = new com.google.android.gms.measurement.internal.zzae;
                            v0_11("_au", new com.google.android.gms.measurement.internal.zzab(v7_8), "auto", v5_6);
                            this.zzc(v0_11, p19);
                        }
                    } else {
                        if (v0_8.zzhf() != p19.zzagd) {
                            com.google.android.gms.measurement.internal.zzfr v7_12 = new android.os.Bundle();
                            v7_12.putString("_pv", v0_8.zzak());
                            String v0_13 = new com.google.android.gms.measurement.internal.zzae;
                            v0_13("_au", new com.google.android.gms.measurement.internal.zzab(v7_12), "auto", v5_6);
                            this.zzc(v0_13, p19);
                        }
                    }
                }
                String v0_14;
                v18_1.zzg(p19);
                if (v15_3 != null) {
                    if (v15_3 != 1) {
                        v0_14 = 0;
                    } else {
                        v0_14 = v18_1.zzjt().zzg(p19.packageName, "_v");
                    }
                } else {
                    v0_14 = v18_1.zzjt().zzg(p19.packageName, "_f");
                }
                if (v0_14 != null) {
                    if (p19.zzagz) {
                        com.google.android.gms.measurement.internal.zzfr v3_2 = new com.google.android.gms.measurement.internal.zzae;
                        v3_2("_cd", new com.google.android.gms.measurement.internal.zzab(new android.os.Bundle()), "auto", v5_6);
                        this.zzc(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_20 = new com.google.android.gms.measurement.internal.zzfr;
                            v0_20("_fvt", v5_6, Long.valueOf(v9_13), "auto");
                            this.zzb(v0_20, p19);
                            v18_1 = v18_1.zzaf();
                            v18_1.zzlx();
                            String v0_22 = new android.os.Bundle();
                            v0_22.putLong("_c", 1);
                            v0_22.putLong("_r", 1);
                            if (this.zzadp.zzgv().zzbm(p19.packageName)) {
                                v0_22.putLong("_et", 1);
                            }
                            if ((this.zzadp.zzgv().zzbc(p19.packageName)) && (p19.zzahc)) {
                                v0_22.putLong("_dac", 1);
                            }
                            com.google.android.gms.measurement.internal.zzfr v3_15 = new com.google.android.gms.measurement.internal.zzae;
                            v3_15("_v", new com.google.android.gms.measurement.internal.zzab(v0_22), "auto", v5_6);
                            this.zzc(v3_15, p19);
                        }
                    } else {
                        String v0_23 = new com.google.android.gms.measurement.internal.zzfr;
                        v13_0 = 1;
                        v0_23("_fot", v5_6, Long.valueOf(v9_13), "auto");
                        this.zzb(v0_23, p19);
                        if (this.zzadp.zzgv().zzbg(p19.zzafx)) {
                            v18_1 = v18_1.zzaf();
                            this.zzadp.zzkk().zzcg(p19.packageName);
                        }
                        v18_1 = v18_1.zzaf();
                        v18_1.zzlx();
                        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.zzadp.zzgv().zzbm(p19.packageName)) {
                            v15_2.putLong("_et", 1);
                        }
                        if ((this.zzadp.zzgv().zzbc(p19.packageName)) && (p19.zzahc)) {
                            v15_2.putLong("_dac", 1);
                        }
                        if (this.zzadp.getContext().getPackageManager() != null) {
                            try {
                                String v0_51 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzadp.getContext()).getPackageInfo(p19.packageName, 0);
                            } catch (String v0_52) {
                                this.zzadp.zzgt().zzjg().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p19.packageName), v0_52);
                                v0_51 = 0;
                            }
                            if ((v0_51 != null) && (v0_51.firstInstallTime != 0)) {
                                String v0_55;
                                if (v0_51.firstInstallTime == v0_51.lastUpdateTime) {
                                    v0_55 = 1;
                                } else {
                                    v15_2.putLong("_uwa", 1);
                                    v0_55 = 0;
                                }
                                long v9_22;
                                String v12_10 = new com.google.android.gms.measurement.internal.zzfr;
                                if (v0_55 == null) {
                                    v9_22 = 0;
                                } else {
                                    v9_22 = 1;
                                }
                                com.google.android.gms.measurement.internal.zzfr v3_16 = v12_10;
                                v12_10("_fi", v5_6, Long.valueOf(v9_22), "auto");
                                this.zzb(v3_16, p19);
                            }
                            try {
                                String v0_62 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzadp.getContext()).getApplicationInfo(p19.packageName, 0);
                            } catch (String v0_63) {
                                this.zzadp.zzgt().zzjg().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p19.packageName), v0_63);
                                v0_62 = 0;
                            }
                            if (v0_62 != null) {
                                if ((v0_62.flags & 1) != 0) {
                                    v15_2.putLong("_sys", 1);
                                }
                                if ((v0_62.flags & 128) != 0) {
                                    v15_2.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.zzadp.zzgt().zzjg().zzg("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p19.packageName));
                        }
                        String v0_72 = v18_1.zzjt();
                        com.google.android.gms.measurement.internal.zzfr v3_24 = p19.packageName;
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_24);
                        v0_72.zzaf();
                        v0_72.zzcl();
                        com.google.android.gms.measurement.internal.zzfr v3_25 = v0_72.zzn(v3_24, "first_open_count");
                        if (v3_25 >= 0) {
                            v15_2.putLong("_pfo", v3_25);
                        }
                        String v0_75 = new com.google.android.gms.measurement.internal.zzae;
                        v0_75("_f", new com.google.android.gms.measurement.internal.zzab(v15_2), "auto", v5_6);
                        this.zzc(v0_75, p19);
                    }
                    if (!this.zzadp.zzgv().zze(p19.packageName, com.google.android.gms.measurement.internal.zzag.zzalm)) {
                        String v0_81 = new android.os.Bundle();
                        v0_81.putLong("_et", v13_0);
                        if (this.zzadp.zzgv().zzbm(p19.packageName)) {
                            v0_81.putLong("_fr", v13_0);
                        }
                        com.google.android.gms.measurement.internal.zzfr v3_32 = new com.google.android.gms.measurement.internal.zzae;
                        v3_32("_e", new com.google.android.gms.measurement.internal.zzab(v0_81), "auto", v5_6);
                        this.zzc(v3_32, p19);
                    }
                }
                v18_1.zzjt().setTransactionSuccessful();
                v18_1.zzjt().endTransaction();
                return;
            } else {
                v18_1.zzg(p19);
                return;
            }
        } else {
            return;
        }
    }

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


    final void zzd(com.google.android.gms.measurement.internal.zzi p12)
    {
        if (this.zzaun != null) {
            this.zzauo = new java.util.ArrayList();
            this.zzauo.addAll(this.zzaun);
        }
        com.google.android.gms.measurement.internal.zzi v0_7 = this.zzjt();
        boolean v1_0 = p12.packageName;
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v1_0);
        v0_7.zzaf();
        v0_7.zzcl();
        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.zzgt().zzjg().zze("Error resetting analytics data. appId, error", com.google.android.gms.measurement.internal.zzaq.zzby(v1_0), v2_2);
            com.google.android.gms.measurement.internal.zzi v0_8 = this.zza(this.zzadp.getContext(), p12.packageName, p12.zzafx, p12.zzagg, p12.zzagi, p12.zzagj, p12.zzaha, p12.zzagk);
            if ((!this.zzadp.zzgv().zzbc(p12.packageName)) || (p12.zzagg)) {
                this.zzf(v0_8);
            }
            return;
        }
        if (v5_10) {
        } else {
            v0_7.zzgt().zzjo().zze("Reset analytics data. app, records", v1_0, Integer.valueOf(v5_10));
        }
    }

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


    final void zza(int p10, Throwable p11, byte[] p12, String p13)
    {
        this.zzaf();
        this.zzlx();
        if (p12 == null) {
            p12 = new byte[0];
        }
        String v1_3 = this.zzaun;
        this.zzaun = 0;
        int v4 = 1;
        if (((p10 != 200) && (p10 != 204)) || (p11)) {
            this.zzadp.zzgt().zzjo().zze("Network upload failed. Will retry later. code, error", Integer.valueOf(p10), p11);
            this.zzadp.zzgu().zzanm.set(this.zzadp.zzbx().currentTimeMillis());
            if (p10 != 503) {
                if (p10 != 429) {
                    v4 = 0;
                } else {
                }
            }
            if (v4 != 0) {
                this.zzadp.zzgu().zzann.set(this.zzadp.zzbx().currentTimeMillis());
            }
            if (this.zzadp.zzgv().zzay(p13)) {
                this.zzjt().zzc(v1_3);
            }
            this.zzmb();
        } else {
            try {
                this.zzadp.zzgu().zzanl.set(this.zzadp.zzbx().currentTimeMillis());
                this.zzadp.zzgu().zzanm.set(0);
                this.zzmb();
                this.zzadp.zzgt().zzjo().zze("Successful upload. Got network response. code, size", Integer.valueOf(p10), Integer.valueOf(p12.length));
                this.zzjt().beginTransaction();
            } catch (long v10_7) {
                this.zzadp.zzgt().zzjg().zzg("Database error while trying to delete uploaded bundles", v10_7);
                this.zzaue = this.zzadp.zzbx().elapsedRealtime();
                this.zzadp.zzgt().zzjo().zzg("Disable upload, time", Long.valueOf(this.zzaue));
            }
            long v10_24 = v1_3.iterator();
            while (v10_24.hasNext()) {
                boolean v11_2 = ((Long) v10_24.next());
                try {
                    com.google.android.gms.measurement.internal.zzas v12_1 = this.zzjt();
                    String v7_0 = v11_2.longValue();
                    v12_1.zzaf();
                    v12_1.zzcl();
                    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.zzgt().zzjg().zzg("Failed to delete a bundle in a queue table", v13_5);
                        throw v13_5;
                    }
                } catch (com.google.android.gms.measurement.internal.zzas v12_5) {
                    if (this.zzauo != null) {
                        if (this.zzauo.contains(v11_2)) {
                        }
                    }
                    throw v12_5;
                }
            }
            this.zzjt().setTransactionSuccessful();
            this.zzjt().endTransaction();
            this.zzauo = 0;
            if ((!this.zzlt().zzfb()) || (!this.zzma())) {
                this.zzaup = -1;
                this.zzmb();
            } else {
                this.zzlz();
            }
            this.zzaue = 0;
        }
        this.zzauj = 0;
        this.zzmc();
        return;
    }

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


    private final boolean zzd(String p53, long p54)
    {
        String v1_0 = this;
        this.zzjt().beginTransaction();
        try {
            com.google.android.gms.measurement.internal.zzaa v3_9 = 0;
            int v2_0 = new com.google.android.gms.measurement.internal.zzfk$zza(this, 0);
            String v4_53 = this.zzjt();
            com.google.android.gms.measurement.internal.zzfk v5_40 = this.zzaup;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_0);
            v4_53.zzaf();
            v4_53.zzcl();
            try {
                int v22;
                String v7_3;
                boolean v15_7 = v4_53.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        com.google.android.gms.measurement.internal.zzaa v3_11;
                        if (v5_40 == -1) {
                            v3_11 = new String[1];
                            v3_11[0] = 0;
                        } else {
                            v3_11 = new String[2];
                            v3_11[0] = 0;
                            v3_11[1] = String.valueOf(v5_40);
                        }
                        String v7_30;
                        if (v5_40 == -1) {
                            v7_30 = "";
                        } else {
                            v7_30 = " and rowid <= ?";
                        }
                        int v14_27 = new StringBuilder((String.valueOf(v7_30).length() + 84));
                        v14_27.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_27.append(v7_30);
                        v14_27.append(" order by rowid limit 1;");
                        v3_9 = v15_7.rawQuery(v14_27.toString(), v3_11);
                        if (v3_9.moveToFirst()) {
                            int v13_50 = v3_9.getString(0);
                            v3_9.close();
                            v22 = v3_9;
                            v7_3 = v13_50;
                            v3_9 = 0;
                            try {
                                int v13_12 = new String[1];
                                v13_12[0] = "metadata";
                                Boolean v8_17 = new String[2];
                                v8_17[0] = v3_9;
                                v8_17[1] = v7_3;
                                android.database.sqlite.SQLiteDatabase v23 = v15_7;
                                Boolean v8_7 = v15_7.query("raw_events_metadata", v13_12, "app_id = ? and metadata_fingerprint = ?", v8_17, 0, 0, "rowid", "2");
                                try {
                                    if (v8_7.moveToFirst()) {
                                        Long v9_67 = v8_7.getBlob(0);
                                        Long v9_68 = com.google.android.gms.internal.measurement.zzzi.zzj(v9_67, 0, v9_67.length);
                                        int v13_34 = new com.google.android.gms.internal.measurement.zzgl();
                                        try {
                                            v13_34.zza(v9_68);
                                        } catch (android.database.sqlite.SQLiteException v0_4) {
                                            v4_53.zzgt().zzjg().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9), v0_4);
                                            if (v8_7 == null) {
                                                com.google.android.gms.measurement.internal.zzaa v3_15;
                                                if (v2_0.zzauv == null) {
                                                    v3_15 = 1;
                                                } else {
                                                    if (!v2_0.zzauv.isEmpty()) {
                                                        v3_15 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_15 != null) {
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.measurement.internal.zzaa v3_8 = v2_0.zzaut;
                                                    String v4_4 = new com.google.android.gms.internal.measurement.zzgi[v2_0.zzauv.size()];
                                                    v3_8.zzaxu = v4_4;
                                                    String v4_7 = this.zzadp.zzgv().zzaw(v3_8.zztt);
                                                    com.google.android.gms.measurement.internal.zzfk v5_16 = this.zzadp.zzgv().zze(v2_0.zzaut.zztt, com.google.android.gms.measurement.internal.zzag.zzalm);
                                                    long v6_13 = 0;
                                                    Boolean v8_71 = 0;
                                                    Long v9_73 = 0;
                                                    boolean v10_5 = 0;
                                                    int v13_40 = 0;
                                                    int v14_18 = 0;
                                                    while (v8_71 < v2_0.zzauv.size()) {
                                                        String v26_1;
                                                        com.google.android.gms.measurement.internal.zzaa v25_0;
                                                        String v7_18 = ((com.google.android.gms.internal.measurement.zzgi) v2_0.zzauv.get(v8_71));
                                                        boolean v24_0 = v9_73;
                                                        if (!this.zzls().zzo(v2_0.zzaut.zztt, v7_18.name)) {
                                                            int v39_0;
                                                            long v37_0;
                                                            v25_0 = v8_71;
                                                            String v26_0 = v13_40;
                                                            Boolean v8_15 = this.zzls().zzp(v2_0.zzaut.zztt, v7_18.name);
                                                            if (v8_15 != null) {
                                                                if (v7_18.zzaxm == null) {
                                                                    int v12_19 = new com.google.android.gms.internal.measurement.zzgj[0];
                                                                    v7_18.zzaxm = v12_19;
                                                                }
                                                                int v11_12 = v7_18.zzaxm;
                                                                int v12_20 = v11_12.length;
                                                                int v13_9 = 0;
                                                                long v18_0 = 0;
                                                                int v19_0 = 0;
                                                                while (v13_9 < v12_20) {
                                                                    Long v9_77 = v11_12[v13_9];
                                                                    long v28_1 = v11_12;
                                                                    long v29_1 = v12_20;
                                                                    if (!"_c".equals(v9_77.name)) {
                                                                        if ("_r".equals(v9_77.name)) {
                                                                            v9_77.zzaxq = Long.valueOf(1);
                                                                            v19_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v9_77.zzaxq = Long.valueOf(1);
                                                                        v18_0 = 1;
                                                                    }
                                                                    v13_9++;
                                                                    v11_12 = v28_1;
                                                                    v12_20 = v29_1;
                                                                }
                                                                if ((v18_0 == 0) && (v8_15 != null)) {
                                                                    this.zzadp.zzgt().zzjo().zzg("Marking event as conversion", this.zzadp.zzgq().zzbv(v7_18.name));
                                                                    Long v9_14 = ((com.google.android.gms.internal.measurement.zzgj[]) java.util.Arrays.copyOf(v7_18.zzaxm, (v7_18.zzaxm.length + 1)));
                                                                    int v11_18 = new com.google.android.gms.internal.measurement.zzgj();
                                                                    v11_18.name = "_c";
                                                                    v11_18.zzaxq = Long.valueOf(1);
                                                                    v9_14[(v9_14.length - 1)] = v11_18;
                                                                    v7_18.zzaxm = v9_14;
                                                                }
                                                                if (v19_0 == 0) {
                                                                    this.zzadp.zzgt().zzjo().zzg("Marking event as real-time", this.zzadp.zzgq().zzbv(v7_18.name));
                                                                    Long v9_20 = ((com.google.android.gms.internal.measurement.zzgj[]) java.util.Arrays.copyOf(v7_18.zzaxm, (v7_18.zzaxm.length + 1)));
                                                                    int v11_24 = new com.google.android.gms.internal.measurement.zzgj();
                                                                    v11_24.name = "_r";
                                                                    v11_24.zzaxq = Long.valueOf(1);
                                                                    v9_20[(v9_20.length - 1)] = v11_24;
                                                                    v7_18.zzaxm = v9_20;
                                                                }
                                                                Long v9_28;
                                                                v37_0 = v14_18;
                                                                if (this.zzjt().zza(this.zzly(), v2_0.zzaut.zztt, 0, 0, 0, 0, 1).zzahx <= ((long) this.zzadp.zzgv().zzas(v2_0.zzaut.zztt))) {
                                                                    v9_28 = 1;
                                                                } else {
                                                                    Long v9_29 = 0;
                                                                    while (v9_29 < v7_18.zzaxm.length) {
                                                                        if (!"_r".equals(v7_18.zzaxm[v9_29].name)) {
                                                                            v9_29++;
                                                                        } else {
                                                                            int v11_33 = new com.google.android.gms.internal.measurement.zzgj[(v7_18.zzaxm.length - 1)];
                                                                            if (v9_29 > null) {
                                                                                System.arraycopy(v7_18.zzaxm, 0, v11_33, 0, v9_29);
                                                                            }
                                                                            if (v9_29 < v11_33.length) {
                                                                                System.arraycopy(v7_18.zzaxm, (v9_29 + 1), v11_33, v9_29, (v11_33.length - v9_29));
                                                                            }
                                                                            v7_18.zzaxm = v11_33;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v9_28 = v24_0;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.zzfu.zzcv(v7_18.name)) || ((v8_15 == null) || (this.zzjt().zza(this.zzly(), v2_0.zzaut.zztt, 0, 0, 1, 0, 0).zzahv <= ((long) this.zzadp.zzgv().zzb(v2_0.zzaut.zztt, com.google.android.gms.measurement.internal.zzag.zzajt))))) {
                                                                    v39_0 = v9_28;
                                                                } else {
                                                                    this.zzadp.zzgt().zzjj().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                    int v11_42 = v7_18.zzaxm;
                                                                    int v12_46 = v11_42.length;
                                                                    int v13_29 = 0;
                                                                    int v14_11 = 0;
                                                                    boolean v15_4 = 0;
                                                                    while (v13_29 < v12_46) {
                                                                        Long v9_74 = v11_42[v13_29];
                                                                        if (!"_c".equals(v9_74.name)) {
                                                                            if ("_err".equals(v9_74.name)) {
                                                                                v14_11 = 1;
                                                                            }
                                                                        } else {
                                                                            v15_4 = v9_74;
                                                                        }
                                                                        v13_29++;
                                                                    }
                                                                    v39_0 = v9_28;
                                                                    if ((v14_11 == 0) || (!v15_4)) {
                                                                        if (!v15_4) {
                                                                            this.zzadp.zzgt().zzjg().zzg("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                        } else {
                                                                            v15_4.name = "_err";
                                                                            v15_4.zzaxq = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        Long v9_36 = v7_18.zzaxm;
                                                                        int v12_50 = new com.google.android.gms.internal.measurement.zzgj[1];
                                                                        v12_50[0] = v15_4;
                                                                        v7_18.zzaxm = ((com.google.android.gms.internal.measurement.zzgj[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v9_36, v12_50));
                                                                    }
                                                                }
                                                            } else {
                                                                int v11_6;
                                                                this.zzjr();
                                                                int v11_4 = v7_18.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v11_4);
                                                                int v12_15 = v11_4.hashCode();
                                                                if (v12_15 == 94660) {
                                                                    if (!v11_4.equals("_in")) {
                                                                        v11_6 = -1;
                                                                    } else {
                                                                        v11_6 = 0;
                                                                    }
                                                                } else {
                                                                    if (v12_15 == 95025) {
                                                                        if (!v11_4.equals("_ug")) {
                                                                        } else {
                                                                            v11_6 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v12_15 == 95027) {
                                                                            if (!v11_4.equals("_ui")) {
                                                                            } else {
                                                                                v11_6 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v11_9;
                                                                switch (v11_6) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v11_9 = 1;
                                                                    default:
                                                                        v11_9 = 0;
                                                                }
                                                                if (v11_9 == 0) {
                                                                    v37_0 = v14_18;
                                                                    v39_0 = v24_0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzadp.zzgv().zzbf(v2_0.zzaut.zztt)) || (v8_15 == null)) {
                                                            } else {
                                                                Boolean v8_18 = v7_18.zzaxm;
                                                                Long v9_42 = 0;
                                                                int v11_49 = -1;
                                                                int v12_51 = -1;
                                                                while (v9_42 < v8_18.length) {
                                                                    if (!"value".equals(v8_18[v9_42].name)) {
                                                                        if ("currency".equals(v8_18[v9_42].name)) {
                                                                            v12_51 = v9_42;
                                                                        }
                                                                    } else {
                                                                        v11_49 = v9_42;
                                                                    }
                                                                    v9_42++;
                                                                }
                                                                if (v11_49 == -1) {
                                                                } else {
                                                                    if ((v8_18[v11_49].zzaxq != null) || (v8_18[v11_49].zzava != null)) {
                                                                        Long v9_51;
                                                                        if (v12_51 != -1) {
                                                                            Long v9_50 = v8_18[v12_51].zzamw;
                                                                            if (v9_50 == null) {
                                                                            } else {
                                                                                if (v9_50.length() == 3) {
                                                                                    int v12_53 = 0;
                                                                                    while (v12_53 < v9_50.length()) {
                                                                                        int v14_13 = v9_50.codePointAt(v12_53);
                                                                                        if (Character.isLetter(v14_13)) {
                                                                                            v12_53 += Character.charCount(v14_13);
                                                                                        } else {
                                                                                        }
                                                                                    }
                                                                                    v9_51 = 0;
                                                                                    if (v9_51 != null) {
                                                                                        this.zzadp.zzgt().zzjl().zzca("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                        v8_18 = com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(v8_18, v11_49), "_c"), 19, "currency");
                                                                                    }
                                                                                    v7_18.zzaxm = v8_18;
                                                                                    if (this.zzadp.zzgv().zze(v2_0.zzaut.zztt, com.google.android.gms.measurement.internal.zzag.zzall)) {
                                                                                        if (!"_e".equals(v7_18.name)) {
                                                                                            if (!"_vs".equals(v7_18.name)) {
                                                                                                if ((v4_7 != null) && ((v5_16 == null) && ("_e".equals(v7_18.name)))) {
                                                                                                    if (v7_18.zzaxm != null) {
                                                                                                        if (v7_18.zzaxm.length != 0) {
                                                                                                            this.zzjr();
                                                                                                            Boolean v8_49 = ((Long) com.google.android.gms.measurement.internal.zzfq.zzb(v7_18, "_et"));
                                                                                                            if (v8_49 != null) {
                                                                                                                v37_0 += v8_49.longValue();
                                                                                                                Long v9_72 = (v26_0 + 1);
                                                                                                                v3_8.zzaxu[v26_0] = v7_18;
                                                                                                                v26_1 = v9_72;
                                                                                                                v14_18 = v37_0;
                                                                                                                v9_73 = v39_0;
                                                                                                                v8_71 = (v25_0 + 1);
                                                                                                                v13_40 = v26_1;
                                                                                                                int v12 = 1;
                                                                                                            } else {
                                                                                                                this.zzadp.zzgt().zzjj().zzg("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                                                            }
                                                                                                        } else {
                                                                                                        }
                                                                                                    }
                                                                                                    this.zzadp.zzgt().zzjj().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                                                }
                                                                                            } else {
                                                                                                this.zzjr();
                                                                                                if (com.google.android.gms.measurement.internal.zzfq.zza(v7_18, "_et") != null) {
                                                                                                } else {
                                                                                                    if ((!v10_5) || ((Math.abs((v10_5.zzaxn.longValue() - v7_18.zzaxn.longValue())) > 1000) || (!this.zza(v10_5, v7_18)))) {
                                                                                                        v6_13 = v7_18;
                                                                                                    } else {
                                                                                                    }
                                                                                                }
                                                                                            }
                                                                                        } else {
                                                                                            this.zzjr();
                                                                                            if (com.google.android.gms.measurement.internal.zzfq.zza(v7_18, "_fr") != null) {
                                                                                            } else {
                                                                                                if ((v6_13 == 0) || ((Math.abs((v6_13.zzaxn.longValue() - v7_18.zzaxn.longValue())) > 1000) || (!this.zza(v7_18, v6_13)))) {
                                                                                                    v10_5 = v7_18;
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                        v6_13 = 0;
                                                                                        v10_5 = 0;
                                                                                    }
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v9_51 = 1;
                                                                        } else {
                                                                            v9_51 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzadp.zzgt().zzjl().zzca("Value must be specified with a numeric type.");
                                                                        v8_18 = com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(v8_18, v11_49), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            Boolean v8_65;
                                                            v25_0 = v8_71;
                                                            v26_1 = v13_40;
                                                            this.zzadp.zzgt().zzjj().zze("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt), this.zzadp.zzgq().zzbv(v7_18.name));
                                                            if (this.zzls().zzcn(v2_0.zzaut.zztt)) {
                                                                v8_65 = 1;
                                                            } else {
                                                                if (!this.zzls().zzco(v2_0.zzaut.zztt)) {
                                                                    v8_65 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v8_65 == null) && (!"_err".equals(v7_18.name))) {
                                                                this.zzadp.zzgr().zza(v2_0.zzaut.zztt, 11, "_ev", v7_18.name, 0);
                                                            }
                                                            v9_73 = v24_0;
                                                        }
                                                    }
                                                    int v13_4;
                                                    boolean v24_1 = v9_73;
                                                    String v26_2 = v13_40;
                                                    long v37_1 = v14_18;
                                                    if (v5_16 == null) {
                                                        v13_4 = v26_2;
                                                    } else {
                                                        v13_4 = v26_2;
                                                        int v14_5 = v37_1;
                                                        com.google.android.gms.measurement.internal.zzfk v5_0 = 0;
                                                        while (v5_0 < v13_4) {
                                                            long v6_3 = v3_8.zzaxu[v5_0];
                                                            if (!"_e".equals(v6_3.name)) {
                                                                if (v4_7 != null) {
                                                                    this.zzjr();
                                                                    long v6_4 = com.google.android.gms.measurement.internal.zzfq.zza(v6_3, "_et");
                                                                    if (v6_4 != 0) {
                                                                        long v6_5 = v6_4.zzaxq;
                                                                        if ((v6_5 != 0) && (v6_5.longValue() > 0)) {
                                                                            v14_5 += v6_5.longValue();
                                                                        }
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzjr();
                                                                if (com.google.android.gms.measurement.internal.zzfq.zza(v6_3, "_fr") == null) {
                                                                } else {
                                                                    System.arraycopy(v3_8.zzaxu, (v5_0 + 1), v3_8.zzaxu, v5_0, ((v13_4 - v5_0) - 1));
                                                                    v13_4--;
                                                                    v5_0--;
                                                                }
                                                            }
                                                            v5_0++;
                                                        }
                                                        v37_1 = v14_5;
                                                    }
                                                    if (v13_4 < v2_0.zzauv.size()) {
                                                        v3_8.zzaxu = ((com.google.android.gms.internal.measurement.zzgi[]) java.util.Arrays.copyOf(v3_8.zzaxu, v13_4));
                                                    }
                                                    if (v4_7 != null) {
                                                        String v4_12;
                                                        String v4_9 = this.zzjt().zzi(v3_8.zztt, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.measurement.internal.zzft;
                                                            v4_12(v3_8.zztt, "auto", "_lte", this.zzadp.zzbx().currentTimeMillis(), Long.valueOf(v37_1));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                com.google.android.gms.measurement.internal.zzfk v5_24 = new com.google.android.gms.measurement.internal.zzft;
                                                                v5_24(v3_8.zztt, "auto", "_lte", this.zzadp.zzbx().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v37_1)));
                                                                v4_12 = v5_24;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.measurement.internal.zzfk v5_27 = new com.google.android.gms.internal.measurement.zzgo();
                                                        v5_27.name = "_lte";
                                                        v5_27.zzazg = Long.valueOf(this.zzadp.zzbx().currentTimeMillis());
                                                        v5_27.zzaxq = ((Long) v4_12.value);
                                                        long v6_42 = 0;
                                                        while (v6_42 < v3_8.zzaxv.length) {
                                                            if (!"_lte".equals(v3_8.zzaxv[v6_42].name)) {
                                                                v6_42++;
                                                            } else {
                                                                v3_8.zzaxv[v6_42] = v5_27;
                                                                long v6_43 = 1;
                                                            }
                                                            if (v6_43 == 0) {
                                                                v3_8.zzaxv = ((com.google.android.gms.internal.measurement.zzgo[]) java.util.Arrays.copyOf(v3_8.zzaxv, (v3_8.zzaxv.length + 1)));
                                                                v3_8.zzaxv[(v2_0.zzaut.zzaxv.length - 1)] = v5_27;
                                                            }
                                                            if (v37_1 > 0) {
                                                                this.zzjt().zza(v4_12);
                                                                this.zzadp.zzgt().zzjn().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_43 = 0;
                                                    }
                                                    String v1_6;
                                                    android.database.sqlite.SQLiteException v50_1;
                                                    String v4_14 = v3_8.zztt;
                                                    com.google.android.gms.measurement.internal.zzfk v5_33 = v3_8.zzaxv;
                                                    long v6_49 = v3_8.zzaxu;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v4_14);
                                                    v3_8.zzaym = this.zzjs().zza(v4_14, v6_49, v5_33);
                                                    try {
                                                        if (!this.zzadp.zzgv().zzav(v2_0.zzaut.zztt)) {
                                                            v50_1 = v2_0;
                                                            v1_6 = v3_8;
                                                        } else {
                                                            String v4_20 = new java.util.HashMap();
                                                            com.google.android.gms.measurement.internal.zzfk v5_38 = new com.google.android.gms.internal.measurement.zzgi[v3_8.zzaxu.length];
                                                            long v6_1 = this.zzadp.zzgr().zzmk();
                                                            String v7_8 = v3_8.zzaxu;
                                                            Boolean v8_11 = v7_8.length;
                                                            Long v9_1 = 0;
                                                            boolean v10_0 = 0;
                                                            while (v9_1 < v8_11) {
                                                                long v42;
                                                                int v49;
                                                                String v45;
                                                                android.database.sqlite.SQLiteException v50_0;
                                                                boolean v43;
                                                                Long v44;
                                                                int v11_71 = v7_8[v9_1];
                                                                if (!v11_71.name.equals("_ep")) {
                                                                    com.google.android.gms.measurement.internal.zzaa v3_41;
                                                                    Boolean v46;
                                                                    int v12_70 = this.zzls().zzcm(v2_0.zzaut.zztt);
                                                                    v1_0.zzadp.zzgr();
                                                                    int v14_35 = com.google.android.gms.measurement.internal.zzfu.zzc(v11_71.zzaxn.longValue(), v12_70);
                                                                    v42 = v7_8;
                                                                    v43 = v8_11;
                                                                    Boolean v8_92 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v8_92 != null)) {
                                                                        v44 = v3_8;
                                                                        com.google.android.gms.measurement.internal.zzaa v3_29 = v11_71.zzaxm;
                                                                        v45 = v9_1;
                                                                        Long v9_98 = v3_29.length;
                                                                        v46 = v12_70;
                                                                        int v12_71 = 0;
                                                                        while (v12_71 < v9_98) {
                                                                            int v13_56 = v3_29[v12_71];
                                                                            if (!"_dbg".equals(v13_56.name)) {
                                                                                v12_71++;
                                                                            } else {
                                                                                if (((!(v8_92 instanceof Long)) || (!v8_92.equals(v13_56.zzaxq))) && (((!(v8_92 instanceof String)) || (!v8_92.equals(v13_56.zzamw))) && ((!(v8_92 instanceof Double)) || (!v8_92.equals(v13_56.zzava))))) {
                                                                                    break;
                                                                                }
                                                                                v3_41 = 1;
                                                                            }
                                                                        }
                                                                        v3_41 = 0;
                                                                    } else {
                                                                        v44 = v3_8;
                                                                        v45 = v9_1;
                                                                        v46 = v12_70;
                                                                    }
                                                                    int v12_72;
                                                                    if (v3_41 != null) {
                                                                        v12_72 = 1;
                                                                    } else {
                                                                        v12_72 = this.zzls().zzq(v2_0.zzaut.zztt, v11_71.name);
                                                                    }
                                                                    if (v12_72 > 0) {
                                                                        com.google.android.gms.measurement.internal.zzaa v3_1 = ((com.google.android.gms.measurement.internal.zzaa) v4_20.get(v11_71.name));
                                                                        if (v3_1 == null) {
                                                                            v3_1 = this.zzjt().zzg(v2_0.zzaut.zztt, v11_71.name);
                                                                            if (v3_1 == null) {
                                                                                v1_0.zzadp.zzgt().zzjj().zze("Event being bundled has no eventAggregate. appId, eventName", v2_0.zzaut.zztt, v11_71.name);
                                                                                v3_1 = new com.google.android.gms.measurement.internal.zzaa;
                                                                                v3_1(v2_0.zzaut.zztt, v11_71.name, 1, 1, v11_71.zzaxn.longValue(), 0, 0, 0, 0, 0);
                                                                            }
                                                                        }
                                                                        Boolean v8_98;
                                                                        this.zzjr();
                                                                        String v7_77 = ((Long) com.google.android.gms.measurement.internal.zzfq.zzb(v11_71, "_eid"));
                                                                        if (v7_77 == null) {
                                                                            v8_98 = 0;
                                                                        } else {
                                                                            v8_98 = 1;
                                                                        }
                                                                        Boolean v8_99 = Boolean.valueOf(v8_98);
                                                                        if (v12_72 != 1) {
                                                                            if (v6_1.nextInt(v12_72) != 0) {
                                                                                v49 = v6_1;
                                                                                String v1_20;
                                                                                String v51;
                                                                                if (!v1_0.zzadp.zzgv().zzbh(v2_0.zzaut.zztt)) {
                                                                                    v50_0 = v2_0;
                                                                                    v51 = v7_77;
                                                                                    if (Math.abs((v11_71.zzaxn.longValue() - v3_1.zzaik)) < 86400000) {
                                                                                        v1_20 = 0;
                                                                                    } else {
                                                                                        v1_20 = 1;
                                                                                    }
                                                                                } else {
                                                                                    long v18_6;
                                                                                    if (v3_1.zzail == null) {
                                                                                        v1_0.zzadp.zzgr();
                                                                                        v50_0 = v2_0;
                                                                                        v51 = v7_77;
                                                                                        v18_6 = com.google.android.gms.measurement.internal.zzfu.zzc(v11_71.zzaxo.longValue(), v46);
                                                                                    } else {
                                                                                        v18_6 = v3_1.zzail.longValue();
                                                                                        v50_0 = v2_0;
                                                                                        v51 = v7_77;
                                                                                    }
                                                                                    if (v18_6 == v14_35) {
                                                                                    }
                                                                                }
                                                                                if (v1_20 == null) {
                                                                                    if (v8_99.booleanValue()) {
                                                                                        v4_20.put(v11_71.name, v3_1.zza(v51, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzjr();
                                                                                    v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_efs", Long.valueOf(1));
                                                                                    this.zzjr();
                                                                                    long v6_96 = ((long) v12_72);
                                                                                    v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_sr", Long.valueOf(v6_96));
                                                                                    String v1_27 = (v10_0 + 1);
                                                                                    v5_38[v10_0] = v11_71;
                                                                                    if (v8_99.booleanValue()) {
                                                                                        v3_1 = v3_1.zza(0, Long.valueOf(v6_96), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_20.put(v11_71.name, v3_1.zza(v11_71.zzaxn.longValue(), v14_35));
                                                                                    v10_0 = v1_27;
                                                                                }
                                                                            } else {
                                                                                this.zzjr();
                                                                                int v12_73 = ((long) v12_72);
                                                                                v49 = v6_1;
                                                                                v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_sr", Long.valueOf(v12_73));
                                                                                long v6_0 = (v10_0 + 1);
                                                                                v5_38[v10_0] = v11_71;
                                                                                if (v8_99.booleanValue()) {
                                                                                    v3_1 = v3_1.zza(0, Long.valueOf(v12_73), 0);
                                                                                }
                                                                                v4_20.put(v11_71.name, v3_1.zza(v11_71.zzaxn.longValue(), v14_35));
                                                                                v50_0 = v2_0;
                                                                                v10_0 = v6_0;
                                                                            }
                                                                        } else {
                                                                            String v7_4 = (v10_0 + 1);
                                                                            v5_38[v10_0] = v11_71;
                                                                            if ((v8_99.booleanValue()) && ((v3_1.zzaim != null) || ((v3_1.zzain != null) || (v3_1.zzaio != null)))) {
                                                                                v4_20.put(v11_71.name, v3_1.zza(0, 0, 0));
                                                                            }
                                                                            v50_0 = v2_0;
                                                                            v49 = v6_1;
                                                                            v10_0 = v7_4;
                                                                        }
                                                                    } else {
                                                                        v1_0.zzadp.zzgt().zzjj().zze("Sample rate must be positive. event, rate", v11_71.name, Integer.valueOf(v12_72));
                                                                        com.google.android.gms.measurement.internal.zzaa v3_7 = (v10_0 + 1);
                                                                        v5_38[v10_0] = v11_71;
                                                                        v50_0 = v2_0;
                                                                        v10_0 = v3_7;
                                                                        v49 = v6_1;
                                                                    }
                                                                } else {
                                                                    this.zzjr();
                                                                    int v12_2 = ((String) com.google.android.gms.measurement.internal.zzfq.zzb(v11_71, "_en"));
                                                                    int v13_1 = ((com.google.android.gms.measurement.internal.zzaa) v4_20.get(v12_2));
                                                                    if (v13_1 == 0) {
                                                                        v13_1 = this.zzjt().zzg(v2_0.zzaut.zztt, v12_2);
                                                                        v4_20.put(v12_2, v13_1);
                                                                    }
                                                                    if (v13_1.zzaim != null) {
                                                                        v50_0 = v2_0;
                                                                        v44 = v3_8;
                                                                        v49 = v6_1;
                                                                        v42 = v7_8;
                                                                        v43 = v8_11;
                                                                        v45 = v9_1;
                                                                    } else {
                                                                        if (v13_1.zzain.longValue() > 1) {
                                                                            this.zzjr();
                                                                            v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_sr", v13_1.zzain);
                                                                        }
                                                                        if ((v13_1.zzaio != null) && (v13_1.zzaio.booleanValue())) {
                                                                            this.zzjr();
                                                                            v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_efs", Long.valueOf(1));
                                                                        }
                                                                        int v12_13 = (v10_0 + 1);
                                                                        v5_38[v10_0] = v11_71;
                                                                        v50_0 = v2_0;
                                                                        v44 = v3_8;
                                                                        v49 = v6_1;
                                                                        v42 = v7_8;
                                                                        v43 = v8_11;
                                                                        v45 = v9_1;
                                                                        v10_0 = v12_13;
                                                                    }
                                                                }
                                                                v9_1 = (v45 + 1);
                                                                v7_8 = v42;
                                                                v8_11 = v43;
                                                                v3_8 = v44;
                                                                v6_1 = v49;
                                                                v2_0 = v50_0;
                                                                v1_0 = this;
                                                            }
                                                            v50_1 = v2_0;
                                                            v1_6 = v3_8;
                                                            if (v10_0 < v1_6.zzaxu.length) {
                                                                v1_6.zzaxu = ((com.google.android.gms.internal.measurement.zzgi[]) java.util.Arrays.copyOf(v5_38, v10_0));
                                                            }
                                                            int v2_9 = v4_20.entrySet().iterator();
                                                            while (v2_9.hasNext()) {
                                                                this.zzjt().zza(((com.google.android.gms.measurement.internal.zzaa) ((java.util.Map$Entry) v2_9.next()).getValue()));
                                                            }
                                                        }
                                                        try {
                                                            v1_6.zzaxx = Long.valueOf(nan);
                                                            v1_6.zzaxy = Long.valueOf(-0.0);
                                                            int v2_14 = 0;
                                                        } catch (android.database.sqlite.SQLiteException v0_5) {
                                                            String v1_1 = v0_5;
                                                            this.zzjt().endTransaction();
                                                            throw v1_1;
                                                        }
                                                        while (v2_14 < v1_6.zzaxu.length) {
                                                            com.google.android.gms.measurement.internal.zzaa v3_23 = v1_6.zzaxu[v2_14];
                                                            if (v3_23.zzaxn.longValue() < v1_6.zzaxx.longValue()) {
                                                                v1_6.zzaxx = v3_23.zzaxn;
                                                            }
                                                            if (v3_23.zzaxn.longValue() > v1_6.zzaxy.longValue()) {
                                                                v1_6.zzaxy = v3_23.zzaxn;
                                                            }
                                                            v2_14++;
                                                        }
                                                        int v2_15 = v50_1;
                                                        com.google.android.gms.measurement.internal.zzfk v5_39;
                                                        com.google.android.gms.measurement.internal.zzaa v3_20 = v2_15.zzaut.zztt;
                                                        String v4_22 = this.zzjt().zzbo(v3_20);
                                                        if (v4_22 != null) {
                                                            v5_39 = this;
                                                            if (v1_6.zzaxu.length > 0) {
                                                                Boolean v8_86;
                                                                long v6_54 = v4_22.zzhe();
                                                                if (v6_54 == 0) {
                                                                    v8_86 = 0;
                                                                } else {
                                                                    v8_86 = Long.valueOf(v6_54);
                                                                }
                                                                v1_6.zzaya = v8_86;
                                                                Boolean v8_87 = v4_22.zzhd();
                                                                if (v8_87 != 0) {
                                                                    v6_54 = v8_87;
                                                                } else {
                                                                }
                                                                long v6_55;
                                                                if (v6_54 == 0) {
                                                                    v6_55 = 0;
                                                                } else {
                                                                    v6_55 = Long.valueOf(v6_54);
                                                                }
                                                                v1_6.zzaxz = v6_55;
                                                                v4_22.zzhm();
                                                                v1_6.zzayk = Integer.valueOf(((int) v4_22.zzhj()));
                                                                v4_22.zzs(v1_6.zzaxx.longValue());
                                                                v4_22.zzt(v1_6.zzaxy.longValue());
                                                                v1_6.zzagy = v4_22.zzhu();
                                                                this.zzjt().zza(v4_22);
                                                            }
                                                        } else {
                                                            v5_39 = this;
                                                            this.zzadp.zzgt().zzjg().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_15.zzaut.zztt));
                                                        }
                                                        if (v1_6.zzaxu.length > 0) {
                                                            v5_39.zzadp.zzgw();
                                                            String v4_30 = this.zzls().zzci(v2_15.zzaut.zztt);
                                                            if (v4_30 == null) {
                                                                if (!android.text.TextUtils.isEmpty(v2_15.zzaut.zzafx)) {
                                                                    v5_39.zzadp.zzgt().zzjj().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_15.zzaut.zztt));
                                                                } else {
                                                                    v1_6.zzayr = Long.valueOf(-1);
                                                                }
                                                            } else {
                                                                if (v4_30.zzawx != null) {
                                                                    v1_6.zzayr = v4_30.zzawx;
                                                                } else {
                                                                }
                                                            }
                                                            this.zzjt().zza(v1_6, v24_1);
                                                        }
                                                        String v1_7 = this.zzjt();
                                                        int v2_16 = v2_15.zzauu;
                                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_16);
                                                        v1_7.zzaf();
                                                        v1_7.zzcl();
                                                        String v4_41 = new StringBuilder("rowid in (");
                                                        long v6_72 = 0;
                                                        while (v6_72 < v2_16.size()) {
                                                            if (v6_72 != 0) {
                                                                v4_41.append(",");
                                                            }
                                                            v4_41.append(((Long) v2_16.get(v6_72)).longValue());
                                                            v6_72++;
                                                        }
                                                        v4_41.append(")");
                                                        String v4_43 = v1_7.getWritableDatabase().delete("raw_events", v4_41.toString(), 0);
                                                        if (v4_43 != v2_16.size()) {
                                                            v1_7.zzgt().zzjg().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v4_43), Integer.valueOf(v2_16.size()));
                                                        }
                                                        String v1_10 = this.zzjt();
                                                        int v2_19 = v1_10.getWritableDatabase();
                                                        try {
                                                            long v6_78 = new String[2];
                                                            v6_78[0] = v3_20;
                                                            v6_78[1] = v3_20;
                                                            v2_19.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_78);
                                                        } catch (android.database.sqlite.SQLiteException v0_7) {
                                                            v1_10.zzgt().zzjg().zze("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_20), v0_7);
                                                        }
                                                        this.zzjt().setTransactionSuccessful();
                                                        this.zzjt().endTransaction();
                                                        return 1;
                                                    } catch (android.database.sqlite.SQLiteException v0_3) {
                                                        v1_1 = v0_3;
                                                    }
                                                }
                                            } else {
                                                v8_7.close();
                                            }
                                        }
                                        if (v8_7.moveToNext()) {
                                            v4_53.zzgt().zzjj().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9));
                                        }
                                        int v17_3;
                                        int v16_4;
                                        v8_7.close();
                                        v2_0.zzb(v13_34);
                                        if (v5_40 == -1) {
                                            long v6_16 = new String[2];
                                            v6_16[0] = v3_9;
                                            v6_16[1] = v7_3;
                                            v16_4 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_3 = v6_16;
                                        } else {
                                            int v14_24 = new String[3];
                                            v14_24[0] = v3_9;
                                            v14_24[1] = v7_3;
                                            v14_24[2] = String.valueOf(v5_40);
                                            v16_4 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_3 = v14_24;
                                        }
                                        boolean v15_9 = new String[4];
                                        v15_9[0] = "rowid";
                                        v15_9[1] = "name";
                                        v15_9[2] = "timestamp";
                                        v15_9[3] = "data";
                                        com.google.android.gms.measurement.internal.zzfk v5_9 = v23.query("raw_events", v15_9, v16_4, v17_3, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_9.moveToFirst()) {
                                                v4_53.zzgt().zzjj().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9));
                                                if (v5_9 == null) {
                                                } else {
                                                    v5_9.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v8_7 = v5_9;
                                            String v1_2 = v0_1;
                                            if (v8_7 != null) {
                                                v8_7.close();
                                            }
                                            throw v1_2;
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            v7_3 = v3_9;
                                            v8_7 = v5_9;
                                        }
                                        do {
                                            long v6_19 = v5_9.getLong(0);
                                            Long v9_92 = v5_9.getBlob(3);
                                            Boolean v8_74 = com.google.android.gms.internal.measurement.zzzi.zzj(v9_92, 0, v9_92.length);
                                            Long v9_94 = new com.google.android.gms.internal.measurement.zzgi();
                                            v9_94.zza(v8_74);
                                            v9_94.name = v5_9.getString(1);
                                            v9_94.zzaxn = Long.valueOf(v5_9.getLong(2));
                                            if (v2_0.zza(v6_19, v9_94)) {
                                            } else {
                                                if (v5_9 == null) {
                                                } else {
                                                    v5_9.close();
                                                }
                                            }
                                        } while(v5_9.moveToNext());
                                        if (v5_9 == null) {
                                        } else {
                                            v5_9.close();
                                        }
                                    } else {
                                        v4_53.zzgt().zzjg().zzg("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9));
                                        if (v8_7 == null) {
                                        } else {
                                            v8_7.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v7_3 = v3_9;
                                }
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v8_7 = v22;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v7_3 = v3_9;
                                v8_7 = v22;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    } else {
                        try {
                            int v13_52;
                            if (v5_40 == -1) {
                                v13_52 = new String[1];
                                v13_52[0] = String.valueOf(p54);
                            } else {
                                v13_52 = new String[2];
                                v13_52[0] = String.valueOf(v5_40);
                                v13_52[1] = String.valueOf(p54);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                            v7_3 = 0;
                            v8_7 = 0;
                        }
                        int v14_36;
                        if (v5_40 == -1) {
                            v14_36 = "";
                        } else {
                            v14_36 = "rowid <= ? and ";
                        }
                        com.google.android.gms.measurement.internal.zzaa v3_50 = new StringBuilder((String.valueOf(v14_36).length() + 148));
                        v3_50.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_50.append(v14_36);
                        v3_50.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_9 = v15_7.rawQuery(v3_50.toString(), v13_52);
                        if (v3_9.moveToFirst()) {
                            String v7_7 = v3_9.getString(0);
                            try {
                                int v13_5 = v3_9.getString(1);
                                v3_9.close();
                                v22 = v3_9;
                                v3_9 = v7_7;
                                v7_3 = v13_5;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v8_7 = v3_9;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v8_7 = v3_9;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v8_7 = v3_9;
                    v7_3 = 0;
                }
                com.google.android.gms.measurement.internal.zzaa v3_0 = v0_2;
                v4_53.zzgt().zzjg().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v7_3), v3_0);
                if (v8_7 == null) {
                } else {
                    v8_7.close();
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v8_7 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v3_0 = v0_0;
                v7_3 = 0;
                v8_7 = 0;
            } catch (android.database.sqlite.SQLiteException v0_1) {
            }
        } catch (android.database.sqlite.SQLiteException v0_5) {
        }
    }

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


    final java.util.Map zzm(String p13, String p14)
    {
        this.zzcl();
        this.zzaf();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p14);
        java.util.Map v0_2 = new android.support.v4.util.ArrayMap();
        Integer v1_6 = this.getWritableDatabase();
        try {
            Object v4_0 = new String[2];
            v4_0[0] = "audience_id";
            v4_0[1] = "data";
            int v6_0 = new String[2];
            v6_0[0] = p13;
            v6_0[1] = p14;
            int v14_2 = v1_6.query("property_filters", v4_0, "app_id=? AND property_name=?", v6_0, 0, 0, 0);
            try {
                if (!v14_2.moveToFirst()) {
                    java.util.Map v0_3 = java.util.Collections.emptyMap();
                    if (v14_2 != 0) {
                        v14_2.close();
                    }
                    return v0_3;
                }
            } catch (java.util.Map v0_0) {
                this.zzgt().zzjg().zze("Database error querying filters. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p13), v0_0);
                if (v14_2 != 0) {
                    v14_2.close();
                }
                return 0;
            }
            do {
                Integer v1_1 = v14_2.getBlob(1);
                Integer v1_2 = com.google.android.gms.internal.measurement.zzzi.zzj(v1_1, 0, v1_1.length);
                com.google.android.gms.measurement.internal.zzas v2_2 = new com.google.android.gms.internal.measurement.zzgb();
                v2_2.zza(v1_2);
                Integer v1_4 = v14_2.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_2.moveToNext());
            if (v14_2 != 0) {
                v14_2.close();
            }
            return v0_2;
        } catch (Throwable v13_1) {
            v14_2 = 0;
            if (v14_2 != 0) {
                v14_2.close();
            }
            throw v13_1;
        } catch (java.util.Map v0_0) {
            v14_2 = 0;
        } catch (Throwable v13_1) {
        }
    }

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


    final java.util.Map zzl(String p13, String p14)
    {
        this.zzcl();
        this.zzaf();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p14);
        java.util.Map v0_2 = new android.support.v4.util.ArrayMap();
        Integer v1_6 = this.getWritableDatabase();
        try {
            Object v4_0 = new String[2];
            v4_0[0] = "audience_id";
            v4_0[1] = "data";
            int v6_0 = new String[2];
            v6_0[0] = p13;
            v6_0[1] = p14;
            int v14_2 = v1_6.query("event_filters", v4_0, "app_id=? AND event_name=?", v6_0, 0, 0, 0);
            try {
                if (!v14_2.moveToFirst()) {
                    java.util.Map v0_3 = java.util.Collections.emptyMap();
                    if (v14_2 != 0) {
                        v14_2.close();
                    }
                    return v0_3;
                }
            } catch (java.util.Map v0_0) {
                this.zzgt().zzjg().zze("Database error querying filters. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p13), v0_0);
                if (v14_2 != 0) {
                    v14_2.close();
                }
                return 0;
            }
            do {
                Integer v1_1 = v14_2.getBlob(1);
                Integer v1_2 = com.google.android.gms.internal.measurement.zzzi.zzj(v1_1, 0, v1_1.length);
                com.google.android.gms.measurement.internal.zzas v2_2 = new com.google.android.gms.internal.measurement.zzfy();
                v2_2.zza(v1_2);
                Integer v1_4 = v14_2.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_2.moveToNext());
            if (v14_2 != 0) {
                v14_2.close();
            }
            return v0_2;
        } catch (Throwable v13_1) {
            v14_2 = 0;
            if (v14_2 != 0) {
                v14_2.close();
            }
            throw v13_1;
        } catch (java.util.Map v0_0) {
            v14_2 = 0;
        } catch (Throwable v13_1) {
        }
    }

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


    public final com.google.android.gms.measurement.internal.zzm zzj(String p33, String p34)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p33);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p34);
        this.zzaf();
        this.zzcl();
        try {
            int v9_1 = this.getWritableDatabase();
            Object v11_0 = new String[11];
            v11_0[0] = "origin";
            v11_0[1] = "value";
            v11_0[2] = "active";
            v11_0[3] = "trigger_event_name";
            v11_0[4] = "trigger_timeout";
            v11_0[5] = "timed_out_event";
            v11_0[6] = "creation_timestamp";
            v11_0[7] = "triggered_event";
            v11_0[8] = "triggered_timestamp";
            v11_0[9] = "time_to_live";
            v11_0[10] = "expired_event";
            String[] v13_1 = new String[2];
            v13_1[0] = p33;
            v13_1[1] = p34;
            int v9_0 = v9_1.query("conditional_properties", v11_0, "app_id=? and name=?", v13_1, 0, 0, 0);
            try {
                if (v9_0.moveToFirst()) {
                    String v19 = v9_0.getString(0);
                    try {
                        int v23;
                        Object v11_1 = this.zza(v9_0, 1);
                    } catch (com.google.android.gms.measurement.internal.zzm v0_9) {
                        this.zzgt().zzjg().zzd("Error querying conditional property", com.google.android.gms.measurement.internal.zzaq.zzby(p33), this.zzgq().zzbx(p34), v0_9);
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        return 0;
                    }
                    if (v9_0.getInt(2) == 0) {
                        v23 = 0;
                    } else {
                        v23 = 1;
                    }
                    String v24 = v9_0.getString(3);
                    long v26 = v9_0.getLong(4);
                    com.google.android.gms.measurement.internal.zzae v25_1 = ((com.google.android.gms.measurement.internal.zzae) this.zzjr().zza(v9_0.getBlob(5), com.google.android.gms.measurement.internal.zzae.CREATOR));
                    long v21 = v9_0.getLong(6);
                    com.google.android.gms.measurement.internal.zzae v28_1 = ((com.google.android.gms.measurement.internal.zzae) this.zzjr().zza(v9_0.getBlob(7), com.google.android.gms.measurement.internal.zzae.CREATOR));
                    Object v3_0 = v9_0.getLong(8);
                    long v29 = v9_0.getLong(9);
                    com.google.android.gms.measurement.internal.zzae v31_1 = ((com.google.android.gms.measurement.internal.zzae) this.zzjr().zza(v9_0.getBlob(10), com.google.android.gms.measurement.internal.zzae.CREATOR));
                    com.google.android.gms.measurement.internal.zzfr v20 = new com.google.android.gms.measurement.internal.zzfr;
                    v20(p34, v3_0, v11_1, v19);
                    com.google.android.gms.measurement.internal.zzm v0_7 = new com.google.android.gms.measurement.internal.zzm;
                    v0_7(p33, v19, v20, v21, v23, v24, v25_1, v26, v28_1, v29, v31_1);
                    if (v9_0.moveToNext()) {
                        this.zzgt().zzjg().zze("Got multiple records for conditional property, expected one", com.google.android.gms.measurement.internal.zzaq.zzby(p33), this.zzgq().zzbx(p34));
                    }
                    if (v9_0 != 0) {
                        v9_0.close();
                    }
                    return v0_7;
                } else {
                    if (v9_0 != 0) {
                        v9_0.close();
                    }
                    return 0;
                }
            } catch (com.google.android.gms.measurement.internal.zzm v0_10) {
                if (v9_0 != 0) {
                    v9_0.close();
                }
                throw v0_10;
            } catch (com.google.android.gms.measurement.internal.zzm v0_9) {
            }
        } catch (com.google.android.gms.measurement.internal.zzm v0_10) {
            v9_0 = 0;
        } catch (com.google.android.gms.measurement.internal.zzm v0_9) {
            v9_0 = 0;
        } catch (com.google.android.gms.measurement.internal.zzm v0_10) {
        }
    }

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


    public final com.google.android.gms.measurement.internal.zzft zzi(String p19, String p20)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p19);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p20);
        this.zzaf();
        this.zzcl();
        try {
            int v10_1 = this.getWritableDatabase();
            String[] v12 = new String[3];
            v12[0] = "set_timestamp";
            v12[1] = "value";
            v12[2] = "origin";
            String[] v14 = new String[2];
            v14[0] = p19;
            v14[1] = p20;
            int v10_0 = v10_1.query("user_attributes", v12, "app_id=? and name=?", v14, 0, 0, 0);
            try {
                if (v10_0.moveToFirst()) {
                    try {
                        android.database.sqlite.SQLiteException v0_6 = new com.google.android.gms.measurement.internal.zzft;
                        v0_6(p19, v10_0.getString(2), p20, v10_0.getLong(0), this.zza(v10_0, 1));
                    } catch (android.database.sqlite.SQLiteException v0_3) {
                        this.zzgt().zzjg().zzd("Error querying user property. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p19), this.zzgq().zzbx(p20), v0_3);
                        if (v10_0 != 0) {
                            v10_0.close();
                        }
                        return 0;
                    }
                    if (v10_0.moveToNext()) {
                        this.zzgt().zzjg().zzg("Got multiple records for user property, expected one. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p19));
                    }
                    if (v10_0 != 0) {
                        v10_0.close();
                    }
                    return v0_6;
                } else {
                    if (v10_0 != 0) {
                        v10_0.close();
                    }
                    return 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_4) {
                if (v10_0 != 0) {
                    v10_0.close();
                }
                throw v0_4;
            } catch (android.database.sqlite.SQLiteException v0_3) {
            }
        } catch (android.database.sqlite.SQLiteException v0_4) {
            v10_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_3) {
            v10_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_4) {
        }
    }

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


    public final com.google.android.gms.measurement.internal.zzaa zzg(String p23, String p24)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p23);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p24);
        this.zzaf();
        this.zzcl();
        try {
            String v1_9 = this.getWritableDatabase();
            String v3_0 = new String[8];
            int v9 = 0;
            v3_0[0] = "lifetime_count";
            v3_0[1] = "current_bundle_count";
            v3_0[2] = "last_fire_timestamp";
            v3_0[3] = "last_bundled_timestamp";
            v3_0[4] = "last_bundled_day";
            v3_0[5] = "last_sampled_complex_event_id";
            v3_0[6] = "last_sampling_rate";
            v3_0[7] = "last_exempt_from_sampling";
            String v5_1 = new String[2];
            v5_1[0] = p23;
            v5_1[1] = p24;
            long v8_3 = v1_9.query("events", v3_0, "app_id=? and name=?", v5_1, 0, 0, 0);
            try {
                if (v8_3.moveToFirst()) {
                    String v1_7;
                    long v4_3 = v8_3.getLong(0);
                    long v6_1 = v8_3.getLong(1);
                    long v19 = v8_3.getLong(2);
                    if (!v8_3.isNull(3)) {
                        v1_7 = v8_3.getLong(3);
                    } else {
                        v1_7 = 0;
                    }
                    long v11_1 = v1_7;
                    Long v13_2;
                    if (!v8_3.isNull(4)) {
                        v13_2 = Long.valueOf(v8_3.getLong(4));
                    } else {
                        v13_2 = 0;
                    }
                    Long v14_2;
                    if (!v8_3.isNull(5)) {
                        v14_2 = Long.valueOf(v8_3.getLong(5));
                    } else {
                        v14_2 = 0;
                    }
                    com.google.android.gms.measurement.internal.zzas v0_17;
                    if (!v8_3.isNull(6)) {
                        v0_17 = Long.valueOf(v8_3.getLong(6));
                    } else {
                        v0_17 = 0;
                    }
                    Boolean v17_1;
                    if (v8_3.isNull(7)) {
                        v17_1 = 0;
                    } else {
                        if (v8_3.getLong(7) == 1) {
                            v9 = 1;
                        }
                        v17_1 = Boolean.valueOf(v9);
                    }
                    com.google.android.gms.measurement.internal.zzaa v18 = new com.google.android.gms.measurement.internal.zzaa;
                    android.database.Cursor v21 = v8_3;
                    try {
                        v18(p23, p24, v4_3, v6_1, v19, v11_1, v13_2, v14_2, v0_17, v17_1);
                    } catch (com.google.android.gms.measurement.internal.zzas v0_0) {
                        this.zzgt().zzjg().zzd("Error querying events. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p23), this.zzgq().zzbv(p24), v0_0);
                        if (v21 != null) {
                            v21.close();
                        }
                        return 0;
                    }
                    if (v21.moveToNext()) {
                        this.zzgt().zzjg().zzg("Got multiple records for event aggregates, expected one. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p23));
                    }
                    if (v21 != null) {
                        v21.close();
                    }
                    return v18;
                } else {
                    if (v8_3 != 0) {
                        v8_3.close();
                    }
                    return 0;
                }
            } catch (com.google.android.gms.measurement.internal.zzas v0_1) {
                v21 = v8_3;
                if (v21 != null) {
                    v21.close();
                }
                throw v0_1;
            } catch (com.google.android.gms.measurement.internal.zzas v0_0) {
                v21 = v8_3;
            }
        } catch (com.google.android.gms.measurement.internal.zzas v0_1) {
            v21 = 0;
        } catch (com.google.android.gms.measurement.internal.zzas v0_0) {
            v21 = 0;
        } catch (com.google.android.gms.measurement.internal.zzas v0_1) {
        }
    }

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


    final java.util.Map zzbr(String p12)
    {
        this.zzcl();
        this.zzaf();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p12);
        int v0_1 = this.getWritableDatabase();
        try {
            boolean v2_7 = new String[2];
            v2_7[0] = "audience_id";
            v2_7[1] = "current_results";
            com.google.android.gms.measurement.internal.zzas v4_0 = new String[1];
            v4_0[0] = p12;
            int v0_0 = v0_1.query("audience_filter_values", v2_7, "app_id=?", v4_0, 0, 0, 0);
            try {
                if (v0_0.moveToFirst()) {
                    android.support.v4.util.ArrayMap v1_3 = new android.support.v4.util.ArrayMap();
                    do {
                        boolean v2_0 = v0_0.getInt(0);
                        java.io.IOException v3_2 = v0_0.getBlob(1);
                        java.io.IOException v3_3 = com.google.android.gms.internal.measurement.zzzi.zzj(v3_2, 0, v3_2.length);
                        com.google.android.gms.measurement.internal.zzas v4_3 = new com.google.android.gms.internal.measurement.zzgm();
                        v4_3.zza(v3_3);
                        v1_3.put(Integer.valueOf(v2_0), v4_3);
                    } while(v0_0.moveToNext());
                    if (v0_0 != 0) {
                        v0_0.close();
                    }
                    return v1_3;
                } else {
                    if (v0_0 != 0) {
                        v0_0.close();
                    }
                    return 0;
                }
            } catch (android.support.v4.util.ArrayMap v1_0) {
                this.zzgt().zzjg().zze("Database error querying filter results. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p12), v1_0);
                if (v0_0 != 0) {
                    v0_0.close();
                }
                return 0;
            }
        } catch (Throwable v12_1) {
            v0_0 = 0;
            if (v0_0 != 0) {
                v0_0.close();
            }
            throw v12_1;
        } catch (android.support.v4.util.ArrayMap v1_0) {
            v0_0 = 0;
        } catch (Throwable v12_1) {
        }
    }

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


    public final byte[] zzbq(String p12)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p12);
        this.zzaf();
        this.zzcl();
        try {
            int v1_1 = this.getWritableDatabase();
            String v4_3 = new String[1];
            v4_3[0] = "remote_config";
            int v6_0 = new String[1];
            v6_0[0] = p12;
            int v1_0 = v1_1.query("apps", v4_3, "app_id=?", v6_0, 0, 0, 0);
            try {
                if (v1_0.moveToFirst()) {
                    byte[] v2_2 = v1_0.getBlob(0);
                    if (v1_0.moveToNext()) {
                        this.zzgt().zzjg().zzg("Got multiple records for app config, expected one. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p12));
                    }
                    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.zzgt().zzjg().zze("Error querying remote config. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p12), v2_0);
                if (v1_0 != 0) {
                    v1_0.close();
                }
                return 0;
            }
        } catch (Throwable v12_1) {
            v1_0 = 0;
            if (v1_0 != 0) {
                v1_0.close();
            }
            throw v12_1;
        } catch (byte[] v2_0) {
            v1_0 = 0;
        } catch (Throwable v12_1) {
        }
    }

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


    public final com.google.android.gms.measurement.internal.zzg zzbo(String p20)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p20);
        this.zzaf();
        this.zzcl();
        try {
            int v3_1 = this.getWritableDatabase();
            com.google.android.gms.measurement.internal.zzr v5_1 = new String[26];
            int v11 = 0;
            v5_1[0] = "app_instance_id";
            v5_1[1] = "gmp_app_id";
            v5_1[2] = "resettable_device_id_hash";
            v5_1[3] = "last_bundle_index";
            v5_1[4] = "last_bundle_start_timestamp";
            v5_1[5] = "last_bundle_end_timestamp";
            v5_1[6] = "app_version";
            v5_1[7] = "app_store";
            v5_1[8] = "gmp_version";
            v5_1[9] = "dev_cert_hash";
            v5_1[10] = "measurement_enabled";
            v5_1[11] = "day";
            v5_1[12] = "daily_public_events_count";
            v5_1[13] = "daily_events_count";
            v5_1[14] = "daily_conversions_count";
            v5_1[15] = "config_fetched_time";
            v5_1[16] = "failed_config_fetch_time";
            v5_1[17] = "app_version_int";
            v5_1[18] = "firebase_instance_id";
            v5_1[19] = "daily_error_events_count";
            v5_1[20] = "daily_realtime_events_count";
            v5_1[21] = "health_monitor_sample";
            v5_1[22] = "android_id";
            v5_1[23] = "adid_reporting_enabled";
            v5_1[24] = "ssaid_reporting_enabled";
            v5_1[25] = "admob_app_id";
            Object v7_2 = new String[1];
            v7_2[0] = p20;
            int v15 = 7;
            int v3_0 = v3_1.query("apps", v5_1, "app_id=?", v7_2, 0, 0, 0);
            try {
                if (v3_0.moveToFirst()) {
                    try {
                        com.google.android.gms.measurement.internal.zzas v0_12;
                        com.google.android.gms.measurement.internal.zzg v4_2 = new com.google.android.gms.measurement.internal.zzg(this.zzang.zzmh(), p20);
                        v4_2.zzal(v3_0.getString(0));
                        v4_2.zzam(v3_0.getString(1));
                        v4_2.zzao(v3_0.getString(2));
                        v4_2.zzx(v3_0.getLong(3));
                        v4_2.zzs(v3_0.getLong(4));
                        v4_2.zzt(v3_0.getLong(5));
                        v4_2.setAppVersion(v3_0.getString(6));
                        v4_2.zzaq(v3_0.getString(7));
                        v4_2.zzv(v3_0.getLong(8));
                        v4_2.zzw(v3_0.getLong(9));
                    } catch (com.google.android.gms.measurement.internal.zzas v0_1) {
                        this.zzgt().zzjg().zze("Error querying app. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p20), v0_1);
                        if (v3_0 != 0) {
                            v3_0.close();
                        }
                        return 0;
                    }
                    if (v3_0.isNull(10)) {
                        v0_12 = 1;
                    } else {
                        if (v3_0.getInt(10) == 0) {
                            v0_12 = 0;
                        } else {
                        }
                    }
                    String v6_19;
                    v4_2.setMeasurementEnabled(v0_12);
                    v4_2.zzaa(v3_0.getLong(11));
                    v4_2.zzab(v3_0.getLong(12));
                    v4_2.zzac(v3_0.getLong(13));
                    v4_2.zzad(v3_0.getLong(14));
                    v4_2.zzy(v3_0.getLong(15));
                    v4_2.zzz(v3_0.getLong(16));
                    if (!v3_0.isNull(17)) {
                        v6_19 = ((long) v3_0.getInt(17));
                    } else {
                        v6_19 = -2147483648;
                    }
                    String v6_23;
                    v4_2.zzu(v6_19);
                    v4_2.zzap(v3_0.getString(18));
                    v4_2.zzaf(v3_0.getLong(19));
                    v4_2.zzae(v3_0.getLong(20));
                    v4_2.zzar(v3_0.getString(21));
                    if (!v3_0.isNull(22)) {
                        v6_23 = v3_0.getLong(22);
                    } else {
                        v6_23 = 0;
                    }
                    com.google.android.gms.measurement.internal.zzas v0_32;
                    v4_2.zzag(v6_23);
                    if (v3_0.isNull(23)) {
                        v0_32 = 1;
                    } else {
                        if (v3_0.getInt(23) == 0) {
                            v0_32 = 0;
                        } else {
                        }
                    }
                    v4_2.zze(v0_32);
                    if ((v3_0.isNull(24)) || (v3_0.getInt(24) != 0)) {
                        v11 = 1;
                    }
                    v4_2.zzf(v11);
                    v4_2.zzan(v3_0.getString(25));
                    v4_2.zzha();
                    if (v3_0.moveToNext()) {
                        this.zzgt().zzjg().zzg("Got multiple records for app, expected one. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p20));
                    }
                    if (v3_0 != 0) {
                        v3_0.close();
                    }
                    return v4_2;
                } else {
                    if (v3_0 != 0) {
                        v3_0.close();
                    }
                    return 0;
                }
            } catch (com.google.android.gms.measurement.internal.zzas v0_2) {
                if (v3_0 != 0) {
                    v3_0.close();
                }
                throw v0_2;
            } catch (com.google.android.gms.measurement.internal.zzas v0_1) {
            }
        } catch (com.google.android.gms.measurement.internal.zzas v0_2) {
            v3_0 = 0;
        } catch (com.google.android.gms.measurement.internal.zzas v0_1) {
            v3_0 = 0;
        } catch (com.google.android.gms.measurement.internal.zzas v0_2) {
        }
    }

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


    public final java.util.List zzbn(String p23)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p23);
        this.zzaf();
        this.zzcl();
        android.database.sqlite.SQLiteException v0_3 = new java.util.ArrayList();
        try {
            int v2_1 = this.getWritableDatabase();
            boolean v4_0 = new String[4];
            v4_0[0] = "name";
            v4_0[1] = "origin";
            v4_0[2] = "set_timestamp";
            v4_0[3] = "value";
            Object v6_0 = new String[1];
            v6_0[0] = p23;
            int v2_0 = v2_1.query("user_attributes", v4_0, "app_id=?", v6_0, 0, 0, "rowid", "1000");
            try {
                if (!v2_0.moveToFirst()) {
                    if (v2_0 != 0) {
                        v2_0.close();
                    }
                    return v0_3;
                }
            } catch (android.database.sqlite.SQLiteException v0_2) {
                if (v2_0 != 0) {
                    v2_0.close();
                }
                throw v0_2;
            } catch (android.database.sqlite.SQLiteException v0_1) {
                this.zzgt().zzjg().zze("Error querying user properties. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p23), v0_1);
                if (v2_0 != 0) {
                    v2_0.close();
                }
                return 0;
            }
            do {
                String v18 = v2_0.getString(0);
                com.google.android.gms.measurement.internal.zzr v3_1 = v2_0.getString(1);
                if (v3_1 == null) {
                    v3_1 = "";
                }
                String v17 = v3_1;
                long v19 = v2_0.getLong(2);
                try {
                    Object v21 = this.zza(v2_0, 3);
                } catch (android.database.sqlite.SQLiteException v0_1) {
                }
                if (v21 != null) {
                    boolean v4_1 = new com.google.android.gms.measurement.internal.zzft;
                    v4_1(p23, v17, v18, v19, v21);
                    v0_3.add(v4_1);
                } else {
                    this.zzgt().zzjg().zzg("Read invalid user property value, ignoring it. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p23));
                }
            } while(v2_0.moveToNext());
            if (v2_0 != 0) {
                v2_0.close();
            }
            return v0_3;
        } catch (android.database.sqlite.SQLiteException v0_2) {
            v2_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_1) {
            v2_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_2) {
        }
    }

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


    public final java.util.List zzb(String p40, String[] p41)
    {
        this.zzaf();
        this.zzcl();
        Throwable v0_4 = new java.util.ArrayList();
        try {
            com.google.android.gms.measurement.internal.zzas v2_3 = this.getWritableDatabase();
            com.google.android.gms.measurement.internal.zzm v4_9 = new String[13];
            int v11_0 = 0;
            v4_9[0] = "app_id";
            v4_9[1] = "origin";
            v4_9[2] = "name";
            v4_9[3] = "value";
            v4_9[4] = "active";
            v4_9[5] = "trigger_event_name";
            v4_9[6] = "trigger_timeout";
            v4_9[7] = "timed_out_event";
            v4_9[8] = "creation_timestamp";
            v4_9[9] = "triggered_event";
            v4_9[10] = "triggered_timestamp";
            v4_9[11] = "time_to_live";
            v4_9[12] = "expired_event";
            int v1_3 = 5;
            com.google.android.gms.measurement.internal.zzas v2_2 = v2_3.query("conditional_properties", v4_9, p40, p41, 0, 0, "rowid", "1001");
            try {
                if (!v2_2.moveToFirst()) {
                    if (v2_2 != null) {
                        v2_2.close();
                    }
                    return v0_4;
                }
            } catch (Throwable v0_2) {
                if (v2_2 != null) {
                    v2_2.close();
                }
                throw v0_2;
            } catch (Throwable v0_0) {
                int v1_6 = v2_2;
                try {
                    this.zzgt().zzjg().zzg("Error querying conditional user property value", v0_0);
                    Throwable v0_1 = java.util.Collections.emptyList();
                } catch (Throwable v0_2) {
                    v2_2 = v1_6;
                }
                if (v1_6 != 0) {
                    v1_6.close();
                }
                return v0_1;
            }
            while (v0_4.size() < 1000) {
                int v22_1;
                String v3_5 = v2_2.getString(v11_0);
                String v10_2 = v2_2.getString(1);
                String v5_13 = v2_2.getString(2);
                Object v8_2 = this.zza(v2_2, 3);
                if (v2_2.getInt(4) == 0) {
                    v22_1 = 0;
                } else {
                    v22_1 = 1;
                }
                long v28_1 = v2_2.getString(v1_3);
                long v29 = v2_2.getLong(6);
                int v1_1 = ((com.google.android.gms.measurement.internal.zzae) this.zzjr().zza(v2_2.getBlob(7), com.google.android.gms.measurement.internal.zzae.CREATOR));
                long v20_0 = v2_2.getLong(8);
                com.google.android.gms.measurement.internal.zzae v27_1 = ((com.google.android.gms.measurement.internal.zzae) this.zzjr().zza(v2_2.getBlob(9), com.google.android.gms.measurement.internal.zzae.CREATOR));
                com.google.android.gms.measurement.internal.zzm v16_0 = v2_2.getLong(10);
                long v34 = v2_2.getLong(11);
                com.google.android.gms.measurement.internal.zzae v38_1 = ((com.google.android.gms.measurement.internal.zzae) this.zzjr().zza(v2_2.getBlob(12), com.google.android.gms.measurement.internal.zzae.CREATOR));
                com.google.android.gms.measurement.internal.zzfr v19_0 = new com.google.android.gms.measurement.internal.zzfr;
                int v32 = 7;
                int v36 = 10;
                v19_0(v5_13, v16_0, v8_2, v10_2);
                com.google.android.gms.measurement.internal.zzm v4_5 = new com.google.android.gms.measurement.internal.zzm;
                v4_5(v3_5, v10_2, v19_0, v20_0, v22_1, v28_1, v1_1, v29, v27_1, v34, v38_1);
                v0_4.add(v4_5);
                if (v2_2.moveToNext()) {
                    v1_3 = 5;
                    v11_0 = 0;
                }
                if (v2_2 != null) {
                    v2_2.close();
                }
                return v0_4;
            }
            this.zzgt().zzjg().zzg("Read more than the max allowed conditional properties, ignoring extra", Integer.valueOf(1000));
        } catch (Throwable v0_2) {
            v2_2 = 0;
        } catch (Throwable v0_0) {
            v1_6 = 0;
        }
    }

Method com.google.android.gms.measurement.internal.zzr.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.zzaf();
        this.zzcl();
        android.database.sqlite.SQLiteException v0_3 = new java.util.ArrayList();
        android.database.Cursor v1 = 0;
        try {
            int v3_1 = 3;
            android.database.Cursor v2_8 = new java.util.ArrayList(3);
            try {
                String v5_0;
                v2_8.add(p22);
                com.google.android.gms.measurement.internal.zzft v4_5 = new StringBuilder("app_id=?");
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v5_0 = p23;
                android.database.Cursor v2_7 = 0;
                this.zzgt().zzjg().zzd("(2)Error querying user properties", com.google.android.gms.measurement.internal.zzaq.zzby(p22), v5_0, v0_0);
                if (v2_7 != null) {
                    v2_7.close();
                }
                return 0;
            }
            if (android.text.TextUtils.isEmpty(p23)) {
                v5_0 = p23;
            } else {
                v5_0 = p23;
                v2_8.add(p23);
                v4_5.append(" and origin=?");
            }
            if (!android.text.TextUtils.isEmpty(p24)) {
                v2_8.add(String.valueOf(p24).concat("*"));
                v4_5.append(" and name glob ?");
            }
            String v6_8 = new String[v2_8.size()];
            String v16_2 = ((String[]) v2_8.toArray(v6_8));
            int v12_1 = this.getWritableDatabase();
            com.google.android.gms.measurement.internal.zzr v14_0 = new String[4];
            int v10_1 = 0;
            v14_0[0] = "name";
            int v8_1 = 1;
            v14_0[1] = "set_timestamp";
            int v9 = 2;
            v14_0[2] = "value";
            v14_0[3] = "origin";
            v2_7 = v12_1.query("user_attributes", v14_0, v4_5.toString(), v16_2, 0, 0, "rowid", "1001");
            try {
                if (!v2_7.moveToFirst()) {
                    if (v2_7 != null) {
                        v2_7.close();
                    }
                    return v0_3;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v1 = v2_7;
                if (v1 != null) {
                    v1.close();
                }
                throw v0_1;
            } catch (android.database.sqlite.SQLiteException v0_0) {
            }
            while (v0_3.size() < 1000) {
                Object v7_2 = v2_7.getString(v10_1);
                int v12_2 = v2_7.getLong(v8_1);
                try {
                    String v16_0;
                    Object v15_1 = this.zza(v2_7, v9);
                    String v6_10 = v2_7.getString(v3_1);
                } catch (android.database.sqlite.SQLiteException v0_0) {
                }
                if (v15_1 != null) {
                    try {
                        String v5_4 = new com.google.android.gms.measurement.internal.zzft;
                        int v3_6 = v5_4;
                        v16_0 = v6_10;
                        int v18 = 2;
                        try {
                            v5_4(p22, v6_10, v7_2, v12_2, v15_1);
                            v0_3.add(v3_6);
                        } catch (android.database.sqlite.SQLiteException v0_0) {
                            v5_0 = v16_0;
                        }
                    } catch (android.database.sqlite.SQLiteException v0_0) {
                        v16_0 = v6_10;
                    }
                } else {
                    try {
                        this.zzgt().zzjg().zzd("(2)Read invalid user property value, ignoring it", com.google.android.gms.measurement.internal.zzaq.zzby(p22), v6_10, p24);
                        v16_0 = v6_10;
                        int v17 = 1;
                    } catch (android.database.sqlite.SQLiteException v0_0) {
                        v5_0 = v6_10;
                    }
                }
                if (v2_7.moveToNext()) {
                    v5_0 = v16_0;
                    v3_1 = 3;
                    v8_1 = 1;
                    v9 = 2;
                    v10_1 = 0;
                }
                if (v2_7 != null) {
                    v2_7.close();
                }
                return v0_3;
            }
            this.zzgt().zzjg().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.measurement.internal.zzr.zzb() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzb(String p16, int p17, int p18)
    {
        java.util.ArrayList v4_4;
        this.zzaf();
        this.zzcl();
        if (p17 <= 0) {
            v4_4 = 0;
        } else {
            v4_4 = 1;
        }
        java.util.ArrayList v4_0;
        com.google.android.gms.common.internal.Preconditions.checkArgument(v4_4);
        if (p18 <= 0) {
            v4_0 = 0;
        } else {
            v4_0 = 1;
        }
        com.google.android.gms.common.internal.Preconditions.checkArgument(v4_0);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p16);
        java.util.ArrayList v4_1 = 0;
        try {
            int v5_1 = this.getWritableDatabase();
            java.io.IOException v7_1 = new String[3];
            v7_1[0] = "rowid";
            v7_1[1] = "data";
            v7_1[2] = "retry_count";
            Integer v9_0 = new String[1];
            v9_0[0] = p16;
            int v5_0 = v5_1.query("queue", v7_1, "app_id=?", v9_0, 0, 0, "rowid", String.valueOf(p17));
            try {
                if (v5_0.moveToFirst()) {
                    java.util.ArrayList v4_3 = new java.util.ArrayList();
                    int v6_1 = 0;
                    do {
                        java.io.IOException v7_2 = v5_0.getLong(0);
                        android.util.Pair v0_7 = this.zzjr().zza(v5_0.getBlob(1));
                        if ((!v4_3.isEmpty()) && ((v0_7.length + v6_1) > p18)) {
                            break;
                        }
                        Integer v9_7 = com.google.android.gms.internal.measurement.zzzi.zzj(v0_7, 0, v0_7.length);
                        com.google.android.gms.internal.measurement.zzgl v10_2 = new com.google.android.gms.internal.measurement.zzgl();
                        v10_2.zza(v9_7);
                        if (!v5_0.isNull(2)) {
                            v10_2.zzayv = Integer.valueOf(v5_0.getInt(2));
                        }
                        v6_1 += v0_7.length;
                        v4_3.add(android.util.Pair.create(v10_2, Long.valueOf(v7_2)));
                    } while((v5_0.moveToNext()) && (v6_1 <= p18));
                    if (v5_0 != 0) {
                        v5_0.close();
                    }
                    return v4_3;
                } else {
                    android.util.Pair v0_3 = java.util.Collections.emptyList();
                    if (v5_0 != 0) {
                        v5_0.close();
                    }
                    return v0_3;
                }
            } catch (android.util.Pair v0_1) {
                if (v5_0 != 0) {
                    v5_0.close();
                }
                throw v0_1;
            } catch (android.util.Pair v0_4) {
                v4_1 = v5_0;
                this.zzgt().zzjg().zze("Error querying bundles. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p16), v0_4);
                android.util.Pair v0_0 = java.util.Collections.emptyList();
                if (v4_1 != null) {
                    v4_1.close();
                }
                return v0_0;
            }
        } catch (android.util.Pair v0_1) {
            v5_0 = v4_1;
        } catch (android.util.Pair v0_4) {
        }
    }

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


    public final com.google.android.gms.measurement.internal.zzs zza(long p20, String p22, boolean p23, boolean p24, boolean p25, boolean p26, boolean p27)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p22);
        this.zzaf();
        this.zzcl();
        String v2_3 = new String[1];
        v2_3[0] = p22;
        com.google.android.gms.measurement.internal.zzs v4_1 = new com.google.android.gms.measurement.internal.zzs();
        try {
            android.database.sqlite.SQLiteDatabase v14 = this.getWritableDatabase();
            String[] v8 = new String[6];
            v8[0] = "day";
            v8[1] = "daily_events_count";
            v8[2] = "daily_public_events_count";
            v8[3] = "daily_conversions_count";
            v8[4] = "daily_error_events_count";
            v8[5] = "daily_realtime_events_count";
            String[] v10 = new String[1];
            v10[0] = p22;
            int v6_0 = v14.query("apps", v8, "app_id=?", v10, 0, 0, 0);
            try {
                if (v6_0.moveToFirst()) {
                    if (v6_0.getLong(0) == p20) {
                        v4_1.zzahu = v6_0.getLong(1);
                        v4_1.zzaht = v6_0.getLong(2);
                        v4_1.zzahv = v6_0.getLong(3);
                        v4_1.zzahw = v6_0.getLong(4);
                        v4_1.zzahx = v6_0.getLong(5);
                    }
                    if (p23) {
                        v4_1.zzahu = (v4_1.zzahu + 1);
                    }
                    if (p24) {
                        v4_1.zzaht = (v4_1.zzaht + 1);
                    }
                    if (p25) {
                        v4_1.zzahv = (v4_1.zzahv + 1);
                    }
                    if (p26) {
                        v4_1.zzahw = (v4_1.zzahw + 1);
                    }
                    if (p27) {
                        v4_1.zzahx = (v4_1.zzahx + 1);
                    }
                    android.content.ContentValues v0_2 = new android.content.ContentValues();
                    v0_2.put("day", Long.valueOf(p20));
                    v0_2.put("daily_public_events_count", Long.valueOf(v4_1.zzaht));
                    v0_2.put("daily_events_count", Long.valueOf(v4_1.zzahu));
                    v0_2.put("daily_conversions_count", Long.valueOf(v4_1.zzahv));
                    v0_2.put("daily_error_events_count", Long.valueOf(v4_1.zzahw));
                    v0_2.put("daily_realtime_events_count", Long.valueOf(v4_1.zzahx));
                    v14.update("apps", v0_2, "app_id=?", v2_3);
                    if (v6_0 != 0) {
                        v6_0.close();
                    }
                    return v4_1;
                } else {
                    this.zzgt().zzjj().zzg("Not updating daily counts, app is not known. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p22));
                    if (v6_0 != 0) {
                        v6_0.close();
                    }
                    return v4_1;
                }
            } catch (android.content.ContentValues v0_0) {
                if (v6_0 != 0) {
                    v6_0.close();
                }
                throw v0_0;
            } catch (android.content.ContentValues v0_6) {
                String v5_0 = v6_0;
                try {
                    this.zzgt().zzjg().zze("Error updating daily counts. appId", com.google.android.gms.measurement.internal.zzaq.zzby(p22), v0_6);
                } catch (android.content.ContentValues v0_0) {
                    v6_0 = v5_0;
                }
                if (v5_0 != null) {
                    v5_0.close();
                }
                return v4_1;
            }
        } catch (android.content.ContentValues v0_0) {
            v6_0 = 0;
        } catch (android.content.ContentValues v0_6) {
            v5_0 = 0;
        }
    }

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

Couldn't retrieve source code

Method com.google.firebase.database.android.SqlPersistenceStorageEngine.loadUserWrites() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List loadUserWrites()
    {
        StringBuilder v4_7 = new String[5];
        v4_7[0] = "id";
        v4_7[1] = "path";
        v4_7[2] = "type";
        v4_7[3] = "part";
        v4_7[4] = "node";
        long v15 = System.currentTimeMillis();
        android.database.Cursor v2_1 = this.database.query("writes", v4_7, 0, 0, 0, 0, "id, part");
        IllegalStateException v0_9 = new java.util.ArrayList();
        try {
            while (v2_1.moveToNext()) {
                StringBuilder v4_12;
                String v5_5 = v2_1.getLong(0);
                Object[] v7_3 = new com.google.firebase.database.core.Path(v2_1.getString(1));
                String v3_12 = v2_1.getString(2);
                if (!v2_1.isNull(3)) {
                    StringBuilder v4_11 = new java.util.ArrayList();
                    do {
                        v4_11.add(v2_1.getBlob(4));
                    } while((v2_1.moveToNext()) && (v2_1.getLong(0) == v5_5));
                    v2_1.moveToPrevious();
                    v4_12 = this.joinBytes(v4_11);
                } else {
                    v4_12 = v2_1.getBlob(4);
                }
                String v3_2;
                StringBuilder v4_13 = com.google.firebase.database.util.JsonMapper.parseJsonValue(new String(v4_12, com.google.firebase.database.android.SqlPersistenceStorageEngine.UTF8_CHARSET));
                if (!"o".equals(v3_12)) {
                    if (!"m".equals(v3_12)) {
                        StringBuilder v4_1 = new StringBuilder();
                        v4_1.append("Got invalid write type: ");
                        v4_1.append(v3_12);
                        throw new IllegalStateException(v4_1.toString());
                    } else {
                        v3_2 = new com.google.firebase.database.core.UserWriteRecord(v5_5, v7_3, com.google.firebase.database.core.CompoundWrite.fromValue(((java.util.Map) v4_13)));
                    }
                } else {
                    v3_2 = new com.google.firebase.database.core.UserWriteRecord;
                    v3_2(v5_5, v7_3, com.google.firebase.database.snapshot.NodeUtilities.NodeFromJSON(v4_13), 1);
                }
                v0_9.add(v3_2);
            }
        } catch (IllegalStateException v0_5) {
            v2_1.close();
            throw v0_5;
        } catch (IllegalStateException v0_4) {
            throw new RuntimeException("Failed to load writes", v0_4);
        }
        String v3_8 = (System.currentTimeMillis() - v15);
        if (this.logger.logsDebug()) {
            String v5_4 = this.logger;
            Object[] v7_1 = new Object[2];
            v7_1[0] = Integer.valueOf(v0_9.size());
            v7_1[1] = Long.valueOf(v3_8);
            StringBuilder v4_8 = new Object[0];
            v5_4.debug(String.format("Loaded %d writes in %dms", v7_1), v4_8);
        }
        v2_1.close();
        return v0_9;
    }

Method com.google.firebase.database.android.SqlPersistenceStorageEngine.loadTrackedQueryKeys() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.Set loadTrackedQueryKeys(java.util.Set p15)
    {
        String[] v4 = new String[1];
        v4[0] = "key";
        long v12 = System.currentTimeMillis();
        android.database.Cursor v1_4 = new StringBuilder();
        v1_4.append("id IN (");
        v1_4.append(this.commaSeparatedList(p15));
        v1_4.append(")");
        android.database.Cursor v1_2 = this.database.query(1, "trackedKeys", v4, v1_4.toString(), 0, 0, 0, 0, 0);
        java.util.HashSet v2_4 = new java.util.HashSet();
        try {
            while (v1_2.moveToNext()) {
                v2_4.add(com.google.firebase.database.snapshot.ChildKey.fromString(v1_2.getString(0)));
            }
        } catch (String v15_4) {
            v1_2.close();
            throw v15_4;
        }
        long v3_3 = (System.currentTimeMillis() - v12);
        if (this.logger.logsDebug()) {
            com.google.firebase.database.logging.LogWrapper v5_3 = this.logger;
            Object[] v7_2 = new Object[3];
            v7_2[0] = Integer.valueOf(v2_4.size());
            v7_2[1] = p15.toString();
            v7_2[2] = Long.valueOf(v3_3);
            Object[] v0_2 = new Object[0];
            v5_3.debug(String.format("Loaded %d tracked queries keys for tracked queries %s in %dms", v7_2), v0_2);
        }
        v1_2.close();
        return v2_4;
    }

Method com.google.firebase.database.android.SqlPersistenceStorageEngine.loadTrackedQueries() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List loadTrackedQueries()
    {
        Object[] v4_0 = new String[6];
        v4_0[0] = "id";
        v4_0[1] = "path";
        v4_0[2] = "queryParams";
        v4_0[3] = "lastUse";
        v4_0[4] = "complete";
        v4_0[5] = "active";
        long v16 = System.currentTimeMillis();
        android.database.Cursor v2_1 = this.database.query("trackedQueries", v4_0, 0, 0, 0, 0, "id");
        RuntimeException v0_6 = new java.util.ArrayList();
        try {
            while (v2_1.moveToNext()) {
                long v19 = v2_1.getLong(0);
                int v24;
                com.google.firebase.database.core.view.QuerySpec v21 = com.google.firebase.database.core.view.QuerySpec.fromPathAndQueryObject(new com.google.firebase.database.core.Path(v2_1.getString(1)), com.google.firebase.database.util.JsonMapper.parseJson(v2_1.getString(2)));
                long v22 = v2_1.getLong(3);
                if (v2_1.getInt(4) == 0) {
                    v24 = 0;
                } else {
                    v24 = 1;
                }
                int v25;
                if (v2_1.getInt(5) == 0) {
                    v25 = 0;
                } else {
                    v25 = 1;
                }
                com.google.firebase.database.core.persistence.TrackedQuery v3_11 = new com.google.firebase.database.core.persistence.TrackedQuery;
                v3_11(v19, v21, v22, v24, v25);
                v0_6.add(v3_11);
            }
        } catch (RuntimeException v0_12) {
            v2_1.close();
            throw v0_12;
        }
        com.google.firebase.database.core.persistence.TrackedQuery v3_3 = (System.currentTimeMillis() - v16);
        if (this.logger.logsDebug()) {
            com.google.firebase.database.logging.LogWrapper v5_3 = this.logger;
            Object[] v7_1 = new Object[2];
            v7_1[0] = Integer.valueOf(v0_6.size());
            v7_1[1] = Long.valueOf(v3_3);
            Object[] v4_1 = new Object[0];
            v5_3.debug(String.format("Loaded %d tracked queries in %dms", v7_1), v4_1);
        }
        v2_1.close();
        return v0_6;
    }

Method com.google.firebase.database.android.SqlPersistenceStorageEngine.loadNestedQuery() calling method android.database.sqlite.SQLiteDatabase.query()


    private android.database.Cursor loadNestedQuery(com.google.firebase.database.core.Path p12, String[] p13)
    {
        String v0 = com.google.firebase.database.android.SqlPersistenceStorageEngine.pathToKey(p12);
        String v1 = com.google.firebase.database.android.SqlPersistenceStorageEngine.pathPrefixStartToPrefixEnd(v0);
        String[] v7 = new String[(p12.size() + 3)];
        int v2_5 = com.google.firebase.database.android.SqlPersistenceStorageEngine.buildAncestorWhereClause(p12, v7);
        android.database.sqlite.SQLiteDatabase v3_1 = new StringBuilder();
        v3_1.append(v2_5);
        v3_1.append(" OR (path > ? AND path < ?)");
        String v6 = v3_1.toString();
        v7[(p12.size() + 1)] = v0;
        v7[(p12.size() + 2)] = v1;
        return this.database.query("serverCache", p13, v6, v7, 0, 0, "path");
    }

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


    private final boolean zzd(String p53, long p54)
    {
        String v1_0 = this;
        this.zzjt().beginTransaction();
        try {
            com.google.android.gms.measurement.internal.zzaa v3_9 = 0;
            int v2_0 = new com.google.android.gms.measurement.internal.zzfk$zza(this, 0);
            String v4_53 = this.zzjt();
            com.google.android.gms.measurement.internal.zzfk v5_40 = this.zzaup;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_0);
            v4_53.zzaf();
            v4_53.zzcl();
            try {
                String v7_3;
                int v22;
                boolean v15_7 = v4_53.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        com.google.android.gms.measurement.internal.zzaa v3_11;
                        if (v5_40 == -1) {
                            v3_11 = new String[1];
                            v3_11[0] = 0;
                        } else {
                            v3_11 = new String[2];
                            v3_11[0] = 0;
                            v3_11[1] = String.valueOf(v5_40);
                        }
                        String v7_30;
                        if (v5_40 == -1) {
                            v7_30 = "";
                        } else {
                            v7_30 = " and rowid <= ?";
                        }
                        int v14_27 = new StringBuilder((String.valueOf(v7_30).length() + 84));
                        v14_27.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_27.append(v7_30);
                        v14_27.append(" order by rowid limit 1;");
                        v3_9 = v15_7.rawQuery(v14_27.toString(), v3_11);
                        if (v3_9.moveToFirst()) {
                            int v13_50 = v3_9.getString(0);
                            v3_9.close();
                            v22 = v3_9;
                            v7_3 = v13_50;
                            v3_9 = 0;
                            try {
                                int v13_12 = new String[1];
                                v13_12[0] = "metadata";
                                Boolean v8_17 = new String[2];
                                v8_17[0] = v3_9;
                                v8_17[1] = v7_3;
                                android.database.sqlite.SQLiteDatabase v23 = v15_7;
                                Boolean v8_7 = v15_7.query("raw_events_metadata", v13_12, "app_id = ? and metadata_fingerprint = ?", v8_17, 0, 0, "rowid", "2");
                                try {
                                    if (v8_7.moveToFirst()) {
                                        Long v9_67 = v8_7.getBlob(0);
                                        Long v9_68 = com.google.android.gms.internal.measurement.zzzi.zzj(v9_67, 0, v9_67.length);
                                        int v13_34 = new com.google.android.gms.internal.measurement.zzgl();
                                        try {
                                            v13_34.zza(v9_68);
                                        } catch (android.database.sqlite.SQLiteException v0_4) {
                                            v4_53.zzgt().zzjg().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9), v0_4);
                                            if (v8_7 == null) {
                                                com.google.android.gms.measurement.internal.zzaa v3_15;
                                                if (v2_0.zzauv == null) {
                                                    v3_15 = 1;
                                                } else {
                                                    if (!v2_0.zzauv.isEmpty()) {
                                                        v3_15 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_15 != null) {
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.measurement.internal.zzaa v3_8 = v2_0.zzaut;
                                                    String v4_4 = new com.google.android.gms.internal.measurement.zzgi[v2_0.zzauv.size()];
                                                    v3_8.zzaxu = v4_4;
                                                    String v4_7 = this.zzadp.zzgv().zzaw(v3_8.zztt);
                                                    com.google.android.gms.measurement.internal.zzfk v5_16 = this.zzadp.zzgv().zze(v2_0.zzaut.zztt, com.google.android.gms.measurement.internal.zzag.zzalm);
                                                    long v6_13 = 0;
                                                    Boolean v8_71 = 0;
                                                    Long v9_73 = 0;
                                                    boolean v10_5 = 0;
                                                    int v13_40 = 0;
                                                    int v14_18 = 0;
                                                    while (v8_71 < v2_0.zzauv.size()) {
                                                        com.google.android.gms.measurement.internal.zzaa v25_0;
                                                        String v26_1;
                                                        String v7_18 = ((com.google.android.gms.internal.measurement.zzgi) v2_0.zzauv.get(v8_71));
                                                        boolean v24_0 = v9_73;
                                                        if (!this.zzls().zzo(v2_0.zzaut.zztt, v7_18.name)) {
                                                            long v37_0;
                                                            int v39_0;
                                                            v25_0 = v8_71;
                                                            String v26_0 = v13_40;
                                                            Boolean v8_15 = this.zzls().zzp(v2_0.zzaut.zztt, v7_18.name);
                                                            if (v8_15 != null) {
                                                                if (v7_18.zzaxm == null) {
                                                                    int v12_19 = new com.google.android.gms.internal.measurement.zzgj[0];
                                                                    v7_18.zzaxm = v12_19;
                                                                }
                                                                int v11_12 = v7_18.zzaxm;
                                                                int v12_20 = v11_12.length;
                                                                int v13_9 = 0;
                                                                long v18_0 = 0;
                                                                int v19_0 = 0;
                                                                while (v13_9 < v12_20) {
                                                                    Long v9_77 = v11_12[v13_9];
                                                                    long v28_1 = v11_12;
                                                                    long v29_1 = v12_20;
                                                                    if (!"_c".equals(v9_77.name)) {
                                                                        if ("_r".equals(v9_77.name)) {
                                                                            v9_77.zzaxq = Long.valueOf(1);
                                                                            v19_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v9_77.zzaxq = Long.valueOf(1);
                                                                        v18_0 = 1;
                                                                    }
                                                                    v13_9++;
                                                                    v11_12 = v28_1;
                                                                    v12_20 = v29_1;
                                                                }
                                                                if ((v18_0 == 0) && (v8_15 != null)) {
                                                                    this.zzadp.zzgt().zzjo().zzg("Marking event as conversion", this.zzadp.zzgq().zzbv(v7_18.name));
                                                                    Long v9_14 = ((com.google.android.gms.internal.measurement.zzgj[]) java.util.Arrays.copyOf(v7_18.zzaxm, (v7_18.zzaxm.length + 1)));
                                                                    int v11_18 = new com.google.android.gms.internal.measurement.zzgj();
                                                                    v11_18.name = "_c";
                                                                    v11_18.zzaxq = Long.valueOf(1);
                                                                    v9_14[(v9_14.length - 1)] = v11_18;
                                                                    v7_18.zzaxm = v9_14;
                                                                }
                                                                if (v19_0 == 0) {
                                                                    this.zzadp.zzgt().zzjo().zzg("Marking event as real-time", this.zzadp.zzgq().zzbv(v7_18.name));
                                                                    Long v9_20 = ((com.google.android.gms.internal.measurement.zzgj[]) java.util.Arrays.copyOf(v7_18.zzaxm, (v7_18.zzaxm.length + 1)));
                                                                    int v11_24 = new com.google.android.gms.internal.measurement.zzgj();
                                                                    v11_24.name = "_r";
                                                                    v11_24.zzaxq = Long.valueOf(1);
                                                                    v9_20[(v9_20.length - 1)] = v11_24;
                                                                    v7_18.zzaxm = v9_20;
                                                                }
                                                                Long v9_28;
                                                                v37_0 = v14_18;
                                                                if (this.zzjt().zza(this.zzly(), v2_0.zzaut.zztt, 0, 0, 0, 0, 1).zzahx <= ((long) this.zzadp.zzgv().zzas(v2_0.zzaut.zztt))) {
                                                                    v9_28 = 1;
                                                                } else {
                                                                    Long v9_29 = 0;
                                                                    while (v9_29 < v7_18.zzaxm.length) {
                                                                        if (!"_r".equals(v7_18.zzaxm[v9_29].name)) {
                                                                            v9_29++;
                                                                        } else {
                                                                            int v11_33 = new com.google.android.gms.internal.measurement.zzgj[(v7_18.zzaxm.length - 1)];
                                                                            if (v9_29 > null) {
                                                                                System.arraycopy(v7_18.zzaxm, 0, v11_33, 0, v9_29);
                                                                            }
                                                                            if (v9_29 < v11_33.length) {
                                                                                System.arraycopy(v7_18.zzaxm, (v9_29 + 1), v11_33, v9_29, (v11_33.length - v9_29));
                                                                            }
                                                                            v7_18.zzaxm = v11_33;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v9_28 = v24_0;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.zzfu.zzcv(v7_18.name)) || ((v8_15 == null) || (this.zzjt().zza(this.zzly(), v2_0.zzaut.zztt, 0, 0, 1, 0, 0).zzahv <= ((long) this.zzadp.zzgv().zzb(v2_0.zzaut.zztt, com.google.android.gms.measurement.internal.zzag.zzajt))))) {
                                                                    v39_0 = v9_28;
                                                                } else {
                                                                    this.zzadp.zzgt().zzjj().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                    int v11_42 = v7_18.zzaxm;
                                                                    int v12_46 = v11_42.length;
                                                                    int v13_29 = 0;
                                                                    int v14_11 = 0;
                                                                    boolean v15_4 = 0;
                                                                    while (v13_29 < v12_46) {
                                                                        Long v9_74 = v11_42[v13_29];
                                                                        if (!"_c".equals(v9_74.name)) {
                                                                            if ("_err".equals(v9_74.name)) {
                                                                                v14_11 = 1;
                                                                            }
                                                                        } else {
                                                                            v15_4 = v9_74;
                                                                        }
                                                                        v13_29++;
                                                                    }
                                                                    v39_0 = v9_28;
                                                                    if ((v14_11 == 0) || (!v15_4)) {
                                                                        if (!v15_4) {
                                                                            this.zzadp.zzgt().zzjg().zzg("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                        } else {
                                                                            v15_4.name = "_err";
                                                                            v15_4.zzaxq = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        Long v9_36 = v7_18.zzaxm;
                                                                        int v12_50 = new com.google.android.gms.internal.measurement.zzgj[1];
                                                                        v12_50[0] = v15_4;
                                                                        v7_18.zzaxm = ((com.google.android.gms.internal.measurement.zzgj[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v9_36, v12_50));
                                                                    }
                                                                }
                                                            } else {
                                                                int v11_6;
                                                                this.zzjr();
                                                                int v11_4 = v7_18.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v11_4);
                                                                int v12_15 = v11_4.hashCode();
                                                                if (v12_15 == 94660) {
                                                                    if (!v11_4.equals("_in")) {
                                                                        v11_6 = -1;
                                                                    } else {
                                                                        v11_6 = 0;
                                                                    }
                                                                } else {
                                                                    if (v12_15 == 95025) {
                                                                        if (!v11_4.equals("_ug")) {
                                                                        } else {
                                                                            v11_6 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v12_15 == 95027) {
                                                                            if (!v11_4.equals("_ui")) {
                                                                            } else {
                                                                                v11_6 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v11_9;
                                                                switch (v11_6) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v11_9 = 1;
                                                                    default:
                                                                        v11_9 = 0;
                                                                }
                                                                if (v11_9 == 0) {
                                                                    v37_0 = v14_18;
                                                                    v39_0 = v24_0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzadp.zzgv().zzbf(v2_0.zzaut.zztt)) || (v8_15 == null)) {
                                                            } else {
                                                                Boolean v8_18 = v7_18.zzaxm;
                                                                Long v9_42 = 0;
                                                                int v11_49 = -1;
                                                                int v12_51 = -1;
                                                                while (v9_42 < v8_18.length) {
                                                                    if (!"value".equals(v8_18[v9_42].name)) {
                                                                        if ("currency".equals(v8_18[v9_42].name)) {
                                                                            v12_51 = v9_42;
                                                                        }
                                                                    } else {
                                                                        v11_49 = v9_42;
                                                                    }
                                                                    v9_42++;
                                                                }
                                                                if (v11_49 == -1) {
                                                                } else {
                                                                    if ((v8_18[v11_49].zzaxq != null) || (v8_18[v11_49].zzava != null)) {
                                                                        Long v9_51;
                                                                        if (v12_51 != -1) {
                                                                            Long v9_50 = v8_18[v12_51].zzamw;
                                                                            if (v9_50 == null) {
                                                                            } else {
                                                                                if (v9_50.length() == 3) {
                                                                                    int v12_53 = 0;
                                                                                    while (v12_53 < v9_50.length()) {
                                                                                        int v14_13 = v9_50.codePointAt(v12_53);
                                                                                        if (Character.isLetter(v14_13)) {
                                                                                            v12_53 += Character.charCount(v14_13);
                                                                                        } else {
                                                                                        }
                                                                                    }
                                                                                    v9_51 = 0;
                                                                                    if (v9_51 != null) {
                                                                                        this.zzadp.zzgt().zzjl().zzca("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                        v8_18 = com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(v8_18, v11_49), "_c"), 19, "currency");
                                                                                    }
                                                                                    v7_18.zzaxm = v8_18;
                                                                                    if (this.zzadp.zzgv().zze(v2_0.zzaut.zztt, com.google.android.gms.measurement.internal.zzag.zzall)) {
                                                                                        if (!"_e".equals(v7_18.name)) {
                                                                                            if (!"_vs".equals(v7_18.name)) {
                                                                                                if ((v4_7 != null) && ((v5_16 == null) && ("_e".equals(v7_18.name)))) {
                                                                                                    if (v7_18.zzaxm != null) {
                                                                                                        if (v7_18.zzaxm.length != 0) {
                                                                                                            this.zzjr();
                                                                                                            Boolean v8_49 = ((Long) com.google.android.gms.measurement.internal.zzfq.zzb(v7_18, "_et"));
                                                                                                            if (v8_49 != null) {
                                                                                                                v37_0 += v8_49.longValue();
                                                                                                                Long v9_72 = (v26_0 + 1);
                                                                                                                v3_8.zzaxu[v26_0] = v7_18;
                                                                                                                v26_1 = v9_72;
                                                                                                                v14_18 = v37_0;
                                                                                                                v9_73 = v39_0;
                                                                                                                v8_71 = (v25_0 + 1);
                                                                                                                v13_40 = v26_1;
                                                                                                                int v12 = 1;
                                                                                                            } else {
                                                                                                                this.zzadp.zzgt().zzjj().zzg("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                                                            }
                                                                                                        } else {
                                                                                                        }
                                                                                                    }
                                                                                                    this.zzadp.zzgt().zzjj().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                                                }
                                                                                            } else {
                                                                                                this.zzjr();
                                                                                                if (com.google.android.gms.measurement.internal.zzfq.zza(v7_18, "_et") != null) {
                                                                                                } else {
                                                                                                    if ((!v10_5) || ((Math.abs((v10_5.zzaxn.longValue() - v7_18.zzaxn.longValue())) > 1000) || (!this.zza(v10_5, v7_18)))) {
                                                                                                        v6_13 = v7_18;
                                                                                                    } else {
                                                                                                    }
                                                                                                }
                                                                                            }
                                                                                        } else {
                                                                                            this.zzjr();
                                                                                            if (com.google.android.gms.measurement.internal.zzfq.zza(v7_18, "_fr") != null) {
                                                                                            } else {
                                                                                                if ((v6_13 == 0) || ((Math.abs((v6_13.zzaxn.longValue() - v7_18.zzaxn.longValue())) > 1000) || (!this.zza(v7_18, v6_13)))) {
                                                                                                    v10_5 = v7_18;
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                        v6_13 = 0;
                                                                                        v10_5 = 0;
                                                                                    }
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v9_51 = 1;
                                                                        } else {
                                                                            v9_51 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzadp.zzgt().zzjl().zzca("Value must be specified with a numeric type.");
                                                                        v8_18 = com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(v8_18, v11_49), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            Boolean v8_65;
                                                            v25_0 = v8_71;
                                                            v26_1 = v13_40;
                                                            this.zzadp.zzgt().zzjj().zze("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt), this.zzadp.zzgq().zzbv(v7_18.name));
                                                            if (this.zzls().zzcn(v2_0.zzaut.zztt)) {
                                                                v8_65 = 1;
                                                            } else {
                                                                if (!this.zzls().zzco(v2_0.zzaut.zztt)) {
                                                                    v8_65 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v8_65 == null) && (!"_err".equals(v7_18.name))) {
                                                                this.zzadp.zzgr().zza(v2_0.zzaut.zztt, 11, "_ev", v7_18.name, 0);
                                                            }
                                                            v9_73 = v24_0;
                                                        }
                                                    }
                                                    int v13_4;
                                                    boolean v24_1 = v9_73;
                                                    String v26_2 = v13_40;
                                                    long v37_1 = v14_18;
                                                    if (v5_16 == null) {
                                                        v13_4 = v26_2;
                                                    } else {
                                                        v13_4 = v26_2;
                                                        int v14_5 = v37_1;
                                                        com.google.android.gms.measurement.internal.zzfk v5_0 = 0;
                                                        while (v5_0 < v13_4) {
                                                            long v6_3 = v3_8.zzaxu[v5_0];
                                                            if (!"_e".equals(v6_3.name)) {
                                                                if (v4_7 != null) {
                                                                    this.zzjr();
                                                                    long v6_4 = com.google.android.gms.measurement.internal.zzfq.zza(v6_3, "_et");
                                                                    if (v6_4 != 0) {
                                                                        long v6_5 = v6_4.zzaxq;
                                                                        if ((v6_5 != 0) && (v6_5.longValue() > 0)) {
                                                                            v14_5 += v6_5.longValue();
                                                                        }
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzjr();
                                                                if (com.google.android.gms.measurement.internal.zzfq.zza(v6_3, "_fr") == null) {
                                                                } else {
                                                                    System.arraycopy(v3_8.zzaxu, (v5_0 + 1), v3_8.zzaxu, v5_0, ((v13_4 - v5_0) - 1));
                                                                    v13_4--;
                                                                    v5_0--;
                                                                }
                                                            }
                                                            v5_0++;
                                                        }
                                                        v37_1 = v14_5;
                                                    }
                                                    if (v13_4 < v2_0.zzauv.size()) {
                                                        v3_8.zzaxu = ((com.google.android.gms.internal.measurement.zzgi[]) java.util.Arrays.copyOf(v3_8.zzaxu, v13_4));
                                                    }
                                                    if (v4_7 != null) {
                                                        String v4_12;
                                                        String v4_9 = this.zzjt().zzi(v3_8.zztt, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.measurement.internal.zzft;
                                                            v4_12(v3_8.zztt, "auto", "_lte", this.zzadp.zzbx().currentTimeMillis(), Long.valueOf(v37_1));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                com.google.android.gms.measurement.internal.zzfk v5_24 = new com.google.android.gms.measurement.internal.zzft;
                                                                v5_24(v3_8.zztt, "auto", "_lte", this.zzadp.zzbx().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v37_1)));
                                                                v4_12 = v5_24;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.measurement.internal.zzfk v5_27 = new com.google.android.gms.internal.measurement.zzgo();
                                                        v5_27.name = "_lte";
                                                        v5_27.zzazg = Long.valueOf(this.zzadp.zzbx().currentTimeMillis());
                                                        v5_27.zzaxq = ((Long) v4_12.value);
                                                        long v6_42 = 0;
                                                        while (v6_42 < v3_8.zzaxv.length) {
                                                            if (!"_lte".equals(v3_8.zzaxv[v6_42].name)) {
                                                                v6_42++;
                                                            } else {
                                                                v3_8.zzaxv[v6_42] = v5_27;
                                                                long v6_43 = 1;
                                                            }
                                                            if (v6_43 == 0) {
                                                                v3_8.zzaxv = ((com.google.android.gms.internal.measurement.zzgo[]) java.util.Arrays.copyOf(v3_8.zzaxv, (v3_8.zzaxv.length + 1)));
                                                                v3_8.zzaxv[(v2_0.zzaut.zzaxv.length - 1)] = v5_27;
                                                            }
                                                            if (v37_1 > 0) {
                                                                this.zzjt().zza(v4_12);
                                                                this.zzadp.zzgt().zzjn().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_43 = 0;
                                                    }
                                                    android.database.sqlite.SQLiteException v50_1;
                                                    String v1_6;
                                                    String v4_14 = v3_8.zztt;
                                                    com.google.android.gms.measurement.internal.zzfk v5_33 = v3_8.zzaxv;
                                                    long v6_49 = v3_8.zzaxu;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v4_14);
                                                    v3_8.zzaym = this.zzjs().zza(v4_14, v6_49, v5_33);
                                                    try {
                                                        if (!this.zzadp.zzgv().zzav(v2_0.zzaut.zztt)) {
                                                            v50_1 = v2_0;
                                                            v1_6 = v3_8;
                                                        } else {
                                                            String v4_20 = new java.util.HashMap();
                                                            com.google.android.gms.measurement.internal.zzfk v5_38 = new com.google.android.gms.internal.measurement.zzgi[v3_8.zzaxu.length];
                                                            long v6_1 = this.zzadp.zzgr().zzmk();
                                                            String v7_8 = v3_8.zzaxu;
                                                            Boolean v8_11 = v7_8.length;
                                                            Long v9_1 = 0;
                                                            boolean v10_0 = 0;
                                                            while (v9_1 < v8_11) {
                                                                String v45;
                                                                int v49;
                                                                boolean v43;
                                                                Long v44;
                                                                long v42;
                                                                android.database.sqlite.SQLiteException v50_0;
                                                                int v11_71 = v7_8[v9_1];
                                                                if (!v11_71.name.equals("_ep")) {
                                                                    Boolean v46;
                                                                    com.google.android.gms.measurement.internal.zzaa v3_41;
                                                                    int v12_70 = this.zzls().zzcm(v2_0.zzaut.zztt);
                                                                    v1_0.zzadp.zzgr();
                                                                    int v14_35 = com.google.android.gms.measurement.internal.zzfu.zzc(v11_71.zzaxn.longValue(), v12_70);
                                                                    v42 = v7_8;
                                                                    v43 = v8_11;
                                                                    Boolean v8_92 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v8_92 != null)) {
                                                                        v44 = v3_8;
                                                                        com.google.android.gms.measurement.internal.zzaa v3_29 = v11_71.zzaxm;
                                                                        v45 = v9_1;
                                                                        Long v9_98 = v3_29.length;
                                                                        v46 = v12_70;
                                                                        int v12_71 = 0;
                                                                        while (v12_71 < v9_98) {
                                                                            int v13_56 = v3_29[v12_71];
                                                                            if (!"_dbg".equals(v13_56.name)) {
                                                                                v12_71++;
                                                                            } else {
                                                                                if (((!(v8_92 instanceof Long)) || (!v8_92.equals(v13_56.zzaxq))) && (((!(v8_92 instanceof String)) || (!v8_92.equals(v13_56.zzamw))) && ((!(v8_92 instanceof Double)) || (!v8_92.equals(v13_56.zzava))))) {
                                                                                    break;
                                                                                }
                                                                                v3_41 = 1;
                                                                            }
                                                                        }
                                                                        v3_41 = 0;
                                                                    } else {
                                                                        v44 = v3_8;
                                                                        v45 = v9_1;
                                                                        v46 = v12_70;
                                                                    }
                                                                    int v12_72;
                                                                    if (v3_41 != null) {
                                                                        v12_72 = 1;
                                                                    } else {
                                                                        v12_72 = this.zzls().zzq(v2_0.zzaut.zztt, v11_71.name);
                                                                    }
                                                                    if (v12_72 > 0) {
                                                                        com.google.android.gms.measurement.internal.zzaa v3_1 = ((com.google.android.gms.measurement.internal.zzaa) v4_20.get(v11_71.name));
                                                                        if (v3_1 == null) {
                                                                            v3_1 = this.zzjt().zzg(v2_0.zzaut.zztt, v11_71.name);
                                                                            if (v3_1 == null) {
                                                                                v1_0.zzadp.zzgt().zzjj().zze("Event being bundled has no eventAggregate. appId, eventName", v2_0.zzaut.zztt, v11_71.name);
                                                                                v3_1 = new com.google.android.gms.measurement.internal.zzaa;
                                                                                v3_1(v2_0.zzaut.zztt, v11_71.name, 1, 1, v11_71.zzaxn.longValue(), 0, 0, 0, 0, 0);
                                                                            }
                                                                        }
                                                                        Boolean v8_98;
                                                                        this.zzjr();
                                                                        String v7_77 = ((Long) com.google.android.gms.measurement.internal.zzfq.zzb(v11_71, "_eid"));
                                                                        if (v7_77 == null) {
                                                                            v8_98 = 0;
                                                                        } else {
                                                                            v8_98 = 1;
                                                                        }
                                                                        Boolean v8_99 = Boolean.valueOf(v8_98);
                                                                        if (v12_72 != 1) {
                                                                            if (v6_1.nextInt(v12_72) != 0) {
                                                                                v49 = v6_1;
                                                                                String v1_20;
                                                                                String v51;
                                                                                if (!v1_0.zzadp.zzgv().zzbh(v2_0.zzaut.zztt)) {
                                                                                    v50_0 = v2_0;
                                                                                    v51 = v7_77;
                                                                                    if (Math.abs((v11_71.zzaxn.longValue() - v3_1.zzaik)) < 86400000) {
                                                                                        v1_20 = 0;
                                                                                    } else {
                                                                                        v1_20 = 1;
                                                                                    }
                                                                                } else {
                                                                                    long v18_6;
                                                                                    if (v3_1.zzail == null) {
                                                                                        v1_0.zzadp.zzgr();
                                                                                        v50_0 = v2_0;
                                                                                        v51 = v7_77;
                                                                                        v18_6 = com.google.android.gms.measurement.internal.zzfu.zzc(v11_71.zzaxo.longValue(), v46);
                                                                                    } else {
                                                                                        v18_6 = v3_1.zzail.longValue();
                                                                                        v50_0 = v2_0;
                                                                                        v51 = v7_77;
                                                                                    }
                                                                                    if (v18_6 == v14_35) {
                                                                                    }
                                                                                }
                                                                                if (v1_20 == null) {
                                                                                    if (v8_99.booleanValue()) {
                                                                                        v4_20.put(v11_71.name, v3_1.zza(v51, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzjr();
                                                                                    v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_efs", Long.valueOf(1));
                                                                                    this.zzjr();
                                                                                    long v6_96 = ((long) v12_72);
                                                                                    v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_sr", Long.valueOf(v6_96));
                                                                                    String v1_27 = (v10_0 + 1);
                                                                                    v5_38[v10_0] = v11_71;
                                                                                    if (v8_99.booleanValue()) {
                                                                                        v3_1 = v3_1.zza(0, Long.valueOf(v6_96), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_20.put(v11_71.name, v3_1.zza(v11_71.zzaxn.longValue(), v14_35));
                                                                                    v10_0 = v1_27;
                                                                                }
                                                                            } else {
                                                                                this.zzjr();
                                                                                int v12_73 = ((long) v12_72);
                                                                                v49 = v6_1;
                                                                                v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_sr", Long.valueOf(v12_73));
                                                                                long v6_0 = (v10_0 + 1);
                                                                                v5_38[v10_0] = v11_71;
                                                                                if (v8_99.booleanValue()) {
                                                                                    v3_1 = v3_1.zza(0, Long.valueOf(v12_73), 0);
                                                                                }
                                                                                v4_20.put(v11_71.name, v3_1.zza(v11_71.zzaxn.longValue(), v14_35));
                                                                                v50_0 = v2_0;
                                                                                v10_0 = v6_0;
                                                                            }
                                                                        } else {
                                                                            String v7_4 = (v10_0 + 1);
                                                                            v5_38[v10_0] = v11_71;
                                                                            if ((v8_99.booleanValue()) && ((v3_1.zzaim != null) || ((v3_1.zzain != null) || (v3_1.zzaio != null)))) {
                                                                                v4_20.put(v11_71.name, v3_1.zza(0, 0, 0));
                                                                            }
                                                                            v50_0 = v2_0;
                                                                            v49 = v6_1;
                                                                            v10_0 = v7_4;
                                                                        }
                                                                    } else {
                                                                        v1_0.zzadp.zzgt().zzjj().zze("Sample rate must be positive. event, rate", v11_71.name, Integer.valueOf(v12_72));
                                                                        com.google.android.gms.measurement.internal.zzaa v3_7 = (v10_0 + 1);
                                                                        v5_38[v10_0] = v11_71;
                                                                        v50_0 = v2_0;
                                                                        v10_0 = v3_7;
                                                                        v49 = v6_1;
                                                                    }
                                                                } else {
                                                                    this.zzjr();
                                                                    int v12_2 = ((String) com.google.android.gms.measurement.internal.zzfq.zzb(v11_71, "_en"));
                                                                    int v13_1 = ((com.google.android.gms.measurement.internal.zzaa) v4_20.get(v12_2));
                                                                    if (v13_1 == 0) {
                                                                        v13_1 = this.zzjt().zzg(v2_0.zzaut.zztt, v12_2);
                                                                        v4_20.put(v12_2, v13_1);
                                                                    }
                                                                    if (v13_1.zzaim != null) {
                                                                        v50_0 = v2_0;
                                                                        v44 = v3_8;
                                                                        v49 = v6_1;
                                                                        v42 = v7_8;
                                                                        v43 = v8_11;
                                                                        v45 = v9_1;
                                                                    } else {
                                                                        if (v13_1.zzain.longValue() > 1) {
                                                                            this.zzjr();
                                                                            v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_sr", v13_1.zzain);
                                                                        }
                                                                        if ((v13_1.zzaio != null) && (v13_1.zzaio.booleanValue())) {
                                                                            this.zzjr();
                                                                            v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_efs", Long.valueOf(1));
                                                                        }
                                                                        int v12_13 = (v10_0 + 1);
                                                                        v5_38[v10_0] = v11_71;
                                                                        v50_0 = v2_0;
                                                                        v44 = v3_8;
                                                                        v49 = v6_1;
                                                                        v42 = v7_8;
                                                                        v43 = v8_11;
                                                                        v45 = v9_1;
                                                                        v10_0 = v12_13;
                                                                    }
                                                                }
                                                                v9_1 = (v45 + 1);
                                                                v7_8 = v42;
                                                                v8_11 = v43;
                                                                v3_8 = v44;
                                                                v6_1 = v49;
                                                                v2_0 = v50_0;
                                                                v1_0 = this;
                                                            }
                                                            v50_1 = v2_0;
                                                            v1_6 = v3_8;
                                                            if (v10_0 < v1_6.zzaxu.length) {
                                                                v1_6.zzaxu = ((com.google.android.gms.internal.measurement.zzgi[]) java.util.Arrays.copyOf(v5_38, v10_0));
                                                            }
                                                            int v2_9 = v4_20.entrySet().iterator();
                                                            while (v2_9.hasNext()) {
                                                                this.zzjt().zza(((com.google.android.gms.measurement.internal.zzaa) ((java.util.Map$Entry) v2_9.next()).getValue()));
                                                            }
                                                        }
                                                        try {
                                                            v1_6.zzaxx = Long.valueOf(nan);
                                                            v1_6.zzaxy = Long.valueOf(-0.0);
                                                            int v2_14 = 0;
                                                        } catch (android.database.sqlite.SQLiteException v0_5) {
                                                            String v1_1 = v0_5;
                                                            this.zzjt().endTransaction();
                                                            throw v1_1;
                                                        }
                                                        while (v2_14 < v1_6.zzaxu.length) {
                                                            com.google.android.gms.measurement.internal.zzaa v3_23 = v1_6.zzaxu[v2_14];
                                                            if (v3_23.zzaxn.longValue() < v1_6.zzaxx.longValue()) {
                                                                v1_6.zzaxx = v3_23.zzaxn;
                                                            }
                                                            if (v3_23.zzaxn.longValue() > v1_6.zzaxy.longValue()) {
                                                                v1_6.zzaxy = v3_23.zzaxn;
                                                            }
                                                            v2_14++;
                                                        }
                                                        int v2_15 = v50_1;
                                                        com.google.android.gms.measurement.internal.zzfk v5_39;
                                                        com.google.android.gms.measurement.internal.zzaa v3_20 = v2_15.zzaut.zztt;
                                                        String v4_22 = this.zzjt().zzbo(v3_20);
                                                        if (v4_22 != null) {
                                                            v5_39 = this;
                                                            if (v1_6.zzaxu.length > 0) {
                                                                Boolean v8_86;
                                                                long v6_54 = v4_22.zzhe();
                                                                if (v6_54 == 0) {
                                                                    v8_86 = 0;
                                                                } else {
                                                                    v8_86 = Long.valueOf(v6_54);
                                                                }
                                                                v1_6.zzaya = v8_86;
                                                                Boolean v8_87 = v4_22.zzhd();
                                                                if (v8_87 != 0) {
                                                                    v6_54 = v8_87;
                                                                } else {
                                                                }
                                                                long v6_55;
                                                                if (v6_54 == 0) {
                                                                    v6_55 = 0;
                                                                } else {
                                                                    v6_55 = Long.valueOf(v6_54);
                                                                }
                                                                v1_6.zzaxz = v6_55;
                                                                v4_22.zzhm();
                                                                v1_6.zzayk = Integer.valueOf(((int) v4_22.zzhj()));
                                                                v4_22.zzs(v1_6.zzaxx.longValue());
                                                                v4_22.zzt(v1_6.zzaxy.longValue());
                                                                v1_6.zzagy = v4_22.zzhu();
                                                                this.zzjt().zza(v4_22);
                                                            }
                                                        } else {
                                                            v5_39 = this;
                                                            this.zzadp.zzgt().zzjg().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_15.zzaut.zztt));
                                                        }
                                                        if (v1_6.zzaxu.length > 0) {
                                                            v5_39.zzadp.zzgw();
                                                            String v4_30 = this.zzls().zzci(v2_15.zzaut.zztt);
                                                            if (v4_30 == null) {
                                                                if (!android.text.TextUtils.isEmpty(v2_15.zzaut.zzafx)) {
                                                                    v5_39.zzadp.zzgt().zzjj().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_15.zzaut.zztt));
                                                                } else {
                                                                    v1_6.zzayr = Long.valueOf(-1);
                                                                }
                                                            } else {
                                                                if (v4_30.zzawx != null) {
                                                                    v1_6.zzayr = v4_30.zzawx;
                                                                } else {
                                                                }
                                                            }
                                                            this.zzjt().zza(v1_6, v24_1);
                                                        }
                                                        String v1_7 = this.zzjt();
                                                        int v2_16 = v2_15.zzauu;
                                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_16);
                                                        v1_7.zzaf();
                                                        v1_7.zzcl();
                                                        String v4_41 = new StringBuilder("rowid in (");
                                                        long v6_72 = 0;
                                                        while (v6_72 < v2_16.size()) {
                                                            if (v6_72 != 0) {
                                                                v4_41.append(",");
                                                            }
                                                            v4_41.append(((Long) v2_16.get(v6_72)).longValue());
                                                            v6_72++;
                                                        }
                                                        v4_41.append(")");
                                                        String v4_43 = v1_7.getWritableDatabase().delete("raw_events", v4_41.toString(), 0);
                                                        if (v4_43 != v2_16.size()) {
                                                            v1_7.zzgt().zzjg().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v4_43), Integer.valueOf(v2_16.size()));
                                                        }
                                                        String v1_10 = this.zzjt();
                                                        int v2_19 = v1_10.getWritableDatabase();
                                                        try {
                                                            long v6_78 = new String[2];
                                                            v6_78[0] = v3_20;
                                                            v6_78[1] = v3_20;
                                                            v2_19.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_78);
                                                        } catch (android.database.sqlite.SQLiteException v0_7) {
                                                            v1_10.zzgt().zzjg().zze("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_20), v0_7);
                                                        }
                                                        this.zzjt().setTransactionSuccessful();
                                                        this.zzjt().endTransaction();
                                                        return 1;
                                                    } catch (android.database.sqlite.SQLiteException v0_3) {
                                                        v1_1 = v0_3;
                                                    }
                                                }
                                            } else {
                                                v8_7.close();
                                            }
                                        }
                                        if (v8_7.moveToNext()) {
                                            v4_53.zzgt().zzjj().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9));
                                        }
                                        int v17_3;
                                        int v16_4;
                                        v8_7.close();
                                        v2_0.zzb(v13_34);
                                        if (v5_40 == -1) {
                                            long v6_16 = new String[2];
                                            v6_16[0] = v3_9;
                                            v6_16[1] = v7_3;
                                            v16_4 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_3 = v6_16;
                                        } else {
                                            int v14_24 = new String[3];
                                            v14_24[0] = v3_9;
                                            v14_24[1] = v7_3;
                                            v14_24[2] = String.valueOf(v5_40);
                                            v16_4 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_3 = v14_24;
                                        }
                                        boolean v15_9 = new String[4];
                                        v15_9[0] = "rowid";
                                        v15_9[1] = "name";
                                        v15_9[2] = "timestamp";
                                        v15_9[3] = "data";
                                        com.google.android.gms.measurement.internal.zzfk v5_9 = v23.query("raw_events", v15_9, v16_4, v17_3, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_9.moveToFirst()) {
                                                v4_53.zzgt().zzjj().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9));
                                                if (v5_9 == null) {
                                                } else {
                                                    v5_9.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v8_7 = v5_9;
                                            String v1_2 = v0_1;
                                            if (v8_7 != null) {
                                                v8_7.close();
                                            }
                                            throw v1_2;
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            v7_3 = v3_9;
                                            v8_7 = v5_9;
                                        }
                                        do {
                                            long v6_19 = v5_9.getLong(0);
                                            Long v9_92 = v5_9.getBlob(3);
                                            Boolean v8_74 = com.google.android.gms.internal.measurement.zzzi.zzj(v9_92, 0, v9_92.length);
                                            Long v9_94 = new com.google.android.gms.internal.measurement.zzgi();
                                            v9_94.zza(v8_74);
                                            v9_94.name = v5_9.getString(1);
                                            v9_94.zzaxn = Long.valueOf(v5_9.getLong(2));
                                            if (v2_0.zza(v6_19, v9_94)) {
                                            } else {
                                                if (v5_9 == null) {
                                                } else {
                                                    v5_9.close();
                                                }
                                            }
                                        } while(v5_9.moveToNext());
                                        if (v5_9 == null) {
                                        } else {
                                            v5_9.close();
                                        }
                                    } else {
                                        v4_53.zzgt().zzjg().zzg("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9));
                                        if (v8_7 == null) {
                                        } else {
                                            v8_7.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v7_3 = v3_9;
                                }
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v8_7 = v22;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v7_3 = v3_9;
                                v8_7 = v22;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    } else {
                        try {
                            int v13_52;
                            if (v5_40 == -1) {
                                v13_52 = new String[1];
                                v13_52[0] = String.valueOf(p54);
                            } else {
                                v13_52 = new String[2];
                                v13_52[0] = String.valueOf(v5_40);
                                v13_52[1] = String.valueOf(p54);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                            v7_3 = 0;
                            v8_7 = 0;
                        }
                        int v14_36;
                        if (v5_40 == -1) {
                            v14_36 = "";
                        } else {
                            v14_36 = "rowid <= ? and ";
                        }
                        com.google.android.gms.measurement.internal.zzaa v3_50 = new StringBuilder((String.valueOf(v14_36).length() + 148));
                        v3_50.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_50.append(v14_36);
                        v3_50.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_9 = v15_7.rawQuery(v3_50.toString(), v13_52);
                        if (v3_9.moveToFirst()) {
                            String v7_7 = v3_9.getString(0);
                            try {
                                int v13_5 = v3_9.getString(1);
                                v3_9.close();
                                v22 = v3_9;
                                v3_9 = v7_7;
                                v7_3 = v13_5;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v8_7 = v3_9;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v8_7 = v3_9;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v8_7 = v3_9;
                    v7_3 = 0;
                }
                com.google.android.gms.measurement.internal.zzaa v3_0 = v0_2;
                v4_53.zzgt().zzjg().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v7_3), v3_0);
                if (v8_7 == null) {
                } else {
                    v8_7.close();
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v8_7 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v3_0 = v0_0;
                v7_3 = 0;
                v8_7 = 0;
            } catch (android.database.sqlite.SQLiteException v0_1) {
            }
        } catch (android.database.sqlite.SQLiteException v0_5) {
        }
    }

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


    private final boolean zzd(String p53, long p54)
    {
        String v1_0 = this;
        this.zzjt().beginTransaction();
        try {
            com.google.android.gms.measurement.internal.zzaa v3_9 = 0;
            int v2_0 = new com.google.android.gms.measurement.internal.zzfk$zza(this, 0);
            String v4_53 = this.zzjt();
            com.google.android.gms.measurement.internal.zzfk v5_40 = this.zzaup;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_0);
            v4_53.zzaf();
            v4_53.zzcl();
            try {
                String v7_3;
                int v22;
                boolean v15_7 = v4_53.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        com.google.android.gms.measurement.internal.zzaa v3_11;
                        if (v5_40 == -1) {
                            v3_11 = new String[1];
                            v3_11[0] = 0;
                        } else {
                            v3_11 = new String[2];
                            v3_11[0] = 0;
                            v3_11[1] = String.valueOf(v5_40);
                        }
                        String v7_30;
                        if (v5_40 == -1) {
                            v7_30 = "";
                        } else {
                            v7_30 = " and rowid <= ?";
                        }
                        int v14_27 = new StringBuilder((String.valueOf(v7_30).length() + 84));
                        v14_27.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_27.append(v7_30);
                        v14_27.append(" order by rowid limit 1;");
                        v3_9 = v15_7.rawQuery(v14_27.toString(), v3_11);
                        if (v3_9.moveToFirst()) {
                            int v13_50 = v3_9.getString(0);
                            v3_9.close();
                            v22 = v3_9;
                            v7_3 = v13_50;
                            v3_9 = 0;
                            try {
                                int v13_12 = new String[1];
                                v13_12[0] = "metadata";
                                Boolean v8_17 = new String[2];
                                v8_17[0] = v3_9;
                                v8_17[1] = v7_3;
                                android.database.sqlite.SQLiteDatabase v23 = v15_7;
                                Boolean v8_7 = v15_7.query("raw_events_metadata", v13_12, "app_id = ? and metadata_fingerprint = ?", v8_17, 0, 0, "rowid", "2");
                                try {
                                    if (v8_7.moveToFirst()) {
                                        Long v9_67 = v8_7.getBlob(0);
                                        Long v9_68 = com.google.android.gms.internal.measurement.zzzi.zzj(v9_67, 0, v9_67.length);
                                        int v13_34 = new com.google.android.gms.internal.measurement.zzgl();
                                        try {
                                            v13_34.zza(v9_68);
                                        } catch (android.database.sqlite.SQLiteException v0_4) {
                                            v4_53.zzgt().zzjg().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9), v0_4);
                                            if (v8_7 == null) {
                                                com.google.android.gms.measurement.internal.zzaa v3_15;
                                                if (v2_0.zzauv == null) {
                                                    v3_15 = 1;
                                                } else {
                                                    if (!v2_0.zzauv.isEmpty()) {
                                                        v3_15 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_15 != null) {
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.measurement.internal.zzaa v3_8 = v2_0.zzaut;
                                                    String v4_4 = new com.google.android.gms.internal.measurement.zzgi[v2_0.zzauv.size()];
                                                    v3_8.zzaxu = v4_4;
                                                    String v4_7 = this.zzadp.zzgv().zzaw(v3_8.zztt);
                                                    com.google.android.gms.measurement.internal.zzfk v5_16 = this.zzadp.zzgv().zze(v2_0.zzaut.zztt, com.google.android.gms.measurement.internal.zzag.zzalm);
                                                    long v6_13 = 0;
                                                    Boolean v8_71 = 0;
                                                    Long v9_73 = 0;
                                                    boolean v10_5 = 0;
                                                    int v13_40 = 0;
                                                    int v14_18 = 0;
                                                    while (v8_71 < v2_0.zzauv.size()) {
                                                        com.google.android.gms.measurement.internal.zzaa v25_0;
                                                        String v26_1;
                                                        String v7_18 = ((com.google.android.gms.internal.measurement.zzgi) v2_0.zzauv.get(v8_71));
                                                        boolean v24_0 = v9_73;
                                                        if (!this.zzls().zzo(v2_0.zzaut.zztt, v7_18.name)) {
                                                            int v39_0;
                                                            long v37_0;
                                                            v25_0 = v8_71;
                                                            String v26_0 = v13_40;
                                                            Boolean v8_15 = this.zzls().zzp(v2_0.zzaut.zztt, v7_18.name);
                                                            if (v8_15 != null) {
                                                                if (v7_18.zzaxm == null) {
                                                                    int v12_19 = new com.google.android.gms.internal.measurement.zzgj[0];
                                                                    v7_18.zzaxm = v12_19;
                                                                }
                                                                int v11_12 = v7_18.zzaxm;
                                                                int v12_20 = v11_12.length;
                                                                int v13_9 = 0;
                                                                long v18_0 = 0;
                                                                int v19_0 = 0;
                                                                while (v13_9 < v12_20) {
                                                                    Long v9_77 = v11_12[v13_9];
                                                                    long v28_1 = v11_12;
                                                                    long v29_1 = v12_20;
                                                                    if (!"_c".equals(v9_77.name)) {
                                                                        if ("_r".equals(v9_77.name)) {
                                                                            v9_77.zzaxq = Long.valueOf(1);
                                                                            v19_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v9_77.zzaxq = Long.valueOf(1);
                                                                        v18_0 = 1;
                                                                    }
                                                                    v13_9++;
                                                                    v11_12 = v28_1;
                                                                    v12_20 = v29_1;
                                                                }
                                                                if ((v18_0 == 0) && (v8_15 != null)) {
                                                                    this.zzadp.zzgt().zzjo().zzg("Marking event as conversion", this.zzadp.zzgq().zzbv(v7_18.name));
                                                                    Long v9_14 = ((com.google.android.gms.internal.measurement.zzgj[]) java.util.Arrays.copyOf(v7_18.zzaxm, (v7_18.zzaxm.length + 1)));
                                                                    int v11_18 = new com.google.android.gms.internal.measurement.zzgj();
                                                                    v11_18.name = "_c";
                                                                    v11_18.zzaxq = Long.valueOf(1);
                                                                    v9_14[(v9_14.length - 1)] = v11_18;
                                                                    v7_18.zzaxm = v9_14;
                                                                }
                                                                if (v19_0 == 0) {
                                                                    this.zzadp.zzgt().zzjo().zzg("Marking event as real-time", this.zzadp.zzgq().zzbv(v7_18.name));
                                                                    Long v9_20 = ((com.google.android.gms.internal.measurement.zzgj[]) java.util.Arrays.copyOf(v7_18.zzaxm, (v7_18.zzaxm.length + 1)));
                                                                    int v11_24 = new com.google.android.gms.internal.measurement.zzgj();
                                                                    v11_24.name = "_r";
                                                                    v11_24.zzaxq = Long.valueOf(1);
                                                                    v9_20[(v9_20.length - 1)] = v11_24;
                                                                    v7_18.zzaxm = v9_20;
                                                                }
                                                                Long v9_28;
                                                                v37_0 = v14_18;
                                                                if (this.zzjt().zza(this.zzly(), v2_0.zzaut.zztt, 0, 0, 0, 0, 1).zzahx <= ((long) this.zzadp.zzgv().zzas(v2_0.zzaut.zztt))) {
                                                                    v9_28 = 1;
                                                                } else {
                                                                    Long v9_29 = 0;
                                                                    while (v9_29 < v7_18.zzaxm.length) {
                                                                        if (!"_r".equals(v7_18.zzaxm[v9_29].name)) {
                                                                            v9_29++;
                                                                        } else {
                                                                            int v11_33 = new com.google.android.gms.internal.measurement.zzgj[(v7_18.zzaxm.length - 1)];
                                                                            if (v9_29 > null) {
                                                                                System.arraycopy(v7_18.zzaxm, 0, v11_33, 0, v9_29);
                                                                            }
                                                                            if (v9_29 < v11_33.length) {
                                                                                System.arraycopy(v7_18.zzaxm, (v9_29 + 1), v11_33, v9_29, (v11_33.length - v9_29));
                                                                            }
                                                                            v7_18.zzaxm = v11_33;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v9_28 = v24_0;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.zzfu.zzcv(v7_18.name)) || ((v8_15 == null) || (this.zzjt().zza(this.zzly(), v2_0.zzaut.zztt, 0, 0, 1, 0, 0).zzahv <= ((long) this.zzadp.zzgv().zzb(v2_0.zzaut.zztt, com.google.android.gms.measurement.internal.zzag.zzajt))))) {
                                                                    v39_0 = v9_28;
                                                                } else {
                                                                    this.zzadp.zzgt().zzjj().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                    int v11_42 = v7_18.zzaxm;
                                                                    int v12_46 = v11_42.length;
                                                                    int v13_29 = 0;
                                                                    int v14_11 = 0;
                                                                    boolean v15_4 = 0;
                                                                    while (v13_29 < v12_46) {
                                                                        Long v9_74 = v11_42[v13_29];
                                                                        if (!"_c".equals(v9_74.name)) {
                                                                            if ("_err".equals(v9_74.name)) {
                                                                                v14_11 = 1;
                                                                            }
                                                                        } else {
                                                                            v15_4 = v9_74;
                                                                        }
                                                                        v13_29++;
                                                                    }
                                                                    v39_0 = v9_28;
                                                                    if ((v14_11 == 0) || (!v15_4)) {
                                                                        if (!v15_4) {
                                                                            this.zzadp.zzgt().zzjg().zzg("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                        } else {
                                                                            v15_4.name = "_err";
                                                                            v15_4.zzaxq = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        Long v9_36 = v7_18.zzaxm;
                                                                        int v12_50 = new com.google.android.gms.internal.measurement.zzgj[1];
                                                                        v12_50[0] = v15_4;
                                                                        v7_18.zzaxm = ((com.google.android.gms.internal.measurement.zzgj[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v9_36, v12_50));
                                                                    }
                                                                }
                                                            } else {
                                                                int v11_6;
                                                                this.zzjr();
                                                                int v11_4 = v7_18.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v11_4);
                                                                int v12_15 = v11_4.hashCode();
                                                                if (v12_15 == 94660) {
                                                                    if (!v11_4.equals("_in")) {
                                                                        v11_6 = -1;
                                                                    } else {
                                                                        v11_6 = 0;
                                                                    }
                                                                } else {
                                                                    if (v12_15 == 95025) {
                                                                        if (!v11_4.equals("_ug")) {
                                                                        } else {
                                                                            v11_6 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v12_15 == 95027) {
                                                                            if (!v11_4.equals("_ui")) {
                                                                            } else {
                                                                                v11_6 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v11_9;
                                                                switch (v11_6) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v11_9 = 1;
                                                                    default:
                                                                        v11_9 = 0;
                                                                }
                                                                if (v11_9 == 0) {
                                                                    v37_0 = v14_18;
                                                                    v39_0 = v24_0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzadp.zzgv().zzbf(v2_0.zzaut.zztt)) || (v8_15 == null)) {
                                                            } else {
                                                                Boolean v8_18 = v7_18.zzaxm;
                                                                Long v9_42 = 0;
                                                                int v11_49 = -1;
                                                                int v12_51 = -1;
                                                                while (v9_42 < v8_18.length) {
                                                                    if (!"value".equals(v8_18[v9_42].name)) {
                                                                        if ("currency".equals(v8_18[v9_42].name)) {
                                                                            v12_51 = v9_42;
                                                                        }
                                                                    } else {
                                                                        v11_49 = v9_42;
                                                                    }
                                                                    v9_42++;
                                                                }
                                                                if (v11_49 == -1) {
                                                                } else {
                                                                    if ((v8_18[v11_49].zzaxq != null) || (v8_18[v11_49].zzava != null)) {
                                                                        Long v9_51;
                                                                        if (v12_51 != -1) {
                                                                            Long v9_50 = v8_18[v12_51].zzamw;
                                                                            if (v9_50 == null) {
                                                                            } else {
                                                                                if (v9_50.length() == 3) {
                                                                                    int v12_53 = 0;
                                                                                    while (v12_53 < v9_50.length()) {
                                                                                        int v14_13 = v9_50.codePointAt(v12_53);
                                                                                        if (Character.isLetter(v14_13)) {
                                                                                            v12_53 += Character.charCount(v14_13);
                                                                                        } else {
                                                                                        }
                                                                                    }
                                                                                    v9_51 = 0;
                                                                                    if (v9_51 != null) {
                                                                                        this.zzadp.zzgt().zzjl().zzca("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                        v8_18 = com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(v8_18, v11_49), "_c"), 19, "currency");
                                                                                    }
                                                                                    v7_18.zzaxm = v8_18;
                                                                                    if (this.zzadp.zzgv().zze(v2_0.zzaut.zztt, com.google.android.gms.measurement.internal.zzag.zzall)) {
                                                                                        if (!"_e".equals(v7_18.name)) {
                                                                                            if (!"_vs".equals(v7_18.name)) {
                                                                                                if ((v4_7 != null) && ((v5_16 == null) && ("_e".equals(v7_18.name)))) {
                                                                                                    if (v7_18.zzaxm != null) {
                                                                                                        if (v7_18.zzaxm.length != 0) {
                                                                                                            this.zzjr();
                                                                                                            Boolean v8_49 = ((Long) com.google.android.gms.measurement.internal.zzfq.zzb(v7_18, "_et"));
                                                                                                            if (v8_49 != null) {
                                                                                                                v37_0 += v8_49.longValue();
                                                                                                                Long v9_72 = (v26_0 + 1);
                                                                                                                v3_8.zzaxu[v26_0] = v7_18;
                                                                                                                v26_1 = v9_72;
                                                                                                                v14_18 = v37_0;
                                                                                                                v9_73 = v39_0;
                                                                                                                v8_71 = (v25_0 + 1);
                                                                                                                v13_40 = v26_1;
                                                                                                                int v12 = 1;
                                                                                                            } else {
                                                                                                                this.zzadp.zzgt().zzjj().zzg("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                                                            }
                                                                                                        } else {
                                                                                                        }
                                                                                                    }
                                                                                                    this.zzadp.zzgt().zzjj().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt));
                                                                                                }
                                                                                            } else {
                                                                                                this.zzjr();
                                                                                                if (com.google.android.gms.measurement.internal.zzfq.zza(v7_18, "_et") != null) {
                                                                                                } else {
                                                                                                    if ((!v10_5) || ((Math.abs((v10_5.zzaxn.longValue() - v7_18.zzaxn.longValue())) > 1000) || (!this.zza(v10_5, v7_18)))) {
                                                                                                        v6_13 = v7_18;
                                                                                                    } else {
                                                                                                    }
                                                                                                }
                                                                                            }
                                                                                        } else {
                                                                                            this.zzjr();
                                                                                            if (com.google.android.gms.measurement.internal.zzfq.zza(v7_18, "_fr") != null) {
                                                                                            } else {
                                                                                                if ((v6_13 == 0) || ((Math.abs((v6_13.zzaxn.longValue() - v7_18.zzaxn.longValue())) > 1000) || (!this.zza(v7_18, v6_13)))) {
                                                                                                    v10_5 = v7_18;
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                        v6_13 = 0;
                                                                                        v10_5 = 0;
                                                                                    }
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v9_51 = 1;
                                                                        } else {
                                                                            v9_51 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzadp.zzgt().zzjl().zzca("Value must be specified with a numeric type.");
                                                                        v8_18 = com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(com.google.android.gms.measurement.internal.zzfk.zza(v8_18, v11_49), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            Boolean v8_65;
                                                            v25_0 = v8_71;
                                                            v26_1 = v13_40;
                                                            this.zzadp.zzgt().zzjj().zze("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_0.zzaut.zztt), this.zzadp.zzgq().zzbv(v7_18.name));
                                                            if (this.zzls().zzcn(v2_0.zzaut.zztt)) {
                                                                v8_65 = 1;
                                                            } else {
                                                                if (!this.zzls().zzco(v2_0.zzaut.zztt)) {
                                                                    v8_65 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v8_65 == null) && (!"_err".equals(v7_18.name))) {
                                                                this.zzadp.zzgr().zza(v2_0.zzaut.zztt, 11, "_ev", v7_18.name, 0);
                                                            }
                                                            v9_73 = v24_0;
                                                        }
                                                    }
                                                    int v13_4;
                                                    boolean v24_1 = v9_73;
                                                    String v26_2 = v13_40;
                                                    long v37_1 = v14_18;
                                                    if (v5_16 == null) {
                                                        v13_4 = v26_2;
                                                    } else {
                                                        v13_4 = v26_2;
                                                        int v14_5 = v37_1;
                                                        com.google.android.gms.measurement.internal.zzfk v5_0 = 0;
                                                        while (v5_0 < v13_4) {
                                                            long v6_3 = v3_8.zzaxu[v5_0];
                                                            if (!"_e".equals(v6_3.name)) {
                                                                if (v4_7 != null) {
                                                                    this.zzjr();
                                                                    long v6_4 = com.google.android.gms.measurement.internal.zzfq.zza(v6_3, "_et");
                                                                    if (v6_4 != 0) {
                                                                        long v6_5 = v6_4.zzaxq;
                                                                        if ((v6_5 != 0) && (v6_5.longValue() > 0)) {
                                                                            v14_5 += v6_5.longValue();
                                                                        }
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzjr();
                                                                if (com.google.android.gms.measurement.internal.zzfq.zza(v6_3, "_fr") == null) {
                                                                } else {
                                                                    System.arraycopy(v3_8.zzaxu, (v5_0 + 1), v3_8.zzaxu, v5_0, ((v13_4 - v5_0) - 1));
                                                                    v13_4--;
                                                                    v5_0--;
                                                                }
                                                            }
                                                            v5_0++;
                                                        }
                                                        v37_1 = v14_5;
                                                    }
                                                    if (v13_4 < v2_0.zzauv.size()) {
                                                        v3_8.zzaxu = ((com.google.android.gms.internal.measurement.zzgi[]) java.util.Arrays.copyOf(v3_8.zzaxu, v13_4));
                                                    }
                                                    if (v4_7 != null) {
                                                        String v4_12;
                                                        String v4_9 = this.zzjt().zzi(v3_8.zztt, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.measurement.internal.zzft;
                                                            v4_12(v3_8.zztt, "auto", "_lte", this.zzadp.zzbx().currentTimeMillis(), Long.valueOf(v37_1));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                com.google.android.gms.measurement.internal.zzfk v5_24 = new com.google.android.gms.measurement.internal.zzft;
                                                                v5_24(v3_8.zztt, "auto", "_lte", this.zzadp.zzbx().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v37_1)));
                                                                v4_12 = v5_24;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.measurement.internal.zzfk v5_27 = new com.google.android.gms.internal.measurement.zzgo();
                                                        v5_27.name = "_lte";
                                                        v5_27.zzazg = Long.valueOf(this.zzadp.zzbx().currentTimeMillis());
                                                        v5_27.zzaxq = ((Long) v4_12.value);
                                                        long v6_42 = 0;
                                                        while (v6_42 < v3_8.zzaxv.length) {
                                                            if (!"_lte".equals(v3_8.zzaxv[v6_42].name)) {
                                                                v6_42++;
                                                            } else {
                                                                v3_8.zzaxv[v6_42] = v5_27;
                                                                long v6_43 = 1;
                                                            }
                                                            if (v6_43 == 0) {
                                                                v3_8.zzaxv = ((com.google.android.gms.internal.measurement.zzgo[]) java.util.Arrays.copyOf(v3_8.zzaxv, (v3_8.zzaxv.length + 1)));
                                                                v3_8.zzaxv[(v2_0.zzaut.zzaxv.length - 1)] = v5_27;
                                                            }
                                                            if (v37_1 > 0) {
                                                                this.zzjt().zza(v4_12);
                                                                this.zzadp.zzgt().zzjn().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_43 = 0;
                                                    }
                                                    String v1_6;
                                                    android.database.sqlite.SQLiteException v50_1;
                                                    String v4_14 = v3_8.zztt;
                                                    com.google.android.gms.measurement.internal.zzfk v5_33 = v3_8.zzaxv;
                                                    long v6_49 = v3_8.zzaxu;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v4_14);
                                                    v3_8.zzaym = this.zzjs().zza(v4_14, v6_49, v5_33);
                                                    try {
                                                        if (!this.zzadp.zzgv().zzav(v2_0.zzaut.zztt)) {
                                                            v50_1 = v2_0;
                                                            v1_6 = v3_8;
                                                        } else {
                                                            String v4_20 = new java.util.HashMap();
                                                            com.google.android.gms.measurement.internal.zzfk v5_38 = new com.google.android.gms.internal.measurement.zzgi[v3_8.zzaxu.length];
                                                            long v6_1 = this.zzadp.zzgr().zzmk();
                                                            String v7_8 = v3_8.zzaxu;
                                                            Boolean v8_11 = v7_8.length;
                                                            Long v9_1 = 0;
                                                            boolean v10_0 = 0;
                                                            while (v9_1 < v8_11) {
                                                                long v42;
                                                                int v49;
                                                                String v45;
                                                                android.database.sqlite.SQLiteException v50_0;
                                                                boolean v43;
                                                                Long v44;
                                                                int v11_71 = v7_8[v9_1];
                                                                if (!v11_71.name.equals("_ep")) {
                                                                    Boolean v46;
                                                                    com.google.android.gms.measurement.internal.zzaa v3_41;
                                                                    int v12_70 = this.zzls().zzcm(v2_0.zzaut.zztt);
                                                                    v1_0.zzadp.zzgr();
                                                                    int v14_35 = com.google.android.gms.measurement.internal.zzfu.zzc(v11_71.zzaxn.longValue(), v12_70);
                                                                    v42 = v7_8;
                                                                    v43 = v8_11;
                                                                    Boolean v8_92 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v8_92 != null)) {
                                                                        v44 = v3_8;
                                                                        com.google.android.gms.measurement.internal.zzaa v3_29 = v11_71.zzaxm;
                                                                        v45 = v9_1;
                                                                        Long v9_98 = v3_29.length;
                                                                        v46 = v12_70;
                                                                        int v12_71 = 0;
                                                                        while (v12_71 < v9_98) {
                                                                            int v13_56 = v3_29[v12_71];
                                                                            if (!"_dbg".equals(v13_56.name)) {
                                                                                v12_71++;
                                                                            } else {
                                                                                if (((!(v8_92 instanceof Long)) || (!v8_92.equals(v13_56.zzaxq))) && (((!(v8_92 instanceof String)) || (!v8_92.equals(v13_56.zzamw))) && ((!(v8_92 instanceof Double)) || (!v8_92.equals(v13_56.zzava))))) {
                                                                                    break;
                                                                                }
                                                                                v3_41 = 1;
                                                                            }
                                                                        }
                                                                        v3_41 = 0;
                                                                    } else {
                                                                        v44 = v3_8;
                                                                        v45 = v9_1;
                                                                        v46 = v12_70;
                                                                    }
                                                                    int v12_72;
                                                                    if (v3_41 != null) {
                                                                        v12_72 = 1;
                                                                    } else {
                                                                        v12_72 = this.zzls().zzq(v2_0.zzaut.zztt, v11_71.name);
                                                                    }
                                                                    if (v12_72 > 0) {
                                                                        com.google.android.gms.measurement.internal.zzaa v3_1 = ((com.google.android.gms.measurement.internal.zzaa) v4_20.get(v11_71.name));
                                                                        if (v3_1 == null) {
                                                                            v3_1 = this.zzjt().zzg(v2_0.zzaut.zztt, v11_71.name);
                                                                            if (v3_1 == null) {
                                                                                v1_0.zzadp.zzgt().zzjj().zze("Event being bundled has no eventAggregate. appId, eventName", v2_0.zzaut.zztt, v11_71.name);
                                                                                v3_1 = new com.google.android.gms.measurement.internal.zzaa;
                                                                                v3_1(v2_0.zzaut.zztt, v11_71.name, 1, 1, v11_71.zzaxn.longValue(), 0, 0, 0, 0, 0);
                                                                            }
                                                                        }
                                                                        Boolean v8_98;
                                                                        this.zzjr();
                                                                        String v7_77 = ((Long) com.google.android.gms.measurement.internal.zzfq.zzb(v11_71, "_eid"));
                                                                        if (v7_77 == null) {
                                                                            v8_98 = 0;
                                                                        } else {
                                                                            v8_98 = 1;
                                                                        }
                                                                        Boolean v8_99 = Boolean.valueOf(v8_98);
                                                                        if (v12_72 != 1) {
                                                                            if (v6_1.nextInt(v12_72) != 0) {
                                                                                v49 = v6_1;
                                                                                String v1_20;
                                                                                String v51;
                                                                                if (!v1_0.zzadp.zzgv().zzbh(v2_0.zzaut.zztt)) {
                                                                                    v50_0 = v2_0;
                                                                                    v51 = v7_77;
                                                                                    if (Math.abs((v11_71.zzaxn.longValue() - v3_1.zzaik)) < 86400000) {
                                                                                        v1_20 = 0;
                                                                                    } else {
                                                                                        v1_20 = 1;
                                                                                    }
                                                                                } else {
                                                                                    long v18_6;
                                                                                    if (v3_1.zzail == null) {
                                                                                        v1_0.zzadp.zzgr();
                                                                                        v50_0 = v2_0;
                                                                                        v51 = v7_77;
                                                                                        v18_6 = com.google.android.gms.measurement.internal.zzfu.zzc(v11_71.zzaxo.longValue(), v46);
                                                                                    } else {
                                                                                        v18_6 = v3_1.zzail.longValue();
                                                                                        v50_0 = v2_0;
                                                                                        v51 = v7_77;
                                                                                    }
                                                                                    if (v18_6 == v14_35) {
                                                                                    }
                                                                                }
                                                                                if (v1_20 == null) {
                                                                                    if (v8_99.booleanValue()) {
                                                                                        v4_20.put(v11_71.name, v3_1.zza(v51, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzjr();
                                                                                    v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_efs", Long.valueOf(1));
                                                                                    this.zzjr();
                                                                                    long v6_96 = ((long) v12_72);
                                                                                    v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_sr", Long.valueOf(v6_96));
                                                                                    String v1_27 = (v10_0 + 1);
                                                                                    v5_38[v10_0] = v11_71;
                                                                                    if (v8_99.booleanValue()) {
                                                                                        v3_1 = v3_1.zza(0, Long.valueOf(v6_96), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_20.put(v11_71.name, v3_1.zza(v11_71.zzaxn.longValue(), v14_35));
                                                                                    v10_0 = v1_27;
                                                                                }
                                                                            } else {
                                                                                this.zzjr();
                                                                                int v12_73 = ((long) v12_72);
                                                                                v49 = v6_1;
                                                                                v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_sr", Long.valueOf(v12_73));
                                                                                long v6_0 = (v10_0 + 1);
                                                                                v5_38[v10_0] = v11_71;
                                                                                if (v8_99.booleanValue()) {
                                                                                    v3_1 = v3_1.zza(0, Long.valueOf(v12_73), 0);
                                                                                }
                                                                                v4_20.put(v11_71.name, v3_1.zza(v11_71.zzaxn.longValue(), v14_35));
                                                                                v50_0 = v2_0;
                                                                                v10_0 = v6_0;
                                                                            }
                                                                        } else {
                                                                            String v7_4 = (v10_0 + 1);
                                                                            v5_38[v10_0] = v11_71;
                                                                            if ((v8_99.booleanValue()) && ((v3_1.zzaim != null) || ((v3_1.zzain != null) || (v3_1.zzaio != null)))) {
                                                                                v4_20.put(v11_71.name, v3_1.zza(0, 0, 0));
                                                                            }
                                                                            v50_0 = v2_0;
                                                                            v49 = v6_1;
                                                                            v10_0 = v7_4;
                                                                        }
                                                                    } else {
                                                                        v1_0.zzadp.zzgt().zzjj().zze("Sample rate must be positive. event, rate", v11_71.name, Integer.valueOf(v12_72));
                                                                        com.google.android.gms.measurement.internal.zzaa v3_7 = (v10_0 + 1);
                                                                        v5_38[v10_0] = v11_71;
                                                                        v50_0 = v2_0;
                                                                        v10_0 = v3_7;
                                                                        v49 = v6_1;
                                                                    }
                                                                } else {
                                                                    this.zzjr();
                                                                    int v12_2 = ((String) com.google.android.gms.measurement.internal.zzfq.zzb(v11_71, "_en"));
                                                                    int v13_1 = ((com.google.android.gms.measurement.internal.zzaa) v4_20.get(v12_2));
                                                                    if (v13_1 == 0) {
                                                                        v13_1 = this.zzjt().zzg(v2_0.zzaut.zztt, v12_2);
                                                                        v4_20.put(v12_2, v13_1);
                                                                    }
                                                                    if (v13_1.zzaim != null) {
                                                                        v50_0 = v2_0;
                                                                        v44 = v3_8;
                                                                        v49 = v6_1;
                                                                        v42 = v7_8;
                                                                        v43 = v8_11;
                                                                        v45 = v9_1;
                                                                    } else {
                                                                        if (v13_1.zzain.longValue() > 1) {
                                                                            this.zzjr();
                                                                            v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_sr", v13_1.zzain);
                                                                        }
                                                                        if ((v13_1.zzaio != null) && (v13_1.zzaio.booleanValue())) {
                                                                            this.zzjr();
                                                                            v11_71.zzaxm = com.google.android.gms.measurement.internal.zzfq.zza(v11_71.zzaxm, "_efs", Long.valueOf(1));
                                                                        }
                                                                        int v12_13 = (v10_0 + 1);
                                                                        v5_38[v10_0] = v11_71;
                                                                        v50_0 = v2_0;
                                                                        v44 = v3_8;
                                                                        v49 = v6_1;
                                                                        v42 = v7_8;
                                                                        v43 = v8_11;
                                                                        v45 = v9_1;
                                                                        v10_0 = v12_13;
                                                                    }
                                                                }
                                                                v9_1 = (v45 + 1);
                                                                v7_8 = v42;
                                                                v8_11 = v43;
                                                                v3_8 = v44;
                                                                v6_1 = v49;
                                                                v2_0 = v50_0;
                                                                v1_0 = this;
                                                            }
                                                            v50_1 = v2_0;
                                                            v1_6 = v3_8;
                                                            if (v10_0 < v1_6.zzaxu.length) {
                                                                v1_6.zzaxu = ((com.google.android.gms.internal.measurement.zzgi[]) java.util.Arrays.copyOf(v5_38, v10_0));
                                                            }
                                                            int v2_9 = v4_20.entrySet().iterator();
                                                            while (v2_9.hasNext()) {
                                                                this.zzjt().zza(((com.google.android.gms.measurement.internal.zzaa) ((java.util.Map$Entry) v2_9.next()).getValue()));
                                                            }
                                                        }
                                                        try {
                                                            v1_6.zzaxx = Long.valueOf(nan);
                                                            v1_6.zzaxy = Long.valueOf(-0.0);
                                                            int v2_14 = 0;
                                                        } catch (android.database.sqlite.SQLiteException v0_5) {
                                                            String v1_1 = v0_5;
                                                            this.zzjt().endTransaction();
                                                            throw v1_1;
                                                        }
                                                        while (v2_14 < v1_6.zzaxu.length) {
                                                            com.google.android.gms.measurement.internal.zzaa v3_23 = v1_6.zzaxu[v2_14];
                                                            if (v3_23.zzaxn.longValue() < v1_6.zzaxx.longValue()) {
                                                                v1_6.zzaxx = v3_23.zzaxn;
                                                            }
                                                            if (v3_23.zzaxn.longValue() > v1_6.zzaxy.longValue()) {
                                                                v1_6.zzaxy = v3_23.zzaxn;
                                                            }
                                                            v2_14++;
                                                        }
                                                        int v2_15 = v50_1;
                                                        com.google.android.gms.measurement.internal.zzfk v5_39;
                                                        com.google.android.gms.measurement.internal.zzaa v3_20 = v2_15.zzaut.zztt;
                                                        String v4_22 = this.zzjt().zzbo(v3_20);
                                                        if (v4_22 != null) {
                                                            v5_39 = this;
                                                            if (v1_6.zzaxu.length > 0) {
                                                                Boolean v8_86;
                                                                long v6_54 = v4_22.zzhe();
                                                                if (v6_54 == 0) {
                                                                    v8_86 = 0;
                                                                } else {
                                                                    v8_86 = Long.valueOf(v6_54);
                                                                }
                                                                v1_6.zzaya = v8_86;
                                                                Boolean v8_87 = v4_22.zzhd();
                                                                if (v8_87 != 0) {
                                                                    v6_54 = v8_87;
                                                                } else {
                                                                }
                                                                long v6_55;
                                                                if (v6_54 == 0) {
                                                                    v6_55 = 0;
                                                                } else {
                                                                    v6_55 = Long.valueOf(v6_54);
                                                                }
                                                                v1_6.zzaxz = v6_55;
                                                                v4_22.zzhm();
                                                                v1_6.zzayk = Integer.valueOf(((int) v4_22.zzhj()));
                                                                v4_22.zzs(v1_6.zzaxx.longValue());
                                                                v4_22.zzt(v1_6.zzaxy.longValue());
                                                                v1_6.zzagy = v4_22.zzhu();
                                                                this.zzjt().zza(v4_22);
                                                            }
                                                        } else {
                                                            v5_39 = this;
                                                            this.zzadp.zzgt().zzjg().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_15.zzaut.zztt));
                                                        }
                                                        if (v1_6.zzaxu.length > 0) {
                                                            v5_39.zzadp.zzgw();
                                                            String v4_30 = this.zzls().zzci(v2_15.zzaut.zztt);
                                                            if (v4_30 == null) {
                                                                if (!android.text.TextUtils.isEmpty(v2_15.zzaut.zzafx)) {
                                                                    v5_39.zzadp.zzgt().zzjj().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v2_15.zzaut.zztt));
                                                                } else {
                                                                    v1_6.zzayr = Long.valueOf(-1);
                                                                }
                                                            } else {
                                                                if (v4_30.zzawx != null) {
                                                                    v1_6.zzayr = v4_30.zzawx;
                                                                } else {
                                                                }
                                                            }
                                                            this.zzjt().zza(v1_6, v24_1);
                                                        }
                                                        String v1_7 = this.zzjt();
                                                        int v2_16 = v2_15.zzauu;
                                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_16);
                                                        v1_7.zzaf();
                                                        v1_7.zzcl();
                                                        String v4_41 = new StringBuilder("rowid in (");
                                                        long v6_72 = 0;
                                                        while (v6_72 < v2_16.size()) {
                                                            if (v6_72 != 0) {
                                                                v4_41.append(",");
                                                            }
                                                            v4_41.append(((Long) v2_16.get(v6_72)).longValue());
                                                            v6_72++;
                                                        }
                                                        v4_41.append(")");
                                                        String v4_43 = v1_7.getWritableDatabase().delete("raw_events", v4_41.toString(), 0);
                                                        if (v4_43 != v2_16.size()) {
                                                            v1_7.zzgt().zzjg().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v4_43), Integer.valueOf(v2_16.size()));
                                                        }
                                                        String v1_10 = this.zzjt();
                                                        int v2_19 = v1_10.getWritableDatabase();
                                                        try {
                                                            long v6_78 = new String[2];
                                                            v6_78[0] = v3_20;
                                                            v6_78[1] = v3_20;
                                                            v2_19.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_78);
                                                        } catch (android.database.sqlite.SQLiteException v0_7) {
                                                            v1_10.zzgt().zzjg().zze("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_20), v0_7);
                                                        }
                                                        this.zzjt().setTransactionSuccessful();
                                                        this.zzjt().endTransaction();
                                                        return 1;
                                                    } catch (android.database.sqlite.SQLiteException v0_3) {
                                                        v1_1 = v0_3;
                                                    }
                                                }
                                            } else {
                                                v8_7.close();
                                            }
                                        }
                                        if (v8_7.moveToNext()) {
                                            v4_53.zzgt().zzjj().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9));
                                        }
                                        int v17_3;
                                        int v16_4;
                                        v8_7.close();
                                        v2_0.zzb(v13_34);
                                        if (v5_40 == -1) {
                                            long v6_16 = new String[2];
                                            v6_16[0] = v3_9;
                                            v6_16[1] = v7_3;
                                            v16_4 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_3 = v6_16;
                                        } else {
                                            int v14_24 = new String[3];
                                            v14_24[0] = v3_9;
                                            v14_24[1] = v7_3;
                                            v14_24[2] = String.valueOf(v5_40);
                                            v16_4 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_3 = v14_24;
                                        }
                                        boolean v15_9 = new String[4];
                                        v15_9[0] = "rowid";
                                        v15_9[1] = "name";
                                        v15_9[2] = "timestamp";
                                        v15_9[3] = "data";
                                        com.google.android.gms.measurement.internal.zzfk v5_9 = v23.query("raw_events", v15_9, v16_4, v17_3, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_9.moveToFirst()) {
                                                v4_53.zzgt().zzjj().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9));
                                                if (v5_9 == null) {
                                                } else {
                                                    v5_9.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v8_7 = v5_9;
                                            String v1_2 = v0_1;
                                            if (v8_7 != null) {
                                                v8_7.close();
                                            }
                                            throw v1_2;
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            v7_3 = v3_9;
                                            v8_7 = v5_9;
                                        }
                                        do {
                                            long v6_19 = v5_9.getLong(0);
                                            Long v9_92 = v5_9.getBlob(3);
                                            Boolean v8_74 = com.google.android.gms.internal.measurement.zzzi.zzj(v9_92, 0, v9_92.length);
                                            Long v9_94 = new com.google.android.gms.internal.measurement.zzgi();
                                            v9_94.zza(v8_74);
                                            v9_94.name = v5_9.getString(1);
                                            v9_94.zzaxn = Long.valueOf(v5_9.getLong(2));
                                            if (v2_0.zza(v6_19, v9_94)) {
                                            } else {
                                                if (v5_9 == null) {
                                                } else {
                                                    v5_9.close();
                                                }
                                            }
                                        } while(v5_9.moveToNext());
                                        if (v5_9 == null) {
                                        } else {
                                            v5_9.close();
                                        }
                                    } else {
                                        v4_53.zzgt().zzjg().zzg("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v3_9));
                                        if (v8_7 == null) {
                                        } else {
                                            v8_7.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v7_3 = v3_9;
                                }
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v8_7 = v22;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v7_3 = v3_9;
                                v8_7 = v22;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    } else {
                        try {
                            int v13_52;
                            if (v5_40 == -1) {
                                v13_52 = new String[1];
                                v13_52[0] = String.valueOf(p54);
                            } else {
                                v13_52 = new String[2];
                                v13_52[0] = String.valueOf(v5_40);
                                v13_52[1] = String.valueOf(p54);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                            v7_3 = 0;
                            v8_7 = 0;
                        }
                        int v14_36;
                        if (v5_40 == -1) {
                            v14_36 = "";
                        } else {
                            v14_36 = "rowid <= ? and ";
                        }
                        com.google.android.gms.measurement.internal.zzaa v3_50 = new StringBuilder((String.valueOf(v14_36).length() + 148));
                        v3_50.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_50.append(v14_36);
                        v3_50.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_9 = v15_7.rawQuery(v3_50.toString(), v13_52);
                        if (v3_9.moveToFirst()) {
                            String v7_7 = v3_9.getString(0);
                            try {
                                int v13_5 = v3_9.getString(1);
                                v3_9.close();
                                v22 = v3_9;
                                v3_9 = v7_7;
                                v7_3 = v13_5;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v8_7 = v3_9;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v8_7 = v3_9;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v8_7 = v3_9;
                    v7_3 = 0;
                }
                com.google.android.gms.measurement.internal.zzaa v3_0 = v0_2;
                v4_53.zzgt().zzjg().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzaq.zzby(v7_3), v3_0);
                if (v8_7 == null) {
                } else {
                    v8_7.close();
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v8_7 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v3_0 = v0_0;
                v7_3 = 0;
                v8_7 = 0;
            } catch (android.database.sqlite.SQLiteException v0_1) {
            }
        } catch (android.database.sqlite.SQLiteException v0_5) {
        }
    }

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


    private static boolean zza(com.google.android.gms.measurement.internal.zzaq 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[] v4 = new String[1];
                v4[0] = "name";
                String[] v6 = new String[1];
                v6[0] = p13;
                android.database.sqlite.SQLiteException v12_2 = p12.query("SQLITE_MASTER", v4, "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.zzjj().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) {
            }
        }
    }