Info Call to SQLite query API

Description

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

Recommendation

This entry is informative, no recommendations applicable.

Technical details

Method com.google.firebase.firestore.local.SQLitePersistence$Query.lambda$binding$0() calling method android.database.sqlite.SQLiteCursor.<init>()


    static synthetic android.database.Cursor lambda$binding$0(Object[] p0, android.database.sqlite.SQLiteDatabase p1, android.database.sqlite.SQLiteCursorDriver p2, String p3, android.database.sqlite.SQLiteQuery p4)
    {
        com.google.firebase.firestore.local.SQLitePersistence.access$100(p4, p0);
        return new android.database.sqlite.SQLiteCursor(p2, p3, p4);
    }

Method com.google.firebase.firestore.local.SQLiteSchema.addTargetCount() calling method android.database.sqlite.SQLiteDatabase.update()


    private void addTargetCount()
    {
        if (!this.tableContainsColumn("target_globals", "target_count")) {
            this.db.execSQL("ALTER TABLE target_globals ADD COLUMN target_count INTEGER");
        }
        int v2_0 = android.database.DatabaseUtils.queryNumEntries(this.db, "targets");
        android.content.ContentValues v4_1 = new android.content.ContentValues();
        v4_1.put("target_count", Long.valueOf(v2_0));
        this.db.update("target_globals", v4_1, 0, 0);
        return;
    }

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


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

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


    public final void zza(com.google.android.gms.measurement.internal.zzf p8)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p8);
        this.zzo();
        this.zzbi();
        String v1_4 = new android.content.ContentValues();
        v1_4.put("app_id", p8.zzag());
        v1_4.put("app_instance_id", p8.getAppInstanceId());
        v1_4.put("gmp_app_id", p8.getGmpAppId());
        v1_4.put("resettable_device_id_hash", p8.zzai());
        v1_4.put("last_bundle_index", Long.valueOf(p8.zzar()));
        v1_4.put("last_bundle_start_timestamp", Long.valueOf(p8.zzaj()));
        v1_4.put("last_bundle_end_timestamp", Long.valueOf(p8.zzak()));
        v1_4.put("app_version", p8.zzal());
        v1_4.put("app_store", p8.zzan());
        v1_4.put("gmp_version", Long.valueOf(p8.zzao()));
        v1_4.put("dev_cert_hash", Long.valueOf(p8.zzap()));
        v1_4.put("measurement_enabled", Boolean.valueOf(p8.isMeasurementEnabled()));
        v1_4.put("day", Long.valueOf(p8.zzav()));
        v1_4.put("daily_public_events_count", Long.valueOf(p8.zzaw()));
        v1_4.put("daily_events_count", Long.valueOf(p8.zzax()));
        v1_4.put("daily_conversions_count", Long.valueOf(p8.zzay()));
        v1_4.put("config_fetched_time", Long.valueOf(p8.zzas()));
        v1_4.put("failed_config_fetch_time", Long.valueOf(p8.zzat()));
        v1_4.put("app_version_int", Long.valueOf(p8.zzam()));
        v1_4.put("firebase_instance_id", p8.getFirebaseInstanceId());
        v1_4.put("daily_error_events_count", Long.valueOf(p8.zzba()));
        v1_4.put("daily_realtime_events_count", Long.valueOf(p8.zzaz()));
        v1_4.put("health_monitor_sample", p8.zzbb());
        v1_4.put("android_id", Long.valueOf(p8.zzbd()));
        v1_4.put("adid_reporting_enabled", Boolean.valueOf(p8.zzbe()));
        v1_4.put("ssaid_reporting_enabled", Boolean.valueOf(p8.zzbf()));
        v1_4.put("admob_app_id", p8.zzah());
        v1_4.put("dynamite_version", Long.valueOf(p8.zzaq()));
        if (p8.zzbh() != null) {
            if (p8.zzbh().size() != 0) {
                v1_4.put("safelisted_events", android.text.TextUtils.join(",", p8.zzbh()));
            } else {
                this.zzab().zzgn().zza("Safelisted events should not be an empty list. appId", p8.zzag());
            }
        }
        try {
            Object v2_26 = this.getWritableDatabase();
            int v4_2 = new String[1];
            v4_2[0] = p8.zzag();
        } catch (com.google.android.gms.measurement.internal.zzeh v0_5) {
            this.zzab().zzgk().zza("Error storing app. appId", com.google.android.gms.measurement.internal.zzef.zzam(p8.zzag()), v0_5);
            return;
        }
        if ((((long) v2_26.update("apps", v1_4, "app_id = ?", v4_2)) == 0) && (v2_26.insertWithOnConflict("apps", 0, v1_4, 5) == -1)) {
            this.zzab().zzgk().zza("Failed to insert/update app (got -1). appId", com.google.android.gms.measurement.internal.zzef.zzam(p8.zzag()));
        }
        return;
    }

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


    public final com.google.android.gms.measurement.internal.zzw zza(long p15, String p17, boolean p18, boolean p19, boolean p20, boolean p21, boolean p22)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p17);
        this.zzo();
        this.zzbi();
        com.google.android.gms.measurement.internal.zzeh v1_1 = new String[1];
        v1_1[0] = p17;
        com.google.android.gms.measurement.internal.zzw v3_1 = new com.google.android.gms.measurement.internal.zzw();
        try {
            android.database.sqlite.SQLiteDatabase v13 = this.getWritableDatabase();
            String[] v9 = "daily_public_events_count";
            int v11 = "daily_error_events_count";
            v9 = new String[1];
            v9[0] = p17;
            android.database.Cursor v4 = v13.query("apps", new String[] {"day", "daily_realtime_events_count"}), "app_id=?", v9, 0, 0, 0);
        } catch (android.content.ContentValues v0_8) {
            if (v4 != null) {
                v4.close();
            }
            throw v0_8;
        } catch (android.content.ContentValues v0_7) {
            this.zzab().zzgk().zza("Error updating daily counts. appId", com.google.android.gms.measurement.internal.zzef.zzam(p17), v0_7);
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        }
        if (v4.moveToFirst()) {
            if (v4.getLong(0) == p15) {
                v3_1.zzeg = v4.getLong(1);
                v3_1.zzef = v4.getLong(2);
                v3_1.zzeh = v4.getLong(3);
                v3_1.zzei = v4.getLong(4);
                v3_1.zzej = v4.getLong(5);
            }
            if (p18) {
                v3_1.zzeg = (v3_1.zzeg + 1);
            }
            if (p19) {
                v3_1.zzef = (v3_1.zzef + 1);
            }
            if (p20) {
                v3_1.zzeh = (v3_1.zzeh + 1);
            }
            if (p21) {
                v3_1.zzei = (v3_1.zzei + 1);
            }
            if (p22) {
                v3_1.zzej = (v3_1.zzej + 1);
            }
            android.content.ContentValues v0_10 = new android.content.ContentValues();
            v0_10.put("day", Long.valueOf(p15));
            v0_10.put("daily_public_events_count", Long.valueOf(v3_1.zzef));
            v0_10.put("daily_events_count", Long.valueOf(v3_1.zzeg));
            v0_10.put("daily_conversions_count", Long.valueOf(v3_1.zzeh));
            v0_10.put("daily_error_events_count", Long.valueOf(v3_1.zzei));
            v0_10.put("daily_realtime_events_count", Long.valueOf(v3_1.zzej));
            v13.update("apps", v0_10, "app_id=?", v1_1);
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        } else {
            this.zzab().zzgn().zza("Not updating daily counts, app is not known. appId", com.google.android.gms.measurement.internal.zzef.zzam(p17));
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        }
    }

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


    final java.util.List zza(String p72, java.util.List p73, java.util.List p74)
    {
        Long v29;
        boolean v9_0 = p72;
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p72);
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p73);
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p74);
        String v15_3 = new java.util.HashSet();
        java.util.ArrayList v13_4 = new android.support.v4.util.ArrayMap();
        java.util.Map v14_0 = new android.support.v4.util.ArrayMap();
        String v11_6 = new android.support.v4.util.ArrayMap();
        android.support.v4.util.ArrayMap v12_5 = new android.support.v4.util.ArrayMap();
        Integer v10_4 = new android.support.v4.util.ArrayMap();
        boolean v25 = this.zzad().zzq(p72);
        boolean v26 = this.zzad().zzd(p72, com.google.android.gms.measurement.internal.zzak.zziq);
        boolean v27 = this.zzad().zzd(p72, com.google.android.gms.measurement.internal.zzak.zziy);
        boolean v28 = this.zzad().zzd(p72, com.google.android.gms.measurement.internal.zzak.zziz);
        if ((!v27) && (!v28)) {
            v29 = 0;
        } else {
            int v0_26 = p73.iterator();
            while (v0_26.hasNext()) {
                int v1_96 = ((com.google.android.gms.internal.measurement.zzbs$zzc) v0_26.next());
                if ("_s".equals(v1_96.getName())) {
                    v29 = Long.valueOf(v1_96.getTimestampMillis());
                }
            }
        }
        if ((v29 != null) && (v28)) {
            int v1_98 = this.zzgy();
            v1_98.zzbi();
            v1_98.zzo();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p72);
            int v0_51 = new android.content.ContentValues();
            v0_51.put("current_session_count", Integer.valueOf(0));
            try {
                long v2_97 = v1_98.getWritableDatabase();
                boolean v8_86 = new String[1];
                v8_86[0] = p72;
                v2_97.update("events", v0_51, "app_id = ?", v8_86);
            } catch (int v0_56) {
                v1_98.zzab().zzgk().zza("Error resetting session-scoped event counts. appId", com.google.android.gms.measurement.internal.zzef.zzam(p72), v0_56);
            }
        }
        int v0_66 = this.zzgy().zzaf(p72);
        if ((v0_66 != 0) && (!v0_66.isEmpty())) {
            String v3_3;
            int v1_0 = new java.util.HashSet(v0_66.keySet());
            if ((!v27) || (v29 == null)) {
                v3_3 = v0_66;
            } else {
                long v2_4 = this.zzgx();
                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p72);
                com.google.android.gms.common.internal.Preconditions.checkNotNull(v0_66);
                v3_3 = new android.support.v4.util.ArrayMap();
                if (!v0_66.isEmpty()) {
                    String v5_3 = v2_4.zzgy().zzae(p72);
                    boolean v8_13 = v0_66.keySet().iterator();
                    while (v8_13.hasNext()) {
                        java.util.Iterator v20_11;
                        long v21_13;
                        long v22_6;
                        boolean v17_13 = ((Integer) v8_13.next()).intValue();
                        String v6_19 = ((com.google.android.gms.internal.measurement.zzbs$zzi) v0_66.get(Integer.valueOf(v17_13)));
                        int v4_21 = ((java.util.List) v5_3.get(Integer.valueOf(v17_13)));
                        if ((v4_21 != 0) && (!v4_21.isEmpty())) {
                            v20_11 = v5_3;
                            v21_13 = v8_13;
                            String v5_17 = v2_4.zzgw().zza(v6_19.zzpy(), v4_21);
                            if (v5_17.isEmpty()) {
                                v5_3 = v20_11;
                                v8_13 = v21_13;
                            } else {
                                String v5_19 = ((com.google.android.gms.internal.measurement.zzbs$zzi$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v6_19.zzuj())).zzqr().zzo(v5_17);
                                v22_6 = v2_4;
                                v5_19.zzqq().zzn(v2_4.zzgw().zza(v6_19.zzpv(), v4_21));
                                long v2_69 = 0;
                                while (v2_69 < v6_19.zzqc()) {
                                    if (v4_21.contains(Integer.valueOf(v6_19.zzae(v2_69).getIndex()))) {
                                        v5_19.zzaj(v2_69);
                                    }
                                    v2_69++;
                                }
                                long v2_70 = 0;
                                while (v2_70 < v6_19.zzqf()) {
                                    if (v4_21.contains(Integer.valueOf(v6_19.zzag(v2_70).getIndex()))) {
                                        v5_19.zzak(v2_70);
                                    }
                                    v2_70++;
                                }
                                v3_3.put(Integer.valueOf(v17_13), ((com.google.android.gms.internal.measurement.zzbs$zzi) ((com.google.android.gms.internal.measurement.zzey) v5_19.zzug())));
                                v5_3 = v20_11;
                                v8_13 = v21_13;
                                v2_4 = v22_6;
                            }
                        } else {
                            v22_6 = v2_4;
                            v20_11 = v5_3;
                            v21_13 = v8_13;
                            v3_3.put(Integer.valueOf(v17_13), v6_19);
                        }
                        String v6 = 1;
                    }
                }
            }
            int v1_26 = v1_0.iterator();
            while (v1_26.hasNext()) {
                java.util.Iterator v20_3;
                boolean v8_24;
                long v22_4;
                long v2_64 = ((Integer) v1_26.next()).intValue();
                int v4_14 = ((com.google.android.gms.internal.measurement.zzbs$zzi) v3_3.get(Integer.valueOf(v2_64)));
                String v5_11 = ((java.util.BitSet) v14_0.get(Integer.valueOf(v2_64)));
                String v6_15 = ((java.util.BitSet) v11_6.get(Integer.valueOf(v2_64)));
                if (!v25) {
                    v22_4 = v1_26;
                    v20_3 = v3_3;
                    v8_24 = 0;
                } else {
                    v8_24 = new android.support.v4.util.ArrayMap();
                    if ((v4_14 != 0) && (v4_14.zzqc() != 0)) {
                        boolean v17_8 = v4_14.zzqb().iterator();
                        while (v17_8.hasNext()) {
                            java.util.Iterator v20_7;
                            long v22_5;
                            java.util.Iterator v20_6 = ((com.google.android.gms.internal.measurement.zzbs$zzb) v17_8.next());
                            if (!v20_6.zzme()) {
                                v22_5 = v1_26;
                                v20_7 = v3_3;
                            } else {
                                String v3_31;
                                v22_5 = v1_26;
                                int v1_81 = Integer.valueOf(v20_6.getIndex());
                                if (!v20_6.zzmf()) {
                                    v20_7 = v3_3;
                                    v3_31 = 0;
                                } else {
                                    v20_7 = v3_3;
                                    v3_31 = Long.valueOf(v20_6.zzmg());
                                }
                                v8_24.put(v1_81, v3_31);
                            }
                            v3_3 = v20_7;
                            v1_26 = v22_5;
                        }
                    }
                    v22_4 = v1_26;
                    v20_3 = v3_3;
                    v12_5.put(Integer.valueOf(v2_64), v8_24);
                }
                if (v5_11 == null) {
                    v5_11 = new java.util.BitSet();
                    v14_0.put(Integer.valueOf(v2_64), v5_11);
                    v6_15 = new java.util.BitSet();
                    v11_6.put(Integer.valueOf(v2_64), v6_15);
                }
                if (v4_14 != 0) {
                    int v1_85 = 0;
                    while (v1_85 < (v4_14.zzpw() << 6)) {
                        String v23_4;
                        boolean v17_10;
                        String v3_47;
                        long v21_12;
                        if (!com.google.android.gms.measurement.internal.zzjo.zza(v4_14.zzpv(), v1_85)) {
                            v17_10 = v11_6;
                            v21_12 = v12_5;
                            v23_4 = v14_0;
                            v3_47 = 0;
                        } else {
                            v17_10 = v11_6;
                            v21_12 = v12_5;
                            v23_4 = v14_0;
                            this.zzab().zzgs().zza("Filter already evaluated. audience ID, filter ID", Integer.valueOf(v2_64), Integer.valueOf(v1_85));
                            v6_15.set(v1_85);
                            if (!com.google.android.gms.measurement.internal.zzjo.zza(v4_14.zzpy(), v1_85)) {
                            } else {
                                v5_11.set(v1_85);
                                v3_47 = 1;
                            }
                        }
                        if ((v8_24) && (v3_47 == null)) {
                            v8_24.remove(Integer.valueOf(v1_85));
                        }
                        v1_85++;
                        v11_6 = v17_10;
                        v12_5 = v21_12;
                        v14_0 = v23_4;
                    }
                }
                boolean v17_9 = v11_6;
                long v21_11 = v12_5;
                String v23_3 = v14_0;
                int v1_87 = com.google.android.gms.internal.measurement.zzbs$zza.zzmc().zzk(0);
                if (!v27) {
                    v1_87.zza(v4_14);
                } else {
                    v1_87.zza(((com.google.android.gms.internal.measurement.zzbs$zzi) v0_66.get(Integer.valueOf(v2_64))));
                }
                String v3_40 = com.google.android.gms.internal.measurement.zzbs$zzi.zzqh().zzo(com.google.android.gms.measurement.internal.zzjo.zza(v5_11)).zzn(com.google.android.gms.measurement.internal.zzjo.zza(v6_15));
                if (v25) {
                    v3_40.zzp(com.google.android.gms.measurement.internal.zzp.zza(v8_24));
                    v10_4.put(Integer.valueOf(v2_64), new android.support.v4.util.ArrayMap());
                }
                v1_87.zza(v3_40);
                v13_4.put(Integer.valueOf(v2_64), ((com.google.android.gms.internal.measurement.zzbs$zza) ((com.google.android.gms.internal.measurement.zzey) v1_87.zzug())));
                v11_6 = v17_9;
                v3_3 = v20_3;
                v12_5 = v21_11;
                v1_26 = v22_4;
                v14_0 = v23_3;
            }
        }
        boolean v17_4 = v11_6;
        long v21_3 = v12_5;
        String v23_2 = v14_0;
        java.util.Map v14_1 = "Filter definition";
        boolean v8_17 = "Skipping failed audience ID";
        if (!p73.isEmpty()) {
            String v6_7 = new android.support.v4.util.ArrayMap();
            java.util.Iterator v31 = p73.iterator();
            long v2_13 = 0;
            int v0_12 = 0;
            int v1_29 = 0;
            while (v31.hasNext()) {
                int v24_10;
                int v4_32 = ((com.google.android.gms.internal.measurement.zzbs$zzc) v31.next());
                String v5_37 = v4_32.getName();
                java.util.Iterator v20_13 = v4_32.zzmj();
                this.zzgw();
                android.support.v4.util.ArrayMap v12_31 = ((Long) com.google.android.gms.measurement.internal.zzjo.zzb(v4_32, "_eid"));
                if (v12_31 == null) {
                    v24_10 = 0;
                } else {
                    v24_10 = 1;
                }
                long v35;
                long v2_101;
                if (v24_10 == 0) {
                    v35 = v2_13;
                    v2_101 = 0;
                } else {
                    v35 = v2_13;
                    if (!v5_37.equals("_ep")) {
                    } else {
                        v2_101 = 1;
                    }
                }
                int v0_11;
                String v11_1;
                long v18_0;
                int v42;
                boolean v40;
                Integer v41_0;
                com.google.android.gms.measurement.internal.zzeh v39_0;
                if (v2_101 == 0) {
                    v11_1 = v4_32;
                    v41_0 = v6_7;
                    v18_0 = v8_17;
                    if (v24_10 == 0) {
                        v39_0 = v0_12;
                        v40 = v1_29;
                        v0_11 = v5_37;
                    } else {
                        this.zzgw();
                        int v0_67 = Long.valueOf(0);
                        int v1_126 = com.google.android.gms.measurement.internal.zzjo.zzb(v11_1, "_epc");
                        if (v1_126 != 0) {
                            v0_67 = v1_126;
                        }
                        boolean v8_91;
                        v35 = ((Long) v0_67).longValue();
                        if (v35 > 0) {
                            v8_91 = v5_37;
                            this.zzgy().zza(p72, v12_31, v35, v11_1);
                        } else {
                            this.zzab().zzgn().zza("Complex event with zero extra param count. eventName", v5_37);
                            v8_91 = v5_37;
                        }
                        v0_11 = v8_91;
                        v39_0 = v11_1;
                        v40 = v12_31;
                    }
                    v42 = v20_13;
                } else {
                    Integer v41_2;
                    long v18_2;
                    this.zzgw();
                    String v5_39 = ((String) com.google.android.gms.measurement.internal.zzjo.zzb(v4_32, "_en"));
                    if (!android.text.TextUtils.isEmpty(v5_39)) {
                        if ((v0_12 != 0) && ((v1_29 != 0) && (v12_31.longValue() == v1_29.longValue()))) {
                            String v11_0 = v0_12;
                            int v24_0 = v1_29;
                            long v2_0 = v35;
                        } else {
                            long v2_110 = this.zzgy().zza(v9_0, v12_31);
                            if ((v2_110 != 0) && (v2_110.first != null)) {
                                int v0_1 = ((com.google.android.gms.internal.measurement.zzbs$zzc) v2_110.first);
                                v2_0 = ((Long) v2_110.second).longValue();
                                this.zzgw();
                                v11_0 = v0_1;
                                v24_0 = ((Long) com.google.android.gms.measurement.internal.zzjo.zzb(v0_1, "_eid"));
                            } else {
                                v41_2 = v6_7;
                                v18_2 = v8_17;
                                this.zzab().zzgk().zza("Extra parameter without existing main event. eventName, eventId", v5_39, v12_31);
                                v8_17 = v18_2;
                                v2_13 = v35;
                                v6_7 = v41_2;
                            }
                        }
                        android.support.v4.util.ArrayMap v12_0;
                        boolean v8_0;
                        v35 = (v2_0 - 1);
                        if (v35 > 0) {
                            v12_0 = v4_32;
                            v18_0 = v8_17;
                            v8_0 = v5_39;
                            v41_0 = v6_7;
                            this.zzgy().zza(p72, v12_31, v35, v11_0);
                        } else {
                            int v1_6 = this.zzgy();
                            v1_6.zzo();
                            v1_6.zzab().zzgs().zza("Clearing complex main event info. appId", v9_0);
                            try {
                                int v0_5 = v1_6.getWritableDatabase();
                                try {
                                    android.support.v4.util.ArrayMap v12_1 = new String[1];
                                    try {
                                        v12_1[0] = v9_0;
                                        v0_5.execSQL("delete from main_event_params where app_id=?", v12_1);
                                    } catch (int v0_6) {
                                        v1_6.zzab().zzgk().zza("Error clearing complex main event", v0_6);
                                    }
                                    v12_0 = v4_32;
                                    v41_0 = v6_7;
                                    v18_0 = v8_17;
                                    v8_0 = v5_39;
                                } catch (int v0_6) {
                                }
                            } catch (int v0_6) {
                            }
                        }
                        int v0_8 = new java.util.ArrayList();
                        int v1_10 = v11_0.zzmj().iterator();
                        while (v1_10.hasNext()) {
                            long v2_57 = ((com.google.android.gms.internal.measurement.zzbs$zze) v1_10.next());
                            this.zzgw();
                            if (com.google.android.gms.measurement.internal.zzjo.zza(v12_0, v2_57.getName()) == null) {
                                v0_8.add(v2_57);
                            }
                        }
                        if (v0_8.isEmpty()) {
                            this.zzab().zzgn().zza("No unique parameters in main event. eventName", v8_0);
                            v0_11 = v8_0;
                            v39_0 = v11_0;
                            v11_1 = v12_0;
                            v42 = v20_13;
                        } else {
                            int v1_13 = v20_13.iterator();
                            while (v1_13.hasNext()) {
                                v0_8.add(((com.google.android.gms.internal.measurement.zzbs$zze) v1_13.next()));
                            }
                            v42 = v0_8;
                            v0_11 = v8_0;
                            v39_0 = v11_0;
                            v11_1 = v12_0;
                        }
                        v40 = v24_0;
                        long v7_0;
                        int v44_0;
                        android.support.v4.util.ArrayMap v46_0;
                        String v43_0;
                        int v4_1;
                        java.util.Map v49;
                        String v3_6;
                        long v48_0;
                        String v47_0;
                        long v34;
                        String v5_1;
                        int v1_15 = this.zzgy().zzc(v9_0, v11_1.getName());
                        if (v1_15 != 0) {
                            long v2_9;
                            v3_6 = v9_0;
                            v4_1 = v10_4;
                            v34 = v11_1;
                            v46_0 = v13_4;
                            v48_0 = v14_1;
                            v49 = v15_3;
                            v43_0 = v17_4;
                            v5_1 = v18_0;
                            v44_0 = v21_3;
                            v47_0 = v23_2;
                            if (!v28) {
                                v2_9 = new com.google.android.gms.measurement.internal.zzae;
                                v2_9(v1_15.zzce, v1_15.name, (v1_15.zzfg + 1), (v1_15.zzfh + 1), v1_15.zzfi, v1_15.zzfj, v1_15.zzfk, v1_15.zzfl, v1_15.zzfm, v1_15.zzfn, v1_15.zzfo);
                            } else {
                                v2_9 = new com.google.android.gms.measurement.internal.zzae;
                                v2_9(v1_15.zzce, v1_15.name, (v1_15.zzfg + 1), (v1_15.zzfh + 1), (v1_15.zzfi + 1), v1_15.zzfj, v1_15.zzfk, v1_15.zzfl, v1_15.zzfm, v1_15.zzfn, v1_15.zzfo);
                            }
                            v7_0 = v2_9;
                        } else {
                            int v1_20;
                            this.zzab().zzgn().zza("Event aggregate wasn\'t created during raw event logging. appId, event", com.google.android.gms.measurement.internal.zzef.zzam(p72), this.zzy().zzaj(v0_11));
                            if (!v28) {
                                v3_6 = v9_0;
                                v4_1 = v10_4;
                                v34 = v11_1;
                                v46_0 = v13_4;
                                v48_0 = v14_1;
                                v49 = v15_3;
                                v43_0 = v17_4;
                                v5_1 = v18_0;
                                v44_0 = v21_3;
                                v47_0 = v23_2;
                                v1_20 = new com.google.android.gms.measurement.internal.zzae;
                                v1_20(p72, v34.getName(), 1, 1, v34.getTimestampMillis(), 0, 0, 0, 0, 0);
                            } else {
                                v1_20 = new com.google.android.gms.measurement.internal.zzae;
                                v5_1 = v18_0;
                                v4_1 = v10_4;
                                v34 = v11_1;
                                v43_0 = v17_4;
                                v44_0 = v21_3;
                                v46_0 = v13_4;
                                v48_0 = v14_1;
                                v47_0 = v23_2;
                                v49 = v15_3;
                                v3_6 = v9_0;
                                v1_20(p72, v11_1.getName(), 1, 1, 1, v34.getTimestampMillis(), 0, 0, 0, 0, 0);
                            }
                            v7_0 = v1_20;
                        }
                        this.zzgy().zza(v7_0);
                        boolean v8_16 = v7_0.zzfg;
                        Integer v10_3 = v41_0;
                        int v1_23 = ((java.util.Map) v10_3.get(v0_11));
                        if (v1_23 == 0) {
                            v1_23 = this.zzgy().zzh(v3_6, v0_11);
                            if (v1_23 == 0) {
                                v1_23 = new android.support.v4.util.ArrayMap();
                            }
                            v10_3.put(v0_11, v1_23);
                        }
                        String v11_8 = v1_23;
                        android.support.v4.util.ArrayMap v12_2 = v11_8.keySet().iterator();
                        while (v12_2.hasNext()) {
                            java.util.ArrayList v13_5 = ((Integer) v12_2.next()).intValue();
                            java.util.Map v14_2 = v49;
                            if (!v14_2.contains(Integer.valueOf(v13_5))) {
                                boolean v19_3;
                                boolean v9_4;
                                boolean v17_5;
                                android.support.v4.util.ArrayMap v16_0;
                                boolean v8_18;
                                String v15_4 = v47_0;
                                int v1_36 = ((java.util.BitSet) v15_4.get(Integer.valueOf(v13_5)));
                                String v6_8 = v43_0;
                                long v2_17 = ((java.util.BitSet) v6_8.get(Integer.valueOf(v13_5)));
                                if (!v25) {
                                    v16_0 = v1_36;
                                    v17_5 = v8_16;
                                    v8_18 = v44_0;
                                    v9_4 = 0;
                                    v19_3 = 0;
                                } else {
                                    v16_0 = v1_36;
                                    v17_5 = v8_16;
                                    v8_18 = v44_0;
                                    v9_4 = ((java.util.Map) v4_1.get(Integer.valueOf(v13_5)));
                                    v19_3 = ((java.util.Map) v8_18.get(Integer.valueOf(v13_5)));
                                }
                                Integer v41_1;
                                Integer v10_7;
                                android.support.v4.util.ArrayMap v12_4;
                                android.support.v4.util.ArrayMap v16_1;
                                java.util.Iterator v20_1 = v9_4;
                                boolean v9_7 = v46_0;
                                if (((com.google.android.gms.internal.measurement.zzbs$zza) v9_7.get(Integer.valueOf(v13_5))) != null) {
                                    v41_1 = v10_3;
                                    v10_7 = v16_0;
                                    v16_1 = v12_2;
                                    v12_4 = v20_1;
                                } else {
                                    v41_1 = v10_3;
                                    v9_7.put(Integer.valueOf(v13_5), ((com.google.android.gms.internal.measurement.zzbs$zza) ((com.google.android.gms.internal.measurement.zzey) com.google.android.gms.internal.measurement.zzbs$zza.zzmc().zzk(1).zzug())));
                                    int v1_45 = new java.util.BitSet();
                                    v15_4.put(Integer.valueOf(v13_5), v1_45);
                                    v2_17 = new java.util.BitSet();
                                    v6_8.put(Integer.valueOf(v13_5), v2_17);
                                    if (!v25) {
                                        v16_0 = v1_45;
                                    } else {
                                        Integer v10_9 = new android.support.v4.util.ArrayMap();
                                        android.support.v4.util.ArrayMap v16_2 = v1_45;
                                        v8_18.put(Integer.valueOf(v13_5), v10_9);
                                        int v1_48 = new android.support.v4.util.ArrayMap();
                                        long v21_4 = v2_17;
                                        v4_1.put(Integer.valueOf(v13_5), v1_48);
                                        v19_3 = v10_9;
                                        v10_7 = v16_2;
                                        v2_17 = v21_4;
                                        v16_1 = v12_2;
                                        v12_4 = v1_48;
                                    }
                                }
                                java.util.Iterator v20_2 = ((java.util.List) v11_8.get(Integer.valueOf(v13_5))).iterator();
                                while (v20_2.hasNext()) {
                                    long v22_3;
                                    long v21_6;
                                    int v1_54 = ((com.google.android.gms.internal.measurement.zzbk$zza) v20_2.next());
                                    if ((!v28) || ((!v27) || (!v1_54.zzki()))) {
                                        v21_6 = v2_17;
                                        v22_3 = v17_5;
                                    } else {
                                        v21_6 = v2_17;
                                        v22_3 = v7_0.zzfi;
                                    }
                                    String v43_1;
                                    String v5_4;
                                    int v24_3;
                                    String v37_0;
                                    if (!this.zzab().isLoggable(2)) {
                                        v24_3 = v4_1;
                                        v37_0 = v5_1;
                                        v43_1 = v6_8;
                                        v5_4 = v48_0;
                                    } else {
                                        int v4_3;
                                        long v2_30 = this.zzab().zzgs();
                                        String v3_10 = Integer.valueOf(v13_5);
                                        if (!v1_54.zzkb()) {
                                            v24_3 = v4_1;
                                            v37_0 = v5_1;
                                            v4_3 = 0;
                                        } else {
                                            v37_0 = v5_1;
                                            v24_3 = v4_1;
                                            v4_3 = Integer.valueOf(v1_54.getId());
                                        }
                                        v43_1 = v6_8;
                                        v2_30.zza("Evaluating filter. audience, filter, event", v3_10, v4_3, this.zzy().zzaj(v1_54.zzjz()));
                                        v5_4 = v48_0;
                                        this.zzab().zzgs().zza(v5_4, this.zzgw().zza(v1_54));
                                    }
                                    if ((v1_54.zzkb()) && (v1_54.getId() <= 256)) {
                                        if (!v25) {
                                            String v69_0 = v5_4;
                                            boolean v45 = v7_0;
                                            android.support.v4.util.ArrayMap v46_1 = v9_7;
                                            String v47_1 = v15_4;
                                            boolean v9_8 = v19_3;
                                            long v7_1 = v21_6;
                                            int v67_0 = v24_3;
                                            String v15_5 = v37_0;
                                            String v68_0 = v43_1;
                                            boolean v19_4 = v1_54;
                                            int v24_7 = v8_18;
                                            long v21_7 = v11_8;
                                            String v11_9 = p72;
                                            if (!v10_7.get(v19_4.getId())) {
                                                String v3_14;
                                                int v1_58 = this.zza(v19_4, v0_11, v42, v22_3);
                                                com.google.android.gms.measurement.internal.zzeh vtmp508 = this.zzab().zzgs();
                                                if (v1_58 != 0) {
                                                    v3_14 = v1_58;
                                                } else {
                                                    v3_14 = "null";
                                                }
                                                vtmp508.zza("Event filter result", v3_14);
                                                if (v1_58 != 0) {
                                                    v7_1.set(v19_4.getId());
                                                    if (v1_58.booleanValue()) {
                                                        v10_7.set(v19_4.getId());
                                                    }
                                                } else {
                                                    v14_2.add(Integer.valueOf(v13_5));
                                                }
                                            } else {
                                                boolean v8_20;
                                                int v1_63 = this.zzab().zzgs();
                                                long v2_39 = Integer.valueOf(v13_5);
                                                if (!v19_4.zzkb()) {
                                                    v8_20 = 0;
                                                } else {
                                                    v8_20 = Integer.valueOf(v19_4.getId());
                                                }
                                                v1_63.zza("Event filter already evaluated true. audience ID, filter ID", v2_39, v8_20);
                                            }
                                        } else {
                                            String v3_19;
                                            long v2_40 = v1_54.zzkf();
                                            boolean v38 = v1_54.zzkg();
                                            if ((!v27) || (!v1_54.zzki())) {
                                                v3_19 = 0;
                                            } else {
                                                v3_19 = 1;
                                            }
                                            if ((v2_40 == 0) && ((!v38) && (v3_19 == null))) {
                                                int v44_1 = 0;
                                            } else {
                                                v44_1 = 1;
                                            }
                                            if ((!v10_7.get(v1_54.getId())) || (v44_1 != 0)) {
                                                String v3_22;
                                                boolean v19_5 = v1_54;
                                                v45 = v7_0;
                                                v7_1 = v21_6;
                                                v46_1 = v9_7;
                                                v21_7 = v11_8;
                                                v11_9 = p72;
                                                v9_8 = v19_3;
                                                v67_0 = v24_3;
                                                v24_7 = v8_18;
                                                v69_0 = v5_4;
                                                v47_1 = v15_4;
                                                v15_5 = v37_0;
                                                v68_0 = v43_1;
                                                int v1_65 = this.zza(v19_5, v0_11, v42, v22_3);
                                                com.google.android.gms.measurement.internal.zzeh vtmp520 = this.zzab().zzgs();
                                                if (v1_65 != 0) {
                                                    v3_22 = v1_65;
                                                } else {
                                                    v3_22 = "null";
                                                }
                                                vtmp520.zza("Event filter result", v3_22);
                                                if (v1_65 != 0) {
                                                    v7_1.set(v19_5.getId());
                                                    if (v1_65.booleanValue()) {
                                                        v10_7.set(v19_5.getId());
                                                        if ((v44_1 != 0) && (v34.zzml())) {
                                                            if (!v38) {
                                                                com.google.android.gms.measurement.internal.zzp.zza(v9_8, v19_5.getId(), v34.getTimestampMillis());
                                                            } else {
                                                                com.google.android.gms.measurement.internal.zzp.zzb(v12_4, v19_5.getId(), v34.getTimestampMillis());
                                                            }
                                                        }
                                                    }
                                                } else {
                                                    v14_2.add(Integer.valueOf(v13_5));
                                                }
                                            } else {
                                                int v1_72;
                                                long v2_50 = this.zzab().zzgs();
                                                String v3_23 = Integer.valueOf(v13_5);
                                                if (!v1_54.zzkb()) {
                                                    v1_72 = 0;
                                                } else {
                                                    v1_72 = Integer.valueOf(v1_54.getId());
                                                }
                                                v2_50.zza("Event filter already evaluated true and it is not associated with an enhanced audience. audience ID, filter ID", v3_23, v1_72);
                                                v3_6 = p72;
                                                v48_0 = v5_4;
                                                v2_17 = v21_6;
                                                v4_1 = v24_3;
                                                v5_1 = v37_0;
                                                v6_8 = v43_1;
                                            }
                                        }
                                    } else {
                                        boolean v8_22;
                                        v69_0 = v5_4;
                                        v45 = v7_0;
                                        v46_1 = v9_7;
                                        v47_1 = v15_4;
                                        v9_8 = v19_3;
                                        v7_1 = v21_6;
                                        v67_0 = v24_3;
                                        v15_5 = v37_0;
                                        v68_0 = v43_1;
                                        boolean v19_6 = v1_54;
                                        v24_7 = v8_18;
                                        v21_7 = v11_8;
                                        v11_9 = p72;
                                        int v1_75 = this.zzab().zzgn();
                                        long v2_51 = com.google.android.gms.measurement.internal.zzef.zzam(p72);
                                        if (!v19_6.zzkb()) {
                                            v8_22 = 0;
                                        } else {
                                            v8_22 = Integer.valueOf(v19_6.getId());
                                        }
                                        v1_75.zza("Invalid event filter ID. appId, id", v2_51, String.valueOf(v8_22));
                                    }
                                    v2_17 = v7_1;
                                    v19_3 = v9_8;
                                    v3_6 = v11_9;
                                    v5_1 = v15_5;
                                    v11_8 = v21_7;
                                    v8_18 = v24_7;
                                    v7_0 = v45;
                                    v9_7 = v46_1;
                                    v15_4 = v47_1;
                                    v4_1 = v67_0;
                                    v6_8 = v68_0;
                                    v48_0 = v69_0;
                                }
                                v43_0 = v6_8;
                                v44_0 = v8_18;
                                v46_0 = v9_7;
                                v49 = v14_2;
                                v47_0 = v15_4;
                                v12_2 = v16_1;
                                v8_16 = v17_5;
                                v10_3 = v41_1;
                            } else {
                                this.zzab().zzgs().zza(v5_1, Integer.valueOf(v13_5));
                                v49 = v14_2;
                            }
                        }
                        v9_0 = v3_6;
                        v8_17 = v5_1;
                        v6_7 = v10_3;
                        v2_13 = v35;
                        v0_12 = v39_0;
                        v1_29 = v40;
                        v17_4 = v43_0;
                        v21_3 = v44_0;
                        v13_4 = v46_0;
                        v23_2 = v47_0;
                        v14_1 = v48_0;
                        v15_3 = v49;
                        v10_4 = v4_1;
                    } else {
                        this.zzab().zzgk().zza("Extra parameter without an event name. eventId", v12_31);
                        v41_2 = v6_7;
                        v18_2 = v8_17;
                    }
                }
            }
        }
        String v11_10 = v9_0;
        int v67_1 = v10_4;
        android.support.v4.util.ArrayMap v46_2 = v13_4;
        String v69_1 = v14_1;
        java.util.Map v14_3 = v15_3;
        String v68_1 = v17_4;
        int v24_8 = v21_3;
        String v47_2 = v23_2;
        String v15_6 = v8_17;
        if (!p74.isEmpty()) {
            int v0_16 = new android.support.v4.util.ArrayMap();
            int v1_76 = p74.iterator();
            while (v1_76.hasNext()) {
                long v2_94 = ((com.google.android.gms.internal.measurement.zzbs$zzk) v1_76.next());
                String v3_67 = ((java.util.Map) v0_16.get(v2_94.getName()));
                if (v3_67 == null) {
                    v3_67 = this.zzgy().zzi(v11_10, v2_94.getName());
                    if (v3_67 == null) {
                        v3_67 = new android.support.v4.util.ArrayMap();
                    }
                    v0_16.put(v2_94.getName(), v3_67);
                }
                int v4_28 = v3_67.keySet().iterator();
                while (v4_28.hasNext()) {
                    String v5_34 = ((Integer) v4_28.next()).intValue();
                    if (!v14_3.contains(Integer.valueOf(v5_34))) {
                        java.util.ArrayList v13_14;
                        android.support.v4.util.ArrayMap v16_6;
                        android.support.v4.util.ArrayMap v12_22;
                        com.google.android.gms.internal.measurement.zzbs$zzj$zza v73_3;
                        int v1_97;
                        Integer v10_12;
                        long v7_12 = v47_2;
                        String v6_30 = ((java.util.BitSet) v7_12.get(Integer.valueOf(v5_34)));
                        boolean v9_10 = v68_1;
                        boolean v8_83 = ((java.util.BitSet) v9_10.get(Integer.valueOf(v5_34)));
                        if (!v25) {
                            v73_3 = v1_76;
                            v12_22 = v24_8;
                            v1_97 = v67_1;
                            v16_6 = v0_16;
                            v10_12 = 0;
                            v13_14 = 0;
                        } else {
                            v12_22 = v24_8;
                            v10_12 = ((java.util.Map) v12_22.get(Integer.valueOf(v5_34)));
                            v73_3 = v1_76;
                            v1_97 = v67_1;
                            v13_14 = ((java.util.Map) v1_97.get(Integer.valueOf(v5_34)));
                            v16_6 = v0_16;
                        }
                        com.google.android.gms.measurement.internal.zzp v74_4 = v4_28;
                        int v4_29 = v46_2;
                        if (((com.google.android.gms.internal.measurement.zzbs$zza) v4_29.get(Integer.valueOf(v5_34))) == null) {
                            v4_29.put(Integer.valueOf(v5_34), ((com.google.android.gms.internal.measurement.zzbs$zza) ((com.google.android.gms.internal.measurement.zzey) com.google.android.gms.internal.measurement.zzbs$zza.zzmc().zzk(1).zzug())));
                            v6_30 = new java.util.BitSet();
                            v7_12.put(Integer.valueOf(v5_34), v6_30);
                            v8_83 = new java.util.BitSet();
                            v9_10.put(Integer.valueOf(v5_34), v8_83);
                            if (v25) {
                                v10_12 = new android.support.v4.util.ArrayMap();
                                v12_22.put(Integer.valueOf(v5_34), v10_12);
                                v13_14 = new android.support.v4.util.ArrayMap();
                                v1_97.put(Integer.valueOf(v5_34), v13_14);
                            }
                        }
                        int v0_47 = ((java.util.List) v3_67.get(Integer.valueOf(v5_34))).iterator();
                        while (v0_47.hasNext()) {
                            int v44_3;
                            String v11_13;
                            long v18_4 = v0_47;
                            int v0_49 = ((com.google.android.gms.internal.measurement.zzbk$zzd) v0_47.next());
                            boolean v17_17 = v3_67;
                            String v37_1 = v15_6;
                            if (!this.zzab().isLoggable(2)) {
                                v67_1 = v1_97;
                                v44_3 = v12_22;
                                v11_13 = v69_1;
                            } else {
                                String v11_14;
                                String v3_73 = this.zzab().zzgs();
                                String v15_17 = Integer.valueOf(v5_34);
                                if (!v0_49.zzkb()) {
                                    v67_1 = v1_97;
                                    v11_14 = 0;
                                } else {
                                    v67_1 = v1_97;
                                    v11_14 = Integer.valueOf(v0_49.getId());
                                }
                                v44_3 = v12_22;
                                v3_73.zza("Evaluating filter. audience, filter, property", v15_17, v11_14, this.zzy().zzal(v0_49.getPropertyName()));
                                v11_13 = v69_1;
                                this.zzab().zzgs().zza(v11_13, this.zzgw().zza(v0_49));
                            }
                            if ((v0_49.zzkb()) && (v0_49.getId() <= 256)) {
                                String v43_3;
                                long v48_1;
                                if (!v25) {
                                    v43_3 = v9_10;
                                    v48_1 = v11_13;
                                    if (!v6_30.get(v0_49.getId())) {
                                        android.support.v4.util.ArrayMap v12_25;
                                        boolean v9_13 = this.zza(v0_49, v2_94);
                                        String v11_16 = this.zzab().zzgs();
                                        if (v9_13) {
                                            v12_25 = v9_13;
                                        } else {
                                            v12_25 = "null";
                                        }
                                        v11_16.zza("Property filter result", v12_25);
                                        if (v9_13) {
                                            v8_83.set(v0_49.getId());
                                            if (v9_13.booleanValue()) {
                                                v6_30.set(v0_49.getId());
                                            }
                                        } else {
                                            v14_3.add(Integer.valueOf(v5_34));
                                        }
                                    } else {
                                        int v0_54;
                                        int v1_109 = this.zzab().zzgs();
                                        boolean v9_14 = Integer.valueOf(v5_34);
                                        if (!v0_49.zzkb()) {
                                            v0_54 = 0;
                                        } else {
                                            v0_54 = Integer.valueOf(v0_49.getId());
                                        }
                                        v1_109.zza("Property filter already evaluated true. audience ID, filter ID", v9_14, v0_54);
                                    }
                                } else {
                                    boolean v19_11;
                                    android.support.v4.util.ArrayMap v12_26 = v0_49.zzkf();
                                    String v15_18 = v0_49.zzkg();
                                    if ((!v27) || (!v0_49.zzki())) {
                                        v19_11 = 0;
                                    } else {
                                        v19_11 = 1;
                                    }
                                    if ((v12_26 == null) && ((v15_18 == null) && (!v19_11))) {
                                        android.support.v4.util.ArrayMap v12_27 = 0;
                                    } else {
                                        v12_27 = 1;
                                    }
                                    if ((!v6_30.get(v0_49.getId())) || (v12_27 != null)) {
                                        boolean v9_15;
                                        java.util.Iterator v20_12 = this.zza(v0_49, v2_94);
                                        v48_1 = v11_13;
                                        com.google.android.gms.measurement.internal.zzeh vtmp439 = this.zzab().zzgs();
                                        if (v20_12 != null) {
                                            v43_3 = v9_10;
                                            v9_15 = v20_12;
                                        } else {
                                            v43_3 = v9_10;
                                            v9_15 = "null";
                                        }
                                        vtmp439.zza("Property filter result", v9_15);
                                        if (v20_12 != null) {
                                            v8_83.set(v0_49.getId());
                                            if ((!v27) || ((!v19_11) || (v20_12.booleanValue()))) {
                                                if (!v26) {
                                                    v6_30.set(v0_49.getId(), v20_12.booleanValue());
                                                } else {
                                                    if ((!v6_30.get(v0_49.getId())) || (v0_49.zzkf())) {
                                                        v6_30.set(v0_49.getId(), v20_12.booleanValue());
                                                    }
                                                }
                                                if ((v20_12.booleanValue()) && ((v12_27 != null) && (v2_94.zzqs()))) {
                                                    String v11_20 = v2_94.zzqt();
                                                    if ((v27) && ((v19_11) && (v29 != null))) {
                                                        v11_20 = v29.longValue();
                                                    }
                                                    if (v15_18 == null) {
                                                        com.google.android.gms.measurement.internal.zzp.zza(v10_12, v0_49.getId(), v11_20);
                                                    } else {
                                                        com.google.android.gms.measurement.internal.zzp.zzb(v13_14, v0_49.getId(), v11_20);
                                                    }
                                                }
                                            }
                                        } else {
                                            v14_3.add(Integer.valueOf(v5_34));
                                        }
                                    } else {
                                        int v0_60;
                                        int v1_122 = this.zzab().zzgs();
                                        String v3_83 = Integer.valueOf(v5_34);
                                        if (!v0_49.zzkb()) {
                                            v0_60 = 0;
                                        } else {
                                            v0_60 = Integer.valueOf(v0_49.getId());
                                        }
                                        v1_122.zza("Property filter already evaluated true and it is not associated with an enhanced audience. audience ID, filter ID", v3_83, v0_60);
                                        v69_1 = v11_13;
                                        v3_67 = v17_17;
                                        v0_47 = v18_4;
                                        v15_6 = v37_1;
                                        v12_22 = v44_3;
                                        v1_97 = v67_1;
                                    }
                                }
                                v3_67 = v17_17;
                                v0_47 = v18_4;
                                v15_6 = v37_1;
                                v9_10 = v43_3;
                                v12_22 = v44_3;
                                v69_1 = v48_1;
                                v1_97 = v67_1;
                            } else {
                                boolean v8_88;
                                String v43_4 = v9_10;
                                long v48_2 = v11_13;
                                int v1_124 = this.zzab().zzgn();
                                String v6_38 = com.google.android.gms.measurement.internal.zzef.zzam(p72);
                                if (!v0_49.zzkb()) {
                                    v8_88 = 0;
                                } else {
                                    v8_88 = Integer.valueOf(v0_49.getId());
                                }
                                v1_124.zza("Invalid property filter ID. appId, id", v6_38, String.valueOf(v8_88));
                                v14_3.add(Integer.valueOf(v5_34));
                                v1_76 = v73_3;
                                v46_2 = v4_29;
                                v47_2 = v7_12;
                                v0_16 = v16_6;
                                v3_67 = v17_17;
                                v15_6 = v37_1;
                                v68_1 = v43_4;
                                v24_8 = v44_3;
                                v69_1 = v48_2;
                            }
                            v4_28 = v74_4;
                        }
                        String v11 = p72;
                        v67_1 = v1_97;
                        v46_2 = v4_29;
                        v47_2 = v7_12;
                        v68_1 = v9_10;
                        v24_8 = v12_22;
                        v0_16 = v16_6;
                        v1_76 = v73_3;
                    } else {
                        this.zzab().zzgs().zza(v15_6, Integer.valueOf(v5_34));
                    }
                }
                v11_10 = p72;
            }
        }
        int v44_2 = v24_8;
        int v4_11 = v46_2;
        long v7_2 = v47_2;
        String v43_2 = v68_1;
        int v1_80 = new java.util.ArrayList();
        long v2_65 = v7_2.keySet().iterator();
        while (v2_65.hasNext()) {
            String v47_3;
            int v0_22 = ((Integer) v2_65.next()).intValue();
            if (v14_3.contains(Integer.valueOf(v0_22))) {
                v47_3 = v7_2;
                String v3 = this;
            } else {
                String v5_25;
                String v5_22 = ((com.google.android.gms.internal.measurement.zzbs$zza) v4_11.get(Integer.valueOf(v0_22)));
                if (v5_22 != null) {
                    v5_25 = ((com.google.android.gms.internal.measurement.zzbs$zza$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v5_22.zzuj()));
                } else {
                    v5_25 = com.google.android.gms.internal.measurement.zzbs$zza.zzmc();
                }
                com.google.android.gms.internal.measurement.zzbs$zzj$zza v73_1;
                Integer v10_11;
                String v11_12;
                v5_25.zzi(v0_22);
                boolean v9_9 = v43_2;
                String v6_22 = com.google.android.gms.internal.measurement.zzbs$zzi.zzqh().zzo(com.google.android.gms.measurement.internal.zzjo.zza(((java.util.BitSet) v7_2.get(Integer.valueOf(v0_22))))).zzn(com.google.android.gms.measurement.internal.zzjo.zza(((java.util.BitSet) v9_9.get(Integer.valueOf(v0_22)))));
                if (!v25) {
                    v73_1 = v2_65;
                    v47_3 = v7_2;
                    v10_11 = v44_2;
                    v11_12 = v67_1;
                } else {
                    android.support.v4.util.ArrayMap v12_8;
                    v10_11 = v44_2;
                    v6_22.zzp(com.google.android.gms.measurement.internal.zzp.zza(((java.util.Map) v10_11.get(Integer.valueOf(v0_22)))));
                    v11_12 = v67_1;
                    boolean v8_58 = ((java.util.Map) v11_12.get(Integer.valueOf(v0_22)));
                    if (v8_58) {
                        v12_8 = new java.util.ArrayList(v8_58.size());
                        java.util.ArrayList v13_8 = v8_58.keySet().iterator();
                        while (v13_8.hasNext()) {
                            String v15_9 = ((Integer) v13_8.next());
                            com.google.android.gms.internal.measurement.zzbs$zzj$zza v73_2 = v2_65;
                            long v2_74 = com.google.android.gms.internal.measurement.zzbs$zzj.zzqo().zzal(v15_9.intValue());
                            String v3_51 = ((java.util.List) v8_58.get(v15_9));
                            if (v3_51 != null) {
                                java.util.Collections.sort(v3_51);
                                String v3_52 = v3_51.iterator();
                                while (v3_52.hasNext()) {
                                    String v47_5 = v7_2;
                                    com.google.android.gms.measurement.internal.zzp v74_2 = v8_58;
                                    v2_74.zzbj(((Long) v3_52.next()).longValue());
                                    v8_58 = v74_2;
                                    v7_2 = v47_5;
                                }
                            }
                            String v47_4 = v7_2;
                            com.google.android.gms.measurement.internal.zzp v74_1 = v8_58;
                            v12_8.add(((com.google.android.gms.internal.measurement.zzbs$zzj) ((com.google.android.gms.internal.measurement.zzey) v2_74.zzug())));
                            v2_65 = v73_2;
                            v8_58 = v74_1;
                            v7_2 = v47_4;
                        }
                        v73_1 = v2_65;
                        v47_3 = v7_2;
                    } else {
                        v73_1 = v2_65;
                        v47_3 = v7_2;
                        v12_8 = java.util.Collections.emptyList();
                    }
                    if ((v26) && (v5_25.zzlw())) {
                        long v2_80 = v5_25.zzlx().zzqe();
                        if (!v2_80.isEmpty()) {
                            String v3_55 = new java.util.ArrayList(v12_8);
                            long v7_5 = new android.support.v4.util.ArrayMap();
                            long v2_81 = v2_80.iterator();
                            while (v2_81.hasNext()) {
                                boolean v8_78 = ((com.google.android.gms.internal.measurement.zzbs$zzj) v2_81.next());
                                if ((v8_78.zzme()) && (v8_78.zzql() > 0)) {
                                    v7_5.put(Integer.valueOf(v8_78.getIndex()), Long.valueOf(v8_78.zzai((v8_78.zzql() - 1))));
                                }
                            }
                            long v2_82 = 0;
                            while (v2_82 < v3_55.size()) {
                                android.support.v4.util.ArrayMap v12_12;
                                boolean v8_68 = ((com.google.android.gms.internal.measurement.zzbs$zzj) v3_55.get(v2_82));
                                if (!v8_68.zzme()) {
                                    v12_12 = 0;
                                } else {
                                    v12_12 = Integer.valueOf(v8_68.getIndex());
                                }
                                android.support.v4.util.ArrayMap v12_15 = ((Long) v7_5.remove(v12_12));
                                if (v12_15 != null) {
                                    java.util.ArrayList v13_11 = new java.util.ArrayList();
                                    if (v12_15.longValue() < v8_68.zzai(0)) {
                                        v13_11.add(v12_15);
                                    }
                                    v13_11.addAll(v8_68.zzqk());
                                    v3_55.set(v2_82, ((com.google.android.gms.internal.measurement.zzbs$zzj) ((com.google.android.gms.internal.measurement.zzey) ((com.google.android.gms.internal.measurement.zzbs$zzj$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v8_68.zzuj())).zzqw().zzr(v13_11).zzug())));
                                }
                                v2_82++;
                            }
                            long v2_84 = v7_5.keySet().iterator();
                            while (v2_84.hasNext()) {
                                boolean v8_64 = ((Integer) v2_84.next());
                                com.google.android.gms.measurement.internal.zzp v74_3 = v7_5;
                                v3_55.add(((com.google.android.gms.internal.measurement.zzbs$zzj) ((com.google.android.gms.internal.measurement.zzey) com.google.android.gms.internal.measurement.zzbs$zzj.zzqo().zzal(v8_64.intValue()).zzbj(((Long) v7_5.get(v8_64)).longValue()).zzug())));
                                v7_5 = v74_3;
                            }
                            v12_8 = v3_55;
                        }
                    }
                    v6_22.zzq(v12_8);
                }
                v5_25.zza(v6_22);
                v4_11.put(Integer.valueOf(v0_22), ((com.google.android.gms.internal.measurement.zzbs$zza) ((com.google.android.gms.internal.measurement.zzey) v5_25.zzug())));
                v1_80.add(((com.google.android.gms.internal.measurement.zzbs$zza) ((com.google.android.gms.internal.measurement.zzey) v5_25.zzug())));
                long v2_89 = this.zzgy();
                String v3_59 = v5_25.zzlv();
                v2_89.zzbi();
                v2_89.zzo();
                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p72);
                com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_59);
                String v3_60 = v3_59.toByteArray();
                String v5_27 = new android.content.ContentValues();
                v5_27.put("app_id", p72);
                v5_27.put("audience_id", Integer.valueOf(v0_22));
                v5_27.put("current_results", v3_60);
                try {
                    try {
                        if (v2_89.getWritableDatabase().insertWithOnConflict("audience_filter_values", 0, v5_27, 5) != -1) {
                            v2_65 = v73_1;
                            v43_2 = v9_9;
                            v44_2 = v10_11;
                            v67_1 = v11_12;
                        } else {
                            v2_89.zzab().zzgk().zza("Failed to insert filter results (got -1). appId", com.google.android.gms.measurement.internal.zzef.zzam(p72));
                        }
                    } catch (int v0_30) {
                        v2_89.zzab().zzgk().zza("Error storing filter results. appId", com.google.android.gms.measurement.internal.zzef.zzam(p72), v0_30);
                    }
                } catch (int v0_30) {
                }
            }
            v7_2 = v47_3;
        }
        return v1_80;
    }

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


    protected final boolean zza(String p17, byte[] p18, String p19)
    {
        this.zzbi();
        this.zzo();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p17);
        com.google.android.gms.measurement.internal.zzeh v0_3 = this.zza(p17, p18);
        if (v0_3 != null) {
            void v1_1 = this.zza(p17, v0_3);
            v1_1.zznp.put(p17, v0_3);
            v1_1.zznr.put(p17, p19);
            v1_1.zznm.put(p17, com.google.android.gms.measurement.internal.zzfd.zza(v0_3));
            Object v4_3 = this.zzgx();
            com.google.android.gms.measurement.internal.zzx v5_2 = v0_3.zzzo;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v5_2);
            long v6_0 = 0;
            while (v6_0 < v5_2.length) {
                String v7_2 = v5_2[v6_0];
                if (v7_2.zzzh != null) {
                    int v9_9 = 0;
                    while (v9_9 < v7_2.zzzh.length) {
                        int v12_2;
                        com.google.android.gms.internal.measurement.zzbk$zza[] v10_6 = ((com.google.android.gms.internal.measurement.zzbk$zza$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v7_2.zzzh[v9_9].zzuj()));
                        com.google.android.gms.internal.measurement.zzbk$zza v11_3 = ((com.google.android.gms.internal.measurement.zzbk$zza$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v10_6.clone()));
                        int v12_1 = com.google.android.gms.measurement.internal.zzgj.zzbe(v10_6.zzjz());
                        if (v12_1 == 0) {
                            v12_2 = 0;
                        } else {
                            v11_3.zzbs(v12_1);
                            v12_2 = 1;
                        }
                        int v13_0 = v12_2;
                        int v12_3 = 0;
                        while (v12_3 < v10_6.zzka()) {
                            com.google.android.gms.internal.measurement.zzbk$zzb v14_1 = v10_6.zze(v12_3);
                            String v15_1 = com.google.android.gms.measurement.internal.zzgi.zzbe(v14_1.zzkr());
                            if (v15_1 != null) {
                                v11_3.zza(v12_3, ((com.google.android.gms.internal.measurement.zzbk$zzb) ((com.google.android.gms.internal.measurement.zzey) ((com.google.android.gms.internal.measurement.zzbk$zzb$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v14_1.zzuj())).zzbu(v15_1).zzug())));
                                v13_0 = 1;
                            }
                            v12_3++;
                        }
                        if (v13_0 != 0) {
                            v7_2.zzzh[v9_9] = ((com.google.android.gms.internal.measurement.zzbk$zza) ((com.google.android.gms.internal.measurement.zzey) v11_3.zzug()));
                        }
                        v9_9++;
                    }
                }
                if (v7_2.zzzg != null) {
                    int v8_0 = 0;
                    while (v8_0 < v7_2.zzzg.length) {
                        int v9_1 = v7_2.zzzg[v8_0];
                        com.google.android.gms.internal.measurement.zzbk$zza[] v10_1 = com.google.android.gms.measurement.internal.zzgl.zzbe(v9_1.getPropertyName());
                        if (v10_1 != null) {
                            v7_2.zzzg[v8_0] = ((com.google.android.gms.internal.measurement.zzbk$zzd) ((com.google.android.gms.internal.measurement.zzey) ((com.google.android.gms.internal.measurement.zzbk$zzd$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v9_1.zzuj())).zzbw(v10_1).zzug()));
                        }
                        v8_0++;
                    }
                }
                v6_0++;
            }
            v4_3.zzgy().zza(p17, v5_2);
            try {
                v0_3.zzzo = 0;
                Object v4_7 = new byte[v0_3.zzuk()];
                v0_3.zza(com.google.android.gms.internal.measurement.zzio.zzk(v4_7, 0, v4_7.length));
            } catch (com.google.android.gms.measurement.internal.zzeh v0_0) {
                this.zzab().zzgn().zza("Unable to serialize reduced-size config. Storing full config instead. appId", com.google.android.gms.measurement.internal.zzef.zzam(p17), v0_0);
                v4_7 = p18;
            }
            com.google.android.gms.measurement.internal.zzx v5_6 = this.zzgy();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p17);
            v5_6.zzo();
            v5_6.zzbi();
            com.google.android.gms.measurement.internal.zzeh v0_2 = new android.content.ContentValues();
            v0_2.put("remote_config", v4_7);
            try {
                Object v4_10 = v5_6.getWritableDatabase();
                int v9_10 = new String[1];
                v9_10[0] = p17;
            } catch (com.google.android.gms.measurement.internal.zzeh v0_6) {
                v5_6.zzab().zzgk().zza("Error storing remote config. appId", com.google.android.gms.measurement.internal.zzef.zzam(p17), v0_6);
                return 1;
            }
            if (((long) v4_10.update("apps", v0_2, "app_id = ?", v9_10)) != 0) {
                return 1;
            } else {
                v5_6.zzab().zzgk().zza("Failed to update remote config (got 0). appId", com.google.android.gms.measurement.internal.zzef.zzam(p17));
                return 1;
            }
        } else {
            return 0;
        }
    }

Method com.google.firebase.firestore.local.SQLitePersistence$Query.startQuery() calling method android.database.sqlite.SQLiteDatabase.rawQueryWithFactory()


    private android.database.Cursor startQuery()
    {
        android.database.Cursor v0_0 = this.cursorFactory;
        if (v0_0 == null) {
            return this.db.rawQuery(this.sql, 0);
        } else {
            return this.db.rawQueryWithFactory(v0_0, this.sql, 0, 0);
        }
    }

Method com.google.firebase.firestore.local.SQLiteSchema.getTableColumns() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    java.util.List getTableColumns(String p6)
    {
        java.util.ArrayList v0_1 = new java.util.ArrayList();
        try {
            String v2_2 = this.db;
            StringBuilder v3_1 = new StringBuilder();
            v3_1.append("PRAGMA table_info(");
            v3_1.append(p6);
            v3_1.append(")");
            android.database.Cursor v1_0 = v2_2.rawQuery(v3_1.toString(), 0);
            Throwable v6_3 = v1_0.getColumnIndex("name");
        } catch (Throwable v6_4) {
            if (v1_0 != null) {
                v1_0.close();
            }
            throw v6_4;
        }
        while (v1_0.moveToNext()) {
            v0_1.add(v1_0.getString(v6_3));
        }
        if (v1_0 != null) {
            v1_0.close();
        }
        return v0_1;
    }

Method com.google.firebase.firestore.local.SQLitePersistence$Query.startQuery() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private android.database.Cursor startQuery()
    {
        android.database.Cursor v0_0 = this.cursorFactory;
        if (v0_0 == null) {
            return this.db.rawQuery(this.sql, 0);
        } else {
            return this.db.rawQueryWithFactory(v0_0, this.sql, 0, 0);
        }
    }

Method com.google.firebase.firestore.local.SQLitePersistence$OpenHelper.onConfigure() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


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

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


    public final String zzu(long p5)
    {
        this.zzo();
        this.zzbi();
        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.zzab().zzgs().zzao("No expired configs for apps with pending events");
                    if (v5_1 != 0) {
                        v5_1.close();
                    }
                    return 0;
                }
            } catch (String v6_1) {
                this.zzab().zzgk().zza("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.zzx.zzcf() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


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

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


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

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


    final java.util.Map zzae(String p8)
    {
        this.zzbi();
        this.zzo();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p8);
        android.database.sqlite.SQLiteException v0_2 = new android.support.v4.util.ArrayMap();
        int v1_1 = this.getWritableDatabase();
        try {
            java.util.ArrayList v4_0 = new String[2];
            v4_0[0] = p8;
            v4_0[1] = p8;
            int v1_0 = v1_1.rawQuery("select audience_id, filter_id from event_filters where app_id = ? and session_scoped = 1 UNION select audience_id, filter_id from property_filters where app_id = ? and session_scoped = 1;", v4_0);
            try {
                if (!v1_0.moveToFirst()) {
                    java.util.Map v8_3 = java.util.Collections.emptyMap();
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return v8_3;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                this.zzab().zzgk().zza("Database error querying scoped filters. appId", com.google.android.gms.measurement.internal.zzef.zzam(p8), v0_0);
                if (v1_0 != 0) {
                    v1_0.close();
                }
                return 0;
            }
            do {
                boolean v3_1 = v1_0.getInt(0);
                java.util.ArrayList v4_3 = ((java.util.List) v0_2.get(Integer.valueOf(v3_1)));
                if (v4_3 == null) {
                    v4_3 = new java.util.ArrayList();
                    v0_2.put(Integer.valueOf(v3_1), v4_3);
                }
                v4_3.add(Integer.valueOf(v1_0.getInt(1)));
            } while(v1_0.moveToNext());
            if (v1_0 != 0) {
                v1_0.close();
            }
            return v0_2;
        } catch (java.util.Map v8_1) {
            v1_0 = 0;
            if (v1_0 != 0) {
                v1_0.close();
            }
            throw v8_1;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v1_0 = 0;
        } catch (java.util.Map v8_1) {
        }
    }

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


    public final android.util.Pair zza(String p8, Long p9)
    {
        this.zzo();
        this.zzbi();
        try {
            int v1_1 = this.getWritableDatabase();
            com.google.android.gms.measurement.internal.zzeh v3_5 = new String[2];
            v3_5[0] = p8;
            v3_5[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_5);
            try {
                if (v1_0.moveToFirst()) {
                    java.io.IOException v2_1 = v1_0.getBlob(0);
                    com.google.android.gms.measurement.internal.zzeh v3_1 = Long.valueOf(v1_0.getLong(1));
                    try {
                        Object v8_3 = com.google.android.gms.internal.measurement.zzbs$zzc.zzc(v2_1, com.google.android.gms.internal.measurement.zzel.zztq());
                    } catch (java.io.IOException v2_2) {
                        this.zzab().zzgk().zza("Failed to merge main event. appId, eventId", com.google.android.gms.measurement.internal.zzef.zzam(v8_3), p9, v2_2);
                        if (v1_0 != 0) {
                            v1_0.close();
                        }
                        return 0;
                    }
                    Object v8_5 = android.util.Pair.create(v8_3, v3_1);
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return v8_5;
                } else {
                    this.zzab().zzgs().zzao("Main event not found");
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return 0;
                }
            } catch (Object v8_1) {
                this.zzab().zzgk().zza("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.zzx.zza() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


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

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


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

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


    private final boolean zza(int p17, byte[] p18)
    {
        this.zzm();
        this.zzo();
        Long v3_9 = 0;
        if (!this.zzjw) {
            android.content.ContentValues v4_1 = new android.content.ContentValues();
            v4_1.put("type", Integer.valueOf(p17));
            v4_1.put("entry", p18);
            int v5_2 = 5;
            int v6 = 0;
            int v7 = 5;
            while (v6 < v5_2) {
                String v8_0 = 0;
                try {
                    String[] v10 = this.getWritableDatabase();
                    try {
                        if (v10 != null) {
                            try {
                                v10.beginTransaction();
                                Long v11_1 = 0;
                                int v13 = v10.rawQuery("select count(1) from messages", 0);
                                try {
                                    if ((v13 != 0) && (v13.moveToFirst())) {
                                        v11_1 = v13.getLong(v3_9);
                                    }
                                    if (v11_1 >= 100000) {
                                        this.zzab().zzgk().zzao("Data loss, local db full");
                                        long v14_2 = ((100000 - v11_1) + 1);
                                        String v8_2 = new String[1];
                                        v8_2[v3_9] = Long.toString(v14_2);
                                        Long v11_4 = ((long) v10.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v8_2));
                                        if (v11_4 != v14_2) {
                                            this.zzab().zzgk().zza("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v14_2), Long.valueOf(v11_4), Long.valueOf((v14_2 - v11_4)));
                                        }
                                    }
                                    v10.insertOrThrow("messages", 0, v4_1);
                                    v10.setTransactionSuccessful();
                                    v10.endTransaction();
                                    if (v13 != 0) {
                                        v13.close();
                                    }
                                    if (v10 != null) {
                                        v10.close();
                                    }
                                    return 1;
                                } catch (com.google.android.gms.measurement.internal.zzeh v0_3) {
                                    if (v13 != 0) {
                                        v13.close();
                                    }
                                    if (v10 != null) {
                                        v10.close();
                                    }
                                    throw v0_3;
                                } catch (com.google.android.gms.measurement.internal.zzeh v0_2) {
                                    v8_0 = v13;
                                    this.zzab().zzgk().zza("Error writing entry to local database", v0_2);
                                    this.zzjw = 1;
                                    if (v8_0 != null) {
                                        v8_0.close();
                                    }
                                    if (v10 == null) {
                                        v6++;
                                        v3_9 = 0;
                                        v5_2 = 5;
                                    } else {
                                        v10.close();
                                    }
                                } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                                    v8_0 = v13;
                                    android.os.SystemClock.sleep(((long) v7));
                                    v7 += 20;
                                    if (v8_0 != null) {
                                        v8_0.close();
                                    }
                                    if (v10 == null) {
                                    } else {
                                        v10.close();
                                    }
                                } catch (com.google.android.gms.measurement.internal.zzeh v0_1) {
                                }
                            } catch (com.google.android.gms.measurement.internal.zzeh v0_3) {
                                v13 = 0;
                            } catch (com.google.android.gms.measurement.internal.zzeh v0_2) {
                            } catch (com.google.android.gms.measurement.internal.zzeh v0_1) {
                                v13 = 0;
                            }
                        } else {
                            try {
                                this.zzjw = 1;
                            } catch (com.google.android.gms.measurement.internal.zzeh v0_2) {
                            } catch (com.google.android.gms.measurement.internal.zzeh v0_1) {
                                v13 = 0;
                            }
                            if (v10 != null) {
                                v10.close();
                            }
                            return v3_9;
                        }
                        v8_0 = v10;
                        if (v8_0 != null) {
                            try {
                                if (v8_0.inTransaction()) {
                                    v8_0.endTransaction();
                                }
                            } catch (com.google.android.gms.measurement.internal.zzeh v0_3) {
                                v10 = v8_0;
                            }
                        }
                        this.zzab().zzgk().zza("Error writing entry to local database", v0_1);
                        this.zzjw = 1;
                        if (v13 != 0) {
                            v13.close();
                        }
                        if (v8_0 == null) {
                        } else {
                            v8_0.close();
                        }
                    } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                        v8_0 = 0;
                    }
                } catch (com.google.android.gms.measurement.internal.zzeh v0_3) {
                    v10 = 0;
                    v13 = 0;
                } catch (com.google.android.gms.measurement.internal.zzeh v0_2) {
                    v10 = 0;
                } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                    v10 = 0;
                } catch (com.google.android.gms.measurement.internal.zzeh v0_1) {
                    v13 = 0;
                } catch (com.google.android.gms.measurement.internal.zzeh v0_3) {
                    v13 = v8_0;
                }
            }
            this.zzab().zzgn().zzao("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

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


    private final boolean zzd(String p63, long p64)
    {
        this.zzgy().beginTransaction();
        try {
            String v3_7 = 0;
            String v2_7 = new com.google.android.gms.measurement.internal.zzjg$zza(this, 0);
            int v4_184 = this.zzgy();
            com.google.android.gms.measurement.internal.zzx v5_103 = this.zztj;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_7);
            v4_184.zzo();
            v4_184.zzbi();
            try {
                int v23;
                String v7_2;
                String v15_7 = v4_184.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        Boolean v13_20;
                        String v3_9 = v5_103 cmp -1;
                        if (v3_9 == null) {
                            v13_20 = new String[] {0});
                        } else {
                            String v7_30 = new String[2];
                            v7_30[0] = 0;
                            v7_30[1] = String.valueOf(v5_103);
                            v13_20 = v7_30;
                        }
                        String v3_16;
                        if (v3_9 == null) {
                            v3_16 = "";
                        } else {
                            v3_16 = " and rowid <= ?";
                        }
                        int v14_34 = new StringBuilder((v3_16.length() + 84));
                        v14_34.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_34.append(v3_16);
                        v14_34.append(" order by rowid limit 1;");
                        v3_7 = v15_7.rawQuery(v14_34.toString(), v13_20);
                        if (v3_7.moveToFirst()) {
                            Boolean v13_24 = v3_7.getString(0);
                            v3_7.close();
                            v23 = v3_7;
                            v7_2 = v13_24;
                            v3_7 = 0;
                            try {
                                Boolean v13_3 = new String[2];
                                v13_3[0] = v3_7;
                                v13_3[1] = v7_2;
                                int v25_1 = v15_7;
                                String v15_3 = v15_7.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_3, 0, 0, "rowid", "2");
                                try {
                                    if (v15_3.moveToFirst()) {
                                        try {
                                            Boolean v13_10 = com.google.android.gms.internal.measurement.zzbs$zzg.zzd(v15_3.getBlob(0), com.google.android.gms.internal.measurement.zzel.zztq());
                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                            long v6_27 = v15_3;
                                            v4_184.zzab().zzgk().zza("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7), v0_3);
                                            if (v6_27 == 0) {
                                                String v3_14;
                                                if (v2_7.zztp == null) {
                                                    v3_14 = 1;
                                                } else {
                                                    if (!v2_7.zztp.isEmpty()) {
                                                        v3_14 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_14 != null) {
                                                    this.zzgy().setTransactionSuccessful();
                                                    this.zzgy().endTransaction();
                                                    return 0;
                                                } else {
                                                    String v3_8 = ((com.google.android.gms.internal.measurement.zzbs$zzg$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v2_7.zztn.zzuj())).zznn();
                                                    int v4_116 = this.zzj.zzad().zze(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zzii);
                                                    String v7_25 = 0;
                                                    int v12_19 = 0;
                                                    String v15_4 = 0;
                                                    int v8_16 = -1;
                                                    com.google.android.gms.measurement.internal.zzae v9_37 = -1;
                                                    Boolean v13_11 = 0;
                                                    Object v18_2 = 0;
                                                    String v19_2 = 0;
                                                    while(true) {
                                                        int v21_1 = v12_19;
                                                        long v26_1 = v13_11;
                                                        if (v7_25 >= v2_7.zztp.size()) {
                                                            break;
                                                        }
                                                        com.google.android.gms.measurement.internal.zzae v9_36;
                                                        long v6_31;
                                                        String v31_0;
                                                        Long v11_14 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) ((com.google.android.gms.internal.measurement.zzbs$zzc) v2_7.zztp.get(v7_25)).zzuj()));
                                                        if (!this.zzgz().zzk(v2_7.zztn.zzag(), v11_14.getName())) {
                                                            int v25_0;
                                                            long v33_0;
                                                            com.google.android.gms.measurement.internal.zzae v9_26;
                                                            String v32_0;
                                                            com.google.android.gms.measurement.internal.zzae v30_0;
                                                            String v7_15;
                                                            long v10_30 = this.zzgz().zzl(v2_7.zztn.zzag(), v11_14.getName());
                                                            if (v10_30 != 0) {
                                                                v30_0 = v7_25;
                                                                v25_0 = v15_4;
                                                                v31_0 = v4_116;
                                                                String v7_16 = 0;
                                                                int v14_9 = 0;
                                                                String v15_1 = 0;
                                                                while(true) {
                                                                    v32_0 = v8_16;
                                                                    if (v7_16 >= v11_14.zzmk()) {
                                                                        break;
                                                                    }
                                                                    long v33_1;
                                                                    if (!"_c".equals(v11_14.zzl(v7_16).getName())) {
                                                                        v33_1 = v9_37;
                                                                        if ("_r".equals(v11_14.zzl(v7_16).getName())) {
                                                                            v11_14.zza(v7_16, ((com.google.android.gms.internal.measurement.zzbs$zze) ((com.google.android.gms.internal.measurement.zzey) ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v11_14.zzl(v7_16).zzuj())).zzam(1).zzug())));
                                                                            v15_1 = 1;
                                                                        }
                                                                    } else {
                                                                        v33_1 = v9_37;
                                                                        v11_14.zza(v7_16, ((com.google.android.gms.internal.measurement.zzbs$zze) ((com.google.android.gms.internal.measurement.zzey) ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v11_14.zzl(v7_16).zzuj())).zzam(1).zzug())));
                                                                        v14_9 = 1;
                                                                    }
                                                                    v7_16++;
                                                                    v8_16 = v32_0;
                                                                    v9_37 = v33_1;
                                                                }
                                                                v33_0 = v9_37;
                                                                if ((v14_9 != 0) || (v10_30 == 0)) {
                                                                    v7_15 = "_et";
                                                                    v9_26 = "_e";
                                                                } else {
                                                                    this.zzj.zzab().zzgs().zza("Marking event as conversion", this.zzj.zzy().zzaj(v11_14.getName()));
                                                                    v7_15 = "_et";
                                                                    v9_26 = "_e";
                                                                    v11_14.zza(com.google.android.gms.internal.measurement.zzbs$zze.zzng().zzbz("_c").zzam(1));
                                                                }
                                                                if (v15_1 == null) {
                                                                    this.zzj.zzab().zzgs().zza("Marking event as real-time", this.zzj.zzy().zzaj(v11_14.getName()));
                                                                    v11_14.zza(com.google.android.gms.internal.measurement.zzbs$zze.zzng().zzbz("_r").zzam(1));
                                                                }
                                                                if (this.zzgy().zza(this.zzjk(), v2_7.zztn.zzag(), 0, 0, 0, 0, 1).zzej <= ((long) this.zzj.zzad().zzi(v2_7.zztn.zzag()))) {
                                                                    v21_1 = 1;
                                                                } else {
                                                                    com.google.android.gms.measurement.internal.zzjg.zza(v11_14, "_r");
                                                                }
                                                                if ((com.google.android.gms.measurement.internal.zzjs.zzbk(v11_14.getName())) && ((v10_30 != 0) && (this.zzgy().zza(this.zzjk(), v2_7.zztn.zzag(), 0, 0, 1, 0, 0).zzeh > ((long) this.zzj.zzad().zzb(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zzgs))))) {
                                                                    this.zzj.zzab().zzgn().zza("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                    int v4_27 = 0;
                                                                    com.google.android.gms.measurement.internal.zzx v5_6 = 0;
                                                                    long v6_22 = 0;
                                                                    int v8_10 = -1;
                                                                    while (v4_27 < v11_14.zzmk()) {
                                                                        int v14_27 = v11_14.zzl(v4_27);
                                                                        if (!"_c".equals(v14_27.getName())) {
                                                                            if ("_err".equals(v14_27.getName())) {
                                                                                v5_6 = 1;
                                                                            }
                                                                        } else {
                                                                            v6_22 = ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v14_27.zzuj()));
                                                                            v8_10 = v4_27;
                                                                        }
                                                                        v4_27++;
                                                                    }
                                                                    if ((v5_6 == null) || (v6_22 == 0)) {
                                                                        if (v6_22 == 0) {
                                                                            this.zzj.zzab().zzgk().zza("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                        } else {
                                                                            v11_14.zza(v8_10, ((com.google.android.gms.internal.measurement.zzbs$zze) ((com.google.android.gms.internal.measurement.zzey) ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v6_22.clone())).zzbz("_err").zzam(10).zzug())));
                                                                        }
                                                                    } else {
                                                                        v11_14.zzm(v8_10);
                                                                    }
                                                                }
                                                            } else {
                                                                String v7_7;
                                                                this.zzgw();
                                                                int v14_6 = v11_14.getName();
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v14_6);
                                                                v25_0 = v15_4;
                                                                String v15_0 = v14_6.hashCode();
                                                                v30_0 = v7_25;
                                                                if (v15_0 == 94660) {
                                                                    if (!v14_6.equals("_in")) {
                                                                        v7_7 = -1;
                                                                    } else {
                                                                        v7_7 = 0;
                                                                    }
                                                                } else {
                                                                    if (v15_0 == 95025) {
                                                                        if (!v14_6.equals("_ug")) {
                                                                        } else {
                                                                            v7_7 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v15_0 == 95027) {
                                                                            if (!v14_6.equals("_ui")) {
                                                                            } else {
                                                                                v7_7 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                if ((v7_7 == null) || ((v7_7 == 1) || (v7_7 == 2))) {
                                                                    String v7_14 = 1;
                                                                } else {
                                                                    v7_14 = 0;
                                                                }
                                                                if (v7_14 == null) {
                                                                    v31_0 = v4_116;
                                                                    v7_15 = "_et";
                                                                    v32_0 = v8_16;
                                                                    v33_0 = v9_37;
                                                                    v9_26 = "_e";
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzj.zzad().zzs(v2_7.zztn.zzag())) || (v10_30 == 0)) {
                                                            } else {
                                                                int v4_43 = new java.util.ArrayList(v11_14.zzmj());
                                                                com.google.android.gms.measurement.internal.zzx v5_12 = 0;
                                                                long v6_26 = -1;
                                                                int v8_11 = -1;
                                                                while (v5_12 < v4_43.size()) {
                                                                    if (!"value".equals(((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v5_12)).getName())) {
                                                                        if ("currency".equals(((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v5_12)).getName())) {
                                                                            v8_11 = v5_12;
                                                                        }
                                                                    } else {
                                                                        v6_26 = v5_12;
                                                                    }
                                                                    v5_12++;
                                                                }
                                                                if (v6_26 == -1) {
                                                                } else {
                                                                    if ((((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v6_26)).zzna()) || (((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v6_26)).zznd())) {
                                                                        int v4_47;
                                                                        if (v8_11 != -1) {
                                                                            int v4_46 = ((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v8_11)).zzmy();
                                                                            if (v4_46.length() == 3) {
                                                                                int v8_13 = 0;
                                                                                while (v8_13 < v4_46.length()) {
                                                                                    int v12_8 = v4_46.codePointAt(v8_13);
                                                                                    if (Character.isLetter(v12_8)) {
                                                                                        v8_13 += Character.charCount(v12_8);
                                                                                    } else {
                                                                                    }
                                                                                }
                                                                                v4_47 = 0;
                                                                                if (v4_47 != 0) {
                                                                                    this.zzj.zzab().zzgp().zzao("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                    v11_14.zzm(v6_26);
                                                                                    com.google.android.gms.measurement.internal.zzjg.zza(v11_14, "_c");
                                                                                    com.google.android.gms.measurement.internal.zzjg.zza(v11_14, 19, "currency");
                                                                                }
                                                                                if (!this.zzj.zzad().zze(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zzih)) {
                                                                                    v8_16 = v32_0;
                                                                                    v6_31 = v33_0;
                                                                                } else {
                                                                                    if (!v9_26.equals(v11_14.getName())) {
                                                                                        v6_31 = v33_0;
                                                                                        if ("_vs".equals(v11_14.getName())) {
                                                                                            this.zzgw();
                                                                                            if (com.google.android.gms.measurement.internal.zzjo.zza(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())), v7_15) == null) {
                                                                                                if ((v18_2 != null) && (Math.abs((v18_2.getTimestampMillis() - v11_14.getTimestampMillis())) <= 1000)) {
                                                                                                    int v4_70 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v18_2.clone()));
                                                                                                    if (this.zza(v4_70, v11_14)) {
                                                                                                        v8_16 = v32_0;
                                                                                                        v3_8.zza(v8_16, v4_70);
                                                                                                        v18_2 = 0;
                                                                                                        v19_2 = 0;
                                                                                                        if ((v31_0 != null) || (!v9_26.equals(v11_14.getName()))) {
                                                                                                            v13_11 = v26_1;
                                                                                                        } else {
                                                                                                            if (v11_14.zzmk() != 0) {
                                                                                                                this.zzgw();
                                                                                                                int v4_86 = ((Long) com.google.android.gms.measurement.internal.zzjo.zzb(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())), v7_15));
                                                                                                                if (v4_86 != 0) {
                                                                                                                    v13_11 = (v26_1 + v4_86.longValue());
                                                                                                                } else {
                                                                                                                    this.zzj.zzab().zzgn().zza("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                                                                }
                                                                                                            } else {
                                                                                                                this.zzj.zzab().zzgn().zza("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                                                            }
                                                                                                        }
                                                                                                        v9_36 = v30_0;
                                                                                                        v2_7.zztp.set(v9_36, ((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())));
                                                                                                        v15_4 = (v25_0 + 1);
                                                                                                        v3_8.zza(v11_14);
                                                                                                        v12_19 = v21_1;
                                                                                                        v7_25 = (v9_36 + 1);
                                                                                                        v9_37 = v6_31;
                                                                                                        v4_116 = v31_0;
                                                                                                    }
                                                                                                }
                                                                                                v8_16 = v32_0;
                                                                                                v19_2 = v11_14;
                                                                                                v6_31 = v25_0;
                                                                                            }
                                                                                        }
                                                                                    } else {
                                                                                        this.zzgw();
                                                                                        if (com.google.android.gms.measurement.internal.zzjo.zza(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())), "_fr") != null) {
                                                                                            v6_31 = v33_0;
                                                                                        } else {
                                                                                            if ((v19_2 != null) && (Math.abs((v19_2.getTimestampMillis() - v11_14.getTimestampMillis())) <= 1000)) {
                                                                                                int v4_78 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v19_2.clone()));
                                                                                                if (this.zza(v11_14, v4_78)) {
                                                                                                    v6_31 = v33_0;
                                                                                                    v3_8.zza(v6_31, v4_78);
                                                                                                    v8_16 = v32_0;
                                                                                                }
                                                                                            }
                                                                                            v6_31 = v33_0;
                                                                                            v18_2 = v11_14;
                                                                                            v8_16 = v25_0;
                                                                                        }
                                                                                    }
                                                                                    v8_16 = v32_0;
                                                                                }
                                                                            }
                                                                            v4_47 = 1;
                                                                        } else {
                                                                            v4_47 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzj.zzab().zzgp().zzao("Value must be specified with a numeric type.");
                                                                        v11_14.zzm(v6_26);
                                                                        com.google.android.gms.measurement.internal.zzjg.zza(v11_14, "_c");
                                                                        com.google.android.gms.measurement.internal.zzjg.zza(v11_14, 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            com.google.android.gms.measurement.internal.zzx v5_32;
                                                            this.zzj.zzab().zzgn().zza("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()), this.zzj.zzy().zzaj(v11_14.getName()));
                                                            if (this.zzgz().zzbc(v2_7.zztn.zzag())) {
                                                                v5_32 = 1;
                                                            } else {
                                                                if (!this.zzgz().zzbd(v2_7.zztn.zzag())) {
                                                                    v5_32 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_32 == null) && (!"_err".equals(v11_14.getName()))) {
                                                                this.zzj.zzz().zza(v2_7.zztn.zzag(), 11, "_ev", v11_14.getName(), 0);
                                                            }
                                                            v31_0 = v4_116;
                                                            v6_31 = v9_37;
                                                            v12_19 = v21_1;
                                                            v13_11 = v26_1;
                                                            long v10 = 3;
                                                            v9_36 = v7_25;
                                                        }
                                                    }
                                                    Boolean v13_2;
                                                    if (v4_116 == 0) {
                                                        v13_2 = v26_1;
                                                    } else {
                                                        com.google.android.gms.measurement.internal.zzx v5_1 = v15_4;
                                                        v13_2 = v26_1;
                                                        int v4_0 = 0;
                                                        while (v4_0 < v5_1) {
                                                            long v6_6 = v3_8.zzq(v4_0);
                                                            if (!"_e".equals(v6_6.getName())) {
                                                                this.zzgw();
                                                                long v6_7 = com.google.android.gms.measurement.internal.zzjo.zza(v6_6, "_et");
                                                                if (v6_7 != 0) {
                                                                    long v6_8;
                                                                    if (!v6_7.zzna()) {
                                                                        v6_8 = 0;
                                                                    } else {
                                                                        v6_8 = Long.valueOf(v6_7.zznb());
                                                                    }
                                                                    if ((v6_8 != 0) && (v6_8.longValue() > 0)) {
                                                                        v13_2 += v6_8.longValue();
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzgw();
                                                                if (com.google.android.gms.measurement.internal.zzjo.zza(v6_6, "_fr") == null) {
                                                                } else {
                                                                    v3_8.zzr(v4_0);
                                                                    v5_1--;
                                                                    v4_0--;
                                                                }
                                                            }
                                                            v4_0++;
                                                        }
                                                    }
                                                    Object v1_0 = this.zza(v3_8, v13_2, 0);
                                                    if (!v1_0.zzj.zzad().zze(v3_8.zzag(), com.google.android.gms.measurement.internal.zzak.zzja)) {
                                                        if (v1_0.zzj.zzad().zze(v3_8.zzag(), com.google.android.gms.measurement.internal.zzak.zzjb)) {
                                                            this.zzgy().zzd(v3_8.zzag(), "_se");
                                                        }
                                                    } else {
                                                        int v4_130 = v3_8.zznl().iterator();
                                                        while (v4_130.hasNext()) {
                                                            if ("_s".equals(((com.google.android.gms.internal.measurement.zzbs$zzc) v4_130.next()).getName())) {
                                                                int v4_131 = 1;
                                                            }
                                                            if (v4_131 != 0) {
                                                                this.zzgy().zzd(v3_8.zzag(), "_se");
                                                            }
                                                            v1_0 = v1_0.zza(v3_8, v13_2, 1);
                                                        }
                                                        v4_131 = 0;
                                                    }
                                                    if (v1_0.zzj.zzad().zze(v3_8.zzag(), com.google.android.gms.measurement.internal.zzak.zzij)) {
                                                        int v4_137 = this.zzgw();
                                                        v4_137.zzab().zzgs().zzao("Checking account type status for ad personalization signals");
                                                        if (v4_137.zzgz().zzba(v3_8.zzag())) {
                                                            com.google.android.gms.measurement.internal.zzx v5_60 = v4_137.zzgy().zzab(v3_8.zzag());
                                                            if ((v5_60 != null) && ((v5_60.zzbe()) && (v4_137.zzw().zzcu()))) {
                                                                v4_137.zzab().zzgr().zzao("Turning off ad personalization due to account type");
                                                                int v4_143 = ((com.google.android.gms.internal.measurement.zzbs$zzk) ((com.google.android.gms.internal.measurement.zzey) com.google.android.gms.internal.measurement.zzbs$zzk.zzqu().zzdb("_npa").zzbk(v4_137.zzw().zzcs()).zzbl(1).zzug()));
                                                                com.google.android.gms.measurement.internal.zzx v5_69 = 0;
                                                                while (v5_69 < v3_8.zznp()) {
                                                                    if (!"_npa".equals(v3_8.zzs(v5_69).getName())) {
                                                                        v5_69++;
                                                                    } else {
                                                                        v3_8.zza(v5_69, v4_143);
                                                                        com.google.android.gms.measurement.internal.zzx v5_70 = 1;
                                                                    }
                                                                    if (v5_70 == null) {
                                                                        v3_8.zza(v4_143);
                                                                    }
                                                                }
                                                                v5_70 = 0;
                                                            }
                                                        }
                                                    }
                                                    String v3_22;
                                                    Object v1_19;
                                                    int v4_144 = v3_8.zznv();
                                                    com.google.android.gms.measurement.internal.zzx v5_71 = v3_8.zzag();
                                                    long v6_71 = v3_8.zzno();
                                                    String v7_41 = v3_8.zznl();
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v5_71);
                                                    v4_144.zzc(this.zzgx().zza(v5_71, v7_41, v6_71));
                                                    try {
                                                        if (!v1_0.zzj.zzad().zzm(v2_7.zztn.zzag())) {
                                                            v1_19 = v3_8;
                                                            v3_22 = v2_7;
                                                        } else {
                                                            int v4_149 = new java.util.HashMap();
                                                            com.google.android.gms.measurement.internal.zzx v5_76 = new java.util.ArrayList();
                                                            long v6_5 = v1_0.zzj.zzz().zzjw();
                                                            String v7_3 = 0;
                                                            while (v7_3 < v3_8.zznm()) {
                                                                Object v1_13;
                                                                String v2_5;
                                                                long v63_0;
                                                                String v3_3;
                                                                int v8_27 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v3_8.zzq(v7_3).zzuj()));
                                                                if (!v8_27.getName().equals("_ep")) {
                                                                    com.google.android.gms.measurement.internal.zzae v9_61;
                                                                    Long v11_21 = this.zzgz().zzbb(v2_7.zztn.zzag());
                                                                    v1_0.zzj.zzz();
                                                                    Boolean v13_28 = com.google.android.gms.measurement.internal.zzjs.zzc(v8_27.getTimestampMillis(), v11_21);
                                                                    com.google.android.gms.measurement.internal.zzae v9_47 = ((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug()));
                                                                    long v26_2 = v11_21;
                                                                    Long v11_22 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v11_22 != null)) {
                                                                        com.google.android.gms.measurement.internal.zzae v9_49 = v9_47.zzmj().iterator();
                                                                        while (v9_49.hasNext()) {
                                                                            int v12_37 = ((com.google.android.gms.internal.measurement.zzbs$zze) v9_49.next());
                                                                            if (!"_dbg".equals(v12_37.getName())) {
                                                                            } else {
                                                                                if (((!(v11_22 instanceof Long)) || (!v11_22.equals(Long.valueOf(v12_37.zznb())))) && (((!(v11_22 instanceof String)) || (!v11_22.equals(v12_37.zzmy()))) && ((!(v11_22 instanceof Double)) || (!v11_22.equals(Double.valueOf(v12_37.zzne())))))) {
                                                                                    break;
                                                                                }
                                                                                v9_61 = 1;
                                                                            }
                                                                        }
                                                                        v9_61 = 0;
                                                                    }
                                                                    int v12_38;
                                                                    if (v9_61 != null) {
                                                                        v12_38 = 1;
                                                                    } else {
                                                                        v12_38 = this.zzgz().zzm(v2_7.zztn.zzag(), v8_27.getName());
                                                                    }
                                                                    if (v12_38 > 0) {
                                                                        Object v18_7;
                                                                        com.google.android.gms.measurement.internal.zzae v9_1 = ((com.google.android.gms.measurement.internal.zzae) v4_149.get(v8_27.getName()));
                                                                        if (v9_1 != null) {
                                                                            v18_7 = v13_28;
                                                                        } else {
                                                                            v9_1 = this.zzgy().zzc(v2_7.zztn.zzag(), v8_27.getName());
                                                                            if (v9_1 != null) {
                                                                            } else {
                                                                                v18_7 = v13_28;
                                                                                v1_0.zzj.zzab().zzgn().zza("Event being bundled has no eventAggregate. appId, eventName", v2_7.zztn.zzag(), v8_27.getName());
                                                                                if (!v1_0.zzj.zzad().zze(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zziz)) {
                                                                                    v9_1 = new com.google.android.gms.measurement.internal.zzae;
                                                                                    v9_1(v2_7.zztn.zzag(), v8_27.getName(), 1, 1, v8_27.getTimestampMillis(), 0, 0, 0, 0, 0);
                                                                                } else {
                                                                                    v9_1 = new com.google.android.gms.measurement.internal.zzae;
                                                                                    v9_1(v2_7.zztn.zzag(), v8_27.getName(), 1, 1, 1, v8_27.getTimestampMillis(), 0, 0, 0, 0, 0);
                                                                                }
                                                                            }
                                                                        }
                                                                        Boolean v13_32;
                                                                        this.zzgw();
                                                                        Long v11_36 = ((Long) com.google.android.gms.measurement.internal.zzjo.zzb(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())), "_eid"));
                                                                        if (v11_36 == null) {
                                                                            v13_32 = 0;
                                                                        } else {
                                                                            v13_32 = 1;
                                                                        }
                                                                        Boolean v13_33 = Boolean.valueOf(v13_32);
                                                                        if (v12_38 != 1) {
                                                                            if (v6_5.nextInt(v12_38) != 0) {
                                                                                v63_0 = v6_5;
                                                                                int v14_38 = v18_7;
                                                                                String v19_0;
                                                                                Object v1_6;
                                                                                Object v18_8 = v3_8;
                                                                                if (!v1_0.zzj.zzad().zzu(v2_7.zztn.zzag())) {
                                                                                    v3_3 = v2_7;
                                                                                    v19_0 = v7_3;
                                                                                    if (Math.abs((v8_27.getTimestampMillis() - v9_1.zzfk)) < 86400000) {
                                                                                        v1_6 = 0;
                                                                                    } else {
                                                                                        v1_6 = 1;
                                                                                    }
                                                                                } else {
                                                                                    long v26_0;
                                                                                    if (v9_1.zzfl == null) {
                                                                                        v1_0.zzj.zzz();
                                                                                        v3_3 = v2_7;
                                                                                        v19_0 = v7_3;
                                                                                        v26_0 = com.google.android.gms.measurement.internal.zzjs.zzc(v8_27.zzmm(), v26_2);
                                                                                    } else {
                                                                                        v26_0 = v9_1.zzfl.longValue();
                                                                                        v3_3 = v2_7;
                                                                                        v19_0 = v7_3;
                                                                                    }
                                                                                    if (v26_0 == v14_38) {
                                                                                    }
                                                                                }
                                                                                if (v1_6 == null) {
                                                                                    if (v13_33.booleanValue()) {
                                                                                        v4_149.put(v8_27.getName(), v9_1.zza(v11_36, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzgw();
                                                                                    com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_efs", Long.valueOf(1));
                                                                                    this.zzgw();
                                                                                    Object v1_10 = ((long) v12_38);
                                                                                    com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_sr", Long.valueOf(v1_10));
                                                                                    v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                                    if (v13_33.booleanValue()) {
                                                                                        v9_1 = v9_1.zza(0, Long.valueOf(v1_10), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_149.put(v8_27.getName(), v9_1.zza(v8_27.getTimestampMillis(), v14_38));
                                                                                }
                                                                                v1_13 = v18_8;
                                                                                v2_5 = v19_0;
                                                                            } else {
                                                                                this.zzgw();
                                                                                Long v11_1 = ((long) v12_38);
                                                                                com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_sr", Long.valueOf(v11_1));
                                                                                v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                                if (v13_33.booleanValue()) {
                                                                                    v9_1 = v9_1.zza(0, Long.valueOf(v11_1), 0);
                                                                                }
                                                                                v4_149.put(v8_27.getName(), v9_1.zza(v8_27.getTimestampMillis(), v18_7));
                                                                                v1_13 = v3_8;
                                                                                v63_0 = v6_5;
                                                                                v3_3 = v2_7;
                                                                                v2_5 = v7_3;
                                                                            }
                                                                            v1_13.zza(v2_5, v8_27);
                                                                        } else {
                                                                            v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                            if ((v13_33.booleanValue()) && ((v9_1.zzfm != null) || ((v9_1.zzfn != null) || (v9_1.zzfo != null)))) {
                                                                                v4_149.put(v8_27.getName(), v9_1.zza(0, 0, 0));
                                                                            }
                                                                            v3_8.zza(v7_3, v8_27);
                                                                            v1_13 = v3_8;
                                                                            v63_0 = v6_5;
                                                                            v3_3 = v2_7;
                                                                            v2_5 = v7_3;
                                                                        }
                                                                    } else {
                                                                        v1_0.zzj.zzab().zzgn().zza("Sample rate must be positive. event, rate", v8_27.getName(), Integer.valueOf(v12_38));
                                                                        v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                        v3_8.zza(v7_3, v8_27);
                                                                    }
                                                                } else {
                                                                    this.zzgw();
                                                                    com.google.android.gms.measurement.internal.zzae v9_14 = ((String) com.google.android.gms.measurement.internal.zzjo.zzb(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())), "_en"));
                                                                    Long v11_7 = ((com.google.android.gms.measurement.internal.zzae) v4_149.get(v9_14));
                                                                    if (v11_7 == null) {
                                                                        v11_7 = this.zzgy().zzc(v2_7.zztn.zzag(), v9_14);
                                                                        v4_149.put(v9_14, v11_7);
                                                                    }
                                                                    if (v11_7.zzfm == null) {
                                                                        if (v11_7.zzfn.longValue() > 1) {
                                                                            this.zzgw();
                                                                            com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_sr", v11_7.zzfn);
                                                                        }
                                                                        if ((v11_7.zzfo != null) && (v11_7.zzfo.booleanValue())) {
                                                                            this.zzgw();
                                                                            com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_efs", Long.valueOf(1));
                                                                        }
                                                                        v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                    }
                                                                    v3_8.zza(v7_3, v8_27);
                                                                }
                                                                v6_5 = v63_0;
                                                                v7_3 = (v2_5 + 1);
                                                                v2_7 = v3_3;
                                                                v3_8 = v1_13;
                                                                v1_0 = this;
                                                            }
                                                            v1_19 = v3_8;
                                                            v3_22 = v2_7;
                                                            if (v5_76.size() < v1_19.zznm()) {
                                                                v1_19.zznn().zza(v5_76);
                                                            }
                                                            String v2_14 = v4_149.entrySet().iterator();
                                                            while (v2_14.hasNext()) {
                                                                this.zzgy().zza(((com.google.android.gms.measurement.internal.zzae) ((java.util.Map$Entry) v2_14.next()).getValue()));
                                                            }
                                                        }
                                                    } catch (android.database.sqlite.SQLiteException v0_2) {
                                                        Object v1_14 = v0_2;
                                                        this.zzgy().endTransaction();
                                                        throw v1_14;
                                                    }
                                                    v1_19.zzao(nan).zzap(-0.0);
                                                    String v2_16 = 0;
                                                    while (v2_16 < v1_19.zznm()) {
                                                        int v4_180 = v1_19.zzq(v2_16);
                                                        if (v4_180.getTimestampMillis() < v1_19.zznq()) {
                                                            v1_19.zzao(v4_180.getTimestampMillis());
                                                        }
                                                        if (v4_180.getTimestampMillis() > v1_19.zznr()) {
                                                            v1_19.zzap(v4_180.getTimestampMillis());
                                                        }
                                                        v2_16++;
                                                    }
                                                    long v6_75;
                                                    String v2_18 = v3_22.zztn.zzag();
                                                    int v4_155 = this.zzgy().zzab(v2_18);
                                                    if (v4_155 != 0) {
                                                        v6_75 = this;
                                                        if (v1_19.zznm() > 0) {
                                                            String v7_42 = v4_155.zzak();
                                                            if (v7_42 == 0) {
                                                                v1_19.zznt();
                                                            } else {
                                                                v1_19.zzar(v7_42);
                                                            }
                                                            com.google.android.gms.measurement.internal.zzae v9_40 = v4_155.zzaj();
                                                            if (v9_40 != 0) {
                                                                v7_42 = v9_40;
                                                            } else {
                                                            }
                                                            if (v7_42 == 0) {
                                                                v1_19.zzns();
                                                            } else {
                                                                v1_19.zzaq(v7_42);
                                                            }
                                                            v4_155.zzau();
                                                            v1_19.zzu(((int) v4_155.zzar()));
                                                            v4_155.zze(v1_19.zznq());
                                                            v4_155.zzf(v1_19.zznr());
                                                            com.google.android.gms.measurement.internal.zzx v5_82 = v4_155.zzbc();
                                                            if (v5_82 == null) {
                                                                v1_19.zznu();
                                                            } else {
                                                                v1_19.zzcl(v5_82);
                                                            }
                                                            this.zzgy().zza(v4_155);
                                                        }
                                                    } else {
                                                        v6_75 = this;
                                                        this.zzj.zzab().zzgk().zza("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_22.zztn.zzag()));
                                                    }
                                                    if (v1_19.zznm() > 0) {
                                                        v6_75.zzj.zzae();
                                                        int v4_162 = this.zzgz().zzaw(v3_22.zztn.zzag());
                                                        if (v4_162 == 0) {
                                                            if (!android.text.TextUtils.isEmpty(v3_22.zztn.getGmpAppId())) {
                                                                v6_75.zzj.zzab().zzgn().zza("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_22.zztn.zzag()));
                                                            } else {
                                                                v1_19.zzav(-1);
                                                            }
                                                        } else {
                                                            if (v4_162.zzzk != null) {
                                                                v1_19.zzav(v4_162.zzzk.longValue());
                                                            } else {
                                                            }
                                                        }
                                                        this.zzgy().zza(((com.google.android.gms.internal.measurement.zzbs$zzg) ((com.google.android.gms.internal.measurement.zzey) v1_19.zzug())), v21_1);
                                                    }
                                                    Object v1_23 = this.zzgy();
                                                    String v3_23 = v3_22.zzto;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_23);
                                                    v1_23.zzo();
                                                    v1_23.zzbi();
                                                    int v4_174 = new StringBuilder("rowid in (");
                                                    com.google.android.gms.measurement.internal.zzx v5_90 = 0;
                                                    while (v5_90 < v3_23.size()) {
                                                        if (v5_90 != null) {
                                                            v4_174.append(",");
                                                        }
                                                        v4_174.append(((Long) v3_23.get(v5_90)).longValue());
                                                        v5_90++;
                                                    }
                                                    v4_174.append(")");
                                                    int v4_176 = v1_23.getWritableDatabase().delete("raw_events", v4_174.toString(), 0);
                                                    if (v4_176 != v3_23.size()) {
                                                        v1_23.zzab().zzgk().zza("Deleted fewer rows from raw events table than expected", Integer.valueOf(v4_176), Integer.valueOf(v3_23.size()));
                                                    }
                                                    Object v1_26 = this.zzgy();
                                                    String v3_26 = v1_26.getWritableDatabase();
                                                    try {
                                                        com.google.android.gms.measurement.internal.zzx v5_96 = new String[2];
                                                        v5_96[0] = v2_18;
                                                        v5_96[1] = v2_18;
                                                        v3_26.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v5_96);
                                                    } catch (android.database.sqlite.SQLiteException v0_6) {
                                                        v1_26.zzab().zzgk().zza("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_18), v0_6);
                                                    }
                                                    this.zzgy().setTransactionSuccessful();
                                                    this.zzgy().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v6_27.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v7_2 = v3_7;
                                            com.google.android.gms.measurement.internal.zzx v5_0 = v6_27;
                                            String v3_10 = v0_0;
                                            try {
                                                v4_184.zzab().zzgk().zza("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzef.zzam(v7_2), v3_10);
                                            } catch (android.database.sqlite.SQLiteException v0_5) {
                                                Object v1_15 = v0_5;
                                                int v22 = v5_0;
                                                if (v22 != 0) {
                                                    v22.close();
                                                }
                                                throw v1_15;
                                            }
                                            if (v5_0 == null) {
                                            } else {
                                                v5_0.close();
                                            }
                                        }
                                        if (v15_3.moveToNext()) {
                                            v4_184.zzab().zzgn().zza("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7));
                                        }
                                        String[] v17_2;
                                        String v16_2;
                                        v15_3.close();
                                        v2_7.zzb(v13_10);
                                        if (v5_103 == -1) {
                                            long v10_44 = new String[2];
                                            v10_44[0] = v3_7;
                                            v10_44[1] = v7_2;
                                            v16_2 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_2 = v10_44;
                                        } else {
                                            Boolean v13_15 = new String[3];
                                            v13_15[0] = v3_7;
                                            v13_15[1] = v7_2;
                                            v13_15[2] = String.valueOf(v5_103);
                                            v16_2 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_2 = v13_15;
                                        }
                                        v6_27 = v15_3;
                                        v5_0 = v25_1.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_2, v17_2, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_0.moveToFirst()) {
                                                v4_184.zzab().zzgn().zza("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7));
                                                if (v5_0 == null) {
                                                } else {
                                                    v5_0.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v22 = v5_0;
                                            v1_15 = v0_1;
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v7_2 = v3_7;
                                        }
                                        do {
                                            long v6_46 = v5_0.getLong(0);
                                            long v10_50 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) com.google.android.gms.internal.measurement.zzbs$zzc.zzmq().zzf(v5_0.getBlob(3), com.google.android.gms.internal.measurement.zzel.zztq()));
                                            v10_50.zzbx(v5_0.getString(1)).zzag(v5_0.getLong(2));
                                            if (v2_7.zza(v6_46, ((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v10_50.zzug())))) {
                                            } else {
                                                if (v5_0 == null) {
                                                } else {
                                                    v5_0.close();
                                                }
                                            }
                                        } while(v5_0.moveToNext());
                                        if (v5_0 == null) {
                                        } else {
                                            v5_0.close();
                                        }
                                    } else {
                                        v4_184.zzab().zzgk().zza("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7));
                                        if (v15_3 == null) {
                                        } else {
                                            v15_3.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v6_27 = v15_3;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_27 = v15_3;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v22 = v15_3;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v7_2 = v3_7;
                                    v5_0 = v15_3;
                                }
                                v22 = v6_27;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v22 = v23;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v7_2 = v3_7;
                                v5_0 = v23;
                            }
                        } else {
                            if (v3_7 == null) {
                            } else {
                                v3_7.close();
                            }
                        }
                    } else {
                        int v14_35;
                        Boolean v13_25 = v5_103 cmp -1;
                        try {
                            if (v13_25 == null) {
                                v14_35 = new String[1];
                                v14_35[0] = String.valueOf(p64);
                            } else {
                                v14_35 = new String[2];
                                v14_35[0] = String.valueOf(v5_103);
                                v14_35[1] = String.valueOf(p64);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_0) {
                            v5_0 = 0;
                            v7_2 = 0;
                        }
                        Boolean v13_26;
                        if (v13_25 == null) {
                            v13_26 = "";
                        } else {
                            v13_26 = "rowid <= ? and ";
                        }
                        String v3_29 = new StringBuilder((v13_26.length() + 148));
                        v3_29.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_29.append(v13_26);
                        v3_29.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_7 = v15_7.rawQuery(v3_29.toString(), v14_35);
                        if (v3_7.moveToFirst()) {
                            String v7_1 = v3_7.getString(0);
                            try {
                                Boolean v13_0 = v3_7.getString(1);
                                v3_7.close();
                                v23 = v3_7;
                                v3_7 = v7_1;
                                v7_2 = v13_0;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v5_0 = v3_7;
                            }
                        } else {
                            if (v3_7 == null) {
                            } else {
                                v3_7.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v22 = v3_7;
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v5_0 = v3_7;
                    v7_2 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v22 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
                v3_10 = v0_7;
                v5_0 = 0;
                v7_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_2) {
            }
        } catch (android.database.sqlite.SQLiteException v0_2) {
        }
    }

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


    private final boolean zzd(String p63, long p64)
    {
        this.zzgy().beginTransaction();
        try {
            String v3_7 = 0;
            String v2_7 = new com.google.android.gms.measurement.internal.zzjg$zza(this, 0);
            int v4_184 = this.zzgy();
            com.google.android.gms.measurement.internal.zzx v5_103 = this.zztj;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_7);
            v4_184.zzo();
            v4_184.zzbi();
            try {
                int v23;
                String v7_2;
                String v15_7 = v4_184.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        Boolean v13_20;
                        String v3_9 = v5_103 cmp -1;
                        if (v3_9 == null) {
                            v13_20 = new String[] {0});
                        } else {
                            String v7_30 = new String[2];
                            v7_30[0] = 0;
                            v7_30[1] = String.valueOf(v5_103);
                            v13_20 = v7_30;
                        }
                        String v3_16;
                        if (v3_9 == null) {
                            v3_16 = "";
                        } else {
                            v3_16 = " and rowid <= ?";
                        }
                        int v14_34 = new StringBuilder((v3_16.length() + 84));
                        v14_34.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_34.append(v3_16);
                        v14_34.append(" order by rowid limit 1;");
                        v3_7 = v15_7.rawQuery(v14_34.toString(), v13_20);
                        if (v3_7.moveToFirst()) {
                            Boolean v13_24 = v3_7.getString(0);
                            v3_7.close();
                            v23 = v3_7;
                            v7_2 = v13_24;
                            v3_7 = 0;
                            try {
                                Boolean v13_3 = new String[2];
                                v13_3[0] = v3_7;
                                v13_3[1] = v7_2;
                                int v25_1 = v15_7;
                                String v15_3 = v15_7.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_3, 0, 0, "rowid", "2");
                                try {
                                    if (v15_3.moveToFirst()) {
                                        try {
                                            Boolean v13_10 = com.google.android.gms.internal.measurement.zzbs$zzg.zzd(v15_3.getBlob(0), com.google.android.gms.internal.measurement.zzel.zztq());
                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                            long v6_27 = v15_3;
                                            v4_184.zzab().zzgk().zza("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7), v0_3);
                                            if (v6_27 == 0) {
                                                String v3_14;
                                                if (v2_7.zztp == null) {
                                                    v3_14 = 1;
                                                } else {
                                                    if (!v2_7.zztp.isEmpty()) {
                                                        v3_14 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_14 != null) {
                                                    this.zzgy().setTransactionSuccessful();
                                                    this.zzgy().endTransaction();
                                                    return 0;
                                                } else {
                                                    String v3_8 = ((com.google.android.gms.internal.measurement.zzbs$zzg$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v2_7.zztn.zzuj())).zznn();
                                                    int v4_116 = this.zzj.zzad().zze(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zzii);
                                                    String v7_25 = 0;
                                                    int v12_19 = 0;
                                                    String v15_4 = 0;
                                                    int v8_16 = -1;
                                                    com.google.android.gms.measurement.internal.zzae v9_37 = -1;
                                                    Boolean v13_11 = 0;
                                                    Object v18_2 = 0;
                                                    String v19_2 = 0;
                                                    while(true) {
                                                        int v21_1 = v12_19;
                                                        long v26_1 = v13_11;
                                                        if (v7_25 >= v2_7.zztp.size()) {
                                                            break;
                                                        }
                                                        String v31_0;
                                                        long v6_31;
                                                        com.google.android.gms.measurement.internal.zzae v9_36;
                                                        Long v11_14 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) ((com.google.android.gms.internal.measurement.zzbs$zzc) v2_7.zztp.get(v7_25)).zzuj()));
                                                        if (!this.zzgz().zzk(v2_7.zztn.zzag(), v11_14.getName())) {
                                                            long v33_0;
                                                            int v25_0;
                                                            com.google.android.gms.measurement.internal.zzae v30_0;
                                                            String v7_15;
                                                            com.google.android.gms.measurement.internal.zzae v9_26;
                                                            String v32_0;
                                                            long v10_30 = this.zzgz().zzl(v2_7.zztn.zzag(), v11_14.getName());
                                                            if (v10_30 != 0) {
                                                                v30_0 = v7_25;
                                                                v25_0 = v15_4;
                                                                v31_0 = v4_116;
                                                                String v7_16 = 0;
                                                                int v14_9 = 0;
                                                                String v15_1 = 0;
                                                                while(true) {
                                                                    v32_0 = v8_16;
                                                                    if (v7_16 >= v11_14.zzmk()) {
                                                                        break;
                                                                    }
                                                                    long v33_1;
                                                                    if (!"_c".equals(v11_14.zzl(v7_16).getName())) {
                                                                        v33_1 = v9_37;
                                                                        if ("_r".equals(v11_14.zzl(v7_16).getName())) {
                                                                            v11_14.zza(v7_16, ((com.google.android.gms.internal.measurement.zzbs$zze) ((com.google.android.gms.internal.measurement.zzey) ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v11_14.zzl(v7_16).zzuj())).zzam(1).zzug())));
                                                                            v15_1 = 1;
                                                                        }
                                                                    } else {
                                                                        v33_1 = v9_37;
                                                                        v11_14.zza(v7_16, ((com.google.android.gms.internal.measurement.zzbs$zze) ((com.google.android.gms.internal.measurement.zzey) ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v11_14.zzl(v7_16).zzuj())).zzam(1).zzug())));
                                                                        v14_9 = 1;
                                                                    }
                                                                    v7_16++;
                                                                    v8_16 = v32_0;
                                                                    v9_37 = v33_1;
                                                                }
                                                                v33_0 = v9_37;
                                                                if ((v14_9 != 0) || (v10_30 == 0)) {
                                                                    v7_15 = "_et";
                                                                    v9_26 = "_e";
                                                                } else {
                                                                    this.zzj.zzab().zzgs().zza("Marking event as conversion", this.zzj.zzy().zzaj(v11_14.getName()));
                                                                    v7_15 = "_et";
                                                                    v9_26 = "_e";
                                                                    v11_14.zza(com.google.android.gms.internal.measurement.zzbs$zze.zzng().zzbz("_c").zzam(1));
                                                                }
                                                                if (v15_1 == null) {
                                                                    this.zzj.zzab().zzgs().zza("Marking event as real-time", this.zzj.zzy().zzaj(v11_14.getName()));
                                                                    v11_14.zza(com.google.android.gms.internal.measurement.zzbs$zze.zzng().zzbz("_r").zzam(1));
                                                                }
                                                                if (this.zzgy().zza(this.zzjk(), v2_7.zztn.zzag(), 0, 0, 0, 0, 1).zzej <= ((long) this.zzj.zzad().zzi(v2_7.zztn.zzag()))) {
                                                                    v21_1 = 1;
                                                                } else {
                                                                    com.google.android.gms.measurement.internal.zzjg.zza(v11_14, "_r");
                                                                }
                                                                if ((com.google.android.gms.measurement.internal.zzjs.zzbk(v11_14.getName())) && ((v10_30 != 0) && (this.zzgy().zza(this.zzjk(), v2_7.zztn.zzag(), 0, 0, 1, 0, 0).zzeh > ((long) this.zzj.zzad().zzb(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zzgs))))) {
                                                                    this.zzj.zzab().zzgn().zza("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                    int v4_27 = 0;
                                                                    com.google.android.gms.measurement.internal.zzx v5_6 = 0;
                                                                    long v6_22 = 0;
                                                                    int v8_10 = -1;
                                                                    while (v4_27 < v11_14.zzmk()) {
                                                                        int v14_27 = v11_14.zzl(v4_27);
                                                                        if (!"_c".equals(v14_27.getName())) {
                                                                            if ("_err".equals(v14_27.getName())) {
                                                                                v5_6 = 1;
                                                                            }
                                                                        } else {
                                                                            v6_22 = ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v14_27.zzuj()));
                                                                            v8_10 = v4_27;
                                                                        }
                                                                        v4_27++;
                                                                    }
                                                                    if ((v5_6 == null) || (v6_22 == 0)) {
                                                                        if (v6_22 == 0) {
                                                                            this.zzj.zzab().zzgk().zza("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                        } else {
                                                                            v11_14.zza(v8_10, ((com.google.android.gms.internal.measurement.zzbs$zze) ((com.google.android.gms.internal.measurement.zzey) ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v6_22.clone())).zzbz("_err").zzam(10).zzug())));
                                                                        }
                                                                    } else {
                                                                        v11_14.zzm(v8_10);
                                                                    }
                                                                }
                                                            } else {
                                                                String v7_7;
                                                                this.zzgw();
                                                                int v14_6 = v11_14.getName();
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v14_6);
                                                                v25_0 = v15_4;
                                                                String v15_0 = v14_6.hashCode();
                                                                v30_0 = v7_25;
                                                                if (v15_0 == 94660) {
                                                                    if (!v14_6.equals("_in")) {
                                                                        v7_7 = -1;
                                                                    } else {
                                                                        v7_7 = 0;
                                                                    }
                                                                } else {
                                                                    if (v15_0 == 95025) {
                                                                        if (!v14_6.equals("_ug")) {
                                                                        } else {
                                                                            v7_7 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v15_0 == 95027) {
                                                                            if (!v14_6.equals("_ui")) {
                                                                            } else {
                                                                                v7_7 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                if ((v7_7 == null) || ((v7_7 == 1) || (v7_7 == 2))) {
                                                                    String v7_14 = 1;
                                                                } else {
                                                                    v7_14 = 0;
                                                                }
                                                                if (v7_14 == null) {
                                                                    v31_0 = v4_116;
                                                                    v7_15 = "_et";
                                                                    v32_0 = v8_16;
                                                                    v33_0 = v9_37;
                                                                    v9_26 = "_e";
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzj.zzad().zzs(v2_7.zztn.zzag())) || (v10_30 == 0)) {
                                                            } else {
                                                                int v4_43 = new java.util.ArrayList(v11_14.zzmj());
                                                                com.google.android.gms.measurement.internal.zzx v5_12 = 0;
                                                                long v6_26 = -1;
                                                                int v8_11 = -1;
                                                                while (v5_12 < v4_43.size()) {
                                                                    if (!"value".equals(((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v5_12)).getName())) {
                                                                        if ("currency".equals(((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v5_12)).getName())) {
                                                                            v8_11 = v5_12;
                                                                        }
                                                                    } else {
                                                                        v6_26 = v5_12;
                                                                    }
                                                                    v5_12++;
                                                                }
                                                                if (v6_26 == -1) {
                                                                } else {
                                                                    if ((((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v6_26)).zzna()) || (((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v6_26)).zznd())) {
                                                                        int v4_47;
                                                                        if (v8_11 != -1) {
                                                                            int v4_46 = ((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v8_11)).zzmy();
                                                                            if (v4_46.length() == 3) {
                                                                                int v8_13 = 0;
                                                                                while (v8_13 < v4_46.length()) {
                                                                                    int v12_8 = v4_46.codePointAt(v8_13);
                                                                                    if (Character.isLetter(v12_8)) {
                                                                                        v8_13 += Character.charCount(v12_8);
                                                                                    } else {
                                                                                    }
                                                                                }
                                                                                v4_47 = 0;
                                                                                if (v4_47 != 0) {
                                                                                    this.zzj.zzab().zzgp().zzao("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                    v11_14.zzm(v6_26);
                                                                                    com.google.android.gms.measurement.internal.zzjg.zza(v11_14, "_c");
                                                                                    com.google.android.gms.measurement.internal.zzjg.zza(v11_14, 19, "currency");
                                                                                }
                                                                                if (!this.zzj.zzad().zze(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zzih)) {
                                                                                    v8_16 = v32_0;
                                                                                    v6_31 = v33_0;
                                                                                } else {
                                                                                    if (!v9_26.equals(v11_14.getName())) {
                                                                                        v6_31 = v33_0;
                                                                                        if ("_vs".equals(v11_14.getName())) {
                                                                                            this.zzgw();
                                                                                            if (com.google.android.gms.measurement.internal.zzjo.zza(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())), v7_15) == null) {
                                                                                                if ((v18_2 != null) && (Math.abs((v18_2.getTimestampMillis() - v11_14.getTimestampMillis())) <= 1000)) {
                                                                                                    int v4_70 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v18_2.clone()));
                                                                                                    if (this.zza(v4_70, v11_14)) {
                                                                                                        v8_16 = v32_0;
                                                                                                        v3_8.zza(v8_16, v4_70);
                                                                                                        v18_2 = 0;
                                                                                                        v19_2 = 0;
                                                                                                        if ((v31_0 != null) || (!v9_26.equals(v11_14.getName()))) {
                                                                                                            v13_11 = v26_1;
                                                                                                        } else {
                                                                                                            if (v11_14.zzmk() != 0) {
                                                                                                                this.zzgw();
                                                                                                                int v4_86 = ((Long) com.google.android.gms.measurement.internal.zzjo.zzb(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())), v7_15));
                                                                                                                if (v4_86 != 0) {
                                                                                                                    v13_11 = (v26_1 + v4_86.longValue());
                                                                                                                } else {
                                                                                                                    this.zzj.zzab().zzgn().zza("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                                                                }
                                                                                                            } else {
                                                                                                                this.zzj.zzab().zzgn().zza("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                                                            }
                                                                                                        }
                                                                                                        v9_36 = v30_0;
                                                                                                        v2_7.zztp.set(v9_36, ((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())));
                                                                                                        v15_4 = (v25_0 + 1);
                                                                                                        v3_8.zza(v11_14);
                                                                                                        v12_19 = v21_1;
                                                                                                        v7_25 = (v9_36 + 1);
                                                                                                        v9_37 = v6_31;
                                                                                                        v4_116 = v31_0;
                                                                                                    }
                                                                                                }
                                                                                                v8_16 = v32_0;
                                                                                                v19_2 = v11_14;
                                                                                                v6_31 = v25_0;
                                                                                            }
                                                                                        }
                                                                                    } else {
                                                                                        this.zzgw();
                                                                                        if (com.google.android.gms.measurement.internal.zzjo.zza(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())), "_fr") != null) {
                                                                                            v6_31 = v33_0;
                                                                                        } else {
                                                                                            if ((v19_2 != null) && (Math.abs((v19_2.getTimestampMillis() - v11_14.getTimestampMillis())) <= 1000)) {
                                                                                                int v4_78 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v19_2.clone()));
                                                                                                if (this.zza(v11_14, v4_78)) {
                                                                                                    v6_31 = v33_0;
                                                                                                    v3_8.zza(v6_31, v4_78);
                                                                                                    v8_16 = v32_0;
                                                                                                }
                                                                                            }
                                                                                            v6_31 = v33_0;
                                                                                            v18_2 = v11_14;
                                                                                            v8_16 = v25_0;
                                                                                        }
                                                                                    }
                                                                                    v8_16 = v32_0;
                                                                                }
                                                                            }
                                                                            v4_47 = 1;
                                                                        } else {
                                                                            v4_47 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzj.zzab().zzgp().zzao("Value must be specified with a numeric type.");
                                                                        v11_14.zzm(v6_26);
                                                                        com.google.android.gms.measurement.internal.zzjg.zza(v11_14, "_c");
                                                                        com.google.android.gms.measurement.internal.zzjg.zza(v11_14, 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            com.google.android.gms.measurement.internal.zzx v5_32;
                                                            this.zzj.zzab().zzgn().zza("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()), this.zzj.zzy().zzaj(v11_14.getName()));
                                                            if (this.zzgz().zzbc(v2_7.zztn.zzag())) {
                                                                v5_32 = 1;
                                                            } else {
                                                                if (!this.zzgz().zzbd(v2_7.zztn.zzag())) {
                                                                    v5_32 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_32 == null) && (!"_err".equals(v11_14.getName()))) {
                                                                this.zzj.zzz().zza(v2_7.zztn.zzag(), 11, "_ev", v11_14.getName(), 0);
                                                            }
                                                            v31_0 = v4_116;
                                                            v6_31 = v9_37;
                                                            v12_19 = v21_1;
                                                            v13_11 = v26_1;
                                                            long v10 = 3;
                                                            v9_36 = v7_25;
                                                        }
                                                    }
                                                    Boolean v13_2;
                                                    if (v4_116 == 0) {
                                                        v13_2 = v26_1;
                                                    } else {
                                                        com.google.android.gms.measurement.internal.zzx v5_1 = v15_4;
                                                        v13_2 = v26_1;
                                                        int v4_0 = 0;
                                                        while (v4_0 < v5_1) {
                                                            long v6_6 = v3_8.zzq(v4_0);
                                                            if (!"_e".equals(v6_6.getName())) {
                                                                this.zzgw();
                                                                long v6_7 = com.google.android.gms.measurement.internal.zzjo.zza(v6_6, "_et");
                                                                if (v6_7 != 0) {
                                                                    long v6_8;
                                                                    if (!v6_7.zzna()) {
                                                                        v6_8 = 0;
                                                                    } else {
                                                                        v6_8 = Long.valueOf(v6_7.zznb());
                                                                    }
                                                                    if ((v6_8 != 0) && (v6_8.longValue() > 0)) {
                                                                        v13_2 += v6_8.longValue();
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzgw();
                                                                if (com.google.android.gms.measurement.internal.zzjo.zza(v6_6, "_fr") == null) {
                                                                } else {
                                                                    v3_8.zzr(v4_0);
                                                                    v5_1--;
                                                                    v4_0--;
                                                                }
                                                            }
                                                            v4_0++;
                                                        }
                                                    }
                                                    Object v1_0 = this.zza(v3_8, v13_2, 0);
                                                    if (!v1_0.zzj.zzad().zze(v3_8.zzag(), com.google.android.gms.measurement.internal.zzak.zzja)) {
                                                        if (v1_0.zzj.zzad().zze(v3_8.zzag(), com.google.android.gms.measurement.internal.zzak.zzjb)) {
                                                            this.zzgy().zzd(v3_8.zzag(), "_se");
                                                        }
                                                    } else {
                                                        int v4_130 = v3_8.zznl().iterator();
                                                        while (v4_130.hasNext()) {
                                                            if ("_s".equals(((com.google.android.gms.internal.measurement.zzbs$zzc) v4_130.next()).getName())) {
                                                                int v4_131 = 1;
                                                            }
                                                            if (v4_131 != 0) {
                                                                this.zzgy().zzd(v3_8.zzag(), "_se");
                                                            }
                                                            v1_0 = v1_0.zza(v3_8, v13_2, 1);
                                                        }
                                                        v4_131 = 0;
                                                    }
                                                    if (v1_0.zzj.zzad().zze(v3_8.zzag(), com.google.android.gms.measurement.internal.zzak.zzij)) {
                                                        int v4_137 = this.zzgw();
                                                        v4_137.zzab().zzgs().zzao("Checking account type status for ad personalization signals");
                                                        if (v4_137.zzgz().zzba(v3_8.zzag())) {
                                                            com.google.android.gms.measurement.internal.zzx v5_60 = v4_137.zzgy().zzab(v3_8.zzag());
                                                            if ((v5_60 != null) && ((v5_60.zzbe()) && (v4_137.zzw().zzcu()))) {
                                                                v4_137.zzab().zzgr().zzao("Turning off ad personalization due to account type");
                                                                int v4_143 = ((com.google.android.gms.internal.measurement.zzbs$zzk) ((com.google.android.gms.internal.measurement.zzey) com.google.android.gms.internal.measurement.zzbs$zzk.zzqu().zzdb("_npa").zzbk(v4_137.zzw().zzcs()).zzbl(1).zzug()));
                                                                com.google.android.gms.measurement.internal.zzx v5_69 = 0;
                                                                while (v5_69 < v3_8.zznp()) {
                                                                    if (!"_npa".equals(v3_8.zzs(v5_69).getName())) {
                                                                        v5_69++;
                                                                    } else {
                                                                        v3_8.zza(v5_69, v4_143);
                                                                        com.google.android.gms.measurement.internal.zzx v5_70 = 1;
                                                                    }
                                                                    if (v5_70 == null) {
                                                                        v3_8.zza(v4_143);
                                                                    }
                                                                }
                                                                v5_70 = 0;
                                                            }
                                                        }
                                                    }
                                                    Object v1_19;
                                                    String v3_22;
                                                    int v4_144 = v3_8.zznv();
                                                    com.google.android.gms.measurement.internal.zzx v5_71 = v3_8.zzag();
                                                    long v6_71 = v3_8.zzno();
                                                    String v7_41 = v3_8.zznl();
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v5_71);
                                                    v4_144.zzc(this.zzgx().zza(v5_71, v7_41, v6_71));
                                                    try {
                                                        if (!v1_0.zzj.zzad().zzm(v2_7.zztn.zzag())) {
                                                            v1_19 = v3_8;
                                                            v3_22 = v2_7;
                                                        } else {
                                                            int v4_149 = new java.util.HashMap();
                                                            com.google.android.gms.measurement.internal.zzx v5_76 = new java.util.ArrayList();
                                                            long v6_5 = v1_0.zzj.zzz().zzjw();
                                                            String v7_3 = 0;
                                                            while (v7_3 < v3_8.zznm()) {
                                                                String v2_5;
                                                                long v63_0;
                                                                String v3_3;
                                                                Object v1_13;
                                                                int v8_27 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v3_8.zzq(v7_3).zzuj()));
                                                                if (!v8_27.getName().equals("_ep")) {
                                                                    com.google.android.gms.measurement.internal.zzae v9_61;
                                                                    Long v11_21 = this.zzgz().zzbb(v2_7.zztn.zzag());
                                                                    v1_0.zzj.zzz();
                                                                    Boolean v13_28 = com.google.android.gms.measurement.internal.zzjs.zzc(v8_27.getTimestampMillis(), v11_21);
                                                                    com.google.android.gms.measurement.internal.zzae v9_47 = ((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug()));
                                                                    long v26_2 = v11_21;
                                                                    Long v11_22 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v11_22 != null)) {
                                                                        com.google.android.gms.measurement.internal.zzae v9_49 = v9_47.zzmj().iterator();
                                                                        while (v9_49.hasNext()) {
                                                                            int v12_37 = ((com.google.android.gms.internal.measurement.zzbs$zze) v9_49.next());
                                                                            if (!"_dbg".equals(v12_37.getName())) {
                                                                            } else {
                                                                                if (((!(v11_22 instanceof Long)) || (!v11_22.equals(Long.valueOf(v12_37.zznb())))) && (((!(v11_22 instanceof String)) || (!v11_22.equals(v12_37.zzmy()))) && ((!(v11_22 instanceof Double)) || (!v11_22.equals(Double.valueOf(v12_37.zzne())))))) {
                                                                                    break;
                                                                                }
                                                                                v9_61 = 1;
                                                                            }
                                                                        }
                                                                        v9_61 = 0;
                                                                    }
                                                                    int v12_38;
                                                                    if (v9_61 != null) {
                                                                        v12_38 = 1;
                                                                    } else {
                                                                        v12_38 = this.zzgz().zzm(v2_7.zztn.zzag(), v8_27.getName());
                                                                    }
                                                                    if (v12_38 > 0) {
                                                                        Object v18_7;
                                                                        com.google.android.gms.measurement.internal.zzae v9_1 = ((com.google.android.gms.measurement.internal.zzae) v4_149.get(v8_27.getName()));
                                                                        if (v9_1 != null) {
                                                                            v18_7 = v13_28;
                                                                        } else {
                                                                            v9_1 = this.zzgy().zzc(v2_7.zztn.zzag(), v8_27.getName());
                                                                            if (v9_1 != null) {
                                                                            } else {
                                                                                v18_7 = v13_28;
                                                                                v1_0.zzj.zzab().zzgn().zza("Event being bundled has no eventAggregate. appId, eventName", v2_7.zztn.zzag(), v8_27.getName());
                                                                                if (!v1_0.zzj.zzad().zze(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zziz)) {
                                                                                    v9_1 = new com.google.android.gms.measurement.internal.zzae;
                                                                                    v9_1(v2_7.zztn.zzag(), v8_27.getName(), 1, 1, v8_27.getTimestampMillis(), 0, 0, 0, 0, 0);
                                                                                } else {
                                                                                    v9_1 = new com.google.android.gms.measurement.internal.zzae;
                                                                                    v9_1(v2_7.zztn.zzag(), v8_27.getName(), 1, 1, 1, v8_27.getTimestampMillis(), 0, 0, 0, 0, 0);
                                                                                }
                                                                            }
                                                                        }
                                                                        Boolean v13_32;
                                                                        this.zzgw();
                                                                        Long v11_36 = ((Long) com.google.android.gms.measurement.internal.zzjo.zzb(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())), "_eid"));
                                                                        if (v11_36 == null) {
                                                                            v13_32 = 0;
                                                                        } else {
                                                                            v13_32 = 1;
                                                                        }
                                                                        Boolean v13_33 = Boolean.valueOf(v13_32);
                                                                        if (v12_38 != 1) {
                                                                            if (v6_5.nextInt(v12_38) != 0) {
                                                                                v63_0 = v6_5;
                                                                                int v14_38 = v18_7;
                                                                                String v19_0;
                                                                                Object v1_6;
                                                                                Object v18_8 = v3_8;
                                                                                if (!v1_0.zzj.zzad().zzu(v2_7.zztn.zzag())) {
                                                                                    v3_3 = v2_7;
                                                                                    v19_0 = v7_3;
                                                                                    if (Math.abs((v8_27.getTimestampMillis() - v9_1.zzfk)) < 86400000) {
                                                                                        v1_6 = 0;
                                                                                    } else {
                                                                                        v1_6 = 1;
                                                                                    }
                                                                                } else {
                                                                                    long v26_0;
                                                                                    if (v9_1.zzfl == null) {
                                                                                        v1_0.zzj.zzz();
                                                                                        v3_3 = v2_7;
                                                                                        v19_0 = v7_3;
                                                                                        v26_0 = com.google.android.gms.measurement.internal.zzjs.zzc(v8_27.zzmm(), v26_2);
                                                                                    } else {
                                                                                        v26_0 = v9_1.zzfl.longValue();
                                                                                        v3_3 = v2_7;
                                                                                        v19_0 = v7_3;
                                                                                    }
                                                                                    if (v26_0 == v14_38) {
                                                                                    }
                                                                                }
                                                                                if (v1_6 == null) {
                                                                                    if (v13_33.booleanValue()) {
                                                                                        v4_149.put(v8_27.getName(), v9_1.zza(v11_36, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzgw();
                                                                                    com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_efs", Long.valueOf(1));
                                                                                    this.zzgw();
                                                                                    Object v1_10 = ((long) v12_38);
                                                                                    com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_sr", Long.valueOf(v1_10));
                                                                                    v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                                    if (v13_33.booleanValue()) {
                                                                                        v9_1 = v9_1.zza(0, Long.valueOf(v1_10), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_149.put(v8_27.getName(), v9_1.zza(v8_27.getTimestampMillis(), v14_38));
                                                                                }
                                                                                v1_13 = v18_8;
                                                                                v2_5 = v19_0;
                                                                            } else {
                                                                                this.zzgw();
                                                                                Long v11_1 = ((long) v12_38);
                                                                                com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_sr", Long.valueOf(v11_1));
                                                                                v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                                if (v13_33.booleanValue()) {
                                                                                    v9_1 = v9_1.zza(0, Long.valueOf(v11_1), 0);
                                                                                }
                                                                                v4_149.put(v8_27.getName(), v9_1.zza(v8_27.getTimestampMillis(), v18_7));
                                                                                v1_13 = v3_8;
                                                                                v63_0 = v6_5;
                                                                                v3_3 = v2_7;
                                                                                v2_5 = v7_3;
                                                                            }
                                                                            v1_13.zza(v2_5, v8_27);
                                                                        } else {
                                                                            v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                            if ((v13_33.booleanValue()) && ((v9_1.zzfm != null) || ((v9_1.zzfn != null) || (v9_1.zzfo != null)))) {
                                                                                v4_149.put(v8_27.getName(), v9_1.zza(0, 0, 0));
                                                                            }
                                                                            v3_8.zza(v7_3, v8_27);
                                                                            v1_13 = v3_8;
                                                                            v63_0 = v6_5;
                                                                            v3_3 = v2_7;
                                                                            v2_5 = v7_3;
                                                                        }
                                                                    } else {
                                                                        v1_0.zzj.zzab().zzgn().zza("Sample rate must be positive. event, rate", v8_27.getName(), Integer.valueOf(v12_38));
                                                                        v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                        v3_8.zza(v7_3, v8_27);
                                                                    }
                                                                } else {
                                                                    this.zzgw();
                                                                    com.google.android.gms.measurement.internal.zzae v9_14 = ((String) com.google.android.gms.measurement.internal.zzjo.zzb(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())), "_en"));
                                                                    Long v11_7 = ((com.google.android.gms.measurement.internal.zzae) v4_149.get(v9_14));
                                                                    if (v11_7 == null) {
                                                                        v11_7 = this.zzgy().zzc(v2_7.zztn.zzag(), v9_14);
                                                                        v4_149.put(v9_14, v11_7);
                                                                    }
                                                                    if (v11_7.zzfm == null) {
                                                                        if (v11_7.zzfn.longValue() > 1) {
                                                                            this.zzgw();
                                                                            com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_sr", v11_7.zzfn);
                                                                        }
                                                                        if ((v11_7.zzfo != null) && (v11_7.zzfo.booleanValue())) {
                                                                            this.zzgw();
                                                                            com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_efs", Long.valueOf(1));
                                                                        }
                                                                        v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                    }
                                                                    v3_8.zza(v7_3, v8_27);
                                                                }
                                                                v6_5 = v63_0;
                                                                v7_3 = (v2_5 + 1);
                                                                v2_7 = v3_3;
                                                                v3_8 = v1_13;
                                                                v1_0 = this;
                                                            }
                                                            v1_19 = v3_8;
                                                            v3_22 = v2_7;
                                                            if (v5_76.size() < v1_19.zznm()) {
                                                                v1_19.zznn().zza(v5_76);
                                                            }
                                                            String v2_14 = v4_149.entrySet().iterator();
                                                            while (v2_14.hasNext()) {
                                                                this.zzgy().zza(((com.google.android.gms.measurement.internal.zzae) ((java.util.Map$Entry) v2_14.next()).getValue()));
                                                            }
                                                        }
                                                    } catch (android.database.sqlite.SQLiteException v0_2) {
                                                        Object v1_14 = v0_2;
                                                        this.zzgy().endTransaction();
                                                        throw v1_14;
                                                    }
                                                    v1_19.zzao(nan).zzap(-0.0);
                                                    String v2_16 = 0;
                                                    while (v2_16 < v1_19.zznm()) {
                                                        int v4_180 = v1_19.zzq(v2_16);
                                                        if (v4_180.getTimestampMillis() < v1_19.zznq()) {
                                                            v1_19.zzao(v4_180.getTimestampMillis());
                                                        }
                                                        if (v4_180.getTimestampMillis() > v1_19.zznr()) {
                                                            v1_19.zzap(v4_180.getTimestampMillis());
                                                        }
                                                        v2_16++;
                                                    }
                                                    long v6_75;
                                                    String v2_18 = v3_22.zztn.zzag();
                                                    int v4_155 = this.zzgy().zzab(v2_18);
                                                    if (v4_155 != 0) {
                                                        v6_75 = this;
                                                        if (v1_19.zznm() > 0) {
                                                            String v7_42 = v4_155.zzak();
                                                            if (v7_42 == 0) {
                                                                v1_19.zznt();
                                                            } else {
                                                                v1_19.zzar(v7_42);
                                                            }
                                                            com.google.android.gms.measurement.internal.zzae v9_40 = v4_155.zzaj();
                                                            if (v9_40 != 0) {
                                                                v7_42 = v9_40;
                                                            } else {
                                                            }
                                                            if (v7_42 == 0) {
                                                                v1_19.zzns();
                                                            } else {
                                                                v1_19.zzaq(v7_42);
                                                            }
                                                            v4_155.zzau();
                                                            v1_19.zzu(((int) v4_155.zzar()));
                                                            v4_155.zze(v1_19.zznq());
                                                            v4_155.zzf(v1_19.zznr());
                                                            com.google.android.gms.measurement.internal.zzx v5_82 = v4_155.zzbc();
                                                            if (v5_82 == null) {
                                                                v1_19.zznu();
                                                            } else {
                                                                v1_19.zzcl(v5_82);
                                                            }
                                                            this.zzgy().zza(v4_155);
                                                        }
                                                    } else {
                                                        v6_75 = this;
                                                        this.zzj.zzab().zzgk().zza("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_22.zztn.zzag()));
                                                    }
                                                    if (v1_19.zznm() > 0) {
                                                        v6_75.zzj.zzae();
                                                        int v4_162 = this.zzgz().zzaw(v3_22.zztn.zzag());
                                                        if (v4_162 == 0) {
                                                            if (!android.text.TextUtils.isEmpty(v3_22.zztn.getGmpAppId())) {
                                                                v6_75.zzj.zzab().zzgn().zza("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_22.zztn.zzag()));
                                                            } else {
                                                                v1_19.zzav(-1);
                                                            }
                                                        } else {
                                                            if (v4_162.zzzk != null) {
                                                                v1_19.zzav(v4_162.zzzk.longValue());
                                                            } else {
                                                            }
                                                        }
                                                        this.zzgy().zza(((com.google.android.gms.internal.measurement.zzbs$zzg) ((com.google.android.gms.internal.measurement.zzey) v1_19.zzug())), v21_1);
                                                    }
                                                    Object v1_23 = this.zzgy();
                                                    String v3_23 = v3_22.zzto;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_23);
                                                    v1_23.zzo();
                                                    v1_23.zzbi();
                                                    int v4_174 = new StringBuilder("rowid in (");
                                                    com.google.android.gms.measurement.internal.zzx v5_90 = 0;
                                                    while (v5_90 < v3_23.size()) {
                                                        if (v5_90 != null) {
                                                            v4_174.append(",");
                                                        }
                                                        v4_174.append(((Long) v3_23.get(v5_90)).longValue());
                                                        v5_90++;
                                                    }
                                                    v4_174.append(")");
                                                    int v4_176 = v1_23.getWritableDatabase().delete("raw_events", v4_174.toString(), 0);
                                                    if (v4_176 != v3_23.size()) {
                                                        v1_23.zzab().zzgk().zza("Deleted fewer rows from raw events table than expected", Integer.valueOf(v4_176), Integer.valueOf(v3_23.size()));
                                                    }
                                                    Object v1_26 = this.zzgy();
                                                    String v3_26 = v1_26.getWritableDatabase();
                                                    try {
                                                        com.google.android.gms.measurement.internal.zzx v5_96 = new String[2];
                                                        v5_96[0] = v2_18;
                                                        v5_96[1] = v2_18;
                                                        v3_26.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v5_96);
                                                    } catch (android.database.sqlite.SQLiteException v0_6) {
                                                        v1_26.zzab().zzgk().zza("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_18), v0_6);
                                                    }
                                                    this.zzgy().setTransactionSuccessful();
                                                    this.zzgy().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v6_27.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v7_2 = v3_7;
                                            com.google.android.gms.measurement.internal.zzx v5_0 = v6_27;
                                            String v3_10 = v0_0;
                                            try {
                                                v4_184.zzab().zzgk().zza("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzef.zzam(v7_2), v3_10);
                                            } catch (android.database.sqlite.SQLiteException v0_5) {
                                                Object v1_15 = v0_5;
                                                int v22 = v5_0;
                                                if (v22 != 0) {
                                                    v22.close();
                                                }
                                                throw v1_15;
                                            }
                                            if (v5_0 == null) {
                                            } else {
                                                v5_0.close();
                                            }
                                        }
                                        if (v15_3.moveToNext()) {
                                            v4_184.zzab().zzgn().zza("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7));
                                        }
                                        String[] v17_2;
                                        String v16_2;
                                        v15_3.close();
                                        v2_7.zzb(v13_10);
                                        if (v5_103 == -1) {
                                            long v10_44 = new String[2];
                                            v10_44[0] = v3_7;
                                            v10_44[1] = v7_2;
                                            v16_2 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_2 = v10_44;
                                        } else {
                                            Boolean v13_15 = new String[3];
                                            v13_15[0] = v3_7;
                                            v13_15[1] = v7_2;
                                            v13_15[2] = String.valueOf(v5_103);
                                            v16_2 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_2 = v13_15;
                                        }
                                        v6_27 = v15_3;
                                        v5_0 = v25_1.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_2, v17_2, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_0.moveToFirst()) {
                                                v4_184.zzab().zzgn().zza("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7));
                                                if (v5_0 == null) {
                                                } else {
                                                    v5_0.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v22 = v5_0;
                                            v1_15 = v0_1;
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v7_2 = v3_7;
                                        }
                                        do {
                                            long v6_46 = v5_0.getLong(0);
                                            long v10_50 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) com.google.android.gms.internal.measurement.zzbs$zzc.zzmq().zzf(v5_0.getBlob(3), com.google.android.gms.internal.measurement.zzel.zztq()));
                                            v10_50.zzbx(v5_0.getString(1)).zzag(v5_0.getLong(2));
                                            if (v2_7.zza(v6_46, ((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v10_50.zzug())))) {
                                            } else {
                                                if (v5_0 == null) {
                                                } else {
                                                    v5_0.close();
                                                }
                                            }
                                        } while(v5_0.moveToNext());
                                        if (v5_0 == null) {
                                        } else {
                                            v5_0.close();
                                        }
                                    } else {
                                        v4_184.zzab().zzgk().zza("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7));
                                        if (v15_3 == null) {
                                        } else {
                                            v15_3.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v6_27 = v15_3;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_27 = v15_3;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v22 = v15_3;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v7_2 = v3_7;
                                    v5_0 = v15_3;
                                }
                                v22 = v6_27;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v22 = v23;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v7_2 = v3_7;
                                v5_0 = v23;
                            }
                        } else {
                            if (v3_7 == null) {
                            } else {
                                v3_7.close();
                            }
                        }
                    } else {
                        int v14_35;
                        Boolean v13_25 = v5_103 cmp -1;
                        try {
                            if (v13_25 == null) {
                                v14_35 = new String[1];
                                v14_35[0] = String.valueOf(p64);
                            } else {
                                v14_35 = new String[2];
                                v14_35[0] = String.valueOf(v5_103);
                                v14_35[1] = String.valueOf(p64);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_0) {
                            v5_0 = 0;
                            v7_2 = 0;
                        }
                        Boolean v13_26;
                        if (v13_25 == null) {
                            v13_26 = "";
                        } else {
                            v13_26 = "rowid <= ? and ";
                        }
                        String v3_29 = new StringBuilder((v13_26.length() + 148));
                        v3_29.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_29.append(v13_26);
                        v3_29.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_7 = v15_7.rawQuery(v3_29.toString(), v14_35);
                        if (v3_7.moveToFirst()) {
                            String v7_1 = v3_7.getString(0);
                            try {
                                Boolean v13_0 = v3_7.getString(1);
                                v3_7.close();
                                v23 = v3_7;
                                v3_7 = v7_1;
                                v7_2 = v13_0;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v5_0 = v3_7;
                            }
                        } else {
                            if (v3_7 == null) {
                            } else {
                                v3_7.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v22 = v3_7;
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v5_0 = v3_7;
                    v7_2 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v22 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
                v3_10 = v0_7;
                v5_0 = 0;
                v7_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_2) {
            }
        } catch (android.database.sqlite.SQLiteException v0_2) {
        }
    }

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p8)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            try {
                android.database.Cursor v0_3 = p8.rawQuery("PRAGMA journal_mode=memory", 0);
                v0_3.moveToFirst();
            } catch (Throwable v8_1) {
                if (v0_3 != null) {
                    v0_3.close();
                }
                throw v8_1;
            }
            if (v0_3 != null) {
                v0_3.close();
            }
        }
        com.google.android.gms.measurement.internal.zzab.zza(this.zzju.zzab(), 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.zzab.zza() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private static java.util.Set zza(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.zzeb.zza() calling method android.database.sqlite.SQLiteDatabase.insertOrThrow()


    private final boolean zza(int p17, byte[] p18)
    {
        this.zzm();
        this.zzo();
        Long v3_9 = 0;
        if (!this.zzjw) {
            android.content.ContentValues v4_1 = new android.content.ContentValues();
            v4_1.put("type", Integer.valueOf(p17));
            v4_1.put("entry", p18);
            int v5_2 = 5;
            int v6 = 0;
            int v7 = 5;
            while (v6 < v5_2) {
                String v8_0 = 0;
                try {
                    String[] v10 = this.getWritableDatabase();
                    try {
                        if (v10 != null) {
                            try {
                                v10.beginTransaction();
                                Long v11_1 = 0;
                                int v13 = v10.rawQuery("select count(1) from messages", 0);
                                try {
                                    if ((v13 != 0) && (v13.moveToFirst())) {
                                        v11_1 = v13.getLong(v3_9);
                                    }
                                    if (v11_1 >= 100000) {
                                        this.zzab().zzgk().zzao("Data loss, local db full");
                                        long v14_2 = ((100000 - v11_1) + 1);
                                        String v8_2 = new String[1];
                                        v8_2[v3_9] = Long.toString(v14_2);
                                        Long v11_4 = ((long) v10.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v8_2));
                                        if (v11_4 != v14_2) {
                                            this.zzab().zzgk().zza("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v14_2), Long.valueOf(v11_4), Long.valueOf((v14_2 - v11_4)));
                                        }
                                    }
                                    v10.insertOrThrow("messages", 0, v4_1);
                                    v10.setTransactionSuccessful();
                                    v10.endTransaction();
                                    if (v13 != 0) {
                                        v13.close();
                                    }
                                    if (v10 != null) {
                                        v10.close();
                                    }
                                    return 1;
                                } catch (com.google.android.gms.measurement.internal.zzeh v0_3) {
                                    if (v13 != 0) {
                                        v13.close();
                                    }
                                    if (v10 != null) {
                                        v10.close();
                                    }
                                    throw v0_3;
                                } catch (com.google.android.gms.measurement.internal.zzeh v0_2) {
                                    v8_0 = v13;
                                    this.zzab().zzgk().zza("Error writing entry to local database", v0_2);
                                    this.zzjw = 1;
                                    if (v8_0 != null) {
                                        v8_0.close();
                                    }
                                    if (v10 == null) {
                                        v6++;
                                        v3_9 = 0;
                                        v5_2 = 5;
                                    } else {
                                        v10.close();
                                    }
                                } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                                    v8_0 = v13;
                                    android.os.SystemClock.sleep(((long) v7));
                                    v7 += 20;
                                    if (v8_0 != null) {
                                        v8_0.close();
                                    }
                                    if (v10 == null) {
                                    } else {
                                        v10.close();
                                    }
                                } catch (com.google.android.gms.measurement.internal.zzeh v0_1) {
                                }
                            } catch (com.google.android.gms.measurement.internal.zzeh v0_3) {
                                v13 = 0;
                            } catch (com.google.android.gms.measurement.internal.zzeh v0_2) {
                            } catch (com.google.android.gms.measurement.internal.zzeh v0_1) {
                                v13 = 0;
                            }
                        } else {
                            try {
                                this.zzjw = 1;
                            } catch (com.google.android.gms.measurement.internal.zzeh v0_2) {
                            } catch (com.google.android.gms.measurement.internal.zzeh v0_1) {
                                v13 = 0;
                            }
                            if (v10 != null) {
                                v10.close();
                            }
                            return v3_9;
                        }
                        v8_0 = v10;
                        if (v8_0 != null) {
                            try {
                                if (v8_0.inTransaction()) {
                                    v8_0.endTransaction();
                                }
                            } catch (com.google.android.gms.measurement.internal.zzeh v0_3) {
                                v10 = v8_0;
                            }
                        }
                        this.zzab().zzgk().zza("Error writing entry to local database", v0_1);
                        this.zzjw = 1;
                        if (v13 != 0) {
                            v13.close();
                        }
                        if (v8_0 == null) {
                        } else {
                            v8_0.close();
                        }
                    } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                        v8_0 = 0;
                    }
                } catch (com.google.android.gms.measurement.internal.zzeh v0_3) {
                    v10 = 0;
                    v13 = 0;
                } catch (com.google.android.gms.measurement.internal.zzeh v0_2) {
                    v10 = 0;
                } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                    v10 = 0;
                } catch (com.google.android.gms.measurement.internal.zzeh v0_1) {
                    v13 = 0;
                } catch (com.google.android.gms.measurement.internal.zzeh v0_3) {
                    v13 = v8_0;
                }
            }
            this.zzab().zzgn().zzao("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

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


    public final boolean zza(com.google.android.gms.measurement.internal.zzaf p6, long p7, boolean p9)
    {
        this.zzo();
        this.zzbi();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p6);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p6.zzce);
        Object v0_11 = com.google.android.gms.internal.measurement.zzbs$zzc.zzmq().zzah(p6.zzfp);
        android.content.ContentValues v1_1 = p6.zzfq.iterator();
        while (v1_1.hasNext()) {
            Long v2_9 = ((String) v1_1.next());
            String v3_7 = com.google.android.gms.internal.measurement.zzbs$zze.zzng().zzbz(v2_9);
            this.zzgw().zza(v3_7, p6.zzfq.get(v2_9));
            v0_11.zza(v3_7);
        }
        Object v0_3 = ((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v0_11.zzug())).toByteArray();
        this.zzab().zzgs().zza("Saving event, name, data size", this.zzy().zzaj(p6.name), Integer.valueOf(v0_3.length));
        android.content.ContentValues v1_5 = new android.content.ContentValues();
        v1_5.put("app_id", p6.zzce);
        v1_5.put("name", p6.name);
        v1_5.put("timestamp", Long.valueOf(p6.timestamp));
        v1_5.put("metadata_fingerprint", Long.valueOf(p7));
        v1_5.put("data", v0_3);
        v1_5.put("realtime", Integer.valueOf(p9));
        try {
            if (this.getWritableDatabase().insert("raw_events", 0, v1_5) != -1) {
                return 1;
            } else {
                this.zzab().zzgk().zza("Failed to insert raw event (got -1). appId", com.google.android.gms.measurement.internal.zzef.zzam(p6.zzce));
                return 0;
            }
        } catch (com.google.android.gms.measurement.internal.zzeh v8_5) {
            this.zzab().zzgk().zza("Error storing raw event. appId", com.google.android.gms.measurement.internal.zzef.zzam(p6.zzce), v8_5);
            return 0;
        }
    }

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


    public final boolean zza(com.google.android.gms.internal.measurement.zzbs$zzg p7, boolean p8)
    {
        this.zzo();
        this.zzbi();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p7);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p7.zzag());
        com.google.android.gms.common.internal.Preconditions.checkState(p7.zzof());
        this.zzca();
        String v0_5 = this.zzx().currentTimeMillis();
        if ((p7.zznr() < (v0_5 - com.google.android.gms.measurement.internal.zzs.zzbs())) || (p7.zznr() > (com.google.android.gms.measurement.internal.zzs.zzbs() + v0_5))) {
            this.zzab().zzgn().zza("Storing bundle outside of the max uploading time span. appId, now, timestamp", com.google.android.gms.measurement.internal.zzef.zzam(p7.zzag()), Long.valueOf(v0_5), Long.valueOf(p7.zznr()));
        }
        try {
            String v0_9 = this.zzgw().zzc(p7.toByteArray());
            this.zzab().zzgs().zza("Saving bundle, size", Integer.valueOf(v0_9.length));
            Object v2_14 = new android.content.ContentValues();
            v2_14.put("app_id", p7.zzag());
            v2_14.put("bundle_end_timestamp", Long.valueOf(p7.zznr()));
            v2_14.put("data", v0_9);
            v2_14.put("has_realtime", Integer.valueOf(p8));
        } catch (com.google.android.gms.measurement.internal.zzeh v8_8) {
            this.zzab().zzgk().zza("Data loss. Failed to serialize bundle. appId", com.google.android.gms.measurement.internal.zzef.zzam(p7.zzag()), v8_8);
            return 0;
        }
        if (p7.zzpn()) {
            v2_14.put("retry_count", Integer.valueOf(p7.zzpo()));
        }
        try {
            if (this.getWritableDatabase().insert("queue", 0, v2_14) != -1) {
                return 1;
            } else {
                this.zzab().zzgk().zza("Failed to insert bundle (got -1). appId", com.google.android.gms.measurement.internal.zzef.zzam(p7.zzag()));
                return 0;
            }
        } catch (com.google.android.gms.measurement.internal.zzeh v8_3) {
            this.zzab().zzgk().zza("Error storing bundle. appId", com.google.android.gms.measurement.internal.zzef.zzam(p7.zzag()), v8_3);
            return 0;
        }
    }

Method com.google.firebase.firestore.local.SQLitePersistence.execute() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    varargs void execute(String p2, Object[] p3)
    {
        this.db.execSQL(p2, p3);
        return;
    }

Method com.google.firebase.firestore.local.SQLiteSchema.removeMutationBatch() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void removeMutationBatch(String p7, int p8)
    {
        android.database.sqlite.SQLiteDatabase v0_2;
        android.database.sqlite.SQLiteDatabase v0_4 = this.db.compileStatement("DELETE FROM mutations WHERE uid = ? AND batch_id = ?");
        v0_4.bindString(1, p7);
        v0_4.bindLong(2, ((long) p8));
        if (v0_4.executeUpdateDelete() == 0) {
            v0_2 = 0;
        } else {
            v0_2 = 1;
        }
        Object[] v3_0 = new Object[2];
        v3_0[0] = p7;
        v3_0[1] = Integer.valueOf(p8);
        com.google.firebase.firestore.util.Assert.hardAssert(v0_2, "Mutatiohn batch (%s, %d) did not exist", v3_0);
        android.database.sqlite.SQLiteDatabase v0_3 = this.db;
        Object[] v3_1 = new Object[2];
        v3_1[0] = p7;
        v3_1[1] = Integer.valueOf(p8);
        v0_3.execSQL("DELETE FROM document_mutations WHERE uid = ? AND batch_id = ?", v3_1);
        return;
    }

Method com.google.firebase.firestore.local.SQLiteSchema.lambda$createV8CollectionParentsIndex$8() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static synthetic void lambda$createV8CollectionParentsIndex$8(com.google.firebase.firestore.local.SQLiteSchema p1)
    {
        p1.db.execSQL("CREATE TABLE collection_parents (collection_id TEXT, parent TEXT, PRIMARY KEY(collection_id, parent))");
        return;
    }

Method com.google.firebase.firestore.local.SQLiteSchema.lambda$createV1RemoteDocumentCache$4() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static synthetic void lambda$createV1RemoteDocumentCache$4(com.google.firebase.firestore.local.SQLiteSchema p1)
    {
        p1.db.execSQL("CREATE TABLE remote_documents (path TEXT PRIMARY KEY, contents BLOB)");
        return;
    }

Method com.google.firebase.firestore.local.SQLiteSchema.lambda$createV1QueryCache$3() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static synthetic void lambda$createV1QueryCache$3(com.google.firebase.firestore.local.SQLiteSchema p2)
    {
        p2.db.execSQL("CREATE TABLE targets (target_id INTEGER PRIMARY KEY, canonical_id TEXT, snapshot_version_seconds INTEGER, snapshot_version_nanos INTEGER, resume_token BLOB, last_listen_sequence_number INTEGER,target_proto BLOB)");
        p2.db.execSQL("CREATE INDEX query_targets ON targets (canonical_id, target_id)");
        p2.db.execSQL("CREATE TABLE target_globals (highest_target_id INTEGER, highest_listen_sequence_number INTEGER, last_remote_snapshot_version_seconds INTEGER, last_remote_snapshot_version_nanos INTEGER)");
        p2.db.execSQL("CREATE TABLE target_documents (target_id INTEGER, path TEXT, PRIMARY KEY (target_id, path))");
        p2.db.execSQL("CREATE INDEX document_targets ON target_documents (path, target_id)");
        return;
    }

Method com.google.firebase.firestore.local.SQLiteSchema.lambda$createV1MutationQueue$0() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static synthetic void lambda$createV1MutationQueue$0(com.google.firebase.firestore.local.SQLiteSchema p2)
    {
        p2.db.execSQL("CREATE TABLE mutation_queues (uid TEXT PRIMARY KEY, last_acknowledged_batch_id INTEGER, last_stream_token BLOB)");
        p2.db.execSQL("CREATE TABLE mutations (uid TEXT, batch_id INTEGER, mutations BLOB, PRIMARY KEY (uid, batch_id))");
        p2.db.execSQL("CREATE TABLE document_mutations (uid TEXT, path TEXT, batch_id INTEGER, PRIMARY KEY (uid, path, batch_id))");
        return;
    }

Method com.google.firebase.firestore.local.SQLiteSchema.lambda$createLocalDocumentsCollectionIndex$5() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static synthetic void lambda$createLocalDocumentsCollectionIndex$5(com.google.firebase.firestore.local.SQLiteSchema p1)
    {
        p1.db.execSQL("CREATE TABLE collection_index (uid TEXT, collection_path TEXT, field_path TEXT, field_value_type INTEGER, field_value_1, field_value_2, document_id TEXT, PRIMARY KEY (uid, collection_path, field_path, field_value_type, field_value_1, field_value_2, document_id))");
        return;
    }

Method com.google.firebase.firestore.local.SQLiteSchema.ensureTargetGlobal() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void ensureTargetGlobal()
    {
        android.database.sqlite.SQLiteDatabase v0_4;
        if (android.database.DatabaseUtils.queryNumEntries(this.db, "target_globals") != 1) {
            v0_4 = 0;
        } else {
            v0_4 = 1;
        }
        if (v0_4 == null) {
            this.db.execSQL("INSERT INTO target_globals (highest_target_id, highest_listen_sequence_number, last_remote_snapshot_version_seconds, last_remote_snapshot_version_nanos) VALUES (?, ?, ?, ?)", new String[] {"0", "0", "0", "0"}));
        }
        return;
    }

Method com.google.firebase.firestore.local.SQLiteSchema.dropV1QueryCache() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void dropV1QueryCache()
    {
        if (this.tableExists("targets")) {
            this.db.execSQL("DROP TABLE targets");
        }
        if (this.tableExists("target_globals")) {
            this.db.execSQL("DROP TABLE target_globals");
        }
        if (this.tableExists("target_documents")) {
            this.db.execSQL("DROP TABLE target_documents");
        }
        return;
    }

Method com.google.firebase.firestore.local.SQLiteSchema.addTargetCount() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void addTargetCount()
    {
        if (!this.tableContainsColumn("target_globals", "target_count")) {
            this.db.execSQL("ALTER TABLE target_globals ADD COLUMN target_count INTEGER");
        }
        int v2_0 = android.database.DatabaseUtils.queryNumEntries(this.db, "targets");
        android.content.ContentValues v4_1 = new android.content.ContentValues();
        v4_1.put("target_count", Long.valueOf(v2_0));
        this.db.update("target_globals", v4_1, 0, 0);
        return;
    }

Method com.google.firebase.firestore.local.SQLiteSchema.addSequenceNumber() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void addSequenceNumber()
    {
        if (!this.tableContainsColumn("target_documents", "sequence_number")) {
            this.db.execSQL("ALTER TABLE target_documents ADD COLUMN sequence_number INTEGER");
        }
        return;
    }

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


    final void zzb(java.util.List p5)
    {
        this.zzo();
        this.zzbi();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p5);
        com.google.android.gms.common.internal.Preconditions.checkNotZero(p5.size());
        if (this.zzcg()) {
            android.database.sqlite.SQLiteException v5_1 = android.text.TextUtils.join(",", p5);
            String v1_1 = new StringBuilder((String.valueOf(v5_1).length() + 2));
            v1_1.append("(");
            v1_1.append(v5_1);
            v1_1.append(")");
            android.database.sqlite.SQLiteException v5_3 = v1_1.toString();
            String v1_3 = new StringBuilder((String.valueOf(v5_3).length() + 80));
            v1_3.append("SELECT COUNT(1) FROM queue WHERE rowid IN ");
            v1_3.append(v5_3);
            v1_3.append(" AND retry_count =  2147483647 LIMIT 1");
            if (this.zza(v1_3.toString(), 0) > 0) {
                this.zzab().zzgn().zzao("The number of upload retries exceeds the limit. Will remain unchanged.");
            }
            try {
                com.google.android.gms.measurement.internal.zzeh v0_15 = this.getWritableDatabase();
                StringBuilder v2_2 = new StringBuilder((String.valueOf(v5_3).length() + 127));
                v2_2.append("UPDATE queue SET retry_count = IFNULL(retry_count, 0) + 1 WHERE rowid IN ");
                v2_2.append(v5_3);
                v2_2.append(" AND (retry_count IS NULL OR retry_count < 2147483647)");
                v0_15.execSQL(v2_2.toString());
                return;
            } catch (android.database.sqlite.SQLiteException v5_6) {
                this.zzab().zzgk().zza("Error incrementing retry count. error", v5_6);
                return;
            }
        } else {
            return;
        }
    }

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


    final java.util.List zza(String p72, java.util.List p73, java.util.List p74)
    {
        Long v29;
        boolean v9_0 = p72;
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p72);
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p73);
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p74);
        String v15_3 = new java.util.HashSet();
        java.util.ArrayList v13_4 = new android.support.v4.util.ArrayMap();
        java.util.Map v14_0 = new android.support.v4.util.ArrayMap();
        String v11_6 = new android.support.v4.util.ArrayMap();
        android.support.v4.util.ArrayMap v12_5 = new android.support.v4.util.ArrayMap();
        Integer v10_4 = new android.support.v4.util.ArrayMap();
        boolean v25 = this.zzad().zzq(p72);
        boolean v26 = this.zzad().zzd(p72, com.google.android.gms.measurement.internal.zzak.zziq);
        boolean v27 = this.zzad().zzd(p72, com.google.android.gms.measurement.internal.zzak.zziy);
        boolean v28 = this.zzad().zzd(p72, com.google.android.gms.measurement.internal.zzak.zziz);
        if ((!v27) && (!v28)) {
            v29 = 0;
        } else {
            int v0_26 = p73.iterator();
            while (v0_26.hasNext()) {
                int v1_96 = ((com.google.android.gms.internal.measurement.zzbs$zzc) v0_26.next());
                if ("_s".equals(v1_96.getName())) {
                    v29 = Long.valueOf(v1_96.getTimestampMillis());
                }
            }
        }
        if ((v29 != null) && (v28)) {
            int v1_98 = this.zzgy();
            v1_98.zzbi();
            v1_98.zzo();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p72);
            int v0_51 = new android.content.ContentValues();
            v0_51.put("current_session_count", Integer.valueOf(0));
            try {
                long v2_97 = v1_98.getWritableDatabase();
                boolean v8_86 = new String[1];
                v8_86[0] = p72;
                v2_97.update("events", v0_51, "app_id = ?", v8_86);
            } catch (int v0_56) {
                v1_98.zzab().zzgk().zza("Error resetting session-scoped event counts. appId", com.google.android.gms.measurement.internal.zzef.zzam(p72), v0_56);
            }
        }
        int v0_66 = this.zzgy().zzaf(p72);
        if ((v0_66 != 0) && (!v0_66.isEmpty())) {
            String v3_3;
            int v1_0 = new java.util.HashSet(v0_66.keySet());
            if ((!v27) || (v29 == null)) {
                v3_3 = v0_66;
            } else {
                long v2_4 = this.zzgx();
                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p72);
                com.google.android.gms.common.internal.Preconditions.checkNotNull(v0_66);
                v3_3 = new android.support.v4.util.ArrayMap();
                if (!v0_66.isEmpty()) {
                    String v5_3 = v2_4.zzgy().zzae(p72);
                    boolean v8_13 = v0_66.keySet().iterator();
                    while (v8_13.hasNext()) {
                        long v22_6;
                        java.util.Iterator v20_11;
                        long v21_13;
                        boolean v17_13 = ((Integer) v8_13.next()).intValue();
                        String v6_19 = ((com.google.android.gms.internal.measurement.zzbs$zzi) v0_66.get(Integer.valueOf(v17_13)));
                        int v4_21 = ((java.util.List) v5_3.get(Integer.valueOf(v17_13)));
                        if ((v4_21 != 0) && (!v4_21.isEmpty())) {
                            v20_11 = v5_3;
                            v21_13 = v8_13;
                            String v5_17 = v2_4.zzgw().zza(v6_19.zzpy(), v4_21);
                            if (v5_17.isEmpty()) {
                                v5_3 = v20_11;
                                v8_13 = v21_13;
                            } else {
                                String v5_19 = ((com.google.android.gms.internal.measurement.zzbs$zzi$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v6_19.zzuj())).zzqr().zzo(v5_17);
                                v22_6 = v2_4;
                                v5_19.zzqq().zzn(v2_4.zzgw().zza(v6_19.zzpv(), v4_21));
                                long v2_69 = 0;
                                while (v2_69 < v6_19.zzqc()) {
                                    if (v4_21.contains(Integer.valueOf(v6_19.zzae(v2_69).getIndex()))) {
                                        v5_19.zzaj(v2_69);
                                    }
                                    v2_69++;
                                }
                                long v2_70 = 0;
                                while (v2_70 < v6_19.zzqf()) {
                                    if (v4_21.contains(Integer.valueOf(v6_19.zzag(v2_70).getIndex()))) {
                                        v5_19.zzak(v2_70);
                                    }
                                    v2_70++;
                                }
                                v3_3.put(Integer.valueOf(v17_13), ((com.google.android.gms.internal.measurement.zzbs$zzi) ((com.google.android.gms.internal.measurement.zzey) v5_19.zzug())));
                                v5_3 = v20_11;
                                v8_13 = v21_13;
                                v2_4 = v22_6;
                            }
                        } else {
                            v22_6 = v2_4;
                            v20_11 = v5_3;
                            v21_13 = v8_13;
                            v3_3.put(Integer.valueOf(v17_13), v6_19);
                        }
                        String v6 = 1;
                    }
                }
            }
            int v1_26 = v1_0.iterator();
            while (v1_26.hasNext()) {
                long v22_4;
                boolean v8_24;
                java.util.Iterator v20_3;
                long v2_64 = ((Integer) v1_26.next()).intValue();
                int v4_14 = ((com.google.android.gms.internal.measurement.zzbs$zzi) v3_3.get(Integer.valueOf(v2_64)));
                String v5_11 = ((java.util.BitSet) v14_0.get(Integer.valueOf(v2_64)));
                String v6_15 = ((java.util.BitSet) v11_6.get(Integer.valueOf(v2_64)));
                if (!v25) {
                    v22_4 = v1_26;
                    v20_3 = v3_3;
                    v8_24 = 0;
                } else {
                    v8_24 = new android.support.v4.util.ArrayMap();
                    if ((v4_14 != 0) && (v4_14.zzqc() != 0)) {
                        boolean v17_8 = v4_14.zzqb().iterator();
                        while (v17_8.hasNext()) {
                            long v22_5;
                            java.util.Iterator v20_7;
                            java.util.Iterator v20_6 = ((com.google.android.gms.internal.measurement.zzbs$zzb) v17_8.next());
                            if (!v20_6.zzme()) {
                                v22_5 = v1_26;
                                v20_7 = v3_3;
                            } else {
                                String v3_31;
                                v22_5 = v1_26;
                                int v1_81 = Integer.valueOf(v20_6.getIndex());
                                if (!v20_6.zzmf()) {
                                    v20_7 = v3_3;
                                    v3_31 = 0;
                                } else {
                                    v20_7 = v3_3;
                                    v3_31 = Long.valueOf(v20_6.zzmg());
                                }
                                v8_24.put(v1_81, v3_31);
                            }
                            v3_3 = v20_7;
                            v1_26 = v22_5;
                        }
                    }
                    v22_4 = v1_26;
                    v20_3 = v3_3;
                    v12_5.put(Integer.valueOf(v2_64), v8_24);
                }
                if (v5_11 == null) {
                    v5_11 = new java.util.BitSet();
                    v14_0.put(Integer.valueOf(v2_64), v5_11);
                    v6_15 = new java.util.BitSet();
                    v11_6.put(Integer.valueOf(v2_64), v6_15);
                }
                if (v4_14 != 0) {
                    int v1_85 = 0;
                    while (v1_85 < (v4_14.zzpw() << 6)) {
                        long v21_12;
                        boolean v17_10;
                        String v23_4;
                        String v3_47;
                        if (!com.google.android.gms.measurement.internal.zzjo.zza(v4_14.zzpv(), v1_85)) {
                            v17_10 = v11_6;
                            v21_12 = v12_5;
                            v23_4 = v14_0;
                            v3_47 = 0;
                        } else {
                            v17_10 = v11_6;
                            v21_12 = v12_5;
                            v23_4 = v14_0;
                            this.zzab().zzgs().zza("Filter already evaluated. audience ID, filter ID", Integer.valueOf(v2_64), Integer.valueOf(v1_85));
                            v6_15.set(v1_85);
                            if (!com.google.android.gms.measurement.internal.zzjo.zza(v4_14.zzpy(), v1_85)) {
                            } else {
                                v5_11.set(v1_85);
                                v3_47 = 1;
                            }
                        }
                        if ((v8_24) && (v3_47 == null)) {
                            v8_24.remove(Integer.valueOf(v1_85));
                        }
                        v1_85++;
                        v11_6 = v17_10;
                        v12_5 = v21_12;
                        v14_0 = v23_4;
                    }
                }
                boolean v17_9 = v11_6;
                long v21_11 = v12_5;
                String v23_3 = v14_0;
                int v1_87 = com.google.android.gms.internal.measurement.zzbs$zza.zzmc().zzk(0);
                if (!v27) {
                    v1_87.zza(v4_14);
                } else {
                    v1_87.zza(((com.google.android.gms.internal.measurement.zzbs$zzi) v0_66.get(Integer.valueOf(v2_64))));
                }
                String v3_40 = com.google.android.gms.internal.measurement.zzbs$zzi.zzqh().zzo(com.google.android.gms.measurement.internal.zzjo.zza(v5_11)).zzn(com.google.android.gms.measurement.internal.zzjo.zza(v6_15));
                if (v25) {
                    v3_40.zzp(com.google.android.gms.measurement.internal.zzp.zza(v8_24));
                    v10_4.put(Integer.valueOf(v2_64), new android.support.v4.util.ArrayMap());
                }
                v1_87.zza(v3_40);
                v13_4.put(Integer.valueOf(v2_64), ((com.google.android.gms.internal.measurement.zzbs$zza) ((com.google.android.gms.internal.measurement.zzey) v1_87.zzug())));
                v11_6 = v17_9;
                v3_3 = v20_3;
                v12_5 = v21_11;
                v1_26 = v22_4;
                v14_0 = v23_3;
            }
        }
        boolean v17_4 = v11_6;
        long v21_3 = v12_5;
        String v23_2 = v14_0;
        java.util.Map v14_1 = "Filter definition";
        boolean v8_17 = "Skipping failed audience ID";
        if (!p73.isEmpty()) {
            String v6_7 = new android.support.v4.util.ArrayMap();
            java.util.Iterator v31 = p73.iterator();
            long v2_13 = 0;
            int v0_12 = 0;
            int v1_29 = 0;
            while (v31.hasNext()) {
                int v24_10;
                int v4_32 = ((com.google.android.gms.internal.measurement.zzbs$zzc) v31.next());
                String v5_37 = v4_32.getName();
                java.util.Iterator v20_13 = v4_32.zzmj();
                this.zzgw();
                android.support.v4.util.ArrayMap v12_31 = ((Long) com.google.android.gms.measurement.internal.zzjo.zzb(v4_32, "_eid"));
                if (v12_31 == null) {
                    v24_10 = 0;
                } else {
                    v24_10 = 1;
                }
                long v2_101;
                long v35;
                if (v24_10 == 0) {
                    v35 = v2_13;
                    v2_101 = 0;
                } else {
                    v35 = v2_13;
                    if (!v5_37.equals("_ep")) {
                    } else {
                        v2_101 = 1;
                    }
                }
                com.google.android.gms.measurement.internal.zzeh v39_0;
                String v11_1;
                long v18_0;
                int v42;
                int v0_11;
                boolean v40;
                Integer v41_0;
                if (v2_101 == 0) {
                    v11_1 = v4_32;
                    v41_0 = v6_7;
                    v18_0 = v8_17;
                    if (v24_10 == 0) {
                        v39_0 = v0_12;
                        v40 = v1_29;
                        v0_11 = v5_37;
                    } else {
                        this.zzgw();
                        int v0_67 = Long.valueOf(0);
                        int v1_126 = com.google.android.gms.measurement.internal.zzjo.zzb(v11_1, "_epc");
                        if (v1_126 != 0) {
                            v0_67 = v1_126;
                        }
                        boolean v8_91;
                        v35 = ((Long) v0_67).longValue();
                        if (v35 > 0) {
                            v8_91 = v5_37;
                            this.zzgy().zza(p72, v12_31, v35, v11_1);
                        } else {
                            this.zzab().zzgn().zza("Complex event with zero extra param count. eventName", v5_37);
                            v8_91 = v5_37;
                        }
                        v0_11 = v8_91;
                        v39_0 = v11_1;
                        v40 = v12_31;
                    }
                    v42 = v20_13;
                } else {
                    long v18_2;
                    Integer v41_2;
                    this.zzgw();
                    String v5_39 = ((String) com.google.android.gms.measurement.internal.zzjo.zzb(v4_32, "_en"));
                    if (!android.text.TextUtils.isEmpty(v5_39)) {
                        if ((v0_12 != 0) && ((v1_29 != 0) && (v12_31.longValue() == v1_29.longValue()))) {
                            String v11_0 = v0_12;
                            int v24_0 = v1_29;
                            long v2_0 = v35;
                        } else {
                            long v2_110 = this.zzgy().zza(v9_0, v12_31);
                            if ((v2_110 != 0) && (v2_110.first != null)) {
                                int v0_1 = ((com.google.android.gms.internal.measurement.zzbs$zzc) v2_110.first);
                                v2_0 = ((Long) v2_110.second).longValue();
                                this.zzgw();
                                v11_0 = v0_1;
                                v24_0 = ((Long) com.google.android.gms.measurement.internal.zzjo.zzb(v0_1, "_eid"));
                            } else {
                                v41_2 = v6_7;
                                v18_2 = v8_17;
                                this.zzab().zzgk().zza("Extra parameter without existing main event. eventName, eventId", v5_39, v12_31);
                                v8_17 = v18_2;
                                v2_13 = v35;
                                v6_7 = v41_2;
                            }
                        }
                        android.support.v4.util.ArrayMap v12_0;
                        boolean v8_0;
                        v35 = (v2_0 - 1);
                        if (v35 > 0) {
                            v12_0 = v4_32;
                            v18_0 = v8_17;
                            v8_0 = v5_39;
                            v41_0 = v6_7;
                            this.zzgy().zza(p72, v12_31, v35, v11_0);
                        } else {
                            int v1_6 = this.zzgy();
                            v1_6.zzo();
                            v1_6.zzab().zzgs().zza("Clearing complex main event info. appId", v9_0);
                            try {
                                int v0_5 = v1_6.getWritableDatabase();
                                try {
                                    android.support.v4.util.ArrayMap v12_1 = new String[1];
                                    try {
                                        v12_1[0] = v9_0;
                                        v0_5.execSQL("delete from main_event_params where app_id=?", v12_1);
                                    } catch (int v0_6) {
                                        v1_6.zzab().zzgk().zza("Error clearing complex main event", v0_6);
                                    }
                                    v12_0 = v4_32;
                                    v41_0 = v6_7;
                                    v18_0 = v8_17;
                                    v8_0 = v5_39;
                                } catch (int v0_6) {
                                }
                            } catch (int v0_6) {
                            }
                        }
                        int v0_8 = new java.util.ArrayList();
                        int v1_10 = v11_0.zzmj().iterator();
                        while (v1_10.hasNext()) {
                            long v2_57 = ((com.google.android.gms.internal.measurement.zzbs$zze) v1_10.next());
                            this.zzgw();
                            if (com.google.android.gms.measurement.internal.zzjo.zza(v12_0, v2_57.getName()) == null) {
                                v0_8.add(v2_57);
                            }
                        }
                        if (v0_8.isEmpty()) {
                            this.zzab().zzgn().zza("No unique parameters in main event. eventName", v8_0);
                            v0_11 = v8_0;
                            v39_0 = v11_0;
                            v11_1 = v12_0;
                            v42 = v20_13;
                        } else {
                            int v1_13 = v20_13.iterator();
                            while (v1_13.hasNext()) {
                                v0_8.add(((com.google.android.gms.internal.measurement.zzbs$zze) v1_13.next()));
                            }
                            v42 = v0_8;
                            v0_11 = v8_0;
                            v39_0 = v11_0;
                            v11_1 = v12_0;
                        }
                        v40 = v24_0;
                        long v34;
                        String v5_1;
                        long v7_0;
                        android.support.v4.util.ArrayMap v46_0;
                        int v44_0;
                        int v4_1;
                        java.util.Map v49;
                        String v3_6;
                        long v48_0;
                        String v47_0;
                        String v43_0;
                        int v1_15 = this.zzgy().zzc(v9_0, v11_1.getName());
                        if (v1_15 != 0) {
                            long v2_9;
                            v3_6 = v9_0;
                            v4_1 = v10_4;
                            v34 = v11_1;
                            v46_0 = v13_4;
                            v48_0 = v14_1;
                            v49 = v15_3;
                            v43_0 = v17_4;
                            v5_1 = v18_0;
                            v44_0 = v21_3;
                            v47_0 = v23_2;
                            if (!v28) {
                                v2_9 = new com.google.android.gms.measurement.internal.zzae;
                                v2_9(v1_15.zzce, v1_15.name, (v1_15.zzfg + 1), (v1_15.zzfh + 1), v1_15.zzfi, v1_15.zzfj, v1_15.zzfk, v1_15.zzfl, v1_15.zzfm, v1_15.zzfn, v1_15.zzfo);
                            } else {
                                v2_9 = new com.google.android.gms.measurement.internal.zzae;
                                v2_9(v1_15.zzce, v1_15.name, (v1_15.zzfg + 1), (v1_15.zzfh + 1), (v1_15.zzfi + 1), v1_15.zzfj, v1_15.zzfk, v1_15.zzfl, v1_15.zzfm, v1_15.zzfn, v1_15.zzfo);
                            }
                            v7_0 = v2_9;
                        } else {
                            int v1_20;
                            this.zzab().zzgn().zza("Event aggregate wasn\'t created during raw event logging. appId, event", com.google.android.gms.measurement.internal.zzef.zzam(p72), this.zzy().zzaj(v0_11));
                            if (!v28) {
                                v3_6 = v9_0;
                                v4_1 = v10_4;
                                v34 = v11_1;
                                v46_0 = v13_4;
                                v48_0 = v14_1;
                                v49 = v15_3;
                                v43_0 = v17_4;
                                v5_1 = v18_0;
                                v44_0 = v21_3;
                                v47_0 = v23_2;
                                v1_20 = new com.google.android.gms.measurement.internal.zzae;
                                v1_20(p72, v34.getName(), 1, 1, v34.getTimestampMillis(), 0, 0, 0, 0, 0);
                            } else {
                                v1_20 = new com.google.android.gms.measurement.internal.zzae;
                                v5_1 = v18_0;
                                v4_1 = v10_4;
                                v34 = v11_1;
                                v43_0 = v17_4;
                                v44_0 = v21_3;
                                v46_0 = v13_4;
                                v48_0 = v14_1;
                                v47_0 = v23_2;
                                v49 = v15_3;
                                v3_6 = v9_0;
                                v1_20(p72, v11_1.getName(), 1, 1, 1, v34.getTimestampMillis(), 0, 0, 0, 0, 0);
                            }
                            v7_0 = v1_20;
                        }
                        this.zzgy().zza(v7_0);
                        boolean v8_16 = v7_0.zzfg;
                        Integer v10_3 = v41_0;
                        int v1_23 = ((java.util.Map) v10_3.get(v0_11));
                        if (v1_23 == 0) {
                            v1_23 = this.zzgy().zzh(v3_6, v0_11);
                            if (v1_23 == 0) {
                                v1_23 = new android.support.v4.util.ArrayMap();
                            }
                            v10_3.put(v0_11, v1_23);
                        }
                        String v11_8 = v1_23;
                        android.support.v4.util.ArrayMap v12_2 = v11_8.keySet().iterator();
                        while (v12_2.hasNext()) {
                            java.util.ArrayList v13_5 = ((Integer) v12_2.next()).intValue();
                            java.util.Map v14_2 = v49;
                            if (!v14_2.contains(Integer.valueOf(v13_5))) {
                                boolean v19_3;
                                boolean v9_4;
                                boolean v17_5;
                                android.support.v4.util.ArrayMap v16_0;
                                boolean v8_18;
                                String v15_4 = v47_0;
                                int v1_36 = ((java.util.BitSet) v15_4.get(Integer.valueOf(v13_5)));
                                String v6_8 = v43_0;
                                long v2_17 = ((java.util.BitSet) v6_8.get(Integer.valueOf(v13_5)));
                                if (!v25) {
                                    v16_0 = v1_36;
                                    v17_5 = v8_16;
                                    v8_18 = v44_0;
                                    v9_4 = 0;
                                    v19_3 = 0;
                                } else {
                                    v16_0 = v1_36;
                                    v17_5 = v8_16;
                                    v8_18 = v44_0;
                                    v9_4 = ((java.util.Map) v4_1.get(Integer.valueOf(v13_5)));
                                    v19_3 = ((java.util.Map) v8_18.get(Integer.valueOf(v13_5)));
                                }
                                Integer v10_7;
                                Integer v41_1;
                                android.support.v4.util.ArrayMap v16_1;
                                android.support.v4.util.ArrayMap v12_4;
                                java.util.Iterator v20_1 = v9_4;
                                boolean v9_7 = v46_0;
                                if (((com.google.android.gms.internal.measurement.zzbs$zza) v9_7.get(Integer.valueOf(v13_5))) != null) {
                                    v41_1 = v10_3;
                                    v10_7 = v16_0;
                                    v16_1 = v12_2;
                                    v12_4 = v20_1;
                                } else {
                                    v41_1 = v10_3;
                                    v9_7.put(Integer.valueOf(v13_5), ((com.google.android.gms.internal.measurement.zzbs$zza) ((com.google.android.gms.internal.measurement.zzey) com.google.android.gms.internal.measurement.zzbs$zza.zzmc().zzk(1).zzug())));
                                    int v1_45 = new java.util.BitSet();
                                    v15_4.put(Integer.valueOf(v13_5), v1_45);
                                    v2_17 = new java.util.BitSet();
                                    v6_8.put(Integer.valueOf(v13_5), v2_17);
                                    if (!v25) {
                                        v16_0 = v1_45;
                                    } else {
                                        Integer v10_9 = new android.support.v4.util.ArrayMap();
                                        android.support.v4.util.ArrayMap v16_2 = v1_45;
                                        v8_18.put(Integer.valueOf(v13_5), v10_9);
                                        int v1_48 = new android.support.v4.util.ArrayMap();
                                        long v21_4 = v2_17;
                                        v4_1.put(Integer.valueOf(v13_5), v1_48);
                                        v19_3 = v10_9;
                                        v10_7 = v16_2;
                                        v2_17 = v21_4;
                                        v16_1 = v12_2;
                                        v12_4 = v1_48;
                                    }
                                }
                                java.util.Iterator v20_2 = ((java.util.List) v11_8.get(Integer.valueOf(v13_5))).iterator();
                                while (v20_2.hasNext()) {
                                    long v22_3;
                                    long v21_6;
                                    int v1_54 = ((com.google.android.gms.internal.measurement.zzbk$zza) v20_2.next());
                                    if ((!v28) || ((!v27) || (!v1_54.zzki()))) {
                                        v21_6 = v2_17;
                                        v22_3 = v17_5;
                                    } else {
                                        v21_6 = v2_17;
                                        v22_3 = v7_0.zzfi;
                                    }
                                    int v24_3;
                                    String v37_0;
                                    String v5_4;
                                    String v43_1;
                                    if (!this.zzab().isLoggable(2)) {
                                        v24_3 = v4_1;
                                        v37_0 = v5_1;
                                        v43_1 = v6_8;
                                        v5_4 = v48_0;
                                    } else {
                                        int v4_3;
                                        long v2_30 = this.zzab().zzgs();
                                        String v3_10 = Integer.valueOf(v13_5);
                                        if (!v1_54.zzkb()) {
                                            v24_3 = v4_1;
                                            v37_0 = v5_1;
                                            v4_3 = 0;
                                        } else {
                                            v37_0 = v5_1;
                                            v24_3 = v4_1;
                                            v4_3 = Integer.valueOf(v1_54.getId());
                                        }
                                        v43_1 = v6_8;
                                        v2_30.zza("Evaluating filter. audience, filter, event", v3_10, v4_3, this.zzy().zzaj(v1_54.zzjz()));
                                        v5_4 = v48_0;
                                        this.zzab().zzgs().zza(v5_4, this.zzgw().zza(v1_54));
                                    }
                                    if ((v1_54.zzkb()) && (v1_54.getId() <= 256)) {
                                        if (!v25) {
                                            String v69_0 = v5_4;
                                            boolean v45 = v7_0;
                                            android.support.v4.util.ArrayMap v46_1 = v9_7;
                                            String v47_1 = v15_4;
                                            boolean v9_8 = v19_3;
                                            long v7_1 = v21_6;
                                            int v67_0 = v24_3;
                                            String v15_5 = v37_0;
                                            String v68_0 = v43_1;
                                            boolean v19_4 = v1_54;
                                            int v24_7 = v8_18;
                                            long v21_7 = v11_8;
                                            String v11_9 = p72;
                                            if (!v10_7.get(v19_4.getId())) {
                                                String v3_14;
                                                int v1_58 = this.zza(v19_4, v0_11, v42, v22_3);
                                                com.google.android.gms.measurement.internal.zzeh vtmp508 = this.zzab().zzgs();
                                                if (v1_58 != 0) {
                                                    v3_14 = v1_58;
                                                } else {
                                                    v3_14 = "null";
                                                }
                                                vtmp508.zza("Event filter result", v3_14);
                                                if (v1_58 != 0) {
                                                    v7_1.set(v19_4.getId());
                                                    if (v1_58.booleanValue()) {
                                                        v10_7.set(v19_4.getId());
                                                    }
                                                } else {
                                                    v14_2.add(Integer.valueOf(v13_5));
                                                }
                                            } else {
                                                boolean v8_20;
                                                int v1_63 = this.zzab().zzgs();
                                                long v2_39 = Integer.valueOf(v13_5);
                                                if (!v19_4.zzkb()) {
                                                    v8_20 = 0;
                                                } else {
                                                    v8_20 = Integer.valueOf(v19_4.getId());
                                                }
                                                v1_63.zza("Event filter already evaluated true. audience ID, filter ID", v2_39, v8_20);
                                            }
                                        } else {
                                            String v3_19;
                                            long v2_40 = v1_54.zzkf();
                                            boolean v38 = v1_54.zzkg();
                                            if ((!v27) || (!v1_54.zzki())) {
                                                v3_19 = 0;
                                            } else {
                                                v3_19 = 1;
                                            }
                                            if ((v2_40 == 0) && ((!v38) && (v3_19 == null))) {
                                                int v44_1 = 0;
                                            } else {
                                                v44_1 = 1;
                                            }
                                            if ((!v10_7.get(v1_54.getId())) || (v44_1 != 0)) {
                                                String v3_22;
                                                boolean v19_5 = v1_54;
                                                v45 = v7_0;
                                                v7_1 = v21_6;
                                                v46_1 = v9_7;
                                                v21_7 = v11_8;
                                                v11_9 = p72;
                                                v9_8 = v19_3;
                                                v67_0 = v24_3;
                                                v24_7 = v8_18;
                                                v69_0 = v5_4;
                                                v47_1 = v15_4;
                                                v15_5 = v37_0;
                                                v68_0 = v43_1;
                                                int v1_65 = this.zza(v19_5, v0_11, v42, v22_3);
                                                com.google.android.gms.measurement.internal.zzeh vtmp520 = this.zzab().zzgs();
                                                if (v1_65 != 0) {
                                                    v3_22 = v1_65;
                                                } else {
                                                    v3_22 = "null";
                                                }
                                                vtmp520.zza("Event filter result", v3_22);
                                                if (v1_65 != 0) {
                                                    v7_1.set(v19_5.getId());
                                                    if (v1_65.booleanValue()) {
                                                        v10_7.set(v19_5.getId());
                                                        if ((v44_1 != 0) && (v34.zzml())) {
                                                            if (!v38) {
                                                                com.google.android.gms.measurement.internal.zzp.zza(v9_8, v19_5.getId(), v34.getTimestampMillis());
                                                            } else {
                                                                com.google.android.gms.measurement.internal.zzp.zzb(v12_4, v19_5.getId(), v34.getTimestampMillis());
                                                            }
                                                        }
                                                    }
                                                } else {
                                                    v14_2.add(Integer.valueOf(v13_5));
                                                }
                                            } else {
                                                int v1_72;
                                                long v2_50 = this.zzab().zzgs();
                                                String v3_23 = Integer.valueOf(v13_5);
                                                if (!v1_54.zzkb()) {
                                                    v1_72 = 0;
                                                } else {
                                                    v1_72 = Integer.valueOf(v1_54.getId());
                                                }
                                                v2_50.zza("Event filter already evaluated true and it is not associated with an enhanced audience. audience ID, filter ID", v3_23, v1_72);
                                                v3_6 = p72;
                                                v48_0 = v5_4;
                                                v2_17 = v21_6;
                                                v4_1 = v24_3;
                                                v5_1 = v37_0;
                                                v6_8 = v43_1;
                                            }
                                        }
                                    } else {
                                        boolean v8_22;
                                        v69_0 = v5_4;
                                        v45 = v7_0;
                                        v46_1 = v9_7;
                                        v47_1 = v15_4;
                                        v9_8 = v19_3;
                                        v7_1 = v21_6;
                                        v67_0 = v24_3;
                                        v15_5 = v37_0;
                                        v68_0 = v43_1;
                                        boolean v19_6 = v1_54;
                                        v24_7 = v8_18;
                                        v21_7 = v11_8;
                                        v11_9 = p72;
                                        int v1_75 = this.zzab().zzgn();
                                        long v2_51 = com.google.android.gms.measurement.internal.zzef.zzam(p72);
                                        if (!v19_6.zzkb()) {
                                            v8_22 = 0;
                                        } else {
                                            v8_22 = Integer.valueOf(v19_6.getId());
                                        }
                                        v1_75.zza("Invalid event filter ID. appId, id", v2_51, String.valueOf(v8_22));
                                    }
                                    v2_17 = v7_1;
                                    v19_3 = v9_8;
                                    v3_6 = v11_9;
                                    v5_1 = v15_5;
                                    v11_8 = v21_7;
                                    v8_18 = v24_7;
                                    v7_0 = v45;
                                    v9_7 = v46_1;
                                    v15_4 = v47_1;
                                    v4_1 = v67_0;
                                    v6_8 = v68_0;
                                    v48_0 = v69_0;
                                }
                                v43_0 = v6_8;
                                v44_0 = v8_18;
                                v46_0 = v9_7;
                                v49 = v14_2;
                                v47_0 = v15_4;
                                v12_2 = v16_1;
                                v8_16 = v17_5;
                                v10_3 = v41_1;
                            } else {
                                this.zzab().zzgs().zza(v5_1, Integer.valueOf(v13_5));
                                v49 = v14_2;
                            }
                        }
                        v9_0 = v3_6;
                        v8_17 = v5_1;
                        v6_7 = v10_3;
                        v2_13 = v35;
                        v0_12 = v39_0;
                        v1_29 = v40;
                        v17_4 = v43_0;
                        v21_3 = v44_0;
                        v13_4 = v46_0;
                        v23_2 = v47_0;
                        v14_1 = v48_0;
                        v15_3 = v49;
                        v10_4 = v4_1;
                    } else {
                        this.zzab().zzgk().zza("Extra parameter without an event name. eventId", v12_31);
                        v41_2 = v6_7;
                        v18_2 = v8_17;
                    }
                }
            }
        }
        String v11_10 = v9_0;
        int v67_1 = v10_4;
        android.support.v4.util.ArrayMap v46_2 = v13_4;
        String v69_1 = v14_1;
        java.util.Map v14_3 = v15_3;
        String v68_1 = v17_4;
        int v24_8 = v21_3;
        String v47_2 = v23_2;
        String v15_6 = v8_17;
        if (!p74.isEmpty()) {
            int v0_16 = new android.support.v4.util.ArrayMap();
            int v1_76 = p74.iterator();
            while (v1_76.hasNext()) {
                long v2_94 = ((com.google.android.gms.internal.measurement.zzbs$zzk) v1_76.next());
                String v3_67 = ((java.util.Map) v0_16.get(v2_94.getName()));
                if (v3_67 == null) {
                    v3_67 = this.zzgy().zzi(v11_10, v2_94.getName());
                    if (v3_67 == null) {
                        v3_67 = new android.support.v4.util.ArrayMap();
                    }
                    v0_16.put(v2_94.getName(), v3_67);
                }
                int v4_28 = v3_67.keySet().iterator();
                while (v4_28.hasNext()) {
                    String v5_34 = ((Integer) v4_28.next()).intValue();
                    if (!v14_3.contains(Integer.valueOf(v5_34))) {
                        android.support.v4.util.ArrayMap v16_6;
                        java.util.ArrayList v13_14;
                        Integer v10_12;
                        android.support.v4.util.ArrayMap v12_22;
                        int v1_97;
                        com.google.android.gms.internal.measurement.zzbs$zzj$zza v73_3;
                        long v7_12 = v47_2;
                        String v6_30 = ((java.util.BitSet) v7_12.get(Integer.valueOf(v5_34)));
                        boolean v9_10 = v68_1;
                        boolean v8_83 = ((java.util.BitSet) v9_10.get(Integer.valueOf(v5_34)));
                        if (!v25) {
                            v73_3 = v1_76;
                            v12_22 = v24_8;
                            v1_97 = v67_1;
                            v16_6 = v0_16;
                            v10_12 = 0;
                            v13_14 = 0;
                        } else {
                            v12_22 = v24_8;
                            v10_12 = ((java.util.Map) v12_22.get(Integer.valueOf(v5_34)));
                            v73_3 = v1_76;
                            v1_97 = v67_1;
                            v13_14 = ((java.util.Map) v1_97.get(Integer.valueOf(v5_34)));
                            v16_6 = v0_16;
                        }
                        com.google.android.gms.measurement.internal.zzp v74_4 = v4_28;
                        int v4_29 = v46_2;
                        if (((com.google.android.gms.internal.measurement.zzbs$zza) v4_29.get(Integer.valueOf(v5_34))) == null) {
                            v4_29.put(Integer.valueOf(v5_34), ((com.google.android.gms.internal.measurement.zzbs$zza) ((com.google.android.gms.internal.measurement.zzey) com.google.android.gms.internal.measurement.zzbs$zza.zzmc().zzk(1).zzug())));
                            v6_30 = new java.util.BitSet();
                            v7_12.put(Integer.valueOf(v5_34), v6_30);
                            v8_83 = new java.util.BitSet();
                            v9_10.put(Integer.valueOf(v5_34), v8_83);
                            if (v25) {
                                v10_12 = new android.support.v4.util.ArrayMap();
                                v12_22.put(Integer.valueOf(v5_34), v10_12);
                                v13_14 = new android.support.v4.util.ArrayMap();
                                v1_97.put(Integer.valueOf(v5_34), v13_14);
                            }
                        }
                        int v0_47 = ((java.util.List) v3_67.get(Integer.valueOf(v5_34))).iterator();
                        while (v0_47.hasNext()) {
                            String v11_13;
                            int v44_3;
                            long v18_4 = v0_47;
                            int v0_49 = ((com.google.android.gms.internal.measurement.zzbk$zzd) v0_47.next());
                            boolean v17_17 = v3_67;
                            String v37_1 = v15_6;
                            if (!this.zzab().isLoggable(2)) {
                                v67_1 = v1_97;
                                v44_3 = v12_22;
                                v11_13 = v69_1;
                            } else {
                                String v11_14;
                                String v3_73 = this.zzab().zzgs();
                                String v15_17 = Integer.valueOf(v5_34);
                                if (!v0_49.zzkb()) {
                                    v67_1 = v1_97;
                                    v11_14 = 0;
                                } else {
                                    v67_1 = v1_97;
                                    v11_14 = Integer.valueOf(v0_49.getId());
                                }
                                v44_3 = v12_22;
                                v3_73.zza("Evaluating filter. audience, filter, property", v15_17, v11_14, this.zzy().zzal(v0_49.getPropertyName()));
                                v11_13 = v69_1;
                                this.zzab().zzgs().zza(v11_13, this.zzgw().zza(v0_49));
                            }
                            if ((v0_49.zzkb()) && (v0_49.getId() <= 256)) {
                                String v43_3;
                                long v48_1;
                                if (!v25) {
                                    v43_3 = v9_10;
                                    v48_1 = v11_13;
                                    if (!v6_30.get(v0_49.getId())) {
                                        android.support.v4.util.ArrayMap v12_25;
                                        boolean v9_13 = this.zza(v0_49, v2_94);
                                        String v11_16 = this.zzab().zzgs();
                                        if (v9_13) {
                                            v12_25 = v9_13;
                                        } else {
                                            v12_25 = "null";
                                        }
                                        v11_16.zza("Property filter result", v12_25);
                                        if (v9_13) {
                                            v8_83.set(v0_49.getId());
                                            if (v9_13.booleanValue()) {
                                                v6_30.set(v0_49.getId());
                                            }
                                        } else {
                                            v14_3.add(Integer.valueOf(v5_34));
                                        }
                                    } else {
                                        int v0_54;
                                        int v1_109 = this.zzab().zzgs();
                                        boolean v9_14 = Integer.valueOf(v5_34);
                                        if (!v0_49.zzkb()) {
                                            v0_54 = 0;
                                        } else {
                                            v0_54 = Integer.valueOf(v0_49.getId());
                                        }
                                        v1_109.zza("Property filter already evaluated true. audience ID, filter ID", v9_14, v0_54);
                                    }
                                } else {
                                    boolean v19_11;
                                    android.support.v4.util.ArrayMap v12_26 = v0_49.zzkf();
                                    String v15_18 = v0_49.zzkg();
                                    if ((!v27) || (!v0_49.zzki())) {
                                        v19_11 = 0;
                                    } else {
                                        v19_11 = 1;
                                    }
                                    if ((v12_26 == null) && ((v15_18 == null) && (!v19_11))) {
                                        android.support.v4.util.ArrayMap v12_27 = 0;
                                    } else {
                                        v12_27 = 1;
                                    }
                                    if ((!v6_30.get(v0_49.getId())) || (v12_27 != null)) {
                                        boolean v9_15;
                                        java.util.Iterator v20_12 = this.zza(v0_49, v2_94);
                                        v48_1 = v11_13;
                                        com.google.android.gms.measurement.internal.zzeh vtmp439 = this.zzab().zzgs();
                                        if (v20_12 != null) {
                                            v43_3 = v9_10;
                                            v9_15 = v20_12;
                                        } else {
                                            v43_3 = v9_10;
                                            v9_15 = "null";
                                        }
                                        vtmp439.zza("Property filter result", v9_15);
                                        if (v20_12 != null) {
                                            v8_83.set(v0_49.getId());
                                            if ((!v27) || ((!v19_11) || (v20_12.booleanValue()))) {
                                                if (!v26) {
                                                    v6_30.set(v0_49.getId(), v20_12.booleanValue());
                                                } else {
                                                    if ((!v6_30.get(v0_49.getId())) || (v0_49.zzkf())) {
                                                        v6_30.set(v0_49.getId(), v20_12.booleanValue());
                                                    }
                                                }
                                                if ((v20_12.booleanValue()) && ((v12_27 != null) && (v2_94.zzqs()))) {
                                                    String v11_20 = v2_94.zzqt();
                                                    if ((v27) && ((v19_11) && (v29 != null))) {
                                                        v11_20 = v29.longValue();
                                                    }
                                                    if (v15_18 == null) {
                                                        com.google.android.gms.measurement.internal.zzp.zza(v10_12, v0_49.getId(), v11_20);
                                                    } else {
                                                        com.google.android.gms.measurement.internal.zzp.zzb(v13_14, v0_49.getId(), v11_20);
                                                    }
                                                }
                                            }
                                        } else {
                                            v14_3.add(Integer.valueOf(v5_34));
                                        }
                                    } else {
                                        int v0_60;
                                        int v1_122 = this.zzab().zzgs();
                                        String v3_83 = Integer.valueOf(v5_34);
                                        if (!v0_49.zzkb()) {
                                            v0_60 = 0;
                                        } else {
                                            v0_60 = Integer.valueOf(v0_49.getId());
                                        }
                                        v1_122.zza("Property filter already evaluated true and it is not associated with an enhanced audience. audience ID, filter ID", v3_83, v0_60);
                                        v69_1 = v11_13;
                                        v3_67 = v17_17;
                                        v0_47 = v18_4;
                                        v15_6 = v37_1;
                                        v12_22 = v44_3;
                                        v1_97 = v67_1;
                                    }
                                }
                                v3_67 = v17_17;
                                v0_47 = v18_4;
                                v15_6 = v37_1;
                                v9_10 = v43_3;
                                v12_22 = v44_3;
                                v69_1 = v48_1;
                                v1_97 = v67_1;
                            } else {
                                boolean v8_88;
                                String v43_4 = v9_10;
                                long v48_2 = v11_13;
                                int v1_124 = this.zzab().zzgn();
                                String v6_38 = com.google.android.gms.measurement.internal.zzef.zzam(p72);
                                if (!v0_49.zzkb()) {
                                    v8_88 = 0;
                                } else {
                                    v8_88 = Integer.valueOf(v0_49.getId());
                                }
                                v1_124.zza("Invalid property filter ID. appId, id", v6_38, String.valueOf(v8_88));
                                v14_3.add(Integer.valueOf(v5_34));
                                v1_76 = v73_3;
                                v46_2 = v4_29;
                                v47_2 = v7_12;
                                v0_16 = v16_6;
                                v3_67 = v17_17;
                                v15_6 = v37_1;
                                v68_1 = v43_4;
                                v24_8 = v44_3;
                                v69_1 = v48_2;
                            }
                            v4_28 = v74_4;
                        }
                        String v11 = p72;
                        v67_1 = v1_97;
                        v46_2 = v4_29;
                        v47_2 = v7_12;
                        v68_1 = v9_10;
                        v24_8 = v12_22;
                        v0_16 = v16_6;
                        v1_76 = v73_3;
                    } else {
                        this.zzab().zzgs().zza(v15_6, Integer.valueOf(v5_34));
                    }
                }
                v11_10 = p72;
            }
        }
        int v44_2 = v24_8;
        int v4_11 = v46_2;
        long v7_2 = v47_2;
        String v43_2 = v68_1;
        int v1_80 = new java.util.ArrayList();
        long v2_65 = v7_2.keySet().iterator();
        while (v2_65.hasNext()) {
            String v47_3;
            int v0_22 = ((Integer) v2_65.next()).intValue();
            if (v14_3.contains(Integer.valueOf(v0_22))) {
                v47_3 = v7_2;
                String v3 = this;
            } else {
                String v5_25;
                String v5_22 = ((com.google.android.gms.internal.measurement.zzbs$zza) v4_11.get(Integer.valueOf(v0_22)));
                if (v5_22 != null) {
                    v5_25 = ((com.google.android.gms.internal.measurement.zzbs$zza$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v5_22.zzuj()));
                } else {
                    v5_25 = com.google.android.gms.internal.measurement.zzbs$zza.zzmc();
                }
                Integer v10_11;
                String v11_12;
                com.google.android.gms.internal.measurement.zzbs$zzj$zza v73_1;
                v5_25.zzi(v0_22);
                boolean v9_9 = v43_2;
                String v6_22 = com.google.android.gms.internal.measurement.zzbs$zzi.zzqh().zzo(com.google.android.gms.measurement.internal.zzjo.zza(((java.util.BitSet) v7_2.get(Integer.valueOf(v0_22))))).zzn(com.google.android.gms.measurement.internal.zzjo.zza(((java.util.BitSet) v9_9.get(Integer.valueOf(v0_22)))));
                if (!v25) {
                    v73_1 = v2_65;
                    v47_3 = v7_2;
                    v10_11 = v44_2;
                    v11_12 = v67_1;
                } else {
                    android.support.v4.util.ArrayMap v12_8;
                    v10_11 = v44_2;
                    v6_22.zzp(com.google.android.gms.measurement.internal.zzp.zza(((java.util.Map) v10_11.get(Integer.valueOf(v0_22)))));
                    v11_12 = v67_1;
                    boolean v8_58 = ((java.util.Map) v11_12.get(Integer.valueOf(v0_22)));
                    if (v8_58) {
                        v12_8 = new java.util.ArrayList(v8_58.size());
                        java.util.ArrayList v13_8 = v8_58.keySet().iterator();
                        while (v13_8.hasNext()) {
                            String v15_9 = ((Integer) v13_8.next());
                            com.google.android.gms.internal.measurement.zzbs$zzj$zza v73_2 = v2_65;
                            long v2_74 = com.google.android.gms.internal.measurement.zzbs$zzj.zzqo().zzal(v15_9.intValue());
                            String v3_51 = ((java.util.List) v8_58.get(v15_9));
                            if (v3_51 != null) {
                                java.util.Collections.sort(v3_51);
                                String v3_52 = v3_51.iterator();
                                while (v3_52.hasNext()) {
                                    String v47_5 = v7_2;
                                    com.google.android.gms.measurement.internal.zzp v74_2 = v8_58;
                                    v2_74.zzbj(((Long) v3_52.next()).longValue());
                                    v8_58 = v74_2;
                                    v7_2 = v47_5;
                                }
                            }
                            String v47_4 = v7_2;
                            com.google.android.gms.measurement.internal.zzp v74_1 = v8_58;
                            v12_8.add(((com.google.android.gms.internal.measurement.zzbs$zzj) ((com.google.android.gms.internal.measurement.zzey) v2_74.zzug())));
                            v2_65 = v73_2;
                            v8_58 = v74_1;
                            v7_2 = v47_4;
                        }
                        v73_1 = v2_65;
                        v47_3 = v7_2;
                    } else {
                        v73_1 = v2_65;
                        v47_3 = v7_2;
                        v12_8 = java.util.Collections.emptyList();
                    }
                    if ((v26) && (v5_25.zzlw())) {
                        long v2_80 = v5_25.zzlx().zzqe();
                        if (!v2_80.isEmpty()) {
                            String v3_55 = new java.util.ArrayList(v12_8);
                            long v7_5 = new android.support.v4.util.ArrayMap();
                            long v2_81 = v2_80.iterator();
                            while (v2_81.hasNext()) {
                                boolean v8_78 = ((com.google.android.gms.internal.measurement.zzbs$zzj) v2_81.next());
                                if ((v8_78.zzme()) && (v8_78.zzql() > 0)) {
                                    v7_5.put(Integer.valueOf(v8_78.getIndex()), Long.valueOf(v8_78.zzai((v8_78.zzql() - 1))));
                                }
                            }
                            long v2_82 = 0;
                            while (v2_82 < v3_55.size()) {
                                android.support.v4.util.ArrayMap v12_12;
                                boolean v8_68 = ((com.google.android.gms.internal.measurement.zzbs$zzj) v3_55.get(v2_82));
                                if (!v8_68.zzme()) {
                                    v12_12 = 0;
                                } else {
                                    v12_12 = Integer.valueOf(v8_68.getIndex());
                                }
                                android.support.v4.util.ArrayMap v12_15 = ((Long) v7_5.remove(v12_12));
                                if (v12_15 != null) {
                                    java.util.ArrayList v13_11 = new java.util.ArrayList();
                                    if (v12_15.longValue() < v8_68.zzai(0)) {
                                        v13_11.add(v12_15);
                                    }
                                    v13_11.addAll(v8_68.zzqk());
                                    v3_55.set(v2_82, ((com.google.android.gms.internal.measurement.zzbs$zzj) ((com.google.android.gms.internal.measurement.zzey) ((com.google.android.gms.internal.measurement.zzbs$zzj$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v8_68.zzuj())).zzqw().zzr(v13_11).zzug())));
                                }
                                v2_82++;
                            }
                            long v2_84 = v7_5.keySet().iterator();
                            while (v2_84.hasNext()) {
                                boolean v8_64 = ((Integer) v2_84.next());
                                com.google.android.gms.measurement.internal.zzp v74_3 = v7_5;
                                v3_55.add(((com.google.android.gms.internal.measurement.zzbs$zzj) ((com.google.android.gms.internal.measurement.zzey) com.google.android.gms.internal.measurement.zzbs$zzj.zzqo().zzal(v8_64.intValue()).zzbj(((Long) v7_5.get(v8_64)).longValue()).zzug())));
                                v7_5 = v74_3;
                            }
                            v12_8 = v3_55;
                        }
                    }
                    v6_22.zzq(v12_8);
                }
                v5_25.zza(v6_22);
                v4_11.put(Integer.valueOf(v0_22), ((com.google.android.gms.internal.measurement.zzbs$zza) ((com.google.android.gms.internal.measurement.zzey) v5_25.zzug())));
                v1_80.add(((com.google.android.gms.internal.measurement.zzbs$zza) ((com.google.android.gms.internal.measurement.zzey) v5_25.zzug())));
                long v2_89 = this.zzgy();
                String v3_59 = v5_25.zzlv();
                v2_89.zzbi();
                v2_89.zzo();
                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p72);
                com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_59);
                String v3_60 = v3_59.toByteArray();
                String v5_27 = new android.content.ContentValues();
                v5_27.put("app_id", p72);
                v5_27.put("audience_id", Integer.valueOf(v0_22));
                v5_27.put("current_results", v3_60);
                try {
                    try {
                        if (v2_89.getWritableDatabase().insertWithOnConflict("audience_filter_values", 0, v5_27, 5) != -1) {
                            v2_65 = v73_1;
                            v43_2 = v9_9;
                            v44_2 = v10_11;
                            v67_1 = v11_12;
                        } else {
                            v2_89.zzab().zzgk().zza("Failed to insert filter results (got -1). appId", com.google.android.gms.measurement.internal.zzef.zzam(p72));
                        }
                    } catch (int v0_30) {
                        v2_89.zzab().zzgk().zza("Error storing filter results. appId", com.google.android.gms.measurement.internal.zzef.zzam(p72), v0_30);
                    }
                } catch (int v0_30) {
                }
            }
            v7_2 = v47_3;
        }
        return v1_80;
    }

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


    private final boolean zzd(String p63, long p64)
    {
        this.zzgy().beginTransaction();
        try {
            String v3_7 = 0;
            String v2_7 = new com.google.android.gms.measurement.internal.zzjg$zza(this, 0);
            int v4_184 = this.zzgy();
            com.google.android.gms.measurement.internal.zzx v5_103 = this.zztj;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_7);
            v4_184.zzo();
            v4_184.zzbi();
            try {
                String v7_2;
                int v23;
                String v15_7 = v4_184.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        Boolean v13_20;
                        String v3_9 = v5_103 cmp -1;
                        if (v3_9 == null) {
                            v13_20 = new String[] {0});
                        } else {
                            String v7_30 = new String[2];
                            v7_30[0] = 0;
                            v7_30[1] = String.valueOf(v5_103);
                            v13_20 = v7_30;
                        }
                        String v3_16;
                        if (v3_9 == null) {
                            v3_16 = "";
                        } else {
                            v3_16 = " and rowid <= ?";
                        }
                        int v14_34 = new StringBuilder((v3_16.length() + 84));
                        v14_34.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_34.append(v3_16);
                        v14_34.append(" order by rowid limit 1;");
                        v3_7 = v15_7.rawQuery(v14_34.toString(), v13_20);
                        if (v3_7.moveToFirst()) {
                            Boolean v13_24 = v3_7.getString(0);
                            v3_7.close();
                            v23 = v3_7;
                            v7_2 = v13_24;
                            v3_7 = 0;
                            try {
                                Boolean v13_3 = new String[2];
                                v13_3[0] = v3_7;
                                v13_3[1] = v7_2;
                                int v25_1 = v15_7;
                                String v15_3 = v15_7.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_3, 0, 0, "rowid", "2");
                                try {
                                    if (v15_3.moveToFirst()) {
                                        try {
                                            Boolean v13_10 = com.google.android.gms.internal.measurement.zzbs$zzg.zzd(v15_3.getBlob(0), com.google.android.gms.internal.measurement.zzel.zztq());
                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                            long v6_27 = v15_3;
                                            v4_184.zzab().zzgk().zza("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7), v0_3);
                                            if (v6_27 == 0) {
                                                String v3_14;
                                                if (v2_7.zztp == null) {
                                                    v3_14 = 1;
                                                } else {
                                                    if (!v2_7.zztp.isEmpty()) {
                                                        v3_14 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_14 != null) {
                                                    this.zzgy().setTransactionSuccessful();
                                                    this.zzgy().endTransaction();
                                                    return 0;
                                                } else {
                                                    String v3_8 = ((com.google.android.gms.internal.measurement.zzbs$zzg$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v2_7.zztn.zzuj())).zznn();
                                                    int v4_116 = this.zzj.zzad().zze(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zzii);
                                                    String v7_25 = 0;
                                                    int v12_19 = 0;
                                                    String v15_4 = 0;
                                                    int v8_16 = -1;
                                                    com.google.android.gms.measurement.internal.zzae v9_37 = -1;
                                                    Boolean v13_11 = 0;
                                                    Object v18_2 = 0;
                                                    String v19_2 = 0;
                                                    while(true) {
                                                        int v21_1 = v12_19;
                                                        long v26_1 = v13_11;
                                                        if (v7_25 >= v2_7.zztp.size()) {
                                                            break;
                                                        }
                                                        com.google.android.gms.measurement.internal.zzae v9_36;
                                                        long v6_31;
                                                        String v31_0;
                                                        Long v11_14 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) ((com.google.android.gms.internal.measurement.zzbs$zzc) v2_7.zztp.get(v7_25)).zzuj()));
                                                        if (!this.zzgz().zzk(v2_7.zztn.zzag(), v11_14.getName())) {
                                                            String v7_15;
                                                            long v33_0;
                                                            com.google.android.gms.measurement.internal.zzae v9_26;
                                                            int v25_0;
                                                            String v32_0;
                                                            com.google.android.gms.measurement.internal.zzae v30_0;
                                                            long v10_30 = this.zzgz().zzl(v2_7.zztn.zzag(), v11_14.getName());
                                                            if (v10_30 != 0) {
                                                                v30_0 = v7_25;
                                                                v25_0 = v15_4;
                                                                v31_0 = v4_116;
                                                                String v7_16 = 0;
                                                                int v14_9 = 0;
                                                                String v15_1 = 0;
                                                                while(true) {
                                                                    v32_0 = v8_16;
                                                                    if (v7_16 >= v11_14.zzmk()) {
                                                                        break;
                                                                    }
                                                                    long v33_1;
                                                                    if (!"_c".equals(v11_14.zzl(v7_16).getName())) {
                                                                        v33_1 = v9_37;
                                                                        if ("_r".equals(v11_14.zzl(v7_16).getName())) {
                                                                            v11_14.zza(v7_16, ((com.google.android.gms.internal.measurement.zzbs$zze) ((com.google.android.gms.internal.measurement.zzey) ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v11_14.zzl(v7_16).zzuj())).zzam(1).zzug())));
                                                                            v15_1 = 1;
                                                                        }
                                                                    } else {
                                                                        v33_1 = v9_37;
                                                                        v11_14.zza(v7_16, ((com.google.android.gms.internal.measurement.zzbs$zze) ((com.google.android.gms.internal.measurement.zzey) ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v11_14.zzl(v7_16).zzuj())).zzam(1).zzug())));
                                                                        v14_9 = 1;
                                                                    }
                                                                    v7_16++;
                                                                    v8_16 = v32_0;
                                                                    v9_37 = v33_1;
                                                                }
                                                                v33_0 = v9_37;
                                                                if ((v14_9 != 0) || (v10_30 == 0)) {
                                                                    v7_15 = "_et";
                                                                    v9_26 = "_e";
                                                                } else {
                                                                    this.zzj.zzab().zzgs().zza("Marking event as conversion", this.zzj.zzy().zzaj(v11_14.getName()));
                                                                    v7_15 = "_et";
                                                                    v9_26 = "_e";
                                                                    v11_14.zza(com.google.android.gms.internal.measurement.zzbs$zze.zzng().zzbz("_c").zzam(1));
                                                                }
                                                                if (v15_1 == null) {
                                                                    this.zzj.zzab().zzgs().zza("Marking event as real-time", this.zzj.zzy().zzaj(v11_14.getName()));
                                                                    v11_14.zza(com.google.android.gms.internal.measurement.zzbs$zze.zzng().zzbz("_r").zzam(1));
                                                                }
                                                                if (this.zzgy().zza(this.zzjk(), v2_7.zztn.zzag(), 0, 0, 0, 0, 1).zzej <= ((long) this.zzj.zzad().zzi(v2_7.zztn.zzag()))) {
                                                                    v21_1 = 1;
                                                                } else {
                                                                    com.google.android.gms.measurement.internal.zzjg.zza(v11_14, "_r");
                                                                }
                                                                if ((com.google.android.gms.measurement.internal.zzjs.zzbk(v11_14.getName())) && ((v10_30 != 0) && (this.zzgy().zza(this.zzjk(), v2_7.zztn.zzag(), 0, 0, 1, 0, 0).zzeh > ((long) this.zzj.zzad().zzb(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zzgs))))) {
                                                                    this.zzj.zzab().zzgn().zza("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                    int v4_27 = 0;
                                                                    com.google.android.gms.measurement.internal.zzx v5_6 = 0;
                                                                    long v6_22 = 0;
                                                                    int v8_10 = -1;
                                                                    while (v4_27 < v11_14.zzmk()) {
                                                                        int v14_27 = v11_14.zzl(v4_27);
                                                                        if (!"_c".equals(v14_27.getName())) {
                                                                            if ("_err".equals(v14_27.getName())) {
                                                                                v5_6 = 1;
                                                                            }
                                                                        } else {
                                                                            v6_22 = ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v14_27.zzuj()));
                                                                            v8_10 = v4_27;
                                                                        }
                                                                        v4_27++;
                                                                    }
                                                                    if ((v5_6 == null) || (v6_22 == 0)) {
                                                                        if (v6_22 == 0) {
                                                                            this.zzj.zzab().zzgk().zza("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                        } else {
                                                                            v11_14.zza(v8_10, ((com.google.android.gms.internal.measurement.zzbs$zze) ((com.google.android.gms.internal.measurement.zzey) ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v6_22.clone())).zzbz("_err").zzam(10).zzug())));
                                                                        }
                                                                    } else {
                                                                        v11_14.zzm(v8_10);
                                                                    }
                                                                }
                                                            } else {
                                                                String v7_7;
                                                                this.zzgw();
                                                                int v14_6 = v11_14.getName();
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v14_6);
                                                                v25_0 = v15_4;
                                                                String v15_0 = v14_6.hashCode();
                                                                v30_0 = v7_25;
                                                                if (v15_0 == 94660) {
                                                                    if (!v14_6.equals("_in")) {
                                                                        v7_7 = -1;
                                                                    } else {
                                                                        v7_7 = 0;
                                                                    }
                                                                } else {
                                                                    if (v15_0 == 95025) {
                                                                        if (!v14_6.equals("_ug")) {
                                                                        } else {
                                                                            v7_7 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v15_0 == 95027) {
                                                                            if (!v14_6.equals("_ui")) {
                                                                            } else {
                                                                                v7_7 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                if ((v7_7 == null) || ((v7_7 == 1) || (v7_7 == 2))) {
                                                                    String v7_14 = 1;
                                                                } else {
                                                                    v7_14 = 0;
                                                                }
                                                                if (v7_14 == null) {
                                                                    v31_0 = v4_116;
                                                                    v7_15 = "_et";
                                                                    v32_0 = v8_16;
                                                                    v33_0 = v9_37;
                                                                    v9_26 = "_e";
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzj.zzad().zzs(v2_7.zztn.zzag())) || (v10_30 == 0)) {
                                                            } else {
                                                                int v4_43 = new java.util.ArrayList(v11_14.zzmj());
                                                                com.google.android.gms.measurement.internal.zzx v5_12 = 0;
                                                                long v6_26 = -1;
                                                                int v8_11 = -1;
                                                                while (v5_12 < v4_43.size()) {
                                                                    if (!"value".equals(((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v5_12)).getName())) {
                                                                        if ("currency".equals(((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v5_12)).getName())) {
                                                                            v8_11 = v5_12;
                                                                        }
                                                                    } else {
                                                                        v6_26 = v5_12;
                                                                    }
                                                                    v5_12++;
                                                                }
                                                                if (v6_26 == -1) {
                                                                } else {
                                                                    if ((((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v6_26)).zzna()) || (((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v6_26)).zznd())) {
                                                                        int v4_47;
                                                                        if (v8_11 != -1) {
                                                                            int v4_46 = ((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v8_11)).zzmy();
                                                                            if (v4_46.length() == 3) {
                                                                                int v8_13 = 0;
                                                                                while (v8_13 < v4_46.length()) {
                                                                                    int v12_8 = v4_46.codePointAt(v8_13);
                                                                                    if (Character.isLetter(v12_8)) {
                                                                                        v8_13 += Character.charCount(v12_8);
                                                                                    } else {
                                                                                    }
                                                                                }
                                                                                v4_47 = 0;
                                                                                if (v4_47 != 0) {
                                                                                    this.zzj.zzab().zzgp().zzao("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                    v11_14.zzm(v6_26);
                                                                                    com.google.android.gms.measurement.internal.zzjg.zza(v11_14, "_c");
                                                                                    com.google.android.gms.measurement.internal.zzjg.zza(v11_14, 19, "currency");
                                                                                }
                                                                                if (!this.zzj.zzad().zze(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zzih)) {
                                                                                    v8_16 = v32_0;
                                                                                    v6_31 = v33_0;
                                                                                } else {
                                                                                    if (!v9_26.equals(v11_14.getName())) {
                                                                                        v6_31 = v33_0;
                                                                                        if ("_vs".equals(v11_14.getName())) {
                                                                                            this.zzgw();
                                                                                            if (com.google.android.gms.measurement.internal.zzjo.zza(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())), v7_15) == null) {
                                                                                                if ((v18_2 != null) && (Math.abs((v18_2.getTimestampMillis() - v11_14.getTimestampMillis())) <= 1000)) {
                                                                                                    int v4_70 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v18_2.clone()));
                                                                                                    if (this.zza(v4_70, v11_14)) {
                                                                                                        v8_16 = v32_0;
                                                                                                        v3_8.zza(v8_16, v4_70);
                                                                                                        v18_2 = 0;
                                                                                                        v19_2 = 0;
                                                                                                        if ((v31_0 != null) || (!v9_26.equals(v11_14.getName()))) {
                                                                                                            v13_11 = v26_1;
                                                                                                        } else {
                                                                                                            if (v11_14.zzmk() != 0) {
                                                                                                                this.zzgw();
                                                                                                                int v4_86 = ((Long) com.google.android.gms.measurement.internal.zzjo.zzb(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())), v7_15));
                                                                                                                if (v4_86 != 0) {
                                                                                                                    v13_11 = (v26_1 + v4_86.longValue());
                                                                                                                } else {
                                                                                                                    this.zzj.zzab().zzgn().zza("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                                                                }
                                                                                                            } else {
                                                                                                                this.zzj.zzab().zzgn().zza("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                                                            }
                                                                                                        }
                                                                                                        v9_36 = v30_0;
                                                                                                        v2_7.zztp.set(v9_36, ((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())));
                                                                                                        v15_4 = (v25_0 + 1);
                                                                                                        v3_8.zza(v11_14);
                                                                                                        v12_19 = v21_1;
                                                                                                        v7_25 = (v9_36 + 1);
                                                                                                        v9_37 = v6_31;
                                                                                                        v4_116 = v31_0;
                                                                                                    }
                                                                                                }
                                                                                                v8_16 = v32_0;
                                                                                                v19_2 = v11_14;
                                                                                                v6_31 = v25_0;
                                                                                            }
                                                                                        }
                                                                                    } else {
                                                                                        this.zzgw();
                                                                                        if (com.google.android.gms.measurement.internal.zzjo.zza(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())), "_fr") != null) {
                                                                                            v6_31 = v33_0;
                                                                                        } else {
                                                                                            if ((v19_2 != null) && (Math.abs((v19_2.getTimestampMillis() - v11_14.getTimestampMillis())) <= 1000)) {
                                                                                                int v4_78 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v19_2.clone()));
                                                                                                if (this.zza(v11_14, v4_78)) {
                                                                                                    v6_31 = v33_0;
                                                                                                    v3_8.zza(v6_31, v4_78);
                                                                                                    v8_16 = v32_0;
                                                                                                }
                                                                                            }
                                                                                            v6_31 = v33_0;
                                                                                            v18_2 = v11_14;
                                                                                            v8_16 = v25_0;
                                                                                        }
                                                                                    }
                                                                                    v8_16 = v32_0;
                                                                                }
                                                                            }
                                                                            v4_47 = 1;
                                                                        } else {
                                                                            v4_47 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzj.zzab().zzgp().zzao("Value must be specified with a numeric type.");
                                                                        v11_14.zzm(v6_26);
                                                                        com.google.android.gms.measurement.internal.zzjg.zza(v11_14, "_c");
                                                                        com.google.android.gms.measurement.internal.zzjg.zza(v11_14, 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            com.google.android.gms.measurement.internal.zzx v5_32;
                                                            this.zzj.zzab().zzgn().zza("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()), this.zzj.zzy().zzaj(v11_14.getName()));
                                                            if (this.zzgz().zzbc(v2_7.zztn.zzag())) {
                                                                v5_32 = 1;
                                                            } else {
                                                                if (!this.zzgz().zzbd(v2_7.zztn.zzag())) {
                                                                    v5_32 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_32 == null) && (!"_err".equals(v11_14.getName()))) {
                                                                this.zzj.zzz().zza(v2_7.zztn.zzag(), 11, "_ev", v11_14.getName(), 0);
                                                            }
                                                            v31_0 = v4_116;
                                                            v6_31 = v9_37;
                                                            v12_19 = v21_1;
                                                            v13_11 = v26_1;
                                                            long v10 = 3;
                                                            v9_36 = v7_25;
                                                        }
                                                    }
                                                    Boolean v13_2;
                                                    if (v4_116 == 0) {
                                                        v13_2 = v26_1;
                                                    } else {
                                                        com.google.android.gms.measurement.internal.zzx v5_1 = v15_4;
                                                        v13_2 = v26_1;
                                                        int v4_0 = 0;
                                                        while (v4_0 < v5_1) {
                                                            long v6_6 = v3_8.zzq(v4_0);
                                                            if (!"_e".equals(v6_6.getName())) {
                                                                this.zzgw();
                                                                long v6_7 = com.google.android.gms.measurement.internal.zzjo.zza(v6_6, "_et");
                                                                if (v6_7 != 0) {
                                                                    long v6_8;
                                                                    if (!v6_7.zzna()) {
                                                                        v6_8 = 0;
                                                                    } else {
                                                                        v6_8 = Long.valueOf(v6_7.zznb());
                                                                    }
                                                                    if ((v6_8 != 0) && (v6_8.longValue() > 0)) {
                                                                        v13_2 += v6_8.longValue();
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzgw();
                                                                if (com.google.android.gms.measurement.internal.zzjo.zza(v6_6, "_fr") == null) {
                                                                } else {
                                                                    v3_8.zzr(v4_0);
                                                                    v5_1--;
                                                                    v4_0--;
                                                                }
                                                            }
                                                            v4_0++;
                                                        }
                                                    }
                                                    Object v1_0 = this.zza(v3_8, v13_2, 0);
                                                    if (!v1_0.zzj.zzad().zze(v3_8.zzag(), com.google.android.gms.measurement.internal.zzak.zzja)) {
                                                        if (v1_0.zzj.zzad().zze(v3_8.zzag(), com.google.android.gms.measurement.internal.zzak.zzjb)) {
                                                            this.zzgy().zzd(v3_8.zzag(), "_se");
                                                        }
                                                    } else {
                                                        int v4_130 = v3_8.zznl().iterator();
                                                        while (v4_130.hasNext()) {
                                                            if ("_s".equals(((com.google.android.gms.internal.measurement.zzbs$zzc) v4_130.next()).getName())) {
                                                                int v4_131 = 1;
                                                            }
                                                            if (v4_131 != 0) {
                                                                this.zzgy().zzd(v3_8.zzag(), "_se");
                                                            }
                                                            v1_0 = v1_0.zza(v3_8, v13_2, 1);
                                                        }
                                                        v4_131 = 0;
                                                    }
                                                    if (v1_0.zzj.zzad().zze(v3_8.zzag(), com.google.android.gms.measurement.internal.zzak.zzij)) {
                                                        int v4_137 = this.zzgw();
                                                        v4_137.zzab().zzgs().zzao("Checking account type status for ad personalization signals");
                                                        if (v4_137.zzgz().zzba(v3_8.zzag())) {
                                                            com.google.android.gms.measurement.internal.zzx v5_60 = v4_137.zzgy().zzab(v3_8.zzag());
                                                            if ((v5_60 != null) && ((v5_60.zzbe()) && (v4_137.zzw().zzcu()))) {
                                                                v4_137.zzab().zzgr().zzao("Turning off ad personalization due to account type");
                                                                int v4_143 = ((com.google.android.gms.internal.measurement.zzbs$zzk) ((com.google.android.gms.internal.measurement.zzey) com.google.android.gms.internal.measurement.zzbs$zzk.zzqu().zzdb("_npa").zzbk(v4_137.zzw().zzcs()).zzbl(1).zzug()));
                                                                com.google.android.gms.measurement.internal.zzx v5_69 = 0;
                                                                while (v5_69 < v3_8.zznp()) {
                                                                    if (!"_npa".equals(v3_8.zzs(v5_69).getName())) {
                                                                        v5_69++;
                                                                    } else {
                                                                        v3_8.zza(v5_69, v4_143);
                                                                        com.google.android.gms.measurement.internal.zzx v5_70 = 1;
                                                                    }
                                                                    if (v5_70 == null) {
                                                                        v3_8.zza(v4_143);
                                                                    }
                                                                }
                                                                v5_70 = 0;
                                                            }
                                                        }
                                                    }
                                                    Object v1_19;
                                                    String v3_22;
                                                    int v4_144 = v3_8.zznv();
                                                    com.google.android.gms.measurement.internal.zzx v5_71 = v3_8.zzag();
                                                    long v6_71 = v3_8.zzno();
                                                    String v7_41 = v3_8.zznl();
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v5_71);
                                                    v4_144.zzc(this.zzgx().zza(v5_71, v7_41, v6_71));
                                                    try {
                                                        if (!v1_0.zzj.zzad().zzm(v2_7.zztn.zzag())) {
                                                            v1_19 = v3_8;
                                                            v3_22 = v2_7;
                                                        } else {
                                                            int v4_149 = new java.util.HashMap();
                                                            com.google.android.gms.measurement.internal.zzx v5_76 = new java.util.ArrayList();
                                                            long v6_5 = v1_0.zzj.zzz().zzjw();
                                                            String v7_3 = 0;
                                                            while (v7_3 < v3_8.zznm()) {
                                                                long v63_0;
                                                                String v2_5;
                                                                Object v1_13;
                                                                String v3_3;
                                                                int v8_27 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v3_8.zzq(v7_3).zzuj()));
                                                                if (!v8_27.getName().equals("_ep")) {
                                                                    com.google.android.gms.measurement.internal.zzae v9_61;
                                                                    Long v11_21 = this.zzgz().zzbb(v2_7.zztn.zzag());
                                                                    v1_0.zzj.zzz();
                                                                    Boolean v13_28 = com.google.android.gms.measurement.internal.zzjs.zzc(v8_27.getTimestampMillis(), v11_21);
                                                                    com.google.android.gms.measurement.internal.zzae v9_47 = ((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug()));
                                                                    long v26_2 = v11_21;
                                                                    Long v11_22 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v11_22 != null)) {
                                                                        com.google.android.gms.measurement.internal.zzae v9_49 = v9_47.zzmj().iterator();
                                                                        while (v9_49.hasNext()) {
                                                                            int v12_37 = ((com.google.android.gms.internal.measurement.zzbs$zze) v9_49.next());
                                                                            if (!"_dbg".equals(v12_37.getName())) {
                                                                            } else {
                                                                                if (((!(v11_22 instanceof Long)) || (!v11_22.equals(Long.valueOf(v12_37.zznb())))) && (((!(v11_22 instanceof String)) || (!v11_22.equals(v12_37.zzmy()))) && ((!(v11_22 instanceof Double)) || (!v11_22.equals(Double.valueOf(v12_37.zzne())))))) {
                                                                                    break;
                                                                                }
                                                                                v9_61 = 1;
                                                                            }
                                                                        }
                                                                        v9_61 = 0;
                                                                    }
                                                                    int v12_38;
                                                                    if (v9_61 != null) {
                                                                        v12_38 = 1;
                                                                    } else {
                                                                        v12_38 = this.zzgz().zzm(v2_7.zztn.zzag(), v8_27.getName());
                                                                    }
                                                                    if (v12_38 > 0) {
                                                                        Object v18_7;
                                                                        com.google.android.gms.measurement.internal.zzae v9_1 = ((com.google.android.gms.measurement.internal.zzae) v4_149.get(v8_27.getName()));
                                                                        if (v9_1 != null) {
                                                                            v18_7 = v13_28;
                                                                        } else {
                                                                            v9_1 = this.zzgy().zzc(v2_7.zztn.zzag(), v8_27.getName());
                                                                            if (v9_1 != null) {
                                                                            } else {
                                                                                v18_7 = v13_28;
                                                                                v1_0.zzj.zzab().zzgn().zza("Event being bundled has no eventAggregate. appId, eventName", v2_7.zztn.zzag(), v8_27.getName());
                                                                                if (!v1_0.zzj.zzad().zze(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zziz)) {
                                                                                    v9_1 = new com.google.android.gms.measurement.internal.zzae;
                                                                                    v9_1(v2_7.zztn.zzag(), v8_27.getName(), 1, 1, v8_27.getTimestampMillis(), 0, 0, 0, 0, 0);
                                                                                } else {
                                                                                    v9_1 = new com.google.android.gms.measurement.internal.zzae;
                                                                                    v9_1(v2_7.zztn.zzag(), v8_27.getName(), 1, 1, 1, v8_27.getTimestampMillis(), 0, 0, 0, 0, 0);
                                                                                }
                                                                            }
                                                                        }
                                                                        Boolean v13_32;
                                                                        this.zzgw();
                                                                        Long v11_36 = ((Long) com.google.android.gms.measurement.internal.zzjo.zzb(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())), "_eid"));
                                                                        if (v11_36 == null) {
                                                                            v13_32 = 0;
                                                                        } else {
                                                                            v13_32 = 1;
                                                                        }
                                                                        Boolean v13_33 = Boolean.valueOf(v13_32);
                                                                        if (v12_38 != 1) {
                                                                            if (v6_5.nextInt(v12_38) != 0) {
                                                                                v63_0 = v6_5;
                                                                                int v14_38 = v18_7;
                                                                                Object v1_6;
                                                                                String v19_0;
                                                                                Object v18_8 = v3_8;
                                                                                if (!v1_0.zzj.zzad().zzu(v2_7.zztn.zzag())) {
                                                                                    v3_3 = v2_7;
                                                                                    v19_0 = v7_3;
                                                                                    if (Math.abs((v8_27.getTimestampMillis() - v9_1.zzfk)) < 86400000) {
                                                                                        v1_6 = 0;
                                                                                    } else {
                                                                                        v1_6 = 1;
                                                                                    }
                                                                                } else {
                                                                                    long v26_0;
                                                                                    if (v9_1.zzfl == null) {
                                                                                        v1_0.zzj.zzz();
                                                                                        v3_3 = v2_7;
                                                                                        v19_0 = v7_3;
                                                                                        v26_0 = com.google.android.gms.measurement.internal.zzjs.zzc(v8_27.zzmm(), v26_2);
                                                                                    } else {
                                                                                        v26_0 = v9_1.zzfl.longValue();
                                                                                        v3_3 = v2_7;
                                                                                        v19_0 = v7_3;
                                                                                    }
                                                                                    if (v26_0 == v14_38) {
                                                                                    }
                                                                                }
                                                                                if (v1_6 == null) {
                                                                                    if (v13_33.booleanValue()) {
                                                                                        v4_149.put(v8_27.getName(), v9_1.zza(v11_36, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzgw();
                                                                                    com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_efs", Long.valueOf(1));
                                                                                    this.zzgw();
                                                                                    Object v1_10 = ((long) v12_38);
                                                                                    com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_sr", Long.valueOf(v1_10));
                                                                                    v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                                    if (v13_33.booleanValue()) {
                                                                                        v9_1 = v9_1.zza(0, Long.valueOf(v1_10), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_149.put(v8_27.getName(), v9_1.zza(v8_27.getTimestampMillis(), v14_38));
                                                                                }
                                                                                v1_13 = v18_8;
                                                                                v2_5 = v19_0;
                                                                            } else {
                                                                                this.zzgw();
                                                                                Long v11_1 = ((long) v12_38);
                                                                                com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_sr", Long.valueOf(v11_1));
                                                                                v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                                if (v13_33.booleanValue()) {
                                                                                    v9_1 = v9_1.zza(0, Long.valueOf(v11_1), 0);
                                                                                }
                                                                                v4_149.put(v8_27.getName(), v9_1.zza(v8_27.getTimestampMillis(), v18_7));
                                                                                v1_13 = v3_8;
                                                                                v63_0 = v6_5;
                                                                                v3_3 = v2_7;
                                                                                v2_5 = v7_3;
                                                                            }
                                                                            v1_13.zza(v2_5, v8_27);
                                                                        } else {
                                                                            v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                            if ((v13_33.booleanValue()) && ((v9_1.zzfm != null) || ((v9_1.zzfn != null) || (v9_1.zzfo != null)))) {
                                                                                v4_149.put(v8_27.getName(), v9_1.zza(0, 0, 0));
                                                                            }
                                                                            v3_8.zza(v7_3, v8_27);
                                                                            v1_13 = v3_8;
                                                                            v63_0 = v6_5;
                                                                            v3_3 = v2_7;
                                                                            v2_5 = v7_3;
                                                                        }
                                                                    } else {
                                                                        v1_0.zzj.zzab().zzgn().zza("Sample rate must be positive. event, rate", v8_27.getName(), Integer.valueOf(v12_38));
                                                                        v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                        v3_8.zza(v7_3, v8_27);
                                                                    }
                                                                } else {
                                                                    this.zzgw();
                                                                    com.google.android.gms.measurement.internal.zzae v9_14 = ((String) com.google.android.gms.measurement.internal.zzjo.zzb(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())), "_en"));
                                                                    Long v11_7 = ((com.google.android.gms.measurement.internal.zzae) v4_149.get(v9_14));
                                                                    if (v11_7 == null) {
                                                                        v11_7 = this.zzgy().zzc(v2_7.zztn.zzag(), v9_14);
                                                                        v4_149.put(v9_14, v11_7);
                                                                    }
                                                                    if (v11_7.zzfm == null) {
                                                                        if (v11_7.zzfn.longValue() > 1) {
                                                                            this.zzgw();
                                                                            com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_sr", v11_7.zzfn);
                                                                        }
                                                                        if ((v11_7.zzfo != null) && (v11_7.zzfo.booleanValue())) {
                                                                            this.zzgw();
                                                                            com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_efs", Long.valueOf(1));
                                                                        }
                                                                        v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                    }
                                                                    v3_8.zza(v7_3, v8_27);
                                                                }
                                                                v6_5 = v63_0;
                                                                v7_3 = (v2_5 + 1);
                                                                v2_7 = v3_3;
                                                                v3_8 = v1_13;
                                                                v1_0 = this;
                                                            }
                                                            v1_19 = v3_8;
                                                            v3_22 = v2_7;
                                                            if (v5_76.size() < v1_19.zznm()) {
                                                                v1_19.zznn().zza(v5_76);
                                                            }
                                                            String v2_14 = v4_149.entrySet().iterator();
                                                            while (v2_14.hasNext()) {
                                                                this.zzgy().zza(((com.google.android.gms.measurement.internal.zzae) ((java.util.Map$Entry) v2_14.next()).getValue()));
                                                            }
                                                        }
                                                    } catch (android.database.sqlite.SQLiteException v0_2) {
                                                        Object v1_14 = v0_2;
                                                        this.zzgy().endTransaction();
                                                        throw v1_14;
                                                    }
                                                    v1_19.zzao(nan).zzap(-0.0);
                                                    String v2_16 = 0;
                                                    while (v2_16 < v1_19.zznm()) {
                                                        int v4_180 = v1_19.zzq(v2_16);
                                                        if (v4_180.getTimestampMillis() < v1_19.zznq()) {
                                                            v1_19.zzao(v4_180.getTimestampMillis());
                                                        }
                                                        if (v4_180.getTimestampMillis() > v1_19.zznr()) {
                                                            v1_19.zzap(v4_180.getTimestampMillis());
                                                        }
                                                        v2_16++;
                                                    }
                                                    long v6_75;
                                                    String v2_18 = v3_22.zztn.zzag();
                                                    int v4_155 = this.zzgy().zzab(v2_18);
                                                    if (v4_155 != 0) {
                                                        v6_75 = this;
                                                        if (v1_19.zznm() > 0) {
                                                            String v7_42 = v4_155.zzak();
                                                            if (v7_42 == 0) {
                                                                v1_19.zznt();
                                                            } else {
                                                                v1_19.zzar(v7_42);
                                                            }
                                                            com.google.android.gms.measurement.internal.zzae v9_40 = v4_155.zzaj();
                                                            if (v9_40 != 0) {
                                                                v7_42 = v9_40;
                                                            } else {
                                                            }
                                                            if (v7_42 == 0) {
                                                                v1_19.zzns();
                                                            } else {
                                                                v1_19.zzaq(v7_42);
                                                            }
                                                            v4_155.zzau();
                                                            v1_19.zzu(((int) v4_155.zzar()));
                                                            v4_155.zze(v1_19.zznq());
                                                            v4_155.zzf(v1_19.zznr());
                                                            com.google.android.gms.measurement.internal.zzx v5_82 = v4_155.zzbc();
                                                            if (v5_82 == null) {
                                                                v1_19.zznu();
                                                            } else {
                                                                v1_19.zzcl(v5_82);
                                                            }
                                                            this.zzgy().zza(v4_155);
                                                        }
                                                    } else {
                                                        v6_75 = this;
                                                        this.zzj.zzab().zzgk().zza("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_22.zztn.zzag()));
                                                    }
                                                    if (v1_19.zznm() > 0) {
                                                        v6_75.zzj.zzae();
                                                        int v4_162 = this.zzgz().zzaw(v3_22.zztn.zzag());
                                                        if (v4_162 == 0) {
                                                            if (!android.text.TextUtils.isEmpty(v3_22.zztn.getGmpAppId())) {
                                                                v6_75.zzj.zzab().zzgn().zza("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_22.zztn.zzag()));
                                                            } else {
                                                                v1_19.zzav(-1);
                                                            }
                                                        } else {
                                                            if (v4_162.zzzk != null) {
                                                                v1_19.zzav(v4_162.zzzk.longValue());
                                                            } else {
                                                            }
                                                        }
                                                        this.zzgy().zza(((com.google.android.gms.internal.measurement.zzbs$zzg) ((com.google.android.gms.internal.measurement.zzey) v1_19.zzug())), v21_1);
                                                    }
                                                    Object v1_23 = this.zzgy();
                                                    String v3_23 = v3_22.zzto;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_23);
                                                    v1_23.zzo();
                                                    v1_23.zzbi();
                                                    int v4_174 = new StringBuilder("rowid in (");
                                                    com.google.android.gms.measurement.internal.zzx v5_90 = 0;
                                                    while (v5_90 < v3_23.size()) {
                                                        if (v5_90 != null) {
                                                            v4_174.append(",");
                                                        }
                                                        v4_174.append(((Long) v3_23.get(v5_90)).longValue());
                                                        v5_90++;
                                                    }
                                                    v4_174.append(")");
                                                    int v4_176 = v1_23.getWritableDatabase().delete("raw_events", v4_174.toString(), 0);
                                                    if (v4_176 != v3_23.size()) {
                                                        v1_23.zzab().zzgk().zza("Deleted fewer rows from raw events table than expected", Integer.valueOf(v4_176), Integer.valueOf(v3_23.size()));
                                                    }
                                                    Object v1_26 = this.zzgy();
                                                    String v3_26 = v1_26.getWritableDatabase();
                                                    try {
                                                        com.google.android.gms.measurement.internal.zzx v5_96 = new String[2];
                                                        v5_96[0] = v2_18;
                                                        v5_96[1] = v2_18;
                                                        v3_26.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v5_96);
                                                    } catch (android.database.sqlite.SQLiteException v0_6) {
                                                        v1_26.zzab().zzgk().zza("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_18), v0_6);
                                                    }
                                                    this.zzgy().setTransactionSuccessful();
                                                    this.zzgy().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v6_27.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v7_2 = v3_7;
                                            com.google.android.gms.measurement.internal.zzx v5_0 = v6_27;
                                            String v3_10 = v0_0;
                                            try {
                                                v4_184.zzab().zzgk().zza("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzef.zzam(v7_2), v3_10);
                                            } catch (android.database.sqlite.SQLiteException v0_5) {
                                                Object v1_15 = v0_5;
                                                int v22 = v5_0;
                                                if (v22 != 0) {
                                                    v22.close();
                                                }
                                                throw v1_15;
                                            }
                                            if (v5_0 == null) {
                                            } else {
                                                v5_0.close();
                                            }
                                        }
                                        if (v15_3.moveToNext()) {
                                            v4_184.zzab().zzgn().zza("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7));
                                        }
                                        String[] v17_2;
                                        String v16_2;
                                        v15_3.close();
                                        v2_7.zzb(v13_10);
                                        if (v5_103 == -1) {
                                            long v10_44 = new String[2];
                                            v10_44[0] = v3_7;
                                            v10_44[1] = v7_2;
                                            v16_2 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_2 = v10_44;
                                        } else {
                                            Boolean v13_15 = new String[3];
                                            v13_15[0] = v3_7;
                                            v13_15[1] = v7_2;
                                            v13_15[2] = String.valueOf(v5_103);
                                            v16_2 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_2 = v13_15;
                                        }
                                        v6_27 = v15_3;
                                        v5_0 = v25_1.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_2, v17_2, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_0.moveToFirst()) {
                                                v4_184.zzab().zzgn().zza("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7));
                                                if (v5_0 == null) {
                                                } else {
                                                    v5_0.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v22 = v5_0;
                                            v1_15 = v0_1;
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v7_2 = v3_7;
                                        }
                                        do {
                                            long v6_46 = v5_0.getLong(0);
                                            long v10_50 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) com.google.android.gms.internal.measurement.zzbs$zzc.zzmq().zzf(v5_0.getBlob(3), com.google.android.gms.internal.measurement.zzel.zztq()));
                                            v10_50.zzbx(v5_0.getString(1)).zzag(v5_0.getLong(2));
                                            if (v2_7.zza(v6_46, ((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v10_50.zzug())))) {
                                            } else {
                                                if (v5_0 == null) {
                                                } else {
                                                    v5_0.close();
                                                }
                                            }
                                        } while(v5_0.moveToNext());
                                        if (v5_0 == null) {
                                        } else {
                                            v5_0.close();
                                        }
                                    } else {
                                        v4_184.zzab().zzgk().zza("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7));
                                        if (v15_3 == null) {
                                        } else {
                                            v15_3.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v6_27 = v15_3;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_27 = v15_3;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v22 = v15_3;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v7_2 = v3_7;
                                    v5_0 = v15_3;
                                }
                                v22 = v6_27;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v22 = v23;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v7_2 = v3_7;
                                v5_0 = v23;
                            }
                        } else {
                            if (v3_7 == null) {
                            } else {
                                v3_7.close();
                            }
                        }
                    } else {
                        int v14_35;
                        Boolean v13_25 = v5_103 cmp -1;
                        try {
                            if (v13_25 == null) {
                                v14_35 = new String[1];
                                v14_35[0] = String.valueOf(p64);
                            } else {
                                v14_35 = new String[2];
                                v14_35[0] = String.valueOf(v5_103);
                                v14_35[1] = String.valueOf(p64);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_0) {
                            v5_0 = 0;
                            v7_2 = 0;
                        }
                        Boolean v13_26;
                        if (v13_25 == null) {
                            v13_26 = "";
                        } else {
                            v13_26 = "rowid <= ? and ";
                        }
                        String v3_29 = new StringBuilder((v13_26.length() + 148));
                        v3_29.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_29.append(v13_26);
                        v3_29.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_7 = v15_7.rawQuery(v3_29.toString(), v14_35);
                        if (v3_7.moveToFirst()) {
                            String v7_1 = v3_7.getString(0);
                            try {
                                Boolean v13_0 = v3_7.getString(1);
                                v3_7.close();
                                v23 = v3_7;
                                v3_7 = v7_1;
                                v7_2 = v13_0;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v5_0 = v3_7;
                            }
                        } else {
                            if (v3_7 == null) {
                            } else {
                                v3_7.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v22 = v3_7;
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v5_0 = v3_7;
                    v7_2 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v22 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
                v3_10 = v0_7;
                v5_0 = 0;
                v7_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_2) {
            }
        } catch (android.database.sqlite.SQLiteException v0_2) {
        }
    }

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


    private final void zzd(com.google.android.gms.measurement.internal.zzai p29, com.google.android.gms.measurement.internal.zzn p30)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p30);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p30.packageName);
        String v5_36 = System.nanoTime();
        void v28_1 = this.zzo();
        v28_1.zzjj();
        int v15_0 = p30.packageName;
        if (v28_1.zzgw().zze(p29, p30)) {
            if (p30.zzcq) {
                if (!v28_1.zzgz().zzk(v15_0, p29.name)) {
                    if (this.zzj.zzab().isLoggable(2)) {
                        this.zzj.zzab().zzgs().zza("Logging event", this.zzj.zzy().zzb(p29));
                    }
                    v28_1.zzgy().beginTransaction();
                    try {
                        int v6_2;
                        int v23;
                        this.zzg(p30);
                    } catch (java.io.IOException v0_2) {
                        long v2_43 = v0_2;
                        v28_1.zzgy().endTransaction();
                        throw v2_43;
                    }
                    if ("_iap".equals(p29.name)) {
                        long v11_1;
                        com.google.android.gms.internal.measurement.zzbs$zzk$zza v8_2;
                        long v7_135 = p29.zzfq.getString("currency");
                        if (!"ecommerce_purchase".equals(p29.name)) {
                            v8_2 = p29.zzfq.getLong("value").longValue();
                            if (android.text.TextUtils.isEmpty(v7_135)) {
                                v23 = v5_36;
                                v6_2 = 0;
                            } else {
                                long v7_4 = v7_135.toUpperCase(java.util.Locale.US);
                                if (!v7_4.matches("[A-Z]{3}")) {
                                } else {
                                    long v7_8;
                                    long v7_6 = String.valueOf(v7_4);
                                    if (v7_6.length() == 0) {
                                        v7_8 = new String("_ltv_");
                                    } else {
                                        v7_8 = "_ltv_".concat(v7_6);
                                    }
                                    String v5_12;
                                    int v10_7 = v7_8;
                                    long v7_10 = v28_1.zzgy().zze(v15_0, v10_7);
                                    if (v7_10 == 0) {
                                        v23 = v5_36;
                                        v6_2 = 0;
                                        long v7_18 = v28_1.zzgy();
                                        long v11_9 = (this.zzj.zzad().zzb(v15_0, com.google.android.gms.measurement.internal.zzak.zzhj) - 1);
                                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v15_0);
                                        v7_18.zzo();
                                        v7_18.zzbi();
                                        try {
                                            long v12_2 = v7_18.getWritableDatabase();
                                            String v5_15 = new String[3];
                                            v5_15[0] = v15_0;
                                            v5_15[1] = v15_0;
                                            v5_15[2] = String.valueOf(v11_9);
                                            v12_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);", v5_15);
                                        } catch (java.io.IOException v0_0) {
                                            v7_18.zzab().zzgk().zza("Error pruning currencies. appId", com.google.android.gms.measurement.internal.zzef.zzam(v15_0), v0_0);
                                        }
                                        v5_12 = new com.google.android.gms.measurement.internal.zzjp;
                                        v5_12(v15_0, p29.origin, v10_7, this.zzj.zzx().currentTimeMillis(), Long.valueOf(v8_2));
                                    } else {
                                        if ((v7_10.value instanceof Long)) {
                                            int v17_0 = new com.google.android.gms.measurement.internal.zzjp;
                                            v23 = v5_36;
                                            v6_2 = 0;
                                            v17_0(v15_0, p29.origin, v10_7, this.zzj.zzx().currentTimeMillis(), Long.valueOf((((Long) v7_10.value).longValue() + v8_2)));
                                            v5_12 = v17_0;
                                        } else {
                                        }
                                    }
                                    if (!v28_1.zzgy().zza(v5_12)) {
                                        this.zzj.zzab().zzgk().zza("Too many unique user properties are set. Ignoring user property. appId", com.google.android.gms.measurement.internal.zzef.zzam(v15_0), this.zzj.zzy().zzal(v5_12.name), v5_12.value);
                                        this.zzj.zzz().zza(v15_0, 9, 0, 0, 0);
                                    }
                                }
                            }
                            v11_1 = 1;
                        } else {
                            int v16_9 = (p29.zzfq.zzah("value").doubleValue() * 1000000.0);
                            if (v16_9 == 0) {
                                v16_9 = (((double) p29.zzfq.getLong("value").longValue()) * 1000000.0);
                            }
                            if ((v16_9 > 9.223372036854776e+18) || (v16_9 < -9.223372036854776e+18)) {
                                this.zzj.zzab().zzgn().zza("Data lost. Currency value is too big. appId", com.google.android.gms.measurement.internal.zzef.zzam(v15_0), Double.valueOf(v16_9));
                                v23 = v5_36;
                                v6_2 = 0;
                                v11_1 = 0;
                            } else {
                                v8_2 = Math.round(v16_9);
                            }
                        }
                        if (v11_1 == 0) {
                            v28_1.zzgy().setTransactionSuccessful();
                            v28_1.zzgy().endTransaction();
                            return;
                        }
                    } else {
                        if (!"ecommerce_purchase".equals(p29.name)) {
                            v23 = v5_36;
                            v6_2 = 0;
                        } else {
                        }
                    }
                    String v5_20 = com.google.android.gms.measurement.internal.zzjs.zzbk(p29.name);
                    int v16_4 = "_err".equals(p29.name);
                    int v18_0 = v15_0;
                    long v7_34 = v28_1.zzgy().zza(v28_1.zzjk(), v15_0, 1, v5_20, 0, v16_4, 0);
                    com.google.android.gms.internal.measurement.zzbs$zzk$zza v8_10 = (v7_34.zzeg - ((long) ((Integer) com.google.android.gms.measurement.internal.zzak.zzgp.get(0)).intValue()));
                    if (v8_10 <= 0) {
                        if (v5_20 != null) {
                            com.google.android.gms.internal.measurement.zzbs$zzk$zza v8_12 = (v7_34.zzef - ((long) ((Integer) com.google.android.gms.measurement.internal.zzak.zzgr.get(0)).intValue()));
                            if (v8_12 > 0) {
                                if ((v8_12 % 1000) == 1) {
                                    this.zzj.zzab().zzgk().zza("Data loss. Too many public events logged. appId, count", com.google.android.gms.measurement.internal.zzef.zzam(v18_0), Long.valueOf(v7_34.zzef));
                                }
                                this.zzj.zzz().zza(v18_0, 16, "_ev", p29.name, 0);
                                v28_1.zzgy().setTransactionSuccessful();
                                v28_1.zzgy().endTransaction();
                                return;
                            }
                        }
                        if (v16_4 != 0) {
                            com.google.android.gms.internal.measurement.zzbs$zzk$zza v8_14 = (v7_34.zzei - ((long) Math.max(v6_2, Math.min(1000000, this.zzj.zzad().zzb(p30.packageName, com.google.android.gms.measurement.internal.zzak.zzgq)))));
                            if (v8_14 > 0) {
                                if (v8_14 == 1) {
                                    this.zzj.zzab().zzgk().zza("Too many error events logged. appId, count", com.google.android.gms.measurement.internal.zzef.zzam(v18_0), Long.valueOf(v7_34.zzei));
                                }
                                v28_1.zzgy().setTransactionSuccessful();
                                v28_1.zzgy().endTransaction();
                                return;
                            }
                        }
                        int v15_3 = p29.zzfq.zzcv();
                        this.zzj.zzz().zza(v15_3, "_o", p29.origin);
                        long v11_19 = v18_0;
                        if (this.zzj.zzz().zzbr(v11_19)) {
                            this.zzj.zzz().zza(v15_3, "_dbg", Long.valueOf(1));
                            this.zzj.zzz().zza(v15_3, "_r", Long.valueOf(1));
                        }
                        if (("_s".equals(p29.name)) && (this.zzj.zzad().zzw(p30.packageName))) {
                            long v7_55 = v28_1.zzgy().zze(p30.packageName, "_sno");
                            if ((v7_55 != 0) && ((v7_55.value instanceof Long))) {
                                this.zzj.zzz().zza(v15_3, "_sno", v7_55.value);
                            }
                        }
                        if (("_s".equals(p29.name)) && ((this.zzj.zzad().zze(p30.packageName, com.google.android.gms.measurement.internal.zzak.zzif)) && (!this.zzj.zzad().zzw(p30.packageName)))) {
                            this.zzc(new com.google.android.gms.measurement.internal.zzjn("_sno", 0, 0), p30);
                        }
                        long v7_62 = v28_1.zzgy().zzac(v11_19);
                        if (v7_62 > 0) {
                            this.zzj.zzab().zzgn().zza("Data lost. Too many events stored on disk, deleted. appId", com.google.android.gms.measurement.internal.zzef.zzam(v11_19), Long.valueOf(v7_62));
                        }
                        String v5_22;
                        String v4_20 = new com.google.android.gms.measurement.internal.zzaf;
                        String v27 = v11_19;
                        v4_20(this.zzj, p29.origin, v11_19, p29.name, p29.zzfu, 0, v15_3);
                        com.google.android.gms.internal.measurement.zzbs$zzk$zza v8_22 = v27;
                        int v6_7 = v28_1.zzgy().zzc(v8_22, v4_20.name);
                        if (v6_7 != 0) {
                            v4_20 = v4_20.zza(this.zzj, v6_7.zzfj);
                            v5_22 = v6_7.zzw(v4_20.timestamp);
                        } else {
                            if ((v28_1.zzgy().zzag(v8_22) < 500) || (v5_20 == null)) {
                                v5_22 = new com.google.android.gms.measurement.internal.zzae;
                                v5_22(v8_22, v4_20.name, 0, 0, v4_20.timestamp, 0, 0, 0, 0, 0);
                            } else {
                                this.zzj.zzab().zzgk().zza("Too many event names used, ignoring event. appId, name, supported count", com.google.android.gms.measurement.internal.zzef.zzam(v8_22), this.zzj.zzy().zzaj(v4_20.name), Integer.valueOf(500));
                                this.zzj.zzz().zza(v8_22, 8, 0, 0, 0);
                                v28_1.zzgy().endTransaction();
                                return;
                            }
                        }
                        v28_1.zzgy().zza(v5_22);
                        v28_1 = v28_1.zzo();
                        v28_1.zzjj();
                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v4_20);
                        com.google.android.gms.common.internal.Preconditions.checkNotNull(p30);
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v4_20.zzce);
                        com.google.android.gms.common.internal.Preconditions.checkArgument(v4_20.zzce.equals(p30.packageName));
                        int v6_13 = 1;
                        String v5_28 = com.google.android.gms.internal.measurement.zzbs$zzg.zzpr().zzp(1).zzcc("android");
                        if (!android.text.TextUtils.isEmpty(p30.packageName)) {
                            v5_28.zzch(p30.packageName);
                        }
                        if (!android.text.TextUtils.isEmpty(p30.zzco)) {
                            v5_28.zzcg(p30.zzco);
                        }
                        if (!android.text.TextUtils.isEmpty(p30.zzcm)) {
                            v5_28.zzci(p30.zzcm);
                        }
                        if (p30.zzcn != -2147483648) {
                            v5_28.zzv(((int) p30.zzcn));
                        }
                        v5_28.zzas(p30.zzr);
                        if (!android.text.TextUtils.isEmpty(p30.zzcg)) {
                            v5_28.zzcm(p30.zzcg);
                        }
                        if (!this.zzj.zzad().zza(com.google.android.gms.measurement.internal.zzak.zzit)) {
                            if (!android.text.TextUtils.isEmpty(p30.zzcu)) {
                                v5_28.zzcq(p30.zzcu);
                            }
                        } else {
                            if ((android.text.TextUtils.isEmpty(v5_28.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p30.zzcu))) {
                                v5_28.zzcq(p30.zzcu);
                            }
                        }
                        if (p30.zzcp != 0) {
                            v5_28.zzau(p30.zzcp);
                        }
                        v5_28.zzax(p30.zzs);
                        if (this.zzj.zzad().zze(p30.packageName, com.google.android.gms.measurement.internal.zzak.zzin)) {
                            long v7_109 = v28_1.zzgw().zzju();
                            if (v7_109 != 0) {
                                v5_28.zzd(v7_109);
                            }
                        }
                        long v7_113 = this.zzj.zzac().zzap(p30.packageName);
                        if ((v7_113 == 0) || (android.text.TextUtils.isEmpty(((CharSequence) v7_113.first)))) {
                            if ((!this.zzj.zzw().zzj(this.zzj.getContext())) && (p30.zzct)) {
                                long v7_122 = android.provider.Settings$Secure.getString(this.zzj.getContext().getContentResolver(), "android_id");
                                if (v7_122 != 0) {
                                    if (v7_122.isEmpty()) {
                                        this.zzj.zzab().zzgn().zza("empty secure ID. appId", com.google.android.gms.measurement.internal.zzef.zzam(v5_28.zzag()));
                                    }
                                } else {
                                    this.zzj.zzab().zzgn().zza("null secure ID. appId", com.google.android.gms.measurement.internal.zzef.zzam(v5_28.zzag()));
                                    v7_122 = "null";
                                }
                                v5_28.zzco(v7_122);
                            }
                        } else {
                            if (p30.zzcs) {
                                v5_28.zzcj(((String) v7_113.first));
                                if (v7_113.second != null) {
                                    v5_28.zzm(((Boolean) v7_113.second).booleanValue());
                                }
                            }
                        }
                        this.zzj.zzw().zzbi();
                        long v7_133 = v5_28.zzce(android.os.Build.MODEL);
                        this.zzj.zzw().zzbi();
                        v7_133.zzcd(android.os.Build$VERSION.RELEASE).zzt(((int) this.zzj.zzw().zzcq())).zzcf(this.zzj.zzw().zzcr()).zzaw(p30.zzcr);
                        if ((this.zzj.isEnabled()) && (com.google.android.gms.measurement.internal.zzs.zzbv())) {
                            v5_28.zzag();
                            if (!android.text.TextUtils.isEmpty(0)) {
                                v5_28.zzcp(0);
                            }
                        }
                        long v7_144 = v28_1.zzgy().zzab(p30.packageName);
                        if (v7_144 == 0) {
                            v7_144 = new com.google.android.gms.measurement.internal.zzf(this.zzj, p30.packageName);
                            v7_144.zza(this.zzj.zzz().zzjy());
                            v7_144.zze(p30.zzci);
                            v7_144.zzb(p30.zzcg);
                            v7_144.zzd(this.zzj.zzac().zzaq(p30.packageName));
                            v7_144.zzk(0);
                            v7_144.zze(0);
                            v7_144.zzf(0);
                            v7_144.zzf(p30.zzcm);
                            v7_144.zzg(p30.zzcn);
                            v7_144.zzg(p30.zzco);
                            v7_144.zzh(p30.zzr);
                            v7_144.zzi(p30.zzcp);
                            v7_144.setMeasurementEnabled(p30.zzcq);
                            v7_144.zzt(p30.zzcr);
                            v7_144.zzj(p30.zzs);
                            v28_1.zzgy().zza(v7_144);
                        }
                        if (!android.text.TextUtils.isEmpty(v7_144.getAppInstanceId())) {
                            v5_28.zzck(v7_144.getAppInstanceId());
                        }
                        if (!android.text.TextUtils.isEmpty(v7_144.getFirebaseInstanceId())) {
                            v5_28.zzcn(v7_144.getFirebaseInstanceId());
                        }
                        Long v3_17 = v28_1.zzgy().zzaa(p30.packageName);
                        long v7_148 = 0;
                        while (v7_148 < v3_17.size()) {
                            com.google.android.gms.internal.measurement.zzbs$zzk$zza v8_82 = com.google.android.gms.internal.measurement.zzbs$zzk.zzqu().zzdb(((com.google.android.gms.measurement.internal.zzjp) v3_17.get(v7_148)).name).zzbk(((com.google.android.gms.measurement.internal.zzjp) v3_17.get(v7_148)).zztr);
                            v28_1.zzgw().zza(v8_82, ((com.google.android.gms.measurement.internal.zzjp) v3_17.get(v7_148)).value);
                            v5_28.zza(v8_82);
                            v7_148++;
                        }
                        long v7_152 = v28_1.zzgy().zza(((com.google.android.gms.internal.measurement.zzbs$zzg) ((com.google.android.gms.internal.measurement.zzey) v5_28.zzug())));
                        Long v3_22 = v28_1.zzgy();
                        if (v4_20.zzfq == null) {
                            v6_13 = 0;
                        } else {
                            String v5_34 = v4_20.zzfq.iterator();
                            while (v5_34.hasNext()) {
                                if ("_r".equals(((String) v5_34.next()))) {
                                }
                            }
                            long v2_9 = v28_1.zzgz().zzl(v4_20.zzce, v4_20.name);
                            com.google.android.gms.measurement.internal.zzw vtmp287 = v28_1.zzgy().zza(v28_1.zzjk(), v4_20.zzce, 0, 0, 0, 0, 0);
                            if ((v2_9 == 0) || (vtmp287.zzej >= ((long) this.zzj.zzad().zzi(v4_20.zzce)))) {
                            } else {
                            }
                        }
                        if (!v3_22.zza(v4_20, v7_152, v6_13)) {
                            v28_1.zzgy().setTransactionSuccessful();
                            if (this.zzj.zzab().isLoggable(2)) {
                                this.zzj.zzab().zzgs().zza("Event recorded", this.zzj.zzy().zza(v4_20));
                            }
                            v28_1.zzgy().endTransaction();
                            v28_1.zzjn();
                            this.zzj.zzab().zzgs().zza("Background event processing time, ms", Long.valueOf((((System.nanoTime() - v23) + 500000) / 1000000)));
                            return;
                        } else {
                            this.zzsy = 0;
                        }
                    } else {
                        if ((v8_10 % 1000) == 1) {
                            this.zzj.zzab().zzgk().zza("Data loss. Too many events logged. appId, count", com.google.android.gms.measurement.internal.zzef.zzam(v18_0), Long.valueOf(v7_34.zzeg));
                        }
                        v28_1.zzgy().setTransactionSuccessful();
                        v28_1.zzgy().endTransaction();
                        return;
                    }
                } else {
                    Long v3_7;
                    this.zzj.zzab().zzgn().zza("Dropping blacklisted event. appId", com.google.android.gms.measurement.internal.zzef.zzam(v15_0), this.zzj.zzy().zzaj(p29.name));
                    if ((!v28_1.zzgz().zzbc(v15_0)) && (!v28_1.zzgz().zzbd(v15_0))) {
                        v3_7 = 0;
                    } else {
                        v3_7 = 1;
                    }
                    if ((v3_7 == null) && (!"_err".equals(p29.name))) {
                        this.zzj.zzz().zza(v15_0, 11, "_ev", p29.name, 0);
                    }
                    if (v3_7 != null) {
                        long v2_5 = v28_1.zzgy().zzab(v15_0);
                        if ((v2_5 != 0) && (Math.abs((this.zzj.zzx().currentTimeMillis() - Math.max(v2_5.zzat(), v2_5.zzas()))) > ((Long) com.google.android.gms.measurement.internal.zzak.zzhe.get(0)).longValue())) {
                            this.zzj.zzab().zzgr().zzao("Fetching config for blacklisted app");
                            this.zzb(v2_5);
                        }
                    }
                    return;
                }
            } else {
                this.zzg(p30);
                return;
            }
        } else {
            return;
        }
    }

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


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

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


    public final int zzg(String p7, String p8)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p7);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p8);
        this.zzo();
        this.zzbi();
        try {
            android.database.sqlite.SQLiteException v1_1 = this.getWritableDatabase();
            String[] v4_0 = new String[2];
            v4_0[0] = p7;
            v4_0[1] = p8;
            Object v7_1 = v1_1.delete("conditional_properties", "app_id=? and name=?", v4_0);
            return v7_1;
        } catch (android.database.sqlite.SQLiteException v1_0) {
            this.zzab().zzgk().zza("Error deleting conditional property", com.google.android.gms.measurement.internal.zzef.zzam(v7_1), this.zzy().zzal(p8), v1_0);
            return 0;
        }
    }

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


    public final void zzd(String p6, String p7)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p6);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p7);
        this.zzo();
        this.zzbi();
        try {
            android.database.sqlite.SQLiteException v0_3 = this.getWritableDatabase();
            String[] v3_1 = new String[2];
            v3_1[0] = p6;
            v3_1[1] = p7;
            this.zzab().zzgs().zza("Deleted user attribute rows", Integer.valueOf(v0_3.delete("user_attributes", "app_id=? and name=?", v3_1)));
            return;
        } catch (android.database.sqlite.SQLiteException v0_2) {
            this.zzab().zzgk().zza("Error deleting user attribute. appId", com.google.android.gms.measurement.internal.zzef.zzam(p6), this.zzy().zzal(p7), v0_2);
            return;
        }
    }

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


    final void zzca()
    {
        this.zzo();
        this.zzbi();
        if (this.zzcg()) {
            Integer v0_12 = this.zzac().zzlm.get();
            String v2_1 = this.zzx().elapsedRealtime();
            if (Math.abs((v2_1 - v0_12)) > ((Long) com.google.android.gms.measurement.internal.zzak.zzhd.get(0)).longValue()) {
                this.zzac().zzlm.set(v2_1);
                this.zzo();
                this.zzbi();
                if (this.zzcg()) {
                    Integer v0_7 = this.getWritableDatabase();
                    com.google.android.gms.measurement.internal.zzeh v1_1 = new String[2];
                    v1_1[0] = String.valueOf(this.zzx().currentTimeMillis());
                    v1_1[1] = String.valueOf(com.google.android.gms.measurement.internal.zzs.zzbs());
                    Integer v0_8 = v0_7.delete("queue", "abs(bundle_end_timestamp - ?) > cast(? as integer)", v1_1);
                    if (v0_8 > null) {
                        this.zzab().zzgs().zza("Deleted stale rows. rowsDeleted", Integer.valueOf(v0_8));
                    }
                }
            }
            return;
        } else {
            return;
        }
    }

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


    public final long zzac(String p7)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p7);
        this.zzo();
        this.zzbi();
        try {
            long v0_3 = this.getWritableDatabase();
            com.google.android.gms.measurement.internal.zzeh v1_2 = String.valueOf(Math.max(0, Math.min(1000000, this.zzad().zzb(p7, com.google.android.gms.measurement.internal.zzak.zzgu))));
            String[] v5_1 = new String[2];
            v5_1[0] = p7;
            v5_1[1] = v1_2;
            Object v7_1 = v0_3.delete("raw_events", "rowid in (select rowid from raw_events where app_id=? order by rowid desc limit -1 offset ?)", v5_1);
            return ((long) v7_1);
        } catch (long v0_1) {
            this.zzab().zzgk().zza("Error deleting over the limit events. appId", com.google.android.gms.measurement.internal.zzef.zzam(v7_1), v0_1);
            return 0;
        }
    }

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


    final void zza(String p18, com.google.android.gms.internal.measurement.zzbv[] p19)
    {
        this.zzbi();
        this.zzo();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p18);
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p19);
        android.database.sqlite.SQLiteDatabase v7 = this.getWritableDatabase();
        v7.beginTransaction();
        try {
            this.zzbi();
            this.zzo();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p18);
            int v8_1 = this.getWritableDatabase();
            int v9_0 = 1;
            String[] v10_5 = new String[1];
            int v11 = 0;
            v10_5[0] = p18;
            v8_1.delete("property_filters", "app_id=?", v10_5);
            String[] v10_6 = new String[1];
            v10_6[0] = p18;
            v8_1.delete("event_filters", "app_id=?", v10_6);
            Integer v5_0 = p19.length;
            int v8_0 = 0;
        } catch (Throwable v0_1) {
            v7.endTransaction();
            throw v0_1;
        }
        while (v8_0 < v5_0) {
            int v13_0;
            String[] v10_7 = p19[v8_0];
            this.zzbi();
            this.zzo();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p18);
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v10_7);
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v10_7.zzzh);
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v10_7.zzzg);
            if (v10_7.zzzf != null) {
                String v12_10 = v10_7.zzzf.intValue();
                int v13_4 = v10_7.zzzh;
                boolean v15_1 = 0;
                while (v15_1 < v13_4.length) {
                    if (v13_4[v15_1].zzkb()) {
                        v15_1++;
                    } else {
                        this.zzab().zzgn().zza("Event filter with no ID. Audience definition ignored. appId, audienceId", com.google.android.gms.measurement.internal.zzef.zzam(p18), v10_7.zzzf);
                        v13_0 = v9_0;
                    }
                }
                int v13_5 = v10_7.zzzg;
                boolean v15_0 = 0;
                while (v15_0 < v13_5.length) {
                    if (v13_5[v15_0].zzkb()) {
                        v15_0++;
                    } else {
                        this.zzab().zzgn().zza("Property filter with no ID. Audience definition ignored. appId, audienceId", com.google.android.gms.measurement.internal.zzef.zzam(p18), v10_7.zzzf);
                    }
                }
                int v13_6 = v10_7.zzzh;
                boolean v15_2 = 0;
                while (v15_2 < v13_6.length) {
                    if (this.zza(p18, v12_10, v13_6[v15_2])) {
                        v15_2++;
                    } else {
                        int v9_1 = 0;
                    }
                    if (v9_1 != 0) {
                        String[] v10_8 = v10_7.zzzg;
                        int v14_5 = 0;
                        while (v14_5 < v10_8.length) {
                            if (this.zza(p18, v12_10, v10_8[v14_5])) {
                                v14_5++;
                            } else {
                                v9_1 = 0;
                                break;
                            }
                        }
                    }
                    if (v9_1 != 0) {
                        v13_0 = 1;
                    } else {
                        this.zzbi();
                        this.zzo();
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p18);
                        int v9_4 = this.getWritableDatabase();
                        int v13_8 = new String[2];
                        v13_8[0] = p18;
                        v13_8[1] = String.valueOf(v12_10);
                        v9_4.delete("property_filters", "app_id=? and audience_id=?", v13_8);
                        String[] v10_0 = new String[2];
                        v10_0[0] = p18;
                        v13_0 = 1;
                        v10_0[1] = String.valueOf(v12_10);
                        v9_4.delete("event_filters", "app_id=? and audience_id=?", v10_0);
                    }
                }
                v9_1 = 1;
            } else {
                this.zzab().zzgn().zza("Audience with no ID. appId", com.google.android.gms.measurement.internal.zzef.zzam(p18));
            }
            v8_0++;
            v9_0 = v13_0;
        }
        java.util.ArrayList v3_2 = new java.util.ArrayList();
        int v4_0 = p19.length;
        while (v11 < v4_0) {
            v3_2.add(p19[v11].zzzf);
            v11++;
        }
        this.zza(p18, v3_2);
        v7.setTransactionSuccessful();
        v7.endTransaction();
        return;
    }

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


    private final boolean zza(String p9, java.util.List p10)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p9);
        this.zzbi();
        this.zzo();
        com.google.android.gms.measurement.internal.zzeh v0_2 = this.getWritableDatabase();
        try {
            String[] v4_13 = new String[1];
            v4_13[0] = p9;
            String[] v4_0 = this.zza("select count(1) from audience_filter_values where app_id=?", v4_13);
            String v2_3 = Math.max(0, Math.min(2000, this.zzad().zzb(p9, com.google.android.gms.measurement.internal.zzak.zzhk)));
        } catch (String v10_1) {
            this.zzab().zzgk().zza("Database error querying filters. appId", com.google.android.gms.measurement.internal.zzef.zzam(p9), v10_1);
            return 0;
        }
        if (v4_0 > ((long) v2_3)) {
            String[] v4_3 = new java.util.ArrayList();
            int v5_0 = 0;
            while (v5_0 < p10.size()) {
                String v6_9 = ((Integer) p10.get(v5_0));
                if ((v6_9 != null) && ((v6_9 instanceof Integer))) {
                    v4_3.add(Integer.toString(v6_9.intValue()));
                    v5_0++;
                } else {
                    return 0;
                }
            }
            String v10_3 = android.text.TextUtils.join(",", v4_3);
            String v6_5 = new StringBuilder((String.valueOf(v10_3).length() + 2));
            v6_5.append("(");
            v6_5.append(v10_3);
            v6_5.append(")");
            String v10_5 = v6_5.toString();
            String v6_7 = new StringBuilder((String.valueOf(v10_5).length() + 140));
            v6_7.append("audience_id in (select audience_id from audience_filter_values where app_id=? and audience_id not in ");
            v6_7.append(v10_5);
            v6_7.append(" order by rowid desc limit -1 offset ?)");
            String v10_7 = v6_7.toString();
            String[] v4_12 = new String[2];
            v4_12[0] = p9;
            v4_12[1] = Integer.toString(v2_3);
            if (v0_2.delete("audience_filter_values", v10_7, v4_12) <= 0) {
                return 0;
            } else {
                return 1;
            }
        } else {
            return 0;
        }
    }

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


    public final boolean zzgi()
    {
        this.zzo();
        this.zzm();
        if (!this.zzjw) {
            if (this.zzcg()) {
                int v4 = 5;
                int v3 = 0;
                while (v3 < 5) {
                    try {
                        android.database.sqlite.SQLiteDatabase v5 = this.getWritableDatabase();
                    } catch (Throwable v0_3) {
                        if (v5 != null) {
                            v5.close();
                        }
                        throw v0_3;
                    } catch (String v7_2) {
                        this.zzab().zzgk().zza("Error deleting app launch break from local database", v7_2);
                        this.zzjw = 1;
                        if (v5 == null) {
                            v3++;
                        } else {
                            v5.close();
                        }
                    } catch (String v7_1) {
                        if (v5 != null) {
                            if (v5.inTransaction()) {
                                v5.endTransaction();
                            }
                        }
                        this.zzab().zzgk().zza("Error deleting app launch break from local database", v7_1);
                        this.zzjw = 1;
                        if (v5 == null) {
                        } else {
                            v5.close();
                        }
                    }
                    if (v5 != null) {
                        v5.beginTransaction();
                        String[] v9 = new String[1];
                        v9[0] = Integer.toString(3);
                        v5.delete("messages", "type == ?", v9);
                        v5.setTransactionSuccessful();
                        v5.endTransaction();
                        if (v5 != null) {
                            v5.close();
                        }
                        return 1;
                    } else {
                        this.zzjw = 1;
                        if (v5 != null) {
                            v5.close();
                        }
                        return 0;
                    }
                }
                this.zzab().zzgn().zzao("Error deleting app launch break from local database in reasonable time");
                return 0;
            } else {
                return 0;
            }
        } else {
            return 0;
        }
    }

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


    public final java.util.List zzc(int p24)
    {
        this.zzo();
        this.zzm();
        if (!this.zzjw) {
            java.util.ArrayList v4_1 = new java.util.ArrayList();
            if (this.zzcg()) {
                int v8 = 5;
                int v7 = 0;
                while (v7 < 5) {
                    try {
                        int v15_0 = this.getWritableDatabase();
                        try {
                            if (v15_0 != 0) {
                                try {
                                    int v0_3;
                                    v15_0.beginTransaction();
                                    long v19 = -1;
                                    try {
                                        if (!this.zzad().zza(com.google.android.gms.measurement.internal.zzak.zzjd)) {
                                            p24 = v15_0;
                                            v0_3 = p24.query("messages", new String[] {"rowid", "type", "entry"}), 0, 0, 0, 0, "rowid asc", Integer.toString(100));
                                        } else {
                                            int v14_1;
                                            int v0_43;
                                            int v16_1 = com.google.android.gms.measurement.internal.zzeb.zza(v15_0);
                                            if (v16_1 == -1) {
                                                v0_43 = 0;
                                                v14_1 = 0;
                                            } else {
                                                v0_43 = "rowid<?";
                                                v14_1 = new String[1];
                                                v14_1[0] = String.valueOf(v16_1);
                                            }
                                            int v10_4 = v15_0;
                                            p24 = v15_0;
                                            v15_0 = 0;
                                            v0_3 = v10_4.query("messages", new String[] {"rowid", "type", "entry"}), v0_43, v14_1, 0, 0, "rowid asc", Integer.toString(100));
                                        }
                                        int v10_0 = v0_3;
                                        try {
                                            while (v10_0.moveToNext()) {
                                                v19 = v10_0.getLong(0);
                                                int v0_10 = v10_0.getInt(1);
                                                String v12_1 = v10_0.getBlob(2);
                                                if (v0_10 != 0) {
                                                    if (v0_10 != 1) {
                                                        if (v0_10 != 2) {
                                                            if (v0_10 != 3) {
                                                                this.zzab().zzgk().zzao("Unknown record type in local database");
                                                            } else {
                                                                this.zzab().zzgn().zzao("Skipping app launch break");
                                                            }
                                                        } else {
                                                            String v11_7 = android.os.Parcel.obtain();
                                                            try {
                                                                v11_7.unmarshall(v12_1, 0, v12_1.length);
                                                                v11_7.setDataPosition(0);
                                                                int v0_19 = ((com.google.android.gms.measurement.internal.zzq) com.google.android.gms.measurement.internal.zzq.CREATOR.createFromParcel(v11_7));
                                                            } catch (int v0_22) {
                                                                v11_7.recycle();
                                                                throw v0_22;
                                                            }
                                                            v11_7.recycle();
                                                            if (v0_19 != 0) {
                                                                v4_1.add(v0_19);
                                                            }
                                                        }
                                                    } else {
                                                        String v11_8 = android.os.Parcel.obtain();
                                                        try {
                                                            v11_8.unmarshall(v12_1, 0, v12_1.length);
                                                            v11_8.setDataPosition(0);
                                                            int v0_27 = ((com.google.android.gms.measurement.internal.zzjn) com.google.android.gms.measurement.internal.zzjn.CREATOR.createFromParcel(v11_8));
                                                        } catch (int v0_30) {
                                                            v11_8.recycle();
                                                            throw v0_30;
                                                        }
                                                        v11_8.recycle();
                                                        if (v0_27 != 0) {
                                                            v4_1.add(v0_27);
                                                        }
                                                    }
                                                } else {
                                                    String v11_9 = android.os.Parcel.obtain();
                                                    try {
                                                        v11_9.unmarshall(v12_1, 0, v12_1.length);
                                                        v11_9.setDataPosition(0);
                                                        int v0_34 = ((com.google.android.gms.measurement.internal.zzai) com.google.android.gms.measurement.internal.zzai.CREATOR.createFromParcel(v11_9));
                                                    } catch (int v0_37) {
                                                        v11_9.recycle();
                                                        throw v0_37;
                                                    }
                                                    v11_9.recycle();
                                                    if (v0_34 != 0) {
                                                        v4_1.add(v0_34);
                                                    }
                                                }
                                            }
                                        } catch (int v0_2) {
                                            String v13_0 = p24;
                                            if (v10_0 != 0) {
                                                v10_0.close();
                                            }
                                            if (v13_0 != null) {
                                                v13_0.close();
                                            }
                                            throw v0_2;
                                        } catch (int v0_1) {
                                            v13_0 = p24;
                                            this.zzab().zzgk().zza("Error reading entries from local database", v0_1);
                                            this.zzjw = 1;
                                            if (v10_0 != 0) {
                                                v10_0.close();
                                            }
                                            if (v13_0 == null) {
                                                v7++;
                                            } else {
                                                v13_0.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                                            v13_0 = p24;
                                            android.os.SystemClock.sleep(((long) v8));
                                            v8 += 20;
                                            if (v10_0 != 0) {
                                                v10_0.close();
                                            }
                                            if (v13_0 == null) {
                                            } else {
                                                v13_0.close();
                                            }
                                        } catch (int v0_4) {
                                            v13_0 = p24;
                                            if (v13_0 != null) {
                                                if (v13_0.inTransaction()) {
                                                    v13_0.endTransaction();
                                                }
                                            }
                                            this.zzab().zzgk().zza("Error reading entries from local database", v0_4);
                                            this.zzjw = 1;
                                            if (v10_0 != 0) {
                                                v10_0.close();
                                            }
                                            if (v13_0 == null) {
                                            } else {
                                                v13_0.close();
                                            }
                                        }
                                        String v12_0 = new String[1];
                                        v12_0[0] = Long.toString(v19);
                                        v13_0 = p24;
                                        try {
                                            if (p24.delete("messages", "rowid <= ?", v12_0) < v4_1.size()) {
                                                this.zzab().zzgk().zzao("Fewer entries removed from local database than expected");
                                            }
                                            p24.setTransactionSuccessful();
                                            p24.endTransaction();
                                            if (v10_0 != 0) {
                                                v10_0.close();
                                            }
                                            if (p24 != 0) {
                                                p24.close();
                                            }
                                            return v4_1;
                                        } catch (int v0_1) {
                                        } catch (int v0_4) {
                                        }
                                    } catch (int v0_2) {
                                        v13_0 = p24;
                                        v10_0 = 0;
                                    } catch (int v0_1) {
                                        v13_0 = p24;
                                        v10_0 = 0;
                                    } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                                        v13_0 = p24;
                                    } catch (int v0_4) {
                                        v13_0 = p24;
                                        v10_0 = 0;
                                    }
                                } catch (int v0_2) {
                                    v13_0 = v15_0;
                                } catch (int v0_1) {
                                    v13_0 = v15_0;
                                } catch (int v0_4) {
                                    v13_0 = v15_0;
                                }
                            } else {
                                this.zzjw = 1;
                                if (v15_0 != 0) {
                                    v15_0.close();
                                }
                                return 0;
                            }
                            v10_0 = 0;
                        } catch (int v0_2) {
                            v10_0 = 0;
                            v13_0 = v15_0;
                        } catch (int v0_1) {
                            v10_0 = 0;
                            v13_0 = v15_0;
                        } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                            v13_0 = v15_0;
                        } catch (int v0_4) {
                            v10_0 = 0;
                            v13_0 = v15_0;
                        }
                    } catch (int v0_2) {
                        v10_0 = 0;
                        v13_0 = 0;
                    } catch (int v0_1) {
                        v10_0 = 0;
                        v13_0 = 0;
                    } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                        v10_0 = 0;
                        v13_0 = 0;
                    } catch (int v0_4) {
                        v10_0 = 0;
                        v13_0 = 0;
                    } catch (int v0_2) {
                    }
                }
                this.zzab().zzgn().zzao("Failed to read events from database in reasonable time");
                return 0;
            } else {
                return v4_1;
            }
        } else {
            return 0;
        }
    }

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


    public final void resetAnalyticsData()
    {
        this.zzm();
        this.zzo();
        try {
            Integer v0_4 = (this.getWritableDatabase().delete("messages", 0, 0) + 0);
        } catch (Integer v0_1) {
            this.zzab().zzgk().zza("Error resetting local analytics data. error", v0_1);
            return;
        }
        if (v0_4 > null) {
            this.zzab().zzgs().zza("Reset local analytics data. records", Integer.valueOf(v0_4));
        }
        return;
    }

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


    private final boolean zza(int p17, byte[] p18)
    {
        this.zzm();
        this.zzo();
        Long v3_9 = 0;
        if (!this.zzjw) {
            android.content.ContentValues v4_1 = new android.content.ContentValues();
            v4_1.put("type", Integer.valueOf(p17));
            v4_1.put("entry", p18);
            int v5_2 = 5;
            int v6 = 0;
            int v7 = 5;
            while (v6 < v5_2) {
                String v8_0 = 0;
                try {
                    String[] v10 = this.getWritableDatabase();
                    try {
                        if (v10 != null) {
                            try {
                                v10.beginTransaction();
                                Long v11_1 = 0;
                                int v13 = v10.rawQuery("select count(1) from messages", 0);
                                try {
                                    if ((v13 != 0) && (v13.moveToFirst())) {
                                        v11_1 = v13.getLong(v3_9);
                                    }
                                    if (v11_1 >= 100000) {
                                        this.zzab().zzgk().zzao("Data loss, local db full");
                                        long v14_2 = ((100000 - v11_1) + 1);
                                        String v8_2 = new String[1];
                                        v8_2[v3_9] = Long.toString(v14_2);
                                        Long v11_4 = ((long) v10.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v8_2));
                                        if (v11_4 != v14_2) {
                                            this.zzab().zzgk().zza("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v14_2), Long.valueOf(v11_4), Long.valueOf((v14_2 - v11_4)));
                                        }
                                    }
                                    v10.insertOrThrow("messages", 0, v4_1);
                                    v10.setTransactionSuccessful();
                                    v10.endTransaction();
                                    if (v13 != 0) {
                                        v13.close();
                                    }
                                    if (v10 != null) {
                                        v10.close();
                                    }
                                    return 1;
                                } catch (com.google.android.gms.measurement.internal.zzeh v0_3) {
                                    if (v13 != 0) {
                                        v13.close();
                                    }
                                    if (v10 != null) {
                                        v10.close();
                                    }
                                    throw v0_3;
                                } catch (com.google.android.gms.measurement.internal.zzeh v0_2) {
                                    v8_0 = v13;
                                    this.zzab().zzgk().zza("Error writing entry to local database", v0_2);
                                    this.zzjw = 1;
                                    if (v8_0 != null) {
                                        v8_0.close();
                                    }
                                    if (v10 == null) {
                                        v6++;
                                        v3_9 = 0;
                                        v5_2 = 5;
                                    } else {
                                        v10.close();
                                    }
                                } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                                    v8_0 = v13;
                                    android.os.SystemClock.sleep(((long) v7));
                                    v7 += 20;
                                    if (v8_0 != null) {
                                        v8_0.close();
                                    }
                                    if (v10 == null) {
                                    } else {
                                        v10.close();
                                    }
                                } catch (com.google.android.gms.measurement.internal.zzeh v0_1) {
                                }
                            } catch (com.google.android.gms.measurement.internal.zzeh v0_3) {
                                v13 = 0;
                            } catch (com.google.android.gms.measurement.internal.zzeh v0_2) {
                            } catch (com.google.android.gms.measurement.internal.zzeh v0_1) {
                                v13 = 0;
                            }
                        } else {
                            try {
                                this.zzjw = 1;
                            } catch (com.google.android.gms.measurement.internal.zzeh v0_2) {
                            } catch (com.google.android.gms.measurement.internal.zzeh v0_1) {
                                v13 = 0;
                            }
                            if (v10 != null) {
                                v10.close();
                            }
                            return v3_9;
                        }
                        v8_0 = v10;
                        if (v8_0 != null) {
                            try {
                                if (v8_0.inTransaction()) {
                                    v8_0.endTransaction();
                                }
                            } catch (com.google.android.gms.measurement.internal.zzeh v0_3) {
                                v10 = v8_0;
                            }
                        }
                        this.zzab().zzgk().zza("Error writing entry to local database", v0_1);
                        this.zzjw = 1;
                        if (v13 != 0) {
                            v13.close();
                        }
                        if (v8_0 == null) {
                        } else {
                            v8_0.close();
                        }
                    } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                        v8_0 = 0;
                    }
                } catch (com.google.android.gms.measurement.internal.zzeh v0_3) {
                    v10 = 0;
                    v13 = 0;
                } catch (com.google.android.gms.measurement.internal.zzeh v0_2) {
                    v10 = 0;
                } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                    v10 = 0;
                } catch (com.google.android.gms.measurement.internal.zzeh v0_1) {
                    v13 = 0;
                } catch (com.google.android.gms.measurement.internal.zzeh v0_3) {
                    v13 = v8_0;
                }
            }
            this.zzab().zzgn().zzao("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

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


    final void zzf(com.google.android.gms.measurement.internal.zzn p22)
    {
        void v21_1 = this.zzo();
        v21_1.zzjj();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p22);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p22.packageName);
        if ((!android.text.TextUtils.isEmpty(p22.zzcg)) || (!android.text.TextUtils.isEmpty(p22.zzcu))) {
            String v6_5 = v21_1.zzgy().zzab(p22.packageName);
            if ((v6_5 != null) && ((android.text.TextUtils.isEmpty(v6_5.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p22.zzcg)))) {
                v6_5.zzl(0);
                v21_1.zzgy().zza(v6_5);
                v21_1.zzgz().zzaz(p22.packageName);
            }
            if (p22.zzcq) {
                long v9_6 = p22.zzdr;
                if (v9_6 == 0) {
                    v9_6 = this.zzj.zzx().currentTimeMillis();
                }
                if (this.zzj.zzad().zze(p22.packageName, com.google.android.gms.measurement.internal.zzak.zzij)) {
                    this.zzj.zzw().zzct();
                }
                String v6_25 = p22.zzds;
                if ((v6_25 != null) && (v6_25 != 1)) {
                    this.zzj.zzab().zzgn().zza("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.measurement.internal.zzef.zzam(p22.packageName), Integer.valueOf(v6_25));
                    v6_25 = 0;
                }
                v21_1.zzgy().beginTransaction();
                try {
                    com.google.android.gms.measurement.internal.zzai v3_0;
                    int v19;
                    if (!this.zzj.zzad().zze(p22.packageName, com.google.android.gms.measurement.internal.zzak.zzij)) {
                        v19 = "_sys";
                        v3_0 = 1;
                    } else {
                        String v14_21 = v21_1.zzgy().zze(p22.packageName, "_npa");
                        if ((v14_21 != null) && (!"auto".equals(v14_21.origin))) {
                        } else {
                            if (p22.zzcv == null) {
                                v19 = "_sys";
                                v3_0 = 1;
                                if (v14_21 != null) {
                                    long v7_0 = new com.google.android.gms.measurement.internal.zzjn;
                                    v7_0("_npa", v9_6, 0, "auto");
                                    this.zzc(v7_0, p22);
                                }
                            } else {
                                Long v17_0;
                                String v12_2 = new com.google.android.gms.measurement.internal.zzjn;
                                if (!p22.zzcv.booleanValue()) {
                                    v17_0 = 0;
                                } else {
                                    v17_0 = 1;
                                }
                                long v7_1 = v12_2;
                                v19 = "_sys";
                                v3_0 = 1;
                                int v8_1 = v14_21;
                                v12_2("_npa", v9_6, Long.valueOf(v17_0), "auto");
                                if ((v8_1 == 0) || (!v8_1.value.equals(v7_1.zzts))) {
                                    this.zzb(v7_1, p22);
                                }
                            }
                        }
                    }
                } catch (String v0_53) {
                    v21_1.zzgy().endTransaction();
                    throw v0_53;
                }
                long v7_3 = v21_1.zzgy().zzab(p22.packageName);
                if (v7_3 == 0) {
                } else {
                    this.zzj.zzz();
                    if (!com.google.android.gms.measurement.internal.zzjs.zza(p22.zzcg, v7_3.getGmpAppId(), p22.zzcu, v7_3.zzah())) {
                    } else {
                        this.zzj.zzab().zzgn().zza("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.measurement.internal.zzef.zzam(v7_3.zzag()));
                        int v11_14 = v21_1.zzgy();
                        long v7_4 = v7_3.zzag();
                        v11_14.zzbi();
                        v11_14.zzo();
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v7_4);
                        try {
                            String v12_6 = v11_14.getWritableDatabase();
                            long v13_5 = new String[v3_0];
                            try {
                                v13_5[0] = v7_4;
                                String v14_11 = (((((((((v12_6.delete("events", "app_id=?", v13_5) + 0) + v12_6.delete("user_attributes", "app_id=?", v13_5)) + v12_6.delete("conditional_properties", "app_id=?", v13_5)) + v12_6.delete("apps", "app_id=?", v13_5)) + v12_6.delete("raw_events", "app_id=?", v13_5)) + v12_6.delete("raw_events_metadata", "app_id=?", v13_5)) + v12_6.delete("event_filters", "app_id=?", v13_5)) + v12_6.delete("property_filters", "app_id=?", v13_5)) + v12_6.delete("audience_filter_values", "app_id=?", v13_5));
                            } catch (String v0_0) {
                                v11_14.zzab().zzgk().zza("Error deleting application data. appId, error", com.google.android.gms.measurement.internal.zzef.zzam(v7_4), v0_0);
                                v7_3 = 0;
                            }
                            if (v14_11 <= null) {
                            } else {
                                v11_14.zzab().zzgs().zza("Deleted application data. app, records", v7_4, Integer.valueOf(v14_11));
                            }
                        } catch (String v0_0) {
                        }
                    }
                }
                if (v7_3 == 0) {
                } else {
                    if (v7_3.zzam() == -2147483648) {
                        if ((v7_3.zzal() == null) || (v7_3.zzal().equals(p22.zzcm))) {
                        } else {
                            String v0_9 = new android.os.Bundle();
                            v0_9.putString("_pv", v7_3.zzal());
                            long v7_9 = new com.google.android.gms.measurement.internal.zzai;
                            v7_9("_au", new com.google.android.gms.measurement.internal.zzah(v0_9), "auto", v9_6);
                            this.zzc(v7_9, p22);
                        }
                    } else {
                        if (v7_3.zzam() == p22.zzcn) {
                        } else {
                            String v0_12 = new android.os.Bundle();
                            v0_12.putString("_pv", v7_3.zzal());
                            long v7_11 = new com.google.android.gms.measurement.internal.zzai;
                            v7_11("_au", new com.google.android.gms.measurement.internal.zzah(v0_12), "auto", v9_6);
                            this.zzc(v7_11, p22);
                        }
                    }
                }
                String v0_13;
                v21_1.zzg(p22);
                if (v6_25 != null) {
                    if (v6_25 != v3_0) {
                        v0_13 = 0;
                    } else {
                        v0_13 = v21_1.zzgy().zzc(p22.packageName, "_v");
                    }
                } else {
                    v0_13 = v21_1.zzgy().zzc(p22.packageName, "_f");
                }
                if (v0_13 != null) {
                    if (p22.zzdq) {
                        com.google.android.gms.measurement.internal.zzai v3_2 = new com.google.android.gms.measurement.internal.zzai;
                        v3_2("_cd", new com.google.android.gms.measurement.internal.zzah(new android.os.Bundle()), "auto", v9_6);
                        this.zzc(v3_2, p22);
                    }
                } else {
                    com.google.android.gms.measurement.internal.zzai v3_3;
                    long v13_16 = (((v9_6 / 3600000) + 1) * 3600000);
                    if (v6_25 != null) {
                        v3_3 = "_et";
                        if (v6_25 == v3_0) {
                            int v5_4;
                            long v4_2 = new com.google.android.gms.measurement.internal.zzjn;
                            v4_2("_fvt", v9_6, Long.valueOf(v13_16), "auto");
                            this.zzb(v4_2, p22);
                            v21_1 = v21_1.zzo();
                            v21_1.zzjj();
                            long v4_4 = new android.os.Bundle();
                            v4_4.putLong("_c", 1);
                            v4_4.putLong("_r", 1);
                            if (!this.zzj.zzad().zzz(p22.packageName)) {
                                v5_4 = 1;
                            } else {
                                v5_4 = 1;
                                v4_4.putLong("_et", 1);
                            }
                            if (p22.zzdt) {
                                v4_4.putLong("_dac", v5_4);
                            }
                            String v0_20 = new com.google.android.gms.measurement.internal.zzai;
                            v0_20("_v", new com.google.android.gms.measurement.internal.zzah(v4_4), "auto", v9_6);
                            this.zzc(v0_20, p22);
                        }
                    } else {
                        String v6_7 = new com.google.android.gms.measurement.internal.zzjn;
                        v3_3 = "_et";
                        v6_7("_fot", v9_6, Long.valueOf(v13_16), "auto");
                        this.zzb(v6_7, p22);
                        if (this.zzj.zzad().zzt(p22.zzcg)) {
                            v21_1 = v21_1.zzo();
                            this.zzj.zzht().zzat(p22.packageName);
                        }
                        long v7_20;
                        v21_1 = v21_1.zzo();
                        v21_1.zzjj();
                        String v6_15 = new android.os.Bundle();
                        v6_15.putLong("_c", 1);
                        v6_15.putLong("_r", 1);
                        v6_15.putLong("_uwa", 0);
                        v6_15.putLong("_pfo", 0);
                        Long v15_11 = v19;
                        v6_15.putLong(v15_11, 0);
                        v6_15.putLong("_sysu", 0);
                        if (!this.zzj.zzad().zzz(p22.packageName)) {
                            v7_20 = 1;
                        } else {
                            v7_20 = 1;
                            v6_15.putLong("_et", 1);
                        }
                        if (p22.zzdt) {
                            v6_15.putLong("_dac", v7_20);
                        }
                        if (this.zzj.getContext().getPackageManager() != null) {
                            try {
                                String v0_27 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzj.getContext()).getPackageInfo(p22.packageName, 0);
                            } catch (String v0_28) {
                                this.zzj.zzab().zzgk().zza("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzef.zzam(p22.packageName), v0_28);
                                v0_27 = 0;
                            }
                            if ((v0_27 == null) || (v0_27.firstInstallTime == 0)) {
                                long v7_27 = v15_11;
                            } else {
                                String v0_30;
                                if (v0_27.firstInstallTime == v0_27.lastUpdateTime) {
                                    v0_30 = 1;
                                } else {
                                    v6_15.putLong("_uwa", 1);
                                    v0_30 = 0;
                                }
                                long v7_30;
                                int v5_6 = new com.google.android.gms.measurement.internal.zzjn;
                                if (v0_30 == null) {
                                    v7_30 = 0;
                                } else {
                                    v7_30 = 1;
                                }
                                v7_27 = v15_11;
                                v5_6("_fi", v9_6, Long.valueOf(v7_30), "auto");
                                this.zzb(v5_6, p22);
                            }
                            try {
                                int v8_30 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzj.getContext()).getApplicationInfo(p22.packageName, 0);
                            } catch (String v0_36) {
                                this.zzj.zzab().zzgk().zza("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzef.zzam(p22.packageName), v0_36);
                                v8_30 = 0;
                            }
                            if (v8_30 != 0) {
                                if ((v8_30.flags & 1) != 0) {
                                    v6_15.putLong(v7_27, 1);
                                }
                                if ((v8_30.flags & 128) != 0) {
                                    v6_15.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.zzj.zzab().zzgk().zza("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzef.zzam(p22.packageName));
                        }
                        String v0_45 = v21_1.zzgy();
                        int v5_13 = p22.packageName;
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v5_13);
                        v0_45.zzo();
                        v0_45.zzbi();
                        long v7_35 = v0_45.zzj(v5_13, "first_open_count");
                        if (v7_35 >= 0) {
                            v6_15.putLong("_pfo", v7_35);
                        }
                        String v0_47 = new com.google.android.gms.measurement.internal.zzai;
                        v0_47("_f", new com.google.android.gms.measurement.internal.zzah(v6_15), "auto", v9_6);
                        this.zzc(v0_47, p22);
                    }
                    if (!this.zzj.zzad().zze(p22.packageName, com.google.android.gms.measurement.internal.zzak.zzii)) {
                        String v0_52 = new android.os.Bundle();
                        v0_52.putLong(v3_3, 1);
                        if (this.zzj.zzad().zzz(p22.packageName)) {
                            v0_52.putLong("_fr", 1);
                        }
                        com.google.android.gms.measurement.internal.zzai v3_8 = new com.google.android.gms.measurement.internal.zzai;
                        v3_8("_e", new com.google.android.gms.measurement.internal.zzah(v0_52), "auto", v9_6);
                        this.zzc(v3_8, p22);
                    }
                }
                v21_1.zzgy().setTransactionSuccessful();
                v21_1.zzgy().endTransaction();
                return;
            } else {
                v21_1.zzg(p22);
                return;
            }
        } else {
            return;
        }
    }

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


    final void zzf(com.google.android.gms.measurement.internal.zzn p22)
    {
        void v21_1 = this.zzo();
        v21_1.zzjj();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p22);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p22.packageName);
        if ((!android.text.TextUtils.isEmpty(p22.zzcg)) || (!android.text.TextUtils.isEmpty(p22.zzcu))) {
            String v6_5 = v21_1.zzgy().zzab(p22.packageName);
            if ((v6_5 != null) && ((android.text.TextUtils.isEmpty(v6_5.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p22.zzcg)))) {
                v6_5.zzl(0);
                v21_1.zzgy().zza(v6_5);
                v21_1.zzgz().zzaz(p22.packageName);
            }
            if (p22.zzcq) {
                long v9_6 = p22.zzdr;
                if (v9_6 == 0) {
                    v9_6 = this.zzj.zzx().currentTimeMillis();
                }
                if (this.zzj.zzad().zze(p22.packageName, com.google.android.gms.measurement.internal.zzak.zzij)) {
                    this.zzj.zzw().zzct();
                }
                String v6_25 = p22.zzds;
                if ((v6_25 != null) && (v6_25 != 1)) {
                    this.zzj.zzab().zzgn().zza("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.measurement.internal.zzef.zzam(p22.packageName), Integer.valueOf(v6_25));
                    v6_25 = 0;
                }
                v21_1.zzgy().beginTransaction();
                try {
                    int v19;
                    com.google.android.gms.measurement.internal.zzai v3_0;
                    if (!this.zzj.zzad().zze(p22.packageName, com.google.android.gms.measurement.internal.zzak.zzij)) {
                        v19 = "_sys";
                        v3_0 = 1;
                    } else {
                        String v14_21 = v21_1.zzgy().zze(p22.packageName, "_npa");
                        if ((v14_21 != null) && (!"auto".equals(v14_21.origin))) {
                        } else {
                            if (p22.zzcv == null) {
                                v19 = "_sys";
                                v3_0 = 1;
                                if (v14_21 != null) {
                                    long v7_0 = new com.google.android.gms.measurement.internal.zzjn;
                                    v7_0("_npa", v9_6, 0, "auto");
                                    this.zzc(v7_0, p22);
                                }
                            } else {
                                Long v17_0;
                                String v12_2 = new com.google.android.gms.measurement.internal.zzjn;
                                if (!p22.zzcv.booleanValue()) {
                                    v17_0 = 0;
                                } else {
                                    v17_0 = 1;
                                }
                                long v7_1 = v12_2;
                                v19 = "_sys";
                                v3_0 = 1;
                                int v8_1 = v14_21;
                                v12_2("_npa", v9_6, Long.valueOf(v17_0), "auto");
                                if ((v8_1 == 0) || (!v8_1.value.equals(v7_1.zzts))) {
                                    this.zzb(v7_1, p22);
                                }
                            }
                        }
                    }
                } catch (String v0_53) {
                    v21_1.zzgy().endTransaction();
                    throw v0_53;
                }
                long v7_3 = v21_1.zzgy().zzab(p22.packageName);
                if (v7_3 == 0) {
                } else {
                    this.zzj.zzz();
                    if (!com.google.android.gms.measurement.internal.zzjs.zza(p22.zzcg, v7_3.getGmpAppId(), p22.zzcu, v7_3.zzah())) {
                    } else {
                        this.zzj.zzab().zzgn().zza("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.measurement.internal.zzef.zzam(v7_3.zzag()));
                        int v11_14 = v21_1.zzgy();
                        long v7_4 = v7_3.zzag();
                        v11_14.zzbi();
                        v11_14.zzo();
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v7_4);
                        try {
                            String v12_6 = v11_14.getWritableDatabase();
                            long v13_5 = new String[v3_0];
                            try {
                                v13_5[0] = v7_4;
                                String v14_11 = (((((((((v12_6.delete("events", "app_id=?", v13_5) + 0) + v12_6.delete("user_attributes", "app_id=?", v13_5)) + v12_6.delete("conditional_properties", "app_id=?", v13_5)) + v12_6.delete("apps", "app_id=?", v13_5)) + v12_6.delete("raw_events", "app_id=?", v13_5)) + v12_6.delete("raw_events_metadata", "app_id=?", v13_5)) + v12_6.delete("event_filters", "app_id=?", v13_5)) + v12_6.delete("property_filters", "app_id=?", v13_5)) + v12_6.delete("audience_filter_values", "app_id=?", v13_5));
                            } catch (String v0_0) {
                                v11_14.zzab().zzgk().zza("Error deleting application data. appId, error", com.google.android.gms.measurement.internal.zzef.zzam(v7_4), v0_0);
                                v7_3 = 0;
                            }
                            if (v14_11 <= null) {
                            } else {
                                v11_14.zzab().zzgs().zza("Deleted application data. app, records", v7_4, Integer.valueOf(v14_11));
                            }
                        } catch (String v0_0) {
                        }
                    }
                }
                if (v7_3 == 0) {
                } else {
                    if (v7_3.zzam() == -2147483648) {
                        if ((v7_3.zzal() == null) || (v7_3.zzal().equals(p22.zzcm))) {
                        } else {
                            String v0_9 = new android.os.Bundle();
                            v0_9.putString("_pv", v7_3.zzal());
                            long v7_9 = new com.google.android.gms.measurement.internal.zzai;
                            v7_9("_au", new com.google.android.gms.measurement.internal.zzah(v0_9), "auto", v9_6);
                            this.zzc(v7_9, p22);
                        }
                    } else {
                        if (v7_3.zzam() == p22.zzcn) {
                        } else {
                            String v0_12 = new android.os.Bundle();
                            v0_12.putString("_pv", v7_3.zzal());
                            long v7_11 = new com.google.android.gms.measurement.internal.zzai;
                            v7_11("_au", new com.google.android.gms.measurement.internal.zzah(v0_12), "auto", v9_6);
                            this.zzc(v7_11, p22);
                        }
                    }
                }
                String v0_13;
                v21_1.zzg(p22);
                if (v6_25 != null) {
                    if (v6_25 != v3_0) {
                        v0_13 = 0;
                    } else {
                        v0_13 = v21_1.zzgy().zzc(p22.packageName, "_v");
                    }
                } else {
                    v0_13 = v21_1.zzgy().zzc(p22.packageName, "_f");
                }
                if (v0_13 != null) {
                    if (p22.zzdq) {
                        com.google.android.gms.measurement.internal.zzai v3_2 = new com.google.android.gms.measurement.internal.zzai;
                        v3_2("_cd", new com.google.android.gms.measurement.internal.zzah(new android.os.Bundle()), "auto", v9_6);
                        this.zzc(v3_2, p22);
                    }
                } else {
                    com.google.android.gms.measurement.internal.zzai v3_3;
                    long v13_16 = (((v9_6 / 3600000) + 1) * 3600000);
                    if (v6_25 != null) {
                        v3_3 = "_et";
                        if (v6_25 == v3_0) {
                            int v5_4;
                            long v4_2 = new com.google.android.gms.measurement.internal.zzjn;
                            v4_2("_fvt", v9_6, Long.valueOf(v13_16), "auto");
                            this.zzb(v4_2, p22);
                            v21_1 = v21_1.zzo();
                            v21_1.zzjj();
                            long v4_4 = new android.os.Bundle();
                            v4_4.putLong("_c", 1);
                            v4_4.putLong("_r", 1);
                            if (!this.zzj.zzad().zzz(p22.packageName)) {
                                v5_4 = 1;
                            } else {
                                v5_4 = 1;
                                v4_4.putLong("_et", 1);
                            }
                            if (p22.zzdt) {
                                v4_4.putLong("_dac", v5_4);
                            }
                            String v0_20 = new com.google.android.gms.measurement.internal.zzai;
                            v0_20("_v", new com.google.android.gms.measurement.internal.zzah(v4_4), "auto", v9_6);
                            this.zzc(v0_20, p22);
                        }
                    } else {
                        String v6_7 = new com.google.android.gms.measurement.internal.zzjn;
                        v3_3 = "_et";
                        v6_7("_fot", v9_6, Long.valueOf(v13_16), "auto");
                        this.zzb(v6_7, p22);
                        if (this.zzj.zzad().zzt(p22.zzcg)) {
                            v21_1 = v21_1.zzo();
                            this.zzj.zzht().zzat(p22.packageName);
                        }
                        long v7_20;
                        v21_1 = v21_1.zzo();
                        v21_1.zzjj();
                        String v6_15 = new android.os.Bundle();
                        v6_15.putLong("_c", 1);
                        v6_15.putLong("_r", 1);
                        v6_15.putLong("_uwa", 0);
                        v6_15.putLong("_pfo", 0);
                        Long v15_11 = v19;
                        v6_15.putLong(v15_11, 0);
                        v6_15.putLong("_sysu", 0);
                        if (!this.zzj.zzad().zzz(p22.packageName)) {
                            v7_20 = 1;
                        } else {
                            v7_20 = 1;
                            v6_15.putLong("_et", 1);
                        }
                        if (p22.zzdt) {
                            v6_15.putLong("_dac", v7_20);
                        }
                        if (this.zzj.getContext().getPackageManager() != null) {
                            try {
                                String v0_27 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzj.getContext()).getPackageInfo(p22.packageName, 0);
                            } catch (String v0_28) {
                                this.zzj.zzab().zzgk().zza("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzef.zzam(p22.packageName), v0_28);
                                v0_27 = 0;
                            }
                            if ((v0_27 == null) || (v0_27.firstInstallTime == 0)) {
                                long v7_27 = v15_11;
                            } else {
                                String v0_30;
                                if (v0_27.firstInstallTime == v0_27.lastUpdateTime) {
                                    v0_30 = 1;
                                } else {
                                    v6_15.putLong("_uwa", 1);
                                    v0_30 = 0;
                                }
                                long v7_30;
                                int v5_6 = new com.google.android.gms.measurement.internal.zzjn;
                                if (v0_30 == null) {
                                    v7_30 = 0;
                                } else {
                                    v7_30 = 1;
                                }
                                v7_27 = v15_11;
                                v5_6("_fi", v9_6, Long.valueOf(v7_30), "auto");
                                this.zzb(v5_6, p22);
                            }
                            try {
                                int v8_30 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzj.getContext()).getApplicationInfo(p22.packageName, 0);
                            } catch (String v0_36) {
                                this.zzj.zzab().zzgk().zza("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzef.zzam(p22.packageName), v0_36);
                                v8_30 = 0;
                            }
                            if (v8_30 != 0) {
                                if ((v8_30.flags & 1) != 0) {
                                    v6_15.putLong(v7_27, 1);
                                }
                                if ((v8_30.flags & 128) != 0) {
                                    v6_15.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.zzj.zzab().zzgk().zza("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzef.zzam(p22.packageName));
                        }
                        String v0_45 = v21_1.zzgy();
                        int v5_13 = p22.packageName;
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v5_13);
                        v0_45.zzo();
                        v0_45.zzbi();
                        long v7_35 = v0_45.zzj(v5_13, "first_open_count");
                        if (v7_35 >= 0) {
                            v6_15.putLong("_pfo", v7_35);
                        }
                        String v0_47 = new com.google.android.gms.measurement.internal.zzai;
                        v0_47("_f", new com.google.android.gms.measurement.internal.zzah(v6_15), "auto", v9_6);
                        this.zzc(v0_47, p22);
                    }
                    if (!this.zzj.zzad().zze(p22.packageName, com.google.android.gms.measurement.internal.zzak.zzii)) {
                        String v0_52 = new android.os.Bundle();
                        v0_52.putLong(v3_3, 1);
                        if (this.zzj.zzad().zzz(p22.packageName)) {
                            v0_52.putLong("_fr", 1);
                        }
                        com.google.android.gms.measurement.internal.zzai v3_8 = new com.google.android.gms.measurement.internal.zzai;
                        v3_8("_e", new com.google.android.gms.measurement.internal.zzah(v0_52), "auto", v9_6);
                        this.zzc(v3_8, p22);
                    }
                }
                v21_1.zzgy().setTransactionSuccessful();
                v21_1.zzgy().endTransaction();
                return;
            } else {
                v21_1.zzg(p22);
                return;
            }
        } else {
            return;
        }
    }

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


    final void zzd(com.google.android.gms.measurement.internal.zzn p12)
    {
        if (this.zzth != null) {
            this.zzti = new java.util.ArrayList();
            this.zzti.addAll(this.zzth);
        }
        com.google.android.gms.measurement.internal.zzjg v1_1 = this.zzgy();
        android.content.Context v2_0 = p12.packageName;
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v2_0);
        v1_1.zzo();
        v1_1.zzbi();
        try {
            String v3_0 = v1_1.getWritableDatabase();
            String v4_1 = new String[1];
            v4_1[0] = v2_0;
            boolean v6_10 = (((((((((v3_0.delete("apps", "app_id=?", v4_1) + 0) + v3_0.delete("events", "app_id=?", v4_1)) + v3_0.delete("user_attributes", "app_id=?", v4_1)) + v3_0.delete("conditional_properties", "app_id=?", v4_1)) + v3_0.delete("raw_events", "app_id=?", v4_1)) + v3_0.delete("raw_events_metadata", "app_id=?", v4_1)) + v3_0.delete("queue", "app_id=?", v4_1)) + v3_0.delete("audience_filter_values", "app_id=?", v4_1)) + v3_0.delete("main_event_params", "app_id=?", v4_1));
        } catch (com.google.android.gms.measurement.internal.zzn v0_2) {
            v1_1.zzab().zzgk().zza("Error resetting analytics data. appId, error", com.google.android.gms.measurement.internal.zzef.zzam(v2_0), v0_2);
            com.google.android.gms.measurement.internal.zzn vtmp21 = this.zza(this.zzj.getContext(), p12.packageName, p12.zzcg, p12.zzcq, p12.zzcs, p12.zzct, p12.zzdr, p12.zzcu);
            if (p12.zzcq) {
                this.zzf(vtmp21);
            }
            return;
        }
        if (v6_10) {
        } else {
            v1_1.zzab().zzgs().zza("Reset analytics data. app, records", v2_0, Integer.valueOf(v6_10));
        }
    }

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


    final void zza(int p9, Throwable p10, byte[] p11, String p12)
    {
        this.zzo();
        this.zzjj();
        try {
            if (p11 == null) {
                p11 = new byte[0];
            }
        } catch (long v9_12) {
            this.zztd = 0;
            this.zzjo();
            throw v9_12;
        }
        java.util.List v0_8 = this.zzth;
        this.zzth = 0;
        int v3 = 1;
        if (((p9 != 200) && (p9 != 204)) || (p10)) {
            this.zzj.zzab().zzgs().zza("Network upload failed. Will retry later. code, error", Integer.valueOf(p9), p10);
            this.zzj.zzac().zzlk.set(this.zzj.zzx().currentTimeMillis());
            if (p9 != 503) {
                if (p9 != 429) {
                    v3 = 0;
                } else {
                }
            }
            if (v3 != 0) {
                this.zzj.zzac().zzll.set(this.zzj.zzx().currentTimeMillis());
            }
            this.zzgy().zzb(v0_8);
            this.zzjn();
        } else {
            try {
                this.zzj.zzac().zzlj.set(this.zzj.zzx().currentTimeMillis());
                this.zzj.zzac().zzlk.set(0);
                this.zzjn();
                this.zzj.zzab().zzgs().zza("Successful upload. Got network response. code, size", Integer.valueOf(p9), Integer.valueOf(p11.length));
                this.zzgy().beginTransaction();
            } catch (long v9_5) {
                this.zzj.zzab().zzgk().zza("Database error while trying to delete uploaded bundles", v9_5);
                this.zzsy = this.zzj.zzx().elapsedRealtime();
                this.zzj.zzab().zzgs().zza("Disable upload, time", Long.valueOf(this.zzsy));
            }
            long v9_19 = v0_8.iterator();
            while (v9_19.hasNext()) {
                boolean v10_2 = ((Long) v9_19.next());
                try {
                    com.google.android.gms.measurement.internal.zzeh v11_1 = this.zzgy();
                    String v6_0 = v10_2.longValue();
                    v11_1.zzo();
                    v11_1.zzbi();
                    java.util.List v0_0 = v11_1.getWritableDatabase();
                    String v2_1 = new String[1];
                    v2_1[0] = String.valueOf(v6_0);
                    try {
                        if (v0_0.delete("queue", "rowid=?", v2_1) != 1) {
                            throw new android.database.sqlite.SQLiteException("Deleted fewer rows from queue than expected");
                        } else {
                        }
                    } catch (java.util.List v0_4) {
                        v11_1.zzab().zzgk().zza("Failed to delete a bundle in a queue table", v0_4);
                        throw v0_4;
                    }
                } catch (com.google.android.gms.measurement.internal.zzeh v11_5) {
                    if (this.zzti != null) {
                        if (this.zzti.contains(v10_2)) {
                        }
                    }
                    throw v11_5;
                }
            }
            this.zzgy().setTransactionSuccessful();
            this.zzgy().endTransaction();
            this.zzti = 0;
            if ((!this.zzjf().zzgv()) || (!this.zzjm())) {
                this.zztj = -1;
                this.zzjn();
            } else {
                this.zzjl();
            }
            this.zzsy = 0;
        }
        this.zztd = 0;
        this.zzjo();
        return;
    }

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


    private final boolean zzd(String p63, long p64)
    {
        this.zzgy().beginTransaction();
        try {
            String v3_7 = 0;
            String v2_7 = new com.google.android.gms.measurement.internal.zzjg$zza(this, 0);
            int v4_184 = this.zzgy();
            com.google.android.gms.measurement.internal.zzx v5_103 = this.zztj;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_7);
            v4_184.zzo();
            v4_184.zzbi();
            try {
                String v7_2;
                int v23;
                String v15_7 = v4_184.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        Boolean v13_20;
                        String v3_9 = v5_103 cmp -1;
                        if (v3_9 == null) {
                            v13_20 = new String[] {0});
                        } else {
                            String v7_30 = new String[2];
                            v7_30[0] = 0;
                            v7_30[1] = String.valueOf(v5_103);
                            v13_20 = v7_30;
                        }
                        String v3_16;
                        if (v3_9 == null) {
                            v3_16 = "";
                        } else {
                            v3_16 = " and rowid <= ?";
                        }
                        int v14_34 = new StringBuilder((v3_16.length() + 84));
                        v14_34.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_34.append(v3_16);
                        v14_34.append(" order by rowid limit 1;");
                        v3_7 = v15_7.rawQuery(v14_34.toString(), v13_20);
                        if (v3_7.moveToFirst()) {
                            Boolean v13_24 = v3_7.getString(0);
                            v3_7.close();
                            v23 = v3_7;
                            v7_2 = v13_24;
                            v3_7 = 0;
                            try {
                                Boolean v13_3 = new String[2];
                                v13_3[0] = v3_7;
                                v13_3[1] = v7_2;
                                int v25_1 = v15_7;
                                String v15_3 = v15_7.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_3, 0, 0, "rowid", "2");
                                try {
                                    if (v15_3.moveToFirst()) {
                                        try {
                                            Boolean v13_10 = com.google.android.gms.internal.measurement.zzbs$zzg.zzd(v15_3.getBlob(0), com.google.android.gms.internal.measurement.zzel.zztq());
                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                            long v6_27 = v15_3;
                                            v4_184.zzab().zzgk().zza("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7), v0_3);
                                            if (v6_27 == 0) {
                                                String v3_14;
                                                if (v2_7.zztp == null) {
                                                    v3_14 = 1;
                                                } else {
                                                    if (!v2_7.zztp.isEmpty()) {
                                                        v3_14 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_14 != null) {
                                                    this.zzgy().setTransactionSuccessful();
                                                    this.zzgy().endTransaction();
                                                    return 0;
                                                } else {
                                                    String v3_8 = ((com.google.android.gms.internal.measurement.zzbs$zzg$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v2_7.zztn.zzuj())).zznn();
                                                    int v4_116 = this.zzj.zzad().zze(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zzii);
                                                    String v7_25 = 0;
                                                    int v12_19 = 0;
                                                    String v15_4 = 0;
                                                    int v8_16 = -1;
                                                    com.google.android.gms.measurement.internal.zzae v9_37 = -1;
                                                    Boolean v13_11 = 0;
                                                    Object v18_2 = 0;
                                                    String v19_2 = 0;
                                                    while(true) {
                                                        int v21_1 = v12_19;
                                                        long v26_1 = v13_11;
                                                        if (v7_25 >= v2_7.zztp.size()) {
                                                            break;
                                                        }
                                                        long v6_31;
                                                        String v31_0;
                                                        com.google.android.gms.measurement.internal.zzae v9_36;
                                                        Long v11_14 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) ((com.google.android.gms.internal.measurement.zzbs$zzc) v2_7.zztp.get(v7_25)).zzuj()));
                                                        if (!this.zzgz().zzk(v2_7.zztn.zzag(), v11_14.getName())) {
                                                            long v33_0;
                                                            com.google.android.gms.measurement.internal.zzae v30_0;
                                                            int v25_0;
                                                            String v7_15;
                                                            com.google.android.gms.measurement.internal.zzae v9_26;
                                                            String v32_0;
                                                            long v10_30 = this.zzgz().zzl(v2_7.zztn.zzag(), v11_14.getName());
                                                            if (v10_30 != 0) {
                                                                v30_0 = v7_25;
                                                                v25_0 = v15_4;
                                                                v31_0 = v4_116;
                                                                String v7_16 = 0;
                                                                int v14_9 = 0;
                                                                String v15_1 = 0;
                                                                while(true) {
                                                                    v32_0 = v8_16;
                                                                    if (v7_16 >= v11_14.zzmk()) {
                                                                        break;
                                                                    }
                                                                    long v33_1;
                                                                    if (!"_c".equals(v11_14.zzl(v7_16).getName())) {
                                                                        v33_1 = v9_37;
                                                                        if ("_r".equals(v11_14.zzl(v7_16).getName())) {
                                                                            v11_14.zza(v7_16, ((com.google.android.gms.internal.measurement.zzbs$zze) ((com.google.android.gms.internal.measurement.zzey) ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v11_14.zzl(v7_16).zzuj())).zzam(1).zzug())));
                                                                            v15_1 = 1;
                                                                        }
                                                                    } else {
                                                                        v33_1 = v9_37;
                                                                        v11_14.zza(v7_16, ((com.google.android.gms.internal.measurement.zzbs$zze) ((com.google.android.gms.internal.measurement.zzey) ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v11_14.zzl(v7_16).zzuj())).zzam(1).zzug())));
                                                                        v14_9 = 1;
                                                                    }
                                                                    v7_16++;
                                                                    v8_16 = v32_0;
                                                                    v9_37 = v33_1;
                                                                }
                                                                v33_0 = v9_37;
                                                                if ((v14_9 != 0) || (v10_30 == 0)) {
                                                                    v7_15 = "_et";
                                                                    v9_26 = "_e";
                                                                } else {
                                                                    this.zzj.zzab().zzgs().zza("Marking event as conversion", this.zzj.zzy().zzaj(v11_14.getName()));
                                                                    v7_15 = "_et";
                                                                    v9_26 = "_e";
                                                                    v11_14.zza(com.google.android.gms.internal.measurement.zzbs$zze.zzng().zzbz("_c").zzam(1));
                                                                }
                                                                if (v15_1 == null) {
                                                                    this.zzj.zzab().zzgs().zza("Marking event as real-time", this.zzj.zzy().zzaj(v11_14.getName()));
                                                                    v11_14.zza(com.google.android.gms.internal.measurement.zzbs$zze.zzng().zzbz("_r").zzam(1));
                                                                }
                                                                if (this.zzgy().zza(this.zzjk(), v2_7.zztn.zzag(), 0, 0, 0, 0, 1).zzej <= ((long) this.zzj.zzad().zzi(v2_7.zztn.zzag()))) {
                                                                    v21_1 = 1;
                                                                } else {
                                                                    com.google.android.gms.measurement.internal.zzjg.zza(v11_14, "_r");
                                                                }
                                                                if ((com.google.android.gms.measurement.internal.zzjs.zzbk(v11_14.getName())) && ((v10_30 != 0) && (this.zzgy().zza(this.zzjk(), v2_7.zztn.zzag(), 0, 0, 1, 0, 0).zzeh > ((long) this.zzj.zzad().zzb(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zzgs))))) {
                                                                    this.zzj.zzab().zzgn().zza("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                    int v4_27 = 0;
                                                                    com.google.android.gms.measurement.internal.zzx v5_6 = 0;
                                                                    long v6_22 = 0;
                                                                    int v8_10 = -1;
                                                                    while (v4_27 < v11_14.zzmk()) {
                                                                        int v14_27 = v11_14.zzl(v4_27);
                                                                        if (!"_c".equals(v14_27.getName())) {
                                                                            if ("_err".equals(v14_27.getName())) {
                                                                                v5_6 = 1;
                                                                            }
                                                                        } else {
                                                                            v6_22 = ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v14_27.zzuj()));
                                                                            v8_10 = v4_27;
                                                                        }
                                                                        v4_27++;
                                                                    }
                                                                    if ((v5_6 == null) || (v6_22 == 0)) {
                                                                        if (v6_22 == 0) {
                                                                            this.zzj.zzab().zzgk().zza("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                        } else {
                                                                            v11_14.zza(v8_10, ((com.google.android.gms.internal.measurement.zzbs$zze) ((com.google.android.gms.internal.measurement.zzey) ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v6_22.clone())).zzbz("_err").zzam(10).zzug())));
                                                                        }
                                                                    } else {
                                                                        v11_14.zzm(v8_10);
                                                                    }
                                                                }
                                                            } else {
                                                                String v7_7;
                                                                this.zzgw();
                                                                int v14_6 = v11_14.getName();
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v14_6);
                                                                v25_0 = v15_4;
                                                                String v15_0 = v14_6.hashCode();
                                                                v30_0 = v7_25;
                                                                if (v15_0 == 94660) {
                                                                    if (!v14_6.equals("_in")) {
                                                                        v7_7 = -1;
                                                                    } else {
                                                                        v7_7 = 0;
                                                                    }
                                                                } else {
                                                                    if (v15_0 == 95025) {
                                                                        if (!v14_6.equals("_ug")) {
                                                                        } else {
                                                                            v7_7 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v15_0 == 95027) {
                                                                            if (!v14_6.equals("_ui")) {
                                                                            } else {
                                                                                v7_7 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                if ((v7_7 == null) || ((v7_7 == 1) || (v7_7 == 2))) {
                                                                    String v7_14 = 1;
                                                                } else {
                                                                    v7_14 = 0;
                                                                }
                                                                if (v7_14 == null) {
                                                                    v31_0 = v4_116;
                                                                    v7_15 = "_et";
                                                                    v32_0 = v8_16;
                                                                    v33_0 = v9_37;
                                                                    v9_26 = "_e";
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzj.zzad().zzs(v2_7.zztn.zzag())) || (v10_30 == 0)) {
                                                            } else {
                                                                int v4_43 = new java.util.ArrayList(v11_14.zzmj());
                                                                com.google.android.gms.measurement.internal.zzx v5_12 = 0;
                                                                long v6_26 = -1;
                                                                int v8_11 = -1;
                                                                while (v5_12 < v4_43.size()) {
                                                                    if (!"value".equals(((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v5_12)).getName())) {
                                                                        if ("currency".equals(((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v5_12)).getName())) {
                                                                            v8_11 = v5_12;
                                                                        }
                                                                    } else {
                                                                        v6_26 = v5_12;
                                                                    }
                                                                    v5_12++;
                                                                }
                                                                if (v6_26 == -1) {
                                                                } else {
                                                                    if ((((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v6_26)).zzna()) || (((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v6_26)).zznd())) {
                                                                        int v4_47;
                                                                        if (v8_11 != -1) {
                                                                            int v4_46 = ((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v8_11)).zzmy();
                                                                            if (v4_46.length() == 3) {
                                                                                int v8_13 = 0;
                                                                                while (v8_13 < v4_46.length()) {
                                                                                    int v12_8 = v4_46.codePointAt(v8_13);
                                                                                    if (Character.isLetter(v12_8)) {
                                                                                        v8_13 += Character.charCount(v12_8);
                                                                                    } else {
                                                                                    }
                                                                                }
                                                                                v4_47 = 0;
                                                                                if (v4_47 != 0) {
                                                                                    this.zzj.zzab().zzgp().zzao("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                    v11_14.zzm(v6_26);
                                                                                    com.google.android.gms.measurement.internal.zzjg.zza(v11_14, "_c");
                                                                                    com.google.android.gms.measurement.internal.zzjg.zza(v11_14, 19, "currency");
                                                                                }
                                                                                if (!this.zzj.zzad().zze(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zzih)) {
                                                                                    v8_16 = v32_0;
                                                                                    v6_31 = v33_0;
                                                                                } else {
                                                                                    if (!v9_26.equals(v11_14.getName())) {
                                                                                        v6_31 = v33_0;
                                                                                        if ("_vs".equals(v11_14.getName())) {
                                                                                            this.zzgw();
                                                                                            if (com.google.android.gms.measurement.internal.zzjo.zza(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())), v7_15) == null) {
                                                                                                if ((v18_2 != null) && (Math.abs((v18_2.getTimestampMillis() - v11_14.getTimestampMillis())) <= 1000)) {
                                                                                                    int v4_70 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v18_2.clone()));
                                                                                                    if (this.zza(v4_70, v11_14)) {
                                                                                                        v8_16 = v32_0;
                                                                                                        v3_8.zza(v8_16, v4_70);
                                                                                                        v18_2 = 0;
                                                                                                        v19_2 = 0;
                                                                                                        if ((v31_0 != null) || (!v9_26.equals(v11_14.getName()))) {
                                                                                                            v13_11 = v26_1;
                                                                                                        } else {
                                                                                                            if (v11_14.zzmk() != 0) {
                                                                                                                this.zzgw();
                                                                                                                int v4_86 = ((Long) com.google.android.gms.measurement.internal.zzjo.zzb(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())), v7_15));
                                                                                                                if (v4_86 != 0) {
                                                                                                                    v13_11 = (v26_1 + v4_86.longValue());
                                                                                                                } else {
                                                                                                                    this.zzj.zzab().zzgn().zza("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                                                                }
                                                                                                            } else {
                                                                                                                this.zzj.zzab().zzgn().zza("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                                                            }
                                                                                                        }
                                                                                                        v9_36 = v30_0;
                                                                                                        v2_7.zztp.set(v9_36, ((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())));
                                                                                                        v15_4 = (v25_0 + 1);
                                                                                                        v3_8.zza(v11_14);
                                                                                                        v12_19 = v21_1;
                                                                                                        v7_25 = (v9_36 + 1);
                                                                                                        v9_37 = v6_31;
                                                                                                        v4_116 = v31_0;
                                                                                                    }
                                                                                                }
                                                                                                v8_16 = v32_0;
                                                                                                v19_2 = v11_14;
                                                                                                v6_31 = v25_0;
                                                                                            }
                                                                                        }
                                                                                    } else {
                                                                                        this.zzgw();
                                                                                        if (com.google.android.gms.measurement.internal.zzjo.zza(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())), "_fr") != null) {
                                                                                            v6_31 = v33_0;
                                                                                        } else {
                                                                                            if ((v19_2 != null) && (Math.abs((v19_2.getTimestampMillis() - v11_14.getTimestampMillis())) <= 1000)) {
                                                                                                int v4_78 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v19_2.clone()));
                                                                                                if (this.zza(v11_14, v4_78)) {
                                                                                                    v6_31 = v33_0;
                                                                                                    v3_8.zza(v6_31, v4_78);
                                                                                                    v8_16 = v32_0;
                                                                                                }
                                                                                            }
                                                                                            v6_31 = v33_0;
                                                                                            v18_2 = v11_14;
                                                                                            v8_16 = v25_0;
                                                                                        }
                                                                                    }
                                                                                    v8_16 = v32_0;
                                                                                }
                                                                            }
                                                                            v4_47 = 1;
                                                                        } else {
                                                                            v4_47 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzj.zzab().zzgp().zzao("Value must be specified with a numeric type.");
                                                                        v11_14.zzm(v6_26);
                                                                        com.google.android.gms.measurement.internal.zzjg.zza(v11_14, "_c");
                                                                        com.google.android.gms.measurement.internal.zzjg.zza(v11_14, 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            com.google.android.gms.measurement.internal.zzx v5_32;
                                                            this.zzj.zzab().zzgn().zza("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()), this.zzj.zzy().zzaj(v11_14.getName()));
                                                            if (this.zzgz().zzbc(v2_7.zztn.zzag())) {
                                                                v5_32 = 1;
                                                            } else {
                                                                if (!this.zzgz().zzbd(v2_7.zztn.zzag())) {
                                                                    v5_32 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_32 == null) && (!"_err".equals(v11_14.getName()))) {
                                                                this.zzj.zzz().zza(v2_7.zztn.zzag(), 11, "_ev", v11_14.getName(), 0);
                                                            }
                                                            v31_0 = v4_116;
                                                            v6_31 = v9_37;
                                                            v12_19 = v21_1;
                                                            v13_11 = v26_1;
                                                            long v10 = 3;
                                                            v9_36 = v7_25;
                                                        }
                                                    }
                                                    Boolean v13_2;
                                                    if (v4_116 == 0) {
                                                        v13_2 = v26_1;
                                                    } else {
                                                        com.google.android.gms.measurement.internal.zzx v5_1 = v15_4;
                                                        v13_2 = v26_1;
                                                        int v4_0 = 0;
                                                        while (v4_0 < v5_1) {
                                                            long v6_6 = v3_8.zzq(v4_0);
                                                            if (!"_e".equals(v6_6.getName())) {
                                                                this.zzgw();
                                                                long v6_7 = com.google.android.gms.measurement.internal.zzjo.zza(v6_6, "_et");
                                                                if (v6_7 != 0) {
                                                                    long v6_8;
                                                                    if (!v6_7.zzna()) {
                                                                        v6_8 = 0;
                                                                    } else {
                                                                        v6_8 = Long.valueOf(v6_7.zznb());
                                                                    }
                                                                    if ((v6_8 != 0) && (v6_8.longValue() > 0)) {
                                                                        v13_2 += v6_8.longValue();
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzgw();
                                                                if (com.google.android.gms.measurement.internal.zzjo.zza(v6_6, "_fr") == null) {
                                                                } else {
                                                                    v3_8.zzr(v4_0);
                                                                    v5_1--;
                                                                    v4_0--;
                                                                }
                                                            }
                                                            v4_0++;
                                                        }
                                                    }
                                                    Object v1_0 = this.zza(v3_8, v13_2, 0);
                                                    if (!v1_0.zzj.zzad().zze(v3_8.zzag(), com.google.android.gms.measurement.internal.zzak.zzja)) {
                                                        if (v1_0.zzj.zzad().zze(v3_8.zzag(), com.google.android.gms.measurement.internal.zzak.zzjb)) {
                                                            this.zzgy().zzd(v3_8.zzag(), "_se");
                                                        }
                                                    } else {
                                                        int v4_130 = v3_8.zznl().iterator();
                                                        while (v4_130.hasNext()) {
                                                            if ("_s".equals(((com.google.android.gms.internal.measurement.zzbs$zzc) v4_130.next()).getName())) {
                                                                int v4_131 = 1;
                                                            }
                                                            if (v4_131 != 0) {
                                                                this.zzgy().zzd(v3_8.zzag(), "_se");
                                                            }
                                                            v1_0 = v1_0.zza(v3_8, v13_2, 1);
                                                        }
                                                        v4_131 = 0;
                                                    }
                                                    if (v1_0.zzj.zzad().zze(v3_8.zzag(), com.google.android.gms.measurement.internal.zzak.zzij)) {
                                                        int v4_137 = this.zzgw();
                                                        v4_137.zzab().zzgs().zzao("Checking account type status for ad personalization signals");
                                                        if (v4_137.zzgz().zzba(v3_8.zzag())) {
                                                            com.google.android.gms.measurement.internal.zzx v5_60 = v4_137.zzgy().zzab(v3_8.zzag());
                                                            if ((v5_60 != null) && ((v5_60.zzbe()) && (v4_137.zzw().zzcu()))) {
                                                                v4_137.zzab().zzgr().zzao("Turning off ad personalization due to account type");
                                                                int v4_143 = ((com.google.android.gms.internal.measurement.zzbs$zzk) ((com.google.android.gms.internal.measurement.zzey) com.google.android.gms.internal.measurement.zzbs$zzk.zzqu().zzdb("_npa").zzbk(v4_137.zzw().zzcs()).zzbl(1).zzug()));
                                                                com.google.android.gms.measurement.internal.zzx v5_69 = 0;
                                                                while (v5_69 < v3_8.zznp()) {
                                                                    if (!"_npa".equals(v3_8.zzs(v5_69).getName())) {
                                                                        v5_69++;
                                                                    } else {
                                                                        v3_8.zza(v5_69, v4_143);
                                                                        com.google.android.gms.measurement.internal.zzx v5_70 = 1;
                                                                    }
                                                                    if (v5_70 == null) {
                                                                        v3_8.zza(v4_143);
                                                                    }
                                                                }
                                                                v5_70 = 0;
                                                            }
                                                        }
                                                    }
                                                    Object v1_19;
                                                    String v3_22;
                                                    int v4_144 = v3_8.zznv();
                                                    com.google.android.gms.measurement.internal.zzx v5_71 = v3_8.zzag();
                                                    long v6_71 = v3_8.zzno();
                                                    String v7_41 = v3_8.zznl();
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v5_71);
                                                    v4_144.zzc(this.zzgx().zza(v5_71, v7_41, v6_71));
                                                    try {
                                                        if (!v1_0.zzj.zzad().zzm(v2_7.zztn.zzag())) {
                                                            v1_19 = v3_8;
                                                            v3_22 = v2_7;
                                                        } else {
                                                            int v4_149 = new java.util.HashMap();
                                                            com.google.android.gms.measurement.internal.zzx v5_76 = new java.util.ArrayList();
                                                            long v6_5 = v1_0.zzj.zzz().zzjw();
                                                            String v7_3 = 0;
                                                            while (v7_3 < v3_8.zznm()) {
                                                                String v2_5;
                                                                String v3_3;
                                                                Object v1_13;
                                                                long v63_0;
                                                                int v8_27 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v3_8.zzq(v7_3).zzuj()));
                                                                if (!v8_27.getName().equals("_ep")) {
                                                                    com.google.android.gms.measurement.internal.zzae v9_61;
                                                                    Long v11_21 = this.zzgz().zzbb(v2_7.zztn.zzag());
                                                                    v1_0.zzj.zzz();
                                                                    Boolean v13_28 = com.google.android.gms.measurement.internal.zzjs.zzc(v8_27.getTimestampMillis(), v11_21);
                                                                    com.google.android.gms.measurement.internal.zzae v9_47 = ((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug()));
                                                                    long v26_2 = v11_21;
                                                                    Long v11_22 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v11_22 != null)) {
                                                                        com.google.android.gms.measurement.internal.zzae v9_49 = v9_47.zzmj().iterator();
                                                                        while (v9_49.hasNext()) {
                                                                            int v12_37 = ((com.google.android.gms.internal.measurement.zzbs$zze) v9_49.next());
                                                                            if (!"_dbg".equals(v12_37.getName())) {
                                                                            } else {
                                                                                if (((!(v11_22 instanceof Long)) || (!v11_22.equals(Long.valueOf(v12_37.zznb())))) && (((!(v11_22 instanceof String)) || (!v11_22.equals(v12_37.zzmy()))) && ((!(v11_22 instanceof Double)) || (!v11_22.equals(Double.valueOf(v12_37.zzne())))))) {
                                                                                    break;
                                                                                }
                                                                                v9_61 = 1;
                                                                            }
                                                                        }
                                                                        v9_61 = 0;
                                                                    }
                                                                    int v12_38;
                                                                    if (v9_61 != null) {
                                                                        v12_38 = 1;
                                                                    } else {
                                                                        v12_38 = this.zzgz().zzm(v2_7.zztn.zzag(), v8_27.getName());
                                                                    }
                                                                    if (v12_38 > 0) {
                                                                        Object v18_7;
                                                                        com.google.android.gms.measurement.internal.zzae v9_1 = ((com.google.android.gms.measurement.internal.zzae) v4_149.get(v8_27.getName()));
                                                                        if (v9_1 != null) {
                                                                            v18_7 = v13_28;
                                                                        } else {
                                                                            v9_1 = this.zzgy().zzc(v2_7.zztn.zzag(), v8_27.getName());
                                                                            if (v9_1 != null) {
                                                                            } else {
                                                                                v18_7 = v13_28;
                                                                                v1_0.zzj.zzab().zzgn().zza("Event being bundled has no eventAggregate. appId, eventName", v2_7.zztn.zzag(), v8_27.getName());
                                                                                if (!v1_0.zzj.zzad().zze(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zziz)) {
                                                                                    v9_1 = new com.google.android.gms.measurement.internal.zzae;
                                                                                    v9_1(v2_7.zztn.zzag(), v8_27.getName(), 1, 1, v8_27.getTimestampMillis(), 0, 0, 0, 0, 0);
                                                                                } else {
                                                                                    v9_1 = new com.google.android.gms.measurement.internal.zzae;
                                                                                    v9_1(v2_7.zztn.zzag(), v8_27.getName(), 1, 1, 1, v8_27.getTimestampMillis(), 0, 0, 0, 0, 0);
                                                                                }
                                                                            }
                                                                        }
                                                                        Boolean v13_32;
                                                                        this.zzgw();
                                                                        Long v11_36 = ((Long) com.google.android.gms.measurement.internal.zzjo.zzb(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())), "_eid"));
                                                                        if (v11_36 == null) {
                                                                            v13_32 = 0;
                                                                        } else {
                                                                            v13_32 = 1;
                                                                        }
                                                                        Boolean v13_33 = Boolean.valueOf(v13_32);
                                                                        if (v12_38 != 1) {
                                                                            if (v6_5.nextInt(v12_38) != 0) {
                                                                                v63_0 = v6_5;
                                                                                int v14_38 = v18_7;
                                                                                String v19_0;
                                                                                Object v1_6;
                                                                                Object v18_8 = v3_8;
                                                                                if (!v1_0.zzj.zzad().zzu(v2_7.zztn.zzag())) {
                                                                                    v3_3 = v2_7;
                                                                                    v19_0 = v7_3;
                                                                                    if (Math.abs((v8_27.getTimestampMillis() - v9_1.zzfk)) < 86400000) {
                                                                                        v1_6 = 0;
                                                                                    } else {
                                                                                        v1_6 = 1;
                                                                                    }
                                                                                } else {
                                                                                    long v26_0;
                                                                                    if (v9_1.zzfl == null) {
                                                                                        v1_0.zzj.zzz();
                                                                                        v3_3 = v2_7;
                                                                                        v19_0 = v7_3;
                                                                                        v26_0 = com.google.android.gms.measurement.internal.zzjs.zzc(v8_27.zzmm(), v26_2);
                                                                                    } else {
                                                                                        v26_0 = v9_1.zzfl.longValue();
                                                                                        v3_3 = v2_7;
                                                                                        v19_0 = v7_3;
                                                                                    }
                                                                                    if (v26_0 == v14_38) {
                                                                                    }
                                                                                }
                                                                                if (v1_6 == null) {
                                                                                    if (v13_33.booleanValue()) {
                                                                                        v4_149.put(v8_27.getName(), v9_1.zza(v11_36, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzgw();
                                                                                    com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_efs", Long.valueOf(1));
                                                                                    this.zzgw();
                                                                                    Object v1_10 = ((long) v12_38);
                                                                                    com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_sr", Long.valueOf(v1_10));
                                                                                    v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                                    if (v13_33.booleanValue()) {
                                                                                        v9_1 = v9_1.zza(0, Long.valueOf(v1_10), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_149.put(v8_27.getName(), v9_1.zza(v8_27.getTimestampMillis(), v14_38));
                                                                                }
                                                                                v1_13 = v18_8;
                                                                                v2_5 = v19_0;
                                                                            } else {
                                                                                this.zzgw();
                                                                                Long v11_1 = ((long) v12_38);
                                                                                com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_sr", Long.valueOf(v11_1));
                                                                                v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                                if (v13_33.booleanValue()) {
                                                                                    v9_1 = v9_1.zza(0, Long.valueOf(v11_1), 0);
                                                                                }
                                                                                v4_149.put(v8_27.getName(), v9_1.zza(v8_27.getTimestampMillis(), v18_7));
                                                                                v1_13 = v3_8;
                                                                                v63_0 = v6_5;
                                                                                v3_3 = v2_7;
                                                                                v2_5 = v7_3;
                                                                            }
                                                                            v1_13.zza(v2_5, v8_27);
                                                                        } else {
                                                                            v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                            if ((v13_33.booleanValue()) && ((v9_1.zzfm != null) || ((v9_1.zzfn != null) || (v9_1.zzfo != null)))) {
                                                                                v4_149.put(v8_27.getName(), v9_1.zza(0, 0, 0));
                                                                            }
                                                                            v3_8.zza(v7_3, v8_27);
                                                                            v1_13 = v3_8;
                                                                            v63_0 = v6_5;
                                                                            v3_3 = v2_7;
                                                                            v2_5 = v7_3;
                                                                        }
                                                                    } else {
                                                                        v1_0.zzj.zzab().zzgn().zza("Sample rate must be positive. event, rate", v8_27.getName(), Integer.valueOf(v12_38));
                                                                        v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                        v3_8.zza(v7_3, v8_27);
                                                                    }
                                                                } else {
                                                                    this.zzgw();
                                                                    com.google.android.gms.measurement.internal.zzae v9_14 = ((String) com.google.android.gms.measurement.internal.zzjo.zzb(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())), "_en"));
                                                                    Long v11_7 = ((com.google.android.gms.measurement.internal.zzae) v4_149.get(v9_14));
                                                                    if (v11_7 == null) {
                                                                        v11_7 = this.zzgy().zzc(v2_7.zztn.zzag(), v9_14);
                                                                        v4_149.put(v9_14, v11_7);
                                                                    }
                                                                    if (v11_7.zzfm == null) {
                                                                        if (v11_7.zzfn.longValue() > 1) {
                                                                            this.zzgw();
                                                                            com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_sr", v11_7.zzfn);
                                                                        }
                                                                        if ((v11_7.zzfo != null) && (v11_7.zzfo.booleanValue())) {
                                                                            this.zzgw();
                                                                            com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_efs", Long.valueOf(1));
                                                                        }
                                                                        v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                    }
                                                                    v3_8.zza(v7_3, v8_27);
                                                                }
                                                                v6_5 = v63_0;
                                                                v7_3 = (v2_5 + 1);
                                                                v2_7 = v3_3;
                                                                v3_8 = v1_13;
                                                                v1_0 = this;
                                                            }
                                                            v1_19 = v3_8;
                                                            v3_22 = v2_7;
                                                            if (v5_76.size() < v1_19.zznm()) {
                                                                v1_19.zznn().zza(v5_76);
                                                            }
                                                            String v2_14 = v4_149.entrySet().iterator();
                                                            while (v2_14.hasNext()) {
                                                                this.zzgy().zza(((com.google.android.gms.measurement.internal.zzae) ((java.util.Map$Entry) v2_14.next()).getValue()));
                                                            }
                                                        }
                                                    } catch (android.database.sqlite.SQLiteException v0_2) {
                                                        Object v1_14 = v0_2;
                                                        this.zzgy().endTransaction();
                                                        throw v1_14;
                                                    }
                                                    v1_19.zzao(nan).zzap(-0.0);
                                                    String v2_16 = 0;
                                                    while (v2_16 < v1_19.zznm()) {
                                                        int v4_180 = v1_19.zzq(v2_16);
                                                        if (v4_180.getTimestampMillis() < v1_19.zznq()) {
                                                            v1_19.zzao(v4_180.getTimestampMillis());
                                                        }
                                                        if (v4_180.getTimestampMillis() > v1_19.zznr()) {
                                                            v1_19.zzap(v4_180.getTimestampMillis());
                                                        }
                                                        v2_16++;
                                                    }
                                                    long v6_75;
                                                    String v2_18 = v3_22.zztn.zzag();
                                                    int v4_155 = this.zzgy().zzab(v2_18);
                                                    if (v4_155 != 0) {
                                                        v6_75 = this;
                                                        if (v1_19.zznm() > 0) {
                                                            String v7_42 = v4_155.zzak();
                                                            if (v7_42 == 0) {
                                                                v1_19.zznt();
                                                            } else {
                                                                v1_19.zzar(v7_42);
                                                            }
                                                            com.google.android.gms.measurement.internal.zzae v9_40 = v4_155.zzaj();
                                                            if (v9_40 != 0) {
                                                                v7_42 = v9_40;
                                                            } else {
                                                            }
                                                            if (v7_42 == 0) {
                                                                v1_19.zzns();
                                                            } else {
                                                                v1_19.zzaq(v7_42);
                                                            }
                                                            v4_155.zzau();
                                                            v1_19.zzu(((int) v4_155.zzar()));
                                                            v4_155.zze(v1_19.zznq());
                                                            v4_155.zzf(v1_19.zznr());
                                                            com.google.android.gms.measurement.internal.zzx v5_82 = v4_155.zzbc();
                                                            if (v5_82 == null) {
                                                                v1_19.zznu();
                                                            } else {
                                                                v1_19.zzcl(v5_82);
                                                            }
                                                            this.zzgy().zza(v4_155);
                                                        }
                                                    } else {
                                                        v6_75 = this;
                                                        this.zzj.zzab().zzgk().zza("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_22.zztn.zzag()));
                                                    }
                                                    if (v1_19.zznm() > 0) {
                                                        v6_75.zzj.zzae();
                                                        int v4_162 = this.zzgz().zzaw(v3_22.zztn.zzag());
                                                        if (v4_162 == 0) {
                                                            if (!android.text.TextUtils.isEmpty(v3_22.zztn.getGmpAppId())) {
                                                                v6_75.zzj.zzab().zzgn().zza("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_22.zztn.zzag()));
                                                            } else {
                                                                v1_19.zzav(-1);
                                                            }
                                                        } else {
                                                            if (v4_162.zzzk != null) {
                                                                v1_19.zzav(v4_162.zzzk.longValue());
                                                            } else {
                                                            }
                                                        }
                                                        this.zzgy().zza(((com.google.android.gms.internal.measurement.zzbs$zzg) ((com.google.android.gms.internal.measurement.zzey) v1_19.zzug())), v21_1);
                                                    }
                                                    Object v1_23 = this.zzgy();
                                                    String v3_23 = v3_22.zzto;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_23);
                                                    v1_23.zzo();
                                                    v1_23.zzbi();
                                                    int v4_174 = new StringBuilder("rowid in (");
                                                    com.google.android.gms.measurement.internal.zzx v5_90 = 0;
                                                    while (v5_90 < v3_23.size()) {
                                                        if (v5_90 != null) {
                                                            v4_174.append(",");
                                                        }
                                                        v4_174.append(((Long) v3_23.get(v5_90)).longValue());
                                                        v5_90++;
                                                    }
                                                    v4_174.append(")");
                                                    int v4_176 = v1_23.getWritableDatabase().delete("raw_events", v4_174.toString(), 0);
                                                    if (v4_176 != v3_23.size()) {
                                                        v1_23.zzab().zzgk().zza("Deleted fewer rows from raw events table than expected", Integer.valueOf(v4_176), Integer.valueOf(v3_23.size()));
                                                    }
                                                    Object v1_26 = this.zzgy();
                                                    String v3_26 = v1_26.getWritableDatabase();
                                                    try {
                                                        com.google.android.gms.measurement.internal.zzx v5_96 = new String[2];
                                                        v5_96[0] = v2_18;
                                                        v5_96[1] = v2_18;
                                                        v3_26.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v5_96);
                                                    } catch (android.database.sqlite.SQLiteException v0_6) {
                                                        v1_26.zzab().zzgk().zza("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_18), v0_6);
                                                    }
                                                    this.zzgy().setTransactionSuccessful();
                                                    this.zzgy().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v6_27.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v7_2 = v3_7;
                                            com.google.android.gms.measurement.internal.zzx v5_0 = v6_27;
                                            String v3_10 = v0_0;
                                            try {
                                                v4_184.zzab().zzgk().zza("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzef.zzam(v7_2), v3_10);
                                            } catch (android.database.sqlite.SQLiteException v0_5) {
                                                Object v1_15 = v0_5;
                                                int v22 = v5_0;
                                                if (v22 != 0) {
                                                    v22.close();
                                                }
                                                throw v1_15;
                                            }
                                            if (v5_0 == null) {
                                            } else {
                                                v5_0.close();
                                            }
                                        }
                                        if (v15_3.moveToNext()) {
                                            v4_184.zzab().zzgn().zza("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7));
                                        }
                                        String v16_2;
                                        String[] v17_2;
                                        v15_3.close();
                                        v2_7.zzb(v13_10);
                                        if (v5_103 == -1) {
                                            long v10_44 = new String[2];
                                            v10_44[0] = v3_7;
                                            v10_44[1] = v7_2;
                                            v16_2 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_2 = v10_44;
                                        } else {
                                            Boolean v13_15 = new String[3];
                                            v13_15[0] = v3_7;
                                            v13_15[1] = v7_2;
                                            v13_15[2] = String.valueOf(v5_103);
                                            v16_2 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_2 = v13_15;
                                        }
                                        v6_27 = v15_3;
                                        v5_0 = v25_1.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_2, v17_2, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_0.moveToFirst()) {
                                                v4_184.zzab().zzgn().zza("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7));
                                                if (v5_0 == null) {
                                                } else {
                                                    v5_0.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v22 = v5_0;
                                            v1_15 = v0_1;
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v7_2 = v3_7;
                                        }
                                        do {
                                            long v6_46 = v5_0.getLong(0);
                                            long v10_50 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) com.google.android.gms.internal.measurement.zzbs$zzc.zzmq().zzf(v5_0.getBlob(3), com.google.android.gms.internal.measurement.zzel.zztq()));
                                            v10_50.zzbx(v5_0.getString(1)).zzag(v5_0.getLong(2));
                                            if (v2_7.zza(v6_46, ((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v10_50.zzug())))) {
                                            } else {
                                                if (v5_0 == null) {
                                                } else {
                                                    v5_0.close();
                                                }
                                            }
                                        } while(v5_0.moveToNext());
                                        if (v5_0 == null) {
                                        } else {
                                            v5_0.close();
                                        }
                                    } else {
                                        v4_184.zzab().zzgk().zza("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7));
                                        if (v15_3 == null) {
                                        } else {
                                            v15_3.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v6_27 = v15_3;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_27 = v15_3;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v22 = v15_3;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v7_2 = v3_7;
                                    v5_0 = v15_3;
                                }
                                v22 = v6_27;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v22 = v23;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v7_2 = v3_7;
                                v5_0 = v23;
                            }
                        } else {
                            if (v3_7 == null) {
                            } else {
                                v3_7.close();
                            }
                        }
                    } else {
                        int v14_35;
                        Boolean v13_25 = v5_103 cmp -1;
                        try {
                            if (v13_25 == null) {
                                v14_35 = new String[1];
                                v14_35[0] = String.valueOf(p64);
                            } else {
                                v14_35 = new String[2];
                                v14_35[0] = String.valueOf(v5_103);
                                v14_35[1] = String.valueOf(p64);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_0) {
                            v5_0 = 0;
                            v7_2 = 0;
                        }
                        Boolean v13_26;
                        if (v13_25 == null) {
                            v13_26 = "";
                        } else {
                            v13_26 = "rowid <= ? and ";
                        }
                        String v3_29 = new StringBuilder((v13_26.length() + 148));
                        v3_29.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_29.append(v13_26);
                        v3_29.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_7 = v15_7.rawQuery(v3_29.toString(), v14_35);
                        if (v3_7.moveToFirst()) {
                            String v7_1 = v3_7.getString(0);
                            try {
                                Boolean v13_0 = v3_7.getString(1);
                                v3_7.close();
                                v23 = v3_7;
                                v3_7 = v7_1;
                                v7_2 = v13_0;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v5_0 = v3_7;
                            }
                        } else {
                            if (v3_7 == null) {
                            } else {
                                v3_7.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v22 = v3_7;
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v5_0 = v3_7;
                    v7_2 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v22 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
                v3_10 = v0_7;
                v5_0 = 0;
                v7_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_2) {
            }
        } catch (android.database.sqlite.SQLiteException v0_2) {
        }
    }

Method com.google.firebase.firestore.local.SQLitePersistence.prepare() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    android.database.sqlite.SQLiteStatement prepare(String p2)
    {
        return this.db.compileStatement(p2);
    }

Method com.google.firebase.firestore.local.SQLiteSchema.removeMutationBatch() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    private void removeMutationBatch(String p7, int p8)
    {
        android.database.sqlite.SQLiteDatabase v0_2;
        android.database.sqlite.SQLiteDatabase v0_4 = this.db.compileStatement("DELETE FROM mutations WHERE uid = ? AND batch_id = ?");
        v0_4.bindString(1, p7);
        v0_4.bindLong(2, ((long) p8));
        if (v0_4.executeUpdateDelete() == 0) {
            v0_2 = 0;
        } else {
            v0_2 = 1;
        }
        Object[] v3_0 = new Object[2];
        v3_0[0] = p7;
        v3_0[1] = Integer.valueOf(p8);
        com.google.firebase.firestore.util.Assert.hardAssert(v0_2, "Mutatiohn batch (%s, %d) did not exist", v3_0);
        android.database.sqlite.SQLiteDatabase v0_3 = this.db;
        Object[] v3_1 = new Object[2];
        v3_1[0] = p7;
        v3_1[1] = Integer.valueOf(p8);
        v0_3.execSQL("DELETE FROM document_mutations WHERE uid = ? AND batch_id = ?", v3_1);
        return;
    }

Method com.google.firebase.firestore.local.SQLiteSchema.ensureSequenceNumbers() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    private void ensureSequenceNumbers()
    {
        android.database.sqlite.SQLiteStatement v2_0;
        com.google.firebase.firestore.util.Consumer v0_5 = ((Long) new com.google.firebase.firestore.local.SQLitePersistence$Query(this.db, "SELECT highest_listen_sequence_number FROM target_globals LIMIT 1").firstValue(com.google.firebase.firestore.local.SQLiteSchema$$Lambda$6.lambdaFactory$()));
        if (v0_5 == null) {
            v2_0 = 0;
        } else {
            v2_0 = 1;
        }
        Object[] v1_1 = new Object[0];
        com.google.firebase.firestore.util.Assert.hardAssert(v2_0, "Missing highest sequence number", v1_1);
        new com.google.firebase.firestore.local.SQLitePersistence$Query(this.db, "SELECT RD.path FROM remote_documents AS RD WHERE NOT EXISTS (SELECT TD.path FROM target_documents AS TD WHERE RD.path = TD.path AND TD.target_id = 0)").forEach(com.google.firebase.firestore.local.SQLiteSchema$$Lambda$7.lambdaFactory$(this.db.compileStatement("INSERT INTO target_documents (target_id, path, sequence_number) VALUES (0, ?, ?)"), v0_5.longValue()));
        return;
    }

Method com.google.firebase.firestore.local.SQLiteSchema.createV8CollectionParentsIndex() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    private void createV8CollectionParentsIndex()
    {
        this.ifTablesDontExist(new String[] {"collection_parents"}), com.google.firebase.firestore.local.SQLiteSchema$$Lambda$8.lambdaFactory$(this));
        com.google.firebase.firestore.util.Consumer v0_1 = com.google.firebase.firestore.local.SQLiteSchema$$Lambda$9.lambdaFactory$(new com.google.firebase.firestore.local.MemoryIndexManager$MemoryCollectionParentIndex(), this.db.compileStatement("INSERT OR REPLACE INTO collection_parents (collection_id, parent) VALUES (?, ?)"));
        new com.google.firebase.firestore.local.SQLitePersistence$Query(this.db, "SELECT path FROM remote_documents").forEach(com.google.firebase.firestore.local.SQLiteSchema$$Lambda$10.lambdaFactory$(v0_1));
        new com.google.firebase.firestore.local.SQLitePersistence$Query(this.db, "SELECT path FROM document_mutations").forEach(com.google.firebase.firestore.local.SQLiteSchema$$Lambda$11.lambdaFactory$(v0_1));
        return;
    }

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


    final java.util.Map zzi(String p13, String p14)
    {
        this.zzbi();
        this.zzo();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p14);
        android.database.sqlite.SQLiteException v0_2 = new android.support.v4.util.ArrayMap();
        boolean v1_6 = this.getWritableDatabase();
        try {
            String[] v5_1 = new String[2];
            v5_1[0] = p13;
            v5_1[1] = p14;
            int v14_1 = v1_6.query("property_filters", new String[] {"audience_id", "data"}), "app_id=? AND property_name=?", v5_1, 0, 0, 0);
            try {
                if (!v14_1.moveToFirst()) {
                    java.util.Map v13_3 = java.util.Collections.emptyMap();
                    if (v14_1 != 0) {
                        v14_1.close();
                    }
                    return v13_3;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                this.zzab().zzgk().zza("Database error querying filters. appId", com.google.android.gms.measurement.internal.zzef.zzam(p13), v0_0);
                if (v14_1 != 0) {
                    v14_1.close();
                }
                return 0;
            }
            do {
                boolean v1_2 = com.google.android.gms.internal.measurement.zzbk$zzd.zzb(v14_1.getBlob(1), com.google.android.gms.internal.measurement.zzel.zztq());
                Integer v2_3 = v14_1.getInt(0);
                java.util.ArrayList v3_5 = ((java.util.List) v0_2.get(Integer.valueOf(v2_3)));
                if (v3_5 == null) {
                    v3_5 = new java.util.ArrayList();
                    v0_2.put(Integer.valueOf(v2_3), v3_5);
                }
                v3_5.add(v1_2);
            } while(v14_1.moveToNext());
            if (v14_1 != 0) {
                v14_1.close();
            }
            return v0_2;
        } catch (java.util.Map v13_1) {
            v14_1 = 0;
            if (v14_1 != 0) {
                v14_1.close();
            }
            throw v13_1;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v14_1 = 0;
        } catch (java.util.Map v13_1) {
        }
    }

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


    final java.util.Map zzh(String p13, String p14)
    {
        this.zzbi();
        this.zzo();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p14);
        android.database.sqlite.SQLiteException v0_2 = new android.support.v4.util.ArrayMap();
        boolean v1_6 = this.getWritableDatabase();
        try {
            String[] v5_1 = new String[2];
            v5_1[0] = p13;
            v5_1[1] = p14;
            int v14_1 = v1_6.query("event_filters", new String[] {"audience_id", "data"}), "app_id=? AND event_name=?", v5_1, 0, 0, 0);
            try {
                if (!v14_1.moveToFirst()) {
                    java.util.Map v13_3 = java.util.Collections.emptyMap();
                    if (v14_1 != 0) {
                        v14_1.close();
                    }
                    return v13_3;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                this.zzab().zzgk().zza("Database error querying filters. appId", com.google.android.gms.measurement.internal.zzef.zzam(p13), v0_0);
                if (v14_1 != 0) {
                    v14_1.close();
                }
                return 0;
            }
            do {
                boolean v1_2 = com.google.android.gms.internal.measurement.zzbk$zza.zza(v14_1.getBlob(1), com.google.android.gms.internal.measurement.zzel.zztq());
                Integer v2_3 = v14_1.getInt(0);
                java.util.ArrayList v3_5 = ((java.util.List) v0_2.get(Integer.valueOf(v2_3)));
                if (v3_5 == null) {
                    v3_5 = new java.util.ArrayList();
                    v0_2.put(Integer.valueOf(v2_3), v3_5);
                }
                v3_5.add(v1_2);
            } while(v14_1.moveToNext());
            if (v14_1 != 0) {
                v14_1.close();
            }
            return v0_2;
        } catch (java.util.Map v13_1) {
            v14_1 = 0;
            if (v14_1 != 0) {
                v14_1.close();
            }
            throw v13_1;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v14_1 = 0;
        } catch (java.util.Map v13_1) {
        }
    }

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


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

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


    public final com.google.android.gms.measurement.internal.zzjp zze(String p19, String p20)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p19);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p20);
        this.zzo();
        this.zzbi();
        try {
            int v10_1 = this.getWritableDatabase();
            String[] v14 = new String[2];
            v14[0] = p19;
            v14[1] = p20;
            int v10_0 = v10_1.query("user_attributes", new String[] {"set_timestamp", "value", "origin"}), "app_id=? and name=?", v14, 0, 0, 0);
            try {
                if (v10_0.moveToFirst()) {
                    try {
                        android.database.sqlite.SQLiteException v0_3 = new com.google.android.gms.measurement.internal.zzjp;
                        v0_3(p19, v10_0.getString(2), p20, v10_0.getLong(0), this.zza(v10_0, 1));
                    } catch (android.database.sqlite.SQLiteException v0_1) {
                        this.zzab().zzgk().zza("Error querying user property. appId", com.google.android.gms.measurement.internal.zzef.zzam(p19), this.zzy().zzal(p20), v0_1);
                        if (v10_0 != 0) {
                            v10_0.close();
                        }
                        return 0;
                    }
                    if (v10_0.moveToNext()) {
                        this.zzab().zzgk().zza("Got multiple records for user property, expected one. appId", com.google.android.gms.measurement.internal.zzef.zzam(p19));
                    }
                    if (v10_0 != 0) {
                        v10_0.close();
                    }
                    return v0_3;
                } else {
                    if (v10_0 != 0) {
                        v10_0.close();
                    }
                    return 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_2) {
                if (v10_0 != 0) {
                    v10_0.close();
                }
                throw v0_2;
            } catch (android.database.sqlite.SQLiteException v0_1) {
            }
        } catch (android.database.sqlite.SQLiteException v0_2) {
            v10_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_1) {
            v10_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_2) {
        }
    }

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


    public final com.google.android.gms.measurement.internal.zzae zzc(String p27, String p28)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p27);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p28);
        this.zzo();
        this.zzbi();
        android.database.sqlite.SQLiteException v0_0 = this.zzad().zze(p27, com.google.android.gms.measurement.internal.zzak.zziz);
        long v4 = "last_fire_timestamp";
        long v6 = "last_bundled_day";
        long v8 = "last_sampling_rate";
        com.google.android.gms.measurement.internal.zzeh v1_12 = new java.util.ArrayList(java.util.Arrays.asList(new String[] {"lifetime_count", "last_exempt_from_sampling"})));
        if (v0_0 != null) {
            v1_12.add("current_session_count");
        }
        try {
            String v2_8 = this.getWritableDatabase();
            long v10_0 = 0;
            long v4_2 = new String[0];
            long v4_4 = ((String[]) v1_12.toArray(v4_2));
            long v6_0 = new String[2];
            v6_0[0] = p27;
            v6_0[1] = p28;
            long v12_1 = v2_8.query("events", v4_4, "app_id=? and name=?", v6_0, 0, 0, 0);
            try {
                if (v12_1.moveToFirst()) {
                    long v19;
                    long v4_5 = v12_1.getLong(0);
                    long v6_1 = v12_1.getLong(1);
                    Long v16_1 = v12_1.getLong(2);
                    long v8_0 = 0;
                    if (!v12_1.isNull(3)) {
                        v19 = v12_1.getLong(3);
                    } else {
                        v19 = 0;
                    }
                    Long v21;
                    if (!v12_1.isNull(4)) {
                        v21 = Long.valueOf(v12_1.getLong(4));
                    } else {
                        v21 = 0;
                    }
                    Long v22;
                    if (!v12_1.isNull(5)) {
                        v22 = Long.valueOf(v12_1.getLong(5));
                    } else {
                        v22 = 0;
                    }
                    Long v23;
                    if (!v12_1.isNull(6)) {
                        v23 = Long.valueOf(v12_1.getLong(6));
                    } else {
                        v23 = 0;
                    }
                    Boolean v24_0;
                    if (v12_1.isNull(7)) {
                        v24_0 = 0;
                    } else {
                        if (v12_1.getLong(7) == 1) {
                            v10_0 = 1;
                        }
                        v24_0 = Boolean.valueOf(v10_0);
                    }
                    if ((v0_0 != null) && (!v12_1.isNull(8))) {
                        v8_0 = v12_1.getLong(8);
                    }
                    android.database.sqlite.SQLiteException v0_5 = new com.google.android.gms.measurement.internal.zzae;
                    android.database.Cursor v25 = v12_1;
                    try {
                        v0_5(p27, p28, v4_5, v6_1, v8_0, v16_1, v19, v21, v22, v23, v24_0);
                    } catch (android.database.sqlite.SQLiteException v0_3) {
                        this.zzab().zzgk().zza("Error querying events. appId", com.google.android.gms.measurement.internal.zzef.zzam(p27), this.zzy().zzaj(p28), v0_3);
                        if (v25 != null) {
                            v25.close();
                        }
                        return 0;
                    }
                    if (v25.moveToNext()) {
                        this.zzab().zzgk().zza("Got multiple records for event aggregates, expected one. appId", com.google.android.gms.measurement.internal.zzef.zzam(p27));
                    }
                    if (v25 != null) {
                        v25.close();
                    }
                    return v0_5;
                } else {
                    if (v12_1 != 0) {
                        v12_1.close();
                    }
                    return 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_4) {
                v25 = v12_1;
                if (v25 != null) {
                    v25.close();
                }
                throw v0_4;
            } catch (android.database.sqlite.SQLiteException v0_3) {
                v25 = v12_1;
            }
        } catch (android.database.sqlite.SQLiteException v0_4) {
            v25 = 0;
        } catch (android.database.sqlite.SQLiteException v0_3) {
            v25 = 0;
        } catch (android.database.sqlite.SQLiteException v0_4) {
        }
    }

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


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

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


    final java.util.Map zzaf(String p12)
    {
        this.zzbi();
        this.zzo();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p12);
        int v0_1 = this.getWritableDatabase();
        try {
            com.google.android.gms.measurement.internal.zzeh 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);
                        v1_3.put(Integer.valueOf(v2_1), com.google.android.gms.internal.measurement.zzbs$zzi.zze(v0_0.getBlob(1), com.google.android.gms.internal.measurement.zzel.zztq()));
                    } 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.zzab().zzgk().zza("Database error querying filter results. appId", com.google.android.gms.measurement.internal.zzef.zzam(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.zzx.zzad() calling method android.database.sqlite.SQLiteDatabase.query()


    public final byte[] zzad(String p11)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p11);
        this.zzo();
        this.zzbi();
        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.zzab().zzgk().zza("Got multiple records for app config, expected one. appId", com.google.android.gms.measurement.internal.zzef.zzam(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.zzab().zzgk().zza("Error querying remote config. appId", com.google.android.gms.measurement.internal.zzef.zzam(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.zzx.zzab() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.measurement.internal.zzf zzab(String p34)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p34);
        this.zzo();
        this.zzbi();
        try {
            int v3_1 = this.getWritableDatabase();
            Object v7 = "resettable_device_id_hash";
            int v9 = "last_bundle_start_timestamp";
            int v11 = "app_version";
            String v13 = "gmp_version";
            String v15 = "measurement_enabled";
            String v17 = "daily_public_events_count";
            String v19 = "daily_conversions_count";
            String v21 = "failed_config_fetch_time";
            String v23 = "firebase_instance_id";
            String v25 = "daily_realtime_events_count";
            String v27 = "android_id";
            String v29 = "ssaid_reporting_enabled";
            String v31 = "dynamite_version";
            com.google.android.gms.measurement.internal.zzeh v0_0 = 1;
            Object v7_7 = new String[1];
            v7_7[0] = p34;
            int v3_0 = v3_1.query("apps", new String[] {"app_instance_id", "safelisted_events"}), "app_id=?", v7_7, 0, 0, 0);
            try {
                if (v3_0.moveToFirst()) {
                    try {
                        String v6_4;
                        com.google.android.gms.measurement.internal.zzf v4_4 = new com.google.android.gms.measurement.internal.zzf(this.zzkz.zzjt(), p34);
                        v4_4.zza(v3_0.getString(0));
                        v4_4.zzb(v3_0.getString(1));
                        v4_4.zzd(v3_0.getString(2));
                        v4_4.zzk(v3_0.getLong(3));
                        v4_4.zze(v3_0.getLong(4));
                        v4_4.zzf(v3_0.getLong(5));
                        v4_4.zzf(v3_0.getString(6));
                        v4_4.zzg(v3_0.getString(7));
                        v4_4.zzh(v3_0.getLong(8));
                        v4_4.zzi(v3_0.getLong(9));
                    } catch (com.google.android.gms.measurement.internal.zzeh v0_11) {
                        this.zzab().zzgk().zza("Error querying app. appId", com.google.android.gms.measurement.internal.zzef.zzam(p34), v0_11);
                        if (v3_0 != 0) {
                            v3_0.close();
                        }
                        return 0;
                    }
                    if (v3_0.isNull(10)) {
                        v6_4 = 1;
                    } else {
                        if (v3_0.getInt(10) == 0) {
                            v6_4 = 0;
                        } else {
                        }
                    }
                    String v6_19;
                    v4_4.setMeasurementEnabled(v6_4);
                    v4_4.zzn(v3_0.getLong(11));
                    v4_4.zzo(v3_0.getLong(12));
                    v4_4.zzp(v3_0.getLong(13));
                    v4_4.zzq(v3_0.getLong(14));
                    v4_4.zzl(v3_0.getLong(15));
                    v4_4.zzm(v3_0.getLong(16));
                    if (!v3_0.isNull(17)) {
                        v6_19 = ((long) v3_0.getInt(17));
                    } else {
                        v6_19 = -2147483648;
                    }
                    String v6_29;
                    v4_4.zzg(v6_19);
                    v4_4.zze(v3_0.getString(18));
                    v4_4.zzs(v3_0.getLong(19));
                    v4_4.zzr(v3_0.getLong(20));
                    v4_4.zzh(v3_0.getString(21));
                    long v8_0 = 0;
                    if (!v3_0.isNull(22)) {
                        v6_29 = v3_0.getLong(22);
                    } else {
                        v6_29 = 0;
                    }
                    String v6_32;
                    v4_4.zzt(v6_29);
                    if (v3_0.isNull(23)) {
                        v6_32 = 1;
                    } else {
                        if (v3_0.getInt(23) == 0) {
                            v6_32 = 0;
                        } else {
                        }
                    }
                    v4_4.zzb(v6_32);
                    if (!v3_0.isNull(24)) {
                        if (v3_0.getInt(24) == 0) {
                            v0_0 = 0;
                        } else {
                        }
                    }
                    v4_4.zzc(v0_0);
                    v4_4.zzc(v3_0.getString(25));
                    if (!v3_0.isNull(26)) {
                        v8_0 = v3_0.getLong(26);
                    } else {
                    }
                    v4_4.zzj(v8_0);
                    if (!v3_0.isNull(27)) {
                        v4_4.zza(java.util.Arrays.asList(v3_0.getString(27).split(",", -1)));
                    }
                    v4_4.zzaf();
                    if (v3_0.moveToNext()) {
                        this.zzab().zzgk().zza("Got multiple records for app, expected one. appId", com.google.android.gms.measurement.internal.zzef.zzam(p34));
                    }
                    if (v3_0 != 0) {
                        v3_0.close();
                    }
                    return v4_4;
                } else {
                    if (v3_0 != 0) {
                        v3_0.close();
                    }
                    return 0;
                }
            } catch (com.google.android.gms.measurement.internal.zzeh v0_12) {
                if (v3_0 != 0) {
                    v3_0.close();
                }
                throw v0_12;
            } catch (com.google.android.gms.measurement.internal.zzeh v0_11) {
            }
        } catch (com.google.android.gms.measurement.internal.zzeh v0_12) {
            v3_0 = 0;
        } catch (com.google.android.gms.measurement.internal.zzeh v0_11) {
            v3_0 = 0;
        } catch (com.google.android.gms.measurement.internal.zzeh v0_12) {
        }
    }

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


    public final java.util.List zzaa(String p14)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p14);
        this.zzo();
        this.zzbi();
        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.zzab().zzgk().zza("Error querying user properties. appId", com.google.android.gms.measurement.internal.zzef.zzam(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.zzjp;
                    v3_4(p14, v6_2, v7_2, v8_1, v10_1);
                    v0_2.add(v3_4);
                } else {
                    this.zzab().zzgk().zza("Read invalid user property value, ignoring it. appId", com.google.android.gms.measurement.internal.zzef.zzam(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.zzx.zza() calling method android.database.sqlite.SQLiteDatabase.query()


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

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


    public final java.util.List zza(String p13, int p14, int p15)
    {
        android.database.Cursor v2_2;
        this.zzo();
        this.zzbi();
        if (p14 <= null) {
            v2_2 = 0;
        } else {
            v2_2 = 1;
        }
        android.database.Cursor v2_0;
        com.google.android.gms.common.internal.Preconditions.checkArgument(v2_2);
        if (p15 <= null) {
            v2_0 = 0;
        } else {
            v2_0 = 1;
        }
        com.google.android.gms.common.internal.Preconditions.checkArgument(v2_0);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
        try {
            int v3_0 = this.getWritableDatabase();
            Object v7_1 = new String[1];
            v7_1[0] = p13;
            android.database.Cursor v2_1 = v3_0.query("queue", new String[] {"rowid", "data", "retry_count"}), "app_id=?", v7_1, 0, 0, "rowid", String.valueOf(p14));
        } catch (java.util.List v13_3) {
            if (v2_1 != null) {
                v2_1.close();
            }
            throw v13_3;
        } catch (java.util.ArrayList v14_4) {
            this.zzab().zzgk().zza("Error querying bundles. appId", com.google.android.gms.measurement.internal.zzef.zzam(p13), v14_4);
            java.util.List v13_2 = java.util.Collections.emptyList();
            if (v2_1 != null) {
                v2_1.close();
            }
            return v13_2;
        }
        if (v2_1.moveToFirst()) {
            java.util.ArrayList v14_3 = new java.util.ArrayList();
            int v3_1 = 0;
            do {
                android.util.Pair v4_2 = v2_1.getLong(0);
                com.google.android.gms.internal.measurement.zzbs$zzg v6_3 = this.zzgw().zzb(v2_1.getBlob(1));
                if ((!v14_3.isEmpty()) && ((v6_3.length + v3_1) > p15)) {
                    break;
                }
                Object v7_9 = ((com.google.android.gms.internal.measurement.zzbs$zzg$zza) com.google.android.gms.internal.measurement.zzbs$zzg.zzpr().zzf(v6_3, com.google.android.gms.internal.measurement.zzel.zztq()));
                if (!v2_1.isNull(2)) {
                    v7_9.zzw(v2_1.getInt(2));
                }
                v3_1 += v6_3.length;
                v14_3.add(android.util.Pair.create(((com.google.android.gms.internal.measurement.zzbs$zzg) ((com.google.android.gms.internal.measurement.zzey) v7_9.zzug())), Long.valueOf(v4_2)));
            } while((v2_1.moveToNext()) && (v3_1 <= p15));
            if (v2_1 != null) {
                v2_1.close();
            }
            return v14_3;
        } else {
            java.util.List v13_4 = java.util.Collections.emptyList();
            if (v2_1 != null) {
                v2_1.close();
            }
            return v13_4;
        }
    }

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


    public final com.google.android.gms.measurement.internal.zzw zza(long p15, String p17, boolean p18, boolean p19, boolean p20, boolean p21, boolean p22)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p17);
        this.zzo();
        this.zzbi();
        com.google.android.gms.measurement.internal.zzeh v1_1 = new String[1];
        v1_1[0] = p17;
        com.google.android.gms.measurement.internal.zzw v3_1 = new com.google.android.gms.measurement.internal.zzw();
        try {
            android.database.sqlite.SQLiteDatabase v13 = this.getWritableDatabase();
            String[] v9 = "daily_public_events_count";
            int v11 = "daily_error_events_count";
            v9 = new String[1];
            v9[0] = p17;
            android.database.Cursor v4 = v13.query("apps", new String[] {"day", "daily_realtime_events_count"}), "app_id=?", v9, 0, 0, 0);
        } catch (android.content.ContentValues v0_8) {
            if (v4 != null) {
                v4.close();
            }
            throw v0_8;
        } catch (android.content.ContentValues v0_7) {
            this.zzab().zzgk().zza("Error updating daily counts. appId", com.google.android.gms.measurement.internal.zzef.zzam(p17), v0_7);
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        }
        if (v4.moveToFirst()) {
            if (v4.getLong(0) == p15) {
                v3_1.zzeg = v4.getLong(1);
                v3_1.zzef = v4.getLong(2);
                v3_1.zzeh = v4.getLong(3);
                v3_1.zzei = v4.getLong(4);
                v3_1.zzej = v4.getLong(5);
            }
            if (p18) {
                v3_1.zzeg = (v3_1.zzeg + 1);
            }
            if (p19) {
                v3_1.zzef = (v3_1.zzef + 1);
            }
            if (p20) {
                v3_1.zzeh = (v3_1.zzeh + 1);
            }
            if (p21) {
                v3_1.zzei = (v3_1.zzei + 1);
            }
            if (p22) {
                v3_1.zzej = (v3_1.zzej + 1);
            }
            android.content.ContentValues v0_10 = new android.content.ContentValues();
            v0_10.put("day", Long.valueOf(p15));
            v0_10.put("daily_public_events_count", Long.valueOf(v3_1.zzef));
            v0_10.put("daily_events_count", Long.valueOf(v3_1.zzeg));
            v0_10.put("daily_conversions_count", Long.valueOf(v3_1.zzeh));
            v0_10.put("daily_error_events_count", Long.valueOf(v3_1.zzei));
            v0_10.put("daily_realtime_events_count", Long.valueOf(v3_1.zzej));
            v13.update("apps", v0_10, "app_id=?", v1_1);
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        } else {
            this.zzab().zzgn().zza("Not updating daily counts, app is not known. appId", com.google.android.gms.measurement.internal.zzef.zzam(p17));
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        }
    }

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


    public final java.util.List zzc(int p24)
    {
        this.zzo();
        this.zzm();
        if (!this.zzjw) {
            java.util.ArrayList v4_1 = new java.util.ArrayList();
            if (this.zzcg()) {
                int v8 = 5;
                int v7 = 0;
                while (v7 < 5) {
                    try {
                        int v15_0 = this.getWritableDatabase();
                        try {
                            if (v15_0 != 0) {
                                try {
                                    int v0_3;
                                    v15_0.beginTransaction();
                                    long v19 = -1;
                                    try {
                                        if (!this.zzad().zza(com.google.android.gms.measurement.internal.zzak.zzjd)) {
                                            p24 = v15_0;
                                            v0_3 = p24.query("messages", new String[] {"rowid", "type", "entry"}), 0, 0, 0, 0, "rowid asc", Integer.toString(100));
                                        } else {
                                            int v0_43;
                                            int v14_1;
                                            int v16_1 = com.google.android.gms.measurement.internal.zzeb.zza(v15_0);
                                            if (v16_1 == -1) {
                                                v0_43 = 0;
                                                v14_1 = 0;
                                            } else {
                                                v0_43 = "rowid<?";
                                                v14_1 = new String[1];
                                                v14_1[0] = String.valueOf(v16_1);
                                            }
                                            int v10_4 = v15_0;
                                            p24 = v15_0;
                                            v15_0 = 0;
                                            v0_3 = v10_4.query("messages", new String[] {"rowid", "type", "entry"}), v0_43, v14_1, 0, 0, "rowid asc", Integer.toString(100));
                                        }
                                        int v10_0 = v0_3;
                                        try {
                                            while (v10_0.moveToNext()) {
                                                v19 = v10_0.getLong(0);
                                                int v0_10 = v10_0.getInt(1);
                                                String v12_1 = v10_0.getBlob(2);
                                                if (v0_10 != 0) {
                                                    if (v0_10 != 1) {
                                                        if (v0_10 != 2) {
                                                            if (v0_10 != 3) {
                                                                this.zzab().zzgk().zzao("Unknown record type in local database");
                                                            } else {
                                                                this.zzab().zzgn().zzao("Skipping app launch break");
                                                            }
                                                        } else {
                                                            String v11_7 = android.os.Parcel.obtain();
                                                            try {
                                                                v11_7.unmarshall(v12_1, 0, v12_1.length);
                                                                v11_7.setDataPosition(0);
                                                                int v0_19 = ((com.google.android.gms.measurement.internal.zzq) com.google.android.gms.measurement.internal.zzq.CREATOR.createFromParcel(v11_7));
                                                            } catch (int v0_22) {
                                                                v11_7.recycle();
                                                                throw v0_22;
                                                            }
                                                            v11_7.recycle();
                                                            if (v0_19 != 0) {
                                                                v4_1.add(v0_19);
                                                            }
                                                        }
                                                    } else {
                                                        String v11_8 = android.os.Parcel.obtain();
                                                        try {
                                                            v11_8.unmarshall(v12_1, 0, v12_1.length);
                                                            v11_8.setDataPosition(0);
                                                            int v0_27 = ((com.google.android.gms.measurement.internal.zzjn) com.google.android.gms.measurement.internal.zzjn.CREATOR.createFromParcel(v11_8));
                                                        } catch (int v0_30) {
                                                            v11_8.recycle();
                                                            throw v0_30;
                                                        }
                                                        v11_8.recycle();
                                                        if (v0_27 != 0) {
                                                            v4_1.add(v0_27);
                                                        }
                                                    }
                                                } else {
                                                    String v11_9 = android.os.Parcel.obtain();
                                                    try {
                                                        v11_9.unmarshall(v12_1, 0, v12_1.length);
                                                        v11_9.setDataPosition(0);
                                                        int v0_34 = ((com.google.android.gms.measurement.internal.zzai) com.google.android.gms.measurement.internal.zzai.CREATOR.createFromParcel(v11_9));
                                                    } catch (int v0_37) {
                                                        v11_9.recycle();
                                                        throw v0_37;
                                                    }
                                                    v11_9.recycle();
                                                    if (v0_34 != 0) {
                                                        v4_1.add(v0_34);
                                                    }
                                                }
                                            }
                                        } catch (int v0_2) {
                                            String v13_0 = p24;
                                            if (v10_0 != 0) {
                                                v10_0.close();
                                            }
                                            if (v13_0 != null) {
                                                v13_0.close();
                                            }
                                            throw v0_2;
                                        } catch (int v0_1) {
                                            v13_0 = p24;
                                            this.zzab().zzgk().zza("Error reading entries from local database", v0_1);
                                            this.zzjw = 1;
                                            if (v10_0 != 0) {
                                                v10_0.close();
                                            }
                                            if (v13_0 == null) {
                                                v7++;
                                            } else {
                                                v13_0.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                                            v13_0 = p24;
                                            android.os.SystemClock.sleep(((long) v8));
                                            v8 += 20;
                                            if (v10_0 != 0) {
                                                v10_0.close();
                                            }
                                            if (v13_0 == null) {
                                            } else {
                                                v13_0.close();
                                            }
                                        } catch (int v0_4) {
                                            v13_0 = p24;
                                            if (v13_0 != null) {
                                                if (v13_0.inTransaction()) {
                                                    v13_0.endTransaction();
                                                }
                                            }
                                            this.zzab().zzgk().zza("Error reading entries from local database", v0_4);
                                            this.zzjw = 1;
                                            if (v10_0 != 0) {
                                                v10_0.close();
                                            }
                                            if (v13_0 == null) {
                                            } else {
                                                v13_0.close();
                                            }
                                        }
                                        String v12_0 = new String[1];
                                        v12_0[0] = Long.toString(v19);
                                        v13_0 = p24;
                                        try {
                                            if (p24.delete("messages", "rowid <= ?", v12_0) < v4_1.size()) {
                                                this.zzab().zzgk().zzao("Fewer entries removed from local database than expected");
                                            }
                                            p24.setTransactionSuccessful();
                                            p24.endTransaction();
                                            if (v10_0 != 0) {
                                                v10_0.close();
                                            }
                                            if (p24 != 0) {
                                                p24.close();
                                            }
                                            return v4_1;
                                        } catch (int v0_1) {
                                        } catch (int v0_4) {
                                        }
                                    } catch (int v0_2) {
                                        v13_0 = p24;
                                        v10_0 = 0;
                                    } catch (int v0_1) {
                                        v13_0 = p24;
                                        v10_0 = 0;
                                    } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                                        v13_0 = p24;
                                    } catch (int v0_4) {
                                        v13_0 = p24;
                                        v10_0 = 0;
                                    }
                                } catch (int v0_2) {
                                    v13_0 = v15_0;
                                } catch (int v0_1) {
                                    v13_0 = v15_0;
                                } catch (int v0_4) {
                                    v13_0 = v15_0;
                                }
                            } else {
                                this.zzjw = 1;
                                if (v15_0 != 0) {
                                    v15_0.close();
                                }
                                return 0;
                            }
                            v10_0 = 0;
                        } catch (int v0_2) {
                            v10_0 = 0;
                            v13_0 = v15_0;
                        } catch (int v0_1) {
                            v10_0 = 0;
                            v13_0 = v15_0;
                        } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                            v13_0 = v15_0;
                        } catch (int v0_4) {
                            v10_0 = 0;
                            v13_0 = v15_0;
                        }
                    } catch (int v0_2) {
                        v10_0 = 0;
                        v13_0 = 0;
                    } catch (int v0_1) {
                        v10_0 = 0;
                        v13_0 = 0;
                    } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                        v10_0 = 0;
                        v13_0 = 0;
                    } catch (int v0_4) {
                        v10_0 = 0;
                        v13_0 = 0;
                    } catch (int v0_2) {
                    }
                }
                this.zzab().zzgn().zzao("Failed to read events from database in reasonable time");
                return 0;
            } else {
                return v4_1;
            }
        } else {
            return 0;
        }
    }

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


    private static long zza(android.database.sqlite.SQLiteDatabase p10)
    {
        try {
            long v0_0 = p10.query("messages", new String[] {"rowid"}), "type=?", new String[] {"3"}), 0, 0, "rowid desc", "1");
        } catch (int v10_2) {
            if (v0_0 != 0) {
                v0_0.close();
            }
            throw v10_2;
        }
        if (!v0_0.moveToFirst()) {
            if (v0_0 != 0) {
                v0_0.close();
            }
            return -1;
        } else {
            long v1_2 = v0_0.getLong(0);
            if (v0_0 != 0) {
                v0_0.close();
            }
            return v1_2;
        }
    }

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


    private final boolean zzd(String p63, long p64)
    {
        this.zzgy().beginTransaction();
        try {
            String v3_7 = 0;
            String v2_7 = new com.google.android.gms.measurement.internal.zzjg$zza(this, 0);
            int v4_184 = this.zzgy();
            com.google.android.gms.measurement.internal.zzx v5_103 = this.zztj;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_7);
            v4_184.zzo();
            v4_184.zzbi();
            try {
                int v23;
                String v7_2;
                String v15_7 = v4_184.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        Boolean v13_20;
                        String v3_9 = v5_103 cmp -1;
                        if (v3_9 == null) {
                            v13_20 = new String[] {0});
                        } else {
                            String v7_30 = new String[2];
                            v7_30[0] = 0;
                            v7_30[1] = String.valueOf(v5_103);
                            v13_20 = v7_30;
                        }
                        String v3_16;
                        if (v3_9 == null) {
                            v3_16 = "";
                        } else {
                            v3_16 = " and rowid <= ?";
                        }
                        int v14_34 = new StringBuilder((v3_16.length() + 84));
                        v14_34.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_34.append(v3_16);
                        v14_34.append(" order by rowid limit 1;");
                        v3_7 = v15_7.rawQuery(v14_34.toString(), v13_20);
                        if (v3_7.moveToFirst()) {
                            Boolean v13_24 = v3_7.getString(0);
                            v3_7.close();
                            v23 = v3_7;
                            v7_2 = v13_24;
                            v3_7 = 0;
                            try {
                                Boolean v13_3 = new String[2];
                                v13_3[0] = v3_7;
                                v13_3[1] = v7_2;
                                int v25_1 = v15_7;
                                String v15_3 = v15_7.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_3, 0, 0, "rowid", "2");
                                try {
                                    if (v15_3.moveToFirst()) {
                                        try {
                                            Boolean v13_10 = com.google.android.gms.internal.measurement.zzbs$zzg.zzd(v15_3.getBlob(0), com.google.android.gms.internal.measurement.zzel.zztq());
                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                            long v6_27 = v15_3;
                                            v4_184.zzab().zzgk().zza("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7), v0_3);
                                            if (v6_27 == 0) {
                                                String v3_14;
                                                if (v2_7.zztp == null) {
                                                    v3_14 = 1;
                                                } else {
                                                    if (!v2_7.zztp.isEmpty()) {
                                                        v3_14 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_14 != null) {
                                                    this.zzgy().setTransactionSuccessful();
                                                    this.zzgy().endTransaction();
                                                    return 0;
                                                } else {
                                                    String v3_8 = ((com.google.android.gms.internal.measurement.zzbs$zzg$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v2_7.zztn.zzuj())).zznn();
                                                    int v4_116 = this.zzj.zzad().zze(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zzii);
                                                    String v7_25 = 0;
                                                    int v12_19 = 0;
                                                    String v15_4 = 0;
                                                    int v8_16 = -1;
                                                    com.google.android.gms.measurement.internal.zzae v9_37 = -1;
                                                    Boolean v13_11 = 0;
                                                    Object v18_2 = 0;
                                                    String v19_2 = 0;
                                                    while(true) {
                                                        int v21_1 = v12_19;
                                                        long v26_1 = v13_11;
                                                        if (v7_25 >= v2_7.zztp.size()) {
                                                            break;
                                                        }
                                                        com.google.android.gms.measurement.internal.zzae v9_36;
                                                        String v31_0;
                                                        long v6_31;
                                                        Long v11_14 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) ((com.google.android.gms.internal.measurement.zzbs$zzc) v2_7.zztp.get(v7_25)).zzuj()));
                                                        if (!this.zzgz().zzk(v2_7.zztn.zzag(), v11_14.getName())) {
                                                            com.google.android.gms.measurement.internal.zzae v30_0;
                                                            int v25_0;
                                                            String v7_15;
                                                            long v33_0;
                                                            com.google.android.gms.measurement.internal.zzae v9_26;
                                                            String v32_0;
                                                            long v10_30 = this.zzgz().zzl(v2_7.zztn.zzag(), v11_14.getName());
                                                            if (v10_30 != 0) {
                                                                v30_0 = v7_25;
                                                                v25_0 = v15_4;
                                                                v31_0 = v4_116;
                                                                String v7_16 = 0;
                                                                int v14_9 = 0;
                                                                String v15_1 = 0;
                                                                while(true) {
                                                                    v32_0 = v8_16;
                                                                    if (v7_16 >= v11_14.zzmk()) {
                                                                        break;
                                                                    }
                                                                    long v33_1;
                                                                    if (!"_c".equals(v11_14.zzl(v7_16).getName())) {
                                                                        v33_1 = v9_37;
                                                                        if ("_r".equals(v11_14.zzl(v7_16).getName())) {
                                                                            v11_14.zza(v7_16, ((com.google.android.gms.internal.measurement.zzbs$zze) ((com.google.android.gms.internal.measurement.zzey) ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v11_14.zzl(v7_16).zzuj())).zzam(1).zzug())));
                                                                            v15_1 = 1;
                                                                        }
                                                                    } else {
                                                                        v33_1 = v9_37;
                                                                        v11_14.zza(v7_16, ((com.google.android.gms.internal.measurement.zzbs$zze) ((com.google.android.gms.internal.measurement.zzey) ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v11_14.zzl(v7_16).zzuj())).zzam(1).zzug())));
                                                                        v14_9 = 1;
                                                                    }
                                                                    v7_16++;
                                                                    v8_16 = v32_0;
                                                                    v9_37 = v33_1;
                                                                }
                                                                v33_0 = v9_37;
                                                                if ((v14_9 != 0) || (v10_30 == 0)) {
                                                                    v7_15 = "_et";
                                                                    v9_26 = "_e";
                                                                } else {
                                                                    this.zzj.zzab().zzgs().zza("Marking event as conversion", this.zzj.zzy().zzaj(v11_14.getName()));
                                                                    v7_15 = "_et";
                                                                    v9_26 = "_e";
                                                                    v11_14.zza(com.google.android.gms.internal.measurement.zzbs$zze.zzng().zzbz("_c").zzam(1));
                                                                }
                                                                if (v15_1 == null) {
                                                                    this.zzj.zzab().zzgs().zza("Marking event as real-time", this.zzj.zzy().zzaj(v11_14.getName()));
                                                                    v11_14.zza(com.google.android.gms.internal.measurement.zzbs$zze.zzng().zzbz("_r").zzam(1));
                                                                }
                                                                if (this.zzgy().zza(this.zzjk(), v2_7.zztn.zzag(), 0, 0, 0, 0, 1).zzej <= ((long) this.zzj.zzad().zzi(v2_7.zztn.zzag()))) {
                                                                    v21_1 = 1;
                                                                } else {
                                                                    com.google.android.gms.measurement.internal.zzjg.zza(v11_14, "_r");
                                                                }
                                                                if ((com.google.android.gms.measurement.internal.zzjs.zzbk(v11_14.getName())) && ((v10_30 != 0) && (this.zzgy().zza(this.zzjk(), v2_7.zztn.zzag(), 0, 0, 1, 0, 0).zzeh > ((long) this.zzj.zzad().zzb(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zzgs))))) {
                                                                    this.zzj.zzab().zzgn().zza("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                    int v4_27 = 0;
                                                                    com.google.android.gms.measurement.internal.zzx v5_6 = 0;
                                                                    long v6_22 = 0;
                                                                    int v8_10 = -1;
                                                                    while (v4_27 < v11_14.zzmk()) {
                                                                        int v14_27 = v11_14.zzl(v4_27);
                                                                        if (!"_c".equals(v14_27.getName())) {
                                                                            if ("_err".equals(v14_27.getName())) {
                                                                                v5_6 = 1;
                                                                            }
                                                                        } else {
                                                                            v6_22 = ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v14_27.zzuj()));
                                                                            v8_10 = v4_27;
                                                                        }
                                                                        v4_27++;
                                                                    }
                                                                    if ((v5_6 == null) || (v6_22 == 0)) {
                                                                        if (v6_22 == 0) {
                                                                            this.zzj.zzab().zzgk().zza("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                        } else {
                                                                            v11_14.zza(v8_10, ((com.google.android.gms.internal.measurement.zzbs$zze) ((com.google.android.gms.internal.measurement.zzey) ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v6_22.clone())).zzbz("_err").zzam(10).zzug())));
                                                                        }
                                                                    } else {
                                                                        v11_14.zzm(v8_10);
                                                                    }
                                                                }
                                                            } else {
                                                                String v7_7;
                                                                this.zzgw();
                                                                int v14_6 = v11_14.getName();
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v14_6);
                                                                v25_0 = v15_4;
                                                                String v15_0 = v14_6.hashCode();
                                                                v30_0 = v7_25;
                                                                if (v15_0 == 94660) {
                                                                    if (!v14_6.equals("_in")) {
                                                                        v7_7 = -1;
                                                                    } else {
                                                                        v7_7 = 0;
                                                                    }
                                                                } else {
                                                                    if (v15_0 == 95025) {
                                                                        if (!v14_6.equals("_ug")) {
                                                                        } else {
                                                                            v7_7 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v15_0 == 95027) {
                                                                            if (!v14_6.equals("_ui")) {
                                                                            } else {
                                                                                v7_7 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                if ((v7_7 == null) || ((v7_7 == 1) || (v7_7 == 2))) {
                                                                    String v7_14 = 1;
                                                                } else {
                                                                    v7_14 = 0;
                                                                }
                                                                if (v7_14 == null) {
                                                                    v31_0 = v4_116;
                                                                    v7_15 = "_et";
                                                                    v32_0 = v8_16;
                                                                    v33_0 = v9_37;
                                                                    v9_26 = "_e";
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzj.zzad().zzs(v2_7.zztn.zzag())) || (v10_30 == 0)) {
                                                            } else {
                                                                int v4_43 = new java.util.ArrayList(v11_14.zzmj());
                                                                com.google.android.gms.measurement.internal.zzx v5_12 = 0;
                                                                long v6_26 = -1;
                                                                int v8_11 = -1;
                                                                while (v5_12 < v4_43.size()) {
                                                                    if (!"value".equals(((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v5_12)).getName())) {
                                                                        if ("currency".equals(((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v5_12)).getName())) {
                                                                            v8_11 = v5_12;
                                                                        }
                                                                    } else {
                                                                        v6_26 = v5_12;
                                                                    }
                                                                    v5_12++;
                                                                }
                                                                if (v6_26 == -1) {
                                                                } else {
                                                                    if ((((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v6_26)).zzna()) || (((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v6_26)).zznd())) {
                                                                        int v4_47;
                                                                        if (v8_11 != -1) {
                                                                            int v4_46 = ((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v8_11)).zzmy();
                                                                            if (v4_46.length() == 3) {
                                                                                int v8_13 = 0;
                                                                                while (v8_13 < v4_46.length()) {
                                                                                    int v12_8 = v4_46.codePointAt(v8_13);
                                                                                    if (Character.isLetter(v12_8)) {
                                                                                        v8_13 += Character.charCount(v12_8);
                                                                                    } else {
                                                                                    }
                                                                                }
                                                                                v4_47 = 0;
                                                                                if (v4_47 != 0) {
                                                                                    this.zzj.zzab().zzgp().zzao("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                    v11_14.zzm(v6_26);
                                                                                    com.google.android.gms.measurement.internal.zzjg.zza(v11_14, "_c");
                                                                                    com.google.android.gms.measurement.internal.zzjg.zza(v11_14, 19, "currency");
                                                                                }
                                                                                if (!this.zzj.zzad().zze(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zzih)) {
                                                                                    v8_16 = v32_0;
                                                                                    v6_31 = v33_0;
                                                                                } else {
                                                                                    if (!v9_26.equals(v11_14.getName())) {
                                                                                        v6_31 = v33_0;
                                                                                        if ("_vs".equals(v11_14.getName())) {
                                                                                            this.zzgw();
                                                                                            if (com.google.android.gms.measurement.internal.zzjo.zza(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())), v7_15) == null) {
                                                                                                if ((v18_2 != null) && (Math.abs((v18_2.getTimestampMillis() - v11_14.getTimestampMillis())) <= 1000)) {
                                                                                                    int v4_70 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v18_2.clone()));
                                                                                                    if (this.zza(v4_70, v11_14)) {
                                                                                                        v8_16 = v32_0;
                                                                                                        v3_8.zza(v8_16, v4_70);
                                                                                                        v18_2 = 0;
                                                                                                        v19_2 = 0;
                                                                                                        if ((v31_0 != null) || (!v9_26.equals(v11_14.getName()))) {
                                                                                                            v13_11 = v26_1;
                                                                                                        } else {
                                                                                                            if (v11_14.zzmk() != 0) {
                                                                                                                this.zzgw();
                                                                                                                int v4_86 = ((Long) com.google.android.gms.measurement.internal.zzjo.zzb(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())), v7_15));
                                                                                                                if (v4_86 != 0) {
                                                                                                                    v13_11 = (v26_1 + v4_86.longValue());
                                                                                                                } else {
                                                                                                                    this.zzj.zzab().zzgn().zza("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                                                                }
                                                                                                            } else {
                                                                                                                this.zzj.zzab().zzgn().zza("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                                                            }
                                                                                                        }
                                                                                                        v9_36 = v30_0;
                                                                                                        v2_7.zztp.set(v9_36, ((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())));
                                                                                                        v15_4 = (v25_0 + 1);
                                                                                                        v3_8.zza(v11_14);
                                                                                                        v12_19 = v21_1;
                                                                                                        v7_25 = (v9_36 + 1);
                                                                                                        v9_37 = v6_31;
                                                                                                        v4_116 = v31_0;
                                                                                                    }
                                                                                                }
                                                                                                v8_16 = v32_0;
                                                                                                v19_2 = v11_14;
                                                                                                v6_31 = v25_0;
                                                                                            }
                                                                                        }
                                                                                    } else {
                                                                                        this.zzgw();
                                                                                        if (com.google.android.gms.measurement.internal.zzjo.zza(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())), "_fr") != null) {
                                                                                            v6_31 = v33_0;
                                                                                        } else {
                                                                                            if ((v19_2 != null) && (Math.abs((v19_2.getTimestampMillis() - v11_14.getTimestampMillis())) <= 1000)) {
                                                                                                int v4_78 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v19_2.clone()));
                                                                                                if (this.zza(v11_14, v4_78)) {
                                                                                                    v6_31 = v33_0;
                                                                                                    v3_8.zza(v6_31, v4_78);
                                                                                                    v8_16 = v32_0;
                                                                                                }
                                                                                            }
                                                                                            v6_31 = v33_0;
                                                                                            v18_2 = v11_14;
                                                                                            v8_16 = v25_0;
                                                                                        }
                                                                                    }
                                                                                    v8_16 = v32_0;
                                                                                }
                                                                            }
                                                                            v4_47 = 1;
                                                                        } else {
                                                                            v4_47 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzj.zzab().zzgp().zzao("Value must be specified with a numeric type.");
                                                                        v11_14.zzm(v6_26);
                                                                        com.google.android.gms.measurement.internal.zzjg.zza(v11_14, "_c");
                                                                        com.google.android.gms.measurement.internal.zzjg.zza(v11_14, 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            com.google.android.gms.measurement.internal.zzx v5_32;
                                                            this.zzj.zzab().zzgn().zza("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()), this.zzj.zzy().zzaj(v11_14.getName()));
                                                            if (this.zzgz().zzbc(v2_7.zztn.zzag())) {
                                                                v5_32 = 1;
                                                            } else {
                                                                if (!this.zzgz().zzbd(v2_7.zztn.zzag())) {
                                                                    v5_32 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_32 == null) && (!"_err".equals(v11_14.getName()))) {
                                                                this.zzj.zzz().zza(v2_7.zztn.zzag(), 11, "_ev", v11_14.getName(), 0);
                                                            }
                                                            v31_0 = v4_116;
                                                            v6_31 = v9_37;
                                                            v12_19 = v21_1;
                                                            v13_11 = v26_1;
                                                            long v10 = 3;
                                                            v9_36 = v7_25;
                                                        }
                                                    }
                                                    Boolean v13_2;
                                                    if (v4_116 == 0) {
                                                        v13_2 = v26_1;
                                                    } else {
                                                        com.google.android.gms.measurement.internal.zzx v5_1 = v15_4;
                                                        v13_2 = v26_1;
                                                        int v4_0 = 0;
                                                        while (v4_0 < v5_1) {
                                                            long v6_6 = v3_8.zzq(v4_0);
                                                            if (!"_e".equals(v6_6.getName())) {
                                                                this.zzgw();
                                                                long v6_7 = com.google.android.gms.measurement.internal.zzjo.zza(v6_6, "_et");
                                                                if (v6_7 != 0) {
                                                                    long v6_8;
                                                                    if (!v6_7.zzna()) {
                                                                        v6_8 = 0;
                                                                    } else {
                                                                        v6_8 = Long.valueOf(v6_7.zznb());
                                                                    }
                                                                    if ((v6_8 != 0) && (v6_8.longValue() > 0)) {
                                                                        v13_2 += v6_8.longValue();
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzgw();
                                                                if (com.google.android.gms.measurement.internal.zzjo.zza(v6_6, "_fr") == null) {
                                                                } else {
                                                                    v3_8.zzr(v4_0);
                                                                    v5_1--;
                                                                    v4_0--;
                                                                }
                                                            }
                                                            v4_0++;
                                                        }
                                                    }
                                                    Object v1_0 = this.zza(v3_8, v13_2, 0);
                                                    if (!v1_0.zzj.zzad().zze(v3_8.zzag(), com.google.android.gms.measurement.internal.zzak.zzja)) {
                                                        if (v1_0.zzj.zzad().zze(v3_8.zzag(), com.google.android.gms.measurement.internal.zzak.zzjb)) {
                                                            this.zzgy().zzd(v3_8.zzag(), "_se");
                                                        }
                                                    } else {
                                                        int v4_130 = v3_8.zznl().iterator();
                                                        while (v4_130.hasNext()) {
                                                            if ("_s".equals(((com.google.android.gms.internal.measurement.zzbs$zzc) v4_130.next()).getName())) {
                                                                int v4_131 = 1;
                                                            }
                                                            if (v4_131 != 0) {
                                                                this.zzgy().zzd(v3_8.zzag(), "_se");
                                                            }
                                                            v1_0 = v1_0.zza(v3_8, v13_2, 1);
                                                        }
                                                        v4_131 = 0;
                                                    }
                                                    if (v1_0.zzj.zzad().zze(v3_8.zzag(), com.google.android.gms.measurement.internal.zzak.zzij)) {
                                                        int v4_137 = this.zzgw();
                                                        v4_137.zzab().zzgs().zzao("Checking account type status for ad personalization signals");
                                                        if (v4_137.zzgz().zzba(v3_8.zzag())) {
                                                            com.google.android.gms.measurement.internal.zzx v5_60 = v4_137.zzgy().zzab(v3_8.zzag());
                                                            if ((v5_60 != null) && ((v5_60.zzbe()) && (v4_137.zzw().zzcu()))) {
                                                                v4_137.zzab().zzgr().zzao("Turning off ad personalization due to account type");
                                                                int v4_143 = ((com.google.android.gms.internal.measurement.zzbs$zzk) ((com.google.android.gms.internal.measurement.zzey) com.google.android.gms.internal.measurement.zzbs$zzk.zzqu().zzdb("_npa").zzbk(v4_137.zzw().zzcs()).zzbl(1).zzug()));
                                                                com.google.android.gms.measurement.internal.zzx v5_69 = 0;
                                                                while (v5_69 < v3_8.zznp()) {
                                                                    if (!"_npa".equals(v3_8.zzs(v5_69).getName())) {
                                                                        v5_69++;
                                                                    } else {
                                                                        v3_8.zza(v5_69, v4_143);
                                                                        com.google.android.gms.measurement.internal.zzx v5_70 = 1;
                                                                    }
                                                                    if (v5_70 == null) {
                                                                        v3_8.zza(v4_143);
                                                                    }
                                                                }
                                                                v5_70 = 0;
                                                            }
                                                        }
                                                    }
                                                    String v3_22;
                                                    Object v1_19;
                                                    int v4_144 = v3_8.zznv();
                                                    com.google.android.gms.measurement.internal.zzx v5_71 = v3_8.zzag();
                                                    long v6_71 = v3_8.zzno();
                                                    String v7_41 = v3_8.zznl();
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v5_71);
                                                    v4_144.zzc(this.zzgx().zza(v5_71, v7_41, v6_71));
                                                    try {
                                                        if (!v1_0.zzj.zzad().zzm(v2_7.zztn.zzag())) {
                                                            v1_19 = v3_8;
                                                            v3_22 = v2_7;
                                                        } else {
                                                            int v4_149 = new java.util.HashMap();
                                                            com.google.android.gms.measurement.internal.zzx v5_76 = new java.util.ArrayList();
                                                            long v6_5 = v1_0.zzj.zzz().zzjw();
                                                            String v7_3 = 0;
                                                            while (v7_3 < v3_8.zznm()) {
                                                                Object v1_13;
                                                                long v63_0;
                                                                String v2_5;
                                                                String v3_3;
                                                                int v8_27 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v3_8.zzq(v7_3).zzuj()));
                                                                if (!v8_27.getName().equals("_ep")) {
                                                                    com.google.android.gms.measurement.internal.zzae v9_61;
                                                                    Long v11_21 = this.zzgz().zzbb(v2_7.zztn.zzag());
                                                                    v1_0.zzj.zzz();
                                                                    Boolean v13_28 = com.google.android.gms.measurement.internal.zzjs.zzc(v8_27.getTimestampMillis(), v11_21);
                                                                    com.google.android.gms.measurement.internal.zzae v9_47 = ((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug()));
                                                                    long v26_2 = v11_21;
                                                                    Long v11_22 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v11_22 != null)) {
                                                                        com.google.android.gms.measurement.internal.zzae v9_49 = v9_47.zzmj().iterator();
                                                                        while (v9_49.hasNext()) {
                                                                            int v12_37 = ((com.google.android.gms.internal.measurement.zzbs$zze) v9_49.next());
                                                                            if (!"_dbg".equals(v12_37.getName())) {
                                                                            } else {
                                                                                if (((!(v11_22 instanceof Long)) || (!v11_22.equals(Long.valueOf(v12_37.zznb())))) && (((!(v11_22 instanceof String)) || (!v11_22.equals(v12_37.zzmy()))) && ((!(v11_22 instanceof Double)) || (!v11_22.equals(Double.valueOf(v12_37.zzne())))))) {
                                                                                    break;
                                                                                }
                                                                                v9_61 = 1;
                                                                            }
                                                                        }
                                                                        v9_61 = 0;
                                                                    }
                                                                    int v12_38;
                                                                    if (v9_61 != null) {
                                                                        v12_38 = 1;
                                                                    } else {
                                                                        v12_38 = this.zzgz().zzm(v2_7.zztn.zzag(), v8_27.getName());
                                                                    }
                                                                    if (v12_38 > 0) {
                                                                        Object v18_7;
                                                                        com.google.android.gms.measurement.internal.zzae v9_1 = ((com.google.android.gms.measurement.internal.zzae) v4_149.get(v8_27.getName()));
                                                                        if (v9_1 != null) {
                                                                            v18_7 = v13_28;
                                                                        } else {
                                                                            v9_1 = this.zzgy().zzc(v2_7.zztn.zzag(), v8_27.getName());
                                                                            if (v9_1 != null) {
                                                                            } else {
                                                                                v18_7 = v13_28;
                                                                                v1_0.zzj.zzab().zzgn().zza("Event being bundled has no eventAggregate. appId, eventName", v2_7.zztn.zzag(), v8_27.getName());
                                                                                if (!v1_0.zzj.zzad().zze(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zziz)) {
                                                                                    v9_1 = new com.google.android.gms.measurement.internal.zzae;
                                                                                    v9_1(v2_7.zztn.zzag(), v8_27.getName(), 1, 1, v8_27.getTimestampMillis(), 0, 0, 0, 0, 0);
                                                                                } else {
                                                                                    v9_1 = new com.google.android.gms.measurement.internal.zzae;
                                                                                    v9_1(v2_7.zztn.zzag(), v8_27.getName(), 1, 1, 1, v8_27.getTimestampMillis(), 0, 0, 0, 0, 0);
                                                                                }
                                                                            }
                                                                        }
                                                                        Boolean v13_32;
                                                                        this.zzgw();
                                                                        Long v11_36 = ((Long) com.google.android.gms.measurement.internal.zzjo.zzb(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())), "_eid"));
                                                                        if (v11_36 == null) {
                                                                            v13_32 = 0;
                                                                        } else {
                                                                            v13_32 = 1;
                                                                        }
                                                                        Boolean v13_33 = Boolean.valueOf(v13_32);
                                                                        if (v12_38 != 1) {
                                                                            if (v6_5.nextInt(v12_38) != 0) {
                                                                                v63_0 = v6_5;
                                                                                int v14_38 = v18_7;
                                                                                String v19_0;
                                                                                Object v1_6;
                                                                                Object v18_8 = v3_8;
                                                                                if (!v1_0.zzj.zzad().zzu(v2_7.zztn.zzag())) {
                                                                                    v3_3 = v2_7;
                                                                                    v19_0 = v7_3;
                                                                                    if (Math.abs((v8_27.getTimestampMillis() - v9_1.zzfk)) < 86400000) {
                                                                                        v1_6 = 0;
                                                                                    } else {
                                                                                        v1_6 = 1;
                                                                                    }
                                                                                } else {
                                                                                    long v26_0;
                                                                                    if (v9_1.zzfl == null) {
                                                                                        v1_0.zzj.zzz();
                                                                                        v3_3 = v2_7;
                                                                                        v19_0 = v7_3;
                                                                                        v26_0 = com.google.android.gms.measurement.internal.zzjs.zzc(v8_27.zzmm(), v26_2);
                                                                                    } else {
                                                                                        v26_0 = v9_1.zzfl.longValue();
                                                                                        v3_3 = v2_7;
                                                                                        v19_0 = v7_3;
                                                                                    }
                                                                                    if (v26_0 == v14_38) {
                                                                                    }
                                                                                }
                                                                                if (v1_6 == null) {
                                                                                    if (v13_33.booleanValue()) {
                                                                                        v4_149.put(v8_27.getName(), v9_1.zza(v11_36, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzgw();
                                                                                    com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_efs", Long.valueOf(1));
                                                                                    this.zzgw();
                                                                                    Object v1_10 = ((long) v12_38);
                                                                                    com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_sr", Long.valueOf(v1_10));
                                                                                    v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                                    if (v13_33.booleanValue()) {
                                                                                        v9_1 = v9_1.zza(0, Long.valueOf(v1_10), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_149.put(v8_27.getName(), v9_1.zza(v8_27.getTimestampMillis(), v14_38));
                                                                                }
                                                                                v1_13 = v18_8;
                                                                                v2_5 = v19_0;
                                                                            } else {
                                                                                this.zzgw();
                                                                                Long v11_1 = ((long) v12_38);
                                                                                com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_sr", Long.valueOf(v11_1));
                                                                                v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                                if (v13_33.booleanValue()) {
                                                                                    v9_1 = v9_1.zza(0, Long.valueOf(v11_1), 0);
                                                                                }
                                                                                v4_149.put(v8_27.getName(), v9_1.zza(v8_27.getTimestampMillis(), v18_7));
                                                                                v1_13 = v3_8;
                                                                                v63_0 = v6_5;
                                                                                v3_3 = v2_7;
                                                                                v2_5 = v7_3;
                                                                            }
                                                                            v1_13.zza(v2_5, v8_27);
                                                                        } else {
                                                                            v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                            if ((v13_33.booleanValue()) && ((v9_1.zzfm != null) || ((v9_1.zzfn != null) || (v9_1.zzfo != null)))) {
                                                                                v4_149.put(v8_27.getName(), v9_1.zza(0, 0, 0));
                                                                            }
                                                                            v3_8.zza(v7_3, v8_27);
                                                                            v1_13 = v3_8;
                                                                            v63_0 = v6_5;
                                                                            v3_3 = v2_7;
                                                                            v2_5 = v7_3;
                                                                        }
                                                                    } else {
                                                                        v1_0.zzj.zzab().zzgn().zza("Sample rate must be positive. event, rate", v8_27.getName(), Integer.valueOf(v12_38));
                                                                        v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                        v3_8.zza(v7_3, v8_27);
                                                                    }
                                                                } else {
                                                                    this.zzgw();
                                                                    com.google.android.gms.measurement.internal.zzae v9_14 = ((String) com.google.android.gms.measurement.internal.zzjo.zzb(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())), "_en"));
                                                                    Long v11_7 = ((com.google.android.gms.measurement.internal.zzae) v4_149.get(v9_14));
                                                                    if (v11_7 == null) {
                                                                        v11_7 = this.zzgy().zzc(v2_7.zztn.zzag(), v9_14);
                                                                        v4_149.put(v9_14, v11_7);
                                                                    }
                                                                    if (v11_7.zzfm == null) {
                                                                        if (v11_7.zzfn.longValue() > 1) {
                                                                            this.zzgw();
                                                                            com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_sr", v11_7.zzfn);
                                                                        }
                                                                        if ((v11_7.zzfo != null) && (v11_7.zzfo.booleanValue())) {
                                                                            this.zzgw();
                                                                            com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_efs", Long.valueOf(1));
                                                                        }
                                                                        v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                    }
                                                                    v3_8.zza(v7_3, v8_27);
                                                                }
                                                                v6_5 = v63_0;
                                                                v7_3 = (v2_5 + 1);
                                                                v2_7 = v3_3;
                                                                v3_8 = v1_13;
                                                                v1_0 = this;
                                                            }
                                                            v1_19 = v3_8;
                                                            v3_22 = v2_7;
                                                            if (v5_76.size() < v1_19.zznm()) {
                                                                v1_19.zznn().zza(v5_76);
                                                            }
                                                            String v2_14 = v4_149.entrySet().iterator();
                                                            while (v2_14.hasNext()) {
                                                                this.zzgy().zza(((com.google.android.gms.measurement.internal.zzae) ((java.util.Map$Entry) v2_14.next()).getValue()));
                                                            }
                                                        }
                                                    } catch (android.database.sqlite.SQLiteException v0_2) {
                                                        Object v1_14 = v0_2;
                                                        this.zzgy().endTransaction();
                                                        throw v1_14;
                                                    }
                                                    v1_19.zzao(nan).zzap(-0.0);
                                                    String v2_16 = 0;
                                                    while (v2_16 < v1_19.zznm()) {
                                                        int v4_180 = v1_19.zzq(v2_16);
                                                        if (v4_180.getTimestampMillis() < v1_19.zznq()) {
                                                            v1_19.zzao(v4_180.getTimestampMillis());
                                                        }
                                                        if (v4_180.getTimestampMillis() > v1_19.zznr()) {
                                                            v1_19.zzap(v4_180.getTimestampMillis());
                                                        }
                                                        v2_16++;
                                                    }
                                                    long v6_75;
                                                    String v2_18 = v3_22.zztn.zzag();
                                                    int v4_155 = this.zzgy().zzab(v2_18);
                                                    if (v4_155 != 0) {
                                                        v6_75 = this;
                                                        if (v1_19.zznm() > 0) {
                                                            String v7_42 = v4_155.zzak();
                                                            if (v7_42 == 0) {
                                                                v1_19.zznt();
                                                            } else {
                                                                v1_19.zzar(v7_42);
                                                            }
                                                            com.google.android.gms.measurement.internal.zzae v9_40 = v4_155.zzaj();
                                                            if (v9_40 != 0) {
                                                                v7_42 = v9_40;
                                                            } else {
                                                            }
                                                            if (v7_42 == 0) {
                                                                v1_19.zzns();
                                                            } else {
                                                                v1_19.zzaq(v7_42);
                                                            }
                                                            v4_155.zzau();
                                                            v1_19.zzu(((int) v4_155.zzar()));
                                                            v4_155.zze(v1_19.zznq());
                                                            v4_155.zzf(v1_19.zznr());
                                                            com.google.android.gms.measurement.internal.zzx v5_82 = v4_155.zzbc();
                                                            if (v5_82 == null) {
                                                                v1_19.zznu();
                                                            } else {
                                                                v1_19.zzcl(v5_82);
                                                            }
                                                            this.zzgy().zza(v4_155);
                                                        }
                                                    } else {
                                                        v6_75 = this;
                                                        this.zzj.zzab().zzgk().zza("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_22.zztn.zzag()));
                                                    }
                                                    if (v1_19.zznm() > 0) {
                                                        v6_75.zzj.zzae();
                                                        int v4_162 = this.zzgz().zzaw(v3_22.zztn.zzag());
                                                        if (v4_162 == 0) {
                                                            if (!android.text.TextUtils.isEmpty(v3_22.zztn.getGmpAppId())) {
                                                                v6_75.zzj.zzab().zzgn().zza("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_22.zztn.zzag()));
                                                            } else {
                                                                v1_19.zzav(-1);
                                                            }
                                                        } else {
                                                            if (v4_162.zzzk != null) {
                                                                v1_19.zzav(v4_162.zzzk.longValue());
                                                            } else {
                                                            }
                                                        }
                                                        this.zzgy().zza(((com.google.android.gms.internal.measurement.zzbs$zzg) ((com.google.android.gms.internal.measurement.zzey) v1_19.zzug())), v21_1);
                                                    }
                                                    Object v1_23 = this.zzgy();
                                                    String v3_23 = v3_22.zzto;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_23);
                                                    v1_23.zzo();
                                                    v1_23.zzbi();
                                                    int v4_174 = new StringBuilder("rowid in (");
                                                    com.google.android.gms.measurement.internal.zzx v5_90 = 0;
                                                    while (v5_90 < v3_23.size()) {
                                                        if (v5_90 != null) {
                                                            v4_174.append(",");
                                                        }
                                                        v4_174.append(((Long) v3_23.get(v5_90)).longValue());
                                                        v5_90++;
                                                    }
                                                    v4_174.append(")");
                                                    int v4_176 = v1_23.getWritableDatabase().delete("raw_events", v4_174.toString(), 0);
                                                    if (v4_176 != v3_23.size()) {
                                                        v1_23.zzab().zzgk().zza("Deleted fewer rows from raw events table than expected", Integer.valueOf(v4_176), Integer.valueOf(v3_23.size()));
                                                    }
                                                    Object v1_26 = this.zzgy();
                                                    String v3_26 = v1_26.getWritableDatabase();
                                                    try {
                                                        com.google.android.gms.measurement.internal.zzx v5_96 = new String[2];
                                                        v5_96[0] = v2_18;
                                                        v5_96[1] = v2_18;
                                                        v3_26.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v5_96);
                                                    } catch (android.database.sqlite.SQLiteException v0_6) {
                                                        v1_26.zzab().zzgk().zza("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_18), v0_6);
                                                    }
                                                    this.zzgy().setTransactionSuccessful();
                                                    this.zzgy().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v6_27.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v7_2 = v3_7;
                                            com.google.android.gms.measurement.internal.zzx v5_0 = v6_27;
                                            String v3_10 = v0_0;
                                            try {
                                                v4_184.zzab().zzgk().zza("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzef.zzam(v7_2), v3_10);
                                            } catch (android.database.sqlite.SQLiteException v0_5) {
                                                Object v1_15 = v0_5;
                                                int v22 = v5_0;
                                                if (v22 != 0) {
                                                    v22.close();
                                                }
                                                throw v1_15;
                                            }
                                            if (v5_0 == null) {
                                            } else {
                                                v5_0.close();
                                            }
                                        }
                                        if (v15_3.moveToNext()) {
                                            v4_184.zzab().zzgn().zza("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7));
                                        }
                                        String[] v17_2;
                                        String v16_2;
                                        v15_3.close();
                                        v2_7.zzb(v13_10);
                                        if (v5_103 == -1) {
                                            long v10_44 = new String[2];
                                            v10_44[0] = v3_7;
                                            v10_44[1] = v7_2;
                                            v16_2 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_2 = v10_44;
                                        } else {
                                            Boolean v13_15 = new String[3];
                                            v13_15[0] = v3_7;
                                            v13_15[1] = v7_2;
                                            v13_15[2] = String.valueOf(v5_103);
                                            v16_2 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_2 = v13_15;
                                        }
                                        v6_27 = v15_3;
                                        v5_0 = v25_1.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_2, v17_2, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_0.moveToFirst()) {
                                                v4_184.zzab().zzgn().zza("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7));
                                                if (v5_0 == null) {
                                                } else {
                                                    v5_0.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v22 = v5_0;
                                            v1_15 = v0_1;
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v7_2 = v3_7;
                                        }
                                        do {
                                            long v6_46 = v5_0.getLong(0);
                                            long v10_50 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) com.google.android.gms.internal.measurement.zzbs$zzc.zzmq().zzf(v5_0.getBlob(3), com.google.android.gms.internal.measurement.zzel.zztq()));
                                            v10_50.zzbx(v5_0.getString(1)).zzag(v5_0.getLong(2));
                                            if (v2_7.zza(v6_46, ((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v10_50.zzug())))) {
                                            } else {
                                                if (v5_0 == null) {
                                                } else {
                                                    v5_0.close();
                                                }
                                            }
                                        } while(v5_0.moveToNext());
                                        if (v5_0 == null) {
                                        } else {
                                            v5_0.close();
                                        }
                                    } else {
                                        v4_184.zzab().zzgk().zza("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7));
                                        if (v15_3 == null) {
                                        } else {
                                            v15_3.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v6_27 = v15_3;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_27 = v15_3;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v22 = v15_3;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v7_2 = v3_7;
                                    v5_0 = v15_3;
                                }
                                v22 = v6_27;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v22 = v23;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v7_2 = v3_7;
                                v5_0 = v23;
                            }
                        } else {
                            if (v3_7 == null) {
                            } else {
                                v3_7.close();
                            }
                        }
                    } else {
                        int v14_35;
                        Boolean v13_25 = v5_103 cmp -1;
                        try {
                            if (v13_25 == null) {
                                v14_35 = new String[1];
                                v14_35[0] = String.valueOf(p64);
                            } else {
                                v14_35 = new String[2];
                                v14_35[0] = String.valueOf(v5_103);
                                v14_35[1] = String.valueOf(p64);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_0) {
                            v5_0 = 0;
                            v7_2 = 0;
                        }
                        Boolean v13_26;
                        if (v13_25 == null) {
                            v13_26 = "";
                        } else {
                            v13_26 = "rowid <= ? and ";
                        }
                        String v3_29 = new StringBuilder((v13_26.length() + 148));
                        v3_29.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_29.append(v13_26);
                        v3_29.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_7 = v15_7.rawQuery(v3_29.toString(), v14_35);
                        if (v3_7.moveToFirst()) {
                            String v7_1 = v3_7.getString(0);
                            try {
                                Boolean v13_0 = v3_7.getString(1);
                                v3_7.close();
                                v23 = v3_7;
                                v3_7 = v7_1;
                                v7_2 = v13_0;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v5_0 = v3_7;
                            }
                        } else {
                            if (v3_7 == null) {
                            } else {
                                v3_7.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v22 = v3_7;
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v5_0 = v3_7;
                    v7_2 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v22 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
                v3_10 = v0_7;
                v5_0 = 0;
                v7_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_2) {
            }
        } catch (android.database.sqlite.SQLiteException v0_2) {
        }
    }

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


    private final boolean zzd(String p63, long p64)
    {
        this.zzgy().beginTransaction();
        try {
            String v3_7 = 0;
            String v2_7 = new com.google.android.gms.measurement.internal.zzjg$zza(this, 0);
            int v4_184 = this.zzgy();
            com.google.android.gms.measurement.internal.zzx v5_103 = this.zztj;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_7);
            v4_184.zzo();
            v4_184.zzbi();
            try {
                String v7_2;
                int v23;
                String v15_7 = v4_184.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        Boolean v13_20;
                        String v3_9 = v5_103 cmp -1;
                        if (v3_9 == null) {
                            v13_20 = new String[] {0});
                        } else {
                            String v7_30 = new String[2];
                            v7_30[0] = 0;
                            v7_30[1] = String.valueOf(v5_103);
                            v13_20 = v7_30;
                        }
                        String v3_16;
                        if (v3_9 == null) {
                            v3_16 = "";
                        } else {
                            v3_16 = " and rowid <= ?";
                        }
                        int v14_34 = new StringBuilder((v3_16.length() + 84));
                        v14_34.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_34.append(v3_16);
                        v14_34.append(" order by rowid limit 1;");
                        v3_7 = v15_7.rawQuery(v14_34.toString(), v13_20);
                        if (v3_7.moveToFirst()) {
                            Boolean v13_24 = v3_7.getString(0);
                            v3_7.close();
                            v23 = v3_7;
                            v7_2 = v13_24;
                            v3_7 = 0;
                            try {
                                Boolean v13_3 = new String[2];
                                v13_3[0] = v3_7;
                                v13_3[1] = v7_2;
                                int v25_1 = v15_7;
                                String v15_3 = v15_7.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_3, 0, 0, "rowid", "2");
                                try {
                                    if (v15_3.moveToFirst()) {
                                        try {
                                            Boolean v13_10 = com.google.android.gms.internal.measurement.zzbs$zzg.zzd(v15_3.getBlob(0), com.google.android.gms.internal.measurement.zzel.zztq());
                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                            long v6_27 = v15_3;
                                            v4_184.zzab().zzgk().zza("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7), v0_3);
                                            if (v6_27 == 0) {
                                                String v3_14;
                                                if (v2_7.zztp == null) {
                                                    v3_14 = 1;
                                                } else {
                                                    if (!v2_7.zztp.isEmpty()) {
                                                        v3_14 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_14 != null) {
                                                    this.zzgy().setTransactionSuccessful();
                                                    this.zzgy().endTransaction();
                                                    return 0;
                                                } else {
                                                    String v3_8 = ((com.google.android.gms.internal.measurement.zzbs$zzg$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v2_7.zztn.zzuj())).zznn();
                                                    int v4_116 = this.zzj.zzad().zze(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zzii);
                                                    String v7_25 = 0;
                                                    int v12_19 = 0;
                                                    String v15_4 = 0;
                                                    int v8_16 = -1;
                                                    com.google.android.gms.measurement.internal.zzae v9_37 = -1;
                                                    Boolean v13_11 = 0;
                                                    Object v18_2 = 0;
                                                    String v19_2 = 0;
                                                    while(true) {
                                                        int v21_1 = v12_19;
                                                        long v26_1 = v13_11;
                                                        if (v7_25 >= v2_7.zztp.size()) {
                                                            break;
                                                        }
                                                        com.google.android.gms.measurement.internal.zzae v9_36;
                                                        long v6_31;
                                                        String v31_0;
                                                        Long v11_14 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) ((com.google.android.gms.internal.measurement.zzbs$zzc) v2_7.zztp.get(v7_25)).zzuj()));
                                                        if (!this.zzgz().zzk(v2_7.zztn.zzag(), v11_14.getName())) {
                                                            com.google.android.gms.measurement.internal.zzae v9_26;
                                                            com.google.android.gms.measurement.internal.zzae v30_0;
                                                            String v32_0;
                                                            int v25_0;
                                                            String v7_15;
                                                            long v33_0;
                                                            long v10_30 = this.zzgz().zzl(v2_7.zztn.zzag(), v11_14.getName());
                                                            if (v10_30 != 0) {
                                                                v30_0 = v7_25;
                                                                v25_0 = v15_4;
                                                                v31_0 = v4_116;
                                                                String v7_16 = 0;
                                                                int v14_9 = 0;
                                                                String v15_1 = 0;
                                                                while(true) {
                                                                    v32_0 = v8_16;
                                                                    if (v7_16 >= v11_14.zzmk()) {
                                                                        break;
                                                                    }
                                                                    long v33_1;
                                                                    if (!"_c".equals(v11_14.zzl(v7_16).getName())) {
                                                                        v33_1 = v9_37;
                                                                        if ("_r".equals(v11_14.zzl(v7_16).getName())) {
                                                                            v11_14.zza(v7_16, ((com.google.android.gms.internal.measurement.zzbs$zze) ((com.google.android.gms.internal.measurement.zzey) ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v11_14.zzl(v7_16).zzuj())).zzam(1).zzug())));
                                                                            v15_1 = 1;
                                                                        }
                                                                    } else {
                                                                        v33_1 = v9_37;
                                                                        v11_14.zza(v7_16, ((com.google.android.gms.internal.measurement.zzbs$zze) ((com.google.android.gms.internal.measurement.zzey) ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v11_14.zzl(v7_16).zzuj())).zzam(1).zzug())));
                                                                        v14_9 = 1;
                                                                    }
                                                                    v7_16++;
                                                                    v8_16 = v32_0;
                                                                    v9_37 = v33_1;
                                                                }
                                                                v33_0 = v9_37;
                                                                if ((v14_9 != 0) || (v10_30 == 0)) {
                                                                    v7_15 = "_et";
                                                                    v9_26 = "_e";
                                                                } else {
                                                                    this.zzj.zzab().zzgs().zza("Marking event as conversion", this.zzj.zzy().zzaj(v11_14.getName()));
                                                                    v7_15 = "_et";
                                                                    v9_26 = "_e";
                                                                    v11_14.zza(com.google.android.gms.internal.measurement.zzbs$zze.zzng().zzbz("_c").zzam(1));
                                                                }
                                                                if (v15_1 == null) {
                                                                    this.zzj.zzab().zzgs().zza("Marking event as real-time", this.zzj.zzy().zzaj(v11_14.getName()));
                                                                    v11_14.zza(com.google.android.gms.internal.measurement.zzbs$zze.zzng().zzbz("_r").zzam(1));
                                                                }
                                                                if (this.zzgy().zza(this.zzjk(), v2_7.zztn.zzag(), 0, 0, 0, 0, 1).zzej <= ((long) this.zzj.zzad().zzi(v2_7.zztn.zzag()))) {
                                                                    v21_1 = 1;
                                                                } else {
                                                                    com.google.android.gms.measurement.internal.zzjg.zza(v11_14, "_r");
                                                                }
                                                                if ((com.google.android.gms.measurement.internal.zzjs.zzbk(v11_14.getName())) && ((v10_30 != 0) && (this.zzgy().zza(this.zzjk(), v2_7.zztn.zzag(), 0, 0, 1, 0, 0).zzeh > ((long) this.zzj.zzad().zzb(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zzgs))))) {
                                                                    this.zzj.zzab().zzgn().zza("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                    int v4_27 = 0;
                                                                    com.google.android.gms.measurement.internal.zzx v5_6 = 0;
                                                                    long v6_22 = 0;
                                                                    int v8_10 = -1;
                                                                    while (v4_27 < v11_14.zzmk()) {
                                                                        int v14_27 = v11_14.zzl(v4_27);
                                                                        if (!"_c".equals(v14_27.getName())) {
                                                                            if ("_err".equals(v14_27.getName())) {
                                                                                v5_6 = 1;
                                                                            }
                                                                        } else {
                                                                            v6_22 = ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v14_27.zzuj()));
                                                                            v8_10 = v4_27;
                                                                        }
                                                                        v4_27++;
                                                                    }
                                                                    if ((v5_6 == null) || (v6_22 == 0)) {
                                                                        if (v6_22 == 0) {
                                                                            this.zzj.zzab().zzgk().zza("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                        } else {
                                                                            v11_14.zza(v8_10, ((com.google.android.gms.internal.measurement.zzbs$zze) ((com.google.android.gms.internal.measurement.zzey) ((com.google.android.gms.internal.measurement.zzbs$zze$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v6_22.clone())).zzbz("_err").zzam(10).zzug())));
                                                                        }
                                                                    } else {
                                                                        v11_14.zzm(v8_10);
                                                                    }
                                                                }
                                                            } else {
                                                                String v7_7;
                                                                this.zzgw();
                                                                int v14_6 = v11_14.getName();
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v14_6);
                                                                v25_0 = v15_4;
                                                                String v15_0 = v14_6.hashCode();
                                                                v30_0 = v7_25;
                                                                if (v15_0 == 94660) {
                                                                    if (!v14_6.equals("_in")) {
                                                                        v7_7 = -1;
                                                                    } else {
                                                                        v7_7 = 0;
                                                                    }
                                                                } else {
                                                                    if (v15_0 == 95025) {
                                                                        if (!v14_6.equals("_ug")) {
                                                                        } else {
                                                                            v7_7 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v15_0 == 95027) {
                                                                            if (!v14_6.equals("_ui")) {
                                                                            } else {
                                                                                v7_7 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                if ((v7_7 == null) || ((v7_7 == 1) || (v7_7 == 2))) {
                                                                    String v7_14 = 1;
                                                                } else {
                                                                    v7_14 = 0;
                                                                }
                                                                if (v7_14 == null) {
                                                                    v31_0 = v4_116;
                                                                    v7_15 = "_et";
                                                                    v32_0 = v8_16;
                                                                    v33_0 = v9_37;
                                                                    v9_26 = "_e";
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzj.zzad().zzs(v2_7.zztn.zzag())) || (v10_30 == 0)) {
                                                            } else {
                                                                int v4_43 = new java.util.ArrayList(v11_14.zzmj());
                                                                com.google.android.gms.measurement.internal.zzx v5_12 = 0;
                                                                long v6_26 = -1;
                                                                int v8_11 = -1;
                                                                while (v5_12 < v4_43.size()) {
                                                                    if (!"value".equals(((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v5_12)).getName())) {
                                                                        if ("currency".equals(((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v5_12)).getName())) {
                                                                            v8_11 = v5_12;
                                                                        }
                                                                    } else {
                                                                        v6_26 = v5_12;
                                                                    }
                                                                    v5_12++;
                                                                }
                                                                if (v6_26 == -1) {
                                                                } else {
                                                                    if ((((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v6_26)).zzna()) || (((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v6_26)).zznd())) {
                                                                        int v4_47;
                                                                        if (v8_11 != -1) {
                                                                            int v4_46 = ((com.google.android.gms.internal.measurement.zzbs$zze) v4_43.get(v8_11)).zzmy();
                                                                            if (v4_46.length() == 3) {
                                                                                int v8_13 = 0;
                                                                                while (v8_13 < v4_46.length()) {
                                                                                    int v12_8 = v4_46.codePointAt(v8_13);
                                                                                    if (Character.isLetter(v12_8)) {
                                                                                        v8_13 += Character.charCount(v12_8);
                                                                                    } else {
                                                                                    }
                                                                                }
                                                                                v4_47 = 0;
                                                                                if (v4_47 != 0) {
                                                                                    this.zzj.zzab().zzgp().zzao("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                    v11_14.zzm(v6_26);
                                                                                    com.google.android.gms.measurement.internal.zzjg.zza(v11_14, "_c");
                                                                                    com.google.android.gms.measurement.internal.zzjg.zza(v11_14, 19, "currency");
                                                                                }
                                                                                if (!this.zzj.zzad().zze(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zzih)) {
                                                                                    v8_16 = v32_0;
                                                                                    v6_31 = v33_0;
                                                                                } else {
                                                                                    if (!v9_26.equals(v11_14.getName())) {
                                                                                        v6_31 = v33_0;
                                                                                        if ("_vs".equals(v11_14.getName())) {
                                                                                            this.zzgw();
                                                                                            if (com.google.android.gms.measurement.internal.zzjo.zza(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())), v7_15) == null) {
                                                                                                if ((v18_2 != null) && (Math.abs((v18_2.getTimestampMillis() - v11_14.getTimestampMillis())) <= 1000)) {
                                                                                                    int v4_70 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v18_2.clone()));
                                                                                                    if (this.zza(v4_70, v11_14)) {
                                                                                                        v8_16 = v32_0;
                                                                                                        v3_8.zza(v8_16, v4_70);
                                                                                                        v18_2 = 0;
                                                                                                        v19_2 = 0;
                                                                                                        if ((v31_0 != null) || (!v9_26.equals(v11_14.getName()))) {
                                                                                                            v13_11 = v26_1;
                                                                                                        } else {
                                                                                                            if (v11_14.zzmk() != 0) {
                                                                                                                this.zzgw();
                                                                                                                int v4_86 = ((Long) com.google.android.gms.measurement.internal.zzjo.zzb(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())), v7_15));
                                                                                                                if (v4_86 != 0) {
                                                                                                                    v13_11 = (v26_1 + v4_86.longValue());
                                                                                                                } else {
                                                                                                                    this.zzj.zzab().zzgn().zza("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                                                                }
                                                                                                            } else {
                                                                                                                this.zzj.zzab().zzgn().zza("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()));
                                                                                                            }
                                                                                                        }
                                                                                                        v9_36 = v30_0;
                                                                                                        v2_7.zztp.set(v9_36, ((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())));
                                                                                                        v15_4 = (v25_0 + 1);
                                                                                                        v3_8.zza(v11_14);
                                                                                                        v12_19 = v21_1;
                                                                                                        v7_25 = (v9_36 + 1);
                                                                                                        v9_37 = v6_31;
                                                                                                        v4_116 = v31_0;
                                                                                                    }
                                                                                                }
                                                                                                v8_16 = v32_0;
                                                                                                v19_2 = v11_14;
                                                                                                v6_31 = v25_0;
                                                                                            }
                                                                                        }
                                                                                    } else {
                                                                                        this.zzgw();
                                                                                        if (com.google.android.gms.measurement.internal.zzjo.zza(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v11_14.zzug())), "_fr") != null) {
                                                                                            v6_31 = v33_0;
                                                                                        } else {
                                                                                            if ((v19_2 != null) && (Math.abs((v19_2.getTimestampMillis() - v11_14.getTimestampMillis())) <= 1000)) {
                                                                                                int v4_78 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v19_2.clone()));
                                                                                                if (this.zza(v11_14, v4_78)) {
                                                                                                    v6_31 = v33_0;
                                                                                                    v3_8.zza(v6_31, v4_78);
                                                                                                    v8_16 = v32_0;
                                                                                                }
                                                                                            }
                                                                                            v6_31 = v33_0;
                                                                                            v18_2 = v11_14;
                                                                                            v8_16 = v25_0;
                                                                                        }
                                                                                    }
                                                                                    v8_16 = v32_0;
                                                                                }
                                                                            }
                                                                            v4_47 = 1;
                                                                        } else {
                                                                            v4_47 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzj.zzab().zzgp().zzao("Value must be specified with a numeric type.");
                                                                        v11_14.zzm(v6_26);
                                                                        com.google.android.gms.measurement.internal.zzjg.zza(v11_14, "_c");
                                                                        com.google.android.gms.measurement.internal.zzjg.zza(v11_14, 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            com.google.android.gms.measurement.internal.zzx v5_32;
                                                            this.zzj.zzab().zzgn().zza("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_7.zztn.zzag()), this.zzj.zzy().zzaj(v11_14.getName()));
                                                            if (this.zzgz().zzbc(v2_7.zztn.zzag())) {
                                                                v5_32 = 1;
                                                            } else {
                                                                if (!this.zzgz().zzbd(v2_7.zztn.zzag())) {
                                                                    v5_32 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_32 == null) && (!"_err".equals(v11_14.getName()))) {
                                                                this.zzj.zzz().zza(v2_7.zztn.zzag(), 11, "_ev", v11_14.getName(), 0);
                                                            }
                                                            v31_0 = v4_116;
                                                            v6_31 = v9_37;
                                                            v12_19 = v21_1;
                                                            v13_11 = v26_1;
                                                            long v10 = 3;
                                                            v9_36 = v7_25;
                                                        }
                                                    }
                                                    Boolean v13_2;
                                                    if (v4_116 == 0) {
                                                        v13_2 = v26_1;
                                                    } else {
                                                        com.google.android.gms.measurement.internal.zzx v5_1 = v15_4;
                                                        v13_2 = v26_1;
                                                        int v4_0 = 0;
                                                        while (v4_0 < v5_1) {
                                                            long v6_6 = v3_8.zzq(v4_0);
                                                            if (!"_e".equals(v6_6.getName())) {
                                                                this.zzgw();
                                                                long v6_7 = com.google.android.gms.measurement.internal.zzjo.zza(v6_6, "_et");
                                                                if (v6_7 != 0) {
                                                                    long v6_8;
                                                                    if (!v6_7.zzna()) {
                                                                        v6_8 = 0;
                                                                    } else {
                                                                        v6_8 = Long.valueOf(v6_7.zznb());
                                                                    }
                                                                    if ((v6_8 != 0) && (v6_8.longValue() > 0)) {
                                                                        v13_2 += v6_8.longValue();
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzgw();
                                                                if (com.google.android.gms.measurement.internal.zzjo.zza(v6_6, "_fr") == null) {
                                                                } else {
                                                                    v3_8.zzr(v4_0);
                                                                    v5_1--;
                                                                    v4_0--;
                                                                }
                                                            }
                                                            v4_0++;
                                                        }
                                                    }
                                                    Object v1_0 = this.zza(v3_8, v13_2, 0);
                                                    if (!v1_0.zzj.zzad().zze(v3_8.zzag(), com.google.android.gms.measurement.internal.zzak.zzja)) {
                                                        if (v1_0.zzj.zzad().zze(v3_8.zzag(), com.google.android.gms.measurement.internal.zzak.zzjb)) {
                                                            this.zzgy().zzd(v3_8.zzag(), "_se");
                                                        }
                                                    } else {
                                                        int v4_130 = v3_8.zznl().iterator();
                                                        while (v4_130.hasNext()) {
                                                            if ("_s".equals(((com.google.android.gms.internal.measurement.zzbs$zzc) v4_130.next()).getName())) {
                                                                int v4_131 = 1;
                                                            }
                                                            if (v4_131 != 0) {
                                                                this.zzgy().zzd(v3_8.zzag(), "_se");
                                                            }
                                                            v1_0 = v1_0.zza(v3_8, v13_2, 1);
                                                        }
                                                        v4_131 = 0;
                                                    }
                                                    if (v1_0.zzj.zzad().zze(v3_8.zzag(), com.google.android.gms.measurement.internal.zzak.zzij)) {
                                                        int v4_137 = this.zzgw();
                                                        v4_137.zzab().zzgs().zzao("Checking account type status for ad personalization signals");
                                                        if (v4_137.zzgz().zzba(v3_8.zzag())) {
                                                            com.google.android.gms.measurement.internal.zzx v5_60 = v4_137.zzgy().zzab(v3_8.zzag());
                                                            if ((v5_60 != null) && ((v5_60.zzbe()) && (v4_137.zzw().zzcu()))) {
                                                                v4_137.zzab().zzgr().zzao("Turning off ad personalization due to account type");
                                                                int v4_143 = ((com.google.android.gms.internal.measurement.zzbs$zzk) ((com.google.android.gms.internal.measurement.zzey) com.google.android.gms.internal.measurement.zzbs$zzk.zzqu().zzdb("_npa").zzbk(v4_137.zzw().zzcs()).zzbl(1).zzug()));
                                                                com.google.android.gms.measurement.internal.zzx v5_69 = 0;
                                                                while (v5_69 < v3_8.zznp()) {
                                                                    if (!"_npa".equals(v3_8.zzs(v5_69).getName())) {
                                                                        v5_69++;
                                                                    } else {
                                                                        v3_8.zza(v5_69, v4_143);
                                                                        com.google.android.gms.measurement.internal.zzx v5_70 = 1;
                                                                    }
                                                                    if (v5_70 == null) {
                                                                        v3_8.zza(v4_143);
                                                                    }
                                                                }
                                                                v5_70 = 0;
                                                            }
                                                        }
                                                    }
                                                    String v3_22;
                                                    Object v1_19;
                                                    int v4_144 = v3_8.zznv();
                                                    com.google.android.gms.measurement.internal.zzx v5_71 = v3_8.zzag();
                                                    long v6_71 = v3_8.zzno();
                                                    String v7_41 = v3_8.zznl();
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v5_71);
                                                    v4_144.zzc(this.zzgx().zza(v5_71, v7_41, v6_71));
                                                    try {
                                                        if (!v1_0.zzj.zzad().zzm(v2_7.zztn.zzag())) {
                                                            v1_19 = v3_8;
                                                            v3_22 = v2_7;
                                                        } else {
                                                            int v4_149 = new java.util.HashMap();
                                                            com.google.android.gms.measurement.internal.zzx v5_76 = new java.util.ArrayList();
                                                            long v6_5 = v1_0.zzj.zzz().zzjw();
                                                            String v7_3 = 0;
                                                            while (v7_3 < v3_8.zznm()) {
                                                                String v2_5;
                                                                long v63_0;
                                                                String v3_3;
                                                                Object v1_13;
                                                                int v8_27 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) ((com.google.android.gms.internal.measurement.zzey$zza) v3_8.zzq(v7_3).zzuj()));
                                                                if (!v8_27.getName().equals("_ep")) {
                                                                    com.google.android.gms.measurement.internal.zzae v9_61;
                                                                    Long v11_21 = this.zzgz().zzbb(v2_7.zztn.zzag());
                                                                    v1_0.zzj.zzz();
                                                                    Boolean v13_28 = com.google.android.gms.measurement.internal.zzjs.zzc(v8_27.getTimestampMillis(), v11_21);
                                                                    com.google.android.gms.measurement.internal.zzae v9_47 = ((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug()));
                                                                    long v26_2 = v11_21;
                                                                    Long v11_22 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v11_22 != null)) {
                                                                        com.google.android.gms.measurement.internal.zzae v9_49 = v9_47.zzmj().iterator();
                                                                        while (v9_49.hasNext()) {
                                                                            int v12_37 = ((com.google.android.gms.internal.measurement.zzbs$zze) v9_49.next());
                                                                            if (!"_dbg".equals(v12_37.getName())) {
                                                                            } else {
                                                                                if (((!(v11_22 instanceof Long)) || (!v11_22.equals(Long.valueOf(v12_37.zznb())))) && (((!(v11_22 instanceof String)) || (!v11_22.equals(v12_37.zzmy()))) && ((!(v11_22 instanceof Double)) || (!v11_22.equals(Double.valueOf(v12_37.zzne())))))) {
                                                                                    break;
                                                                                }
                                                                                v9_61 = 1;
                                                                            }
                                                                        }
                                                                        v9_61 = 0;
                                                                    }
                                                                    int v12_38;
                                                                    if (v9_61 != null) {
                                                                        v12_38 = 1;
                                                                    } else {
                                                                        v12_38 = this.zzgz().zzm(v2_7.zztn.zzag(), v8_27.getName());
                                                                    }
                                                                    if (v12_38 > 0) {
                                                                        Object v18_7;
                                                                        com.google.android.gms.measurement.internal.zzae v9_1 = ((com.google.android.gms.measurement.internal.zzae) v4_149.get(v8_27.getName()));
                                                                        if (v9_1 != null) {
                                                                            v18_7 = v13_28;
                                                                        } else {
                                                                            v9_1 = this.zzgy().zzc(v2_7.zztn.zzag(), v8_27.getName());
                                                                            if (v9_1 != null) {
                                                                            } else {
                                                                                v18_7 = v13_28;
                                                                                v1_0.zzj.zzab().zzgn().zza("Event being bundled has no eventAggregate. appId, eventName", v2_7.zztn.zzag(), v8_27.getName());
                                                                                if (!v1_0.zzj.zzad().zze(v2_7.zztn.zzag(), com.google.android.gms.measurement.internal.zzak.zziz)) {
                                                                                    v9_1 = new com.google.android.gms.measurement.internal.zzae;
                                                                                    v9_1(v2_7.zztn.zzag(), v8_27.getName(), 1, 1, v8_27.getTimestampMillis(), 0, 0, 0, 0, 0);
                                                                                } else {
                                                                                    v9_1 = new com.google.android.gms.measurement.internal.zzae;
                                                                                    v9_1(v2_7.zztn.zzag(), v8_27.getName(), 1, 1, 1, v8_27.getTimestampMillis(), 0, 0, 0, 0, 0);
                                                                                }
                                                                            }
                                                                        }
                                                                        Boolean v13_32;
                                                                        this.zzgw();
                                                                        Long v11_36 = ((Long) com.google.android.gms.measurement.internal.zzjo.zzb(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())), "_eid"));
                                                                        if (v11_36 == null) {
                                                                            v13_32 = 0;
                                                                        } else {
                                                                            v13_32 = 1;
                                                                        }
                                                                        Boolean v13_33 = Boolean.valueOf(v13_32);
                                                                        if (v12_38 != 1) {
                                                                            if (v6_5.nextInt(v12_38) != 0) {
                                                                                v63_0 = v6_5;
                                                                                int v14_38 = v18_7;
                                                                                Object v1_6;
                                                                                String v19_0;
                                                                                Object v18_8 = v3_8;
                                                                                if (!v1_0.zzj.zzad().zzu(v2_7.zztn.zzag())) {
                                                                                    v3_3 = v2_7;
                                                                                    v19_0 = v7_3;
                                                                                    if (Math.abs((v8_27.getTimestampMillis() - v9_1.zzfk)) < 86400000) {
                                                                                        v1_6 = 0;
                                                                                    } else {
                                                                                        v1_6 = 1;
                                                                                    }
                                                                                } else {
                                                                                    long v26_0;
                                                                                    if (v9_1.zzfl == null) {
                                                                                        v1_0.zzj.zzz();
                                                                                        v3_3 = v2_7;
                                                                                        v19_0 = v7_3;
                                                                                        v26_0 = com.google.android.gms.measurement.internal.zzjs.zzc(v8_27.zzmm(), v26_2);
                                                                                    } else {
                                                                                        v26_0 = v9_1.zzfl.longValue();
                                                                                        v3_3 = v2_7;
                                                                                        v19_0 = v7_3;
                                                                                    }
                                                                                    if (v26_0 == v14_38) {
                                                                                    }
                                                                                }
                                                                                if (v1_6 == null) {
                                                                                    if (v13_33.booleanValue()) {
                                                                                        v4_149.put(v8_27.getName(), v9_1.zza(v11_36, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzgw();
                                                                                    com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_efs", Long.valueOf(1));
                                                                                    this.zzgw();
                                                                                    Object v1_10 = ((long) v12_38);
                                                                                    com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_sr", Long.valueOf(v1_10));
                                                                                    v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                                    if (v13_33.booleanValue()) {
                                                                                        v9_1 = v9_1.zza(0, Long.valueOf(v1_10), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_149.put(v8_27.getName(), v9_1.zza(v8_27.getTimestampMillis(), v14_38));
                                                                                }
                                                                                v1_13 = v18_8;
                                                                                v2_5 = v19_0;
                                                                            } else {
                                                                                this.zzgw();
                                                                                Long v11_1 = ((long) v12_38);
                                                                                com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_sr", Long.valueOf(v11_1));
                                                                                v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                                if (v13_33.booleanValue()) {
                                                                                    v9_1 = v9_1.zza(0, Long.valueOf(v11_1), 0);
                                                                                }
                                                                                v4_149.put(v8_27.getName(), v9_1.zza(v8_27.getTimestampMillis(), v18_7));
                                                                                v1_13 = v3_8;
                                                                                v63_0 = v6_5;
                                                                                v3_3 = v2_7;
                                                                                v2_5 = v7_3;
                                                                            }
                                                                            v1_13.zza(v2_5, v8_27);
                                                                        } else {
                                                                            v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                            if ((v13_33.booleanValue()) && ((v9_1.zzfm != null) || ((v9_1.zzfn != null) || (v9_1.zzfo != null)))) {
                                                                                v4_149.put(v8_27.getName(), v9_1.zza(0, 0, 0));
                                                                            }
                                                                            v3_8.zza(v7_3, v8_27);
                                                                            v1_13 = v3_8;
                                                                            v63_0 = v6_5;
                                                                            v3_3 = v2_7;
                                                                            v2_5 = v7_3;
                                                                        }
                                                                    } else {
                                                                        v1_0.zzj.zzab().zzgn().zza("Sample rate must be positive. event, rate", v8_27.getName(), Integer.valueOf(v12_38));
                                                                        v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                        v3_8.zza(v7_3, v8_27);
                                                                    }
                                                                } else {
                                                                    this.zzgw();
                                                                    com.google.android.gms.measurement.internal.zzae v9_14 = ((String) com.google.android.gms.measurement.internal.zzjo.zzb(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())), "_en"));
                                                                    Long v11_7 = ((com.google.android.gms.measurement.internal.zzae) v4_149.get(v9_14));
                                                                    if (v11_7 == null) {
                                                                        v11_7 = this.zzgy().zzc(v2_7.zztn.zzag(), v9_14);
                                                                        v4_149.put(v9_14, v11_7);
                                                                    }
                                                                    if (v11_7.zzfm == null) {
                                                                        if (v11_7.zzfn.longValue() > 1) {
                                                                            this.zzgw();
                                                                            com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_sr", v11_7.zzfn);
                                                                        }
                                                                        if ((v11_7.zzfo != null) && (v11_7.zzfo.booleanValue())) {
                                                                            this.zzgw();
                                                                            com.google.android.gms.measurement.internal.zzjo.zza(v8_27, "_efs", Long.valueOf(1));
                                                                        }
                                                                        v5_76.add(((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v8_27.zzug())));
                                                                    }
                                                                    v3_8.zza(v7_3, v8_27);
                                                                }
                                                                v6_5 = v63_0;
                                                                v7_3 = (v2_5 + 1);
                                                                v2_7 = v3_3;
                                                                v3_8 = v1_13;
                                                                v1_0 = this;
                                                            }
                                                            v1_19 = v3_8;
                                                            v3_22 = v2_7;
                                                            if (v5_76.size() < v1_19.zznm()) {
                                                                v1_19.zznn().zza(v5_76);
                                                            }
                                                            String v2_14 = v4_149.entrySet().iterator();
                                                            while (v2_14.hasNext()) {
                                                                this.zzgy().zza(((com.google.android.gms.measurement.internal.zzae) ((java.util.Map$Entry) v2_14.next()).getValue()));
                                                            }
                                                        }
                                                    } catch (android.database.sqlite.SQLiteException v0_2) {
                                                        Object v1_14 = v0_2;
                                                        this.zzgy().endTransaction();
                                                        throw v1_14;
                                                    }
                                                    v1_19.zzao(nan).zzap(-0.0);
                                                    String v2_16 = 0;
                                                    while (v2_16 < v1_19.zznm()) {
                                                        int v4_180 = v1_19.zzq(v2_16);
                                                        if (v4_180.getTimestampMillis() < v1_19.zznq()) {
                                                            v1_19.zzao(v4_180.getTimestampMillis());
                                                        }
                                                        if (v4_180.getTimestampMillis() > v1_19.zznr()) {
                                                            v1_19.zzap(v4_180.getTimestampMillis());
                                                        }
                                                        v2_16++;
                                                    }
                                                    long v6_75;
                                                    String v2_18 = v3_22.zztn.zzag();
                                                    int v4_155 = this.zzgy().zzab(v2_18);
                                                    if (v4_155 != 0) {
                                                        v6_75 = this;
                                                        if (v1_19.zznm() > 0) {
                                                            String v7_42 = v4_155.zzak();
                                                            if (v7_42 == 0) {
                                                                v1_19.zznt();
                                                            } else {
                                                                v1_19.zzar(v7_42);
                                                            }
                                                            com.google.android.gms.measurement.internal.zzae v9_40 = v4_155.zzaj();
                                                            if (v9_40 != 0) {
                                                                v7_42 = v9_40;
                                                            } else {
                                                            }
                                                            if (v7_42 == 0) {
                                                                v1_19.zzns();
                                                            } else {
                                                                v1_19.zzaq(v7_42);
                                                            }
                                                            v4_155.zzau();
                                                            v1_19.zzu(((int) v4_155.zzar()));
                                                            v4_155.zze(v1_19.zznq());
                                                            v4_155.zzf(v1_19.zznr());
                                                            com.google.android.gms.measurement.internal.zzx v5_82 = v4_155.zzbc();
                                                            if (v5_82 == null) {
                                                                v1_19.zznu();
                                                            } else {
                                                                v1_19.zzcl(v5_82);
                                                            }
                                                            this.zzgy().zza(v4_155);
                                                        }
                                                    } else {
                                                        v6_75 = this;
                                                        this.zzj.zzab().zzgk().zza("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_22.zztn.zzag()));
                                                    }
                                                    if (v1_19.zznm() > 0) {
                                                        v6_75.zzj.zzae();
                                                        int v4_162 = this.zzgz().zzaw(v3_22.zztn.zzag());
                                                        if (v4_162 == 0) {
                                                            if (!android.text.TextUtils.isEmpty(v3_22.zztn.getGmpAppId())) {
                                                                v6_75.zzj.zzab().zzgn().zza("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_22.zztn.zzag()));
                                                            } else {
                                                                v1_19.zzav(-1);
                                                            }
                                                        } else {
                                                            if (v4_162.zzzk != null) {
                                                                v1_19.zzav(v4_162.zzzk.longValue());
                                                            } else {
                                                            }
                                                        }
                                                        this.zzgy().zza(((com.google.android.gms.internal.measurement.zzbs$zzg) ((com.google.android.gms.internal.measurement.zzey) v1_19.zzug())), v21_1);
                                                    }
                                                    Object v1_23 = this.zzgy();
                                                    String v3_23 = v3_22.zzto;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_23);
                                                    v1_23.zzo();
                                                    v1_23.zzbi();
                                                    int v4_174 = new StringBuilder("rowid in (");
                                                    com.google.android.gms.measurement.internal.zzx v5_90 = 0;
                                                    while (v5_90 < v3_23.size()) {
                                                        if (v5_90 != null) {
                                                            v4_174.append(",");
                                                        }
                                                        v4_174.append(((Long) v3_23.get(v5_90)).longValue());
                                                        v5_90++;
                                                    }
                                                    v4_174.append(")");
                                                    int v4_176 = v1_23.getWritableDatabase().delete("raw_events", v4_174.toString(), 0);
                                                    if (v4_176 != v3_23.size()) {
                                                        v1_23.zzab().zzgk().zza("Deleted fewer rows from raw events table than expected", Integer.valueOf(v4_176), Integer.valueOf(v3_23.size()));
                                                    }
                                                    Object v1_26 = this.zzgy();
                                                    String v3_26 = v1_26.getWritableDatabase();
                                                    try {
                                                        com.google.android.gms.measurement.internal.zzx v5_96 = new String[2];
                                                        v5_96[0] = v2_18;
                                                        v5_96[1] = v2_18;
                                                        v3_26.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v5_96);
                                                    } catch (android.database.sqlite.SQLiteException v0_6) {
                                                        v1_26.zzab().zzgk().zza("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzef.zzam(v2_18), v0_6);
                                                    }
                                                    this.zzgy().setTransactionSuccessful();
                                                    this.zzgy().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v6_27.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v7_2 = v3_7;
                                            com.google.android.gms.measurement.internal.zzx v5_0 = v6_27;
                                            String v3_10 = v0_0;
                                            try {
                                                v4_184.zzab().zzgk().zza("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzef.zzam(v7_2), v3_10);
                                            } catch (android.database.sqlite.SQLiteException v0_5) {
                                                Object v1_15 = v0_5;
                                                int v22 = v5_0;
                                                if (v22 != 0) {
                                                    v22.close();
                                                }
                                                throw v1_15;
                                            }
                                            if (v5_0 == null) {
                                            } else {
                                                v5_0.close();
                                            }
                                        }
                                        if (v15_3.moveToNext()) {
                                            v4_184.zzab().zzgn().zza("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7));
                                        }
                                        String[] v17_2;
                                        String v16_2;
                                        v15_3.close();
                                        v2_7.zzb(v13_10);
                                        if (v5_103 == -1) {
                                            long v10_44 = new String[2];
                                            v10_44[0] = v3_7;
                                            v10_44[1] = v7_2;
                                            v16_2 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_2 = v10_44;
                                        } else {
                                            Boolean v13_15 = new String[3];
                                            v13_15[0] = v3_7;
                                            v13_15[1] = v7_2;
                                            v13_15[2] = String.valueOf(v5_103);
                                            v16_2 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_2 = v13_15;
                                        }
                                        v6_27 = v15_3;
                                        v5_0 = v25_1.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_2, v17_2, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_0.moveToFirst()) {
                                                v4_184.zzab().zzgn().zza("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7));
                                                if (v5_0 == null) {
                                                } else {
                                                    v5_0.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v22 = v5_0;
                                            v1_15 = v0_1;
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v7_2 = v3_7;
                                        }
                                        do {
                                            long v6_46 = v5_0.getLong(0);
                                            long v10_50 = ((com.google.android.gms.internal.measurement.zzbs$zzc$zza) com.google.android.gms.internal.measurement.zzbs$zzc.zzmq().zzf(v5_0.getBlob(3), com.google.android.gms.internal.measurement.zzel.zztq()));
                                            v10_50.zzbx(v5_0.getString(1)).zzag(v5_0.getLong(2));
                                            if (v2_7.zza(v6_46, ((com.google.android.gms.internal.measurement.zzbs$zzc) ((com.google.android.gms.internal.measurement.zzey) v10_50.zzug())))) {
                                            } else {
                                                if (v5_0 == null) {
                                                } else {
                                                    v5_0.close();
                                                }
                                            }
                                        } while(v5_0.moveToNext());
                                        if (v5_0 == null) {
                                        } else {
                                            v5_0.close();
                                        }
                                    } else {
                                        v4_184.zzab().zzgk().zza("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzef.zzam(v3_7));
                                        if (v15_3 == null) {
                                        } else {
                                            v15_3.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v6_27 = v15_3;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_27 = v15_3;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v22 = v15_3;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v7_2 = v3_7;
                                    v5_0 = v15_3;
                                }
                                v22 = v6_27;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v22 = v23;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v7_2 = v3_7;
                                v5_0 = v23;
                            }
                        } else {
                            if (v3_7 == null) {
                            } else {
                                v3_7.close();
                            }
                        }
                    } else {
                        int v14_35;
                        Boolean v13_25 = v5_103 cmp -1;
                        try {
                            if (v13_25 == null) {
                                v14_35 = new String[1];
                                v14_35[0] = String.valueOf(p64);
                            } else {
                                v14_35 = new String[2];
                                v14_35[0] = String.valueOf(v5_103);
                                v14_35[1] = String.valueOf(p64);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_0) {
                            v5_0 = 0;
                            v7_2 = 0;
                        }
                        Boolean v13_26;
                        if (v13_25 == null) {
                            v13_26 = "";
                        } else {
                            v13_26 = "rowid <= ? and ";
                        }
                        String v3_29 = new StringBuilder((v13_26.length() + 148));
                        v3_29.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_29.append(v13_26);
                        v3_29.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_7 = v15_7.rawQuery(v3_29.toString(), v14_35);
                        if (v3_7.moveToFirst()) {
                            String v7_1 = v3_7.getString(0);
                            try {
                                Boolean v13_0 = v3_7.getString(1);
                                v3_7.close();
                                v23 = v3_7;
                                v3_7 = v7_1;
                                v7_2 = v13_0;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v5_0 = v3_7;
                            }
                        } else {
                            if (v3_7 == null) {
                            } else {
                                v3_7.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v22 = v3_7;
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v5_0 = v3_7;
                    v7_2 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v22 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
                v3_10 = v0_7;
                v5_0 = 0;
                v7_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_2) {
            }
        } catch (android.database.sqlite.SQLiteException v0_2) {
        }
    }

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


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