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();
        Object[] 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);
        com.google.firebase.database.logging.LogWrapper v10_2 = System.currentTimeMillis();
        if (this.logger.logsDebug()) {
            com.google.firebase.database.logging.LogWrapper v10_5 = this.logger;
            Object[] v0_2 = new Object[1];
            v0_2[0] = Long.valueOf((v10_2 - v0_0));
            Object[] v0_3 = new Object[0];
            v10_5.debug(String.format("Reset active tracked queries in %dms", v0_2), v0_3);
        }
        return;
    }

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


    protected final long zzn(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();
        android.database.sqlite.SQLiteDatabase v3 = this.getWritableDatabase();
        v3.beginTransaction();
        try {
            String v7_2 = new StringBuilder((String.valueOf(p20).length() + 32));
            v7_2.append("select ");
            v7_2.append(p20);
            v7_2.append(" from app2 where app_id=?");
            String v6_8 = v7_2.toString();
            Object v8_1 = new String[1];
            v8_1[0] = p19;
            try {
                android.database.sqlite.SQLiteException v13_0 = this.zza(v6_8, v8_1, -1);
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v13_0 = 0;
                this.zzgt().zzjg().zzd("Error inserting column. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p19), p20, v0_0);
                v3.endTransaction();
                return v13_0;
            }
            if (v13_0 == -1) {
                String v6_11 = new android.content.ContentValues();
                v6_11.put("app_id", p19);
                v6_11.put("first_open_count", Integer.valueOf(0));
                v6_11.put("previous_install_count", Integer.valueOf(0));
                if (v3.insertWithOnConflict("app2", 0, v6_11, 5) != -1) {
                    v13_0 = 0;
                } else {
                    this.zzgt().zzjg().zze("Failed to insert column (got -1). appId", com.google.android.gms.measurement.internal.zzas.zzbw(p19), p20);
                    v3.endTransaction();
                    return -1;
                }
            }
            try {
                String v6_14 = new android.content.ContentValues();
                v6_14.put("app_id", p19);
                v6_14.put(p20, Long.valueOf((v13_0 + 1)));
                String v7_4 = new String[1];
                v7_4[0] = p19;
            } catch (android.database.sqlite.SQLiteException v0_0) {
            }
            if (((long) v3.update("app2", v6_14, "app_id = ?", v7_4)) != 0) {
                v3.setTransactionSuccessful();
                v3.endTransaction();
                return v13_0;
            } else {
                this.zzgt().zzjg().zze("Failed to update column (got 0). appId", com.google.android.gms.measurement.internal.zzas.zzbw(p19), p20);
                v3.endTransaction();
                return -1;
            }
        } catch (android.database.sqlite.SQLiteException v0_1) {
            Object v1_3 = v0_1;
            v3.endTransaction();
            throw v1_3;
        } catch (android.database.sqlite.SQLiteException v0_0) {
        } catch (android.database.sqlite.SQLiteException v0_1) {
        }
    }

Method com.google.android.gms.measurement.internal.zzt.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.zzau 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.zzau v0_3) {
            this.zzgt().zzjg().zze("Error storing app. appId", com.google.android.gms.measurement.internal.zzas.zzbw(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.zzas.zzbw(p8.zzal()));
        }
        return;
    }

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


    public final com.google.android.gms.measurement.internal.zzu zza(long p18, String p20, boolean p21, boolean p22, boolean p23, boolean p24, boolean p25)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p20);
        this.zzaf();
        this.zzcl();
        String v3_1 = new String[1];
        v3_1[0] = p20;
        com.google.android.gms.measurement.internal.zzu v5_1 = new com.google.android.gms.measurement.internal.zzu();
        int v6_1 = 0;
        try {
            android.database.sqlite.SQLiteDatabase v15 = this.getWritableDatabase();
            String[] v11 = "daily_public_events_count";
            int v13 = "daily_error_events_count";
            v11 = new String[1];
            v11[0] = p20;
            int v7_1 = v15.query("apps", new String[] {"day", "daily_realtime_events_count"}), "app_id=?", v11, 0, 0, 0);
            try {
                if (v7_1.moveToFirst()) {
                    if (v7_1.getLong(0) == p18) {
                        v5_1.zzahi = v7_1.getLong(1);
                        v5_1.zzahh = v7_1.getLong(2);
                        v5_1.zzahj = v7_1.getLong(3);
                        v5_1.zzahk = v7_1.getLong(4);
                        v5_1.zzahl = v7_1.getLong(5);
                    }
                    if (p21) {
                        v5_1.zzahi = (v5_1.zzahi + 1);
                    }
                    if (p22) {
                        v5_1.zzahh = (v5_1.zzahh + 1);
                    }
                    if (p23) {
                        v5_1.zzahj = (v5_1.zzahj + 1);
                    }
                    if (p24) {
                        v5_1.zzahk = (v5_1.zzahk + 1);
                    }
                    if (p25) {
                        v5_1.zzahl = (v5_1.zzahl + 1);
                    }
                    android.content.ContentValues v1_2 = new android.content.ContentValues();
                    v1_2.put("day", Long.valueOf(p18));
                    v1_2.put("daily_public_events_count", Long.valueOf(v5_1.zzahh));
                    v1_2.put("daily_events_count", Long.valueOf(v5_1.zzahi));
                    v1_2.put("daily_conversions_count", Long.valueOf(v5_1.zzahj));
                    v1_2.put("daily_error_events_count", Long.valueOf(v5_1.zzahk));
                    v1_2.put("daily_realtime_events_count", Long.valueOf(v5_1.zzahl));
                    v15.update("apps", v1_2, "app_id=?", v3_1);
                    if (v7_1 != 0) {
                        v7_1.close();
                    }
                    return v5_1;
                } else {
                    this.zzgt().zzjj().zzg("Not updating daily counts, app is not known. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p20));
                    if (v7_1 != 0) {
                        v7_1.close();
                    }
                    return v5_1;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                android.content.ContentValues v1_0 = v0_0;
                if (v7_1 != 0) {
                    v7_1.close();
                }
                throw v1_0;
            } catch (android.database.sqlite.SQLiteException v0_2) {
                android.content.ContentValues v1_3 = v0_2;
                v6_1 = v7_1;
                this.zzgt().zzjg().zze("Error updating daily counts. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p20), v1_3);
                if (v6_1 != 0) {
                    v6_1.close();
                }
                return v5_1;
            }
        } catch (android.database.sqlite.SQLiteException v0_3) {
            v1_0 = v0_3;
            v7_1 = v6_1;
        } catch (android.database.sqlite.SQLiteException v0_1) {
            v1_3 = v0_1;
        }
    }

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


    protected final boolean zza(String p18, byte[] p19, String p20)
    {
        this.zzcl();
        this.zzaf();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p18);
        com.google.android.gms.measurement.internal.zzau v3_2 = this.zza(p18, p19);
        if (v3_2 != null) {
            void v1_1 = this.zza(p18, v3_2);
            v1_1.zzaon.put(p18, v3_2);
            v1_1.zzaop.put(p18, p20);
            v1_1.zzaok.put(p18, com.google.android.gms.measurement.internal.zzbq.zza(v3_2));
            com.google.android.gms.measurement.internal.zzau v5_3 = this.zzjs();
            String v6_2 = v3_2.zzawo;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v6_2);
            String v7_0 = v6_2.length;
            int v8_0 = 0;
            while (v8_0 < v7_0) {
                int v9_3 = v6_2[v8_0];
                int v10_2 = v9_3.zzavg;
                String v11_2 = v10_2.length;
                int v12 = 0;
                while (v12 < v11_2) {
                    com.google.android.gms.internal.measurement.zzfk[] v13_0 = v10_2[v12];
                    int v14_1 = com.google.android.gms.measurement.internal.zzcu.zzco(v13_0.zzavl);
                    if (v14_1 != 0) {
                        v13_0.zzavl = v14_1;
                    }
                    com.google.android.gms.internal.measurement.zzfk[] v13_1 = v13_0.zzavm;
                    int v14_2 = v13_1.length;
                    int v15 = 0;
                    while (v15 < v14_2) {
                        int v4_0 = v13_1[v15];
                        String v16_0 = v7_0;
                        String v7_2 = com.google.android.gms.measurement.internal.zzcv.zzco(v4_0.zzavt);
                        if (v7_2 != null) {
                            v4_0.zzavt = v7_2;
                        }
                        v15++;
                        v7_0 = v16_0;
                    }
                    v12++;
                }
                String v16_1 = v7_0;
                int v4_9 = v9_3.zzavf;
                String v7_6 = v4_9.length;
                int v9_0 = 0;
                while (v9_0 < v7_6) {
                    int v10_0 = v4_9[v9_0];
                    String v11_1 = com.google.android.gms.measurement.internal.zzcw.zzco(v10_0.zzawa);
                    if (v11_1 != null) {
                        v10_0.zzawa = v11_1;
                    }
                    v9_0++;
                }
                v8_0++;
                v7_0 = v16_1;
            }
            v5_3.zzjt().zza(p18, v6_2);
            try {
                v3_2.zzawo = 0;
                int v4_4 = new byte[v3_2.zzvx()];
                v3_2.zza(com.google.android.gms.internal.measurement.zzya.zzk(v4_4, 0, v4_4.length));
            } catch (android.database.sqlite.SQLiteException v0_0) {
                this.zzgt().zzjj().zze("Unable to serialize reduced-size config. Storing full config instead. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p18), v0_0);
                v4_4 = p19;
            }
            com.google.android.gms.measurement.internal.zzau v3_1 = this.zzjt();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p18);
            v3_1.zzaf();
            v3_1.zzcl();
            com.google.android.gms.measurement.internal.zzau v5_8 = new android.content.ContentValues();
            v5_8.put("remote_config", v4_4);
            try {
                String v6_6 = v3_1.getWritableDatabase();
                int v9_1 = new String[1];
                v9_1[0] = p18;
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v3_1.zzgt().zzjg().zze("Error storing remote config. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p18), v0_1);
                return 1;
            }
            if (((long) v6_6.update("apps", v5_8, "app_id = ?", v9_1)) != 0) {
                return 1;
            } else {
                v3_1.zzgt().zzjg().zzg("Failed to update remote config (got 0). appId", com.google.android.gms.measurement.internal.zzas.zzbw(p18));
                return 1;
            }
        } else {
            return 0;
        }
    }

Method com.google.android.gms.measurement.internal.zzt.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.zzt.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.zzt.zzad() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final String zzad(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().zzby("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.zzt.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.zzau 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.zzau v3_0 = Long.valueOf(v1_0.getLong(1));
                    java.io.IOException v2_2 = com.google.android.gms.internal.measurement.zzxz.zzj(v2_1, 0, v2_1.length);
                    String v4_1 = new com.google.android.gms.internal.measurement.zzft();
                    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.zzas.zzbw(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().zzby("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.zzt.zza() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final long zza(String p3, String[] p4, long p5)
    {
        com.google.android.gms.measurement.internal.zzau v1 = 0;
        try {
            com.google.android.gms.measurement.internal.zzau 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.zzt.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.zzau 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.zzao.zza() calling method android.database.sqlite.SQLiteDatabase.rawQuery()

Couldn't retrieve source code

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.zzfo.zzd() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final boolean zzd(String p62, long p63)
    {
        this.zzjt().beginTransaction();
        try {
            String v3_0 = 0;
            com.google.android.gms.measurement.internal.zzac v2_29 = new com.google.android.gms.measurement.internal.zzfo$zza(this, 0);
            Object v4_40 = this.zzjt();
            String v5_81 = this.zzauc;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_29);
            v4_40.zzaf();
            v4_40.zzcl();
            try {
                long v7_0;
                int v23;
                Long v15_3 = v4_40.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        String v3_85;
                        if (v5_81 == -1) {
                            v3_85 = new String[] {0});
                        } else {
                            v3_85 = new String[2];
                            v3_85[0] = 0;
                            v3_85[1] = String.valueOf(v5_81);
                        }
                        long v7_59;
                        if (v5_81 == -1) {
                            v7_59 = "";
                        } else {
                            v7_59 = " and rowid <= ?";
                        }
                        boolean v14_15 = new StringBuilder((String.valueOf(v7_59).length() + 84));
                        v14_15.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_15.append(v7_59);
                        v14_15.append(" order by rowid limit 1;");
                        v3_0 = v15_3.rawQuery(v14_15.toString(), v3_85);
                        if (v3_0.moveToFirst()) {
                            int v13_45 = v3_0.getString(0);
                            v3_0.close();
                            v23 = v3_0;
                            v7_0 = v13_45;
                            v3_0 = 0;
                            try {
                                int v13_12 = new String[2];
                                v13_12[0] = v3_0;
                                v13_12[1] = v7_0;
                                android.database.sqlite.SQLiteDatabase v25 = v15_3;
                                Long v15_2 = v15_3.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_12, 0, 0, "rowid", "2");
                                try {
                                    if (v15_2.moveToFirst()) {
                                        int v13_24 = v15_2.getBlob(0);
                                        int v13_26 = com.google.android.gms.internal.measurement.zzxz.zzj(v13_24, 0, v13_24.length);
                                        boolean v14_10 = new com.google.android.gms.internal.measurement.zzfw();
                                        try {
                                            v14_10.zza(v13_26);
                                        } catch (android.database.sqlite.SQLiteException v0_5) {
                                            String v6_5 = v15_2;
                                            v4_40.zzgt().zzjg().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0), v0_5);
                                            if (v6_5 == null) {
                                                String v3_89;
                                                if (v2_29.zzaui == null) {
                                                    v3_89 = 1;
                                                } else {
                                                    if (!v2_29.zzaui.isEmpty()) {
                                                        v3_89 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_89 != null) {
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 0;
                                                } else {
                                                    String v3_81 = v2_29.zzaug;
                                                    Object v4_4 = new com.google.android.gms.internal.measurement.zzft[v2_29.zzaui.size()];
                                                    v3_81.zzaxi = v4_4;
                                                    Object v4_7 = this.zzada.zzgv().zzau(v3_81.zztt);
                                                    String v5_24 = this.zzada.zzgv().zze(v2_29.zzaug.zztt, com.google.android.gms.measurement.internal.zzai.zzala);
                                                    Boolean v8_16 = 0;
                                                    int v9_9 = 0;
                                                    boolean v10_60 = 0;
                                                    long v12_44 = 0;
                                                    int v13_27 = 0;
                                                    boolean v14_11 = 0;
                                                    while(true) {
                                                        com.google.android.gms.internal.measurement.zzft v26 = v12_44;
                                                        if (v10_60 >= v2_29.zzaui.size()) {
                                                            break;
                                                        }
                                                        com.google.android.gms.measurement.internal.zzac v2_22;
                                                        long v7_35;
                                                        com.google.android.gms.measurement.internal.zzac v27_0;
                                                        String v6_21 = ((com.google.android.gms.internal.measurement.zzft) v2_29.zzaui.get(v10_60));
                                                        if (!this.zzls().zzo(v2_29.zzaug.zztt, v6_21.name)) {
                                                            long v32_0;
                                                            String v45_0;
                                                            v27_0 = v10_60;
                                                            String v28_0 = v13_27;
                                                            long v7_7 = this.zzls().zzp(v2_29.zzaug.zztt, v6_21.name);
                                                            if (v7_7 != 0) {
                                                                if (v6_21.zzaxa == null) {
                                                                    long v12_18 = new com.google.android.gms.internal.measurement.zzfu[0];
                                                                    v6_21.zzaxa = v12_18;
                                                                }
                                                                boolean v11_12 = v6_21.zzaxa;
                                                                long v12_19 = v11_12.length;
                                                                int v13_9 = 0;
                                                                long v16_1 = 0;
                                                                int v17_0 = 0;
                                                                while (v13_9 < v12_19) {
                                                                    long v32_1;
                                                                    boolean v10_50 = v11_12[v13_9];
                                                                    long v30_0 = v11_12;
                                                                    long v31_0 = v12_19;
                                                                    if (!"_c".equals(v10_50.name)) {
                                                                        v32_1 = v3_81;
                                                                        if ("_r".equals(v10_50.name)) {
                                                                            v10_50.zzaxe = Long.valueOf(1);
                                                                            v17_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v32_1 = v3_81;
                                                                        v10_50.zzaxe = Long.valueOf(1);
                                                                        v16_1 = 1;
                                                                    }
                                                                    v13_9++;
                                                                    v11_12 = v30_0;
                                                                    v12_19 = v31_0;
                                                                    v3_81 = v32_1;
                                                                }
                                                                v32_0 = v3_81;
                                                                if ((v16_1 == 0) && (v7_7 != 0)) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as conversion", this.zzada.zzgq().zzbt(v6_21.name));
                                                                    String v3_8 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_21.zzaxa, (v6_21.zzaxa.length + 1)));
                                                                    boolean v10_10 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v10_10.name = "_c";
                                                                    v10_10.zzaxe = Long.valueOf(1);
                                                                    v3_8[(v3_8.length - 1)] = v10_10;
                                                                    v6_21.zzaxa = v3_8;
                                                                }
                                                                if (v17_0 == 0) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as real-time", this.zzada.zzgq().zzbt(v6_21.name));
                                                                    String v3_14 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_21.zzaxa, (v6_21.zzaxa.length + 1)));
                                                                    boolean v10_16 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v10_16.name = "_r";
                                                                    v10_16.zzaxe = Long.valueOf(1);
                                                                    v3_14[(v3_14.length - 1)] = v10_16;
                                                                    v6_21.zzaxa = v3_14;
                                                                }
                                                                long v12_27;
                                                                if (this.zzjt().zza(this.zzly(), v2_29.zzaug.zztt, 0, 0, 0, 0, 1).zzahl <= ((long) this.zzada.zzgv().zzaq(v2_29.zzaug.zztt))) {
                                                                    v12_27 = 1;
                                                                } else {
                                                                    String v3_22 = 0;
                                                                    while (v3_22 < v6_21.zzaxa.length) {
                                                                        if (!"_r".equals(v6_21.zzaxa[v3_22].name)) {
                                                                            v3_22++;
                                                                        } else {
                                                                            boolean v10_25 = new com.google.android.gms.internal.measurement.zzfu[(v6_21.zzaxa.length - 1)];
                                                                            if (v3_22 > null) {
                                                                                System.arraycopy(v6_21.zzaxa, 0, v10_25, 0, v3_22);
                                                                            }
                                                                            if (v3_22 < v10_25.length) {
                                                                                System.arraycopy(v6_21.zzaxa, (v3_22 + 1), v10_25, v3_22, (v10_25.length - v3_22));
                                                                            }
                                                                            v6_21.zzaxa = v10_25;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_27 = v26;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.zzfy.zzct(v6_21.name)) || (v7_7 == 0)) {
                                                                    com.google.android.gms.internal.measurement.zzft v42 = v12_27;
                                                                    v45_0 = v14_11;
                                                                } else {
                                                                    v42 = v12_27;
                                                                    if (this.zzjt().zza(this.zzly(), v2_29.zzaug.zztt, 0, 0, 1, 0, 0).zzahj <= ((long) this.zzada.zzgv().zzb(v2_29.zzaug.zztt, com.google.android.gms.measurement.internal.zzai.zzajh))) {
                                                                    } else {
                                                                        this.zzada.zzgt().zzjj().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_29.zzaug.zztt));
                                                                        String v3_35 = v6_21.zzaxa;
                                                                        boolean v10_29 = v3_35.length;
                                                                        boolean v11_40 = 0;
                                                                        long v12_32 = 0;
                                                                        int v13_18 = 0;
                                                                        while (v11_40 < v10_29) {
                                                                            boolean v10_48 = v3_35[v11_40];
                                                                            if (!"_c".equals(v10_48.name)) {
                                                                                if ("_err".equals(v10_48.name)) {
                                                                                    v12_32 = 1;
                                                                                }
                                                                            } else {
                                                                                v13_18 = v10_48;
                                                                            }
                                                                            v11_40++;
                                                                        }
                                                                        v45_0 = v14_11;
                                                                        if ((v12_32 == 0) || (v13_18 == 0)) {
                                                                            if (v13_18 == 0) {
                                                                                this.zzada.zzgt().zzjg().zzg("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_29.zzaug.zztt));
                                                                            } else {
                                                                                v13_18.name = "_err";
                                                                                v13_18.zzaxe = Long.valueOf(10);
                                                                            }
                                                                        } else {
                                                                            String v3_41 = v6_21.zzaxa;
                                                                            boolean v11_44 = new com.google.android.gms.internal.measurement.zzfu[1];
                                                                            v11_44[0] = v13_18;
                                                                            v6_21.zzaxa = ((com.google.android.gms.internal.measurement.zzfu[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v3_41, v11_44));
                                                                        }
                                                                    }
                                                                }
                                                                v26 = v42;
                                                            } else {
                                                                boolean v11_6;
                                                                this.zzjr();
                                                                boolean v11_4 = v6_21.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v11_4);
                                                                long v12_14 = v11_4.hashCode();
                                                                if (v12_14 == 94660) {
                                                                    if (!v11_4.equals("_in")) {
                                                                        v11_6 = -1;
                                                                    } else {
                                                                        v11_6 = 0;
                                                                    }
                                                                } else {
                                                                    if (v12_14 == 95025) {
                                                                        if (!v11_4.equals("_ug")) {
                                                                        } else {
                                                                            v11_6 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v12_14 == 95027) {
                                                                            if (!v11_4.equals("_ui")) {
                                                                            } else {
                                                                                v11_6 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                boolean v11_9;
                                                                switch (v11_6) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v11_9 = 1;
                                                                    default:
                                                                        v11_9 = 0;
                                                                }
                                                                if (!v11_9) {
                                                                    v32_0 = v3_81;
                                                                    v45_0 = v14_11;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzada.zzgv().zzbd(v2_29.zzaug.zztt)) || (v7_7 == 0)) {
                                                            } else {
                                                                String v3_47 = v6_21.zzaxa;
                                                                long v7_8 = 0;
                                                                boolean v10_36 = -1;
                                                                boolean v11_45 = -1;
                                                                while (v7_8 < v3_47.length) {
                                                                    if (!"value".equals(v3_47[v7_8].name)) {
                                                                        if ("currency".equals(v3_47[v7_8].name)) {
                                                                            v11_45 = v7_8;
                                                                        }
                                                                    } else {
                                                                        v10_36 = v7_8;
                                                                    }
                                                                    v7_8++;
                                                                }
                                                                if (v10_36 == -1) {
                                                                } else {
                                                                    if ((v3_47[v10_36].zzaxe != null) || (v3_47[v10_36].zzaun != null)) {
                                                                        long v7_17;
                                                                        if (v11_45 != -1) {
                                                                            long v7_16 = v3_47[v11_45].zzaml;
                                                                            if (v7_16 == 0) {
                                                                            } else {
                                                                                if (v7_16.length() == 3) {
                                                                                    boolean v11_47 = 0;
                                                                                    while (v11_47 < v7_16.length()) {
                                                                                        int v13_20 = v7_16.codePointAt(v11_47);
                                                                                        if (Character.isLetter(v13_20)) {
                                                                                            v11_47 += Character.charCount(v13_20);
                                                                                        } else {
                                                                                        }
                                                                                    }
                                                                                    v7_17 = 0;
                                                                                    if (v7_17 != 0) {
                                                                                        this.zzada.zzgt().zzjl().zzby("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                        v3_47 = com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(v3_47, v10_36), "_c"), 19, "currency");
                                                                                    }
                                                                                    v6_21.zzaxa = v3_47;
                                                                                    int v47;
                                                                                    if (!this.zzada.zzgv().zze(v2_29.zzaug.zztt, com.google.android.gms.measurement.internal.zzai.zzakz)) {
                                                                                        v47 = v2_29;
                                                                                    } else {
                                                                                        if (!"_e".equals(v6_21.name)) {
                                                                                            if (!"_vs".equals(v6_21.name)) {
                                                                                            } else {
                                                                                                this.zzjr();
                                                                                                if (com.google.android.gms.measurement.internal.zzfu.zza(v6_21, "_et") != null) {
                                                                                                } else {
                                                                                                    if (v8_16 == null) {
                                                                                                        v47 = v2_29;
                                                                                                    } else {
                                                                                                        v47 = v2_29;
                                                                                                        if ((Math.abs((v8_16.zzaxb.longValue() - v6_21.zzaxb.longValue())) <= 1000) && (this.zza(v8_16, v6_21))) {
                                                                                                            v8_16 = 0;
                                                                                                            v9_9 = 0;
                                                                                                            if ((v4_7 == null) || ((v5_24 != null) || (!"_e".equals(v6_21.name)))) {
                                                                                                                v7_35 = v47;
                                                                                                                v2_22 = v32_0;
                                                                                                                v14_11 = v45_0;
                                                                                                            } else {
                                                                                                                if (v6_21.zzaxa != null) {
                                                                                                                    if (v6_21.zzaxa.length != 0) {
                                                                                                                        this.zzjr();
                                                                                                                        com.google.android.gms.measurement.internal.zzac v2_20 = ((Long) com.google.android.gms.measurement.internal.zzfu.zzb(v6_21, "_et"));
                                                                                                                        if (v2_20 != null) {
                                                                                                                            v7_35 = v47;
                                                                                                                            v14_11 = (v45_0 + v2_20.longValue());
                                                                                                                            v2_22 = v32_0;
                                                                                                                            v13_27 = (v28_0 + 1);
                                                                                                                            v2_22.zzaxi[v28_0] = v6_21;
                                                                                                                            v10_60 = (v27_0 + 1);
                                                                                                                            v3_81 = v2_22;
                                                                                                                            v2_29 = v7_35;
                                                                                                                            v12_44 = v26;
                                                                                                                        } else {
                                                                                                                            v7_35 = v47;
                                                                                                                            this.zzada.zzgt().zzjj().zzg("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_35.zzaug.zztt));
                                                                                                                        }
                                                                                                                    } else {
                                                                                                                    }
                                                                                                                }
                                                                                                                v7_35 = v47;
                                                                                                                this.zzada.zzgt().zzjj().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_35.zzaug.zztt));
                                                                                                            }
                                                                                                        }
                                                                                                    }
                                                                                                    v9_9 = v6_21;
                                                                                                }
                                                                                            }
                                                                                        } else {
                                                                                            this.zzjr();
                                                                                            if (com.google.android.gms.measurement.internal.zzfu.zza(v6_21, "_fr") != null) {
                                                                                            } else {
                                                                                                if ((v9_9 == 0) || ((Math.abs((v9_9.zzaxb.longValue() - v6_21.zzaxb.longValue())) > 1000) || (!this.zza(v6_21, v9_9)))) {
                                                                                                    v47 = v2_29;
                                                                                                    v8_16 = v6_21;
                                                                                                } else {
                                                                                                    v47 = v2_29;
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v7_17 = 1;
                                                                        } else {
                                                                            v7_17 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzada.zzgt().zzjl().zzby("Value must be specified with a numeric type.");
                                                                        v3_47 = com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(v3_47, v10_36), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            long v7_44;
                                                            v27_0 = v10_60;
                                                            String v28_1 = v13_27;
                                                            this.zzada.zzgt().zzjj().zze("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_29.zzaug.zztt), this.zzada.zzgq().zzbt(v6_21.name));
                                                            if (this.zzls().zzcl(v2_29.zzaug.zztt)) {
                                                                v7_44 = 1;
                                                            } else {
                                                                if (!this.zzls().zzcm(v2_29.zzaug.zztt)) {
                                                                    v7_44 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v7_44 == 0) && (!"_err".equals(v6_21.name))) {
                                                                this.zzada.zzgr().zza(v2_29.zzaug.zztt, 11, "_ev", v6_21.name, 0);
                                                            }
                                                            v7_35 = v2_29;
                                                            v2_22 = v3_81;
                                                            v13_27 = v28_1;
                                                        }
                                                    }
                                                    int v13_5;
                                                    boolean v14_5;
                                                    long v7_3 = v2_29;
                                                    com.google.android.gms.measurement.internal.zzac v2_9 = v3_81;
                                                    String v28_2 = v13_27;
                                                    String v45_2 = v14_11;
                                                    if (v5_24 == null) {
                                                        v13_5 = v28_2;
                                                        v14_5 = v45_2;
                                                    } else {
                                                        v13_5 = v28_2;
                                                        v14_5 = v45_2;
                                                        String v3_2 = 0;
                                                        while (v3_2 < v13_5) {
                                                            String v5_5 = v2_9.zzaxi[v3_2];
                                                            if (!"_e".equals(v5_5.name)) {
                                                                if (v4_7 != null) {
                                                                    this.zzjr();
                                                                    String v5_6 = com.google.android.gms.measurement.internal.zzfu.zza(v5_5, "_et");
                                                                    if (v5_6 != null) {
                                                                        String v5_7 = v5_6.zzaxe;
                                                                        if ((v5_7 != null) && (v5_7.longValue() > 0)) {
                                                                            v14_5 += v5_7.longValue();
                                                                        }
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzjr();
                                                                if (com.google.android.gms.measurement.internal.zzfu.zza(v5_5, "_fr") == null) {
                                                                } else {
                                                                    System.arraycopy(v2_9.zzaxi, (v3_2 + 1), v2_9.zzaxi, v3_2, ((v13_5 - v3_2) - 1));
                                                                    v13_5--;
                                                                    v3_2--;
                                                                }
                                                            }
                                                            v3_2++;
                                                        }
                                                    }
                                                    if (v13_5 < v7_3.zzaui.size()) {
                                                        v2_9.zzaxi = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v2_9.zzaxi, v13_5));
                                                    }
                                                    if (v4_7 != null) {
                                                        String v3_99;
                                                        String v3_96 = this.zzjt().zzi(v2_9.zztt, "_lte");
                                                        if (v3_96 == null) {
                                                            v3_99 = new com.google.android.gms.measurement.internal.zzfx;
                                                            v3_99(v2_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf(v14_5));
                                                        } else {
                                                            if (v3_96.value != null) {
                                                                Object v4_10 = new com.google.android.gms.measurement.internal.zzfx;
                                                                v4_10(v2_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf((((Long) v3_96.value).longValue() + v14_5)));
                                                                v3_99 = v4_10;
                                                            } else {
                                                            }
                                                        }
                                                        Object v4_13 = new com.google.android.gms.internal.measurement.zzfz();
                                                        v4_13.name = "_lte";
                                                        v4_13.zzayu = Long.valueOf(this.zzada.zzbx().currentTimeMillis());
                                                        v4_13.zzaxe = ((Long) v3_99.value);
                                                        String v5_36 = 0;
                                                        while (v5_36 < v2_9.zzaxj.length) {
                                                            if (!"_lte".equals(v2_9.zzaxj[v5_36].name)) {
                                                                v5_36++;
                                                            } else {
                                                                v2_9.zzaxj[v5_36] = v4_13;
                                                                String v5_37 = 1;
                                                            }
                                                            if (v5_37 == null) {
                                                                v2_9.zzaxj = ((com.google.android.gms.internal.measurement.zzfz[]) java.util.Arrays.copyOf(v2_9.zzaxj, (v2_9.zzaxj.length + 1)));
                                                                v2_9.zzaxj[(v7_3.zzaug.zzaxj.length - 1)] = v4_13;
                                                            }
                                                            if (v14_5 > 0) {
                                                                this.zzjt().zza(v3_99);
                                                                this.zzada.zzgt().zzjn().zzg("Updated lifetime engagement user property with value. Value", v3_99.value);
                                                            }
                                                        }
                                                        v5_37 = 0;
                                                    }
                                                    long v57_1;
                                                    String v3_101 = v2_9.zztt;
                                                    Object v4_19 = v2_9.zzaxj;
                                                    String v5_43 = v2_9.zzaxi;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_101);
                                                    v2_9.zzaya = this.zzjs().zza(v3_101, v5_43, v4_19);
                                                    if (!this.zzada.zzgv().zzat(v7_3.zzaug.zztt)) {
                                                        v57_1 = v7_3;
                                                    } else {
                                                        String v3_107 = new java.util.HashMap();
                                                        Object v4_24 = new com.google.android.gms.internal.measurement.zzft[v2_9.zzaxi.length];
                                                        String v5_3 = this.zzada.zzgr().zzmk();
                                                        String v6_11 = v2_9.zzaxi;
                                                        Boolean v8_10 = v6_11.length;
                                                        int v9_4 = 0;
                                                        boolean v10_0 = 0;
                                                        while (v9_4 < v8_10) {
                                                            long v49;
                                                            int v50;
                                                            long v57_0;
                                                            int v55;
                                                            boolean v48;
                                                            com.google.android.gms.measurement.internal.zzbq v51;
                                                            boolean v11_58 = v6_11[v9_4];
                                                            if (!v11_58.name.equals("_ep")) {
                                                                long v52;
                                                                com.google.android.gms.measurement.internal.zzac v2_47;
                                                                v48 = v6_11;
                                                                long v12_56 = this.zzls().zzck(v7_3.zzaug.zztt);
                                                                this.zzada.zzgr();
                                                                boolean v14_21 = com.google.android.gms.measurement.internal.zzfy.zzc(v11_58.zzaxb.longValue(), v12_56);
                                                                v51 = v2_9;
                                                                v49 = v8_10;
                                                                v50 = v9_4;
                                                                com.google.android.gms.measurement.internal.zzac v2_45 = Long.valueOf(1);
                                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                                    v52 = v12_56;
                                                                    v2_47 = 0;
                                                                } else {
                                                                    if (v2_45 != null) {
                                                                        Boolean v8_30 = v11_58.zzaxa;
                                                                        int v9_12 = v8_30.length;
                                                                        v52 = v12_56;
                                                                        long v12_57 = 0;
                                                                        while (v12_57 < v9_12) {
                                                                            int v13_49 = v8_30[v12_57];
                                                                            if (!"_dbg".equals(v13_49.name)) {
                                                                                v12_57++;
                                                                            } else {
                                                                                if (((!(v2_45 instanceof Long)) || (!v2_45.equals(v13_49.zzaxe))) && (((!(v2_45 instanceof String)) || (!v2_45.equals(v13_49.zzaml))) && ((!(v2_45 instanceof Double)) || (!v2_45.equals(v13_49.zzaun))))) {
                                                                                    break;
                                                                                }
                                                                                v2_47 = 1;
                                                                            }
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                long v12_58;
                                                                if (v2_47 != null) {
                                                                    v12_58 = 1;
                                                                } else {
                                                                    v12_58 = this.zzls().zzq(v7_3.zzaug.zztt, v11_58.name);
                                                                }
                                                                if (v12_58 > 0) {
                                                                    com.google.android.gms.measurement.internal.zzac v2_1 = ((com.google.android.gms.measurement.internal.zzac) v3_107.get(v11_58.name));
                                                                    if (v2_1 == null) {
                                                                        v2_1 = this.zzjt().zzg(v7_3.zzaug.zztt, v11_58.name);
                                                                        if (v2_1 == null) {
                                                                            this.zzada.zzgt().zzjj().zze("Event being bundled has no eventAggregate. appId, eventName", v7_3.zzaug.zztt, v11_58.name);
                                                                            v2_1 = new com.google.android.gms.measurement.internal.zzac;
                                                                            v2_1(v7_3.zzaug.zztt, v11_58.name, 1, 1, v11_58.zzaxb.longValue(), 0, 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    Boolean v8_38;
                                                                    this.zzjr();
                                                                    String v6_103 = ((Long) com.google.android.gms.measurement.internal.zzfu.zzb(v11_58, "_eid"));
                                                                    if (v6_103 == null) {
                                                                        v8_38 = 0;
                                                                    } else {
                                                                        v8_38 = 1;
                                                                    }
                                                                    Boolean v8_39 = Boolean.valueOf(v8_38);
                                                                    if (v12_58 != 1) {
                                                                        if (v5_3.nextInt(v12_58) != 0) {
                                                                            boolean v59;
                                                                            String v56;
                                                                            Boolean v58;
                                                                            String v5_87;
                                                                            v55 = v5_3;
                                                                            if (!this.zzada.zzgv().zzbf(v7_3.zzaug.zztt)) {
                                                                                v56 = v6_103;
                                                                                v57_0 = v7_3;
                                                                                v58 = v8_39;
                                                                                v59 = v14_21;
                                                                                if (Math.abs((v11_58.zzaxb.longValue() - v2_1.zzahy)) < 86400000) {
                                                                                    v5_87 = 0;
                                                                                } else {
                                                                                    v5_87 = 1;
                                                                                }
                                                                            } else {
                                                                                long v16_7;
                                                                                if (v2_1.zzahz == null) {
                                                                                    this.zzada.zzgr();
                                                                                    v56 = v6_103;
                                                                                    v57_0 = v7_3;
                                                                                    v58 = v8_39;
                                                                                    v16_7 = com.google.android.gms.measurement.internal.zzfy.zzc(v11_58.zzaxc.longValue(), v52);
                                                                                } else {
                                                                                    v16_7 = v2_1.zzahz.longValue();
                                                                                    v56 = v6_103;
                                                                                    v57_0 = v7_3;
                                                                                    v58 = v8_39;
                                                                                }
                                                                                if (v16_7 == v14_21) {
                                                                                    v5_87 = 0;
                                                                                } else {
                                                                                    v5_87 = 1;
                                                                                }
                                                                                v59 = v14_21;
                                                                            }
                                                                            if (v5_87 == null) {
                                                                                if (!v58.booleanValue()) {
                                                                                    v9_4 = (v50 + 1);
                                                                                    v6_11 = v48;
                                                                                    v8_10 = v49;
                                                                                    v2_9 = v51;
                                                                                    v5_3 = v55;
                                                                                    v7_3 = v57_0;
                                                                                } else {
                                                                                    v3_107.put(v11_58.name, v2_1.zza(v56, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.zzjr();
                                                                                v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_efs", Long.valueOf(1));
                                                                                this.zzjr();
                                                                                long v12_59 = ((long) v12_58);
                                                                                v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_sr", Long.valueOf(v12_59));
                                                                                String v5_100 = (v10_0 + 1);
                                                                                v4_24[v10_0] = v11_58;
                                                                                if (v58.booleanValue()) {
                                                                                    v2_1 = v2_1.zza(0, Long.valueOf(v12_59), Boolean.valueOf(1));
                                                                                }
                                                                                v3_107.put(v11_58.name, v2_1.zza(v11_58.zzaxb.longValue(), v59));
                                                                                v10_0 = v5_100;
                                                                            }
                                                                        } else {
                                                                            this.zzjr();
                                                                            long v12_0 = ((long) v12_58);
                                                                            v55 = v5_3;
                                                                            v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_sr", Long.valueOf(v12_0));
                                                                            String v5_2 = (v10_0 + 1);
                                                                            v4_24[v10_0] = v11_58;
                                                                            if (v8_39.booleanValue()) {
                                                                                v2_1 = v2_1.zza(0, Long.valueOf(v12_0), 0);
                                                                            }
                                                                            v3_107.put(v11_58.name, v2_1.zza(v11_58.zzaxb.longValue(), v14_21));
                                                                            v10_0 = v5_2;
                                                                        }
                                                                    } else {
                                                                        String v6_6 = (v10_0 + 1);
                                                                        v4_24[v10_0] = v11_58;
                                                                        if ((v8_39.booleanValue()) && ((v2_1.zzaia != null) || ((v2_1.zzaib != null) || (v2_1.zzaic != null)))) {
                                                                            v3_107.put(v11_58.name, v2_1.zza(0, 0, 0));
                                                                        }
                                                                        v55 = v5_3;
                                                                        v10_0 = v6_6;
                                                                    }
                                                                } else {
                                                                    this.zzada.zzgt().zzjj().zze("Sample rate must be positive. event, rate", v11_58.name, Integer.valueOf(v12_58));
                                                                    com.google.android.gms.measurement.internal.zzac v2_8 = (v10_0 + 1);
                                                                    v4_24[v10_0] = v11_58;
                                                                    v10_0 = v2_8;
                                                                    v55 = v5_3;
                                                                }
                                                                v57_0 = v7_3;
                                                            } else {
                                                                this.zzjr();
                                                                long v12_3 = ((String) com.google.android.gms.measurement.internal.zzfu.zzb(v11_58, "_en"));
                                                                int v13_1 = ((com.google.android.gms.measurement.internal.zzac) v3_107.get(v12_3));
                                                                if (v13_1 == 0) {
                                                                    v13_1 = this.zzjt().zzg(v7_3.zzaug.zztt, v12_3);
                                                                    v3_107.put(v12_3, v13_1);
                                                                }
                                                                if (v13_1.zzaia != null) {
                                                                    v48 = v6_11;
                                                                    v51 = v2_9;
                                                                    v55 = v5_3;
                                                                } else {
                                                                    if (v13_1.zzaib.longValue() > 1) {
                                                                        this.zzjr();
                                                                        v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_sr", v13_1.zzaib);
                                                                    }
                                                                    if ((v13_1.zzaic == null) || (!v13_1.zzaic.booleanValue())) {
                                                                        v48 = v6_11;
                                                                    } else {
                                                                        this.zzjr();
                                                                        v48 = v6_11;
                                                                        v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_efs", Long.valueOf(1));
                                                                    }
                                                                    String v6_10 = (v10_0 + 1);
                                                                    v4_24[v10_0] = v11_58;
                                                                    v51 = v2_9;
                                                                    v55 = v5_3;
                                                                    v10_0 = v6_10;
                                                                }
                                                                v57_0 = v7_3;
                                                                v49 = v8_10;
                                                                v50 = v9_4;
                                                            }
                                                        }
                                                        v57_1 = v7_3;
                                                        if (v10_0 < v2_9.zzaxi.length) {
                                                            v2_9.zzaxi = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v4_24, v10_0));
                                                        }
                                                        String v3_109 = v3_107.entrySet().iterator();
                                                        while (v3_109.hasNext()) {
                                                            this.zzjt().zza(((com.google.android.gms.measurement.internal.zzac) ((java.util.Map$Entry) v3_109.next()).getValue()));
                                                        }
                                                    }
                                                    v2_9.zzaxl = Long.valueOf(nan);
                                                    v2_9.zzaxm = Long.valueOf(-0.0);
                                                    String v3_114 = 0;
                                                    while (v3_114 < v2_9.zzaxi.length) {
                                                        Object v4_34 = v2_9.zzaxi[v3_114];
                                                        if (v4_34.zzaxb.longValue() < v2_9.zzaxl.longValue()) {
                                                            v2_9.zzaxl = v4_34.zzaxb;
                                                        }
                                                        if (v4_34.zzaxb.longValue() > v2_9.zzaxm.longValue()) {
                                                            v2_9.zzaxm = v4_34.zzaxb;
                                                        }
                                                        v3_114++;
                                                    }
                                                    String v3_115 = v57_1;
                                                    Object v4_31 = v3_115.zzaug.zztt;
                                                    String v5_49 = this.zzjt().zzbm(v4_31);
                                                    if (v5_49 != null) {
                                                        if (v2_9.zzaxi.length > 0) {
                                                            Boolean v8_24;
                                                            String v6_58 = v5_49.zzhe();
                                                            if (v6_58 == 0) {
                                                                v8_24 = 0;
                                                            } else {
                                                                v8_24 = Long.valueOf(v6_58);
                                                            }
                                                            v2_9.zzaxo = v8_24;
                                                            Boolean v8_25 = v5_49.zzhd();
                                                            if (v8_25 != 0) {
                                                                v6_58 = v8_25;
                                                            } else {
                                                            }
                                                            String v6_59;
                                                            if (v6_58 == 0) {
                                                                v6_59 = 0;
                                                            } else {
                                                                v6_59 = Long.valueOf(v6_58);
                                                            }
                                                            v2_9.zzaxn = v6_59;
                                                            v5_49.zzhm();
                                                            v2_9.zzaxy = Integer.valueOf(((int) v5_49.zzhj()));
                                                            v5_49.zzo(v2_9.zzaxl.longValue());
                                                            v5_49.zzp(v2_9.zzaxm.longValue());
                                                            v2_9.zzagm = v5_49.zzhu();
                                                            this.zzjt().zza(v5_49);
                                                        }
                                                    } else {
                                                        this.zzada.zzgt().zzjg().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_115.zzaug.zztt));
                                                    }
                                                    if (v2_9.zzaxi.length > 0) {
                                                        this.zzada.zzgw();
                                                        String v5_57 = this.zzls().zzcg(v3_115.zzaug.zztt);
                                                        if (v5_57 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v3_115.zzaug.zzafi)) {
                                                                this.zzada.zzgt().zzjj().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_115.zzaug.zztt));
                                                            } else {
                                                                v2_9.zzayf = Long.valueOf(-1);
                                                            }
                                                        } else {
                                                            if (v5_57.zzawk != null) {
                                                                v2_9.zzayf = v5_57.zzawk;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzjt().zza(v2_9, v26);
                                                    }
                                                    com.google.android.gms.measurement.internal.zzac v2_36 = this.zzjt();
                                                    String v3_116 = v3_115.zzauh;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_116);
                                                    v2_36.zzaf();
                                                    v2_36.zzcl();
                                                    String v5_69 = new StringBuilder("rowid in (");
                                                    String v6_75 = 0;
                                                    while (v6_75 < v3_116.size()) {
                                                        if (v6_75 != null) {
                                                            v5_69.append(",");
                                                        }
                                                        v5_69.append(((Long) v3_116.get(v6_75)).longValue());
                                                        v6_75++;
                                                    }
                                                    v5_69.append(")");
                                                    String v5_71 = v2_36.getWritableDatabase().delete("raw_events", v5_69.toString(), 0);
                                                    if (v5_71 != v3_116.size()) {
                                                        v2_36.zzgt().zzjg().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_71), Integer.valueOf(v3_116.size()));
                                                    }
                                                    com.google.android.gms.measurement.internal.zzac v2_39 = this.zzjt();
                                                    String v3_119 = v2_39.getWritableDatabase();
                                                    try {
                                                        String v6_81 = new String[2];
                                                        v6_81[0] = v4_31;
                                                        v6_81[1] = v4_31;
                                                        v3_119.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_81);
                                                    } catch (android.database.sqlite.SQLiteException v0_11) {
                                                        v2_39.zzgt().zzjg().zze("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v4_31), v0_11);
                                                    }
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v6_5.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                        }
                                        if (v15_2.moveToNext()) {
                                            v4_40.zzgt().zzjj().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0));
                                        }
                                        long v16_5;
                                        int v17_4;
                                        v15_2.close();
                                        v2_29.zzb(v14_10);
                                        if (v5_81 == -1) {
                                            boolean v10_63 = new String[2];
                                            v10_63[0] = v3_0;
                                            v10_63[1] = v7_0;
                                            v16_5 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_4 = v10_63;
                                        } else {
                                            int v13_37 = new String[3];
                                            v13_37[0] = v3_0;
                                            v13_37[1] = v7_0;
                                            v13_37[2] = String.valueOf(v5_81);
                                            v16_5 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_4 = v13_37;
                                        }
                                        v6_5 = v15_2;
                                        String v5_17 = v25.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_5, v17_4, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_17.moveToFirst()) {
                                                v4_40.zzgt().zzjj().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0));
                                                if (v5_17 == null) {
                                                } else {
                                                    v5_17.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_9) {
                                            com.google.android.gms.measurement.internal.zzac v2_7 = v0_9;
                                            v6_5 = v5_17;
                                            if (v6_5 != null) {
                                                v6_5.close();
                                            }
                                            throw v2_7;
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            v7_0 = v3_0;
                                            v6_5 = v5_17;
                                            String v3_1 = v0_2;
                                            v4_40.zzgt().zzjg().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_0), v3_1);
                                            if (v6_5 == null) {
                                            } else {
                                                v6_5.close();
                                            }
                                        }
                                        do {
                                            String v6_28 = v5_17.getLong(0);
                                            long v12_48 = v5_17.getBlob(3);
                                            boolean v10_68 = com.google.android.gms.internal.measurement.zzxz.zzj(v12_48, 0, v12_48.length);
                                            long v12_50 = new com.google.android.gms.internal.measurement.zzft();
                                            v12_50.zza(v10_68);
                                            v12_50.name = v5_17.getString(1);
                                            v12_50.zzaxb = Long.valueOf(v5_17.getLong(2));
                                            if (v2_29.zza(v6_28, v12_50)) {
                                            } else {
                                                if (v5_17 == null) {
                                                } else {
                                                    v5_17.close();
                                                }
                                            }
                                        } while(v5_17.moveToNext());
                                        if (v5_17 == null) {
                                        } else {
                                            v5_17.close();
                                        }
                                    } else {
                                        v4_40.zzgt().zzjg().zzg("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0));
                                        if (v15_2 == null) {
                                        } else {
                                            v15_2.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_7) {
                                    v6_5 = v15_2;
                                    v2_7 = v0_7;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v6_5 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_10) {
                                    v2_7 = v0_10;
                                    v6_5 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v7_0 = v3_0;
                                    v6_5 = v15_2;
                                }
                                v7_0 = v3_0;
                            } catch (android.database.sqlite.SQLiteException v0_4) {
                                v2_7 = v0_4;
                                v6_5 = v23;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v7_0 = v3_0;
                                v6_5 = v23;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                                v3_0.close();
                            }
                        }
                    } else {
                        try {
                            int v13_47;
                            if (v5_81 == -1) {
                                v13_47 = new String[1];
                                v13_47[0] = String.valueOf(p63);
                            } else {
                                v13_47 = new String[2];
                                v13_47[0] = String.valueOf(v5_81);
                                v13_47[1] = String.valueOf(p63);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                            v6_5 = 0;
                            v7_0 = 0;
                        }
                        boolean v14_22;
                        if (v5_81 == -1) {
                            v14_22 = "";
                        } else {
                            v14_22 = "rowid <= ? and ";
                        }
                        String v3_122 = new StringBuilder((String.valueOf(v14_22).length() + 148));
                        v3_122.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_122.append(v14_22);
                        v3_122.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_3.rawQuery(v3_122.toString(), v13_47);
                        if (v3_0.moveToFirst()) {
                            long v7_2 = v3_0.getString(0);
                            try {
                                int v13_4 = v3_0.getString(1);
                                v3_0.close();
                                v23 = v3_0;
                                v3_0 = v7_2;
                                v7_0 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v6_5 = v3_0;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                                v3_0.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_3) {
                    v2_7 = v0_3;
                    v6_5 = v3_0;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v6_5 = v3_0;
                    v7_0 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v2_7 = v0_1;
                v6_5 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v3_1 = v0_0;
                v6_5 = 0;
                v7_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
            }
        } catch (android.database.sqlite.SQLiteException v0_6) {
            com.google.android.gms.measurement.internal.zzac v2_30 = v0_6;
            this.zzjt().endTransaction();
            throw v2_30;
        }
    }

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


    private final boolean zzd(String p62, long p63)
    {
        this.zzjt().beginTransaction();
        try {
            String v3_0 = 0;
            com.google.android.gms.measurement.internal.zzac v2_29 = new com.google.android.gms.measurement.internal.zzfo$zza(this, 0);
            Object v4_40 = this.zzjt();
            String v5_81 = this.zzauc;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_29);
            v4_40.zzaf();
            v4_40.zzcl();
            try {
                long v7_0;
                int v23;
                Long v15_3 = v4_40.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        String v3_85;
                        if (v5_81 == -1) {
                            v3_85 = new String[] {0});
                        } else {
                            v3_85 = new String[2];
                            v3_85[0] = 0;
                            v3_85[1] = String.valueOf(v5_81);
                        }
                        long v7_59;
                        if (v5_81 == -1) {
                            v7_59 = "";
                        } else {
                            v7_59 = " and rowid <= ?";
                        }
                        boolean v14_15 = new StringBuilder((String.valueOf(v7_59).length() + 84));
                        v14_15.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_15.append(v7_59);
                        v14_15.append(" order by rowid limit 1;");
                        v3_0 = v15_3.rawQuery(v14_15.toString(), v3_85);
                        if (v3_0.moveToFirst()) {
                            int v13_45 = v3_0.getString(0);
                            v3_0.close();
                            v23 = v3_0;
                            v7_0 = v13_45;
                            v3_0 = 0;
                            try {
                                int v13_12 = new String[2];
                                v13_12[0] = v3_0;
                                v13_12[1] = v7_0;
                                android.database.sqlite.SQLiteDatabase v25 = v15_3;
                                Long v15_2 = v15_3.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_12, 0, 0, "rowid", "2");
                                try {
                                    if (v15_2.moveToFirst()) {
                                        int v13_24 = v15_2.getBlob(0);
                                        int v13_26 = com.google.android.gms.internal.measurement.zzxz.zzj(v13_24, 0, v13_24.length);
                                        boolean v14_10 = new com.google.android.gms.internal.measurement.zzfw();
                                        try {
                                            v14_10.zza(v13_26);
                                        } catch (android.database.sqlite.SQLiteException v0_5) {
                                            String v6_5 = v15_2;
                                            v4_40.zzgt().zzjg().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0), v0_5);
                                            if (v6_5 == null) {
                                                String v3_89;
                                                if (v2_29.zzaui == null) {
                                                    v3_89 = 1;
                                                } else {
                                                    if (!v2_29.zzaui.isEmpty()) {
                                                        v3_89 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_89 != null) {
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 0;
                                                } else {
                                                    String v3_81 = v2_29.zzaug;
                                                    Object v4_4 = new com.google.android.gms.internal.measurement.zzft[v2_29.zzaui.size()];
                                                    v3_81.zzaxi = v4_4;
                                                    Object v4_7 = this.zzada.zzgv().zzau(v3_81.zztt);
                                                    String v5_24 = this.zzada.zzgv().zze(v2_29.zzaug.zztt, com.google.android.gms.measurement.internal.zzai.zzala);
                                                    Boolean v8_16 = 0;
                                                    int v9_9 = 0;
                                                    boolean v10_60 = 0;
                                                    long v12_44 = 0;
                                                    int v13_27 = 0;
                                                    boolean v14_11 = 0;
                                                    while(true) {
                                                        com.google.android.gms.internal.measurement.zzft v26 = v12_44;
                                                        if (v10_60 >= v2_29.zzaui.size()) {
                                                            break;
                                                        }
                                                        long v7_35;
                                                        com.google.android.gms.measurement.internal.zzac v2_22;
                                                        com.google.android.gms.measurement.internal.zzac v27_0;
                                                        String v6_21 = ((com.google.android.gms.internal.measurement.zzft) v2_29.zzaui.get(v10_60));
                                                        if (!this.zzls().zzo(v2_29.zzaug.zztt, v6_21.name)) {
                                                            long v32_0;
                                                            String v45_0;
                                                            v27_0 = v10_60;
                                                            String v28_0 = v13_27;
                                                            long v7_7 = this.zzls().zzp(v2_29.zzaug.zztt, v6_21.name);
                                                            if (v7_7 != 0) {
                                                                if (v6_21.zzaxa == null) {
                                                                    long v12_18 = new com.google.android.gms.internal.measurement.zzfu[0];
                                                                    v6_21.zzaxa = v12_18;
                                                                }
                                                                boolean v11_12 = v6_21.zzaxa;
                                                                long v12_19 = v11_12.length;
                                                                int v13_9 = 0;
                                                                long v16_1 = 0;
                                                                int v17_0 = 0;
                                                                while (v13_9 < v12_19) {
                                                                    long v32_1;
                                                                    boolean v10_50 = v11_12[v13_9];
                                                                    long v30_0 = v11_12;
                                                                    long v31_0 = v12_19;
                                                                    if (!"_c".equals(v10_50.name)) {
                                                                        v32_1 = v3_81;
                                                                        if ("_r".equals(v10_50.name)) {
                                                                            v10_50.zzaxe = Long.valueOf(1);
                                                                            v17_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v32_1 = v3_81;
                                                                        v10_50.zzaxe = Long.valueOf(1);
                                                                        v16_1 = 1;
                                                                    }
                                                                    v13_9++;
                                                                    v11_12 = v30_0;
                                                                    v12_19 = v31_0;
                                                                    v3_81 = v32_1;
                                                                }
                                                                v32_0 = v3_81;
                                                                if ((v16_1 == 0) && (v7_7 != 0)) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as conversion", this.zzada.zzgq().zzbt(v6_21.name));
                                                                    String v3_8 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_21.zzaxa, (v6_21.zzaxa.length + 1)));
                                                                    boolean v10_10 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v10_10.name = "_c";
                                                                    v10_10.zzaxe = Long.valueOf(1);
                                                                    v3_8[(v3_8.length - 1)] = v10_10;
                                                                    v6_21.zzaxa = v3_8;
                                                                }
                                                                if (v17_0 == 0) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as real-time", this.zzada.zzgq().zzbt(v6_21.name));
                                                                    String v3_14 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_21.zzaxa, (v6_21.zzaxa.length + 1)));
                                                                    boolean v10_16 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v10_16.name = "_r";
                                                                    v10_16.zzaxe = Long.valueOf(1);
                                                                    v3_14[(v3_14.length - 1)] = v10_16;
                                                                    v6_21.zzaxa = v3_14;
                                                                }
                                                                long v12_27;
                                                                if (this.zzjt().zza(this.zzly(), v2_29.zzaug.zztt, 0, 0, 0, 0, 1).zzahl <= ((long) this.zzada.zzgv().zzaq(v2_29.zzaug.zztt))) {
                                                                    v12_27 = 1;
                                                                } else {
                                                                    String v3_22 = 0;
                                                                    while (v3_22 < v6_21.zzaxa.length) {
                                                                        if (!"_r".equals(v6_21.zzaxa[v3_22].name)) {
                                                                            v3_22++;
                                                                        } else {
                                                                            boolean v10_25 = new com.google.android.gms.internal.measurement.zzfu[(v6_21.zzaxa.length - 1)];
                                                                            if (v3_22 > null) {
                                                                                System.arraycopy(v6_21.zzaxa, 0, v10_25, 0, v3_22);
                                                                            }
                                                                            if (v3_22 < v10_25.length) {
                                                                                System.arraycopy(v6_21.zzaxa, (v3_22 + 1), v10_25, v3_22, (v10_25.length - v3_22));
                                                                            }
                                                                            v6_21.zzaxa = v10_25;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_27 = v26;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.zzfy.zzct(v6_21.name)) || (v7_7 == 0)) {
                                                                    com.google.android.gms.internal.measurement.zzft v42 = v12_27;
                                                                    v45_0 = v14_11;
                                                                } else {
                                                                    v42 = v12_27;
                                                                    if (this.zzjt().zza(this.zzly(), v2_29.zzaug.zztt, 0, 0, 1, 0, 0).zzahj <= ((long) this.zzada.zzgv().zzb(v2_29.zzaug.zztt, com.google.android.gms.measurement.internal.zzai.zzajh))) {
                                                                    } else {
                                                                        this.zzada.zzgt().zzjj().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_29.zzaug.zztt));
                                                                        String v3_35 = v6_21.zzaxa;
                                                                        boolean v10_29 = v3_35.length;
                                                                        boolean v11_40 = 0;
                                                                        long v12_32 = 0;
                                                                        int v13_18 = 0;
                                                                        while (v11_40 < v10_29) {
                                                                            boolean v10_48 = v3_35[v11_40];
                                                                            if (!"_c".equals(v10_48.name)) {
                                                                                if ("_err".equals(v10_48.name)) {
                                                                                    v12_32 = 1;
                                                                                }
                                                                            } else {
                                                                                v13_18 = v10_48;
                                                                            }
                                                                            v11_40++;
                                                                        }
                                                                        v45_0 = v14_11;
                                                                        if ((v12_32 == 0) || (v13_18 == 0)) {
                                                                            if (v13_18 == 0) {
                                                                                this.zzada.zzgt().zzjg().zzg("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_29.zzaug.zztt));
                                                                            } else {
                                                                                v13_18.name = "_err";
                                                                                v13_18.zzaxe = Long.valueOf(10);
                                                                            }
                                                                        } else {
                                                                            String v3_41 = v6_21.zzaxa;
                                                                            boolean v11_44 = new com.google.android.gms.internal.measurement.zzfu[1];
                                                                            v11_44[0] = v13_18;
                                                                            v6_21.zzaxa = ((com.google.android.gms.internal.measurement.zzfu[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v3_41, v11_44));
                                                                        }
                                                                    }
                                                                }
                                                                v26 = v42;
                                                            } else {
                                                                boolean v11_6;
                                                                this.zzjr();
                                                                boolean v11_4 = v6_21.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v11_4);
                                                                long v12_14 = v11_4.hashCode();
                                                                if (v12_14 == 94660) {
                                                                    if (!v11_4.equals("_in")) {
                                                                        v11_6 = -1;
                                                                    } else {
                                                                        v11_6 = 0;
                                                                    }
                                                                } else {
                                                                    if (v12_14 == 95025) {
                                                                        if (!v11_4.equals("_ug")) {
                                                                        } else {
                                                                            v11_6 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v12_14 == 95027) {
                                                                            if (!v11_4.equals("_ui")) {
                                                                            } else {
                                                                                v11_6 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                boolean v11_9;
                                                                switch (v11_6) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v11_9 = 1;
                                                                    default:
                                                                        v11_9 = 0;
                                                                }
                                                                if (!v11_9) {
                                                                    v32_0 = v3_81;
                                                                    v45_0 = v14_11;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzada.zzgv().zzbd(v2_29.zzaug.zztt)) || (v7_7 == 0)) {
                                                            } else {
                                                                String v3_47 = v6_21.zzaxa;
                                                                long v7_8 = 0;
                                                                boolean v10_36 = -1;
                                                                boolean v11_45 = -1;
                                                                while (v7_8 < v3_47.length) {
                                                                    if (!"value".equals(v3_47[v7_8].name)) {
                                                                        if ("currency".equals(v3_47[v7_8].name)) {
                                                                            v11_45 = v7_8;
                                                                        }
                                                                    } else {
                                                                        v10_36 = v7_8;
                                                                    }
                                                                    v7_8++;
                                                                }
                                                                if (v10_36 == -1) {
                                                                } else {
                                                                    if ((v3_47[v10_36].zzaxe != null) || (v3_47[v10_36].zzaun != null)) {
                                                                        long v7_17;
                                                                        if (v11_45 != -1) {
                                                                            long v7_16 = v3_47[v11_45].zzaml;
                                                                            if (v7_16 == 0) {
                                                                            } else {
                                                                                if (v7_16.length() == 3) {
                                                                                    boolean v11_47 = 0;
                                                                                    while (v11_47 < v7_16.length()) {
                                                                                        int v13_20 = v7_16.codePointAt(v11_47);
                                                                                        if (Character.isLetter(v13_20)) {
                                                                                            v11_47 += Character.charCount(v13_20);
                                                                                        } else {
                                                                                        }
                                                                                    }
                                                                                    v7_17 = 0;
                                                                                    if (v7_17 != 0) {
                                                                                        this.zzada.zzgt().zzjl().zzby("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                        v3_47 = com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(v3_47, v10_36), "_c"), 19, "currency");
                                                                                    }
                                                                                    v6_21.zzaxa = v3_47;
                                                                                    int v47;
                                                                                    if (!this.zzada.zzgv().zze(v2_29.zzaug.zztt, com.google.android.gms.measurement.internal.zzai.zzakz)) {
                                                                                        v47 = v2_29;
                                                                                    } else {
                                                                                        if (!"_e".equals(v6_21.name)) {
                                                                                            if (!"_vs".equals(v6_21.name)) {
                                                                                            } else {
                                                                                                this.zzjr();
                                                                                                if (com.google.android.gms.measurement.internal.zzfu.zza(v6_21, "_et") != null) {
                                                                                                } else {
                                                                                                    if (v8_16 == null) {
                                                                                                        v47 = v2_29;
                                                                                                    } else {
                                                                                                        v47 = v2_29;
                                                                                                        if ((Math.abs((v8_16.zzaxb.longValue() - v6_21.zzaxb.longValue())) <= 1000) && (this.zza(v8_16, v6_21))) {
                                                                                                            v8_16 = 0;
                                                                                                            v9_9 = 0;
                                                                                                            if ((v4_7 == null) || ((v5_24 != null) || (!"_e".equals(v6_21.name)))) {
                                                                                                                v7_35 = v47;
                                                                                                                v2_22 = v32_0;
                                                                                                                v14_11 = v45_0;
                                                                                                            } else {
                                                                                                                if (v6_21.zzaxa != null) {
                                                                                                                    if (v6_21.zzaxa.length != 0) {
                                                                                                                        this.zzjr();
                                                                                                                        com.google.android.gms.measurement.internal.zzac v2_20 = ((Long) com.google.android.gms.measurement.internal.zzfu.zzb(v6_21, "_et"));
                                                                                                                        if (v2_20 != null) {
                                                                                                                            v7_35 = v47;
                                                                                                                            v14_11 = (v45_0 + v2_20.longValue());
                                                                                                                            v2_22 = v32_0;
                                                                                                                            v13_27 = (v28_0 + 1);
                                                                                                                            v2_22.zzaxi[v28_0] = v6_21;
                                                                                                                            v10_60 = (v27_0 + 1);
                                                                                                                            v3_81 = v2_22;
                                                                                                                            v2_29 = v7_35;
                                                                                                                            v12_44 = v26;
                                                                                                                        } else {
                                                                                                                            v7_35 = v47;
                                                                                                                            this.zzada.zzgt().zzjj().zzg("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_35.zzaug.zztt));
                                                                                                                        }
                                                                                                                    } else {
                                                                                                                    }
                                                                                                                }
                                                                                                                v7_35 = v47;
                                                                                                                this.zzada.zzgt().zzjj().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_35.zzaug.zztt));
                                                                                                            }
                                                                                                        }
                                                                                                    }
                                                                                                    v9_9 = v6_21;
                                                                                                }
                                                                                            }
                                                                                        } else {
                                                                                            this.zzjr();
                                                                                            if (com.google.android.gms.measurement.internal.zzfu.zza(v6_21, "_fr") != null) {
                                                                                            } else {
                                                                                                if ((v9_9 == 0) || ((Math.abs((v9_9.zzaxb.longValue() - v6_21.zzaxb.longValue())) > 1000) || (!this.zza(v6_21, v9_9)))) {
                                                                                                    v47 = v2_29;
                                                                                                    v8_16 = v6_21;
                                                                                                } else {
                                                                                                    v47 = v2_29;
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v7_17 = 1;
                                                                        } else {
                                                                            v7_17 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzada.zzgt().zzjl().zzby("Value must be specified with a numeric type.");
                                                                        v3_47 = com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(v3_47, v10_36), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            long v7_44;
                                                            v27_0 = v10_60;
                                                            String v28_1 = v13_27;
                                                            this.zzada.zzgt().zzjj().zze("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_29.zzaug.zztt), this.zzada.zzgq().zzbt(v6_21.name));
                                                            if (this.zzls().zzcl(v2_29.zzaug.zztt)) {
                                                                v7_44 = 1;
                                                            } else {
                                                                if (!this.zzls().zzcm(v2_29.zzaug.zztt)) {
                                                                    v7_44 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v7_44 == 0) && (!"_err".equals(v6_21.name))) {
                                                                this.zzada.zzgr().zza(v2_29.zzaug.zztt, 11, "_ev", v6_21.name, 0);
                                                            }
                                                            v7_35 = v2_29;
                                                            v2_22 = v3_81;
                                                            v13_27 = v28_1;
                                                        }
                                                    }
                                                    int v13_5;
                                                    boolean v14_5;
                                                    long v7_3 = v2_29;
                                                    com.google.android.gms.measurement.internal.zzac v2_9 = v3_81;
                                                    String v28_2 = v13_27;
                                                    String v45_2 = v14_11;
                                                    if (v5_24 == null) {
                                                        v13_5 = v28_2;
                                                        v14_5 = v45_2;
                                                    } else {
                                                        v13_5 = v28_2;
                                                        v14_5 = v45_2;
                                                        String v3_2 = 0;
                                                        while (v3_2 < v13_5) {
                                                            String v5_5 = v2_9.zzaxi[v3_2];
                                                            if (!"_e".equals(v5_5.name)) {
                                                                if (v4_7 != null) {
                                                                    this.zzjr();
                                                                    String v5_6 = com.google.android.gms.measurement.internal.zzfu.zza(v5_5, "_et");
                                                                    if (v5_6 != null) {
                                                                        String v5_7 = v5_6.zzaxe;
                                                                        if ((v5_7 != null) && (v5_7.longValue() > 0)) {
                                                                            v14_5 += v5_7.longValue();
                                                                        }
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzjr();
                                                                if (com.google.android.gms.measurement.internal.zzfu.zza(v5_5, "_fr") == null) {
                                                                } else {
                                                                    System.arraycopy(v2_9.zzaxi, (v3_2 + 1), v2_9.zzaxi, v3_2, ((v13_5 - v3_2) - 1));
                                                                    v13_5--;
                                                                    v3_2--;
                                                                }
                                                            }
                                                            v3_2++;
                                                        }
                                                    }
                                                    if (v13_5 < v7_3.zzaui.size()) {
                                                        v2_9.zzaxi = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v2_9.zzaxi, v13_5));
                                                    }
                                                    if (v4_7 != null) {
                                                        String v3_99;
                                                        String v3_96 = this.zzjt().zzi(v2_9.zztt, "_lte");
                                                        if (v3_96 == null) {
                                                            v3_99 = new com.google.android.gms.measurement.internal.zzfx;
                                                            v3_99(v2_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf(v14_5));
                                                        } else {
                                                            if (v3_96.value != null) {
                                                                Object v4_10 = new com.google.android.gms.measurement.internal.zzfx;
                                                                v4_10(v2_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf((((Long) v3_96.value).longValue() + v14_5)));
                                                                v3_99 = v4_10;
                                                            } else {
                                                            }
                                                        }
                                                        Object v4_13 = new com.google.android.gms.internal.measurement.zzfz();
                                                        v4_13.name = "_lte";
                                                        v4_13.zzayu = Long.valueOf(this.zzada.zzbx().currentTimeMillis());
                                                        v4_13.zzaxe = ((Long) v3_99.value);
                                                        String v5_36 = 0;
                                                        while (v5_36 < v2_9.zzaxj.length) {
                                                            if (!"_lte".equals(v2_9.zzaxj[v5_36].name)) {
                                                                v5_36++;
                                                            } else {
                                                                v2_9.zzaxj[v5_36] = v4_13;
                                                                String v5_37 = 1;
                                                            }
                                                            if (v5_37 == null) {
                                                                v2_9.zzaxj = ((com.google.android.gms.internal.measurement.zzfz[]) java.util.Arrays.copyOf(v2_9.zzaxj, (v2_9.zzaxj.length + 1)));
                                                                v2_9.zzaxj[(v7_3.zzaug.zzaxj.length - 1)] = v4_13;
                                                            }
                                                            if (v14_5 > 0) {
                                                                this.zzjt().zza(v3_99);
                                                                this.zzada.zzgt().zzjn().zzg("Updated lifetime engagement user property with value. Value", v3_99.value);
                                                            }
                                                        }
                                                        v5_37 = 0;
                                                    }
                                                    long v57_1;
                                                    String v3_101 = v2_9.zztt;
                                                    Object v4_19 = v2_9.zzaxj;
                                                    String v5_43 = v2_9.zzaxi;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_101);
                                                    v2_9.zzaya = this.zzjs().zza(v3_101, v5_43, v4_19);
                                                    if (!this.zzada.zzgv().zzat(v7_3.zzaug.zztt)) {
                                                        v57_1 = v7_3;
                                                    } else {
                                                        String v3_107 = new java.util.HashMap();
                                                        Object v4_24 = new com.google.android.gms.internal.measurement.zzft[v2_9.zzaxi.length];
                                                        String v5_3 = this.zzada.zzgr().zzmk();
                                                        String v6_11 = v2_9.zzaxi;
                                                        Boolean v8_10 = v6_11.length;
                                                        int v9_4 = 0;
                                                        boolean v10_0 = 0;
                                                        while (v9_4 < v8_10) {
                                                            com.google.android.gms.measurement.internal.zzbq v51;
                                                            long v49;
                                                            int v50;
                                                            long v57_0;
                                                            boolean v48;
                                                            int v55;
                                                            boolean v11_58 = v6_11[v9_4];
                                                            if (!v11_58.name.equals("_ep")) {
                                                                com.google.android.gms.measurement.internal.zzac v2_47;
                                                                long v52;
                                                                v48 = v6_11;
                                                                long v12_56 = this.zzls().zzck(v7_3.zzaug.zztt);
                                                                this.zzada.zzgr();
                                                                boolean v14_21 = com.google.android.gms.measurement.internal.zzfy.zzc(v11_58.zzaxb.longValue(), v12_56);
                                                                v51 = v2_9;
                                                                v49 = v8_10;
                                                                v50 = v9_4;
                                                                com.google.android.gms.measurement.internal.zzac v2_45 = Long.valueOf(1);
                                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                                    v52 = v12_56;
                                                                    v2_47 = 0;
                                                                } else {
                                                                    if (v2_45 != null) {
                                                                        Boolean v8_30 = v11_58.zzaxa;
                                                                        int v9_12 = v8_30.length;
                                                                        v52 = v12_56;
                                                                        long v12_57 = 0;
                                                                        while (v12_57 < v9_12) {
                                                                            int v13_49 = v8_30[v12_57];
                                                                            if (!"_dbg".equals(v13_49.name)) {
                                                                                v12_57++;
                                                                            } else {
                                                                                if (((!(v2_45 instanceof Long)) || (!v2_45.equals(v13_49.zzaxe))) && (((!(v2_45 instanceof String)) || (!v2_45.equals(v13_49.zzaml))) && ((!(v2_45 instanceof Double)) || (!v2_45.equals(v13_49.zzaun))))) {
                                                                                    break;
                                                                                }
                                                                                v2_47 = 1;
                                                                            }
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                long v12_58;
                                                                if (v2_47 != null) {
                                                                    v12_58 = 1;
                                                                } else {
                                                                    v12_58 = this.zzls().zzq(v7_3.zzaug.zztt, v11_58.name);
                                                                }
                                                                if (v12_58 > 0) {
                                                                    com.google.android.gms.measurement.internal.zzac v2_1 = ((com.google.android.gms.measurement.internal.zzac) v3_107.get(v11_58.name));
                                                                    if (v2_1 == null) {
                                                                        v2_1 = this.zzjt().zzg(v7_3.zzaug.zztt, v11_58.name);
                                                                        if (v2_1 == null) {
                                                                            this.zzada.zzgt().zzjj().zze("Event being bundled has no eventAggregate. appId, eventName", v7_3.zzaug.zztt, v11_58.name);
                                                                            v2_1 = new com.google.android.gms.measurement.internal.zzac;
                                                                            v2_1(v7_3.zzaug.zztt, v11_58.name, 1, 1, v11_58.zzaxb.longValue(), 0, 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    Boolean v8_38;
                                                                    this.zzjr();
                                                                    String v6_103 = ((Long) com.google.android.gms.measurement.internal.zzfu.zzb(v11_58, "_eid"));
                                                                    if (v6_103 == null) {
                                                                        v8_38 = 0;
                                                                    } else {
                                                                        v8_38 = 1;
                                                                    }
                                                                    Boolean v8_39 = Boolean.valueOf(v8_38);
                                                                    if (v12_58 != 1) {
                                                                        if (v5_3.nextInt(v12_58) != 0) {
                                                                            boolean v59;
                                                                            String v56;
                                                                            String v5_87;
                                                                            Boolean v58;
                                                                            v55 = v5_3;
                                                                            if (!this.zzada.zzgv().zzbf(v7_3.zzaug.zztt)) {
                                                                                v56 = v6_103;
                                                                                v57_0 = v7_3;
                                                                                v58 = v8_39;
                                                                                v59 = v14_21;
                                                                                if (Math.abs((v11_58.zzaxb.longValue() - v2_1.zzahy)) < 86400000) {
                                                                                    v5_87 = 0;
                                                                                } else {
                                                                                    v5_87 = 1;
                                                                                }
                                                                            } else {
                                                                                long v16_7;
                                                                                if (v2_1.zzahz == null) {
                                                                                    this.zzada.zzgr();
                                                                                    v56 = v6_103;
                                                                                    v57_0 = v7_3;
                                                                                    v58 = v8_39;
                                                                                    v16_7 = com.google.android.gms.measurement.internal.zzfy.zzc(v11_58.zzaxc.longValue(), v52);
                                                                                } else {
                                                                                    v16_7 = v2_1.zzahz.longValue();
                                                                                    v56 = v6_103;
                                                                                    v57_0 = v7_3;
                                                                                    v58 = v8_39;
                                                                                }
                                                                                if (v16_7 == v14_21) {
                                                                                    v5_87 = 0;
                                                                                } else {
                                                                                    v5_87 = 1;
                                                                                }
                                                                                v59 = v14_21;
                                                                            }
                                                                            if (v5_87 == null) {
                                                                                if (!v58.booleanValue()) {
                                                                                    v9_4 = (v50 + 1);
                                                                                    v6_11 = v48;
                                                                                    v8_10 = v49;
                                                                                    v2_9 = v51;
                                                                                    v5_3 = v55;
                                                                                    v7_3 = v57_0;
                                                                                } else {
                                                                                    v3_107.put(v11_58.name, v2_1.zza(v56, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.zzjr();
                                                                                v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_efs", Long.valueOf(1));
                                                                                this.zzjr();
                                                                                long v12_59 = ((long) v12_58);
                                                                                v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_sr", Long.valueOf(v12_59));
                                                                                String v5_100 = (v10_0 + 1);
                                                                                v4_24[v10_0] = v11_58;
                                                                                if (v58.booleanValue()) {
                                                                                    v2_1 = v2_1.zza(0, Long.valueOf(v12_59), Boolean.valueOf(1));
                                                                                }
                                                                                v3_107.put(v11_58.name, v2_1.zza(v11_58.zzaxb.longValue(), v59));
                                                                                v10_0 = v5_100;
                                                                            }
                                                                        } else {
                                                                            this.zzjr();
                                                                            long v12_0 = ((long) v12_58);
                                                                            v55 = v5_3;
                                                                            v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_sr", Long.valueOf(v12_0));
                                                                            String v5_2 = (v10_0 + 1);
                                                                            v4_24[v10_0] = v11_58;
                                                                            if (v8_39.booleanValue()) {
                                                                                v2_1 = v2_1.zza(0, Long.valueOf(v12_0), 0);
                                                                            }
                                                                            v3_107.put(v11_58.name, v2_1.zza(v11_58.zzaxb.longValue(), v14_21));
                                                                            v10_0 = v5_2;
                                                                        }
                                                                    } else {
                                                                        String v6_6 = (v10_0 + 1);
                                                                        v4_24[v10_0] = v11_58;
                                                                        if ((v8_39.booleanValue()) && ((v2_1.zzaia != null) || ((v2_1.zzaib != null) || (v2_1.zzaic != null)))) {
                                                                            v3_107.put(v11_58.name, v2_1.zza(0, 0, 0));
                                                                        }
                                                                        v55 = v5_3;
                                                                        v10_0 = v6_6;
                                                                    }
                                                                } else {
                                                                    this.zzada.zzgt().zzjj().zze("Sample rate must be positive. event, rate", v11_58.name, Integer.valueOf(v12_58));
                                                                    com.google.android.gms.measurement.internal.zzac v2_8 = (v10_0 + 1);
                                                                    v4_24[v10_0] = v11_58;
                                                                    v10_0 = v2_8;
                                                                    v55 = v5_3;
                                                                }
                                                                v57_0 = v7_3;
                                                            } else {
                                                                this.zzjr();
                                                                long v12_3 = ((String) com.google.android.gms.measurement.internal.zzfu.zzb(v11_58, "_en"));
                                                                int v13_1 = ((com.google.android.gms.measurement.internal.zzac) v3_107.get(v12_3));
                                                                if (v13_1 == 0) {
                                                                    v13_1 = this.zzjt().zzg(v7_3.zzaug.zztt, v12_3);
                                                                    v3_107.put(v12_3, v13_1);
                                                                }
                                                                if (v13_1.zzaia != null) {
                                                                    v48 = v6_11;
                                                                    v51 = v2_9;
                                                                    v55 = v5_3;
                                                                } else {
                                                                    if (v13_1.zzaib.longValue() > 1) {
                                                                        this.zzjr();
                                                                        v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_sr", v13_1.zzaib);
                                                                    }
                                                                    if ((v13_1.zzaic == null) || (!v13_1.zzaic.booleanValue())) {
                                                                        v48 = v6_11;
                                                                    } else {
                                                                        this.zzjr();
                                                                        v48 = v6_11;
                                                                        v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_efs", Long.valueOf(1));
                                                                    }
                                                                    String v6_10 = (v10_0 + 1);
                                                                    v4_24[v10_0] = v11_58;
                                                                    v51 = v2_9;
                                                                    v55 = v5_3;
                                                                    v10_0 = v6_10;
                                                                }
                                                                v57_0 = v7_3;
                                                                v49 = v8_10;
                                                                v50 = v9_4;
                                                            }
                                                        }
                                                        v57_1 = v7_3;
                                                        if (v10_0 < v2_9.zzaxi.length) {
                                                            v2_9.zzaxi = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v4_24, v10_0));
                                                        }
                                                        String v3_109 = v3_107.entrySet().iterator();
                                                        while (v3_109.hasNext()) {
                                                            this.zzjt().zza(((com.google.android.gms.measurement.internal.zzac) ((java.util.Map$Entry) v3_109.next()).getValue()));
                                                        }
                                                    }
                                                    v2_9.zzaxl = Long.valueOf(nan);
                                                    v2_9.zzaxm = Long.valueOf(-0.0);
                                                    String v3_114 = 0;
                                                    while (v3_114 < v2_9.zzaxi.length) {
                                                        Object v4_34 = v2_9.zzaxi[v3_114];
                                                        if (v4_34.zzaxb.longValue() < v2_9.zzaxl.longValue()) {
                                                            v2_9.zzaxl = v4_34.zzaxb;
                                                        }
                                                        if (v4_34.zzaxb.longValue() > v2_9.zzaxm.longValue()) {
                                                            v2_9.zzaxm = v4_34.zzaxb;
                                                        }
                                                        v3_114++;
                                                    }
                                                    String v3_115 = v57_1;
                                                    Object v4_31 = v3_115.zzaug.zztt;
                                                    String v5_49 = this.zzjt().zzbm(v4_31);
                                                    if (v5_49 != null) {
                                                        if (v2_9.zzaxi.length > 0) {
                                                            Boolean v8_24;
                                                            String v6_58 = v5_49.zzhe();
                                                            if (v6_58 == 0) {
                                                                v8_24 = 0;
                                                            } else {
                                                                v8_24 = Long.valueOf(v6_58);
                                                            }
                                                            v2_9.zzaxo = v8_24;
                                                            Boolean v8_25 = v5_49.zzhd();
                                                            if (v8_25 != 0) {
                                                                v6_58 = v8_25;
                                                            } else {
                                                            }
                                                            String v6_59;
                                                            if (v6_58 == 0) {
                                                                v6_59 = 0;
                                                            } else {
                                                                v6_59 = Long.valueOf(v6_58);
                                                            }
                                                            v2_9.zzaxn = v6_59;
                                                            v5_49.zzhm();
                                                            v2_9.zzaxy = Integer.valueOf(((int) v5_49.zzhj()));
                                                            v5_49.zzo(v2_9.zzaxl.longValue());
                                                            v5_49.zzp(v2_9.zzaxm.longValue());
                                                            v2_9.zzagm = v5_49.zzhu();
                                                            this.zzjt().zza(v5_49);
                                                        }
                                                    } else {
                                                        this.zzada.zzgt().zzjg().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_115.zzaug.zztt));
                                                    }
                                                    if (v2_9.zzaxi.length > 0) {
                                                        this.zzada.zzgw();
                                                        String v5_57 = this.zzls().zzcg(v3_115.zzaug.zztt);
                                                        if (v5_57 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v3_115.zzaug.zzafi)) {
                                                                this.zzada.zzgt().zzjj().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_115.zzaug.zztt));
                                                            } else {
                                                                v2_9.zzayf = Long.valueOf(-1);
                                                            }
                                                        } else {
                                                            if (v5_57.zzawk != null) {
                                                                v2_9.zzayf = v5_57.zzawk;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzjt().zza(v2_9, v26);
                                                    }
                                                    com.google.android.gms.measurement.internal.zzac v2_36 = this.zzjt();
                                                    String v3_116 = v3_115.zzauh;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_116);
                                                    v2_36.zzaf();
                                                    v2_36.zzcl();
                                                    String v5_69 = new StringBuilder("rowid in (");
                                                    String v6_75 = 0;
                                                    while (v6_75 < v3_116.size()) {
                                                        if (v6_75 != null) {
                                                            v5_69.append(",");
                                                        }
                                                        v5_69.append(((Long) v3_116.get(v6_75)).longValue());
                                                        v6_75++;
                                                    }
                                                    v5_69.append(")");
                                                    String v5_71 = v2_36.getWritableDatabase().delete("raw_events", v5_69.toString(), 0);
                                                    if (v5_71 != v3_116.size()) {
                                                        v2_36.zzgt().zzjg().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_71), Integer.valueOf(v3_116.size()));
                                                    }
                                                    com.google.android.gms.measurement.internal.zzac v2_39 = this.zzjt();
                                                    String v3_119 = v2_39.getWritableDatabase();
                                                    try {
                                                        String v6_81 = new String[2];
                                                        v6_81[0] = v4_31;
                                                        v6_81[1] = v4_31;
                                                        v3_119.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_81);
                                                    } catch (android.database.sqlite.SQLiteException v0_11) {
                                                        v2_39.zzgt().zzjg().zze("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v4_31), v0_11);
                                                    }
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v6_5.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                        }
                                        if (v15_2.moveToNext()) {
                                            v4_40.zzgt().zzjj().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0));
                                        }
                                        long v16_5;
                                        int v17_4;
                                        v15_2.close();
                                        v2_29.zzb(v14_10);
                                        if (v5_81 == -1) {
                                            boolean v10_63 = new String[2];
                                            v10_63[0] = v3_0;
                                            v10_63[1] = v7_0;
                                            v16_5 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_4 = v10_63;
                                        } else {
                                            int v13_37 = new String[3];
                                            v13_37[0] = v3_0;
                                            v13_37[1] = v7_0;
                                            v13_37[2] = String.valueOf(v5_81);
                                            v16_5 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_4 = v13_37;
                                        }
                                        v6_5 = v15_2;
                                        String v5_17 = v25.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_5, v17_4, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_17.moveToFirst()) {
                                                v4_40.zzgt().zzjj().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0));
                                                if (v5_17 == null) {
                                                } else {
                                                    v5_17.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_9) {
                                            com.google.android.gms.measurement.internal.zzac v2_7 = v0_9;
                                            v6_5 = v5_17;
                                            if (v6_5 != null) {
                                                v6_5.close();
                                            }
                                            throw v2_7;
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            v7_0 = v3_0;
                                            v6_5 = v5_17;
                                            String v3_1 = v0_2;
                                            v4_40.zzgt().zzjg().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_0), v3_1);
                                            if (v6_5 == null) {
                                            } else {
                                                v6_5.close();
                                            }
                                        }
                                        do {
                                            String v6_28 = v5_17.getLong(0);
                                            long v12_48 = v5_17.getBlob(3);
                                            boolean v10_68 = com.google.android.gms.internal.measurement.zzxz.zzj(v12_48, 0, v12_48.length);
                                            long v12_50 = new com.google.android.gms.internal.measurement.zzft();
                                            v12_50.zza(v10_68);
                                            v12_50.name = v5_17.getString(1);
                                            v12_50.zzaxb = Long.valueOf(v5_17.getLong(2));
                                            if (v2_29.zza(v6_28, v12_50)) {
                                            } else {
                                                if (v5_17 == null) {
                                                } else {
                                                    v5_17.close();
                                                }
                                            }
                                        } while(v5_17.moveToNext());
                                        if (v5_17 == null) {
                                        } else {
                                            v5_17.close();
                                        }
                                    } else {
                                        v4_40.zzgt().zzjg().zzg("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0));
                                        if (v15_2 == null) {
                                        } else {
                                            v15_2.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_7) {
                                    v6_5 = v15_2;
                                    v2_7 = v0_7;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v6_5 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_10) {
                                    v2_7 = v0_10;
                                    v6_5 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v7_0 = v3_0;
                                    v6_5 = v15_2;
                                }
                                v7_0 = v3_0;
                            } catch (android.database.sqlite.SQLiteException v0_4) {
                                v2_7 = v0_4;
                                v6_5 = v23;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v7_0 = v3_0;
                                v6_5 = v23;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                                v3_0.close();
                            }
                        }
                    } else {
                        try {
                            int v13_47;
                            if (v5_81 == -1) {
                                v13_47 = new String[1];
                                v13_47[0] = String.valueOf(p63);
                            } else {
                                v13_47 = new String[2];
                                v13_47[0] = String.valueOf(v5_81);
                                v13_47[1] = String.valueOf(p63);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                            v6_5 = 0;
                            v7_0 = 0;
                        }
                        boolean v14_22;
                        if (v5_81 == -1) {
                            v14_22 = "";
                        } else {
                            v14_22 = "rowid <= ? and ";
                        }
                        String v3_122 = new StringBuilder((String.valueOf(v14_22).length() + 148));
                        v3_122.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_122.append(v14_22);
                        v3_122.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_3.rawQuery(v3_122.toString(), v13_47);
                        if (v3_0.moveToFirst()) {
                            long v7_2 = v3_0.getString(0);
                            try {
                                int v13_4 = v3_0.getString(1);
                                v3_0.close();
                                v23 = v3_0;
                                v3_0 = v7_2;
                                v7_0 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v6_5 = v3_0;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                                v3_0.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_3) {
                    v2_7 = v0_3;
                    v6_5 = v3_0;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v6_5 = v3_0;
                    v7_0 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v2_7 = v0_1;
                v6_5 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v3_1 = v0_0;
                v6_5 = 0;
                v7_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
            }
        } catch (android.database.sqlite.SQLiteException v0_6) {
            com.google.android.gms.measurement.internal.zzac v2_30 = v0_6;
            this.zzjt().endTransaction();
            throw v2_30;
        }
    }

Method com.google.android.gms.measurement.internal.zzx.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.zzap.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.zzx.zza(this.zzalo.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.zzao.zza() calling method android.database.sqlite.SQLiteDatabase.insertOrThrow()

Couldn't retrieve source code

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


    public final boolean zza(com.google.android.gms.measurement.internal.zzab 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.zzft();
        v0_6.zzaxc = Long.valueOf(p9.zzaht);
        byte[] v1_2 = new com.google.android.gms.internal.measurement.zzfu[p9.zzahu.size()];
        v0_6.zzaxa = v1_2;
        byte[] v1_4 = p9.zzahu.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.zzfu();
            int v7 = (v3_2 + 1);
            v0_6.zzaxa[v3_2] = v5_1;
            v5_1.name = v4_1;
            this.zzjr().zza(v5_1, p9.zzahu.get(v4_1));
            v3_2 = v7;
        }
        try {
            byte[] v1_6 = new byte[v0_6.zzvx()];
            String v3_4 = com.google.android.gms.internal.measurement.zzya.zzk(v1_6, 0, v1_6.length);
            v0_6.zza(v3_4);
            v3_4.zzza();
            this.zzgt().zzjo().zze("Saving event, name, data size", this.zzgq().zzbt(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.zzas.zzbw(p9.zztt));
                    return 0;
                }
            } catch (com.google.android.gms.measurement.internal.zzau v10_9) {
                this.zzgt().zzjg().zze("Error storing raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p9.zztt), v10_9);
                return 0;
            }
        } catch (com.google.android.gms.measurement.internal.zzau v10_6) {
            this.zzgt().zzjg().zze("Data loss. Failed to serialize event params/data. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p9.zztt), v10_6);
            return 0;
        }
    }

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


    public final boolean zza(com.google.android.gms.internal.measurement.zzfw p9, boolean p10)
    {
        this.zzaf();
        this.zzcl();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p9);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p9.zztt);
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p9.zzaxm);
        this.zzij();
        int v0_0 = this.zzbx().currentTimeMillis();
        if ((p9.zzaxm.longValue() < (v0_0 - com.google.android.gms.measurement.internal.zzq.zzib())) || (p9.zzaxm.longValue() > (v0_0 + com.google.android.gms.measurement.internal.zzq.zzib()))) {
            this.zzgt().zzjj().zzd("Storing bundle outside of the max uploading time span. appId, now, timestamp", com.google.android.gms.measurement.internal.zzas.zzbw(p9.zztt), Long.valueOf(v0_0), p9.zzaxm);
        }
        try {
            String v1_5 = new byte[p9.zzvx()];
            Object v2_10 = com.google.android.gms.internal.measurement.zzya.zzk(v1_5, 0, v1_5.length);
            p9.zza(v2_10);
            v2_10.zzza();
            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", p9.zztt);
            v2_15.put("bundle_end_timestamp", p9.zzaxm);
            v2_15.put("data", v1_6);
            v2_15.put("has_realtime", Integer.valueOf(p10));
        } catch (com.google.android.gms.measurement.internal.zzau v10_6) {
            this.zzgt().zzjg().zze("Data loss. Failed to serialize bundle. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p9.zztt), v10_6);
            return 0;
        }
        if (p9.zzayj != null) {
            v2_15.put("retry_count", p9.zzayj);
        }
        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.zzas.zzbw(p9.zztt));
                return 0;
            }
        } catch (com.google.android.gms.measurement.internal.zzau v10_1) {
            this.zzgt().zzjg().zze("Error storing bundle. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p9.zztt), v10_1);
            return 0;
        }
    }

Method com.google.android.gms.measurement.internal.zzt.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().zzby("The number of upload retries exceeds the limit. Will remain unchanged.");
            }
            try {
                com.google.android.gms.measurement.internal.zzau 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.zzm.zza() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    final com.google.android.gms.internal.measurement.zzfr[] zza(String p105, com.google.android.gms.internal.measurement.zzft[] p106, com.google.android.gms.internal.measurement.zzfz[] p107)
    {
        int v15_0 = p105;
        boolean v13_6 = p106;
        String vtmp1 = com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p105);
        String v11_11 = new java.util.HashSet();
        long[] v12_16 = new android.support.v4.util.ArrayMap();
        Boolean v10_0 = new android.support.v4.util.ArrayMap();
        android.support.v4.util.ArrayMap v9_1 = new android.support.v4.util.ArrayMap();
        Integer v8_1 = new android.support.v4.util.ArrayMap();
        boolean v6_8 = new android.support.v4.util.ArrayMap();
        boolean v23 = this.zzgv().zzbb(p105);
        int v1_68 = this.zzjt().zzbp(p105);
        if (v1_68 != 0) {
            long v2_50 = v1_68.keySet().iterator();
            while (v2_50.hasNext()) {
                int v1_62;
                boolean v29_0;
                Long v30_1;
                android.support.v4.util.ArrayMap v28;
                boolean v4_18 = ((Integer) v2_50.next()).intValue();
                Boolean v5_20 = ((com.google.android.gms.internal.measurement.zzfx) v1_68.get(Integer.valueOf(v4_18)));
                String v3_24 = ((java.util.BitSet) v10_0.get(Integer.valueOf(v4_18)));
                long v27_0 = v1_68;
                int v1_61 = ((java.util.BitSet) v9_1.get(Integer.valueOf(v4_18)));
                if (!v23) {
                    v28 = v1_61;
                    v29_0 = v2_50;
                    v30_1 = v11_11;
                    v1_62 = 0;
                } else {
                    v28 = v1_61;
                    v1_62 = new android.support.v4.util.ArrayMap();
                    if (v5_20 == null) {
                        v29_0 = v2_50;
                        v30_1 = v11_11;
                    } else {
                        v29_0 = v2_50;
                        if (v5_20.zzayp != null) {
                            long v2_39 = v5_20.zzayp;
                            v30_1 = v11_11;
                            String v11_6 = v2_39.length;
                            android.support.v4.util.ArrayMap v14_1 = 0;
                            while (v14_1 < v11_6) {
                                int v31_0 = v11_6;
                                String v11_7 = v2_39[v14_1];
                                int v32_0 = v2_39;
                                if (v11_7.zzawx != null) {
                                    v1_62.put(v11_7.zzawx, v11_7.zzawy);
                                }
                                v14_1++;
                                v11_6 = v31_0;
                                v2_39 = v32_0;
                            }
                        }
                    }
                    v8_1.put(Integer.valueOf(v4_18), v1_62);
                }
                long v2_43;
                if (v3_24 != null) {
                    v2_43 = v28;
                } else {
                    v3_24 = new java.util.BitSet();
                    v10_0.put(Integer.valueOf(v4_18), v3_24);
                    v2_43 = new java.util.BitSet();
                    v9_1.put(Integer.valueOf(v4_18), v2_43);
                }
                String v11_10 = 0;
                while (v11_10 < (v5_20.zzayn.length << 6)) {
                    String v34_3;
                    android.support.v4.util.ArrayMap v35_2;
                    Integer v8_8;
                    android.support.v4.util.ArrayMap v33_3;
                    if (!com.google.android.gms.measurement.internal.zzfu.zza(v5_20.zzayn, v11_10)) {
                        v33_3 = v8_1;
                        v34_3 = v9_1;
                        v35_2 = v10_0;
                        v8_8 = 0;
                    } else {
                        v33_3 = v8_1;
                        v34_3 = v9_1;
                        v35_2 = v10_0;
                        this.zzgt().zzjo().zze("Filter already evaluated. audience ID, filter ID", Integer.valueOf(v4_18), Integer.valueOf(v11_10));
                        v2_43.set(v11_10);
                        if (!com.google.android.gms.measurement.internal.zzfu.zza(v5_20.zzayo, v11_10)) {
                        } else {
                            v3_24.set(v11_10);
                            v8_8 = 1;
                        }
                    }
                    if ((v1_62 != 0) && (v8_8 == null)) {
                        v1_62.remove(Integer.valueOf(v11_10));
                    }
                    v11_10++;
                    v8_1 = v33_3;
                    v9_1 = v34_3;
                    v10_0 = v35_2;
                }
                android.support.v4.util.ArrayMap v33_2 = v8_1;
                String v34_2 = v9_1;
                android.support.v4.util.ArrayMap v35_1 = v10_0;
                Integer v8_4 = new com.google.android.gms.internal.measurement.zzfr();
                v12_16.put(Integer.valueOf(v4_18), v8_4);
                v8_4.zzawv = Boolean.valueOf(0);
                v8_4.zzawu = v5_20;
                v8_4.zzawt = new com.google.android.gms.internal.measurement.zzfx();
                v8_4.zzawt.zzayo = com.google.android.gms.measurement.internal.zzfu.zza(v3_24);
                v8_4.zzawt.zzayn = com.google.android.gms.measurement.internal.zzfu.zza(v2_43);
                if (v23) {
                    v8_4.zzawt.zzayp = com.google.android.gms.measurement.internal.zzm.zzb(v1_62);
                    v6_8.put(Integer.valueOf(v4_18), new android.support.v4.util.ArrayMap());
                }
                v1_68 = v27_0;
                v2_50 = v29_0;
                v11_11 = v30_1;
                v8_1 = v33_2;
                v9_1 = v34_2;
                v10_0 = v35_1;
            }
        }
        android.support.v4.util.ArrayMap v33_1 = v8_1;
        String v34_1 = v9_1;
        android.support.v4.util.ArrayMap v35_0 = v10_0;
        Long v30_0 = v11_11;
        if (p106 != null) {
            Boolean v10_6 = new android.support.v4.util.ArrayMap();
            android.support.v4.util.ArrayMap v9_2 = p106.length;
            int v1_92 = 0;
            long v2_53 = 0;
            Integer v8_2 = 0;
            int v16_8 = 0;
            while (v8_2 < v9_2) {
                String v80_2;
                android.support.v4.util.ArrayMap v33_0;
                String v3_21;
                String v11_5;
                Boolean v5_7;
                boolean v29_1;
                boolean v38_0;
                android.support.v4.util.ArrayMap v70_1;
                long v27_1;
                String v34_0;
                String v40_1;
                Integer v63_1;
                int v74_2;
                String v78_3;
                java.util.BitSet v26;
                int v71_1;
                boolean v13_13;
                String v3_48 = v13_6[v8_2];
                String v11_14 = v3_48.name;
                android.support.v4.util.ArrayMap v14_17 = v3_48.zzaxa;
                if (!this.zzgv().zzd(v15_0, com.google.android.gms.measurement.internal.zzai.zzaki)) {
                    v13_13 = v3_48;
                    v38_0 = v6_8;
                    v40_1 = v1_92;
                    v26 = v2_53;
                    v5_7 = v11_14;
                    v29_1 = v14_17;
                    v27_1 = v16_8;
                    int v1_122;
                    int v46;
                    int v42;
                    long v2_18;
                    int v45;
                    int v44;
                    String v3_0;
                    String v43;
                    int v1_120 = this.zzjt().zzg(v15_0, v13_13.name);
                    if (v1_120 != 0) {
                        v43 = v10_6;
                        v44 = v12_16;
                        v46 = v13_13;
                        v2_18 = v30_0;
                        v3_0 = v33_1;
                        v45 = v34_1;
                        v42 = v35_0;
                        v33_0 = v8_2;
                        v34_0 = v9_2;
                        boolean v6_28 = new com.google.android.gms.measurement.internal.zzac;
                        v6_28(v1_120.zztt, v1_120.name, (v1_120.zzahv + 1), (v1_120.zzahw + 1), v1_120.zzahx, v1_120.zzahy, v1_120.zzahz, v1_120.zzaia, v1_120.zzaib, v1_120.zzaic);
                        v1_122 = v6_28;
                    } else {
                        this.zzgt().zzjj().zze("Event aggregate wasn\'t created during raw event logging. appId, event", com.google.android.gms.measurement.internal.zzas.zzbw(p105), this.zzgq().zzbt(v5_7));
                        v1_122 = new com.google.android.gms.measurement.internal.zzac;
                        v33_0 = v8_2;
                        v34_0 = v9_2;
                        v43 = v10_6;
                        v42 = v35_0;
                        v45 = v34_1;
                        v44 = v12_16;
                        v2_18 = v30_0;
                        v46 = v13_13;
                        v3_0 = v33_1;
                        v1_122(v15_0, v13_13.name, 1, 1, v13_13.zzaxb.longValue(), 0, 0, 0, 0, 0);
                    }
                    String v11_3;
                    this.zzjt().zza(v1_122);
                    Integer v8_37 = v1_122.zzahv;
                    Boolean v10_3 = v43;
                    int v1_126 = ((java.util.Map) v10_3.get(v5_7));
                    if (v1_126 != 0) {
                        v11_3 = p105;
                    } else {
                        v11_3 = p105;
                        v1_126 = this.zzjt().zzl(p105, v5_7);
                        if (v1_126 == 0) {
                            v1_126 = new android.support.v4.util.ArrayMap();
                        }
                        v10_3.put(v5_7, v1_126);
                    }
                    long[] v12_9 = v1_126;
                    boolean v13_2 = v12_9.keySet().iterator();
                    while (v13_2.hasNext()) {
                        android.support.v4.util.ArrayMap v14_20 = ((Integer) v13_2.next()).intValue();
                        if (!v2_18.contains(Integer.valueOf(v14_20))) {
                            boolean v13_0;
                            boolean v66;
                            Integer v65_0;
                            java.util.Map v64;
                            long v2_3;
                            int v15_1 = v44;
                            boolean v6_0 = v42;
                            boolean v4_2 = ((java.util.BitSet) v6_0.get(Integer.valueOf(v14_20)));
                            String v62 = v2_18;
                            Integer v63_0 = v10_3;
                            Boolean v10_1 = v45;
                            long v2_2 = ((java.util.BitSet) v10_1.get(Integer.valueOf(v14_20)));
                            if (!v23) {
                                v64 = v2_2;
                                v66 = v13_2;
                                v13_0 = v38_0;
                                v2_3 = 0;
                                v65_0 = 0;
                            } else {
                                v64 = v2_2;
                                v65_0 = ((java.util.Map) v3_0.get(Integer.valueOf(v14_20)));
                                v66 = v13_2;
                                v13_0 = v38_0;
                                v2_3 = ((java.util.Map) v13_0.get(Integer.valueOf(v14_20)));
                            }
                            boolean v13_1;
                            int v71_0;
                            Boolean v10_2;
                            int v1_3;
                            android.support.v4.util.ArrayMap v70_0;
                            if (((com.google.android.gms.internal.measurement.zzfr) v15_1.get(Integer.valueOf(v14_20))) != null) {
                                v71_0 = v10_1;
                                v70_0 = v13_0;
                                v1_3 = v64;
                                v13_1 = v65_0;
                                v10_2 = v2_3;
                            } else {
                                Integer v69;
                                android.support.v4.util.ArrayMap v68;
                                int v1_5 = new com.google.android.gms.internal.measurement.zzfr();
                                v15_1.put(Integer.valueOf(v14_20), v1_5);
                                int v67_1 = v2_3;
                                v1_5.zzawv = Boolean.valueOf(1);
                                int v1_7 = new java.util.BitSet();
                                v6_0.put(Integer.valueOf(v14_20), v1_7);
                                long v2_12 = new java.util.BitSet();
                                v10_1.put(Integer.valueOf(v14_20), v2_12);
                                if (!v23) {
                                    v68 = v1_7;
                                    v69 = v2_12;
                                    v71_0 = v10_1;
                                    v70_0 = v13_0;
                                    v13_1 = v65_0;
                                    v10_2 = v67_1;
                                } else {
                                    boolean v4_7 = new android.support.v4.util.ArrayMap();
                                    v68 = v1_7;
                                    v3_0.put(Integer.valueOf(v14_20), v4_7);
                                    int v1_10 = new android.support.v4.util.ArrayMap();
                                    v69 = v2_12;
                                    v13_0.put(Integer.valueOf(v14_20), v1_10);
                                    v71_0 = v10_1;
                                    v70_0 = v13_0;
                                    v10_2 = v1_10;
                                    v13_1 = v4_7;
                                }
                                v4_2 = v68;
                                v1_3 = v69;
                            }
                            long v2_17 = ((java.util.List) v12_9.get(Integer.valueOf(v14_20))).iterator();
                            while (v2_17.hasNext()) {
                                String v77;
                                String v76;
                                String v75;
                                long[] v72 = v12_9;
                                long[] v12_3 = ((com.google.android.gms.internal.measurement.zzfj) v2_17.next());
                                String v73 = v1_3;
                                int v74_1 = v15_1;
                                if (!this.zzgt().isLoggable(2)) {
                                    v75 = v2_17;
                                    v76 = v3_0;
                                    v77 = v6_0;
                                } else {
                                    v75 = v2_17;
                                    v76 = v3_0;
                                    v77 = v6_0;
                                    this.zzgt().zzjo().zzd("Evaluating filter. audience, filter, event", Integer.valueOf(v14_20), v12_3.zzavk, this.zzgq().zzbt(v12_3.zzavl));
                                    this.zzgt().zzjo().zzg("Filter definition", this.zzjr().zza(v12_3));
                                }
                                if ((v12_3.zzavk != null) && (v12_3.zzavk.intValue() <= 256)) {
                                    Boolean v10_4;
                                    boolean v6_3;
                                    String v17_0;
                                    String v78_1;
                                    String v18_0;
                                    String v11_2;
                                    String v80_0;
                                    Boolean v5_5;
                                    boolean v13_3;
                                    int v15_4;
                                    if (!v23) {
                                        v18_0 = v5_7;
                                        v5_5 = v10_2;
                                        v6_3 = v13_1;
                                        v15_4 = v46;
                                        v11_2 = v62;
                                        v10_4 = v73;
                                        v17_0 = v75;
                                        v78_1 = v76;
                                        v80_0 = v77;
                                        v13_3 = v4_2;
                                        if (!v13_3.get(v12_3.zzavk.intValue())) {
                                            boolean v4_9;
                                            int v67_2 = v5_5;
                                            Integer v65_1 = v6_3;
                                            int v1_24 = this.zza(v12_3, v18_0, v29_1, v8_37);
                                            com.google.android.gms.measurement.internal.zzau vtmp281 = this.zzgt().zzjo();
                                            if (v1_24 != 0) {
                                                v4_9 = v1_24;
                                            } else {
                                                v4_9 = "null";
                                            }
                                            vtmp281.zzg("Event filter result", v4_9);
                                            if (v1_24 != 0) {
                                                v10_4.set(v12_3.zzavk.intValue());
                                                if (v1_24.booleanValue()) {
                                                    v13_3.set(v12_3.zzavk.intValue());
                                                }
                                            } else {
                                                v11_2.add(Integer.valueOf(v14_20));
                                            }
                                            v1_3 = v10_4;
                                            v62 = v11_2;
                                            v4_2 = v13_3;
                                            v46 = v15_4;
                                            v2_17 = v17_0;
                                            v5_7 = v18_0;
                                            v13_1 = v65_1;
                                            v10_2 = v67_2;
                                            v12_9 = v72;
                                            v15_1 = v74_1;
                                            v3_0 = v78_1;
                                            v6_0 = v80_0;
                                            v11_3 = p105;
                                        } else {
                                            this.zzgt().zzjo().zze("Event filter already evaluated true. audience ID, filter ID", Integer.valueOf(v14_20), v12_3.zzavk);
                                        }
                                    } else {
                                        if ((v12_3 == null) || ((v12_3.zzavh == null) || (!v12_3.zzavh.booleanValue()))) {
                                            int v15_5 = 0;
                                        } else {
                                            v15_5 = 1;
                                        }
                                        if ((v12_3 == null) || ((v12_3.zzavi == null) || (!v12_3.zzavi.booleanValue()))) {
                                            int v16_2 = 0;
                                        } else {
                                            v16_2 = 1;
                                        }
                                        if ((!v4_2.get(v12_3.zzavk.intValue())) || ((v15_5 != 0) || (v16_2 != 0))) {
                                            boolean v4_12;
                                            v17_0 = v75;
                                            v11_2 = v62;
                                            v78_1 = v76;
                                            boolean v79 = v13_1;
                                            v13_3 = v4_2;
                                            v18_0 = v5_7;
                                            Boolean v81 = v10_2;
                                            v80_0 = v77;
                                            v10_4 = v73;
                                            int v1_41 = this.zza(v12_3, v5_7, v29_1, v8_37);
                                            com.google.android.gms.measurement.internal.zzau vtmp301 = this.zzgt().zzjo();
                                            if (v1_41 != 0) {
                                                v4_12 = v1_41;
                                            } else {
                                                v4_12 = "null";
                                            }
                                            vtmp301.zzg("Event filter result", v4_12);
                                            if (v1_41 != 0) {
                                                v10_4.set(v12_3.zzavk.intValue());
                                                if (!v1_41.booleanValue()) {
                                                    v1_3 = v10_4;
                                                    v62 = v11_2;
                                                    v4_2 = v13_3;
                                                } else {
                                                    v13_3.set(v12_3.zzavk.intValue());
                                                    if ((v15_5 == 0) && (v16_2 == 0)) {
                                                    } else {
                                                        v15_4 = v46;
                                                        if (v15_4.zzaxb == null) {
                                                            v1_3 = v10_4;
                                                            v62 = v11_2;
                                                            v4_2 = v13_3;
                                                            v46 = v15_4;
                                                        } else {
                                                            if (v16_2 == 0) {
                                                                v5_5 = v81;
                                                                v6_3 = v79;
                                                                com.google.android.gms.measurement.internal.zzm.zza(v6_3, v12_3.zzavk.intValue(), v15_4.zzaxb.longValue());
                                                                v1_3 = v10_4;
                                                                v62 = v11_2;
                                                                v4_2 = v13_3;
                                                                v46 = v15_4;
                                                                v2_17 = v17_0;
                                                                v12_9 = v72;
                                                                v15_1 = v74_1;
                                                                v3_0 = v78_1;
                                                                v11_3 = p105;
                                                                v10_2 = v5_5;
                                                                v13_1 = v6_3;
                                                                v5_7 = v18_0;
                                                                v6_0 = v80_0;
                                                            } else {
                                                                Boolean v5_10 = v81;
                                                                com.google.android.gms.measurement.internal.zzm.zzb(v5_10, v12_3.zzavk.intValue(), v15_4.zzaxb.longValue());
                                                                v1_3 = v10_4;
                                                                v62 = v11_2;
                                                                v4_2 = v13_3;
                                                                v46 = v15_4;
                                                                v2_17 = v17_0;
                                                                v12_9 = v72;
                                                                v15_1 = v74_1;
                                                                v3_0 = v78_1;
                                                                v13_1 = v79;
                                                                v6_0 = v80_0;
                                                                v11_3 = p105;
                                                                v10_2 = v5_10;
                                                                v5_7 = v18_0;
                                                            }
                                                        }
                                                    }
                                                }
                                            } else {
                                                v11_2.add(Integer.valueOf(v14_20));
                                            }
                                            v2_17 = v17_0;
                                            v5_7 = v18_0;
                                            v12_9 = v72;
                                            v15_1 = v74_1;
                                            v3_0 = v78_1;
                                            v13_1 = v79;
                                            v6_0 = v80_0;
                                            v10_2 = v81;
                                        } 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(v14_20), v12_3.zzavk);
                                            v12_9 = v72;
                                            v1_3 = v73;
                                            v15_1 = v74_1;
                                            v2_17 = v75;
                                            v3_0 = v76;
                                            v6_0 = v77;
                                        }
                                    }
                                } else {
                                    String v18_1 = v5_7;
                                    int v67_3 = v10_2;
                                    Integer v65_2 = v13_1;
                                    int v15_7 = v46;
                                    String v11_4 = v62;
                                    Boolean v10_5 = v73;
                                    String v17_1 = v75;
                                    String v78_2 = v76;
                                    String v80_1 = v77;
                                    boolean v13_5 = v4_2;
                                    this.zzgt().zzjj().zze("Invalid event filter ID. appId, id", com.google.android.gms.measurement.internal.zzas.zzbw(p105), String.valueOf(v12_3.zzavk));
                                    v1_3 = v10_5;
                                    v62 = v11_4;
                                    v4_2 = v13_5;
                                    v46 = v15_7;
                                    v2_17 = v17_1;
                                    v5_7 = v18_1;
                                    v13_1 = v65_2;
                                    v10_2 = v67_3;
                                    v12_9 = v72;
                                    v15_1 = v74_1;
                                    v6_0 = v80_1;
                                    v11_3 = p105;
                                    v3_0 = v78_2;
                                }
                            }
                            v42 = v6_0;
                            v2_18 = v62;
                            v10_3 = v63_0;
                            v13_2 = v66;
                            v38_0 = v70_0;
                            v45 = v71_0;
                            v44 = v15_1;
                        } else {
                            this.zzgt().zzjo().zzg("Skipping failed audience ID", Integer.valueOf(v14_20));
                        }
                    }
                    v78_3 = v3_0;
                    v63_1 = v10_3;
                    v3_21 = v11_3;
                    v70_1 = v38_0;
                    v80_2 = v42;
                    v74_2 = v44;
                    v71_1 = v45;
                    v11_5 = v2_18;
                    v2_53 = v26;
                    v16_8 = v27_1;
                    v1_92 = v40_1;
                } else {
                    Boolean v5_44;
                    this.zzjr();
                    boolean v4_54 = ((Long) com.google.android.gms.measurement.internal.zzfu.zzb(v3_48, "_eid"));
                    if (!v4_54) {
                        v5_44 = 0;
                    } else {
                        v5_44 = 1;
                    }
                    boolean v6_20;
                    boolean v36;
                    if (v5_44 == null) {
                        v36 = v6_8;
                        v6_20 = 0;
                    } else {
                        v36 = v6_8;
                        if (!v11_14.equals("_ep")) {
                        } else {
                            v6_20 = 1;
                        }
                    }
                    if (!v6_20) {
                        v13_13 = v3_48;
                        v38_0 = v36;
                        if (v5_44 == null) {
                        } else {
                            this.zzjr();
                            long v2_88 = Long.valueOf(0);
                            int v1_100 = com.google.android.gms.measurement.internal.zzfu.zzb(v13_13, "_epc");
                            if (v1_100 == 0) {
                                v1_100 = v2_88;
                            }
                            java.util.BitSet v20_0;
                            int v16_11 = ((Long) v1_100).longValue();
                            if (v16_11 > 0) {
                                v20_0 = v4_54;
                                this.zzjt().zza(v15_0, v4_54, v16_11, v13_13);
                            } else {
                                this.zzgt().zzjj().zzg("Complex event with zero extra param count. eventName", v11_14);
                                v20_0 = v4_54;
                            }
                            v5_7 = v11_14;
                            v40_1 = v13_13;
                            v29_1 = v14_17;
                            v27_1 = v16_11;
                            v26 = v20_0;
                        }
                    } else {
                        boolean v38_1;
                        this.zzjr();
                        String v11_16 = ((String) com.google.android.gms.measurement.internal.zzfu.zzb(v3_48, "_en"));
                        if (!android.text.TextUtils.isEmpty(v11_16)) {
                            if ((v1_92 == 0) || ((v2_53 == 0) || (v4_54.longValue() != v2_53.longValue()))) {
                                Boolean v5_51 = this.zzjt().zza(v15_0, v4_54);
                                if ((v5_51 != null) && (v5_51.first != null)) {
                                    v1_92 = ((com.google.android.gms.internal.measurement.zzft) v5_51.first);
                                    v16_8 = ((Long) v5_51.second).longValue();
                                    this.zzjr();
                                    v2_53 = ((Long) com.google.android.gms.measurement.internal.zzfu.zzb(v1_92, "_eid"));
                                } else {
                                    v38_1 = v36;
                                    this.zzgt().zzjg().zze("Extra parameter without existing main event. eventName, eventId", v11_16, v4_54);
                                    v63_1 = v10_6;
                                    v74_2 = v12_16;
                                    v3_21 = v15_0;
                                    v11_5 = v30_0;
                                    v78_3 = v33_1;
                                    v71_1 = v34_1;
                                    v80_2 = v35_0;
                                    v70_1 = v38_1;
                                    v33_0 = v8_2;
                                    v34_0 = v9_2;
                                    v8_2 = (v33_0 + 1);
                                    v13_6 = p106;
                                    v15_0 = v3_21;
                                    v30_0 = v11_5;
                                    v9_2 = v34_0;
                                    v10_6 = v63_1;
                                    v6_8 = v70_1;
                                    v34_1 = v71_1;
                                    v12_16 = v74_2;
                                    v33_1 = v78_3;
                                    v35_0 = v80_2;
                                }
                            }
                            int v1_58;
                            boolean v6_24 = v1_92;
                            java.util.BitSet v20_2 = v2_53;
                            long v21_0 = (v16_8 - 1);
                            if (v21_0 > 0) {
                                int v25 = 0;
                                v13_13 = v3_48;
                                com.google.android.gms.measurement.internal.zzau v39 = v6_24;
                                v38_0 = v36;
                                this.zzjt().zza(v15_0, v4_54, v21_0, v6_24);
                                v1_58 = v39;
                            } else {
                                int v1_111 = this.zzjt();
                                v1_111.zzaf();
                                v1_111.zzgt().zzjo().zzg("Clearing complex main event info. appId", v15_0);
                                try {
                                    long v2_98 = v1_111.getWritableDatabase();
                                    String v37_1 = v3_48;
                                    try {
                                        String v3_51 = new String[1];
                                        try {
                                            v3_51[0] = v15_0;
                                            v2_98.execSQL("delete from main_event_params where app_id=?", v3_51);
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            v1_111.zzgt().zzjg().zzg("Error clearing complex main event", v0_2);
                                        }
                                        v1_58 = v6_24;
                                        v38_0 = v36;
                                        v13_13 = v37_1;
                                    } catch (android.database.sqlite.SQLiteException v0_2) {
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v37_1 = v3_48;
                                }
                            }
                            long v2_103 = new com.google.android.gms.internal.measurement.zzfu[(v1_58.zzaxa.length + v14_17.length)];
                            String v3_16 = v1_58.zzaxa;
                            boolean v4_60 = v3_16.length;
                            Boolean v5_15 = 0;
                            boolean v6_7 = 0;
                            while (v5_15 < v4_60) {
                                String v40_0 = v1_58;
                                int v1_57 = v3_16[v5_15];
                                this.zzjr();
                                String[] v41 = v3_16;
                                if (com.google.android.gms.measurement.internal.zzfu.zza(v13_13, v1_57.name) == null) {
                                    String v3_15 = (v6_7 + 1);
                                    v2_103[v6_7] = v1_57;
                                    v6_7 = v3_15;
                                }
                                v5_15++;
                                v1_58 = v40_0;
                                v3_16 = v41;
                            }
                            v40_1 = v1_58;
                            if (v6_7) {
                                this.zzgt().zzjj().zzg("No unique parameters in main event. eventName", v11_16);
                                v5_7 = v11_16;
                                v29_1 = v14_17;
                            } else {
                                int v1_116 = v14_17.length;
                                String v3_12 = 0;
                                while (v3_12 < v1_116) {
                                    Boolean v5_13 = (v6_7 + 1);
                                    v2_103[v6_7] = v14_17[v3_12];
                                    v3_12++;
                                    v6_7 = v5_13;
                                }
                                if (v6_7 != v2_103.length) {
                                    v2_103 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v2_103, v6_7));
                                }
                                v29_1 = v2_103;
                                v5_7 = v11_16;
                            }
                            v26 = v20_2;
                            v27_1 = v21_0;
                        } else {
                            this.zzgt().zzjg().zzg("Extra parameter without an event name. eventId", v4_54);
                            v38_1 = v36;
                        }
                    }
                }
            }
        }
        android.support.v4.util.ArrayMap v70_2 = v6_8;
        int v74_3 = v12_16;
        String v3_29 = v15_0;
        String v11_12 = v30_0;
        String v78_4 = v33_1;
        int v71_2 = v34_1;
        String v80_3 = v35_0;
        int v1_78 = p107;
        if (p107 != null) {
            long v2_54 = new android.support.v4.util.ArrayMap();
            boolean v4_43 = p107.length;
            Boolean v5_31 = 0;
            while (v5_31 < v4_43) {
                boolean v6_17 = v1_78[v5_31];
                Integer v8_17 = ((java.util.Map) v2_54.get(v6_17.name));
                if (v8_17 == null) {
                    v8_17 = this.zzjt().zzm(v3_29, v6_17.name);
                    if (v8_17 == null) {
                        v8_17 = new android.support.v4.util.ArrayMap();
                    }
                    v2_54.put(v6_17.name, v8_17);
                }
                android.support.v4.util.ArrayMap v9_13 = v8_17.keySet().iterator();
                while (v9_13.hasNext()) {
                    Boolean v10_16 = ((Integer) v9_13.next()).intValue();
                    if (!v11_12.contains(Integer.valueOf(v10_16))) {
                        boolean v4_38;
                        android.support.v4.util.ArrayMap v84;
                        int v1_82;
                        android.support.v4.util.ArrayMap v86;
                        int v85;
                        android.support.v4.util.ArrayMap v9_14;
                        java.util.Map v83;
                        boolean v13_7 = v74_3;
                        int v15_8 = v80_3;
                        android.support.v4.util.ArrayMap v14_11 = ((java.util.BitSet) v15_8.get(Integer.valueOf(v10_16)));
                        long[] v82 = v2_54;
                        long v2_52 = v71_2;
                        int v1_81 = ((java.util.BitSet) v2_52.get(Integer.valueOf(v10_16)));
                        if (!v23) {
                            v83 = v1_81;
                            v84 = v4_43;
                            v86 = v9_13;
                            v9_14 = v70_2;
                            v4_38 = v78_4;
                            v1_82 = 0;
                            v85 = 0;
                        } else {
                            v83 = v1_81;
                            v84 = v4_43;
                            v4_38 = v78_4;
                            v85 = ((java.util.Map) v4_38.get(Integer.valueOf(v10_16)));
                            v86 = v9_13;
                            v9_14 = v70_2;
                            v1_82 = ((java.util.Map) v9_14.get(Integer.valueOf(v10_16)));
                        }
                        android.support.v4.util.ArrayMap v9_15;
                        android.support.v4.util.ArrayMap v91_1;
                        int v1_88;
                        long[] v12_25;
                        android.support.v4.util.ArrayMap v90_1;
                        if (((com.google.android.gms.internal.measurement.zzfr) v13_7.get(Integer.valueOf(v10_16))) != null) {
                            v91_1 = v4_38;
                            v90_1 = v9_14;
                            v12_25 = v83;
                            v1_88 = v85;
                            v9_15 = v1_82;
                        } else {
                            android.support.v4.util.ArrayMap v88;
                            long[] v12_27 = new com.google.android.gms.internal.measurement.zzfr();
                            v13_7.put(Integer.valueOf(v10_16), v12_27);
                            java.util.BitSet v87_1 = v1_82;
                            v12_27.zzawv = Boolean.valueOf(1);
                            int v1_91 = new java.util.BitSet();
                            v15_8.put(Integer.valueOf(v10_16), v1_91);
                            v12_25 = new java.util.BitSet();
                            v2_52.put(Integer.valueOf(v10_16), v12_25);
                            if (!v23) {
                                v88 = v1_91;
                                v91_1 = v4_38;
                                v90_1 = v9_14;
                                v1_88 = v85;
                                v9_15 = v87_1;
                            } else {
                                android.support.v4.util.ArrayMap v14_16 = new android.support.v4.util.ArrayMap();
                                v88 = v1_91;
                                v4_38.put(Integer.valueOf(v10_16), v14_16);
                                int v1_95 = new android.support.v4.util.ArrayMap();
                                java.util.Map v89 = v12_25;
                                v9_14.put(Integer.valueOf(v10_16), v1_95);
                                v91_1 = v4_38;
                                v90_1 = v9_14;
                                v12_25 = v89;
                                v9_15 = v1_95;
                                v1_88 = v14_16;
                            }
                            v14_11 = v88;
                        }
                        boolean v4_42 = ((java.util.List) v8_17.get(Integer.valueOf(v10_16))).iterator();
                        while (v4_42.hasNext()) {
                            Integer v95_1;
                            Integer v96;
                            String v97_1;
                            com.google.android.gms.measurement.internal.zzau v92 = v4_42;
                            boolean v4_45 = ((com.google.android.gms.internal.measurement.zzfm) v4_42.next());
                            int v93 = v8_17;
                            int v94_1 = v2_52;
                            if (!this.zzgt().isLoggable(2)) {
                                v97_1 = v5_31;
                                v95_1 = v13_7;
                                v96 = v15_8;
                            } else {
                                v95_1 = v13_7;
                                v96 = v15_8;
                                v97_1 = v5_31;
                                this.zzgt().zzjo().zzd("Evaluating filter. audience, filter, property", Integer.valueOf(v10_16), v4_45.zzavk, this.zzgq().zzbv(v4_45.zzawa));
                                this.zzgt().zzjo().zzg("Filter definition", this.zzjr().zza(v4_45));
                            }
                            if ((v4_45.zzavk != null) && (v4_45.zzavk.intValue() <= 256)) {
                                if (!v23) {
                                    if (!v14_11.get(v4_45.zzavk.intValue())) {
                                        Integer v8_24;
                                        long v2_65 = this.zza(v4_45, v6_17);
                                        String v3_34 = this.zzgt().zzjo();
                                        if (v2_65 != 0) {
                                            v8_24 = v2_65;
                                        } else {
                                            v8_24 = "null";
                                        }
                                        v3_34.zzg("Property filter result", v8_24);
                                        if (v2_65 != 0) {
                                            v12_25.set(v4_45.zzavk.intValue());
                                            if (v2_65.booleanValue()) {
                                                v14_11.set(v4_45.zzavk.intValue());
                                            }
                                        } else {
                                            v11_12.add(Integer.valueOf(v10_16));
                                        }
                                    } else {
                                        this.zzgt().zzjo().zze("Property filter already evaluated true. audience ID, filter ID", Integer.valueOf(v10_16), v4_45.zzavk);
                                    }
                                } else {
                                    if ((!v4_45) || ((v4_45.zzavh == null) || (!v4_45.zzavh.booleanValue()))) {
                                        long v2_75 = 0;
                                    } else {
                                        v2_75 = 1;
                                    }
                                    if ((!v4_45) || ((v4_45.zzavi == null) || (!v4_45.zzavi.booleanValue()))) {
                                        Boolean v5_40 = 0;
                                    } else {
                                        v5_40 = 1;
                                    }
                                    if ((!v14_11.get(v4_45.zzavk.intValue())) || ((v2_75 != 0) || (v5_40 != null))) {
                                        String v3_38;
                                        Integer v8_28 = this.zza(v4_45, v6_17);
                                        boolean v13_10 = this.zzgt().zzjo();
                                        if (v8_28 != null) {
                                            v3_38 = v8_28;
                                        } else {
                                            v3_38 = "null";
                                        }
                                        v13_10.zzg("Property filter result", v3_38);
                                        if (v8_28 != null) {
                                            v12_25.set(v4_45.zzavk.intValue());
                                            v14_11.set(v4_45.zzavk.intValue(), v8_28.booleanValue());
                                            if (((v8_28.booleanValue()) && ((v2_75 != 0) || (v5_40 != null))) && (v6_17.zzayu != null)) {
                                                if (v5_40 == null) {
                                                    com.google.android.gms.measurement.internal.zzm.zza(v1_88, v4_45.zzavk.intValue(), v6_17.zzayu.longValue());
                                                } else {
                                                    com.google.android.gms.measurement.internal.zzm.zzb(v9_15, v4_45.zzavk.intValue(), v6_17.zzayu.longValue());
                                                }
                                            }
                                        } else {
                                            v11_12.add(Integer.valueOf(v10_16));
                                        }
                                    } 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(v10_16), v4_45.zzavk);
                                    }
                                }
                                v4_42 = v92;
                                v8_17 = v93;
                                v2_52 = v94_1;
                                v13_7 = v95_1;
                                v15_8 = v96;
                                v5_31 = v97_1;
                                v3_29 = p105;
                            } else {
                                v3_29 = p105;
                                this.zzgt().zzjj().zze("Invalid property filter ID. appId, id", com.google.android.gms.measurement.internal.zzas.zzbw(p105), String.valueOf(v4_45.zzavk));
                                v11_12.add(Integer.valueOf(v10_16));
                                v2_54 = v82;
                                v4_43 = v84;
                                v9_13 = v86;
                                v70_2 = v90_1;
                                v78_4 = v91_1;
                                v8_17 = v93;
                                v71_2 = v94_1;
                                v74_3 = v95_1;
                                v80_3 = v96;
                                v5_31 = v97_1;
                            }
                        }
                        v71_2 = v2_52;
                        v74_3 = v13_7;
                        v80_3 = v15_8;
                        v2_54 = v82;
                        v4_43 = v84;
                        v9_13 = v86;
                        v70_2 = v90_1;
                        v78_4 = v91_1;
                    } else {
                        this.zzgt().zzjo().zzg("Skipping failed audience ID", Integer.valueOf(v10_16));
                    }
                }
                v84 = v4_43;
                int v94 = v71_2;
                android.support.v4.util.ArrayMap v91 = v78_4;
                v5_31++;
                v1_78 = p107;
            }
        }
        android.support.v4.util.ArrayMap v90_0 = v70_2;
        int v94_0 = v71_2;
        Integer v95_0 = v74_3;
        android.support.v4.util.ArrayMap v91_0 = v78_4;
        int v1_77 = v80_3;
        long v2_87 = new com.google.android.gms.internal.measurement.zzfr[v1_77.size()];
        boolean v4_37 = v1_77.keySet().iterator();
        Boolean v5_30 = 0;
        while (v4_37.hasNext()) {
            boolean v6_27 = ((Integer) v4_37.next()).intValue();
            if (!v11_12.contains(Integer.valueOf(v6_27))) {
                android.support.v4.util.ArrayMap v9_8 = v95_0;
                Integer v8_36 = ((com.google.android.gms.internal.measurement.zzfr) v9_8.get(Integer.valueOf(v6_27)));
                if (v8_36 == null) {
                    v8_36 = new com.google.android.gms.internal.measurement.zzfr();
                }
                com.google.android.gms.measurement.internal.zzt v99;
                long[] v102_0;
                android.support.v4.util.ArrayMap v14_0;
                com.google.android.gms.internal.measurement.zzfy v101_0;
                int v15_6;
                int v98;
                Boolean v10_11 = (v5_30 + 1);
                v2_87[v5_30] = v8_36;
                v8_36.zzave = Integer.valueOf(v6_27);
                v8_36.zzawt = new com.google.android.gms.internal.measurement.zzfx();
                v8_36.zzawt.zzayo = com.google.android.gms.measurement.internal.zzfu.zza(((java.util.BitSet) v1_77.get(Integer.valueOf(v6_27))));
                boolean v13_4 = v94_0;
                v8_36.zzawt.zzayn = com.google.android.gms.measurement.internal.zzfu.zza(((java.util.BitSet) v13_4.get(Integer.valueOf(v6_27))));
                if (!v23) {
                    v98 = v1_77;
                    v99 = v4_37;
                    v101_0 = v9_8;
                    v102_0 = v10_11;
                    v15_6 = v90_0;
                    v14_0 = v91_0;
                } else {
                    long[] v12_19;
                    v14_0 = v91_0;
                    v8_36.zzawt.zzayp = com.google.android.gms.measurement.internal.zzm.zzb(((java.util.Map) v14_0.get(Integer.valueOf(v6_27))));
                    Boolean v5_14 = v8_36.zzawt;
                    v15_6 = v90_0;
                    long[] v12_18 = ((java.util.Map) v15_6.get(Integer.valueOf(v6_27)));
                    if (v12_18 != null) {
                        v98 = v1_77;
                        int v1_65 = new com.google.android.gms.internal.measurement.zzfy[v12_18.size()];
                        v99 = v4_37;
                        boolean v4_20 = v12_18.keySet().iterator();
                        int v16_4 = 0;
                        while (v4_20.hasNext()) {
                            long[] v102_1;
                            android.support.v4.util.ArrayMap v100 = v4_20;
                            boolean v4_22 = ((Integer) v4_20.next());
                            com.google.android.gms.internal.measurement.zzfy v101_1 = v9_8;
                            android.support.v4.util.ArrayMap v9_7 = new com.google.android.gms.internal.measurement.zzfy();
                            v9_7.zzawx = v4_22;
                            boolean v4_24 = ((java.util.List) v12_18.get(v4_22));
                            if (!v4_24) {
                                v102_1 = v10_11;
                            } else {
                                java.util.Collections.sort(v4_24);
                                v102_1 = v10_11;
                                Boolean v10_10 = new long[v4_24.size()];
                                boolean v4_25 = v4_24.iterator();
                                String v17_4 = 0;
                                while (v4_25.hasNext()) {
                                    java.util.BitSet v103 = v4_25;
                                    String v18_4 = (v17_4 + 1);
                                    v10_10[v17_4] = ((Long) v4_25.next()).longValue();
                                    v17_4 = v18_4;
                                    v4_25 = v103;
                                }
                                v9_7.zzays = v10_10;
                            }
                            boolean v4_26 = (v16_4 + 1);
                            v1_65[v16_4] = v9_7;
                            v16_4 = v4_26;
                            v4_20 = v100;
                            v9_8 = v101_1;
                            v10_11 = v102_1;
                        }
                        v101_0 = v9_8;
                        v102_0 = v10_11;
                        v12_19 = v1_65;
                    } else {
                        v98 = v1_77;
                        v12_19 = new com.google.android.gms.internal.measurement.zzfy[0];
                        v99 = v4_37;
                        v101_0 = v9_8;
                        v102_0 = v10_11;
                    }
                    v5_14.zzayq = v12_19;
                }
                int v1_71 = this.zzjt();
                boolean v4_29 = v8_36.zzawt;
                v1_71.zzcl();
                v1_71.zzaf();
                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p105);
                com.google.android.gms.common.internal.Preconditions.checkNotNull(v4_29);
                try {
                    Boolean v5_25 = new byte[v4_29.zzvx()];
                    try {
                        Integer v8_11 = com.google.android.gms.internal.measurement.zzya.zzk(v5_25, 0, v5_25.length);
                        v4_29.zza(v8_11);
                        v8_11.zzza();
                        boolean v4_31 = new android.content.ContentValues();
                        v4_31.put("app_id", v3_29);
                        v4_31.put("audience_id", Integer.valueOf(v6_27));
                        v4_31.put("current_results", v5_25);
                        try {
                            try {
                                if (v1_71.getWritableDatabase().insertWithOnConflict("audience_filter_values", 0, v4_31, 5) != -1) {
                                    v94_0 = v13_4;
                                    v91_0 = v14_0;
                                    v90_0 = v15_6;
                                    v1_77 = v98;
                                    v4_37 = v99;
                                    v95_0 = v101_0;
                                    v5_30 = v102_0;
                                } else {
                                    v1_71.zzgt().zzjg().zzg("Failed to insert filter results (got -1). appId", com.google.android.gms.measurement.internal.zzas.zzbw(p105));
                                }
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v1_71.zzgt().zzjg().zze("Error storing filter results. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p105), v0_1);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                        }
                    } catch (android.database.sqlite.SQLiteException v0_0) {
                        v1_71.zzgt().zzjg().zze("Configuration loss. Failed to serialize filter results. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p105), v0_0);
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                }
            }
        }
        return ((com.google.android.gms.internal.measurement.zzfr[]) java.util.Arrays.copyOf(v2_87, v5_30));
    }

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


    private final boolean zzd(String p62, long p63)
    {
        this.zzjt().beginTransaction();
        try {
            String v3_0 = 0;
            com.google.android.gms.measurement.internal.zzac v2_29 = new com.google.android.gms.measurement.internal.zzfo$zza(this, 0);
            Object v4_40 = this.zzjt();
            String v5_81 = this.zzauc;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_29);
            v4_40.zzaf();
            v4_40.zzcl();
            try {
                int v23;
                long v7_0;
                Long v15_3 = v4_40.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        String v3_85;
                        if (v5_81 == -1) {
                            v3_85 = new String[] {0});
                        } else {
                            v3_85 = new String[2];
                            v3_85[0] = 0;
                            v3_85[1] = String.valueOf(v5_81);
                        }
                        long v7_59;
                        if (v5_81 == -1) {
                            v7_59 = "";
                        } else {
                            v7_59 = " and rowid <= ?";
                        }
                        boolean v14_15 = new StringBuilder((String.valueOf(v7_59).length() + 84));
                        v14_15.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_15.append(v7_59);
                        v14_15.append(" order by rowid limit 1;");
                        v3_0 = v15_3.rawQuery(v14_15.toString(), v3_85);
                        if (v3_0.moveToFirst()) {
                            int v13_45 = v3_0.getString(0);
                            v3_0.close();
                            v23 = v3_0;
                            v7_0 = v13_45;
                            v3_0 = 0;
                            try {
                                int v13_12 = new String[2];
                                v13_12[0] = v3_0;
                                v13_12[1] = v7_0;
                                android.database.sqlite.SQLiteDatabase v25 = v15_3;
                                Long v15_2 = v15_3.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_12, 0, 0, "rowid", "2");
                                try {
                                    if (v15_2.moveToFirst()) {
                                        int v13_24 = v15_2.getBlob(0);
                                        int v13_26 = com.google.android.gms.internal.measurement.zzxz.zzj(v13_24, 0, v13_24.length);
                                        boolean v14_10 = new com.google.android.gms.internal.measurement.zzfw();
                                        try {
                                            v14_10.zza(v13_26);
                                        } catch (android.database.sqlite.SQLiteException v0_5) {
                                            String v6_5 = v15_2;
                                            v4_40.zzgt().zzjg().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0), v0_5);
                                            if (v6_5 == null) {
                                                String v3_89;
                                                if (v2_29.zzaui == null) {
                                                    v3_89 = 1;
                                                } else {
                                                    if (!v2_29.zzaui.isEmpty()) {
                                                        v3_89 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_89 != null) {
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 0;
                                                } else {
                                                    String v3_81 = v2_29.zzaug;
                                                    Object v4_4 = new com.google.android.gms.internal.measurement.zzft[v2_29.zzaui.size()];
                                                    v3_81.zzaxi = v4_4;
                                                    Object v4_7 = this.zzada.zzgv().zzau(v3_81.zztt);
                                                    String v5_24 = this.zzada.zzgv().zze(v2_29.zzaug.zztt, com.google.android.gms.measurement.internal.zzai.zzala);
                                                    Boolean v8_16 = 0;
                                                    int v9_9 = 0;
                                                    boolean v10_60 = 0;
                                                    long v12_44 = 0;
                                                    int v13_27 = 0;
                                                    boolean v14_11 = 0;
                                                    while(true) {
                                                        com.google.android.gms.internal.measurement.zzft v26 = v12_44;
                                                        if (v10_60 >= v2_29.zzaui.size()) {
                                                            break;
                                                        }
                                                        com.google.android.gms.measurement.internal.zzac v2_22;
                                                        long v7_35;
                                                        com.google.android.gms.measurement.internal.zzac v27_0;
                                                        String v6_21 = ((com.google.android.gms.internal.measurement.zzft) v2_29.zzaui.get(v10_60));
                                                        if (!this.zzls().zzo(v2_29.zzaug.zztt, v6_21.name)) {
                                                            long v32_0;
                                                            String v45_0;
                                                            v27_0 = v10_60;
                                                            String v28_0 = v13_27;
                                                            long v7_7 = this.zzls().zzp(v2_29.zzaug.zztt, v6_21.name);
                                                            if (v7_7 != 0) {
                                                                if (v6_21.zzaxa == null) {
                                                                    long v12_18 = new com.google.android.gms.internal.measurement.zzfu[0];
                                                                    v6_21.zzaxa = v12_18;
                                                                }
                                                                boolean v11_12 = v6_21.zzaxa;
                                                                long v12_19 = v11_12.length;
                                                                int v13_9 = 0;
                                                                long v16_1 = 0;
                                                                int v17_0 = 0;
                                                                while (v13_9 < v12_19) {
                                                                    long v32_1;
                                                                    boolean v10_50 = v11_12[v13_9];
                                                                    long v30_0 = v11_12;
                                                                    long v31_0 = v12_19;
                                                                    if (!"_c".equals(v10_50.name)) {
                                                                        v32_1 = v3_81;
                                                                        if ("_r".equals(v10_50.name)) {
                                                                            v10_50.zzaxe = Long.valueOf(1);
                                                                            v17_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v32_1 = v3_81;
                                                                        v10_50.zzaxe = Long.valueOf(1);
                                                                        v16_1 = 1;
                                                                    }
                                                                    v13_9++;
                                                                    v11_12 = v30_0;
                                                                    v12_19 = v31_0;
                                                                    v3_81 = v32_1;
                                                                }
                                                                v32_0 = v3_81;
                                                                if ((v16_1 == 0) && (v7_7 != 0)) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as conversion", this.zzada.zzgq().zzbt(v6_21.name));
                                                                    String v3_8 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_21.zzaxa, (v6_21.zzaxa.length + 1)));
                                                                    boolean v10_10 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v10_10.name = "_c";
                                                                    v10_10.zzaxe = Long.valueOf(1);
                                                                    v3_8[(v3_8.length - 1)] = v10_10;
                                                                    v6_21.zzaxa = v3_8;
                                                                }
                                                                if (v17_0 == 0) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as real-time", this.zzada.zzgq().zzbt(v6_21.name));
                                                                    String v3_14 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_21.zzaxa, (v6_21.zzaxa.length + 1)));
                                                                    boolean v10_16 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v10_16.name = "_r";
                                                                    v10_16.zzaxe = Long.valueOf(1);
                                                                    v3_14[(v3_14.length - 1)] = v10_16;
                                                                    v6_21.zzaxa = v3_14;
                                                                }
                                                                long v12_27;
                                                                if (this.zzjt().zza(this.zzly(), v2_29.zzaug.zztt, 0, 0, 0, 0, 1).zzahl <= ((long) this.zzada.zzgv().zzaq(v2_29.zzaug.zztt))) {
                                                                    v12_27 = 1;
                                                                } else {
                                                                    String v3_22 = 0;
                                                                    while (v3_22 < v6_21.zzaxa.length) {
                                                                        if (!"_r".equals(v6_21.zzaxa[v3_22].name)) {
                                                                            v3_22++;
                                                                        } else {
                                                                            boolean v10_25 = new com.google.android.gms.internal.measurement.zzfu[(v6_21.zzaxa.length - 1)];
                                                                            if (v3_22 > null) {
                                                                                System.arraycopy(v6_21.zzaxa, 0, v10_25, 0, v3_22);
                                                                            }
                                                                            if (v3_22 < v10_25.length) {
                                                                                System.arraycopy(v6_21.zzaxa, (v3_22 + 1), v10_25, v3_22, (v10_25.length - v3_22));
                                                                            }
                                                                            v6_21.zzaxa = v10_25;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_27 = v26;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.zzfy.zzct(v6_21.name)) || (v7_7 == 0)) {
                                                                    com.google.android.gms.internal.measurement.zzft v42 = v12_27;
                                                                    v45_0 = v14_11;
                                                                } else {
                                                                    v42 = v12_27;
                                                                    if (this.zzjt().zza(this.zzly(), v2_29.zzaug.zztt, 0, 0, 1, 0, 0).zzahj <= ((long) this.zzada.zzgv().zzb(v2_29.zzaug.zztt, com.google.android.gms.measurement.internal.zzai.zzajh))) {
                                                                    } else {
                                                                        this.zzada.zzgt().zzjj().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_29.zzaug.zztt));
                                                                        String v3_35 = v6_21.zzaxa;
                                                                        boolean v10_29 = v3_35.length;
                                                                        boolean v11_40 = 0;
                                                                        long v12_32 = 0;
                                                                        int v13_18 = 0;
                                                                        while (v11_40 < v10_29) {
                                                                            boolean v10_48 = v3_35[v11_40];
                                                                            if (!"_c".equals(v10_48.name)) {
                                                                                if ("_err".equals(v10_48.name)) {
                                                                                    v12_32 = 1;
                                                                                }
                                                                            } else {
                                                                                v13_18 = v10_48;
                                                                            }
                                                                            v11_40++;
                                                                        }
                                                                        v45_0 = v14_11;
                                                                        if ((v12_32 == 0) || (v13_18 == 0)) {
                                                                            if (v13_18 == 0) {
                                                                                this.zzada.zzgt().zzjg().zzg("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_29.zzaug.zztt));
                                                                            } else {
                                                                                v13_18.name = "_err";
                                                                                v13_18.zzaxe = Long.valueOf(10);
                                                                            }
                                                                        } else {
                                                                            String v3_41 = v6_21.zzaxa;
                                                                            boolean v11_44 = new com.google.android.gms.internal.measurement.zzfu[1];
                                                                            v11_44[0] = v13_18;
                                                                            v6_21.zzaxa = ((com.google.android.gms.internal.measurement.zzfu[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v3_41, v11_44));
                                                                        }
                                                                    }
                                                                }
                                                                v26 = v42;
                                                            } else {
                                                                boolean v11_6;
                                                                this.zzjr();
                                                                boolean v11_4 = v6_21.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v11_4);
                                                                long v12_14 = v11_4.hashCode();
                                                                if (v12_14 == 94660) {
                                                                    if (!v11_4.equals("_in")) {
                                                                        v11_6 = -1;
                                                                    } else {
                                                                        v11_6 = 0;
                                                                    }
                                                                } else {
                                                                    if (v12_14 == 95025) {
                                                                        if (!v11_4.equals("_ug")) {
                                                                        } else {
                                                                            v11_6 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v12_14 == 95027) {
                                                                            if (!v11_4.equals("_ui")) {
                                                                            } else {
                                                                                v11_6 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                boolean v11_9;
                                                                switch (v11_6) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v11_9 = 1;
                                                                    default:
                                                                        v11_9 = 0;
                                                                }
                                                                if (!v11_9) {
                                                                    v32_0 = v3_81;
                                                                    v45_0 = v14_11;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzada.zzgv().zzbd(v2_29.zzaug.zztt)) || (v7_7 == 0)) {
                                                            } else {
                                                                String v3_47 = v6_21.zzaxa;
                                                                long v7_8 = 0;
                                                                boolean v10_36 = -1;
                                                                boolean v11_45 = -1;
                                                                while (v7_8 < v3_47.length) {
                                                                    if (!"value".equals(v3_47[v7_8].name)) {
                                                                        if ("currency".equals(v3_47[v7_8].name)) {
                                                                            v11_45 = v7_8;
                                                                        }
                                                                    } else {
                                                                        v10_36 = v7_8;
                                                                    }
                                                                    v7_8++;
                                                                }
                                                                if (v10_36 == -1) {
                                                                } else {
                                                                    if ((v3_47[v10_36].zzaxe != null) || (v3_47[v10_36].zzaun != null)) {
                                                                        long v7_17;
                                                                        if (v11_45 != -1) {
                                                                            long v7_16 = v3_47[v11_45].zzaml;
                                                                            if (v7_16 == 0) {
                                                                            } else {
                                                                                if (v7_16.length() == 3) {
                                                                                    boolean v11_47 = 0;
                                                                                    while (v11_47 < v7_16.length()) {
                                                                                        int v13_20 = v7_16.codePointAt(v11_47);
                                                                                        if (Character.isLetter(v13_20)) {
                                                                                            v11_47 += Character.charCount(v13_20);
                                                                                        } else {
                                                                                        }
                                                                                    }
                                                                                    v7_17 = 0;
                                                                                    if (v7_17 != 0) {
                                                                                        this.zzada.zzgt().zzjl().zzby("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                        v3_47 = com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(v3_47, v10_36), "_c"), 19, "currency");
                                                                                    }
                                                                                    v6_21.zzaxa = v3_47;
                                                                                    int v47;
                                                                                    if (!this.zzada.zzgv().zze(v2_29.zzaug.zztt, com.google.android.gms.measurement.internal.zzai.zzakz)) {
                                                                                        v47 = v2_29;
                                                                                    } else {
                                                                                        if (!"_e".equals(v6_21.name)) {
                                                                                            if (!"_vs".equals(v6_21.name)) {
                                                                                            } else {
                                                                                                this.zzjr();
                                                                                                if (com.google.android.gms.measurement.internal.zzfu.zza(v6_21, "_et") != null) {
                                                                                                } else {
                                                                                                    if (v8_16 == null) {
                                                                                                        v47 = v2_29;
                                                                                                    } else {
                                                                                                        v47 = v2_29;
                                                                                                        if ((Math.abs((v8_16.zzaxb.longValue() - v6_21.zzaxb.longValue())) <= 1000) && (this.zza(v8_16, v6_21))) {
                                                                                                            v8_16 = 0;
                                                                                                            v9_9 = 0;
                                                                                                            if ((v4_7 == null) || ((v5_24 != null) || (!"_e".equals(v6_21.name)))) {
                                                                                                                v7_35 = v47;
                                                                                                                v2_22 = v32_0;
                                                                                                                v14_11 = v45_0;
                                                                                                            } else {
                                                                                                                if (v6_21.zzaxa != null) {
                                                                                                                    if (v6_21.zzaxa.length != 0) {
                                                                                                                        this.zzjr();
                                                                                                                        com.google.android.gms.measurement.internal.zzac v2_20 = ((Long) com.google.android.gms.measurement.internal.zzfu.zzb(v6_21, "_et"));
                                                                                                                        if (v2_20 != null) {
                                                                                                                            v7_35 = v47;
                                                                                                                            v14_11 = (v45_0 + v2_20.longValue());
                                                                                                                            v2_22 = v32_0;
                                                                                                                            v13_27 = (v28_0 + 1);
                                                                                                                            v2_22.zzaxi[v28_0] = v6_21;
                                                                                                                            v10_60 = (v27_0 + 1);
                                                                                                                            v3_81 = v2_22;
                                                                                                                            v2_29 = v7_35;
                                                                                                                            v12_44 = v26;
                                                                                                                        } else {
                                                                                                                            v7_35 = v47;
                                                                                                                            this.zzada.zzgt().zzjj().zzg("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_35.zzaug.zztt));
                                                                                                                        }
                                                                                                                    } else {
                                                                                                                    }
                                                                                                                }
                                                                                                                v7_35 = v47;
                                                                                                                this.zzada.zzgt().zzjj().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_35.zzaug.zztt));
                                                                                                            }
                                                                                                        }
                                                                                                    }
                                                                                                    v9_9 = v6_21;
                                                                                                }
                                                                                            }
                                                                                        } else {
                                                                                            this.zzjr();
                                                                                            if (com.google.android.gms.measurement.internal.zzfu.zza(v6_21, "_fr") != null) {
                                                                                            } else {
                                                                                                if ((v9_9 == 0) || ((Math.abs((v9_9.zzaxb.longValue() - v6_21.zzaxb.longValue())) > 1000) || (!this.zza(v6_21, v9_9)))) {
                                                                                                    v47 = v2_29;
                                                                                                    v8_16 = v6_21;
                                                                                                } else {
                                                                                                    v47 = v2_29;
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v7_17 = 1;
                                                                        } else {
                                                                            v7_17 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzada.zzgt().zzjl().zzby("Value must be specified with a numeric type.");
                                                                        v3_47 = com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(v3_47, v10_36), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            long v7_44;
                                                            v27_0 = v10_60;
                                                            String v28_1 = v13_27;
                                                            this.zzada.zzgt().zzjj().zze("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_29.zzaug.zztt), this.zzada.zzgq().zzbt(v6_21.name));
                                                            if (this.zzls().zzcl(v2_29.zzaug.zztt)) {
                                                                v7_44 = 1;
                                                            } else {
                                                                if (!this.zzls().zzcm(v2_29.zzaug.zztt)) {
                                                                    v7_44 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v7_44 == 0) && (!"_err".equals(v6_21.name))) {
                                                                this.zzada.zzgr().zza(v2_29.zzaug.zztt, 11, "_ev", v6_21.name, 0);
                                                            }
                                                            v7_35 = v2_29;
                                                            v2_22 = v3_81;
                                                            v13_27 = v28_1;
                                                        }
                                                    }
                                                    boolean v14_5;
                                                    int v13_5;
                                                    long v7_3 = v2_29;
                                                    com.google.android.gms.measurement.internal.zzac v2_9 = v3_81;
                                                    String v28_2 = v13_27;
                                                    String v45_2 = v14_11;
                                                    if (v5_24 == null) {
                                                        v13_5 = v28_2;
                                                        v14_5 = v45_2;
                                                    } else {
                                                        v13_5 = v28_2;
                                                        v14_5 = v45_2;
                                                        String v3_2 = 0;
                                                        while (v3_2 < v13_5) {
                                                            String v5_5 = v2_9.zzaxi[v3_2];
                                                            if (!"_e".equals(v5_5.name)) {
                                                                if (v4_7 != null) {
                                                                    this.zzjr();
                                                                    String v5_6 = com.google.android.gms.measurement.internal.zzfu.zza(v5_5, "_et");
                                                                    if (v5_6 != null) {
                                                                        String v5_7 = v5_6.zzaxe;
                                                                        if ((v5_7 != null) && (v5_7.longValue() > 0)) {
                                                                            v14_5 += v5_7.longValue();
                                                                        }
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzjr();
                                                                if (com.google.android.gms.measurement.internal.zzfu.zza(v5_5, "_fr") == null) {
                                                                } else {
                                                                    System.arraycopy(v2_9.zzaxi, (v3_2 + 1), v2_9.zzaxi, v3_2, ((v13_5 - v3_2) - 1));
                                                                    v13_5--;
                                                                    v3_2--;
                                                                }
                                                            }
                                                            v3_2++;
                                                        }
                                                    }
                                                    if (v13_5 < v7_3.zzaui.size()) {
                                                        v2_9.zzaxi = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v2_9.zzaxi, v13_5));
                                                    }
                                                    if (v4_7 != null) {
                                                        String v3_99;
                                                        String v3_96 = this.zzjt().zzi(v2_9.zztt, "_lte");
                                                        if (v3_96 == null) {
                                                            v3_99 = new com.google.android.gms.measurement.internal.zzfx;
                                                            v3_99(v2_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf(v14_5));
                                                        } else {
                                                            if (v3_96.value != null) {
                                                                Object v4_10 = new com.google.android.gms.measurement.internal.zzfx;
                                                                v4_10(v2_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf((((Long) v3_96.value).longValue() + v14_5)));
                                                                v3_99 = v4_10;
                                                            } else {
                                                            }
                                                        }
                                                        Object v4_13 = new com.google.android.gms.internal.measurement.zzfz();
                                                        v4_13.name = "_lte";
                                                        v4_13.zzayu = Long.valueOf(this.zzada.zzbx().currentTimeMillis());
                                                        v4_13.zzaxe = ((Long) v3_99.value);
                                                        String v5_36 = 0;
                                                        while (v5_36 < v2_9.zzaxj.length) {
                                                            if (!"_lte".equals(v2_9.zzaxj[v5_36].name)) {
                                                                v5_36++;
                                                            } else {
                                                                v2_9.zzaxj[v5_36] = v4_13;
                                                                String v5_37 = 1;
                                                            }
                                                            if (v5_37 == null) {
                                                                v2_9.zzaxj = ((com.google.android.gms.internal.measurement.zzfz[]) java.util.Arrays.copyOf(v2_9.zzaxj, (v2_9.zzaxj.length + 1)));
                                                                v2_9.zzaxj[(v7_3.zzaug.zzaxj.length - 1)] = v4_13;
                                                            }
                                                            if (v14_5 > 0) {
                                                                this.zzjt().zza(v3_99);
                                                                this.zzada.zzgt().zzjn().zzg("Updated lifetime engagement user property with value. Value", v3_99.value);
                                                            }
                                                        }
                                                        v5_37 = 0;
                                                    }
                                                    long v57_1;
                                                    String v3_101 = v2_9.zztt;
                                                    Object v4_19 = v2_9.zzaxj;
                                                    String v5_43 = v2_9.zzaxi;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_101);
                                                    v2_9.zzaya = this.zzjs().zza(v3_101, v5_43, v4_19);
                                                    if (!this.zzada.zzgv().zzat(v7_3.zzaug.zztt)) {
                                                        v57_1 = v7_3;
                                                    } else {
                                                        String v3_107 = new java.util.HashMap();
                                                        Object v4_24 = new com.google.android.gms.internal.measurement.zzft[v2_9.zzaxi.length];
                                                        String v5_3 = this.zzada.zzgr().zzmk();
                                                        String v6_11 = v2_9.zzaxi;
                                                        Boolean v8_10 = v6_11.length;
                                                        int v9_4 = 0;
                                                        boolean v10_0 = 0;
                                                        while (v9_4 < v8_10) {
                                                            long v49;
                                                            int v50;
                                                            long v57_0;
                                                            boolean v48;
                                                            int v55;
                                                            com.google.android.gms.measurement.internal.zzbq v51;
                                                            boolean v11_58 = v6_11[v9_4];
                                                            if (!v11_58.name.equals("_ep")) {
                                                                long v52;
                                                                com.google.android.gms.measurement.internal.zzac v2_47;
                                                                v48 = v6_11;
                                                                long v12_56 = this.zzls().zzck(v7_3.zzaug.zztt);
                                                                this.zzada.zzgr();
                                                                boolean v14_21 = com.google.android.gms.measurement.internal.zzfy.zzc(v11_58.zzaxb.longValue(), v12_56);
                                                                v51 = v2_9;
                                                                v49 = v8_10;
                                                                v50 = v9_4;
                                                                com.google.android.gms.measurement.internal.zzac v2_45 = Long.valueOf(1);
                                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                                    v52 = v12_56;
                                                                    v2_47 = 0;
                                                                } else {
                                                                    if (v2_45 != null) {
                                                                        Boolean v8_30 = v11_58.zzaxa;
                                                                        int v9_12 = v8_30.length;
                                                                        v52 = v12_56;
                                                                        long v12_57 = 0;
                                                                        while (v12_57 < v9_12) {
                                                                            int v13_49 = v8_30[v12_57];
                                                                            if (!"_dbg".equals(v13_49.name)) {
                                                                                v12_57++;
                                                                            } else {
                                                                                if (((!(v2_45 instanceof Long)) || (!v2_45.equals(v13_49.zzaxe))) && (((!(v2_45 instanceof String)) || (!v2_45.equals(v13_49.zzaml))) && ((!(v2_45 instanceof Double)) || (!v2_45.equals(v13_49.zzaun))))) {
                                                                                    break;
                                                                                }
                                                                                v2_47 = 1;
                                                                            }
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                long v12_58;
                                                                if (v2_47 != null) {
                                                                    v12_58 = 1;
                                                                } else {
                                                                    v12_58 = this.zzls().zzq(v7_3.zzaug.zztt, v11_58.name);
                                                                }
                                                                if (v12_58 > 0) {
                                                                    com.google.android.gms.measurement.internal.zzac v2_1 = ((com.google.android.gms.measurement.internal.zzac) v3_107.get(v11_58.name));
                                                                    if (v2_1 == null) {
                                                                        v2_1 = this.zzjt().zzg(v7_3.zzaug.zztt, v11_58.name);
                                                                        if (v2_1 == null) {
                                                                            this.zzada.zzgt().zzjj().zze("Event being bundled has no eventAggregate. appId, eventName", v7_3.zzaug.zztt, v11_58.name);
                                                                            v2_1 = new com.google.android.gms.measurement.internal.zzac;
                                                                            v2_1(v7_3.zzaug.zztt, v11_58.name, 1, 1, v11_58.zzaxb.longValue(), 0, 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    Boolean v8_38;
                                                                    this.zzjr();
                                                                    String v6_103 = ((Long) com.google.android.gms.measurement.internal.zzfu.zzb(v11_58, "_eid"));
                                                                    if (v6_103 == null) {
                                                                        v8_38 = 0;
                                                                    } else {
                                                                        v8_38 = 1;
                                                                    }
                                                                    Boolean v8_39 = Boolean.valueOf(v8_38);
                                                                    if (v12_58 != 1) {
                                                                        if (v5_3.nextInt(v12_58) != 0) {
                                                                            boolean v59;
                                                                            String v5_87;
                                                                            String v56;
                                                                            Boolean v58;
                                                                            v55 = v5_3;
                                                                            if (!this.zzada.zzgv().zzbf(v7_3.zzaug.zztt)) {
                                                                                v56 = v6_103;
                                                                                v57_0 = v7_3;
                                                                                v58 = v8_39;
                                                                                v59 = v14_21;
                                                                                if (Math.abs((v11_58.zzaxb.longValue() - v2_1.zzahy)) < 86400000) {
                                                                                    v5_87 = 0;
                                                                                } else {
                                                                                    v5_87 = 1;
                                                                                }
                                                                            } else {
                                                                                long v16_7;
                                                                                if (v2_1.zzahz == null) {
                                                                                    this.zzada.zzgr();
                                                                                    v56 = v6_103;
                                                                                    v57_0 = v7_3;
                                                                                    v58 = v8_39;
                                                                                    v16_7 = com.google.android.gms.measurement.internal.zzfy.zzc(v11_58.zzaxc.longValue(), v52);
                                                                                } else {
                                                                                    v16_7 = v2_1.zzahz.longValue();
                                                                                    v56 = v6_103;
                                                                                    v57_0 = v7_3;
                                                                                    v58 = v8_39;
                                                                                }
                                                                                if (v16_7 == v14_21) {
                                                                                    v5_87 = 0;
                                                                                } else {
                                                                                    v5_87 = 1;
                                                                                }
                                                                                v59 = v14_21;
                                                                            }
                                                                            if (v5_87 == null) {
                                                                                if (!v58.booleanValue()) {
                                                                                    v9_4 = (v50 + 1);
                                                                                    v6_11 = v48;
                                                                                    v8_10 = v49;
                                                                                    v2_9 = v51;
                                                                                    v5_3 = v55;
                                                                                    v7_3 = v57_0;
                                                                                } else {
                                                                                    v3_107.put(v11_58.name, v2_1.zza(v56, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.zzjr();
                                                                                v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_efs", Long.valueOf(1));
                                                                                this.zzjr();
                                                                                long v12_59 = ((long) v12_58);
                                                                                v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_sr", Long.valueOf(v12_59));
                                                                                String v5_100 = (v10_0 + 1);
                                                                                v4_24[v10_0] = v11_58;
                                                                                if (v58.booleanValue()) {
                                                                                    v2_1 = v2_1.zza(0, Long.valueOf(v12_59), Boolean.valueOf(1));
                                                                                }
                                                                                v3_107.put(v11_58.name, v2_1.zza(v11_58.zzaxb.longValue(), v59));
                                                                                v10_0 = v5_100;
                                                                            }
                                                                        } else {
                                                                            this.zzjr();
                                                                            long v12_0 = ((long) v12_58);
                                                                            v55 = v5_3;
                                                                            v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_sr", Long.valueOf(v12_0));
                                                                            String v5_2 = (v10_0 + 1);
                                                                            v4_24[v10_0] = v11_58;
                                                                            if (v8_39.booleanValue()) {
                                                                                v2_1 = v2_1.zza(0, Long.valueOf(v12_0), 0);
                                                                            }
                                                                            v3_107.put(v11_58.name, v2_1.zza(v11_58.zzaxb.longValue(), v14_21));
                                                                            v10_0 = v5_2;
                                                                        }
                                                                    } else {
                                                                        String v6_6 = (v10_0 + 1);
                                                                        v4_24[v10_0] = v11_58;
                                                                        if ((v8_39.booleanValue()) && ((v2_1.zzaia != null) || ((v2_1.zzaib != null) || (v2_1.zzaic != null)))) {
                                                                            v3_107.put(v11_58.name, v2_1.zza(0, 0, 0));
                                                                        }
                                                                        v55 = v5_3;
                                                                        v10_0 = v6_6;
                                                                    }
                                                                } else {
                                                                    this.zzada.zzgt().zzjj().zze("Sample rate must be positive. event, rate", v11_58.name, Integer.valueOf(v12_58));
                                                                    com.google.android.gms.measurement.internal.zzac v2_8 = (v10_0 + 1);
                                                                    v4_24[v10_0] = v11_58;
                                                                    v10_0 = v2_8;
                                                                    v55 = v5_3;
                                                                }
                                                                v57_0 = v7_3;
                                                            } else {
                                                                this.zzjr();
                                                                long v12_3 = ((String) com.google.android.gms.measurement.internal.zzfu.zzb(v11_58, "_en"));
                                                                int v13_1 = ((com.google.android.gms.measurement.internal.zzac) v3_107.get(v12_3));
                                                                if (v13_1 == 0) {
                                                                    v13_1 = this.zzjt().zzg(v7_3.zzaug.zztt, v12_3);
                                                                    v3_107.put(v12_3, v13_1);
                                                                }
                                                                if (v13_1.zzaia != null) {
                                                                    v48 = v6_11;
                                                                    v51 = v2_9;
                                                                    v55 = v5_3;
                                                                } else {
                                                                    if (v13_1.zzaib.longValue() > 1) {
                                                                        this.zzjr();
                                                                        v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_sr", v13_1.zzaib);
                                                                    }
                                                                    if ((v13_1.zzaic == null) || (!v13_1.zzaic.booleanValue())) {
                                                                        v48 = v6_11;
                                                                    } else {
                                                                        this.zzjr();
                                                                        v48 = v6_11;
                                                                        v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_efs", Long.valueOf(1));
                                                                    }
                                                                    String v6_10 = (v10_0 + 1);
                                                                    v4_24[v10_0] = v11_58;
                                                                    v51 = v2_9;
                                                                    v55 = v5_3;
                                                                    v10_0 = v6_10;
                                                                }
                                                                v57_0 = v7_3;
                                                                v49 = v8_10;
                                                                v50 = v9_4;
                                                            }
                                                        }
                                                        v57_1 = v7_3;
                                                        if (v10_0 < v2_9.zzaxi.length) {
                                                            v2_9.zzaxi = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v4_24, v10_0));
                                                        }
                                                        String v3_109 = v3_107.entrySet().iterator();
                                                        while (v3_109.hasNext()) {
                                                            this.zzjt().zza(((com.google.android.gms.measurement.internal.zzac) ((java.util.Map$Entry) v3_109.next()).getValue()));
                                                        }
                                                    }
                                                    v2_9.zzaxl = Long.valueOf(nan);
                                                    v2_9.zzaxm = Long.valueOf(-0.0);
                                                    String v3_114 = 0;
                                                    while (v3_114 < v2_9.zzaxi.length) {
                                                        Object v4_34 = v2_9.zzaxi[v3_114];
                                                        if (v4_34.zzaxb.longValue() < v2_9.zzaxl.longValue()) {
                                                            v2_9.zzaxl = v4_34.zzaxb;
                                                        }
                                                        if (v4_34.zzaxb.longValue() > v2_9.zzaxm.longValue()) {
                                                            v2_9.zzaxm = v4_34.zzaxb;
                                                        }
                                                        v3_114++;
                                                    }
                                                    String v3_115 = v57_1;
                                                    Object v4_31 = v3_115.zzaug.zztt;
                                                    String v5_49 = this.zzjt().zzbm(v4_31);
                                                    if (v5_49 != null) {
                                                        if (v2_9.zzaxi.length > 0) {
                                                            Boolean v8_24;
                                                            String v6_58 = v5_49.zzhe();
                                                            if (v6_58 == 0) {
                                                                v8_24 = 0;
                                                            } else {
                                                                v8_24 = Long.valueOf(v6_58);
                                                            }
                                                            v2_9.zzaxo = v8_24;
                                                            Boolean v8_25 = v5_49.zzhd();
                                                            if (v8_25 != 0) {
                                                                v6_58 = v8_25;
                                                            } else {
                                                            }
                                                            String v6_59;
                                                            if (v6_58 == 0) {
                                                                v6_59 = 0;
                                                            } else {
                                                                v6_59 = Long.valueOf(v6_58);
                                                            }
                                                            v2_9.zzaxn = v6_59;
                                                            v5_49.zzhm();
                                                            v2_9.zzaxy = Integer.valueOf(((int) v5_49.zzhj()));
                                                            v5_49.zzo(v2_9.zzaxl.longValue());
                                                            v5_49.zzp(v2_9.zzaxm.longValue());
                                                            v2_9.zzagm = v5_49.zzhu();
                                                            this.zzjt().zza(v5_49);
                                                        }
                                                    } else {
                                                        this.zzada.zzgt().zzjg().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_115.zzaug.zztt));
                                                    }
                                                    if (v2_9.zzaxi.length > 0) {
                                                        this.zzada.zzgw();
                                                        String v5_57 = this.zzls().zzcg(v3_115.zzaug.zztt);
                                                        if (v5_57 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v3_115.zzaug.zzafi)) {
                                                                this.zzada.zzgt().zzjj().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_115.zzaug.zztt));
                                                            } else {
                                                                v2_9.zzayf = Long.valueOf(-1);
                                                            }
                                                        } else {
                                                            if (v5_57.zzawk != null) {
                                                                v2_9.zzayf = v5_57.zzawk;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzjt().zza(v2_9, v26);
                                                    }
                                                    com.google.android.gms.measurement.internal.zzac v2_36 = this.zzjt();
                                                    String v3_116 = v3_115.zzauh;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_116);
                                                    v2_36.zzaf();
                                                    v2_36.zzcl();
                                                    String v5_69 = new StringBuilder("rowid in (");
                                                    String v6_75 = 0;
                                                    while (v6_75 < v3_116.size()) {
                                                        if (v6_75 != null) {
                                                            v5_69.append(",");
                                                        }
                                                        v5_69.append(((Long) v3_116.get(v6_75)).longValue());
                                                        v6_75++;
                                                    }
                                                    v5_69.append(")");
                                                    String v5_71 = v2_36.getWritableDatabase().delete("raw_events", v5_69.toString(), 0);
                                                    if (v5_71 != v3_116.size()) {
                                                        v2_36.zzgt().zzjg().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_71), Integer.valueOf(v3_116.size()));
                                                    }
                                                    com.google.android.gms.measurement.internal.zzac v2_39 = this.zzjt();
                                                    String v3_119 = v2_39.getWritableDatabase();
                                                    try {
                                                        String v6_81 = new String[2];
                                                        v6_81[0] = v4_31;
                                                        v6_81[1] = v4_31;
                                                        v3_119.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_81);
                                                    } catch (android.database.sqlite.SQLiteException v0_11) {
                                                        v2_39.zzgt().zzjg().zze("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v4_31), v0_11);
                                                    }
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v6_5.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                        }
                                        if (v15_2.moveToNext()) {
                                            v4_40.zzgt().zzjj().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0));
                                        }
                                        long v16_5;
                                        int v17_4;
                                        v15_2.close();
                                        v2_29.zzb(v14_10);
                                        if (v5_81 == -1) {
                                            boolean v10_63 = new String[2];
                                            v10_63[0] = v3_0;
                                            v10_63[1] = v7_0;
                                            v16_5 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_4 = v10_63;
                                        } else {
                                            int v13_37 = new String[3];
                                            v13_37[0] = v3_0;
                                            v13_37[1] = v7_0;
                                            v13_37[2] = String.valueOf(v5_81);
                                            v16_5 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_4 = v13_37;
                                        }
                                        v6_5 = v15_2;
                                        String v5_17 = v25.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_5, v17_4, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_17.moveToFirst()) {
                                                v4_40.zzgt().zzjj().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0));
                                                if (v5_17 == null) {
                                                } else {
                                                    v5_17.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_9) {
                                            com.google.android.gms.measurement.internal.zzac v2_7 = v0_9;
                                            v6_5 = v5_17;
                                            if (v6_5 != null) {
                                                v6_5.close();
                                            }
                                            throw v2_7;
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            v7_0 = v3_0;
                                            v6_5 = v5_17;
                                            String v3_1 = v0_2;
                                            v4_40.zzgt().zzjg().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_0), v3_1);
                                            if (v6_5 == null) {
                                            } else {
                                                v6_5.close();
                                            }
                                        }
                                        do {
                                            String v6_28 = v5_17.getLong(0);
                                            long v12_48 = v5_17.getBlob(3);
                                            boolean v10_68 = com.google.android.gms.internal.measurement.zzxz.zzj(v12_48, 0, v12_48.length);
                                            long v12_50 = new com.google.android.gms.internal.measurement.zzft();
                                            v12_50.zza(v10_68);
                                            v12_50.name = v5_17.getString(1);
                                            v12_50.zzaxb = Long.valueOf(v5_17.getLong(2));
                                            if (v2_29.zza(v6_28, v12_50)) {
                                            } else {
                                                if (v5_17 == null) {
                                                } else {
                                                    v5_17.close();
                                                }
                                            }
                                        } while(v5_17.moveToNext());
                                        if (v5_17 == null) {
                                        } else {
                                            v5_17.close();
                                        }
                                    } else {
                                        v4_40.zzgt().zzjg().zzg("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0));
                                        if (v15_2 == null) {
                                        } else {
                                            v15_2.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_7) {
                                    v6_5 = v15_2;
                                    v2_7 = v0_7;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v6_5 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_10) {
                                    v2_7 = v0_10;
                                    v6_5 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v7_0 = v3_0;
                                    v6_5 = v15_2;
                                }
                                v7_0 = v3_0;
                            } catch (android.database.sqlite.SQLiteException v0_4) {
                                v2_7 = v0_4;
                                v6_5 = v23;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v7_0 = v3_0;
                                v6_5 = v23;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                                v3_0.close();
                            }
                        }
                    } else {
                        try {
                            int v13_47;
                            if (v5_81 == -1) {
                                v13_47 = new String[1];
                                v13_47[0] = String.valueOf(p63);
                            } else {
                                v13_47 = new String[2];
                                v13_47[0] = String.valueOf(v5_81);
                                v13_47[1] = String.valueOf(p63);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                            v6_5 = 0;
                            v7_0 = 0;
                        }
                        boolean v14_22;
                        if (v5_81 == -1) {
                            v14_22 = "";
                        } else {
                            v14_22 = "rowid <= ? and ";
                        }
                        String v3_122 = new StringBuilder((String.valueOf(v14_22).length() + 148));
                        v3_122.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_122.append(v14_22);
                        v3_122.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_3.rawQuery(v3_122.toString(), v13_47);
                        if (v3_0.moveToFirst()) {
                            long v7_2 = v3_0.getString(0);
                            try {
                                int v13_4 = v3_0.getString(1);
                                v3_0.close();
                                v23 = v3_0;
                                v3_0 = v7_2;
                                v7_0 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v6_5 = v3_0;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                                v3_0.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_3) {
                    v2_7 = v0_3;
                    v6_5 = v3_0;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v6_5 = v3_0;
                    v7_0 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v2_7 = v0_1;
                v6_5 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v3_1 = v0_0;
                v6_5 = 0;
                v7_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
            }
        } catch (android.database.sqlite.SQLiteException v0_6) {
            com.google.android.gms.measurement.internal.zzac v2_30 = v0_6;
            this.zzjt().endTransaction();
            throw v2_30;
        }
    }

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


    private final void zzd(com.google.android.gms.measurement.internal.zzag p25, com.google.android.gms.measurement.internal.zzk p26)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p26);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p26.packageName);
        Long v4_16 = System.nanoTime();
        void v24_1 = this.zzaf();
        v24_1.zzlx();
        int v15_0 = p26.packageName;
        if (v24_1.zzjr().zze(p25, p26)) {
            if (p26.zzafr) {
                if (!v24_1.zzls().zzo(v15_0, p25.name)) {
                    if (this.zzada.zzgt().isLoggable(2)) {
                        this.zzada.zzgt().zzjo().zzg("Logging event", this.zzada.zzgq().zzb(p25));
                    }
                    v24_1.zzjt().beginTransaction();
                    try {
                        this.zzg(p26);
                    } catch (java.io.IOException v0_2) {
                        boolean v2_37 = v0_2;
                        v24_1.zzjt().endTransaction();
                        throw v2_37;
                    }
                    if ("_iap".equals(p25.name)) {
                        long v6_3;
                        com.google.android.gms.internal.measurement.zzfz v7_3;
                        long v6_71 = p25.zzahu.getString("currency");
                        if (!"ecommerce_purchase".equals(p25.name)) {
                            v7_3 = p25.zzahu.getLong("value").longValue();
                            if (android.text.TextUtils.isEmpty(v6_71)) {
                                int v16 = 0;
                            } else {
                                long v6_5 = v6_71.toUpperCase(java.util.Locale.US);
                                if (!v6_5.matches("[A-Z]{3}")) {
                                } else {
                                    long v6_8;
                                    long v9_6 = String.valueOf("_ltv_");
                                    long v6_6 = String.valueOf(v6_5);
                                    if (v6_6.length() == 0) {
                                        v6_8 = new String(v9_6);
                                    } else {
                                        v6_8 = v9_6.concat(v6_6);
                                    }
                                    long v9_7 = v6_8;
                                    long v13_1;
                                    long v6_11 = v24_1.zzjt().zzi(v15_0, v9_7);
                                    if (v6_11 == 0) {
                                        long v6_17 = v24_1.zzjt();
                                        long v10_9 = (this.zzada.zzgv().zzb(v15_0, com.google.android.gms.measurement.internal.zzai.zzajy) - 1);
                                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v15_0);
                                        v6_17.zzaf();
                                        v6_17.zzcl();
                                        try {
                                            long v11_2 = v6_17.getWritableDatabase();
                                            long v13_3 = new String[3];
                                            try {
                                                v13_3[0] = v15_0;
                                                try {
                                                    v13_3[1] = v15_0;
                                                    v13_3[2] = String.valueOf(v10_9);
                                                    v11_2.execSQL("delete from user_attributes where app_id=? and name in (select name from user_attributes where app_id=? and name like \'_ltv_%\' order by set_timestamp desc limit ?,10);", v13_3);
                                                } catch (java.io.IOException v0_0) {
                                                    v6_17.zzgt().zzjg().zze("Error pruning currencies. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v15_0), v0_0);
                                                }
                                                v13_1 = new com.google.android.gms.measurement.internal.zzfx;
                                                v13_1(v15_0, p25.origin, v9_7, this.zzada.zzbx().currentTimeMillis(), Long.valueOf(v7_3));
                                            } catch (java.io.IOException v0_0) {
                                            }
                                        } catch (java.io.IOException v0_0) {
                                        }
                                    } else {
                                        if ((v6_11.value instanceof Long)) {
                                            int v16_0 = new com.google.android.gms.measurement.internal.zzfx;
                                            long v6 = v16_0(v15_0, p25.origin, v9_7, this.zzada.zzbx().currentTimeMillis(), Long.valueOf((((Long) v6_11.value).longValue() + v7_3)));
                                            v13_1 = v16_0;
                                            int v17 = 1;
                                        } else {
                                        }
                                    }
                                    if (!v24_1.zzjt().zza(v13_1)) {
                                        this.zzada.zzgt().zzjg().zzd("Too many unique user properties are set. Ignoring user property. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v15_0), this.zzada.zzgq().zzbv(v13_1.name), v13_1.value);
                                        this.zzada.zzgr().zza(v15_0, 9, 0, 0, 0);
                                    }
                                }
                            }
                            v6_3 = 1;
                        } else {
                            com.google.android.gms.internal.measurement.zzfz v7_117 = (p25.zzahu.zzbr("value").doubleValue() * 1000000.0);
                            if (v7_117 == 0) {
                                v7_117 = (((double) p25.zzahu.getLong("value").longValue()) * 1000000.0);
                            }
                            if ((v7_117 > 9.223372036854776e+18) || (v7_117 < -9.223372036854776e+18)) {
                                this.zzada.zzgt().zzjj().zze("Data lost. Currency value is too big. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v15_0), Double.valueOf(v7_117));
                                v6_3 = 0;
                                v16 = 0;
                            } else {
                                v7_3 = Math.round(v7_117);
                            }
                        }
                        if (v6_3 == 0) {
                            v24_1.zzjt().setTransactionSuccessful();
                            v24_1.zzjt().endTransaction();
                            return;
                        }
                    } else {
                        if (!"ecommerce_purchase".equals(p25.name)) {
                            v16 = 0;
                        } else {
                        }
                    }
                    int v18_1 = com.google.android.gms.measurement.internal.zzfy.zzct(p25.name);
                    int v19_0 = "_err".equals(p25.name);
                    String v21 = v4_16;
                    String v5 = 2;
                    long v6_37 = v24_1.zzjt().zza(v24_1.zzly(), v15_0, 1, v18_1, 0, v19_0, 0);
                    long v11_7 = (v6_37.zzahi - ((long) ((Integer) com.google.android.gms.measurement.internal.zzai.zzaje.get()).intValue()));
                    if (v11_7 <= 0) {
                        if (v18_1 != 0) {
                            int v16_2 = (v6_37.zzahh - ((long) ((Integer) com.google.android.gms.measurement.internal.zzai.zzajg.get()).intValue()));
                            if (v16_2 > 0) {
                                if ((v16_2 % 1000) == 1) {
                                    this.zzada.zzgt().zzjg().zze("Data loss. Too many public events logged. appId, count", com.google.android.gms.measurement.internal.zzas.zzbw(v15_0), Long.valueOf(v6_37.zzahh));
                                }
                                this.zzada.zzgr().zza(v15_0, 16, "_ev", p25.name, 0);
                                v24_1.zzjt().setTransactionSuccessful();
                                v24_1.zzjt().endTransaction();
                                return;
                            }
                        }
                        if (v19_0 != 0) {
                            long v9_19 = (v6_37.zzahk - ((long) Math.max(0, Math.min(1000000, this.zzada.zzgv().zzb(p26.packageName, com.google.android.gms.measurement.internal.zzai.zzajf)))));
                            if (v9_19 > 0) {
                                if (v9_19 == 1) {
                                    this.zzada.zzgt().zzjg().zze("Too many error events logged. appId, count", com.google.android.gms.measurement.internal.zzas.zzbw(v15_0), Long.valueOf(v6_37.zzahk));
                                }
                                v24_1.zzjt().setTransactionSuccessful();
                                v24_1.zzjt().endTransaction();
                                return;
                            }
                        }
                        Long v4_7 = p25.zzahu.zziy();
                        this.zzada.zzgr().zza(v4_7, "_o", p25.origin);
                        if (this.zzada.zzgr().zzcz(v15_0)) {
                            this.zzada.zzgr().zza(v4_7, "_dbg", Long.valueOf(1));
                            this.zzada.zzgr().zza(v4_7, "_r", Long.valueOf(1));
                        }
                        if ((this.zzada.zzgv().zzbh(p26.packageName)) && ("_s".equals(p25.name))) {
                            String v5_23 = v24_1.zzjt().zzi(p26.packageName, "_sno");
                            if ((v5_23 != null) && ((v5_23.value instanceof Long))) {
                                this.zzada.zzgr().zza(v4_7, "_sno", v5_23.value);
                            }
                        }
                        String v5_26 = v24_1.zzjt().zzbn(v15_0);
                        if (v5_26 > 0) {
                            this.zzada.zzgt().zzjj().zze("Data lost. Too many events stored on disk, deleted. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v15_0), Long.valueOf(v5_26));
                        }
                        Long v4_11;
                        String v5_28 = new com.google.android.gms.measurement.internal.zzab;
                        boolean v2_1 = v15_0;
                        v5_28(this.zzada, p25.origin, v15_0, p25.name, p25.zzaig, 0, v4_7);
                        Long v4_10 = v24_1.zzjt().zzg(v2_1, v5_28.name);
                        if (v4_10 != null) {
                            v5_28 = v5_28.zza(this.zzada, v4_10.zzahx);
                            v4_11 = v4_10.zzae(v5_28.timestamp);
                        } else {
                            if ((v24_1.zzjt().zzbq(v2_1) < 500) || (v18_1 == 0)) {
                                v4_11 = new com.google.android.gms.measurement.internal.zzac;
                                v4_11(v2_1, v5_28.name, 0, 0, v5_28.timestamp, 0, 0, 0, 0, 0);
                            } else {
                                this.zzada.zzgt().zzjg().zzd("Too many event names used, ignoring event. appId, name, supported count", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1), this.zzada.zzgq().zzbt(v5_28.name), Integer.valueOf(500));
                                this.zzada.zzgr().zza(v2_1, 8, 0, 0, 0);
                                v24_1.zzjt().endTransaction();
                                return;
                            }
                        }
                        com.google.android.gms.internal.measurement.zzfz v7_38;
                        v24_1.zzjt().zza(v4_11);
                        v24_1 = v24_1.zzaf();
                        v24_1.zzlx();
                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v5_28);
                        com.google.android.gms.common.internal.Preconditions.checkNotNull(p26);
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v5_28.zztt);
                        com.google.android.gms.common.internal.Preconditions.checkArgument(v5_28.zztt.equals(p26.packageName));
                        boolean v2_8 = new com.google.android.gms.internal.measurement.zzfw();
                        Long v4_15 = 1;
                        v2_8.zzaxh = Integer.valueOf(1);
                        v2_8.zzaxp = "android";
                        v2_8.zztt = p26.packageName;
                        v2_8.zzafp = p26.zzafp;
                        v2_8.zzts = p26.zzts;
                        if (p26.zzafo != -2147483648) {
                            v7_38 = Integer.valueOf(((int) p26.zzafo));
                        } else {
                            v7_38 = 0;
                        }
                        com.google.android.gms.internal.measurement.zzfz v7_45;
                        v2_8.zzayb = v7_38;
                        v2_8.zzaxt = Long.valueOf(p26.zzade);
                        v2_8.zzafi = p26.zzafi;
                        v2_8.zzawp = p26.zzafv;
                        if (p26.zzafq != 0) {
                            v7_45 = Long.valueOf(p26.zzafq);
                        } else {
                            v7_45 = 0;
                        }
                        v2_8.zzaxx = v7_45;
                        if (this.zzada.zzgv().zze(p26.packageName, com.google.android.gms.measurement.internal.zzai.zzale)) {
                            v2_8.zzayl = v24_1.zzjr().zzmi();
                        }
                        com.google.android.gms.internal.measurement.zzfz v7_53 = this.zzada.zzgu().zzbz(p26.packageName);
                        if ((v7_53 == null) || (android.text.TextUtils.isEmpty(((CharSequence) v7_53.first)))) {
                            if ((!this.zzada.zzgp().zzl(this.zzada.getContext())) && (p26.zzafu)) {
                                com.google.android.gms.internal.measurement.zzfz v7_62 = android.provider.Settings$Secure.getString(this.zzada.getContext().getContentResolver(), "android_id");
                                if (v7_62 != null) {
                                    if (v7_62.isEmpty()) {
                                        this.zzada.zzgt().zzjj().zzg("empty secure ID. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_8.zztt));
                                    }
                                } else {
                                    this.zzada.zzgt().zzjj().zzg("null secure ID. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_8.zztt));
                                    v7_62 = "null";
                                }
                                v2_8.zzaye = v7_62;
                            }
                        } else {
                            if (p26.zzaft) {
                                v2_8.zzaxv = ((String) v7_53.first);
                                v2_8.zzaxw = ((Boolean) v7_53.second);
                            }
                        }
                        this.zzada.zzgp().zzcl();
                        v2_8.zzaxr = android.os.Build.MODEL;
                        this.zzada.zzgp().zzcl();
                        v2_8.zzaxq = android.os.Build$VERSION.RELEASE;
                        v2_8.zzaxs = Integer.valueOf(((int) this.zzada.zzgp().zziw()));
                        v2_8.zzahr = this.zzada.zzgp().zzix();
                        v2_8.zzaxu = 0;
                        v2_8.zzaxk = 0;
                        v2_8.zzaxl = 0;
                        v2_8.zzaxm = 0;
                        v2_8.zzayg = Long.valueOf(p26.zzafs);
                        if ((this.zzada.isEnabled()) && (com.google.android.gms.measurement.internal.zzq.zzie())) {
                            v2_8.zzayh = 0;
                        }
                        long v6_73 = v24_1.zzjt().zzbm(p26.packageName);
                        if (v6_73 == 0) {
                            v6_73 = new com.google.android.gms.measurement.internal.zzg(this.zzada, p26.packageName);
                            v6_73.zzaj(this.zzada.zzgr().zzmm());
                            v6_73.zzan(p26.zzafk);
                            v6_73.zzak(p26.zzafi);
                            v6_73.zzam(this.zzada.zzgu().zzca(p26.packageName));
                            v6_73.zzt(0);
                            v6_73.zzo(0);
                            v6_73.zzp(0);
                            v6_73.setAppVersion(p26.zzts);
                            v6_73.zzq(p26.zzafo);
                            v6_73.zzao(p26.zzafp);
                            v6_73.zzr(p26.zzade);
                            v6_73.zzs(p26.zzafq);
                            v6_73.setMeasurementEnabled(p26.zzafr);
                            v6_73.zzac(p26.zzafs);
                            v24_1.zzjt().zza(v6_73);
                        }
                        v2_8.zzafh = v6_73.getAppInstanceId();
                        v2_8.zzafk = v6_73.getFirebaseInstanceId();
                        long v3_8 = v24_1.zzjt().zzbl(p26.packageName);
                        long v6_78 = new com.google.android.gms.internal.measurement.zzfz[v3_8.size()];
                        v2_8.zzaxj = v6_78;
                        long v6_79 = 0;
                        while (v6_79 < v3_8.size()) {
                            com.google.android.gms.internal.measurement.zzfz v7_116 = new com.google.android.gms.internal.measurement.zzfz();
                            v2_8.zzaxj[v6_79] = v7_116;
                            v7_116.name = ((com.google.android.gms.measurement.internal.zzfx) v3_8.get(v6_79)).name;
                            v7_116.zzayu = Long.valueOf(((com.google.android.gms.measurement.internal.zzfx) v3_8.get(v6_79)).zzauk);
                            v24_1.zzjr().zza(v7_116, ((com.google.android.gms.measurement.internal.zzfx) v3_8.get(v6_79)).value);
                            v6_79++;
                        }
                        long v6_80 = v24_1.zzjt().zza(v2_8);
                        boolean v2_11 = v24_1.zzjt();
                        if (v5_28.zzahu == null) {
                            v4_15 = 0;
                        } else {
                            long v3_13 = v5_28.zzahu.iterator();
                            while (v3_13.hasNext()) {
                                if ("_r".equals(((String) v3_13.next()))) {
                                }
                            }
                            long v3_15 = v24_1.zzls().zzp(v5_28.zztt, v5_28.name);
                            com.google.android.gms.measurement.internal.zzu vtmp241 = v24_1.zzjt().zza(v24_1.zzly(), v5_28.zztt, 0, 0, 0, 0, 0);
                            if ((v3_15 == 0) || (vtmp241.zzahl >= ((long) this.zzada.zzgv().zzaq(v5_28.zztt)))) {
                            } else {
                            }
                        }
                        if (!v2_11.zza(v5_28, v6_80, v4_15)) {
                            v24_1.zzjt().setTransactionSuccessful();
                            if (this.zzada.zzgt().isLoggable(2)) {
                                this.zzada.zzgt().zzjo().zzg("Event recorded", this.zzada.zzgq().zza(v5_28));
                            }
                            v24_1.zzjt().endTransaction();
                            v24_1.zzmb();
                            this.zzada.zzgt().zzjo().zzg("Background event processing time, ms", Long.valueOf((((System.nanoTime() - v21) + 500000) / 1000000)));
                            return;
                        } else {
                            this.zzatr = 0;
                        }
                    } else {
                        if ((v11_7 % 1000) == 1) {
                            this.zzada.zzgt().zzjg().zze("Data loss. Too many events logged. appId, count", com.google.android.gms.measurement.internal.zzas.zzbw(v15_0), Long.valueOf(v6_37.zzahi));
                        }
                        v24_1.zzjt().setTransactionSuccessful();
                        v24_1.zzjt().endTransaction();
                        return;
                    }
                } else {
                    long v13_9;
                    this.zzada.zzgt().zzjj().zze("Dropping blacklisted event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v15_0), this.zzada.zzgq().zzbt(p25.name));
                    if ((!v24_1.zzls().zzcl(v15_0)) && (!v24_1.zzls().zzcm(v15_0))) {
                        v13_9 = 0;
                    } else {
                        v13_9 = 1;
                    }
                    if ((v13_9 == 0) && (!"_err".equals(p25.name))) {
                        this.zzada.zzgr().zza(v15_0, 11, "_ev", p25.name, 0);
                    }
                    if (v13_9 != 0) {
                        boolean v2_43 = v24_1.zzjt().zzbm(v15_0);
                        if ((v2_43) && (Math.abs((this.zzada.zzbx().currentTimeMillis() - Math.max(v2_43.zzhl(), v2_43.zzhk()))) > ((Long) com.google.android.gms.measurement.internal.zzai.zzajt.get()).longValue())) {
                            this.zzada.zzgt().zzjn().zzby("Fetching config for blacklisted app");
                            this.zzb(v2_43);
                        }
                    }
                    return;
                }
            } else {
                this.zzg(p26);
                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.zzx.zza() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static void zza(com.google.android.gms.measurement.internal.zzas p5, android.database.sqlite.SQLiteDatabase p6, String p7, String p8, String p9, String[] p10)
    {
        if (p5 != null) {
            if (!com.google.android.gms.measurement.internal.zzx.zza(p5, p6, p7)) {
                p6.execSQL(p8);
            }
            if (p5 != null) {
                String v8_10 = com.google.android.gms.measurement.internal.zzx.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_10.remove(v3)) {
                        v2++;
                    } else {
                        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());
                    }
                }
                if (p10 != null) {
                    while (v1 < p10.length) {
                        if (!v8_10.remove(p10[v1])) {
                            p6.execSQL(p10[(v1 + 1)]);
                        }
                        v1 += 2;
                    }
                }
                if (!v8_10.isEmpty()) {
                    p5.zzjj().zze("Table has extra columns. table, columns", p7, android.text.TextUtils.join(", ", v8_10));
                }
                return;
            } else {
                throw new IllegalArgumentException("Monitor must not be null");
            }
        } else {
            throw new IllegalArgumentException("Monitor must not be null");
        }
    }

Method com.google.android.gms.measurement.internal.zzt.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.zzaq 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.zzas.zzbw(p7), this.zzgq().zzbv(p8), v1_1);
            return 0;
        }
    }

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


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

Method com.google.android.gms.measurement.internal.zzt.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.zzaq 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.zzas.zzbw(p6), this.zzgq().zzbv(p7), v0_2);
            return;
        }
    }

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


    public final long zzbn(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.zzau v1_2 = String.valueOf(Math.max(0, Math.min(1000000, this.zzgv().zzb(p7, com.google.android.gms.measurement.internal.zzai.zzajj))));
            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.zzas.zzbw(p7), v0_2);
            return 0;
        }
    }

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


    final void zza(String p13, com.google.android.gms.internal.measurement.zzfi[] 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.zzavg);
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_8.zzavf);
            if (v3_8.zzave != null) {
                String v5_12 = v3_8.zzave.intValue();
                int v7_3 = v3_8.zzavg;
                int v9_2 = 0;
                while (v9_2 < v7_3.length) {
                    if (v7_3[v9_2].zzavk != null) {
                        v9_2++;
                    } else {
                        this.zzgt().zzjj().zze("Event filter with no ID. Audience definition ignored. appId, audienceId", com.google.android.gms.measurement.internal.zzas.zzbw(p13), v3_8.zzave);
                    }
                }
                int v7_4 = v3_8.zzavf;
                int v9_1 = 0;
                while (v9_1 < v7_4.length) {
                    if (v7_4[v9_1].zzavk != null) {
                        v9_1++;
                    } else {
                        this.zzgt().zzjj().zze("Property filter with no ID. Audience definition ignored. appId, audienceId", com.google.android.gms.measurement.internal.zzas.zzbw(p13), v3_8.zzave);
                    }
                }
                int v7_5 = v3_8.zzavg;
                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.zzavf;
                        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.zzas.zzbw(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].zzave);
            v6++;
        }
        this.zza(p13, v1_3);
        v0.setTransactionSuccessful();
        v0.endTransaction();
        return;
    }

Method com.google.android.gms.measurement.internal.zzt.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.zzau 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.zzai.zzajz)));
        } catch (String v11_1) {
            this.zzgt().zzjg().zze("Database error querying filters. appId", com.google.android.gms.measurement.internal.zzas.zzbw(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.zzao.zzr() calling method android.database.sqlite.SQLiteDatabase.delete()

Couldn't retrieve source code

Method com.google.android.gms.measurement.internal.zzao.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.zzao.zza() calling method android.database.sqlite.SQLiteDatabase.delete()

Couldn't retrieve source code

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);
        long v4_3 = p15.iterator();
        while (v4_3.hasNext()) {
            String v5_4 = ((com.google.firebase.database.snapshot.ChildKey) v4_3.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);
        }
        Object[] v2_0 = p14.iterator();
        while (v2_0.hasNext()) {
            android.database.sqlite.SQLiteDatabase v3_3 = ((com.google.firebase.database.snapshot.ChildKey) v2_0.next());
            long v4_2 = new android.content.ContentValues();
            v4_2.put("id", Long.valueOf(p12));
            v4_2.put("key", v3_3.asString());
            this.database.insertWithOnConflict("trackedKeys", 0, v4_2, 5);
        }
        long v4_0 = (System.currentTimeMillis() - v0_0);
        if (this.logger.logsDebug()) {
            com.google.firebase.database.logging.LogWrapper v0_3 = this.logger;
            Object[] v2_3 = new Object[4];
            v2_3[0] = Integer.valueOf(p14.size());
            v2_3[1] = Integer.valueOf(p15.size());
            v2_3[2] = Long.valueOf(p12);
            v2_3[3] = Long.valueOf(v4_0);
            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", v2_3), 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();
        long v4_3 = this.database;
        int v7_2 = new String[1];
        v7_2[0] = String.valueOf(p11);
        v4_3.delete("trackedKeys", "id = ?", v7_2);
        Object[] v2_0 = p13.iterator();
        while (v2_0.hasNext()) {
            android.database.sqlite.SQLiteDatabase v3_2 = ((com.google.firebase.database.snapshot.ChildKey) v2_0.next());
            long v4_2 = new android.content.ContentValues();
            v4_2.put("id", Long.valueOf(p11));
            v4_2.put("key", v3_2.asString());
            this.database.insertWithOnConflict("trackedKeys", 0, v4_2, 5);
        }
        long v4_0 = (System.currentTimeMillis() - v0_0);
        if (this.logger.logsDebug()) {
            com.google.firebase.database.logging.LogWrapper v0_3 = this.logger;
            Object[] v2_3 = new Object[3];
            v2_3[0] = Integer.valueOf(p13.size());
            v2_3[1] = Long.valueOf(p11);
            v2_3[2] = Long.valueOf(v4_0);
            Object[] v12_1 = new Object[0];
            v0_3.debug(String.format("Set %d tracked query keys for tracked query %d in %dms", v2_3), 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;
        long v6_1 = new String[1];
        v6_1[0] = String.valueOf(p10);
        Integer v2_0 = v2_2.delete("writes", "id = ?", v6_1);
        long v6_0 = (System.currentTimeMillis() - v0_2);
        if (this.logger.logsDebug()) {
            com.google.firebase.database.logging.LogWrapper v0_3 = this.logger;
            Object[] v3_2 = new Object[3];
            v3_2[0] = Integer.valueOf(v2_0);
            v3_2[1] = Long.valueOf(p10);
            v3_2[2] = Long.valueOf(v6_0);
            Object[] v11_1 = new Object[0];
            v0_3.debug(String.format("Deleted %d write(s) with writeId %d in %dms", v3_2), 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 v5_0 = (System.currentTimeMillis() - v0_3);
        if (this.logger.logsDebug()) {
            com.google.firebase.database.logging.LogWrapper v0_2 = this.logger;
            Object[] v3_1 = new Object[2];
            v3_1[0] = Integer.valueOf(v2_4);
            v3_1[1] = Long.valueOf(v5_0);
            Object[] v2_2 = new Object[0];
            v0_2.debug(String.format("Deleted %d (all) write(s) in %dms", v3_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 p17, com.google.firebase.database.core.persistence.PruneForest p18)
    {
        if (p18.prunesAnything()) {
            this.verifyInsideTransaction();
            long v9 = System.currentTimeMillis();
            String v0_1 = this.loadNestedQuery(p17, new String[] {"rowid", "path"}));
            com.google.firebase.database.core.utilities.ImmutableTree v12 = new com.google.firebase.database.core.utilities.ImmutableTree(0);
            com.google.firebase.database.core.utilities.ImmutableTree v4_0 = new com.google.firebase.database.core.utilities.ImmutableTree(0);
            while (v0_1.moveToNext()) {
                Object[] v1_1 = v0_1.getLong(0);
                String v3_1 = new com.google.firebase.database.core.Path(v0_1.getString(1));
                if (p17.contains(v3_1)) {
                    Object[] v6_2 = com.google.firebase.database.core.Path.getRelative(p17, v3_1);
                    if (!p18.shouldPruneUnkeptDescendants(v6_2)) {
                        if (!p18.shouldKeep(v6_2)) {
                            Object[] v1_2 = this.logger;
                            com.google.firebase.database.logging.LogWrapper v2_3 = new StringBuilder();
                            v2_3.append("We are pruning at ");
                            v2_3.append(p17);
                            v2_3.append(" and have data at ");
                            v2_3.append(v3_1);
                            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_1));
                        }
                    } else {
                        v12 = v12.set(v6_2, Long.valueOf(v1_1));
                    }
                } else {
                    Object[] v1_5 = this.logger;
                    com.google.firebase.database.logging.LogWrapper v2_6 = new StringBuilder();
                    v2_6.append("We are pruning at ");
                    v2_6.append(p17);
                    v2_6.append(" but we have data stored higher up at ");
                    v2_6.append(v3_1);
                    v2_6.append(". Ignoring.");
                    v1_5.warn(v2_6.toString());
                }
            }
            String v0_3;
            Object[] v1_9;
            if (v12.isEmpty()) {
                v0_3 = 0;
                v1_9 = 0;
            } else {
                java.util.ArrayList v15_1 = new java.util.ArrayList();
                this.pruneTreeRecursive(p17, com.google.firebase.database.core.Path.getEmptyPath(), v12, v4_0, p18, v15_1);
                String v0_6 = v12.values();
                Object[] v1_12 = new StringBuilder();
                v1_12.append("rowid IN (");
                v1_12.append(this.commaSeparatedList(v0_6));
                v1_12.append(")");
                this.database.delete("serverCache", v1_12.toString(), 0);
                Object[] v1_14 = v15_1.iterator();
                while (v1_14.hasNext()) {
                    com.google.firebase.database.logging.LogWrapper v2_21 = ((com.google.firebase.database.core.utilities.Pair) v1_14.next());
                    this.saveNested(p17.child(((com.google.firebase.database.core.Path) v2_21.getFirst())), ((com.google.firebase.database.snapshot.Node) v2_21.getSecond()));
                }
                v0_3 = v0_6.size();
                v1_9 = v15_1.size();
            }
            com.google.firebase.database.core.utilities.ImmutableTree v4_1 = (System.currentTimeMillis() - v9);
            if (this.logger.logsDebug()) {
                com.google.firebase.database.logging.LogWrapper v2_19 = this.logger;
                Object[] v6_9 = new Object[3];
                v6_9[0] = Integer.valueOf(v0_3);
                v6_9[1] = Integer.valueOf(v1_9);
                v6_9[2] = Long.valueOf(v4_1);
                Object[] v1_16 = new Object[0];
                v2_19.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.zzfo.zzf() calling method android.database.sqlite.SQLiteDatabase.delete()


    final void zzf(com.google.android.gms.measurement.internal.zzk p21)
    {
        void v20_1 = this.zzaf();
        v20_1.zzlx();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p21);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p21.packageName);
        if ((!android.text.TextUtils.isEmpty(p21.zzafi)) || (!android.text.TextUtils.isEmpty(p21.zzafv))) {
            android.os.Bundle v3_3 = v20_1.zzjt().zzbm(p21.packageName);
            if ((v3_3 != null) && ((android.text.TextUtils.isEmpty(v3_3.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p21.zzafi)))) {
                v3_3.zzu(0);
                v20_1.zzjt().zza(v3_3);
                v20_1.zzls().zzcj(p21.packageName);
            }
            if (p21.zzafr) {
                long v6_6 = p21.zzago;
                if (v6_6 == 0) {
                    v6_6 = this.zzada.zzbx().currentTimeMillis();
                }
                android.os.Bundle v3_23 = p21.zzagp;
                if ((v3_23 != null) && (v3_23 != 1)) {
                    this.zzada.zzgt().zzjj().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.measurement.internal.zzas.zzbw(p21.packageName), Integer.valueOf(v3_23));
                    v3_23 = 0;
                }
                v20_1.zzjt().beginTransaction();
                try {
                    com.google.android.gms.measurement.internal.zzfv v8_2 = v20_1.zzjt().zzbm(p21.packageName);
                } catch (android.content.pm.PackageManager$NameNotFoundException v0_3) {
                    com.google.android.gms.measurement.internal.zzt v2_1 = v0_3;
                    v20_1.zzjt().endTransaction();
                    throw v2_1;
                }
                if (v8_2 != null) {
                    this.zzada.zzgr();
                    if (com.google.android.gms.measurement.internal.zzfy.zza(p21.zzafi, v8_2.getGmpAppId(), p21.zzafv, v8_2.zzhb())) {
                        this.zzada.zzgt().zzjj().zzg("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v8_2.zzal()));
                        String v9_0 = v20_1.zzjt();
                        com.google.android.gms.measurement.internal.zzfv v8_0 = v8_2.zzal();
                        v9_0.zzcl();
                        v9_0.zzaf();
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v8_0);
                        try {
                            long v10_0 = v9_0.getWritableDatabase();
                            Object v11_0 = new String[1];
                            v11_0[0] = v8_0;
                            Long v12_10 = (((((((((v10_0.delete("events", "app_id=?", v11_0) + 0) + v10_0.delete("user_attributes", "app_id=?", v11_0)) + v10_0.delete("conditional_properties", "app_id=?", v11_0)) + v10_0.delete("apps", "app_id=?", v11_0)) + v10_0.delete("raw_events", "app_id=?", v11_0)) + v10_0.delete("raw_events_metadata", "app_id=?", v11_0)) + v10_0.delete("event_filters", "app_id=?", v11_0)) + v10_0.delete("property_filters", "app_id=?", v11_0)) + v10_0.delete("audience_filter_values", "app_id=?", v11_0));
                        } catch (android.content.pm.PackageManager$NameNotFoundException v0_0) {
                            v9_0.zzgt().zzjg().zze("Error deleting application data. appId, error", com.google.android.gms.measurement.internal.zzas.zzbw(v8_0), v0_0);
                            v8_2 = 0;
                        }
                        if (v12_10 <= null) {
                        } else {
                            v9_0.zzgt().zzjo().zze("Deleted application data. app, records", v8_0, Integer.valueOf(v12_10));
                        }
                    }
                }
                if (v8_2 != null) {
                    if (v8_2.zzhf() == -2147483648) {
                        if ((v8_2.zzak() != null) && (!v8_2.zzak().equals(p21.zzts))) {
                            String v9_8 = new android.os.Bundle();
                            v9_8.putString("_pv", v8_2.zzak());
                            com.google.android.gms.measurement.internal.zzfv v14_8 = new com.google.android.gms.measurement.internal.zzag;
                            v14_8("_au", new com.google.android.gms.measurement.internal.zzad(v9_8), "auto", v6_6);
                            this.zzc(v14_8, p21);
                        }
                    } else {
                        if (v8_2.zzhf() != p21.zzafo) {
                            String v9_12 = new android.os.Bundle();
                            v9_12.putString("_pv", v8_2.zzak());
                            com.google.android.gms.measurement.internal.zzfv v14_9 = new com.google.android.gms.measurement.internal.zzag;
                            v14_9("_au", new com.google.android.gms.measurement.internal.zzad(v9_12), "auto", v6_6);
                            this.zzc(v14_9, p21);
                        }
                    }
                }
                com.google.android.gms.measurement.internal.zzfv v8_7;
                v20_1.zzg(p21);
                if (v3_23 != null) {
                    if (v3_23 != 1) {
                        v8_7 = 0;
                    } else {
                        v8_7 = v20_1.zzjt().zzg(p21.packageName, "_v");
                    }
                } else {
                    v8_7 = v20_1.zzjt().zzg(p21.packageName, "_f");
                }
                if (v8_7 != null) {
                    if (p21.zzagn) {
                        com.google.android.gms.measurement.internal.zzag v4_2 = new com.google.android.gms.measurement.internal.zzag;
                        v4_2("_cd", new com.google.android.gms.measurement.internal.zzad(new android.os.Bundle()), "auto", v6_6);
                        this.zzc(v4_2, p21);
                    }
                } else {
                    com.google.android.gms.measurement.internal.zzag v4_3;
                    com.google.android.gms.measurement.internal.zzfv v8_12 = (3600000 * ((v6_6 / 3600000) + 1));
                    if (v3_23 != null) {
                        v4_3 = 1;
                        if (v3_23 == 1) {
                            android.os.Bundle v3_7 = new com.google.android.gms.measurement.internal.zzfv;
                            v3_7("_fvt", v6_6, Long.valueOf(v8_12), "auto");
                            this.zzb(v3_7, p21);
                            v20_1 = v20_1.zzaf();
                            v20_1.zzlx();
                            android.os.Bundle v3_9 = new android.os.Bundle();
                            v3_9.putLong("_c", 1);
                            v3_9.putLong("_r", 1);
                            if (this.zzada.zzgv().zzbk(p21.packageName)) {
                                v3_9.putLong("_et", 1);
                            }
                            if ((this.zzada.zzgv().zzba(p21.packageName)) && (p21.zzagq)) {
                                v3_9.putLong("_dac", 1);
                            }
                            com.google.android.gms.measurement.internal.zzfv v14_10 = new com.google.android.gms.measurement.internal.zzag;
                            v14_10("_v", new com.google.android.gms.measurement.internal.zzad(v3_9), "auto", v6_6);
                            this.zzc(v14_10, p21);
                        }
                    } else {
                        android.os.Bundle v3_10 = new com.google.android.gms.measurement.internal.zzfv;
                        v4_3 = 1;
                        v3_10("_fot", v6_6, Long.valueOf(v8_12), "auto");
                        this.zzb(v3_10, p21);
                        if (this.zzada.zzgv().zzbe(p21.zzafi)) {
                            v20_1 = v20_1.zzaf();
                            this.zzada.zzkk().zzce(p21.packageName);
                        }
                        v20_1 = v20_1.zzaf();
                        v20_1.zzlx();
                        android.os.Bundle v3_17 = new android.os.Bundle();
                        v3_17.putLong("_c", 1);
                        v3_17.putLong("_r", 1);
                        v3_17.putLong("_uwa", 0);
                        v3_17.putLong("_pfo", 0);
                        v3_17.putLong("_sys", 0);
                        v3_17.putLong("_sysu", 0);
                        if (this.zzada.zzgv().zzbk(p21.packageName)) {
                            v3_17.putLong("_et", 1);
                        }
                        if ((this.zzada.zzgv().zzba(p21.packageName)) && (p21.zzagq)) {
                            v3_17.putLong("_dac", 1);
                        }
                        if (this.zzada.getContext().getPackageManager() != null) {
                            try {
                                com.google.android.gms.measurement.internal.zzfv v8_50 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzada.getContext()).getPackageInfo(p21.packageName, 0);
                            } catch (android.content.pm.PackageManager$NameNotFoundException v0_1) {
                                this.zzada.zzgt().zzjg().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p21.packageName), v0_1);
                                v8_50 = 0;
                            }
                            if ((v8_50 != null) && (v8_50.firstInstallTime != 0)) {
                                com.google.android.gms.measurement.internal.zzfv v8_53;
                                if (v8_50.firstInstallTime == v8_50.lastUpdateTime) {
                                    v8_53 = 1;
                                } else {
                                    v3_17.putLong("_uwa", 1);
                                    v8_53 = 0;
                                }
                                long v10_25;
                                com.google.android.gms.measurement.internal.zzfv v14_11 = new com.google.android.gms.measurement.internal.zzfv;
                                if (v8_53 == null) {
                                    v10_25 = 0;
                                } else {
                                    v10_25 = 1;
                                }
                                v14_11("_fi", v6_6, Long.valueOf(v10_25), "auto");
                                this.zzb(v14_11, p21);
                            }
                            try {
                                com.google.android.gms.measurement.internal.zzfv v8_59 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzada.getContext()).getApplicationInfo(p21.packageName, 0);
                            } catch (android.content.pm.PackageManager$NameNotFoundException v0_2) {
                                this.zzada.zzgt().zzjg().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p21.packageName), v0_2);
                                v8_59 = 0;
                            }
                            if (v8_59 != null) {
                                if ((v8_59.flags & 1) != 0) {
                                    v3_17.putLong("_sys", 1);
                                }
                                if ((v8_59.flags & 128) != 0) {
                                    v3_17.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.zzada.zzgt().zzjg().zzg("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p21.packageName));
                        }
                        com.google.android.gms.measurement.internal.zzfv v8_67 = v20_1.zzjt();
                        String v9_40 = p21.packageName;
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v9_40);
                        v8_67.zzaf();
                        v8_67.zzcl();
                        com.google.android.gms.measurement.internal.zzfv v8_68 = v8_67.zzn(v9_40, "first_open_count");
                        if (v8_68 >= 0) {
                            v3_17.putLong("_pfo", v8_68);
                        }
                        com.google.android.gms.measurement.internal.zzfv v14_12 = new com.google.android.gms.measurement.internal.zzag;
                        v14_12("_f", new com.google.android.gms.measurement.internal.zzad(v3_17), "auto", v6_6);
                        this.zzc(v14_12, p21);
                    }
                    if (!this.zzada.zzgv().zze(p21.packageName, com.google.android.gms.measurement.internal.zzai.zzala)) {
                        android.os.Bundle v3_29 = new android.os.Bundle();
                        v3_29.putLong("_et", v4_3);
                        if (this.zzada.zzgv().zzbk(p21.packageName)) {
                            v3_29.putLong("_fr", v4_3);
                        }
                        com.google.android.gms.measurement.internal.zzag v4_4 = new com.google.android.gms.measurement.internal.zzag;
                        v4_4("_e", new com.google.android.gms.measurement.internal.zzad(v3_29), "auto", v6_6);
                        this.zzc(v4_4, p21);
                    }
                }
                v20_1.zzjt().setTransactionSuccessful();
                v20_1.zzjt().endTransaction();
                return;
            } else {
                v20_1.zzg(p21);
                return;
            }
        } else {
            return;
        }
    }

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


    final void zzd(com.google.android.gms.measurement.internal.zzk p12)
    {
        if (this.zzaua != null) {
            this.zzaub = new java.util.ArrayList();
            this.zzaub.addAll(this.zzaua);
        }
        com.google.android.gms.measurement.internal.zzk 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.zzas.zzbw(v1_0), v2_2);
            com.google.android.gms.measurement.internal.zzk v0_8 = this.zza(this.zzada.getContext(), p12.packageName, p12.zzafi, p12.zzafr, p12.zzaft, p12.zzafu, p12.zzago, p12.zzafv);
            if ((!this.zzada.zzgv().zzba(p12.packageName)) || (p12.zzafr)) {
                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.zzfo.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.zzaua;
        this.zzaua = 0;
        int v4 = 1;
        if (((p10 != 200) && (p10 != 204)) || (p11)) {
            this.zzada.zzgt().zzjo().zze("Network upload failed. Will retry later. code, error", Integer.valueOf(p10), p11);
            this.zzada.zzgu().zzanb.set(this.zzada.zzbx().currentTimeMillis());
            if (p10 != 503) {
                if (p10 != 429) {
                    v4 = 0;
                } else {
                }
            }
            if (v4 != 0) {
                this.zzada.zzgu().zzanc.set(this.zzada.zzbx().currentTimeMillis());
            }
            if (this.zzada.zzgv().zzaw(p13)) {
                this.zzjt().zzc(v1_3);
            }
            this.zzmb();
        } else {
            try {
                this.zzada.zzgu().zzana.set(this.zzada.zzbx().currentTimeMillis());
                this.zzada.zzgu().zzanb.set(0);
                this.zzmb();
                this.zzada.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.zzada.zzgt().zzjg().zzg("Database error while trying to delete uploaded bundles", v10_7);
                this.zzatr = this.zzada.zzbx().elapsedRealtime();
                this.zzada.zzgt().zzjo().zzg("Disable upload, time", Long.valueOf(this.zzatr));
            }
            long v10_24 = v1_3.iterator();
            while (v10_24.hasNext()) {
                boolean v11_2 = ((Long) v10_24.next());
                try {
                    com.google.android.gms.measurement.internal.zzau 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");
                        }
                    } 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.zzau v12_5) {
                    if (this.zzaub != null) {
                        if (!this.zzaub.contains(v11_2)) {
                        }
                    }
                    throw v12_5;
                }
            }
            this.zzjt().setTransactionSuccessful();
            this.zzjt().endTransaction();
            this.zzaub = 0;
            if ((!this.zzlt().zzfb()) || (!this.zzma())) {
                this.zzauc = -1;
                this.zzmb();
            } else {
                this.zzlz();
            }
            this.zzatr = 0;
        }
        this.zzatw = 0;
        this.zzmc();
        return;
    }

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


    private final boolean zzd(String p62, long p63)
    {
        this.zzjt().beginTransaction();
        try {
            String v3_0 = 0;
            com.google.android.gms.measurement.internal.zzac v2_29 = new com.google.android.gms.measurement.internal.zzfo$zza(this, 0);
            Object v4_40 = this.zzjt();
            String v5_81 = this.zzauc;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_29);
            v4_40.zzaf();
            v4_40.zzcl();
            try {
                int v23;
                long v7_0;
                Long v15_3 = v4_40.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        String v3_85;
                        if (v5_81 == -1) {
                            v3_85 = new String[] {0});
                        } else {
                            v3_85 = new String[2];
                            v3_85[0] = 0;
                            v3_85[1] = String.valueOf(v5_81);
                        }
                        long v7_59;
                        if (v5_81 == -1) {
                            v7_59 = "";
                        } else {
                            v7_59 = " and rowid <= ?";
                        }
                        boolean v14_15 = new StringBuilder((String.valueOf(v7_59).length() + 84));
                        v14_15.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_15.append(v7_59);
                        v14_15.append(" order by rowid limit 1;");
                        v3_0 = v15_3.rawQuery(v14_15.toString(), v3_85);
                        if (v3_0.moveToFirst()) {
                            int v13_45 = v3_0.getString(0);
                            v3_0.close();
                            v23 = v3_0;
                            v7_0 = v13_45;
                            v3_0 = 0;
                            try {
                                int v13_12 = new String[2];
                                v13_12[0] = v3_0;
                                v13_12[1] = v7_0;
                                android.database.sqlite.SQLiteDatabase v25 = v15_3;
                                Long v15_2 = v15_3.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_12, 0, 0, "rowid", "2");
                                try {
                                    if (v15_2.moveToFirst()) {
                                        int v13_24 = v15_2.getBlob(0);
                                        int v13_26 = com.google.android.gms.internal.measurement.zzxz.zzj(v13_24, 0, v13_24.length);
                                        boolean v14_10 = new com.google.android.gms.internal.measurement.zzfw();
                                        try {
                                            v14_10.zza(v13_26);
                                        } catch (android.database.sqlite.SQLiteException v0_5) {
                                            String v6_5 = v15_2;
                                            v4_40.zzgt().zzjg().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0), v0_5);
                                            if (v6_5 == null) {
                                                String v3_89;
                                                if (v2_29.zzaui == null) {
                                                    v3_89 = 1;
                                                } else {
                                                    if (!v2_29.zzaui.isEmpty()) {
                                                        v3_89 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_89 != null) {
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 0;
                                                } else {
                                                    String v3_81 = v2_29.zzaug;
                                                    Object v4_4 = new com.google.android.gms.internal.measurement.zzft[v2_29.zzaui.size()];
                                                    v3_81.zzaxi = v4_4;
                                                    Object v4_7 = this.zzada.zzgv().zzau(v3_81.zztt);
                                                    String v5_24 = this.zzada.zzgv().zze(v2_29.zzaug.zztt, com.google.android.gms.measurement.internal.zzai.zzala);
                                                    Boolean v8_16 = 0;
                                                    int v9_9 = 0;
                                                    boolean v10_60 = 0;
                                                    long v12_44 = 0;
                                                    int v13_27 = 0;
                                                    boolean v14_11 = 0;
                                                    while(true) {
                                                        com.google.android.gms.internal.measurement.zzft v26 = v12_44;
                                                        if (v10_60 >= v2_29.zzaui.size()) {
                                                            break;
                                                        }
                                                        com.google.android.gms.measurement.internal.zzac v27_0;
                                                        long v7_35;
                                                        com.google.android.gms.measurement.internal.zzac v2_22;
                                                        String v6_21 = ((com.google.android.gms.internal.measurement.zzft) v2_29.zzaui.get(v10_60));
                                                        if (!this.zzls().zzo(v2_29.zzaug.zztt, v6_21.name)) {
                                                            String v45_0;
                                                            long v32_0;
                                                            v27_0 = v10_60;
                                                            String v28_0 = v13_27;
                                                            long v7_7 = this.zzls().zzp(v2_29.zzaug.zztt, v6_21.name);
                                                            if (v7_7 != 0) {
                                                                if (v6_21.zzaxa == null) {
                                                                    long v12_18 = new com.google.android.gms.internal.measurement.zzfu[0];
                                                                    v6_21.zzaxa = v12_18;
                                                                }
                                                                boolean v11_12 = v6_21.zzaxa;
                                                                long v12_19 = v11_12.length;
                                                                int v13_9 = 0;
                                                                long v16_1 = 0;
                                                                int v17_0 = 0;
                                                                while (v13_9 < v12_19) {
                                                                    long v32_1;
                                                                    boolean v10_50 = v11_12[v13_9];
                                                                    long v30_0 = v11_12;
                                                                    long v31_0 = v12_19;
                                                                    if (!"_c".equals(v10_50.name)) {
                                                                        v32_1 = v3_81;
                                                                        if ("_r".equals(v10_50.name)) {
                                                                            v10_50.zzaxe = Long.valueOf(1);
                                                                            v17_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v32_1 = v3_81;
                                                                        v10_50.zzaxe = Long.valueOf(1);
                                                                        v16_1 = 1;
                                                                    }
                                                                    v13_9++;
                                                                    v11_12 = v30_0;
                                                                    v12_19 = v31_0;
                                                                    v3_81 = v32_1;
                                                                }
                                                                v32_0 = v3_81;
                                                                if ((v16_1 == 0) && (v7_7 != 0)) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as conversion", this.zzada.zzgq().zzbt(v6_21.name));
                                                                    String v3_8 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_21.zzaxa, (v6_21.zzaxa.length + 1)));
                                                                    boolean v10_10 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v10_10.name = "_c";
                                                                    v10_10.zzaxe = Long.valueOf(1);
                                                                    v3_8[(v3_8.length - 1)] = v10_10;
                                                                    v6_21.zzaxa = v3_8;
                                                                }
                                                                if (v17_0 == 0) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as real-time", this.zzada.zzgq().zzbt(v6_21.name));
                                                                    String v3_14 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_21.zzaxa, (v6_21.zzaxa.length + 1)));
                                                                    boolean v10_16 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v10_16.name = "_r";
                                                                    v10_16.zzaxe = Long.valueOf(1);
                                                                    v3_14[(v3_14.length - 1)] = v10_16;
                                                                    v6_21.zzaxa = v3_14;
                                                                }
                                                                long v12_27;
                                                                if (this.zzjt().zza(this.zzly(), v2_29.zzaug.zztt, 0, 0, 0, 0, 1).zzahl <= ((long) this.zzada.zzgv().zzaq(v2_29.zzaug.zztt))) {
                                                                    v12_27 = 1;
                                                                } else {
                                                                    String v3_22 = 0;
                                                                    while (v3_22 < v6_21.zzaxa.length) {
                                                                        if (!"_r".equals(v6_21.zzaxa[v3_22].name)) {
                                                                            v3_22++;
                                                                        } else {
                                                                            boolean v10_25 = new com.google.android.gms.internal.measurement.zzfu[(v6_21.zzaxa.length - 1)];
                                                                            if (v3_22 > null) {
                                                                                System.arraycopy(v6_21.zzaxa, 0, v10_25, 0, v3_22);
                                                                            }
                                                                            if (v3_22 < v10_25.length) {
                                                                                System.arraycopy(v6_21.zzaxa, (v3_22 + 1), v10_25, v3_22, (v10_25.length - v3_22));
                                                                            }
                                                                            v6_21.zzaxa = v10_25;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_27 = v26;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.zzfy.zzct(v6_21.name)) || (v7_7 == 0)) {
                                                                    com.google.android.gms.internal.measurement.zzft v42 = v12_27;
                                                                    v45_0 = v14_11;
                                                                } else {
                                                                    v42 = v12_27;
                                                                    if (this.zzjt().zza(this.zzly(), v2_29.zzaug.zztt, 0, 0, 1, 0, 0).zzahj <= ((long) this.zzada.zzgv().zzb(v2_29.zzaug.zztt, com.google.android.gms.measurement.internal.zzai.zzajh))) {
                                                                    } else {
                                                                        this.zzada.zzgt().zzjj().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_29.zzaug.zztt));
                                                                        String v3_35 = v6_21.zzaxa;
                                                                        boolean v10_29 = v3_35.length;
                                                                        boolean v11_40 = 0;
                                                                        long v12_32 = 0;
                                                                        int v13_18 = 0;
                                                                        while (v11_40 < v10_29) {
                                                                            boolean v10_48 = v3_35[v11_40];
                                                                            if (!"_c".equals(v10_48.name)) {
                                                                                if ("_err".equals(v10_48.name)) {
                                                                                    v12_32 = 1;
                                                                                }
                                                                            } else {
                                                                                v13_18 = v10_48;
                                                                            }
                                                                            v11_40++;
                                                                        }
                                                                        v45_0 = v14_11;
                                                                        if ((v12_32 == 0) || (v13_18 == 0)) {
                                                                            if (v13_18 == 0) {
                                                                                this.zzada.zzgt().zzjg().zzg("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_29.zzaug.zztt));
                                                                            } else {
                                                                                v13_18.name = "_err";
                                                                                v13_18.zzaxe = Long.valueOf(10);
                                                                            }
                                                                        } else {
                                                                            String v3_41 = v6_21.zzaxa;
                                                                            boolean v11_44 = new com.google.android.gms.internal.measurement.zzfu[1];
                                                                            v11_44[0] = v13_18;
                                                                            v6_21.zzaxa = ((com.google.android.gms.internal.measurement.zzfu[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v3_41, v11_44));
                                                                        }
                                                                    }
                                                                }
                                                                v26 = v42;
                                                            } else {
                                                                boolean v11_6;
                                                                this.zzjr();
                                                                boolean v11_4 = v6_21.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v11_4);
                                                                long v12_14 = v11_4.hashCode();
                                                                if (v12_14 == 94660) {
                                                                    if (!v11_4.equals("_in")) {
                                                                        v11_6 = -1;
                                                                    } else {
                                                                        v11_6 = 0;
                                                                    }
                                                                } else {
                                                                    if (v12_14 == 95025) {
                                                                        if (!v11_4.equals("_ug")) {
                                                                        } else {
                                                                            v11_6 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v12_14 == 95027) {
                                                                            if (!v11_4.equals("_ui")) {
                                                                            } else {
                                                                                v11_6 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                boolean v11_9;
                                                                switch (v11_6) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v11_9 = 1;
                                                                    default:
                                                                        v11_9 = 0;
                                                                }
                                                                if (!v11_9) {
                                                                    v32_0 = v3_81;
                                                                    v45_0 = v14_11;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzada.zzgv().zzbd(v2_29.zzaug.zztt)) || (v7_7 == 0)) {
                                                            } else {
                                                                String v3_47 = v6_21.zzaxa;
                                                                long v7_8 = 0;
                                                                boolean v10_36 = -1;
                                                                boolean v11_45 = -1;
                                                                while (v7_8 < v3_47.length) {
                                                                    if (!"value".equals(v3_47[v7_8].name)) {
                                                                        if ("currency".equals(v3_47[v7_8].name)) {
                                                                            v11_45 = v7_8;
                                                                        }
                                                                    } else {
                                                                        v10_36 = v7_8;
                                                                    }
                                                                    v7_8++;
                                                                }
                                                                if (v10_36 == -1) {
                                                                } else {
                                                                    if ((v3_47[v10_36].zzaxe != null) || (v3_47[v10_36].zzaun != null)) {
                                                                        long v7_17;
                                                                        if (v11_45 != -1) {
                                                                            long v7_16 = v3_47[v11_45].zzaml;
                                                                            if (v7_16 == 0) {
                                                                            } else {
                                                                                if (v7_16.length() == 3) {
                                                                                    boolean v11_47 = 0;
                                                                                    while (v11_47 < v7_16.length()) {
                                                                                        int v13_20 = v7_16.codePointAt(v11_47);
                                                                                        if (Character.isLetter(v13_20)) {
                                                                                            v11_47 += Character.charCount(v13_20);
                                                                                        } else {
                                                                                        }
                                                                                    }
                                                                                    v7_17 = 0;
                                                                                    if (v7_17 != 0) {
                                                                                        this.zzada.zzgt().zzjl().zzby("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                        v3_47 = com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(v3_47, v10_36), "_c"), 19, "currency");
                                                                                    }
                                                                                    v6_21.zzaxa = v3_47;
                                                                                    int v47;
                                                                                    if (!this.zzada.zzgv().zze(v2_29.zzaug.zztt, com.google.android.gms.measurement.internal.zzai.zzakz)) {
                                                                                        v47 = v2_29;
                                                                                    } else {
                                                                                        if (!"_e".equals(v6_21.name)) {
                                                                                            if (!"_vs".equals(v6_21.name)) {
                                                                                            } else {
                                                                                                this.zzjr();
                                                                                                if (com.google.android.gms.measurement.internal.zzfu.zza(v6_21, "_et") != null) {
                                                                                                } else {
                                                                                                    if (v8_16 == null) {
                                                                                                        v47 = v2_29;
                                                                                                    } else {
                                                                                                        v47 = v2_29;
                                                                                                        if ((Math.abs((v8_16.zzaxb.longValue() - v6_21.zzaxb.longValue())) <= 1000) && (this.zza(v8_16, v6_21))) {
                                                                                                            v8_16 = 0;
                                                                                                            v9_9 = 0;
                                                                                                            if ((v4_7 == null) || ((v5_24 != null) || (!"_e".equals(v6_21.name)))) {
                                                                                                                v7_35 = v47;
                                                                                                                v2_22 = v32_0;
                                                                                                                v14_11 = v45_0;
                                                                                                            } else {
                                                                                                                if (v6_21.zzaxa != null) {
                                                                                                                    if (v6_21.zzaxa.length != 0) {
                                                                                                                        this.zzjr();
                                                                                                                        com.google.android.gms.measurement.internal.zzac v2_20 = ((Long) com.google.android.gms.measurement.internal.zzfu.zzb(v6_21, "_et"));
                                                                                                                        if (v2_20 != null) {
                                                                                                                            v7_35 = v47;
                                                                                                                            v14_11 = (v45_0 + v2_20.longValue());
                                                                                                                            v2_22 = v32_0;
                                                                                                                            v13_27 = (v28_0 + 1);
                                                                                                                            v2_22.zzaxi[v28_0] = v6_21;
                                                                                                                            v10_60 = (v27_0 + 1);
                                                                                                                            v3_81 = v2_22;
                                                                                                                            v2_29 = v7_35;
                                                                                                                            v12_44 = v26;
                                                                                                                        } else {
                                                                                                                            v7_35 = v47;
                                                                                                                            this.zzada.zzgt().zzjj().zzg("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_35.zzaug.zztt));
                                                                                                                        }
                                                                                                                    } else {
                                                                                                                    }
                                                                                                                }
                                                                                                                v7_35 = v47;
                                                                                                                this.zzada.zzgt().zzjj().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_35.zzaug.zztt));
                                                                                                            }
                                                                                                        }
                                                                                                    }
                                                                                                    v9_9 = v6_21;
                                                                                                }
                                                                                            }
                                                                                        } else {
                                                                                            this.zzjr();
                                                                                            if (com.google.android.gms.measurement.internal.zzfu.zza(v6_21, "_fr") != null) {
                                                                                            } else {
                                                                                                if ((v9_9 == 0) || ((Math.abs((v9_9.zzaxb.longValue() - v6_21.zzaxb.longValue())) > 1000) || (!this.zza(v6_21, v9_9)))) {
                                                                                                    v47 = v2_29;
                                                                                                    v8_16 = v6_21;
                                                                                                } else {
                                                                                                    v47 = v2_29;
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v7_17 = 1;
                                                                        } else {
                                                                            v7_17 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzada.zzgt().zzjl().zzby("Value must be specified with a numeric type.");
                                                                        v3_47 = com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(v3_47, v10_36), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            long v7_44;
                                                            v27_0 = v10_60;
                                                            String v28_1 = v13_27;
                                                            this.zzada.zzgt().zzjj().zze("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_29.zzaug.zztt), this.zzada.zzgq().zzbt(v6_21.name));
                                                            if (this.zzls().zzcl(v2_29.zzaug.zztt)) {
                                                                v7_44 = 1;
                                                            } else {
                                                                if (!this.zzls().zzcm(v2_29.zzaug.zztt)) {
                                                                    v7_44 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v7_44 == 0) && (!"_err".equals(v6_21.name))) {
                                                                this.zzada.zzgr().zza(v2_29.zzaug.zztt, 11, "_ev", v6_21.name, 0);
                                                            }
                                                            v7_35 = v2_29;
                                                            v2_22 = v3_81;
                                                            v13_27 = v28_1;
                                                        }
                                                    }
                                                    int v13_5;
                                                    boolean v14_5;
                                                    long v7_3 = v2_29;
                                                    com.google.android.gms.measurement.internal.zzac v2_9 = v3_81;
                                                    String v28_2 = v13_27;
                                                    String v45_2 = v14_11;
                                                    if (v5_24 == null) {
                                                        v13_5 = v28_2;
                                                        v14_5 = v45_2;
                                                    } else {
                                                        v13_5 = v28_2;
                                                        v14_5 = v45_2;
                                                        String v3_2 = 0;
                                                        while (v3_2 < v13_5) {
                                                            String v5_5 = v2_9.zzaxi[v3_2];
                                                            if (!"_e".equals(v5_5.name)) {
                                                                if (v4_7 != null) {
                                                                    this.zzjr();
                                                                    String v5_6 = com.google.android.gms.measurement.internal.zzfu.zza(v5_5, "_et");
                                                                    if (v5_6 != null) {
                                                                        String v5_7 = v5_6.zzaxe;
                                                                        if ((v5_7 != null) && (v5_7.longValue() > 0)) {
                                                                            v14_5 += v5_7.longValue();
                                                                        }
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzjr();
                                                                if (com.google.android.gms.measurement.internal.zzfu.zza(v5_5, "_fr") == null) {
                                                                } else {
                                                                    System.arraycopy(v2_9.zzaxi, (v3_2 + 1), v2_9.zzaxi, v3_2, ((v13_5 - v3_2) - 1));
                                                                    v13_5--;
                                                                    v3_2--;
                                                                }
                                                            }
                                                            v3_2++;
                                                        }
                                                    }
                                                    if (v13_5 < v7_3.zzaui.size()) {
                                                        v2_9.zzaxi = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v2_9.zzaxi, v13_5));
                                                    }
                                                    if (v4_7 != null) {
                                                        String v3_99;
                                                        String v3_96 = this.zzjt().zzi(v2_9.zztt, "_lte");
                                                        if (v3_96 == null) {
                                                            v3_99 = new com.google.android.gms.measurement.internal.zzfx;
                                                            v3_99(v2_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf(v14_5));
                                                        } else {
                                                            if (v3_96.value != null) {
                                                                Object v4_10 = new com.google.android.gms.measurement.internal.zzfx;
                                                                v4_10(v2_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf((((Long) v3_96.value).longValue() + v14_5)));
                                                                v3_99 = v4_10;
                                                            } else {
                                                            }
                                                        }
                                                        Object v4_13 = new com.google.android.gms.internal.measurement.zzfz();
                                                        v4_13.name = "_lte";
                                                        v4_13.zzayu = Long.valueOf(this.zzada.zzbx().currentTimeMillis());
                                                        v4_13.zzaxe = ((Long) v3_99.value);
                                                        String v5_36 = 0;
                                                        while (v5_36 < v2_9.zzaxj.length) {
                                                            if (!"_lte".equals(v2_9.zzaxj[v5_36].name)) {
                                                                v5_36++;
                                                            } else {
                                                                v2_9.zzaxj[v5_36] = v4_13;
                                                                String v5_37 = 1;
                                                            }
                                                            if (v5_37 == null) {
                                                                v2_9.zzaxj = ((com.google.android.gms.internal.measurement.zzfz[]) java.util.Arrays.copyOf(v2_9.zzaxj, (v2_9.zzaxj.length + 1)));
                                                                v2_9.zzaxj[(v7_3.zzaug.zzaxj.length - 1)] = v4_13;
                                                            }
                                                            if (v14_5 > 0) {
                                                                this.zzjt().zza(v3_99);
                                                                this.zzada.zzgt().zzjn().zzg("Updated lifetime engagement user property with value. Value", v3_99.value);
                                                            }
                                                        }
                                                        v5_37 = 0;
                                                    }
                                                    long v57_1;
                                                    String v3_101 = v2_9.zztt;
                                                    Object v4_19 = v2_9.zzaxj;
                                                    String v5_43 = v2_9.zzaxi;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_101);
                                                    v2_9.zzaya = this.zzjs().zza(v3_101, v5_43, v4_19);
                                                    if (!this.zzada.zzgv().zzat(v7_3.zzaug.zztt)) {
                                                        v57_1 = v7_3;
                                                    } else {
                                                        String v3_107 = new java.util.HashMap();
                                                        Object v4_24 = new com.google.android.gms.internal.measurement.zzft[v2_9.zzaxi.length];
                                                        String v5_3 = this.zzada.zzgr().zzmk();
                                                        String v6_11 = v2_9.zzaxi;
                                                        Boolean v8_10 = v6_11.length;
                                                        int v9_4 = 0;
                                                        boolean v10_0 = 0;
                                                        while (v9_4 < v8_10) {
                                                            int v55;
                                                            boolean v48;
                                                            com.google.android.gms.measurement.internal.zzbq v51;
                                                            long v49;
                                                            int v50;
                                                            long v57_0;
                                                            boolean v11_58 = v6_11[v9_4];
                                                            if (!v11_58.name.equals("_ep")) {
                                                                com.google.android.gms.measurement.internal.zzac v2_47;
                                                                long v52;
                                                                v48 = v6_11;
                                                                long v12_56 = this.zzls().zzck(v7_3.zzaug.zztt);
                                                                this.zzada.zzgr();
                                                                boolean v14_21 = com.google.android.gms.measurement.internal.zzfy.zzc(v11_58.zzaxb.longValue(), v12_56);
                                                                v51 = v2_9;
                                                                v49 = v8_10;
                                                                v50 = v9_4;
                                                                com.google.android.gms.measurement.internal.zzac v2_45 = Long.valueOf(1);
                                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                                    v52 = v12_56;
                                                                    v2_47 = 0;
                                                                } else {
                                                                    if (v2_45 != null) {
                                                                        Boolean v8_30 = v11_58.zzaxa;
                                                                        int v9_12 = v8_30.length;
                                                                        v52 = v12_56;
                                                                        long v12_57 = 0;
                                                                        while (v12_57 < v9_12) {
                                                                            int v13_49 = v8_30[v12_57];
                                                                            if (!"_dbg".equals(v13_49.name)) {
                                                                                v12_57++;
                                                                            } else {
                                                                                if (((!(v2_45 instanceof Long)) || (!v2_45.equals(v13_49.zzaxe))) && (((!(v2_45 instanceof String)) || (!v2_45.equals(v13_49.zzaml))) && ((!(v2_45 instanceof Double)) || (!v2_45.equals(v13_49.zzaun))))) {
                                                                                    break;
                                                                                }
                                                                                v2_47 = 1;
                                                                            }
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                long v12_58;
                                                                if (v2_47 != null) {
                                                                    v12_58 = 1;
                                                                } else {
                                                                    v12_58 = this.zzls().zzq(v7_3.zzaug.zztt, v11_58.name);
                                                                }
                                                                if (v12_58 > 0) {
                                                                    com.google.android.gms.measurement.internal.zzac v2_1 = ((com.google.android.gms.measurement.internal.zzac) v3_107.get(v11_58.name));
                                                                    if (v2_1 == null) {
                                                                        v2_1 = this.zzjt().zzg(v7_3.zzaug.zztt, v11_58.name);
                                                                        if (v2_1 == null) {
                                                                            this.zzada.zzgt().zzjj().zze("Event being bundled has no eventAggregate. appId, eventName", v7_3.zzaug.zztt, v11_58.name);
                                                                            v2_1 = new com.google.android.gms.measurement.internal.zzac;
                                                                            v2_1(v7_3.zzaug.zztt, v11_58.name, 1, 1, v11_58.zzaxb.longValue(), 0, 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    Boolean v8_38;
                                                                    this.zzjr();
                                                                    String v6_103 = ((Long) com.google.android.gms.measurement.internal.zzfu.zzb(v11_58, "_eid"));
                                                                    if (v6_103 == null) {
                                                                        v8_38 = 0;
                                                                    } else {
                                                                        v8_38 = 1;
                                                                    }
                                                                    Boolean v8_39 = Boolean.valueOf(v8_38);
                                                                    if (v12_58 != 1) {
                                                                        if (v5_3.nextInt(v12_58) != 0) {
                                                                            boolean v59;
                                                                            Boolean v58;
                                                                            String v5_87;
                                                                            String v56;
                                                                            v55 = v5_3;
                                                                            if (!this.zzada.zzgv().zzbf(v7_3.zzaug.zztt)) {
                                                                                v56 = v6_103;
                                                                                v57_0 = v7_3;
                                                                                v58 = v8_39;
                                                                                v59 = v14_21;
                                                                                if (Math.abs((v11_58.zzaxb.longValue() - v2_1.zzahy)) < 86400000) {
                                                                                    v5_87 = 0;
                                                                                } else {
                                                                                    v5_87 = 1;
                                                                                }
                                                                            } else {
                                                                                long v16_7;
                                                                                if (v2_1.zzahz == null) {
                                                                                    this.zzada.zzgr();
                                                                                    v56 = v6_103;
                                                                                    v57_0 = v7_3;
                                                                                    v58 = v8_39;
                                                                                    v16_7 = com.google.android.gms.measurement.internal.zzfy.zzc(v11_58.zzaxc.longValue(), v52);
                                                                                } else {
                                                                                    v16_7 = v2_1.zzahz.longValue();
                                                                                    v56 = v6_103;
                                                                                    v57_0 = v7_3;
                                                                                    v58 = v8_39;
                                                                                }
                                                                                if (v16_7 == v14_21) {
                                                                                    v5_87 = 0;
                                                                                } else {
                                                                                    v5_87 = 1;
                                                                                }
                                                                                v59 = v14_21;
                                                                            }
                                                                            if (v5_87 == null) {
                                                                                if (!v58.booleanValue()) {
                                                                                    v9_4 = (v50 + 1);
                                                                                    v6_11 = v48;
                                                                                    v8_10 = v49;
                                                                                    v2_9 = v51;
                                                                                    v5_3 = v55;
                                                                                    v7_3 = v57_0;
                                                                                } else {
                                                                                    v3_107.put(v11_58.name, v2_1.zza(v56, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.zzjr();
                                                                                v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_efs", Long.valueOf(1));
                                                                                this.zzjr();
                                                                                long v12_59 = ((long) v12_58);
                                                                                v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_sr", Long.valueOf(v12_59));
                                                                                String v5_100 = (v10_0 + 1);
                                                                                v4_24[v10_0] = v11_58;
                                                                                if (v58.booleanValue()) {
                                                                                    v2_1 = v2_1.zza(0, Long.valueOf(v12_59), Boolean.valueOf(1));
                                                                                }
                                                                                v3_107.put(v11_58.name, v2_1.zza(v11_58.zzaxb.longValue(), v59));
                                                                                v10_0 = v5_100;
                                                                            }
                                                                        } else {
                                                                            this.zzjr();
                                                                            long v12_0 = ((long) v12_58);
                                                                            v55 = v5_3;
                                                                            v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_sr", Long.valueOf(v12_0));
                                                                            String v5_2 = (v10_0 + 1);
                                                                            v4_24[v10_0] = v11_58;
                                                                            if (v8_39.booleanValue()) {
                                                                                v2_1 = v2_1.zza(0, Long.valueOf(v12_0), 0);
                                                                            }
                                                                            v3_107.put(v11_58.name, v2_1.zza(v11_58.zzaxb.longValue(), v14_21));
                                                                            v10_0 = v5_2;
                                                                        }
                                                                    } else {
                                                                        String v6_6 = (v10_0 + 1);
                                                                        v4_24[v10_0] = v11_58;
                                                                        if ((v8_39.booleanValue()) && ((v2_1.zzaia != null) || ((v2_1.zzaib != null) || (v2_1.zzaic != null)))) {
                                                                            v3_107.put(v11_58.name, v2_1.zza(0, 0, 0));
                                                                        }
                                                                        v55 = v5_3;
                                                                        v10_0 = v6_6;
                                                                    }
                                                                } else {
                                                                    this.zzada.zzgt().zzjj().zze("Sample rate must be positive. event, rate", v11_58.name, Integer.valueOf(v12_58));
                                                                    com.google.android.gms.measurement.internal.zzac v2_8 = (v10_0 + 1);
                                                                    v4_24[v10_0] = v11_58;
                                                                    v10_0 = v2_8;
                                                                    v55 = v5_3;
                                                                }
                                                                v57_0 = v7_3;
                                                            } else {
                                                                this.zzjr();
                                                                long v12_3 = ((String) com.google.android.gms.measurement.internal.zzfu.zzb(v11_58, "_en"));
                                                                int v13_1 = ((com.google.android.gms.measurement.internal.zzac) v3_107.get(v12_3));
                                                                if (v13_1 == 0) {
                                                                    v13_1 = this.zzjt().zzg(v7_3.zzaug.zztt, v12_3);
                                                                    v3_107.put(v12_3, v13_1);
                                                                }
                                                                if (v13_1.zzaia != null) {
                                                                    v48 = v6_11;
                                                                    v51 = v2_9;
                                                                    v55 = v5_3;
                                                                } else {
                                                                    if (v13_1.zzaib.longValue() > 1) {
                                                                        this.zzjr();
                                                                        v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_sr", v13_1.zzaib);
                                                                    }
                                                                    if ((v13_1.zzaic == null) || (!v13_1.zzaic.booleanValue())) {
                                                                        v48 = v6_11;
                                                                    } else {
                                                                        this.zzjr();
                                                                        v48 = v6_11;
                                                                        v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_efs", Long.valueOf(1));
                                                                    }
                                                                    String v6_10 = (v10_0 + 1);
                                                                    v4_24[v10_0] = v11_58;
                                                                    v51 = v2_9;
                                                                    v55 = v5_3;
                                                                    v10_0 = v6_10;
                                                                }
                                                                v57_0 = v7_3;
                                                                v49 = v8_10;
                                                                v50 = v9_4;
                                                            }
                                                        }
                                                        v57_1 = v7_3;
                                                        if (v10_0 < v2_9.zzaxi.length) {
                                                            v2_9.zzaxi = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v4_24, v10_0));
                                                        }
                                                        String v3_109 = v3_107.entrySet().iterator();
                                                        while (v3_109.hasNext()) {
                                                            this.zzjt().zza(((com.google.android.gms.measurement.internal.zzac) ((java.util.Map$Entry) v3_109.next()).getValue()));
                                                        }
                                                    }
                                                    v2_9.zzaxl = Long.valueOf(nan);
                                                    v2_9.zzaxm = Long.valueOf(-0.0);
                                                    String v3_114 = 0;
                                                    while (v3_114 < v2_9.zzaxi.length) {
                                                        Object v4_34 = v2_9.zzaxi[v3_114];
                                                        if (v4_34.zzaxb.longValue() < v2_9.zzaxl.longValue()) {
                                                            v2_9.zzaxl = v4_34.zzaxb;
                                                        }
                                                        if (v4_34.zzaxb.longValue() > v2_9.zzaxm.longValue()) {
                                                            v2_9.zzaxm = v4_34.zzaxb;
                                                        }
                                                        v3_114++;
                                                    }
                                                    String v3_115 = v57_1;
                                                    Object v4_31 = v3_115.zzaug.zztt;
                                                    String v5_49 = this.zzjt().zzbm(v4_31);
                                                    if (v5_49 != null) {
                                                        if (v2_9.zzaxi.length > 0) {
                                                            Boolean v8_24;
                                                            String v6_58 = v5_49.zzhe();
                                                            if (v6_58 == 0) {
                                                                v8_24 = 0;
                                                            } else {
                                                                v8_24 = Long.valueOf(v6_58);
                                                            }
                                                            v2_9.zzaxo = v8_24;
                                                            Boolean v8_25 = v5_49.zzhd();
                                                            if (v8_25 != 0) {
                                                                v6_58 = v8_25;
                                                            } else {
                                                            }
                                                            String v6_59;
                                                            if (v6_58 == 0) {
                                                                v6_59 = 0;
                                                            } else {
                                                                v6_59 = Long.valueOf(v6_58);
                                                            }
                                                            v2_9.zzaxn = v6_59;
                                                            v5_49.zzhm();
                                                            v2_9.zzaxy = Integer.valueOf(((int) v5_49.zzhj()));
                                                            v5_49.zzo(v2_9.zzaxl.longValue());
                                                            v5_49.zzp(v2_9.zzaxm.longValue());
                                                            v2_9.zzagm = v5_49.zzhu();
                                                            this.zzjt().zza(v5_49);
                                                        }
                                                    } else {
                                                        this.zzada.zzgt().zzjg().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_115.zzaug.zztt));
                                                    }
                                                    if (v2_9.zzaxi.length > 0) {
                                                        this.zzada.zzgw();
                                                        String v5_57 = this.zzls().zzcg(v3_115.zzaug.zztt);
                                                        if (v5_57 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v3_115.zzaug.zzafi)) {
                                                                this.zzada.zzgt().zzjj().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_115.zzaug.zztt));
                                                            } else {
                                                                v2_9.zzayf = Long.valueOf(-1);
                                                            }
                                                        } else {
                                                            if (v5_57.zzawk != null) {
                                                                v2_9.zzayf = v5_57.zzawk;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzjt().zza(v2_9, v26);
                                                    }
                                                    com.google.android.gms.measurement.internal.zzac v2_36 = this.zzjt();
                                                    String v3_116 = v3_115.zzauh;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_116);
                                                    v2_36.zzaf();
                                                    v2_36.zzcl();
                                                    String v5_69 = new StringBuilder("rowid in (");
                                                    String v6_75 = 0;
                                                    while (v6_75 < v3_116.size()) {
                                                        if (v6_75 != null) {
                                                            v5_69.append(",");
                                                        }
                                                        v5_69.append(((Long) v3_116.get(v6_75)).longValue());
                                                        v6_75++;
                                                    }
                                                    v5_69.append(")");
                                                    String v5_71 = v2_36.getWritableDatabase().delete("raw_events", v5_69.toString(), 0);
                                                    if (v5_71 != v3_116.size()) {
                                                        v2_36.zzgt().zzjg().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_71), Integer.valueOf(v3_116.size()));
                                                    }
                                                    com.google.android.gms.measurement.internal.zzac v2_39 = this.zzjt();
                                                    String v3_119 = v2_39.getWritableDatabase();
                                                    try {
                                                        String v6_81 = new String[2];
                                                        v6_81[0] = v4_31;
                                                        v6_81[1] = v4_31;
                                                        v3_119.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_81);
                                                    } catch (android.database.sqlite.SQLiteException v0_11) {
                                                        v2_39.zzgt().zzjg().zze("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v4_31), v0_11);
                                                    }
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v6_5.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                        }
                                        if (v15_2.moveToNext()) {
                                            v4_40.zzgt().zzjj().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0));
                                        }
                                        long v16_5;
                                        int v17_4;
                                        v15_2.close();
                                        v2_29.zzb(v14_10);
                                        if (v5_81 == -1) {
                                            boolean v10_63 = new String[2];
                                            v10_63[0] = v3_0;
                                            v10_63[1] = v7_0;
                                            v16_5 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_4 = v10_63;
                                        } else {
                                            int v13_37 = new String[3];
                                            v13_37[0] = v3_0;
                                            v13_37[1] = v7_0;
                                            v13_37[2] = String.valueOf(v5_81);
                                            v16_5 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_4 = v13_37;
                                        }
                                        v6_5 = v15_2;
                                        String v5_17 = v25.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_5, v17_4, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_17.moveToFirst()) {
                                                v4_40.zzgt().zzjj().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0));
                                                if (v5_17 == null) {
                                                } else {
                                                    v5_17.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_9) {
                                            com.google.android.gms.measurement.internal.zzac v2_7 = v0_9;
                                            v6_5 = v5_17;
                                            if (v6_5 != null) {
                                                v6_5.close();
                                            }
                                            throw v2_7;
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            v7_0 = v3_0;
                                            v6_5 = v5_17;
                                            String v3_1 = v0_2;
                                            v4_40.zzgt().zzjg().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_0), v3_1);
                                            if (v6_5 == null) {
                                            } else {
                                                v6_5.close();
                                            }
                                        }
                                        do {
                                            String v6_28 = v5_17.getLong(0);
                                            long v12_48 = v5_17.getBlob(3);
                                            boolean v10_68 = com.google.android.gms.internal.measurement.zzxz.zzj(v12_48, 0, v12_48.length);
                                            long v12_50 = new com.google.android.gms.internal.measurement.zzft();
                                            v12_50.zza(v10_68);
                                            v12_50.name = v5_17.getString(1);
                                            v12_50.zzaxb = Long.valueOf(v5_17.getLong(2));
                                            if (v2_29.zza(v6_28, v12_50)) {
                                            } else {
                                                if (v5_17 == null) {
                                                } else {
                                                    v5_17.close();
                                                }
                                            }
                                        } while(v5_17.moveToNext());
                                        if (v5_17 == null) {
                                        } else {
                                            v5_17.close();
                                        }
                                    } else {
                                        v4_40.zzgt().zzjg().zzg("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0));
                                        if (v15_2 == null) {
                                        } else {
                                            v15_2.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_7) {
                                    v6_5 = v15_2;
                                    v2_7 = v0_7;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v6_5 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_10) {
                                    v2_7 = v0_10;
                                    v6_5 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v7_0 = v3_0;
                                    v6_5 = v15_2;
                                }
                                v7_0 = v3_0;
                            } catch (android.database.sqlite.SQLiteException v0_4) {
                                v2_7 = v0_4;
                                v6_5 = v23;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v7_0 = v3_0;
                                v6_5 = v23;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                                v3_0.close();
                            }
                        }
                    } else {
                        try {
                            int v13_47;
                            if (v5_81 == -1) {
                                v13_47 = new String[1];
                                v13_47[0] = String.valueOf(p63);
                            } else {
                                v13_47 = new String[2];
                                v13_47[0] = String.valueOf(v5_81);
                                v13_47[1] = String.valueOf(p63);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                            v6_5 = 0;
                            v7_0 = 0;
                        }
                        boolean v14_22;
                        if (v5_81 == -1) {
                            v14_22 = "";
                        } else {
                            v14_22 = "rowid <= ? and ";
                        }
                        String v3_122 = new StringBuilder((String.valueOf(v14_22).length() + 148));
                        v3_122.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_122.append(v14_22);
                        v3_122.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_3.rawQuery(v3_122.toString(), v13_47);
                        if (v3_0.moveToFirst()) {
                            long v7_2 = v3_0.getString(0);
                            try {
                                int v13_4 = v3_0.getString(1);
                                v3_0.close();
                                v23 = v3_0;
                                v3_0 = v7_2;
                                v7_0 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v6_5 = v3_0;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                                v3_0.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_3) {
                    v2_7 = v0_3;
                    v6_5 = v3_0;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v6_5 = v3_0;
                    v7_0 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v2_7 = v0_1;
                v6_5 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v3_1 = v0_0;
                v6_5 = 0;
                v7_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
            }
        } catch (android.database.sqlite.SQLiteException v0_6) {
            com.google.android.gms.measurement.internal.zzac v2_30 = v0_6;
            this.zzjt().endTransaction();
            throw v2_30;
        }
    }

Method com.google.android.gms.measurement.internal.zzt.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_8 = this.getWritableDatabase();
        try {
            String[] v5_1 = new String[2];
            v5_1[0] = p13;
            v5_1[1] = p14;
            int v14_1 = v1_8.query("property_filters", new String[] {"audience_id", "data"}), "app_id=? AND property_name=?", v5_1, 0, 0, 0);
            try {
                if (!v14_1.moveToFirst()) {
                    java.util.Map v0_3 = java.util.Collections.emptyMap();
                    if (v14_1 != 0) {
                        v14_1.close();
                    }
                    return v0_3;
                }
            } catch (java.util.Map v0_0) {
                this.zzgt().zzjg().zze("Database error querying filters. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p13), v0_0);
                if (v14_1 != 0) {
                    v14_1.close();
                }
                return 0;
            }
            do {
                Integer v1_1 = v14_1.getBlob(1);
                Integer v1_2 = com.google.android.gms.internal.measurement.zzxz.zzj(v1_1, 0, v1_1.length);
                com.google.android.gms.measurement.internal.zzau v2_2 = new com.google.android.gms.internal.measurement.zzfm();
                v2_2.zza(v1_2);
                Integer v1_4 = v14_1.getInt(0);
                java.util.ArrayList v3_5 = ((java.util.List) v0_2.get(Integer.valueOf(v1_4)));
                if (v3_5 == null) {
                    v3_5 = new java.util.ArrayList();
                    v0_2.put(Integer.valueOf(v1_4), v3_5);
                }
                v3_5.add(v2_2);
            } while(v14_1.moveToNext());
            if (v14_1 != 0) {
                v14_1.close();
            }
            return v0_2;
        } catch (Throwable v13_1) {
            v14_1 = 0;
            if (v14_1 != 0) {
                v14_1.close();
            }
            throw v13_1;
        } catch (java.util.Map v0_0) {
            v14_1 = 0;
        } catch (Throwable v13_1) {
        }
    }

Method com.google.android.gms.measurement.internal.zzt.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_8 = this.getWritableDatabase();
        try {
            String[] v5_1 = new String[2];
            v5_1[0] = p13;
            v5_1[1] = p14;
            int v14_1 = v1_8.query("event_filters", new String[] {"audience_id", "data"}), "app_id=? AND event_name=?", v5_1, 0, 0, 0);
            try {
                if (!v14_1.moveToFirst()) {
                    java.util.Map v0_3 = java.util.Collections.emptyMap();
                    if (v14_1 != 0) {
                        v14_1.close();
                    }
                    return v0_3;
                }
            } catch (java.util.Map v0_0) {
                this.zzgt().zzjg().zze("Database error querying filters. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p13), v0_0);
                if (v14_1 != 0) {
                    v14_1.close();
                }
                return 0;
            }
            do {
                Integer v1_1 = v14_1.getBlob(1);
                Integer v1_2 = com.google.android.gms.internal.measurement.zzxz.zzj(v1_1, 0, v1_1.length);
                com.google.android.gms.measurement.internal.zzau v2_2 = new com.google.android.gms.internal.measurement.zzfj();
                v2_2.zza(v1_2);
                Integer v1_4 = v14_1.getInt(0);
                java.util.ArrayList v3_5 = ((java.util.List) v0_2.get(Integer.valueOf(v1_4)));
                if (v3_5 == null) {
                    v3_5 = new java.util.ArrayList();
                    v0_2.put(Integer.valueOf(v1_4), v3_5);
                }
                v3_5.add(v2_2);
            } while(v14_1.moveToNext());
            if (v14_1 != 0) {
                v14_1.close();
            }
            return v0_2;
        } catch (Throwable v13_1) {
            v14_1 = 0;
            if (v14_1 != 0) {
                v14_1.close();
            }
            throw v13_1;
        } catch (java.util.Map v0_0) {
            v14_1 = 0;
        } catch (Throwable v13_1) {
        }
    }

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


    public final com.google.android.gms.measurement.internal.zzo zzj(String p31, String p32)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p31);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p32);
        this.zzaf();
        this.zzcl();
        try {
            int v9_1 = this.getWritableDatabase();
            String[] v13 = "active";
            String v15 = "trigger_timeout";
            com.google.android.gms.measurement.internal.zzfv v17 = "creation_timestamp";
            String v19 = "triggered_timestamp";
            v13 = new String[2];
            v13[0] = p31;
            v13[1] = p32;
            int v9_0 = v9_1.query("conditional_properties", new String[] {"origin", "expired_event"}), "app_id=? and name=?", v13, 0, 0, 0);
            try {
                if (v9_0.moveToFirst()) {
                    String v16_1 = v9_0.getString(0);
                    try {
                        int v20;
                        String v5_4 = this.zza(v9_0, 1);
                    } catch (android.database.sqlite.SQLiteException v0_0) {
                    }
                    if (v9_0.getInt(2) == 0) {
                        v20 = 0;
                    } else {
                        v20 = 1;
                    }
                    String v21_1 = v9_0.getString(3);
                    long v23 = v9_0.getLong(4);
                    com.google.android.gms.measurement.internal.zzag v22_1 = ((com.google.android.gms.measurement.internal.zzag) this.zzjr().zza(v9_0.getBlob(5), com.google.android.gms.measurement.internal.zzag.CREATOR));
                    long v18 = v9_0.getLong(6);
                    com.google.android.gms.measurement.internal.zzag v25_1 = ((com.google.android.gms.measurement.internal.zzag) this.zzjr().zza(v9_0.getBlob(7), com.google.android.gms.measurement.internal.zzag.CREATOR));
                    String v3_5 = v9_0.getLong(8);
                    long v26 = v9_0.getLong(9);
                    com.google.android.gms.measurement.internal.zzag v28_1 = ((com.google.android.gms.measurement.internal.zzag) this.zzjr().zza(v9_0.getBlob(10), com.google.android.gms.measurement.internal.zzag.CREATOR));
                    v17 = new com.google.android.gms.measurement.internal.zzfv;
                    v17(p32, v3_5, v5_4, v16_1);
                    com.google.android.gms.measurement.internal.zzo v1_2 = new com.google.android.gms.measurement.internal.zzo;
                    v1_2(p31, v16_1, v17, v18, v20, v21_1, v22_1, v23, v25_1, v26, v28_1);
                    if (v9_0.moveToNext()) {
                        this.zzgt().zzjg().zze("Got multiple records for conditional property, expected one", com.google.android.gms.measurement.internal.zzas.zzbw(p31), this.zzgq().zzbv(p32));
                    }
                    if (v9_0 != 0) {
                        v9_0.close();
                    }
                    return v1_2;
                } else {
                    if (v9_0 != 0) {
                        v9_0.close();
                    }
                    return 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                com.google.android.gms.measurement.internal.zzo v1_4 = v0_1;
                if (v9_0 != 0) {
                    v9_0.close();
                }
                throw v1_4;
            } catch (android.database.sqlite.SQLiteException v0_0) {
            }
            com.google.android.gms.measurement.internal.zzo v1_3 = v0_0;
            this.zzgt().zzjg().zzd("Error querying conditional property", com.google.android.gms.measurement.internal.zzas.zzbw(p31), this.zzgq().zzbv(p32), v1_3);
            if (v9_0 != 0) {
                v9_0.close();
            }
            return 0;
        } catch (android.database.sqlite.SQLiteException v0_3) {
            v1_4 = v0_3;
            v9_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_2) {
            v1_3 = v0_2;
            v9_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_1) {
        }
    }

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


    public final com.google.android.gms.measurement.internal.zzfx zzi(String p20, String p21)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p20);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p21);
        this.zzaf();
        this.zzcl();
        try {
            int v10_1 = this.getWritableDatabase();
            String[] v14 = new String[2];
            v14[0] = p20;
            v14[1] = p21;
            int v10_0 = v10_1.query("user_attributes", new String[] {"set_timestamp", "value", "origin"}), "app_id=? and name=?", v14, 0, 0, 0);
            try {
                if (v10_0.moveToFirst()) {
                    try {
                        com.google.android.gms.measurement.internal.zzfx v12_1 = new com.google.android.gms.measurement.internal.zzfx;
                        v12_1(p20, v10_0.getString(2), p21, v10_0.getLong(0), this.zza(v10_0, 1));
                    } catch (android.database.sqlite.SQLiteException v0_2) {
                    }
                    if (v10_0.moveToNext()) {
                        this.zzgt().zzjg().zzg("Got multiple records for user property, expected one. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p20));
                    }
                    if (v10_0 != 0) {
                        v10_0.close();
                    }
                    return v12_1;
                } else {
                    if (v10_0 != 0) {
                        v10_0.close();
                    }
                    return 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_3) {
                com.google.android.gms.measurement.internal.zzau v1_2 = v0_3;
                if (v10_0 != 0) {
                    v10_0.close();
                }
                throw v1_2;
            } catch (android.database.sqlite.SQLiteException v0_2) {
            }
            com.google.android.gms.measurement.internal.zzau v1_1 = v0_2;
            this.zzgt().zzjg().zzd("Error querying user property. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p20), this.zzgq().zzbv(p21), v1_1);
            if (v10_0 != 0) {
                v10_0.close();
            }
            return 0;
        } catch (android.database.sqlite.SQLiteException v0_1) {
            v1_2 = v0_1;
            v10_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v1_1 = v0_0;
            v10_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_3) {
        }
    }

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


    public final com.google.android.gms.measurement.internal.zzac zzg(String p25, String p26)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p25);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p26);
        this.zzaf();
        this.zzcl();
        try {
            int v1_12 = this.getWritableDatabase();
            String v5 = "last_fire_timestamp";
            int v7 = "last_bundled_day";
            int v9 = "last_sampling_rate";
            String v5_2 = new String[2];
            v5_2[0] = p25;
            int v11 = 1;
            v5_2[1] = p26;
            int v14 = v1_12.query("events", new String[] {"lifetime_count", "last_exempt_from_sampling"}), "app_id=? and name=?", v5_2, 0, 0, 0);
            try {
                if (v14.moveToFirst()) {
                    int v1_6;
                    Object v4_3 = v14.getLong(0);
                    long v6_2 = v14.getLong(1);
                    long v8_1 = v14.getLong(2);
                    if (!v14.isNull(3)) {
                        v1_6 = v14.getLong(3);
                    } else {
                        v1_6 = 0;
                    }
                    Long v17;
                    if (!v14.isNull(4)) {
                        v17 = Long.valueOf(v14.getLong(4));
                    } else {
                        v17 = 0;
                    }
                    Long v18;
                    if (!v14.isNull(5)) {
                        v18 = Long.valueOf(v14.getLong(5));
                    } else {
                        v18 = 0;
                    }
                    Long v19;
                    if (!v14.isNull(6)) {
                        v19 = Long.valueOf(v14.getLong(6));
                    } else {
                        v19 = 0;
                    }
                    Boolean v20_0;
                    if (v14.isNull(7)) {
                        v20_0 = 0;
                    } else {
                        try {
                            if (v14.getLong(7) != 1) {
                                v11 = 0;
                            } else {
                            }
                        } catch (android.database.sqlite.SQLiteException v0_0) {
                            int v1_2 = v0_0;
                            this.zzgt().zzjg().zzd("Error querying events. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p25), this.zzgq().zzbt(p26), v1_2);
                            if (v14 != 0) {
                                v14.close();
                            }
                            return 0;
                        }
                        v20_0 = Boolean.valueOf(v11);
                    }
                    com.google.android.gms.measurement.internal.zzac v21 = new com.google.android.gms.measurement.internal.zzac;
                    int v22 = v14;
                    v14 = v19;
                    try {
                        v21(p25, p26, v4_3, v6_2, v8_1, v1_6, v17, v18, v14, v20_0);
                        int v1_1 = v22;
                        try {
                            if (v1_1.moveToNext()) {
                                this.zzgt().zzjg().zzg("Got multiple records for event aggregates, expected one. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p25));
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            v14 = v1_1;
                            int v1_3 = v0_1;
                            if (v14 != 0) {
                                v14.close();
                            }
                            throw v1_3;
                        } catch (android.database.sqlite.SQLiteException v0_0) {
                            v14 = v1_1;
                        }
                        if (v1_1 != 0) {
                            v1_1.close();
                        }
                        return v21;
                    } catch (android.database.sqlite.SQLiteException v0_1) {
                        v1_1 = v22;
                    } catch (android.database.sqlite.SQLiteException v0_0) {
                        v1_1 = v22;
                    }
                } else {
                    if (v14 != 0) {
                        v14.close();
                    }
                    return 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
            } catch (android.database.sqlite.SQLiteException v0_0) {
            }
        } catch (android.database.sqlite.SQLiteException v0_3) {
            v1_3 = v0_3;
            v14 = 0;
        } catch (android.database.sqlite.SQLiteException v0_2) {
            v1_2 = v0_2;
            v14 = 0;
        } catch (android.database.sqlite.SQLiteException v0_1) {
        }
    }

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


    final java.util.Map zzbp(String p12)
    {
        this.zzcl();
        this.zzaf();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p12);
        int v0_1 = this.getWritableDatabase();
        try {
            com.google.android.gms.measurement.internal.zzau v4_0 = new String[1];
            v4_0[0] = p12;
            int v0_0 = v0_1.query("audience_filter_values", new String[] {"audience_id", "current_results"}), "app_id=?", v4_0, 0, 0, 0);
            try {
                if (v0_0.moveToFirst()) {
                    android.support.v4.util.ArrayMap v1_3 = new android.support.v4.util.ArrayMap();
                    do {
                        boolean v2_1 = v0_0.getInt(0);
                        java.io.IOException v3_1 = v0_0.getBlob(1);
                        java.io.IOException v3_2 = com.google.android.gms.internal.measurement.zzxz.zzj(v3_1, 0, v3_1.length);
                        com.google.android.gms.measurement.internal.zzau v4_3 = new com.google.android.gms.internal.measurement.zzfx();
                        v4_3.zza(v3_2);
                        v1_3.put(Integer.valueOf(v2_1), v4_3);
                    } while(v0_0.moveToNext());
                    if (v0_0 != 0) {
                        v0_0.close();
                    }
                    return v1_3;
                } else {
                    if (v0_0 != 0) {
                        v0_0.close();
                    }
                    return 0;
                }
            } catch (android.support.v4.util.ArrayMap v1_0) {
                this.zzgt().zzjg().zze("Database error querying filter results. appId", com.google.android.gms.measurement.internal.zzas.zzbw(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.zzt.zzbo() calling method android.database.sqlite.SQLiteDatabase.query()


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

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


    public final com.google.android.gms.measurement.internal.zzg zzbm(String p32)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p32);
        this.zzaf();
        this.zzcl();
        try {
            Throwable v3_2 = this.getWritableDatabase();
            String v7 = "resettable_device_id_hash";
            int v9 = "last_bundle_start_timestamp";
            int v11 = "app_version";
            String v13 = "gmp_version";
            String v15 = "measurement_enabled";
            String v17 = "daily_public_events_count";
            String v19 = "daily_conversions_count";
            String v21 = "failed_config_fetch_time";
            String v23 = "firebase_instance_id";
            String v25 = "daily_realtime_events_count";
            String v27 = "android_id";
            String v29 = "ssaid_reporting_enabled";
            String v7_7 = new String[1];
            int v12 = 0;
            v7_7[0] = p32;
            Throwable v3_1 = v3_2.query("apps", new String[] {"app_instance_id", "admob_app_id"}), "app_id=?", v7_7, 0, 0, 0);
            try {
                if (v3_1.moveToFirst()) {
                    try {
                        com.google.android.gms.measurement.internal.zzau v6_4;
                        com.google.android.gms.measurement.internal.zzg v4_3 = new com.google.android.gms.measurement.internal.zzg(this.zzamv.zzmh(), p32);
                        v4_3.zzaj(v3_1.getString(0));
                        v4_3.zzak(v3_1.getString(1));
                        v4_3.zzam(v3_1.getString(2));
                        v4_3.zzt(v3_1.getLong(3));
                        v4_3.zzo(v3_1.getLong(4));
                        v4_3.zzp(v3_1.getLong(5));
                        v4_3.setAppVersion(v3_1.getString(6));
                        v4_3.zzao(v3_1.getString(7));
                        v4_3.zzr(v3_1.getLong(8));
                        v4_3.zzs(v3_1.getLong(9));
                    } catch (android.database.sqlite.SQLiteException v0_2) {
                    } catch (android.database.sqlite.SQLiteException v0_0) {
                        com.google.android.gms.measurement.internal.zzg v4_0 = v3_1;
                        Throwable v3_0 = v0_0;
                        try {
                            this.zzgt().zzjg().zze("Error querying app. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p32), v3_0);
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            Throwable v1_2 = v0_1;
                            v3_1 = v4_0;
                            if (v3_1 != null) {
                                v3_1.close();
                            }
                            throw v1_2;
                        }
                        if (v4_0 != null) {
                            v4_0.close();
                        }
                        return 0;
                    }
                    if (v3_1.isNull(10)) {
                        v6_4 = 1;
                    } else {
                        if (v3_1.getInt(10) == 0) {
                            v6_4 = 0;
                        } else {
                        }
                    }
                    com.google.android.gms.measurement.internal.zzau v6_19;
                    v4_3.setMeasurementEnabled(v6_4);
                    v4_3.zzw(v3_1.getLong(11));
                    v4_3.zzx(v3_1.getLong(12));
                    v4_3.zzy(v3_1.getLong(13));
                    v4_3.zzz(v3_1.getLong(14));
                    v4_3.zzu(v3_1.getLong(15));
                    v4_3.zzv(v3_1.getLong(16));
                    if (!v3_1.isNull(17)) {
                        v6_19 = ((long) v3_1.getInt(17));
                    } else {
                        v6_19 = -2147483648;
                    }
                    com.google.android.gms.measurement.internal.zzau v6_29;
                    v4_3.zzq(v6_19);
                    v4_3.zzan(v3_1.getString(18));
                    v4_3.zzab(v3_1.getLong(19));
                    v4_3.zzaa(v3_1.getLong(20));
                    v4_3.zzap(v3_1.getString(21));
                    if (!v3_1.isNull(22)) {
                        v6_29 = v3_1.getLong(22);
                    } else {
                        v6_29 = 0;
                    }
                    com.google.android.gms.measurement.internal.zzau v6_32;
                    v4_3.zzac(v6_29);
                    if (v3_1.isNull(23)) {
                        v6_32 = 1;
                    } else {
                        if (v3_1.getInt(23) == 0) {
                            v6_32 = 0;
                        } else {
                        }
                    }
                    v4_3.zze(v6_32);
                    if ((v3_1.isNull(24)) || (v3_1.getInt(24) != 0)) {
                        v12 = 1;
                    }
                    v4_3.zzf(v12);
                    v4_3.zzal(v3_1.getString(25));
                    v4_3.zzha();
                    if (v3_1.moveToNext()) {
                        this.zzgt().zzjg().zzg("Got multiple records for app, expected one. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p32));
                    }
                    if (v3_1 != null) {
                        v3_1.close();
                    }
                    return v4_3;
                } else {
                    if (v3_1 != null) {
                        v3_1.close();
                    }
                    return 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_2) {
            } catch (android.database.sqlite.SQLiteException v0_0) {
            }
            v1_2 = v0_2;
        } catch (android.database.sqlite.SQLiteException v0_4) {
            v1_2 = v0_4;
            v3_1 = 0;
        } catch (android.database.sqlite.SQLiteException v0_3) {
            v3_0 = v0_3;
            v4_0 = 0;
        }
    }

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


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

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


    public final java.util.List zzb(String p26, String[] p27)
    {
        this.zzaf();
        this.zzcl();
        android.database.sqlite.SQLiteException v1_4 = new java.util.ArrayList();
        boolean v2_4 = 0;
        try {
            com.google.android.gms.measurement.internal.zzfv v7 = "name";
            int v9 = "active";
            String v11 = "trigger_timeout";
            long v13 = "creation_timestamp";
            com.google.android.gms.measurement.internal.zzag v15 = "triggered_timestamp";
            com.google.android.gms.measurement.internal.zzau v3_2 = this.getWritableDatabase().query("conditional_properties", new String[] {"app_id", "expired_event"}), p26, p27, 0, 0, "rowid", "1001");
            try {
                if (!v3_2.moveToFirst()) {
                    if (v3_2 != null) {
                        v3_2.close();
                    }
                    return v1_4;
                }
            } catch (android.database.sqlite.SQLiteException v0_2) {
                android.database.sqlite.SQLiteException v1_2 = v0_2;
                if (v3_2 != null) {
                    v3_2.close();
                }
                throw v1_2;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                android.database.sqlite.SQLiteException v1_0 = v0_0;
                v2_4 = v3_2;
                this.zzgt().zzjg().zzg("Error querying conditional user property value", v1_0);
                android.database.sqlite.SQLiteException v1_1 = java.util.Collections.emptyList();
                if (v2_4) {
                    v2_4.close();
                }
                return v1_1;
            }
            while (v1_4.size() < 1000) {
                boolean v2_7 = 0;
                String v5_2 = v3_2.getString(0);
                com.google.android.gms.measurement.internal.zzag v12_1 = v3_2.getString(1);
                com.google.android.gms.measurement.internal.zzfv v7_2 = v3_2.getString(2);
                int v10_2 = this.zza(v3_2, 3);
                if (v3_2.getInt(4) != 0) {
                    v2_7 = 1;
                }
                long v13_1 = v3_2.getString(5);
                long v16_1 = v3_2.getLong(6);
                com.google.android.gms.measurement.internal.zzag v14_1 = ((com.google.android.gms.measurement.internal.zzag) this.zzjr().zza(v3_2.getBlob(7), com.google.android.gms.measurement.internal.zzag.CREATOR));
                com.google.android.gms.measurement.internal.zzag v18_1 = v3_2.getLong(8);
                com.google.android.gms.measurement.internal.zzag v20_1 = ((com.google.android.gms.measurement.internal.zzag) this.zzjr().zza(v3_2.getBlob(9), com.google.android.gms.measurement.internal.zzag.CREATOR));
                long v8_4 = v3_2.getLong(10);
                long v21 = v3_2.getLong(11);
                com.google.android.gms.measurement.internal.zzag v23_1 = ((com.google.android.gms.measurement.internal.zzag) this.zzjr().zza(v3_2.getBlob(12), com.google.android.gms.measurement.internal.zzag.CREATOR));
                com.google.android.gms.measurement.internal.zzfv v24 = new com.google.android.gms.measurement.internal.zzfv;
                v24(v7_2, v8_4, v10_2, v12_1);
                String v11_1 = new com.google.android.gms.measurement.internal.zzo;
                boolean v2_0 = v11_1;
                v11_1(v5_2, v12_1, v24, v18_1, v2_7, v13_1, v14_1, v16_1, v20_1, v21, v23_1);
                v1_4.add(v2_0);
                if (!v3_2.moveToNext()) {
                }
                if (v3_2 != null) {
                    v3_2.close();
                }
                return v1_4;
            }
            this.zzgt().zzjg().zzg("Read more than the max allowed conditional properties, ignoring extra", Integer.valueOf(1000));
        } catch (android.database.sqlite.SQLiteException v0_1) {
            v1_2 = v0_1;
            v3_2 = v2_4;
        } catch (android.database.sqlite.SQLiteException v0_3) {
            v1_0 = v0_3;
        }
    }

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


    public final java.util.List zzb(String p24, String p25, String p26)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p24);
        this.zzaf();
        this.zzcl();
        android.database.sqlite.SQLiteException v1_3 = new java.util.ArrayList();
        android.database.Cursor v2 = 0;
        try {
            int v4_1 = 3;
            android.database.Cursor v3_4 = new java.util.ArrayList(3);
            try {
                String v6_1;
                v3_4.add(p24);
                com.google.android.gms.measurement.internal.zzfx v5_5 = new StringBuilder("app_id=?");
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v6_1 = p25;
                android.database.sqlite.SQLiteException v1_0 = v0_0;
                android.database.Cursor v3_3 = 0;
                this.zzgt().zzjg().zzd("(2)Error querying user properties", com.google.android.gms.measurement.internal.zzas.zzbw(p24), v6_1, v1_0);
                if (v3_3 != null) {
                    v3_3.close();
                }
                return 0;
            }
            if (android.text.TextUtils.isEmpty(p25)) {
                v6_1 = p25;
            } else {
                v6_1 = p25;
                v3_4.add(p25);
                v5_5.append(" and origin=?");
            }
            if (!android.text.TextUtils.isEmpty(p26)) {
                v3_4.add(String.valueOf(p26).concat("*"));
                v5_5.append(" and name glob ?");
            }
            String v7_9 = new String[v3_4.size()];
            v3_3 = this.getWritableDatabase().query("user_attributes", new String[] {"name", "set_timestamp", "value", "origin"}), v5_5.toString(), ((String[]) v3_4.toArray(v7_9)), 0, 0, "rowid", "1001");
            try {
                if (v3_3.moveToFirst()) {
                    while (v1_3.size() < 1000) {
                        String v8_2 = v3_3.getString(0);
                        long v9_1 = v3_3.getLong(1);
                        try {
                            Object v11 = this.zza(v3_3, 2);
                            String v14_1 = v3_3.getString(v4_1);
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                        }
                        if (v11 != null) {
                            String v7_12 = new com.google.android.gms.measurement.internal.zzfx;
                            int v4_6 = v7_12;
                            v7_12(p24, v14_1, v8_2, v9_1, v11);
                            v1_3.add(v4_6);
                        } else {
                            this.zzgt().zzjg().zzd("(2)Read invalid user property value, ignoring it", com.google.android.gms.measurement.internal.zzas.zzbw(p24), v14_1, p26);
                        }
                        if (v3_3.moveToNext()) {
                            v6_1 = v14_1;
                            v4_1 = 3;
                        }
                        if (v3_3 != null) {
                            v3_3.close();
                        }
                        return v1_3;
                    }
                    this.zzgt().zzjg().zzg("Read more than the max allowed user properties, ignoring excess", Integer.valueOf(1000));
                } else {
                    if (v3_3 != null) {
                        v3_3.close();
                    }
                    return v1_3;
                }
            } catch (android.database.sqlite.SQLiteException v0_3) {
                android.database.sqlite.SQLiteException v1_1 = v0_3;
                v2 = v3_3;
                if (v2 != null) {
                    v2.close();
                }
                throw v1_1;
            } catch (android.database.sqlite.SQLiteException v0_2) {
            }
            v1_0 = v0_2;
        } catch (android.database.sqlite.SQLiteException v0_4) {
            v1_1 = v0_4;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            String v12 = p24;
        } catch (android.database.sqlite.SQLiteException v0_3) {
        }
    }

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


    public final java.util.List zzb(String p13, int p14, int p15)
    {
        java.util.ArrayList v2_5;
        this.zzaf();
        this.zzcl();
        if (p14 <= null) {
            v2_5 = 0;
        } else {
            v2_5 = 1;
        }
        java.util.ArrayList v2_0;
        com.google.android.gms.common.internal.Preconditions.checkArgument(v2_5);
        if (p15 <= null) {
            v2_0 = 0;
        } else {
            v2_0 = 1;
        }
        com.google.android.gms.common.internal.Preconditions.checkArgument(v2_0);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
        java.util.ArrayList v2_1 = 0;
        try {
            int v3_0 = this.getWritableDatabase();
            Integer v7_1 = new String[1];
            v7_1[0] = p13;
            com.google.android.gms.measurement.internal.zzau v14_1 = v3_0.query("queue", new String[] {"rowid", "data", "retry_count"}), "app_id=?", v7_1, 0, 0, "rowid", String.valueOf(p14));
            try {
                if (v14_1.moveToFirst()) {
                    java.util.ArrayList v2_4 = new java.util.ArrayList();
                    int v3_1 = 0;
                    do {
                        android.util.Pair v4_2 = v14_1.getLong(0);
                        int v6_3 = this.zzjr().zza(v14_1.getBlob(1));
                        if ((!v2_4.isEmpty()) && ((v6_3.length + v3_1) > p15)) {
                            break;
                        }
                        Integer v7_8 = com.google.android.gms.internal.measurement.zzxz.zzj(v6_3, 0, v6_3.length);
                        com.google.android.gms.internal.measurement.zzfw v8_2 = new com.google.android.gms.internal.measurement.zzfw();
                        v8_2.zza(v7_8);
                        if (!v14_1.isNull(2)) {
                            v8_2.zzayj = Integer.valueOf(v14_1.getInt(2));
                        }
                        v3_1 += v6_3.length;
                        v2_4.add(android.util.Pair.create(v8_2, Long.valueOf(v4_2)));
                    } while((v14_1.moveToNext()) && (v3_1 <= p15));
                    if (v14_1 != null) {
                        v14_1.close();
                    }
                    return v2_4;
                } else {
                    java.util.List v15_1 = java.util.Collections.emptyList();
                    if (v14_1 != null) {
                        v14_1.close();
                    }
                    return v15_1;
                }
            } catch (Throwable v13_3) {
                if (v14_1 != null) {
                    v14_1.close();
                }
                throw v13_3;
            } catch (java.util.List v15_2) {
                v2_1 = v14_1;
                this.zzgt().zzjg().zze("Error querying bundles. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p13), v15_2);
                Throwable v13_2 = java.util.Collections.emptyList();
                if (v2_1 != null) {
                    v2_1.close();
                }
                return v13_2;
            }
        } catch (Throwable v13_3) {
            v14_1 = v2_1;
        } catch (java.util.List v15_2) {
        }
    }

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


    public final com.google.android.gms.measurement.internal.zzu zza(long p18, String p20, boolean p21, boolean p22, boolean p23, boolean p24, boolean p25)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p20);
        this.zzaf();
        this.zzcl();
        String v3_1 = new String[1];
        v3_1[0] = p20;
        com.google.android.gms.measurement.internal.zzu v5_1 = new com.google.android.gms.measurement.internal.zzu();
        int v6_1 = 0;
        try {
            android.database.sqlite.SQLiteDatabase v15 = this.getWritableDatabase();
            String[] v11 = "daily_public_events_count";
            int v13 = "daily_error_events_count";
            v11 = new String[1];
            v11[0] = p20;
            int v7_1 = v15.query("apps", new String[] {"day", "daily_realtime_events_count"}), "app_id=?", v11, 0, 0, 0);
            try {
                if (v7_1.moveToFirst()) {
                    if (v7_1.getLong(0) == p18) {
                        v5_1.zzahi = v7_1.getLong(1);
                        v5_1.zzahh = v7_1.getLong(2);
                        v5_1.zzahj = v7_1.getLong(3);
                        v5_1.zzahk = v7_1.getLong(4);
                        v5_1.zzahl = v7_1.getLong(5);
                    }
                    if (p21) {
                        v5_1.zzahi = (v5_1.zzahi + 1);
                    }
                    if (p22) {
                        v5_1.zzahh = (v5_1.zzahh + 1);
                    }
                    if (p23) {
                        v5_1.zzahj = (v5_1.zzahj + 1);
                    }
                    if (p24) {
                        v5_1.zzahk = (v5_1.zzahk + 1);
                    }
                    if (p25) {
                        v5_1.zzahl = (v5_1.zzahl + 1);
                    }
                    android.content.ContentValues v1_2 = new android.content.ContentValues();
                    v1_2.put("day", Long.valueOf(p18));
                    v1_2.put("daily_public_events_count", Long.valueOf(v5_1.zzahh));
                    v1_2.put("daily_events_count", Long.valueOf(v5_1.zzahi));
                    v1_2.put("daily_conversions_count", Long.valueOf(v5_1.zzahj));
                    v1_2.put("daily_error_events_count", Long.valueOf(v5_1.zzahk));
                    v1_2.put("daily_realtime_events_count", Long.valueOf(v5_1.zzahl));
                    v15.update("apps", v1_2, "app_id=?", v3_1);
                    if (v7_1 != 0) {
                        v7_1.close();
                    }
                    return v5_1;
                } else {
                    this.zzgt().zzjj().zzg("Not updating daily counts, app is not known. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p20));
                    if (v7_1 != 0) {
                        v7_1.close();
                    }
                    return v5_1;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                android.content.ContentValues v1_0 = v0_0;
                if (v7_1 != 0) {
                    v7_1.close();
                }
                throw v1_0;
            } catch (android.database.sqlite.SQLiteException v0_2) {
                android.content.ContentValues v1_3 = v0_2;
                v6_1 = v7_1;
                this.zzgt().zzjg().zze("Error updating daily counts. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p20), v1_3);
                if (v6_1 != 0) {
                    v6_1.close();
                }
                return v5_1;
            }
        } catch (android.database.sqlite.SQLiteException v0_3) {
            v1_0 = v0_3;
            v7_1 = v6_1;
        } catch (android.database.sqlite.SQLiteException v0_1) {
            v1_3 = v0_1;
        }
    }

Method com.google.android.gms.measurement.internal.zzao.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()
    {
        IllegalStateException v0_7 = System.currentTimeMillis();
        android.database.Cursor v2_0 = this.database.query("writes", new String[] {"id", "path", "type", "part", "node"}), 0, 0, 0, 0, "id, part");
        String v3_2 = new java.util.ArrayList();
        try {
            while (v2_0.moveToNext()) {
                com.google.firebase.database.core.UserWriteRecord v5_11;
                long v9_1 = v2_0.getLong(0);
                com.google.firebase.database.core.Path v11_2 = new com.google.firebase.database.core.Path(v2_0.getString(1));
                com.google.firebase.database.core.UserWriteRecord v4_7 = v2_0.getString(2);
                if (!v2_0.isNull(3)) {
                    com.google.firebase.database.core.UserWriteRecord v5_10 = new java.util.ArrayList();
                    do {
                        v5_10.add(v2_0.getBlob(4));
                    } while((v2_0.moveToNext()) && (v2_0.getLong(0) == v9_1));
                    v2_0.moveToPrevious();
                    v5_11 = this.joinBytes(v5_10);
                } else {
                    v5_11 = v2_0.getBlob(4);
                }
                com.google.firebase.database.core.UserWriteRecord v4_1;
                com.google.firebase.database.core.UserWriteRecord v5_12 = com.google.firebase.database.util.JsonMapper.parseJsonValue(new String(v5_11, com.google.firebase.database.android.SqlPersistenceStorageEngine.UTF8_CHARSET));
                if (!"o".equals(v4_7)) {
                    if (!"m".equals(v4_7)) {
                        String v1_7 = new StringBuilder();
                        v1_7.append("Got invalid write type: ");
                        v1_7.append(v4_7);
                        throw new IllegalStateException(v1_7.toString());
                    } else {
                        v4_1 = new com.google.firebase.database.core.UserWriteRecord(v9_1, v11_2, com.google.firebase.database.core.CompoundWrite.fromValue(((java.util.Map) v5_12)));
                    }
                } else {
                    v4_1 = new com.google.firebase.database.core.UserWriteRecord;
                    v4_1(v9_1, v11_2, com.google.firebase.database.snapshot.NodeUtilities.NodeFromJSON(v5_12), 1);
                }
                v3_2.add(v4_1);
            }
        } catch (IllegalStateException v0_3) {
            v2_0.close();
            throw v0_3;
        } catch (IllegalStateException v0_2) {
            throw new RuntimeException("Failed to load writes", v0_2);
        }
        long v10_1 = (System.currentTimeMillis() - v0_7);
        if (this.logger.logsDebug()) {
            IllegalStateException v0_6 = this.logger;
            com.google.firebase.database.core.UserWriteRecord v4_3 = new Object[2];
            v4_3[0] = Integer.valueOf(v3_2.size());
            v4_3[1] = Long.valueOf(v10_1);
            com.google.firebase.database.core.UserWriteRecord v4_5 = new Object[0];
            v0_6.debug(String.format("Loaded %d writes in %dms", v4_3), v4_5);
        }
        v2_0.close();
        return v3_2;
    }

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


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

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


    public java.util.List loadTrackedQueries()
    {
        android.database.Cursor v4 = "queryParams";
        com.google.firebase.database.core.persistence.TrackedQuery v6 = "complete";
        RuntimeException v2_1 = System.currentTimeMillis();
        v4 = this.database.query("trackedQueries", new String[] {"id", "active"}), 0, 0, 0, 0, "id");
        java.util.ArrayList v5_1 = new java.util.ArrayList();
        try {
            while (v4.moveToNext()) {
                long v11_1 = v4.getLong(0);
                int v16;
                com.google.firebase.database.core.view.QuerySpec v13_1 = com.google.firebase.database.core.view.QuerySpec.fromPathAndQueryObject(new com.google.firebase.database.core.Path(v4.getString(1)), com.google.firebase.database.util.JsonMapper.parseJson(v4.getString(2)));
                long v14_1 = v4.getLong(3);
                if (v4.getInt(4) == 0) {
                    v16 = 0;
                } else {
                    v16 = 1;
                }
                int v17;
                if (v4.getInt(5) == 0) {
                    v17 = 0;
                } else {
                    v17 = 1;
                }
                com.google.firebase.database.core.persistence.TrackedQuery v6_10 = new com.google.firebase.database.core.persistence.TrackedQuery;
                v6_10(v11_1, v13_1, v14_1, v16, v17);
                v5_1.add(v6_10);
            }
        } catch (java.io.IOException v0_1) {
            RuntimeException v2_7 = v0_1;
            v4.close();
            throw v2_7;
        }
        long v12_1 = (System.currentTimeMillis() - v2_1);
        if (this.logger.logsDebug()) {
            RuntimeException v2_4 = this.logger;
            com.google.firebase.database.core.persistence.TrackedQuery v6_1 = new Object[2];
            v6_1[0] = Integer.valueOf(v5_1.size());
            v6_1[1] = Long.valueOf(v12_1);
            com.google.firebase.database.core.persistence.TrackedQuery v6_2 = new Object[0];
            v2_4.debug(String.format("Loaded %d tracked queries in %dms", v6_1), v6_2);
        }
        v4.close();
        return v5_1;
    }

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.zzfo.zzd() calling method android.database.sqlite.SQLiteDatabase.query()


    private final boolean zzd(String p62, long p63)
    {
        this.zzjt().beginTransaction();
        try {
            String v3_0 = 0;
            com.google.android.gms.measurement.internal.zzac v2_29 = new com.google.android.gms.measurement.internal.zzfo$zza(this, 0);
            Object v4_40 = this.zzjt();
            String v5_81 = this.zzauc;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_29);
            v4_40.zzaf();
            v4_40.zzcl();
            try {
                long v7_0;
                int v23;
                Long v15_3 = v4_40.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        String v3_85;
                        if (v5_81 == -1) {
                            v3_85 = new String[] {0});
                        } else {
                            v3_85 = new String[2];
                            v3_85[0] = 0;
                            v3_85[1] = String.valueOf(v5_81);
                        }
                        long v7_59;
                        if (v5_81 == -1) {
                            v7_59 = "";
                        } else {
                            v7_59 = " and rowid <= ?";
                        }
                        boolean v14_15 = new StringBuilder((String.valueOf(v7_59).length() + 84));
                        v14_15.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_15.append(v7_59);
                        v14_15.append(" order by rowid limit 1;");
                        v3_0 = v15_3.rawQuery(v14_15.toString(), v3_85);
                        if (v3_0.moveToFirst()) {
                            int v13_45 = v3_0.getString(0);
                            v3_0.close();
                            v23 = v3_0;
                            v7_0 = v13_45;
                            v3_0 = 0;
                            try {
                                int v13_12 = new String[2];
                                v13_12[0] = v3_0;
                                v13_12[1] = v7_0;
                                android.database.sqlite.SQLiteDatabase v25 = v15_3;
                                Long v15_2 = v15_3.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_12, 0, 0, "rowid", "2");
                                try {
                                    if (v15_2.moveToFirst()) {
                                        int v13_24 = v15_2.getBlob(0);
                                        int v13_26 = com.google.android.gms.internal.measurement.zzxz.zzj(v13_24, 0, v13_24.length);
                                        boolean v14_10 = new com.google.android.gms.internal.measurement.zzfw();
                                        try {
                                            v14_10.zza(v13_26);
                                        } catch (android.database.sqlite.SQLiteException v0_5) {
                                            String v6_5 = v15_2;
                                            v4_40.zzgt().zzjg().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0), v0_5);
                                            if (v6_5 == null) {
                                                String v3_89;
                                                if (v2_29.zzaui == null) {
                                                    v3_89 = 1;
                                                } else {
                                                    if (!v2_29.zzaui.isEmpty()) {
                                                        v3_89 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_89 != null) {
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 0;
                                                } else {
                                                    String v3_81 = v2_29.zzaug;
                                                    Object v4_4 = new com.google.android.gms.internal.measurement.zzft[v2_29.zzaui.size()];
                                                    v3_81.zzaxi = v4_4;
                                                    Object v4_7 = this.zzada.zzgv().zzau(v3_81.zztt);
                                                    String v5_24 = this.zzada.zzgv().zze(v2_29.zzaug.zztt, com.google.android.gms.measurement.internal.zzai.zzala);
                                                    Boolean v8_16 = 0;
                                                    int v9_9 = 0;
                                                    boolean v10_60 = 0;
                                                    long v12_44 = 0;
                                                    int v13_27 = 0;
                                                    boolean v14_11 = 0;
                                                    while(true) {
                                                        com.google.android.gms.internal.measurement.zzft v26 = v12_44;
                                                        if (v10_60 >= v2_29.zzaui.size()) {
                                                            break;
                                                        }
                                                        com.google.android.gms.measurement.internal.zzac v2_22;
                                                        com.google.android.gms.measurement.internal.zzac v27_0;
                                                        long v7_35;
                                                        String v6_21 = ((com.google.android.gms.internal.measurement.zzft) v2_29.zzaui.get(v10_60));
                                                        if (!this.zzls().zzo(v2_29.zzaug.zztt, v6_21.name)) {
                                                            long v32_0;
                                                            String v45_0;
                                                            v27_0 = v10_60;
                                                            String v28_0 = v13_27;
                                                            long v7_7 = this.zzls().zzp(v2_29.zzaug.zztt, v6_21.name);
                                                            if (v7_7 != 0) {
                                                                if (v6_21.zzaxa == null) {
                                                                    long v12_18 = new com.google.android.gms.internal.measurement.zzfu[0];
                                                                    v6_21.zzaxa = v12_18;
                                                                }
                                                                boolean v11_12 = v6_21.zzaxa;
                                                                long v12_19 = v11_12.length;
                                                                int v13_9 = 0;
                                                                long v16_1 = 0;
                                                                int v17_0 = 0;
                                                                while (v13_9 < v12_19) {
                                                                    long v32_1;
                                                                    boolean v10_50 = v11_12[v13_9];
                                                                    long v30_0 = v11_12;
                                                                    long v31_0 = v12_19;
                                                                    if (!"_c".equals(v10_50.name)) {
                                                                        v32_1 = v3_81;
                                                                        if ("_r".equals(v10_50.name)) {
                                                                            v10_50.zzaxe = Long.valueOf(1);
                                                                            v17_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v32_1 = v3_81;
                                                                        v10_50.zzaxe = Long.valueOf(1);
                                                                        v16_1 = 1;
                                                                    }
                                                                    v13_9++;
                                                                    v11_12 = v30_0;
                                                                    v12_19 = v31_0;
                                                                    v3_81 = v32_1;
                                                                }
                                                                v32_0 = v3_81;
                                                                if ((v16_1 == 0) && (v7_7 != 0)) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as conversion", this.zzada.zzgq().zzbt(v6_21.name));
                                                                    String v3_8 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_21.zzaxa, (v6_21.zzaxa.length + 1)));
                                                                    boolean v10_10 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v10_10.name = "_c";
                                                                    v10_10.zzaxe = Long.valueOf(1);
                                                                    v3_8[(v3_8.length - 1)] = v10_10;
                                                                    v6_21.zzaxa = v3_8;
                                                                }
                                                                if (v17_0 == 0) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as real-time", this.zzada.zzgq().zzbt(v6_21.name));
                                                                    String v3_14 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_21.zzaxa, (v6_21.zzaxa.length + 1)));
                                                                    boolean v10_16 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v10_16.name = "_r";
                                                                    v10_16.zzaxe = Long.valueOf(1);
                                                                    v3_14[(v3_14.length - 1)] = v10_16;
                                                                    v6_21.zzaxa = v3_14;
                                                                }
                                                                long v12_27;
                                                                if (this.zzjt().zza(this.zzly(), v2_29.zzaug.zztt, 0, 0, 0, 0, 1).zzahl <= ((long) this.zzada.zzgv().zzaq(v2_29.zzaug.zztt))) {
                                                                    v12_27 = 1;
                                                                } else {
                                                                    String v3_22 = 0;
                                                                    while (v3_22 < v6_21.zzaxa.length) {
                                                                        if (!"_r".equals(v6_21.zzaxa[v3_22].name)) {
                                                                            v3_22++;
                                                                        } else {
                                                                            boolean v10_25 = new com.google.android.gms.internal.measurement.zzfu[(v6_21.zzaxa.length - 1)];
                                                                            if (v3_22 > null) {
                                                                                System.arraycopy(v6_21.zzaxa, 0, v10_25, 0, v3_22);
                                                                            }
                                                                            if (v3_22 < v10_25.length) {
                                                                                System.arraycopy(v6_21.zzaxa, (v3_22 + 1), v10_25, v3_22, (v10_25.length - v3_22));
                                                                            }
                                                                            v6_21.zzaxa = v10_25;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_27 = v26;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.zzfy.zzct(v6_21.name)) || (v7_7 == 0)) {
                                                                    com.google.android.gms.internal.measurement.zzft v42 = v12_27;
                                                                    v45_0 = v14_11;
                                                                } else {
                                                                    v42 = v12_27;
                                                                    if (this.zzjt().zza(this.zzly(), v2_29.zzaug.zztt, 0, 0, 1, 0, 0).zzahj <= ((long) this.zzada.zzgv().zzb(v2_29.zzaug.zztt, com.google.android.gms.measurement.internal.zzai.zzajh))) {
                                                                    } else {
                                                                        this.zzada.zzgt().zzjj().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_29.zzaug.zztt));
                                                                        String v3_35 = v6_21.zzaxa;
                                                                        boolean v10_29 = v3_35.length;
                                                                        boolean v11_40 = 0;
                                                                        long v12_32 = 0;
                                                                        int v13_18 = 0;
                                                                        while (v11_40 < v10_29) {
                                                                            boolean v10_48 = v3_35[v11_40];
                                                                            if (!"_c".equals(v10_48.name)) {
                                                                                if ("_err".equals(v10_48.name)) {
                                                                                    v12_32 = 1;
                                                                                }
                                                                            } else {
                                                                                v13_18 = v10_48;
                                                                            }
                                                                            v11_40++;
                                                                        }
                                                                        v45_0 = v14_11;
                                                                        if ((v12_32 == 0) || (v13_18 == 0)) {
                                                                            if (v13_18 == 0) {
                                                                                this.zzada.zzgt().zzjg().zzg("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_29.zzaug.zztt));
                                                                            } else {
                                                                                v13_18.name = "_err";
                                                                                v13_18.zzaxe = Long.valueOf(10);
                                                                            }
                                                                        } else {
                                                                            String v3_41 = v6_21.zzaxa;
                                                                            boolean v11_44 = new com.google.android.gms.internal.measurement.zzfu[1];
                                                                            v11_44[0] = v13_18;
                                                                            v6_21.zzaxa = ((com.google.android.gms.internal.measurement.zzfu[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v3_41, v11_44));
                                                                        }
                                                                    }
                                                                }
                                                                v26 = v42;
                                                            } else {
                                                                boolean v11_6;
                                                                this.zzjr();
                                                                boolean v11_4 = v6_21.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v11_4);
                                                                long v12_14 = v11_4.hashCode();
                                                                if (v12_14 == 94660) {
                                                                    if (!v11_4.equals("_in")) {
                                                                        v11_6 = -1;
                                                                    } else {
                                                                        v11_6 = 0;
                                                                    }
                                                                } else {
                                                                    if (v12_14 == 95025) {
                                                                        if (!v11_4.equals("_ug")) {
                                                                        } else {
                                                                            v11_6 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v12_14 == 95027) {
                                                                            if (!v11_4.equals("_ui")) {
                                                                            } else {
                                                                                v11_6 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                boolean v11_9;
                                                                switch (v11_6) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v11_9 = 1;
                                                                    default:
                                                                        v11_9 = 0;
                                                                }
                                                                if (!v11_9) {
                                                                    v32_0 = v3_81;
                                                                    v45_0 = v14_11;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzada.zzgv().zzbd(v2_29.zzaug.zztt)) || (v7_7 == 0)) {
                                                            } else {
                                                                String v3_47 = v6_21.zzaxa;
                                                                long v7_8 = 0;
                                                                boolean v10_36 = -1;
                                                                boolean v11_45 = -1;
                                                                while (v7_8 < v3_47.length) {
                                                                    if (!"value".equals(v3_47[v7_8].name)) {
                                                                        if ("currency".equals(v3_47[v7_8].name)) {
                                                                            v11_45 = v7_8;
                                                                        }
                                                                    } else {
                                                                        v10_36 = v7_8;
                                                                    }
                                                                    v7_8++;
                                                                }
                                                                if (v10_36 == -1) {
                                                                } else {
                                                                    if ((v3_47[v10_36].zzaxe != null) || (v3_47[v10_36].zzaun != null)) {
                                                                        long v7_17;
                                                                        if (v11_45 != -1) {
                                                                            long v7_16 = v3_47[v11_45].zzaml;
                                                                            if (v7_16 == 0) {
                                                                            } else {
                                                                                if (v7_16.length() == 3) {
                                                                                    boolean v11_47 = 0;
                                                                                    while (v11_47 < v7_16.length()) {
                                                                                        int v13_20 = v7_16.codePointAt(v11_47);
                                                                                        if (Character.isLetter(v13_20)) {
                                                                                            v11_47 += Character.charCount(v13_20);
                                                                                        } else {
                                                                                        }
                                                                                    }
                                                                                    v7_17 = 0;
                                                                                    if (v7_17 != 0) {
                                                                                        this.zzada.zzgt().zzjl().zzby("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                        v3_47 = com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(v3_47, v10_36), "_c"), 19, "currency");
                                                                                    }
                                                                                    v6_21.zzaxa = v3_47;
                                                                                    int v47;
                                                                                    if (!this.zzada.zzgv().zze(v2_29.zzaug.zztt, com.google.android.gms.measurement.internal.zzai.zzakz)) {
                                                                                        v47 = v2_29;
                                                                                    } else {
                                                                                        if (!"_e".equals(v6_21.name)) {
                                                                                            if (!"_vs".equals(v6_21.name)) {
                                                                                            } else {
                                                                                                this.zzjr();
                                                                                                if (com.google.android.gms.measurement.internal.zzfu.zza(v6_21, "_et") != null) {
                                                                                                } else {
                                                                                                    if (v8_16 == null) {
                                                                                                        v47 = v2_29;
                                                                                                    } else {
                                                                                                        v47 = v2_29;
                                                                                                        if ((Math.abs((v8_16.zzaxb.longValue() - v6_21.zzaxb.longValue())) <= 1000) && (this.zza(v8_16, v6_21))) {
                                                                                                            v8_16 = 0;
                                                                                                            v9_9 = 0;
                                                                                                            if ((v4_7 == null) || ((v5_24 != null) || (!"_e".equals(v6_21.name)))) {
                                                                                                                v7_35 = v47;
                                                                                                                v2_22 = v32_0;
                                                                                                                v14_11 = v45_0;
                                                                                                            } else {
                                                                                                                if (v6_21.zzaxa != null) {
                                                                                                                    if (v6_21.zzaxa.length != 0) {
                                                                                                                        this.zzjr();
                                                                                                                        com.google.android.gms.measurement.internal.zzac v2_20 = ((Long) com.google.android.gms.measurement.internal.zzfu.zzb(v6_21, "_et"));
                                                                                                                        if (v2_20 != null) {
                                                                                                                            v7_35 = v47;
                                                                                                                            v14_11 = (v45_0 + v2_20.longValue());
                                                                                                                            v2_22 = v32_0;
                                                                                                                            v13_27 = (v28_0 + 1);
                                                                                                                            v2_22.zzaxi[v28_0] = v6_21;
                                                                                                                            v10_60 = (v27_0 + 1);
                                                                                                                            v3_81 = v2_22;
                                                                                                                            v2_29 = v7_35;
                                                                                                                            v12_44 = v26;
                                                                                                                        } else {
                                                                                                                            v7_35 = v47;
                                                                                                                            this.zzada.zzgt().zzjj().zzg("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_35.zzaug.zztt));
                                                                                                                        }
                                                                                                                    } else {
                                                                                                                    }
                                                                                                                }
                                                                                                                v7_35 = v47;
                                                                                                                this.zzada.zzgt().zzjj().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_35.zzaug.zztt));
                                                                                                            }
                                                                                                        }
                                                                                                    }
                                                                                                    v9_9 = v6_21;
                                                                                                }
                                                                                            }
                                                                                        } else {
                                                                                            this.zzjr();
                                                                                            if (com.google.android.gms.measurement.internal.zzfu.zza(v6_21, "_fr") != null) {
                                                                                            } else {
                                                                                                if ((v9_9 == 0) || ((Math.abs((v9_9.zzaxb.longValue() - v6_21.zzaxb.longValue())) > 1000) || (!this.zza(v6_21, v9_9)))) {
                                                                                                    v47 = v2_29;
                                                                                                    v8_16 = v6_21;
                                                                                                } else {
                                                                                                    v47 = v2_29;
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v7_17 = 1;
                                                                        } else {
                                                                            v7_17 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzada.zzgt().zzjl().zzby("Value must be specified with a numeric type.");
                                                                        v3_47 = com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(v3_47, v10_36), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            long v7_44;
                                                            v27_0 = v10_60;
                                                            String v28_1 = v13_27;
                                                            this.zzada.zzgt().zzjj().zze("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_29.zzaug.zztt), this.zzada.zzgq().zzbt(v6_21.name));
                                                            if (this.zzls().zzcl(v2_29.zzaug.zztt)) {
                                                                v7_44 = 1;
                                                            } else {
                                                                if (!this.zzls().zzcm(v2_29.zzaug.zztt)) {
                                                                    v7_44 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v7_44 == 0) && (!"_err".equals(v6_21.name))) {
                                                                this.zzada.zzgr().zza(v2_29.zzaug.zztt, 11, "_ev", v6_21.name, 0);
                                                            }
                                                            v7_35 = v2_29;
                                                            v2_22 = v3_81;
                                                            v13_27 = v28_1;
                                                        }
                                                    }
                                                    int v13_5;
                                                    boolean v14_5;
                                                    long v7_3 = v2_29;
                                                    com.google.android.gms.measurement.internal.zzac v2_9 = v3_81;
                                                    String v28_2 = v13_27;
                                                    String v45_2 = v14_11;
                                                    if (v5_24 == null) {
                                                        v13_5 = v28_2;
                                                        v14_5 = v45_2;
                                                    } else {
                                                        v13_5 = v28_2;
                                                        v14_5 = v45_2;
                                                        String v3_2 = 0;
                                                        while (v3_2 < v13_5) {
                                                            String v5_5 = v2_9.zzaxi[v3_2];
                                                            if (!"_e".equals(v5_5.name)) {
                                                                if (v4_7 != null) {
                                                                    this.zzjr();
                                                                    String v5_6 = com.google.android.gms.measurement.internal.zzfu.zza(v5_5, "_et");
                                                                    if (v5_6 != null) {
                                                                        String v5_7 = v5_6.zzaxe;
                                                                        if ((v5_7 != null) && (v5_7.longValue() > 0)) {
                                                                            v14_5 += v5_7.longValue();
                                                                        }
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzjr();
                                                                if (com.google.android.gms.measurement.internal.zzfu.zza(v5_5, "_fr") == null) {
                                                                } else {
                                                                    System.arraycopy(v2_9.zzaxi, (v3_2 + 1), v2_9.zzaxi, v3_2, ((v13_5 - v3_2) - 1));
                                                                    v13_5--;
                                                                    v3_2--;
                                                                }
                                                            }
                                                            v3_2++;
                                                        }
                                                    }
                                                    if (v13_5 < v7_3.zzaui.size()) {
                                                        v2_9.zzaxi = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v2_9.zzaxi, v13_5));
                                                    }
                                                    if (v4_7 != null) {
                                                        String v3_99;
                                                        String v3_96 = this.zzjt().zzi(v2_9.zztt, "_lte");
                                                        if (v3_96 == null) {
                                                            v3_99 = new com.google.android.gms.measurement.internal.zzfx;
                                                            v3_99(v2_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf(v14_5));
                                                        } else {
                                                            if (v3_96.value != null) {
                                                                Object v4_10 = new com.google.android.gms.measurement.internal.zzfx;
                                                                v4_10(v2_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf((((Long) v3_96.value).longValue() + v14_5)));
                                                                v3_99 = v4_10;
                                                            } else {
                                                            }
                                                        }
                                                        Object v4_13 = new com.google.android.gms.internal.measurement.zzfz();
                                                        v4_13.name = "_lte";
                                                        v4_13.zzayu = Long.valueOf(this.zzada.zzbx().currentTimeMillis());
                                                        v4_13.zzaxe = ((Long) v3_99.value);
                                                        String v5_36 = 0;
                                                        while (v5_36 < v2_9.zzaxj.length) {
                                                            if (!"_lte".equals(v2_9.zzaxj[v5_36].name)) {
                                                                v5_36++;
                                                            } else {
                                                                v2_9.zzaxj[v5_36] = v4_13;
                                                                String v5_37 = 1;
                                                            }
                                                            if (v5_37 == null) {
                                                                v2_9.zzaxj = ((com.google.android.gms.internal.measurement.zzfz[]) java.util.Arrays.copyOf(v2_9.zzaxj, (v2_9.zzaxj.length + 1)));
                                                                v2_9.zzaxj[(v7_3.zzaug.zzaxj.length - 1)] = v4_13;
                                                            }
                                                            if (v14_5 > 0) {
                                                                this.zzjt().zza(v3_99);
                                                                this.zzada.zzgt().zzjn().zzg("Updated lifetime engagement user property with value. Value", v3_99.value);
                                                            }
                                                        }
                                                        v5_37 = 0;
                                                    }
                                                    long v57_1;
                                                    String v3_101 = v2_9.zztt;
                                                    Object v4_19 = v2_9.zzaxj;
                                                    String v5_43 = v2_9.zzaxi;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_101);
                                                    v2_9.zzaya = this.zzjs().zza(v3_101, v5_43, v4_19);
                                                    if (!this.zzada.zzgv().zzat(v7_3.zzaug.zztt)) {
                                                        v57_1 = v7_3;
                                                    } else {
                                                        String v3_107 = new java.util.HashMap();
                                                        Object v4_24 = new com.google.android.gms.internal.measurement.zzft[v2_9.zzaxi.length];
                                                        String v5_3 = this.zzada.zzgr().zzmk();
                                                        String v6_11 = v2_9.zzaxi;
                                                        Boolean v8_10 = v6_11.length;
                                                        int v9_4 = 0;
                                                        boolean v10_0 = 0;
                                                        while (v9_4 < v8_10) {
                                                            long v49;
                                                            int v50;
                                                            long v57_0;
                                                            boolean v48;
                                                            int v55;
                                                            com.google.android.gms.measurement.internal.zzbq v51;
                                                            boolean v11_58 = v6_11[v9_4];
                                                            if (!v11_58.name.equals("_ep")) {
                                                                com.google.android.gms.measurement.internal.zzac v2_47;
                                                                long v52;
                                                                v48 = v6_11;
                                                                long v12_56 = this.zzls().zzck(v7_3.zzaug.zztt);
                                                                this.zzada.zzgr();
                                                                boolean v14_21 = com.google.android.gms.measurement.internal.zzfy.zzc(v11_58.zzaxb.longValue(), v12_56);
                                                                v51 = v2_9;
                                                                v49 = v8_10;
                                                                v50 = v9_4;
                                                                com.google.android.gms.measurement.internal.zzac v2_45 = Long.valueOf(1);
                                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                                    v52 = v12_56;
                                                                    v2_47 = 0;
                                                                } else {
                                                                    if (v2_45 != null) {
                                                                        Boolean v8_30 = v11_58.zzaxa;
                                                                        int v9_12 = v8_30.length;
                                                                        v52 = v12_56;
                                                                        long v12_57 = 0;
                                                                        while (v12_57 < v9_12) {
                                                                            int v13_49 = v8_30[v12_57];
                                                                            if (!"_dbg".equals(v13_49.name)) {
                                                                                v12_57++;
                                                                            } else {
                                                                                if (((!(v2_45 instanceof Long)) || (!v2_45.equals(v13_49.zzaxe))) && (((!(v2_45 instanceof String)) || (!v2_45.equals(v13_49.zzaml))) && ((!(v2_45 instanceof Double)) || (!v2_45.equals(v13_49.zzaun))))) {
                                                                                    break;
                                                                                }
                                                                                v2_47 = 1;
                                                                            }
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                long v12_58;
                                                                if (v2_47 != null) {
                                                                    v12_58 = 1;
                                                                } else {
                                                                    v12_58 = this.zzls().zzq(v7_3.zzaug.zztt, v11_58.name);
                                                                }
                                                                if (v12_58 > 0) {
                                                                    com.google.android.gms.measurement.internal.zzac v2_1 = ((com.google.android.gms.measurement.internal.zzac) v3_107.get(v11_58.name));
                                                                    if (v2_1 == null) {
                                                                        v2_1 = this.zzjt().zzg(v7_3.zzaug.zztt, v11_58.name);
                                                                        if (v2_1 == null) {
                                                                            this.zzada.zzgt().zzjj().zze("Event being bundled has no eventAggregate. appId, eventName", v7_3.zzaug.zztt, v11_58.name);
                                                                            v2_1 = new com.google.android.gms.measurement.internal.zzac;
                                                                            v2_1(v7_3.zzaug.zztt, v11_58.name, 1, 1, v11_58.zzaxb.longValue(), 0, 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    Boolean v8_38;
                                                                    this.zzjr();
                                                                    String v6_103 = ((Long) com.google.android.gms.measurement.internal.zzfu.zzb(v11_58, "_eid"));
                                                                    if (v6_103 == null) {
                                                                        v8_38 = 0;
                                                                    } else {
                                                                        v8_38 = 1;
                                                                    }
                                                                    Boolean v8_39 = Boolean.valueOf(v8_38);
                                                                    if (v12_58 != 1) {
                                                                        if (v5_3.nextInt(v12_58) != 0) {
                                                                            boolean v59;
                                                                            String v56;
                                                                            String v5_87;
                                                                            Boolean v58;
                                                                            v55 = v5_3;
                                                                            if (!this.zzada.zzgv().zzbf(v7_3.zzaug.zztt)) {
                                                                                v56 = v6_103;
                                                                                v57_0 = v7_3;
                                                                                v58 = v8_39;
                                                                                v59 = v14_21;
                                                                                if (Math.abs((v11_58.zzaxb.longValue() - v2_1.zzahy)) < 86400000) {
                                                                                    v5_87 = 0;
                                                                                } else {
                                                                                    v5_87 = 1;
                                                                                }
                                                                            } else {
                                                                                long v16_7;
                                                                                if (v2_1.zzahz == null) {
                                                                                    this.zzada.zzgr();
                                                                                    v56 = v6_103;
                                                                                    v57_0 = v7_3;
                                                                                    v58 = v8_39;
                                                                                    v16_7 = com.google.android.gms.measurement.internal.zzfy.zzc(v11_58.zzaxc.longValue(), v52);
                                                                                } else {
                                                                                    v16_7 = v2_1.zzahz.longValue();
                                                                                    v56 = v6_103;
                                                                                    v57_0 = v7_3;
                                                                                    v58 = v8_39;
                                                                                }
                                                                                if (v16_7 == v14_21) {
                                                                                    v5_87 = 0;
                                                                                } else {
                                                                                    v5_87 = 1;
                                                                                }
                                                                                v59 = v14_21;
                                                                            }
                                                                            if (v5_87 == null) {
                                                                                if (!v58.booleanValue()) {
                                                                                    v9_4 = (v50 + 1);
                                                                                    v6_11 = v48;
                                                                                    v8_10 = v49;
                                                                                    v2_9 = v51;
                                                                                    v5_3 = v55;
                                                                                    v7_3 = v57_0;
                                                                                } else {
                                                                                    v3_107.put(v11_58.name, v2_1.zza(v56, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.zzjr();
                                                                                v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_efs", Long.valueOf(1));
                                                                                this.zzjr();
                                                                                long v12_59 = ((long) v12_58);
                                                                                v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_sr", Long.valueOf(v12_59));
                                                                                String v5_100 = (v10_0 + 1);
                                                                                v4_24[v10_0] = v11_58;
                                                                                if (v58.booleanValue()) {
                                                                                    v2_1 = v2_1.zza(0, Long.valueOf(v12_59), Boolean.valueOf(1));
                                                                                }
                                                                                v3_107.put(v11_58.name, v2_1.zza(v11_58.zzaxb.longValue(), v59));
                                                                                v10_0 = v5_100;
                                                                            }
                                                                        } else {
                                                                            this.zzjr();
                                                                            long v12_0 = ((long) v12_58);
                                                                            v55 = v5_3;
                                                                            v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_sr", Long.valueOf(v12_0));
                                                                            String v5_2 = (v10_0 + 1);
                                                                            v4_24[v10_0] = v11_58;
                                                                            if (v8_39.booleanValue()) {
                                                                                v2_1 = v2_1.zza(0, Long.valueOf(v12_0), 0);
                                                                            }
                                                                            v3_107.put(v11_58.name, v2_1.zza(v11_58.zzaxb.longValue(), v14_21));
                                                                            v10_0 = v5_2;
                                                                        }
                                                                    } else {
                                                                        String v6_6 = (v10_0 + 1);
                                                                        v4_24[v10_0] = v11_58;
                                                                        if ((v8_39.booleanValue()) && ((v2_1.zzaia != null) || ((v2_1.zzaib != null) || (v2_1.zzaic != null)))) {
                                                                            v3_107.put(v11_58.name, v2_1.zza(0, 0, 0));
                                                                        }
                                                                        v55 = v5_3;
                                                                        v10_0 = v6_6;
                                                                    }
                                                                } else {
                                                                    this.zzada.zzgt().zzjj().zze("Sample rate must be positive. event, rate", v11_58.name, Integer.valueOf(v12_58));
                                                                    com.google.android.gms.measurement.internal.zzac v2_8 = (v10_0 + 1);
                                                                    v4_24[v10_0] = v11_58;
                                                                    v10_0 = v2_8;
                                                                    v55 = v5_3;
                                                                }
                                                                v57_0 = v7_3;
                                                            } else {
                                                                this.zzjr();
                                                                long v12_3 = ((String) com.google.android.gms.measurement.internal.zzfu.zzb(v11_58, "_en"));
                                                                int v13_1 = ((com.google.android.gms.measurement.internal.zzac) v3_107.get(v12_3));
                                                                if (v13_1 == 0) {
                                                                    v13_1 = this.zzjt().zzg(v7_3.zzaug.zztt, v12_3);
                                                                    v3_107.put(v12_3, v13_1);
                                                                }
                                                                if (v13_1.zzaia != null) {
                                                                    v48 = v6_11;
                                                                    v51 = v2_9;
                                                                    v55 = v5_3;
                                                                } else {
                                                                    if (v13_1.zzaib.longValue() > 1) {
                                                                        this.zzjr();
                                                                        v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_sr", v13_1.zzaib);
                                                                    }
                                                                    if ((v13_1.zzaic == null) || (!v13_1.zzaic.booleanValue())) {
                                                                        v48 = v6_11;
                                                                    } else {
                                                                        this.zzjr();
                                                                        v48 = v6_11;
                                                                        v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_efs", Long.valueOf(1));
                                                                    }
                                                                    String v6_10 = (v10_0 + 1);
                                                                    v4_24[v10_0] = v11_58;
                                                                    v51 = v2_9;
                                                                    v55 = v5_3;
                                                                    v10_0 = v6_10;
                                                                }
                                                                v57_0 = v7_3;
                                                                v49 = v8_10;
                                                                v50 = v9_4;
                                                            }
                                                        }
                                                        v57_1 = v7_3;
                                                        if (v10_0 < v2_9.zzaxi.length) {
                                                            v2_9.zzaxi = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v4_24, v10_0));
                                                        }
                                                        String v3_109 = v3_107.entrySet().iterator();
                                                        while (v3_109.hasNext()) {
                                                            this.zzjt().zza(((com.google.android.gms.measurement.internal.zzac) ((java.util.Map$Entry) v3_109.next()).getValue()));
                                                        }
                                                    }
                                                    v2_9.zzaxl = Long.valueOf(nan);
                                                    v2_9.zzaxm = Long.valueOf(-0.0);
                                                    String v3_114 = 0;
                                                    while (v3_114 < v2_9.zzaxi.length) {
                                                        Object v4_34 = v2_9.zzaxi[v3_114];
                                                        if (v4_34.zzaxb.longValue() < v2_9.zzaxl.longValue()) {
                                                            v2_9.zzaxl = v4_34.zzaxb;
                                                        }
                                                        if (v4_34.zzaxb.longValue() > v2_9.zzaxm.longValue()) {
                                                            v2_9.zzaxm = v4_34.zzaxb;
                                                        }
                                                        v3_114++;
                                                    }
                                                    String v3_115 = v57_1;
                                                    Object v4_31 = v3_115.zzaug.zztt;
                                                    String v5_49 = this.zzjt().zzbm(v4_31);
                                                    if (v5_49 != null) {
                                                        if (v2_9.zzaxi.length > 0) {
                                                            Boolean v8_24;
                                                            String v6_58 = v5_49.zzhe();
                                                            if (v6_58 == 0) {
                                                                v8_24 = 0;
                                                            } else {
                                                                v8_24 = Long.valueOf(v6_58);
                                                            }
                                                            v2_9.zzaxo = v8_24;
                                                            Boolean v8_25 = v5_49.zzhd();
                                                            if (v8_25 != 0) {
                                                                v6_58 = v8_25;
                                                            } else {
                                                            }
                                                            String v6_59;
                                                            if (v6_58 == 0) {
                                                                v6_59 = 0;
                                                            } else {
                                                                v6_59 = Long.valueOf(v6_58);
                                                            }
                                                            v2_9.zzaxn = v6_59;
                                                            v5_49.zzhm();
                                                            v2_9.zzaxy = Integer.valueOf(((int) v5_49.zzhj()));
                                                            v5_49.zzo(v2_9.zzaxl.longValue());
                                                            v5_49.zzp(v2_9.zzaxm.longValue());
                                                            v2_9.zzagm = v5_49.zzhu();
                                                            this.zzjt().zza(v5_49);
                                                        }
                                                    } else {
                                                        this.zzada.zzgt().zzjg().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_115.zzaug.zztt));
                                                    }
                                                    if (v2_9.zzaxi.length > 0) {
                                                        this.zzada.zzgw();
                                                        String v5_57 = this.zzls().zzcg(v3_115.zzaug.zztt);
                                                        if (v5_57 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v3_115.zzaug.zzafi)) {
                                                                this.zzada.zzgt().zzjj().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_115.zzaug.zztt));
                                                            } else {
                                                                v2_9.zzayf = Long.valueOf(-1);
                                                            }
                                                        } else {
                                                            if (v5_57.zzawk != null) {
                                                                v2_9.zzayf = v5_57.zzawk;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzjt().zza(v2_9, v26);
                                                    }
                                                    com.google.android.gms.measurement.internal.zzac v2_36 = this.zzjt();
                                                    String v3_116 = v3_115.zzauh;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_116);
                                                    v2_36.zzaf();
                                                    v2_36.zzcl();
                                                    String v5_69 = new StringBuilder("rowid in (");
                                                    String v6_75 = 0;
                                                    while (v6_75 < v3_116.size()) {
                                                        if (v6_75 != null) {
                                                            v5_69.append(",");
                                                        }
                                                        v5_69.append(((Long) v3_116.get(v6_75)).longValue());
                                                        v6_75++;
                                                    }
                                                    v5_69.append(")");
                                                    String v5_71 = v2_36.getWritableDatabase().delete("raw_events", v5_69.toString(), 0);
                                                    if (v5_71 != v3_116.size()) {
                                                        v2_36.zzgt().zzjg().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_71), Integer.valueOf(v3_116.size()));
                                                    }
                                                    com.google.android.gms.measurement.internal.zzac v2_39 = this.zzjt();
                                                    String v3_119 = v2_39.getWritableDatabase();
                                                    try {
                                                        String v6_81 = new String[2];
                                                        v6_81[0] = v4_31;
                                                        v6_81[1] = v4_31;
                                                        v3_119.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_81);
                                                    } catch (android.database.sqlite.SQLiteException v0_11) {
                                                        v2_39.zzgt().zzjg().zze("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v4_31), v0_11);
                                                    }
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v6_5.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                        }
                                        if (v15_2.moveToNext()) {
                                            v4_40.zzgt().zzjj().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0));
                                        }
                                        long v16_5;
                                        int v17_4;
                                        v15_2.close();
                                        v2_29.zzb(v14_10);
                                        if (v5_81 == -1) {
                                            boolean v10_63 = new String[2];
                                            v10_63[0] = v3_0;
                                            v10_63[1] = v7_0;
                                            v16_5 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_4 = v10_63;
                                        } else {
                                            int v13_37 = new String[3];
                                            v13_37[0] = v3_0;
                                            v13_37[1] = v7_0;
                                            v13_37[2] = String.valueOf(v5_81);
                                            v16_5 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_4 = v13_37;
                                        }
                                        v6_5 = v15_2;
                                        String v5_17 = v25.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_5, v17_4, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_17.moveToFirst()) {
                                                v4_40.zzgt().zzjj().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0));
                                                if (v5_17 == null) {
                                                } else {
                                                    v5_17.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_9) {
                                            com.google.android.gms.measurement.internal.zzac v2_7 = v0_9;
                                            v6_5 = v5_17;
                                            if (v6_5 != null) {
                                                v6_5.close();
                                            }
                                            throw v2_7;
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            v7_0 = v3_0;
                                            v6_5 = v5_17;
                                            String v3_1 = v0_2;
                                            v4_40.zzgt().zzjg().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_0), v3_1);
                                            if (v6_5 == null) {
                                            } else {
                                                v6_5.close();
                                            }
                                        }
                                        do {
                                            String v6_28 = v5_17.getLong(0);
                                            long v12_48 = v5_17.getBlob(3);
                                            boolean v10_68 = com.google.android.gms.internal.measurement.zzxz.zzj(v12_48, 0, v12_48.length);
                                            long v12_50 = new com.google.android.gms.internal.measurement.zzft();
                                            v12_50.zza(v10_68);
                                            v12_50.name = v5_17.getString(1);
                                            v12_50.zzaxb = Long.valueOf(v5_17.getLong(2));
                                            if (v2_29.zza(v6_28, v12_50)) {
                                            } else {
                                                if (v5_17 == null) {
                                                } else {
                                                    v5_17.close();
                                                }
                                            }
                                        } while(v5_17.moveToNext());
                                        if (v5_17 == null) {
                                        } else {
                                            v5_17.close();
                                        }
                                    } else {
                                        v4_40.zzgt().zzjg().zzg("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0));
                                        if (v15_2 == null) {
                                        } else {
                                            v15_2.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_7) {
                                    v6_5 = v15_2;
                                    v2_7 = v0_7;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v6_5 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_10) {
                                    v2_7 = v0_10;
                                    v6_5 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v7_0 = v3_0;
                                    v6_5 = v15_2;
                                }
                                v7_0 = v3_0;
                            } catch (android.database.sqlite.SQLiteException v0_4) {
                                v2_7 = v0_4;
                                v6_5 = v23;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v7_0 = v3_0;
                                v6_5 = v23;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                                v3_0.close();
                            }
                        }
                    } else {
                        try {
                            int v13_47;
                            if (v5_81 == -1) {
                                v13_47 = new String[1];
                                v13_47[0] = String.valueOf(p63);
                            } else {
                                v13_47 = new String[2];
                                v13_47[0] = String.valueOf(v5_81);
                                v13_47[1] = String.valueOf(p63);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                            v6_5 = 0;
                            v7_0 = 0;
                        }
                        boolean v14_22;
                        if (v5_81 == -1) {
                            v14_22 = "";
                        } else {
                            v14_22 = "rowid <= ? and ";
                        }
                        String v3_122 = new StringBuilder((String.valueOf(v14_22).length() + 148));
                        v3_122.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_122.append(v14_22);
                        v3_122.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_3.rawQuery(v3_122.toString(), v13_47);
                        if (v3_0.moveToFirst()) {
                            long v7_2 = v3_0.getString(0);
                            try {
                                int v13_4 = v3_0.getString(1);
                                v3_0.close();
                                v23 = v3_0;
                                v3_0 = v7_2;
                                v7_0 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v6_5 = v3_0;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                                v3_0.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_3) {
                    v2_7 = v0_3;
                    v6_5 = v3_0;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v6_5 = v3_0;
                    v7_0 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v2_7 = v0_1;
                v6_5 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v3_1 = v0_0;
                v6_5 = 0;
                v7_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
            }
        } catch (android.database.sqlite.SQLiteException v0_6) {
            com.google.android.gms.measurement.internal.zzac v2_30 = v0_6;
            this.zzjt().endTransaction();
            throw v2_30;
        }
    }

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


    private final boolean zzd(String p62, long p63)
    {
        this.zzjt().beginTransaction();
        try {
            String v3_0 = 0;
            com.google.android.gms.measurement.internal.zzac v2_29 = new com.google.android.gms.measurement.internal.zzfo$zza(this, 0);
            Object v4_40 = this.zzjt();
            String v5_81 = this.zzauc;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_29);
            v4_40.zzaf();
            v4_40.zzcl();
            try {
                long v7_0;
                int v23;
                Long v15_3 = v4_40.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        String v3_85;
                        if (v5_81 == -1) {
                            v3_85 = new String[] {0});
                        } else {
                            v3_85 = new String[2];
                            v3_85[0] = 0;
                            v3_85[1] = String.valueOf(v5_81);
                        }
                        long v7_59;
                        if (v5_81 == -1) {
                            v7_59 = "";
                        } else {
                            v7_59 = " and rowid <= ?";
                        }
                        boolean v14_15 = new StringBuilder((String.valueOf(v7_59).length() + 84));
                        v14_15.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_15.append(v7_59);
                        v14_15.append(" order by rowid limit 1;");
                        v3_0 = v15_3.rawQuery(v14_15.toString(), v3_85);
                        if (v3_0.moveToFirst()) {
                            int v13_45 = v3_0.getString(0);
                            v3_0.close();
                            v23 = v3_0;
                            v7_0 = v13_45;
                            v3_0 = 0;
                            try {
                                int v13_12 = new String[2];
                                v13_12[0] = v3_0;
                                v13_12[1] = v7_0;
                                android.database.sqlite.SQLiteDatabase v25 = v15_3;
                                Long v15_2 = v15_3.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_12, 0, 0, "rowid", "2");
                                try {
                                    if (v15_2.moveToFirst()) {
                                        int v13_24 = v15_2.getBlob(0);
                                        int v13_26 = com.google.android.gms.internal.measurement.zzxz.zzj(v13_24, 0, v13_24.length);
                                        boolean v14_10 = new com.google.android.gms.internal.measurement.zzfw();
                                        try {
                                            v14_10.zza(v13_26);
                                        } catch (android.database.sqlite.SQLiteException v0_5) {
                                            String v6_5 = v15_2;
                                            v4_40.zzgt().zzjg().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0), v0_5);
                                            if (v6_5 == null) {
                                                String v3_89;
                                                if (v2_29.zzaui == null) {
                                                    v3_89 = 1;
                                                } else {
                                                    if (!v2_29.zzaui.isEmpty()) {
                                                        v3_89 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_89 != null) {
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 0;
                                                } else {
                                                    String v3_81 = v2_29.zzaug;
                                                    Object v4_4 = new com.google.android.gms.internal.measurement.zzft[v2_29.zzaui.size()];
                                                    v3_81.zzaxi = v4_4;
                                                    Object v4_7 = this.zzada.zzgv().zzau(v3_81.zztt);
                                                    String v5_24 = this.zzada.zzgv().zze(v2_29.zzaug.zztt, com.google.android.gms.measurement.internal.zzai.zzala);
                                                    Boolean v8_16 = 0;
                                                    int v9_9 = 0;
                                                    boolean v10_60 = 0;
                                                    long v12_44 = 0;
                                                    int v13_27 = 0;
                                                    boolean v14_11 = 0;
                                                    while(true) {
                                                        com.google.android.gms.internal.measurement.zzft v26 = v12_44;
                                                        if (v10_60 >= v2_29.zzaui.size()) {
                                                            break;
                                                        }
                                                        com.google.android.gms.measurement.internal.zzac v2_22;
                                                        long v7_35;
                                                        com.google.android.gms.measurement.internal.zzac v27_0;
                                                        String v6_21 = ((com.google.android.gms.internal.measurement.zzft) v2_29.zzaui.get(v10_60));
                                                        if (!this.zzls().zzo(v2_29.zzaug.zztt, v6_21.name)) {
                                                            long v32_0;
                                                            String v45_0;
                                                            v27_0 = v10_60;
                                                            String v28_0 = v13_27;
                                                            long v7_7 = this.zzls().zzp(v2_29.zzaug.zztt, v6_21.name);
                                                            if (v7_7 != 0) {
                                                                if (v6_21.zzaxa == null) {
                                                                    long v12_18 = new com.google.android.gms.internal.measurement.zzfu[0];
                                                                    v6_21.zzaxa = v12_18;
                                                                }
                                                                boolean v11_12 = v6_21.zzaxa;
                                                                long v12_19 = v11_12.length;
                                                                int v13_9 = 0;
                                                                long v16_1 = 0;
                                                                int v17_0 = 0;
                                                                while (v13_9 < v12_19) {
                                                                    long v32_1;
                                                                    boolean v10_50 = v11_12[v13_9];
                                                                    long v30_0 = v11_12;
                                                                    long v31_0 = v12_19;
                                                                    if (!"_c".equals(v10_50.name)) {
                                                                        v32_1 = v3_81;
                                                                        if ("_r".equals(v10_50.name)) {
                                                                            v10_50.zzaxe = Long.valueOf(1);
                                                                            v17_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v32_1 = v3_81;
                                                                        v10_50.zzaxe = Long.valueOf(1);
                                                                        v16_1 = 1;
                                                                    }
                                                                    v13_9++;
                                                                    v11_12 = v30_0;
                                                                    v12_19 = v31_0;
                                                                    v3_81 = v32_1;
                                                                }
                                                                v32_0 = v3_81;
                                                                if ((v16_1 == 0) && (v7_7 != 0)) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as conversion", this.zzada.zzgq().zzbt(v6_21.name));
                                                                    String v3_8 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_21.zzaxa, (v6_21.zzaxa.length + 1)));
                                                                    boolean v10_10 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v10_10.name = "_c";
                                                                    v10_10.zzaxe = Long.valueOf(1);
                                                                    v3_8[(v3_8.length - 1)] = v10_10;
                                                                    v6_21.zzaxa = v3_8;
                                                                }
                                                                if (v17_0 == 0) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as real-time", this.zzada.zzgq().zzbt(v6_21.name));
                                                                    String v3_14 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_21.zzaxa, (v6_21.zzaxa.length + 1)));
                                                                    boolean v10_16 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v10_16.name = "_r";
                                                                    v10_16.zzaxe = Long.valueOf(1);
                                                                    v3_14[(v3_14.length - 1)] = v10_16;
                                                                    v6_21.zzaxa = v3_14;
                                                                }
                                                                long v12_27;
                                                                if (this.zzjt().zza(this.zzly(), v2_29.zzaug.zztt, 0, 0, 0, 0, 1).zzahl <= ((long) this.zzada.zzgv().zzaq(v2_29.zzaug.zztt))) {
                                                                    v12_27 = 1;
                                                                } else {
                                                                    String v3_22 = 0;
                                                                    while (v3_22 < v6_21.zzaxa.length) {
                                                                        if (!"_r".equals(v6_21.zzaxa[v3_22].name)) {
                                                                            v3_22++;
                                                                        } else {
                                                                            boolean v10_25 = new com.google.android.gms.internal.measurement.zzfu[(v6_21.zzaxa.length - 1)];
                                                                            if (v3_22 > null) {
                                                                                System.arraycopy(v6_21.zzaxa, 0, v10_25, 0, v3_22);
                                                                            }
                                                                            if (v3_22 < v10_25.length) {
                                                                                System.arraycopy(v6_21.zzaxa, (v3_22 + 1), v10_25, v3_22, (v10_25.length - v3_22));
                                                                            }
                                                                            v6_21.zzaxa = v10_25;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_27 = v26;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.zzfy.zzct(v6_21.name)) || (v7_7 == 0)) {
                                                                    com.google.android.gms.internal.measurement.zzft v42 = v12_27;
                                                                    v45_0 = v14_11;
                                                                } else {
                                                                    v42 = v12_27;
                                                                    if (this.zzjt().zza(this.zzly(), v2_29.zzaug.zztt, 0, 0, 1, 0, 0).zzahj <= ((long) this.zzada.zzgv().zzb(v2_29.zzaug.zztt, com.google.android.gms.measurement.internal.zzai.zzajh))) {
                                                                    } else {
                                                                        this.zzada.zzgt().zzjj().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_29.zzaug.zztt));
                                                                        String v3_35 = v6_21.zzaxa;
                                                                        boolean v10_29 = v3_35.length;
                                                                        boolean v11_40 = 0;
                                                                        long v12_32 = 0;
                                                                        int v13_18 = 0;
                                                                        while (v11_40 < v10_29) {
                                                                            boolean v10_48 = v3_35[v11_40];
                                                                            if (!"_c".equals(v10_48.name)) {
                                                                                if ("_err".equals(v10_48.name)) {
                                                                                    v12_32 = 1;
                                                                                }
                                                                            } else {
                                                                                v13_18 = v10_48;
                                                                            }
                                                                            v11_40++;
                                                                        }
                                                                        v45_0 = v14_11;
                                                                        if ((v12_32 == 0) || (v13_18 == 0)) {
                                                                            if (v13_18 == 0) {
                                                                                this.zzada.zzgt().zzjg().zzg("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_29.zzaug.zztt));
                                                                            } else {
                                                                                v13_18.name = "_err";
                                                                                v13_18.zzaxe = Long.valueOf(10);
                                                                            }
                                                                        } else {
                                                                            String v3_41 = v6_21.zzaxa;
                                                                            boolean v11_44 = new com.google.android.gms.internal.measurement.zzfu[1];
                                                                            v11_44[0] = v13_18;
                                                                            v6_21.zzaxa = ((com.google.android.gms.internal.measurement.zzfu[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v3_41, v11_44));
                                                                        }
                                                                    }
                                                                }
                                                                v26 = v42;
                                                            } else {
                                                                boolean v11_6;
                                                                this.zzjr();
                                                                boolean v11_4 = v6_21.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v11_4);
                                                                long v12_14 = v11_4.hashCode();
                                                                if (v12_14 == 94660) {
                                                                    if (!v11_4.equals("_in")) {
                                                                        v11_6 = -1;
                                                                    } else {
                                                                        v11_6 = 0;
                                                                    }
                                                                } else {
                                                                    if (v12_14 == 95025) {
                                                                        if (!v11_4.equals("_ug")) {
                                                                        } else {
                                                                            v11_6 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v12_14 == 95027) {
                                                                            if (!v11_4.equals("_ui")) {
                                                                            } else {
                                                                                v11_6 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                boolean v11_9;
                                                                switch (v11_6) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v11_9 = 1;
                                                                    default:
                                                                        v11_9 = 0;
                                                                }
                                                                if (!v11_9) {
                                                                    v32_0 = v3_81;
                                                                    v45_0 = v14_11;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzada.zzgv().zzbd(v2_29.zzaug.zztt)) || (v7_7 == 0)) {
                                                            } else {
                                                                String v3_47 = v6_21.zzaxa;
                                                                long v7_8 = 0;
                                                                boolean v10_36 = -1;
                                                                boolean v11_45 = -1;
                                                                while (v7_8 < v3_47.length) {
                                                                    if (!"value".equals(v3_47[v7_8].name)) {
                                                                        if ("currency".equals(v3_47[v7_8].name)) {
                                                                            v11_45 = v7_8;
                                                                        }
                                                                    } else {
                                                                        v10_36 = v7_8;
                                                                    }
                                                                    v7_8++;
                                                                }
                                                                if (v10_36 == -1) {
                                                                } else {
                                                                    if ((v3_47[v10_36].zzaxe != null) || (v3_47[v10_36].zzaun != null)) {
                                                                        long v7_17;
                                                                        if (v11_45 != -1) {
                                                                            long v7_16 = v3_47[v11_45].zzaml;
                                                                            if (v7_16 == 0) {
                                                                            } else {
                                                                                if (v7_16.length() == 3) {
                                                                                    boolean v11_47 = 0;
                                                                                    while (v11_47 < v7_16.length()) {
                                                                                        int v13_20 = v7_16.codePointAt(v11_47);
                                                                                        if (Character.isLetter(v13_20)) {
                                                                                            v11_47 += Character.charCount(v13_20);
                                                                                        } else {
                                                                                        }
                                                                                    }
                                                                                    v7_17 = 0;
                                                                                    if (v7_17 != 0) {
                                                                                        this.zzada.zzgt().zzjl().zzby("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                        v3_47 = com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(v3_47, v10_36), "_c"), 19, "currency");
                                                                                    }
                                                                                    v6_21.zzaxa = v3_47;
                                                                                    int v47;
                                                                                    if (!this.zzada.zzgv().zze(v2_29.zzaug.zztt, com.google.android.gms.measurement.internal.zzai.zzakz)) {
                                                                                        v47 = v2_29;
                                                                                    } else {
                                                                                        if (!"_e".equals(v6_21.name)) {
                                                                                            if (!"_vs".equals(v6_21.name)) {
                                                                                            } else {
                                                                                                this.zzjr();
                                                                                                if (com.google.android.gms.measurement.internal.zzfu.zza(v6_21, "_et") != null) {
                                                                                                } else {
                                                                                                    if (v8_16 == null) {
                                                                                                        v47 = v2_29;
                                                                                                    } else {
                                                                                                        v47 = v2_29;
                                                                                                        if ((Math.abs((v8_16.zzaxb.longValue() - v6_21.zzaxb.longValue())) <= 1000) && (this.zza(v8_16, v6_21))) {
                                                                                                            v8_16 = 0;
                                                                                                            v9_9 = 0;
                                                                                                            if ((v4_7 == null) || ((v5_24 != null) || (!"_e".equals(v6_21.name)))) {
                                                                                                                v7_35 = v47;
                                                                                                                v2_22 = v32_0;
                                                                                                                v14_11 = v45_0;
                                                                                                            } else {
                                                                                                                if (v6_21.zzaxa != null) {
                                                                                                                    if (v6_21.zzaxa.length != 0) {
                                                                                                                        this.zzjr();
                                                                                                                        com.google.android.gms.measurement.internal.zzac v2_20 = ((Long) com.google.android.gms.measurement.internal.zzfu.zzb(v6_21, "_et"));
                                                                                                                        if (v2_20 != null) {
                                                                                                                            v7_35 = v47;
                                                                                                                            v14_11 = (v45_0 + v2_20.longValue());
                                                                                                                            v2_22 = v32_0;
                                                                                                                            v13_27 = (v28_0 + 1);
                                                                                                                            v2_22.zzaxi[v28_0] = v6_21;
                                                                                                                            v10_60 = (v27_0 + 1);
                                                                                                                            v3_81 = v2_22;
                                                                                                                            v2_29 = v7_35;
                                                                                                                            v12_44 = v26;
                                                                                                                        } else {
                                                                                                                            v7_35 = v47;
                                                                                                                            this.zzada.zzgt().zzjj().zzg("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_35.zzaug.zztt));
                                                                                                                        }
                                                                                                                    } else {
                                                                                                                    }
                                                                                                                }
                                                                                                                v7_35 = v47;
                                                                                                                this.zzada.zzgt().zzjj().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_35.zzaug.zztt));
                                                                                                            }
                                                                                                        }
                                                                                                    }
                                                                                                    v9_9 = v6_21;
                                                                                                }
                                                                                            }
                                                                                        } else {
                                                                                            this.zzjr();
                                                                                            if (com.google.android.gms.measurement.internal.zzfu.zza(v6_21, "_fr") != null) {
                                                                                            } else {
                                                                                                if ((v9_9 == 0) || ((Math.abs((v9_9.zzaxb.longValue() - v6_21.zzaxb.longValue())) > 1000) || (!this.zza(v6_21, v9_9)))) {
                                                                                                    v47 = v2_29;
                                                                                                    v8_16 = v6_21;
                                                                                                } else {
                                                                                                    v47 = v2_29;
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v7_17 = 1;
                                                                        } else {
                                                                            v7_17 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzada.zzgt().zzjl().zzby("Value must be specified with a numeric type.");
                                                                        v3_47 = com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(com.google.android.gms.measurement.internal.zzfo.zza(v3_47, v10_36), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            long v7_44;
                                                            v27_0 = v10_60;
                                                            String v28_1 = v13_27;
                                                            this.zzada.zzgt().zzjj().zze("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_29.zzaug.zztt), this.zzada.zzgq().zzbt(v6_21.name));
                                                            if (this.zzls().zzcl(v2_29.zzaug.zztt)) {
                                                                v7_44 = 1;
                                                            } else {
                                                                if (!this.zzls().zzcm(v2_29.zzaug.zztt)) {
                                                                    v7_44 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v7_44 == 0) && (!"_err".equals(v6_21.name))) {
                                                                this.zzada.zzgr().zza(v2_29.zzaug.zztt, 11, "_ev", v6_21.name, 0);
                                                            }
                                                            v7_35 = v2_29;
                                                            v2_22 = v3_81;
                                                            v13_27 = v28_1;
                                                        }
                                                    }
                                                    int v13_5;
                                                    boolean v14_5;
                                                    long v7_3 = v2_29;
                                                    com.google.android.gms.measurement.internal.zzac v2_9 = v3_81;
                                                    String v28_2 = v13_27;
                                                    String v45_2 = v14_11;
                                                    if (v5_24 == null) {
                                                        v13_5 = v28_2;
                                                        v14_5 = v45_2;
                                                    } else {
                                                        v13_5 = v28_2;
                                                        v14_5 = v45_2;
                                                        String v3_2 = 0;
                                                        while (v3_2 < v13_5) {
                                                            String v5_5 = v2_9.zzaxi[v3_2];
                                                            if (!"_e".equals(v5_5.name)) {
                                                                if (v4_7 != null) {
                                                                    this.zzjr();
                                                                    String v5_6 = com.google.android.gms.measurement.internal.zzfu.zza(v5_5, "_et");
                                                                    if (v5_6 != null) {
                                                                        String v5_7 = v5_6.zzaxe;
                                                                        if ((v5_7 != null) && (v5_7.longValue() > 0)) {
                                                                            v14_5 += v5_7.longValue();
                                                                        }
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzjr();
                                                                if (com.google.android.gms.measurement.internal.zzfu.zza(v5_5, "_fr") == null) {
                                                                } else {
                                                                    System.arraycopy(v2_9.zzaxi, (v3_2 + 1), v2_9.zzaxi, v3_2, ((v13_5 - v3_2) - 1));
                                                                    v13_5--;
                                                                    v3_2--;
                                                                }
                                                            }
                                                            v3_2++;
                                                        }
                                                    }
                                                    if (v13_5 < v7_3.zzaui.size()) {
                                                        v2_9.zzaxi = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v2_9.zzaxi, v13_5));
                                                    }
                                                    if (v4_7 != null) {
                                                        String v3_99;
                                                        String v3_96 = this.zzjt().zzi(v2_9.zztt, "_lte");
                                                        if (v3_96 == null) {
                                                            v3_99 = new com.google.android.gms.measurement.internal.zzfx;
                                                            v3_99(v2_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf(v14_5));
                                                        } else {
                                                            if (v3_96.value != null) {
                                                                Object v4_10 = new com.google.android.gms.measurement.internal.zzfx;
                                                                v4_10(v2_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf((((Long) v3_96.value).longValue() + v14_5)));
                                                                v3_99 = v4_10;
                                                            } else {
                                                            }
                                                        }
                                                        Object v4_13 = new com.google.android.gms.internal.measurement.zzfz();
                                                        v4_13.name = "_lte";
                                                        v4_13.zzayu = Long.valueOf(this.zzada.zzbx().currentTimeMillis());
                                                        v4_13.zzaxe = ((Long) v3_99.value);
                                                        String v5_36 = 0;
                                                        while (v5_36 < v2_9.zzaxj.length) {
                                                            if (!"_lte".equals(v2_9.zzaxj[v5_36].name)) {
                                                                v5_36++;
                                                            } else {
                                                                v2_9.zzaxj[v5_36] = v4_13;
                                                                String v5_37 = 1;
                                                            }
                                                            if (v5_37 == null) {
                                                                v2_9.zzaxj = ((com.google.android.gms.internal.measurement.zzfz[]) java.util.Arrays.copyOf(v2_9.zzaxj, (v2_9.zzaxj.length + 1)));
                                                                v2_9.zzaxj[(v7_3.zzaug.zzaxj.length - 1)] = v4_13;
                                                            }
                                                            if (v14_5 > 0) {
                                                                this.zzjt().zza(v3_99);
                                                                this.zzada.zzgt().zzjn().zzg("Updated lifetime engagement user property with value. Value", v3_99.value);
                                                            }
                                                        }
                                                        v5_37 = 0;
                                                    }
                                                    long v57_1;
                                                    String v3_101 = v2_9.zztt;
                                                    Object v4_19 = v2_9.zzaxj;
                                                    String v5_43 = v2_9.zzaxi;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_101);
                                                    v2_9.zzaya = this.zzjs().zza(v3_101, v5_43, v4_19);
                                                    if (!this.zzada.zzgv().zzat(v7_3.zzaug.zztt)) {
                                                        v57_1 = v7_3;
                                                    } else {
                                                        String v3_107 = new java.util.HashMap();
                                                        Object v4_24 = new com.google.android.gms.internal.measurement.zzft[v2_9.zzaxi.length];
                                                        String v5_3 = this.zzada.zzgr().zzmk();
                                                        String v6_11 = v2_9.zzaxi;
                                                        Boolean v8_10 = v6_11.length;
                                                        int v9_4 = 0;
                                                        boolean v10_0 = 0;
                                                        while (v9_4 < v8_10) {
                                                            com.google.android.gms.measurement.internal.zzbq v51;
                                                            long v49;
                                                            int v50;
                                                            long v57_0;
                                                            boolean v48;
                                                            int v55;
                                                            boolean v11_58 = v6_11[v9_4];
                                                            if (!v11_58.name.equals("_ep")) {
                                                                com.google.android.gms.measurement.internal.zzac v2_47;
                                                                long v52;
                                                                v48 = v6_11;
                                                                long v12_56 = this.zzls().zzck(v7_3.zzaug.zztt);
                                                                this.zzada.zzgr();
                                                                boolean v14_21 = com.google.android.gms.measurement.internal.zzfy.zzc(v11_58.zzaxb.longValue(), v12_56);
                                                                v51 = v2_9;
                                                                v49 = v8_10;
                                                                v50 = v9_4;
                                                                com.google.android.gms.measurement.internal.zzac v2_45 = Long.valueOf(1);
                                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                                    v52 = v12_56;
                                                                    v2_47 = 0;
                                                                } else {
                                                                    if (v2_45 != null) {
                                                                        Boolean v8_30 = v11_58.zzaxa;
                                                                        int v9_12 = v8_30.length;
                                                                        v52 = v12_56;
                                                                        long v12_57 = 0;
                                                                        while (v12_57 < v9_12) {
                                                                            int v13_49 = v8_30[v12_57];
                                                                            if (!"_dbg".equals(v13_49.name)) {
                                                                                v12_57++;
                                                                            } else {
                                                                                if (((!(v2_45 instanceof Long)) || (!v2_45.equals(v13_49.zzaxe))) && (((!(v2_45 instanceof String)) || (!v2_45.equals(v13_49.zzaml))) && ((!(v2_45 instanceof Double)) || (!v2_45.equals(v13_49.zzaun))))) {
                                                                                    break;
                                                                                }
                                                                                v2_47 = 1;
                                                                            }
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                long v12_58;
                                                                if (v2_47 != null) {
                                                                    v12_58 = 1;
                                                                } else {
                                                                    v12_58 = this.zzls().zzq(v7_3.zzaug.zztt, v11_58.name);
                                                                }
                                                                if (v12_58 > 0) {
                                                                    com.google.android.gms.measurement.internal.zzac v2_1 = ((com.google.android.gms.measurement.internal.zzac) v3_107.get(v11_58.name));
                                                                    if (v2_1 == null) {
                                                                        v2_1 = this.zzjt().zzg(v7_3.zzaug.zztt, v11_58.name);
                                                                        if (v2_1 == null) {
                                                                            this.zzada.zzgt().zzjj().zze("Event being bundled has no eventAggregate. appId, eventName", v7_3.zzaug.zztt, v11_58.name);
                                                                            v2_1 = new com.google.android.gms.measurement.internal.zzac;
                                                                            v2_1(v7_3.zzaug.zztt, v11_58.name, 1, 1, v11_58.zzaxb.longValue(), 0, 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    Boolean v8_38;
                                                                    this.zzjr();
                                                                    String v6_103 = ((Long) com.google.android.gms.measurement.internal.zzfu.zzb(v11_58, "_eid"));
                                                                    if (v6_103 == null) {
                                                                        v8_38 = 0;
                                                                    } else {
                                                                        v8_38 = 1;
                                                                    }
                                                                    Boolean v8_39 = Boolean.valueOf(v8_38);
                                                                    if (v12_58 != 1) {
                                                                        if (v5_3.nextInt(v12_58) != 0) {
                                                                            boolean v59;
                                                                            String v56;
                                                                            String v5_87;
                                                                            Boolean v58;
                                                                            v55 = v5_3;
                                                                            if (!this.zzada.zzgv().zzbf(v7_3.zzaug.zztt)) {
                                                                                v56 = v6_103;
                                                                                v57_0 = v7_3;
                                                                                v58 = v8_39;
                                                                                v59 = v14_21;
                                                                                if (Math.abs((v11_58.zzaxb.longValue() - v2_1.zzahy)) < 86400000) {
                                                                                    v5_87 = 0;
                                                                                } else {
                                                                                    v5_87 = 1;
                                                                                }
                                                                            } else {
                                                                                long v16_7;
                                                                                if (v2_1.zzahz == null) {
                                                                                    this.zzada.zzgr();
                                                                                    v56 = v6_103;
                                                                                    v57_0 = v7_3;
                                                                                    v58 = v8_39;
                                                                                    v16_7 = com.google.android.gms.measurement.internal.zzfy.zzc(v11_58.zzaxc.longValue(), v52);
                                                                                } else {
                                                                                    v16_7 = v2_1.zzahz.longValue();
                                                                                    v56 = v6_103;
                                                                                    v57_0 = v7_3;
                                                                                    v58 = v8_39;
                                                                                }
                                                                                if (v16_7 == v14_21) {
                                                                                    v5_87 = 0;
                                                                                } else {
                                                                                    v5_87 = 1;
                                                                                }
                                                                                v59 = v14_21;
                                                                            }
                                                                            if (v5_87 == null) {
                                                                                if (!v58.booleanValue()) {
                                                                                    v9_4 = (v50 + 1);
                                                                                    v6_11 = v48;
                                                                                    v8_10 = v49;
                                                                                    v2_9 = v51;
                                                                                    v5_3 = v55;
                                                                                    v7_3 = v57_0;
                                                                                } else {
                                                                                    v3_107.put(v11_58.name, v2_1.zza(v56, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.zzjr();
                                                                                v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_efs", Long.valueOf(1));
                                                                                this.zzjr();
                                                                                long v12_59 = ((long) v12_58);
                                                                                v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_sr", Long.valueOf(v12_59));
                                                                                String v5_100 = (v10_0 + 1);
                                                                                v4_24[v10_0] = v11_58;
                                                                                if (v58.booleanValue()) {
                                                                                    v2_1 = v2_1.zza(0, Long.valueOf(v12_59), Boolean.valueOf(1));
                                                                                }
                                                                                v3_107.put(v11_58.name, v2_1.zza(v11_58.zzaxb.longValue(), v59));
                                                                                v10_0 = v5_100;
                                                                            }
                                                                        } else {
                                                                            this.zzjr();
                                                                            long v12_0 = ((long) v12_58);
                                                                            v55 = v5_3;
                                                                            v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_sr", Long.valueOf(v12_0));
                                                                            String v5_2 = (v10_0 + 1);
                                                                            v4_24[v10_0] = v11_58;
                                                                            if (v8_39.booleanValue()) {
                                                                                v2_1 = v2_1.zza(0, Long.valueOf(v12_0), 0);
                                                                            }
                                                                            v3_107.put(v11_58.name, v2_1.zza(v11_58.zzaxb.longValue(), v14_21));
                                                                            v10_0 = v5_2;
                                                                        }
                                                                    } else {
                                                                        String v6_6 = (v10_0 + 1);
                                                                        v4_24[v10_0] = v11_58;
                                                                        if ((v8_39.booleanValue()) && ((v2_1.zzaia != null) || ((v2_1.zzaib != null) || (v2_1.zzaic != null)))) {
                                                                            v3_107.put(v11_58.name, v2_1.zza(0, 0, 0));
                                                                        }
                                                                        v55 = v5_3;
                                                                        v10_0 = v6_6;
                                                                    }
                                                                } else {
                                                                    this.zzada.zzgt().zzjj().zze("Sample rate must be positive. event, rate", v11_58.name, Integer.valueOf(v12_58));
                                                                    com.google.android.gms.measurement.internal.zzac v2_8 = (v10_0 + 1);
                                                                    v4_24[v10_0] = v11_58;
                                                                    v10_0 = v2_8;
                                                                    v55 = v5_3;
                                                                }
                                                                v57_0 = v7_3;
                                                            } else {
                                                                this.zzjr();
                                                                long v12_3 = ((String) com.google.android.gms.measurement.internal.zzfu.zzb(v11_58, "_en"));
                                                                int v13_1 = ((com.google.android.gms.measurement.internal.zzac) v3_107.get(v12_3));
                                                                if (v13_1 == 0) {
                                                                    v13_1 = this.zzjt().zzg(v7_3.zzaug.zztt, v12_3);
                                                                    v3_107.put(v12_3, v13_1);
                                                                }
                                                                if (v13_1.zzaia != null) {
                                                                    v48 = v6_11;
                                                                    v51 = v2_9;
                                                                    v55 = v5_3;
                                                                } else {
                                                                    if (v13_1.zzaib.longValue() > 1) {
                                                                        this.zzjr();
                                                                        v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_sr", v13_1.zzaib);
                                                                    }
                                                                    if ((v13_1.zzaic == null) || (!v13_1.zzaic.booleanValue())) {
                                                                        v48 = v6_11;
                                                                    } else {
                                                                        this.zzjr();
                                                                        v48 = v6_11;
                                                                        v11_58.zzaxa = com.google.android.gms.measurement.internal.zzfu.zza(v11_58.zzaxa, "_efs", Long.valueOf(1));
                                                                    }
                                                                    String v6_10 = (v10_0 + 1);
                                                                    v4_24[v10_0] = v11_58;
                                                                    v51 = v2_9;
                                                                    v55 = v5_3;
                                                                    v10_0 = v6_10;
                                                                }
                                                                v57_0 = v7_3;
                                                                v49 = v8_10;
                                                                v50 = v9_4;
                                                            }
                                                        }
                                                        v57_1 = v7_3;
                                                        if (v10_0 < v2_9.zzaxi.length) {
                                                            v2_9.zzaxi = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v4_24, v10_0));
                                                        }
                                                        String v3_109 = v3_107.entrySet().iterator();
                                                        while (v3_109.hasNext()) {
                                                            this.zzjt().zza(((com.google.android.gms.measurement.internal.zzac) ((java.util.Map$Entry) v3_109.next()).getValue()));
                                                        }
                                                    }
                                                    v2_9.zzaxl = Long.valueOf(nan);
                                                    v2_9.zzaxm = Long.valueOf(-0.0);
                                                    String v3_114 = 0;
                                                    while (v3_114 < v2_9.zzaxi.length) {
                                                        Object v4_34 = v2_9.zzaxi[v3_114];
                                                        if (v4_34.zzaxb.longValue() < v2_9.zzaxl.longValue()) {
                                                            v2_9.zzaxl = v4_34.zzaxb;
                                                        }
                                                        if (v4_34.zzaxb.longValue() > v2_9.zzaxm.longValue()) {
                                                            v2_9.zzaxm = v4_34.zzaxb;
                                                        }
                                                        v3_114++;
                                                    }
                                                    String v3_115 = v57_1;
                                                    Object v4_31 = v3_115.zzaug.zztt;
                                                    String v5_49 = this.zzjt().zzbm(v4_31);
                                                    if (v5_49 != null) {
                                                        if (v2_9.zzaxi.length > 0) {
                                                            Boolean v8_24;
                                                            String v6_58 = v5_49.zzhe();
                                                            if (v6_58 == 0) {
                                                                v8_24 = 0;
                                                            } else {
                                                                v8_24 = Long.valueOf(v6_58);
                                                            }
                                                            v2_9.zzaxo = v8_24;
                                                            Boolean v8_25 = v5_49.zzhd();
                                                            if (v8_25 != 0) {
                                                                v6_58 = v8_25;
                                                            } else {
                                                            }
                                                            String v6_59;
                                                            if (v6_58 == 0) {
                                                                v6_59 = 0;
                                                            } else {
                                                                v6_59 = Long.valueOf(v6_58);
                                                            }
                                                            v2_9.zzaxn = v6_59;
                                                            v5_49.zzhm();
                                                            v2_9.zzaxy = Integer.valueOf(((int) v5_49.zzhj()));
                                                            v5_49.zzo(v2_9.zzaxl.longValue());
                                                            v5_49.zzp(v2_9.zzaxm.longValue());
                                                            v2_9.zzagm = v5_49.zzhu();
                                                            this.zzjt().zza(v5_49);
                                                        }
                                                    } else {
                                                        this.zzada.zzgt().zzjg().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_115.zzaug.zztt));
                                                    }
                                                    if (v2_9.zzaxi.length > 0) {
                                                        this.zzada.zzgw();
                                                        String v5_57 = this.zzls().zzcg(v3_115.zzaug.zztt);
                                                        if (v5_57 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v3_115.zzaug.zzafi)) {
                                                                this.zzada.zzgt().zzjj().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_115.zzaug.zztt));
                                                            } else {
                                                                v2_9.zzayf = Long.valueOf(-1);
                                                            }
                                                        } else {
                                                            if (v5_57.zzawk != null) {
                                                                v2_9.zzayf = v5_57.zzawk;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzjt().zza(v2_9, v26);
                                                    }
                                                    com.google.android.gms.measurement.internal.zzac v2_36 = this.zzjt();
                                                    String v3_116 = v3_115.zzauh;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_116);
                                                    v2_36.zzaf();
                                                    v2_36.zzcl();
                                                    String v5_69 = new StringBuilder("rowid in (");
                                                    String v6_75 = 0;
                                                    while (v6_75 < v3_116.size()) {
                                                        if (v6_75 != null) {
                                                            v5_69.append(",");
                                                        }
                                                        v5_69.append(((Long) v3_116.get(v6_75)).longValue());
                                                        v6_75++;
                                                    }
                                                    v5_69.append(")");
                                                    String v5_71 = v2_36.getWritableDatabase().delete("raw_events", v5_69.toString(), 0);
                                                    if (v5_71 != v3_116.size()) {
                                                        v2_36.zzgt().zzjg().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_71), Integer.valueOf(v3_116.size()));
                                                    }
                                                    com.google.android.gms.measurement.internal.zzac v2_39 = this.zzjt();
                                                    String v3_119 = v2_39.getWritableDatabase();
                                                    try {
                                                        String v6_81 = new String[2];
                                                        v6_81[0] = v4_31;
                                                        v6_81[1] = v4_31;
                                                        v3_119.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_81);
                                                    } catch (android.database.sqlite.SQLiteException v0_11) {
                                                        v2_39.zzgt().zzjg().zze("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v4_31), v0_11);
                                                    }
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v6_5.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                        }
                                        if (v15_2.moveToNext()) {
                                            v4_40.zzgt().zzjj().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0));
                                        }
                                        long v16_5;
                                        int v17_4;
                                        v15_2.close();
                                        v2_29.zzb(v14_10);
                                        if (v5_81 == -1) {
                                            boolean v10_63 = new String[2];
                                            v10_63[0] = v3_0;
                                            v10_63[1] = v7_0;
                                            v16_5 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_4 = v10_63;
                                        } else {
                                            int v13_37 = new String[3];
                                            v13_37[0] = v3_0;
                                            v13_37[1] = v7_0;
                                            v13_37[2] = String.valueOf(v5_81);
                                            v16_5 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_4 = v13_37;
                                        }
                                        v6_5 = v15_2;
                                        String v5_17 = v25.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_5, v17_4, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_17.moveToFirst()) {
                                                v4_40.zzgt().zzjj().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0));
                                                if (v5_17 == null) {
                                                } else {
                                                    v5_17.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_9) {
                                            com.google.android.gms.measurement.internal.zzac v2_7 = v0_9;
                                            v6_5 = v5_17;
                                            if (v6_5 != null) {
                                                v6_5.close();
                                            }
                                            throw v2_7;
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            v7_0 = v3_0;
                                            v6_5 = v5_17;
                                            String v3_1 = v0_2;
                                            v4_40.zzgt().zzjg().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_0), v3_1);
                                            if (v6_5 == null) {
                                            } else {
                                                v6_5.close();
                                            }
                                        }
                                        do {
                                            String v6_28 = v5_17.getLong(0);
                                            long v12_48 = v5_17.getBlob(3);
                                            boolean v10_68 = com.google.android.gms.internal.measurement.zzxz.zzj(v12_48, 0, v12_48.length);
                                            long v12_50 = new com.google.android.gms.internal.measurement.zzft();
                                            v12_50.zza(v10_68);
                                            v12_50.name = v5_17.getString(1);
                                            v12_50.zzaxb = Long.valueOf(v5_17.getLong(2));
                                            if (v2_29.zza(v6_28, v12_50)) {
                                            } else {
                                                if (v5_17 == null) {
                                                } else {
                                                    v5_17.close();
                                                }
                                            }
                                        } while(v5_17.moveToNext());
                                        if (v5_17 == null) {
                                        } else {
                                            v5_17.close();
                                        }
                                    } else {
                                        v4_40.zzgt().zzjg().zzg("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_0));
                                        if (v15_2 == null) {
                                        } else {
                                            v15_2.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_7) {
                                    v6_5 = v15_2;
                                    v2_7 = v0_7;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v6_5 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_10) {
                                    v2_7 = v0_10;
                                    v6_5 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v7_0 = v3_0;
                                    v6_5 = v15_2;
                                }
                                v7_0 = v3_0;
                            } catch (android.database.sqlite.SQLiteException v0_4) {
                                v2_7 = v0_4;
                                v6_5 = v23;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v7_0 = v3_0;
                                v6_5 = v23;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                                v3_0.close();
                            }
                        }
                    } else {
                        try {
                            int v13_47;
                            if (v5_81 == -1) {
                                v13_47 = new String[1];
                                v13_47[0] = String.valueOf(p63);
                            } else {
                                v13_47 = new String[2];
                                v13_47[0] = String.valueOf(v5_81);
                                v13_47[1] = String.valueOf(p63);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                            v6_5 = 0;
                            v7_0 = 0;
                        }
                        boolean v14_22;
                        if (v5_81 == -1) {
                            v14_22 = "";
                        } else {
                            v14_22 = "rowid <= ? and ";
                        }
                        String v3_122 = new StringBuilder((String.valueOf(v14_22).length() + 148));
                        v3_122.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_122.append(v14_22);
                        v3_122.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_3.rawQuery(v3_122.toString(), v13_47);
                        if (v3_0.moveToFirst()) {
                            long v7_2 = v3_0.getString(0);
                            try {
                                int v13_4 = v3_0.getString(1);
                                v3_0.close();
                                v23 = v3_0;
                                v3_0 = v7_2;
                                v7_0 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v6_5 = v3_0;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                                v3_0.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_3) {
                    v2_7 = v0_3;
                    v6_5 = v3_0;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v6_5 = v3_0;
                    v7_0 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v2_7 = v0_1;
                v6_5 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v3_1 = v0_0;
                v6_5 = 0;
                v7_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
            }
        } catch (android.database.sqlite.SQLiteException v0_6) {
            com.google.android.gms.measurement.internal.zzac v2_30 = v0_6;
            this.zzjt().endTransaction();
            throw v2_30;
        }
    }

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


    private static boolean zza(com.google.android.gms.measurement.internal.zzas p11, android.database.sqlite.SQLiteDatabase p12, String p13)
    {
        if (p11 != null) {
            android.database.sqlite.SQLiteException v0_0 = 0;
            try {
                String[] v6 = new String[1];
                v6[0] = p13;
                android.database.sqlite.SQLiteException v12_1 = p12.query("SQLITE_MASTER", new String[] {"name"}), "name=?", v6, 0, 0, 0);
                try {
                    android.database.sqlite.SQLiteException v0_1 = v12_1.moveToFirst();
                } catch (Throwable v11_2) {
                    v0_0 = v12_1;
                    if (v0_0 != null) {
                        v0_0.close();
                    }
                    throw v11_2;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v0_0 = v12_1;
                    android.database.sqlite.SQLiteException v12_2 = v0_2;
                    p11.zzjj().zze("Error querying for table", p13, v12_2);
                    if (v0_0 != null) {
                        v0_0.close();
                    }
                    return 0;
                }
                if (v12_1 != null) {
                    v12_1.close();
                }
                return v0_1;
            } catch (Throwable v11_2) {
            } catch (android.database.sqlite.SQLiteException v12_2) {
            }
        } else {
            throw new IllegalArgumentException("Monitor must not be null");
        }
    }