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.telemed.ae.SQLiteServices.DatabaseHelper.deleteNotificationList() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void deleteNotificationList()
    {
        this.myDataBase.delete("NotificationList", 0, 0);
        return;
    }

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


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

Method com.google.android.gms.tagmanager.zzec.zzfe() calling method android.database.sqlite.SQLiteDatabase.query()


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

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


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

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


    public final void resetAnalyticsData()
    {
        this.zzwj();
        try {
            Integer v0_4 = (this.getWritableDatabase().delete("messages", 0, 0) + 0);
        } catch (Integer v0_1) {
            this.zzayp().zzbau().zzj("Error resetting local analytics data. error", v0_1);
            return;
        }
        if (v0_4 > null) {
            this.zzayp().zzbba().zzj("Reset local analytics data. records", Integer.valueOf(v0_4));
        }
        return;
    }

Method com.google.android.gms.internal.zzcjf.zzep() calling method android.database.sqlite.SQLiteDatabase.delete()

Couldn't retrieve source code

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p6)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_11 = p6.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_11.moveToFirst();
                v0_11.close();
            } catch (android.database.sqlite.SQLiteException v6_5) {
                v0_11.close();
                throw v6_5;
            }
        }
        String v0_8;
        if (this.zza(p6, "hits2")) {
            String v0_4 = com.google.android.gms.internal.zzaru.zzb(p6, "hits2");
            int v2_1 = 0;
            while (v2_1 < 4) {
                String v3_2 = new String[] {"hit_id", "hit_string", "hit_time", "hit_url"})[v2_1];
                if (v0_4.remove(v3_2)) {
                    v2_1++;
                } else {
                    String v0_10;
                    String v1_7 = String.valueOf(v3_2);
                    if (v1_7.length() == 0) {
                        v0_10 = new String("Database hits2 is missing required column: ");
                    } else {
                        v0_10 = "Database hits2 is missing required column: ".concat(v1_7);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_10);
                }
            }
            String v1_5 = (v0_4.remove("hit_app_id") ^ 1);
            if (!v0_4.isEmpty()) {
                throw new android.database.sqlite.SQLiteException("Database hits2 has extra columns");
            } else {
                if (v1_5 != null) {
                    v0_8 = "ALTER TABLE hits2 ADD COLUMN hit_app_id INTEGER";
                    p6.execSQL(v0_8);
                }
            }
        } else {
            v0_8 = com.google.android.gms.internal.zzart.zzzc();
        }
        if (this.zza(p6, "properties")) {
            com.google.android.gms.internal.zzaru.zza(p6);
            return;
        } else {
            p6.execSQL("CREATE TABLE IF NOT EXISTS properties ( app_uid INTEGER NOT NULL, cid TEXT NOT NULL, tid TEXT NOT NULL, params TEXT NOT NULL, adid INTEGER NOT NULL, hits_count INTEGER NOT NULL, PRIMARY KEY (app_uid, cid, tid)) ;");
            return;
        }
    }

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


    public final void zzf(com.google.android.gms.internal.zzcif p19)
    {
        this.zzayo().zzwj();
        this.zzyk();
        com.google.android.gms.common.internal.zzbq.checkNotNull(p19);
        com.google.android.gms.common.internal.zzbq.zzgv(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzjfl)) {
            String v0_8 = this.zzayj().zzjj(p19.packageName);
            if ((v0_8 != null) && ((android.text.TextUtils.isEmpty(v0_8.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzjfl)))) {
                v0_8.zzar(0);
                this.zzayj().zza(v0_8);
                this.zzaym().zzkd(p19.packageName);
            }
            if (p19.zzjfv) {
                long v5_6 = p19.zzjgk;
                if (v5_6 == 0) {
                    v5_6 = this.zzdir.currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_62 = p19.zzjgl;
                if ((v0_62 == null) || (v0_62 == 1)) {
                    v15_3 = v0_62;
                } else {
                    this.zzayp().zzbaw().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName), Integer.valueOf(v0_62));
                    v15_3 = 0;
                }
                this.zzayj().beginTransaction();
                try {
                    String v0_7 = this.zzayj().zzjj(p19.packageName);
                } catch (String v0_59) {
                    this.zzayj().endTransaction();
                    throw v0_59;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzjfl)))) {
                    this.zzayp().zzbaw().zzj("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzcjj.zzjs(v0_7.getAppId()));
                    com.google.android.gms.internal.zzcnl v7_39 = this.zzayj();
                    String v8_21 = v0_7.getAppId();
                    v7_39.zzyk();
                    v7_39.zzwj();
                    com.google.android.gms.common.internal.zzbq.zzgv(v8_21);
                    try {
                        String v0_0 = v7_39.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_21;
                        String v10_10 = (((((((((v0_0.delete("events", "app_id=?", v9_0) + 0) + v0_0.delete("user_attributes", "app_id=?", v9_0)) + v0_0.delete("conditional_properties", "app_id=?", v9_0)) + v0_0.delete("apps", "app_id=?", v9_0)) + v0_0.delete("raw_events", "app_id=?", v9_0)) + v0_0.delete("raw_events_metadata", "app_id=?", v9_0)) + v0_0.delete("event_filters", "app_id=?", v9_0)) + v0_0.delete("property_filters", "app_id=?", v9_0)) + v0_0.delete("audience_filter_values", "app_id=?", v9_0));
                    } catch (String v0_4) {
                        v7_39.zzayp().zzbau().zze("Error deleting application data. appId, error", com.google.android.gms.internal.zzcjj.zzjs(v8_21), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_39.zzayp().zzbba().zze("Deleted application data. app, records", v8_21, Integer.valueOf(v10_10));
                    }
                }
                if (v0_7 != null) {
                    String v0_10;
                    if (v0_7.zzayx() == -2147483648) {
                        if ((v0_7.zzwo() == null) || (v0_7.zzwo().equals(p19.zzina))) {
                            String v8_6;
                            String v0_12;
                            com.google.android.gms.internal.zzcnl v7_13;
                            String v0_13;
                            this = this.zzg(p19);
                            if (v15_3 != null) {
                                if (v15_3 != 1) {
                                    v0_12 = 0;
                                } else {
                                    v0_13 = this.zzayj();
                                    v7_13 = p19.packageName;
                                    v8_6 = "_v";
                                    v0_12 = v0_13.zzae(v7_13, v8_6);
                                }
                            } else {
                                v0_13 = this.zzayj();
                                v7_13 = p19.packageName;
                                v8_6 = "_f";
                            }
                            com.google.android.gms.internal.zzcnl v3_2;
                            if (v0_12 != null) {
                                if (p19.zzjgj) {
                                    v3_2 = new com.google.android.gms.internal.zzcix;
                                    v3_2("_cd", new com.google.android.gms.internal.zzciu(new android.os.Bundle()), "auto", v5_6);
                                    this.zzb(v3_2, p19);
                                }
                            } else {
                                Long v13_0;
                                long v9_13 = (((v5_6 / 3600000) + 1) * 3600000);
                                if (v15_3 != null) {
                                    v13_0 = 1;
                                    if (v15_3 == 1) {
                                        String v0_17 = new com.google.android.gms.internal.zzcnl;
                                        v0_17("_fvt", v5_6, Long.valueOf(v9_13), "auto");
                                        this.zzb(v0_17, p19);
                                        this.zzayo().zzwj();
                                        this.zzyk();
                                        String v0_20 = new android.os.Bundle();
                                        v0_20.putLong("_c", 1);
                                        v0_20.putLong("_r", 1);
                                        com.google.android.gms.internal.zzcnl v3_6 = new com.google.android.gms.internal.zzcix;
                                        v3_6("_v", new com.google.android.gms.internal.zzciu(v0_20), "auto", v5_6);
                                        this.zzb(v3_6, p19);
                                    }
                                } else {
                                    String v0_21 = new com.google.android.gms.internal.zzcnl;
                                    v13_0 = 1;
                                    v0_21("_fot", v5_6, Long.valueOf(v9_13), "auto");
                                    this.zzb(v0_21, p19);
                                    this.zzayo().zzwj();
                                    this.zzyk();
                                    android.os.Bundle v15_2 = new android.os.Bundle();
                                    v15_2.putLong("_c", 1);
                                    v15_2.putLong("_r", 1);
                                    v15_2.putLong("_uwa", 0);
                                    v15_2.putLong("_pfo", 0);
                                    v15_2.putLong("_sys", 0);
                                    v15_2.putLong("_sysu", 0);
                                    if (this.zzaiq.getPackageManager() != null) {
                                        try {
                                            String v0_34 = com.google.android.gms.internal.zzbih.zzdd(this.zzaiq).getPackageInfo(p19.packageName, 0);
                                        } catch (String v0_35) {
                                            this.zzayp().zzbau().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName), v0_35);
                                            v0_34 = 0;
                                        }
                                        if ((v0_34 != null) && (v0_34.firstInstallTime != 0)) {
                                            String v0_38;
                                            if (v0_34.firstInstallTime == v0_34.lastUpdateTime) {
                                                v0_38 = 1;
                                            } else {
                                                v15_2.putLong("_uwa", 1);
                                                v0_38 = 0;
                                            }
                                            long v9_22;
                                            String v12_10 = new com.google.android.gms.internal.zzcnl;
                                            if (v0_38 == null) {
                                                v9_22 = 0;
                                            } else {
                                                v9_22 = 1;
                                            }
                                            com.google.android.gms.internal.zzcnl v3_7 = v12_10;
                                            v12_10("_fi", v5_6, Long.valueOf(v9_22), "auto");
                                            this.zzb(v3_7, p19);
                                        }
                                        try {
                                            String v0_43 = com.google.android.gms.internal.zzbih.zzdd(this.zzaiq).getApplicationInfo(p19.packageName, 0);
                                        } catch (String v0_44) {
                                            this.zzayp().zzbau().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName), v0_44);
                                            v0_43 = 0;
                                        }
                                        if (v0_43 != null) {
                                            if ((v0_43.flags & 1) != 0) {
                                                v15_2.putLong("_sys", 1);
                                            }
                                            if ((v0_43.flags & 128) != 0) {
                                                v15_2.putLong("_sysu", 1);
                                            }
                                        }
                                    } else {
                                        this.zzayp().zzbau().zzj("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName));
                                    }
                                    String v0_51 = this.zzayj();
                                    com.google.android.gms.internal.zzcnl v3_14 = p19.packageName;
                                    com.google.android.gms.common.internal.zzbq.zzgv(v3_14);
                                    v0_51.zzwj();
                                    v0_51.zzyk();
                                    com.google.android.gms.internal.zzcnl v3_15 = v0_51.zzal(v3_14, "first_open_count");
                                    if (v3_15 >= 0) {
                                        v15_2.putLong("_pfo", v3_15);
                                    }
                                    String v0_55 = new com.google.android.gms.internal.zzcix;
                                    v0_55("_f", new com.google.android.gms.internal.zzciu(v15_2), "auto", v5_6);
                                    this.zzb(v0_55, p19);
                                }
                                String v0_58 = new android.os.Bundle();
                                v0_58.putLong("_et", v13_0);
                                v3_2 = new com.google.android.gms.internal.zzcix;
                                v3_2("_e", new com.google.android.gms.internal.zzciu(v0_58), "auto", v5_6);
                            }
                            this.zzayj().setTransactionSuccessful();
                            this.zzayj().endTransaction();
                            return;
                        } else {
                            com.google.android.gms.internal.zzcnl v7_7 = new android.os.Bundle();
                            v7_7.putString("_pv", v0_7.zzwo());
                            v0_10 = new com.google.android.gms.internal.zzcix;
                            v0_10("_au", new com.google.android.gms.internal.zzciu(v7_7), "auto", v5_6);
                        }
                    } else {
                        if (v0_7.zzayx() == p19.zzjfr) {
                        } else {
                            com.google.android.gms.internal.zzcnl v7_11 = new android.os.Bundle();
                            v7_11.putString("_pv", v0_7.zzwo());
                            v0_10 = new com.google.android.gms.internal.zzcix;
                            v0_10("_au", new com.google.android.gms.internal.zzciu(v7_11), "auto", v5_6);
                        }
                    }
                    this.zzb(v0_10, p19);
                }
            } else {
                this.zzg(p19);
                return;
            }
        } else {
            return;
        }
    }

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


    public final void zzf(com.google.android.gms.internal.zzcif p19)
    {
        this.zzayo().zzwj();
        this.zzyk();
        com.google.android.gms.common.internal.zzbq.checkNotNull(p19);
        com.google.android.gms.common.internal.zzbq.zzgv(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzjfl)) {
            String v0_8 = this.zzayj().zzjj(p19.packageName);
            if ((v0_8 != null) && ((android.text.TextUtils.isEmpty(v0_8.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzjfl)))) {
                v0_8.zzar(0);
                this.zzayj().zza(v0_8);
                this.zzaym().zzkd(p19.packageName);
            }
            if (p19.zzjfv) {
                long v5_6 = p19.zzjgk;
                if (v5_6 == 0) {
                    v5_6 = this.zzdir.currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_62 = p19.zzjgl;
                if ((v0_62 == null) || (v0_62 == 1)) {
                    v15_3 = v0_62;
                } else {
                    this.zzayp().zzbaw().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName), Integer.valueOf(v0_62));
                    v15_3 = 0;
                }
                this.zzayj().beginTransaction();
                try {
                    String v0_7 = this.zzayj().zzjj(p19.packageName);
                } catch (String v0_59) {
                    this.zzayj().endTransaction();
                    throw v0_59;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzjfl)))) {
                    this.zzayp().zzbaw().zzj("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzcjj.zzjs(v0_7.getAppId()));
                    com.google.android.gms.internal.zzcnl v7_39 = this.zzayj();
                    String v8_21 = v0_7.getAppId();
                    v7_39.zzyk();
                    v7_39.zzwj();
                    com.google.android.gms.common.internal.zzbq.zzgv(v8_21);
                    try {
                        String v0_0 = v7_39.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_21;
                        String v10_10 = (((((((((v0_0.delete("events", "app_id=?", v9_0) + 0) + v0_0.delete("user_attributes", "app_id=?", v9_0)) + v0_0.delete("conditional_properties", "app_id=?", v9_0)) + v0_0.delete("apps", "app_id=?", v9_0)) + v0_0.delete("raw_events", "app_id=?", v9_0)) + v0_0.delete("raw_events_metadata", "app_id=?", v9_0)) + v0_0.delete("event_filters", "app_id=?", v9_0)) + v0_0.delete("property_filters", "app_id=?", v9_0)) + v0_0.delete("audience_filter_values", "app_id=?", v9_0));
                    } catch (String v0_4) {
                        v7_39.zzayp().zzbau().zze("Error deleting application data. appId, error", com.google.android.gms.internal.zzcjj.zzjs(v8_21), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_39.zzayp().zzbba().zze("Deleted application data. app, records", v8_21, Integer.valueOf(v10_10));
                    }
                }
                if (v0_7 != null) {
                    String v0_10;
                    if (v0_7.zzayx() == -2147483648) {
                        if ((v0_7.zzwo() == null) || (v0_7.zzwo().equals(p19.zzina))) {
                            String v0_13;
                            String v0_12;
                            com.google.android.gms.internal.zzcnl v7_13;
                            String v8_6;
                            this = this.zzg(p19);
                            if (v15_3 != null) {
                                if (v15_3 != 1) {
                                    v0_12 = 0;
                                } else {
                                    v0_13 = this.zzayj();
                                    v7_13 = p19.packageName;
                                    v8_6 = "_v";
                                    v0_12 = v0_13.zzae(v7_13, v8_6);
                                }
                            } else {
                                v0_13 = this.zzayj();
                                v7_13 = p19.packageName;
                                v8_6 = "_f";
                            }
                            com.google.android.gms.internal.zzcnl v3_2;
                            if (v0_12 != null) {
                                if (p19.zzjgj) {
                                    v3_2 = new com.google.android.gms.internal.zzcix;
                                    v3_2("_cd", new com.google.android.gms.internal.zzciu(new android.os.Bundle()), "auto", v5_6);
                                    this.zzb(v3_2, p19);
                                }
                            } else {
                                Long v13_0;
                                long v9_13 = (((v5_6 / 3600000) + 1) * 3600000);
                                if (v15_3 != null) {
                                    v13_0 = 1;
                                    if (v15_3 == 1) {
                                        String v0_17 = new com.google.android.gms.internal.zzcnl;
                                        v0_17("_fvt", v5_6, Long.valueOf(v9_13), "auto");
                                        this.zzb(v0_17, p19);
                                        this.zzayo().zzwj();
                                        this.zzyk();
                                        String v0_20 = new android.os.Bundle();
                                        v0_20.putLong("_c", 1);
                                        v0_20.putLong("_r", 1);
                                        com.google.android.gms.internal.zzcnl v3_6 = new com.google.android.gms.internal.zzcix;
                                        v3_6("_v", new com.google.android.gms.internal.zzciu(v0_20), "auto", v5_6);
                                        this.zzb(v3_6, p19);
                                    }
                                } else {
                                    String v0_21 = new com.google.android.gms.internal.zzcnl;
                                    v13_0 = 1;
                                    v0_21("_fot", v5_6, Long.valueOf(v9_13), "auto");
                                    this.zzb(v0_21, p19);
                                    this.zzayo().zzwj();
                                    this.zzyk();
                                    android.os.Bundle v15_2 = new android.os.Bundle();
                                    v15_2.putLong("_c", 1);
                                    v15_2.putLong("_r", 1);
                                    v15_2.putLong("_uwa", 0);
                                    v15_2.putLong("_pfo", 0);
                                    v15_2.putLong("_sys", 0);
                                    v15_2.putLong("_sysu", 0);
                                    if (this.zzaiq.getPackageManager() != null) {
                                        try {
                                            String v0_34 = com.google.android.gms.internal.zzbih.zzdd(this.zzaiq).getPackageInfo(p19.packageName, 0);
                                        } catch (String v0_35) {
                                            this.zzayp().zzbau().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName), v0_35);
                                            v0_34 = 0;
                                        }
                                        if ((v0_34 != null) && (v0_34.firstInstallTime != 0)) {
                                            String v0_38;
                                            if (v0_34.firstInstallTime == v0_34.lastUpdateTime) {
                                                v0_38 = 1;
                                            } else {
                                                v15_2.putLong("_uwa", 1);
                                                v0_38 = 0;
                                            }
                                            long v9_22;
                                            String v12_10 = new com.google.android.gms.internal.zzcnl;
                                            if (v0_38 == null) {
                                                v9_22 = 0;
                                            } else {
                                                v9_22 = 1;
                                            }
                                            com.google.android.gms.internal.zzcnl v3_7 = v12_10;
                                            v12_10("_fi", v5_6, Long.valueOf(v9_22), "auto");
                                            this.zzb(v3_7, p19);
                                        }
                                        try {
                                            String v0_43 = com.google.android.gms.internal.zzbih.zzdd(this.zzaiq).getApplicationInfo(p19.packageName, 0);
                                        } catch (String v0_44) {
                                            this.zzayp().zzbau().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName), v0_44);
                                            v0_43 = 0;
                                        }
                                        if (v0_43 != null) {
                                            if ((v0_43.flags & 1) != 0) {
                                                v15_2.putLong("_sys", 1);
                                            }
                                            if ((v0_43.flags & 128) != 0) {
                                                v15_2.putLong("_sysu", 1);
                                            }
                                        }
                                    } else {
                                        this.zzayp().zzbau().zzj("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName));
                                    }
                                    String v0_51 = this.zzayj();
                                    com.google.android.gms.internal.zzcnl v3_14 = p19.packageName;
                                    com.google.android.gms.common.internal.zzbq.zzgv(v3_14);
                                    v0_51.zzwj();
                                    v0_51.zzyk();
                                    com.google.android.gms.internal.zzcnl v3_15 = v0_51.zzal(v3_14, "first_open_count");
                                    if (v3_15 >= 0) {
                                        v15_2.putLong("_pfo", v3_15);
                                    }
                                    String v0_55 = new com.google.android.gms.internal.zzcix;
                                    v0_55("_f", new com.google.android.gms.internal.zzciu(v15_2), "auto", v5_6);
                                    this.zzb(v0_55, p19);
                                }
                                String v0_58 = new android.os.Bundle();
                                v0_58.putLong("_et", v13_0);
                                v3_2 = new com.google.android.gms.internal.zzcix;
                                v3_2("_e", new com.google.android.gms.internal.zzciu(v0_58), "auto", v5_6);
                            }
                            this.zzayj().setTransactionSuccessful();
                            this.zzayj().endTransaction();
                            return;
                        } else {
                            com.google.android.gms.internal.zzcnl v7_7 = new android.os.Bundle();
                            v7_7.putString("_pv", v0_7.zzwo());
                            v0_10 = new com.google.android.gms.internal.zzcix;
                            v0_10("_au", new com.google.android.gms.internal.zzciu(v7_7), "auto", v5_6);
                        }
                    } else {
                        if (v0_7.zzayx() == p19.zzjfr) {
                        } else {
                            com.google.android.gms.internal.zzcnl v7_11 = new android.os.Bundle();
                            v7_11.putString("_pv", v0_7.zzwo());
                            v0_10 = new com.google.android.gms.internal.zzcix;
                            v0_10("_au", new com.google.android.gms.internal.zzciu(v7_11), "auto", v5_6);
                        }
                    }
                    this.zzb(v0_10, p19);
                }
            } else {
                this.zzg(p19);
                return;
            }
        } else {
            return;
        }
    }

Method com.telemed.ae.SQLiteServices.SQLiteAdapter.getAllChat() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.ArrayList getAllChat()
    {
        this.sqLiteHelper = new com.telemed.ae.SQLiteServices.SQLiteAdapter$SQLiteHelper(this.context, "Reminder_Db", 0, 2);
        android.database.Cursor v0_2 = this.sqLiteHelper.getReadableDatabase().query("SimpleChat", new String[] {"name", "message", "side"}), 0, 0, 0, 0, 0);
        java.util.ArrayList v1_2 = new java.util.ArrayList();
        while (v0_2.moveToNext()) {
            com.telemed.ae.model.Chat v2_5 = new com.telemed.ae.model.Chat();
            v2_5.name = v0_2.getString(v0_2.getColumnIndex("name"));
            v2_5.message = v0_2.getString(v0_2.getColumnIndex("message"));
            v2_5.side = v0_2.getString(v0_2.getColumnIndex("side"));
            v1_2.add(v2_5);
        }
        return v1_2;
    }

Method com.telemed.ae.SQLiteServices.SQLiteAdapter.getAllColumns() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List getAllColumns(String p10)
    {
        java.util.ArrayList v0_1 = new java.util.ArrayList();
        int v10_1 = this.sqLiteDatabase.query(p10, 0, 0, 0, 0, 0, 0);
        String[] v1_0 = v10_1.getColumnNames();
        if ((v10_1 != 0) && (!v10_1.isClosed())) {
            v10_1.close();
        }
        int v10_2 = 0;
        while (v10_2 < v1_0.length) {
            v0_1.add(v1_0[v10_2]);
            v10_2++;
        }
        return v0_1;
    }

Method com.telemed.ae.SQLiteServices.SQLiteAdapter.queueAll() calling method android.database.sqlite.SQLiteDatabase.query()


    public android.database.Cursor queueAll(String p9, String[] p10, String p11, String p12)
    {
        return this.sqLiteDatabase.query(p9, p10, p12, 0, 0, 0, p11);
    }

Method com.telemed.ae.SQLiteServices.SQLiteAdapter.queueAllV() calling method android.database.sqlite.SQLiteDatabase.query()


    public android.database.Cursor queueAllV(String p9, String[] p10, String p11, String p12, String p13)
    {
        android.database.Cursor v9_1;
        if (!p13.equalsIgnoreCase("")) {
            android.database.sqlite.SQLiteDatabase v0_1 = this.sqLiteDatabase;
            String[] v4_1 = new String[1];
            v4_1[0] = p13;
            v9_1 = v0_1.query(p9, p10, p12, v4_1, 0, 0, 0);
        } else {
            v9_1 = this.sqLiteDatabase.query(p9, p10, p12, 0, 0, 0, 0);
        }
        return v9_1;
    }

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


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

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


    private final boolean zzg(String p53, long p54)
    {
        this.zzayj().beginTransaction();
        try {
            android.database.sqlite.SQLiteException v3_1 = 0;
            com.google.android.gms.internal.zzcjl v2_3 = new com.google.android.gms.internal.zzckj$zza(this, 0);
            String v4_55 = this.zzayj();
            com.google.android.gms.internal.zzcjl v5_98 = this.zzjox;
            com.google.android.gms.common.internal.zzbq.checkNotNull(v2_3);
            v4_55.zzwj();
            v4_55.zzyk();
            try {
                int v23;
                String v22;
                long v15_2 = v4_55.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        int v12_22;
                        if (v5_98 == -1) {
                            v12_22 = new String[] {0});
                        } else {
                            android.database.sqlite.SQLiteException v3_4 = new String[2];
                            v3_4[0] = 0;
                            v3_4[1] = String.valueOf(v5_98);
                            v12_22 = v3_4;
                        }
                        android.database.sqlite.SQLiteException v3_11;
                        if (v5_98 == -1) {
                            v3_11 = "";
                        } else {
                            v3_11 = " and rowid <= ?";
                        }
                        Boolean v14_11 = new StringBuilder((String.valueOf(v3_11).length() + 84));
                        v14_11.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_11.append(v3_11);
                        v14_11.append(" order by rowid limit 1;");
                        v3_1 = v15_2.rawQuery(v14_11.toString(), v12_22);
                        if (v3_1.moveToFirst()) {
                            com.google.android.gms.internal.zzcit v13_13 = v3_1.getString(0);
                            v3_1.close();
                            v23 = v3_1;
                            v22 = v13_13;
                            v3_1 = 0;
                            try {
                                int v12_6 = new String[2];
                                v12_6[0] = v3_1;
                                v12_6[1] = v22;
                                android.database.sqlite.SQLiteDatabase v25 = v15_2;
                                long v15_1 = v15_2.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_6, 0, 0, "rowid", "2");
                                try {
                                    if (v15_1.moveToFirst()) {
                                        int v12_9 = v15_1.getBlob(0);
                                        int v12_10 = com.google.android.gms.internal.zzflj.zzo(v12_9, 0, v12_9.length);
                                        com.google.android.gms.internal.zzcit v13_5 = new com.google.android.gms.internal.zzcoe();
                                        try {
                                            v13_5.zza(v12_10);
                                        } catch (java.io.IOException v0_6) {
                                            int v9_0 = v15_1;
                                            v4_55.zzayp().zzbau().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzcjj.zzjs(v3_1), v0_6);
                                            if (v9_0 == 0) {
                                                android.database.sqlite.SQLiteException v3_8;
                                                if (v2_3.zzaoz == null) {
                                                    v3_8 = 1;
                                                } else {
                                                    if (!v2_3.zzaoz.isEmpty()) {
                                                        v3_8 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_8 != null) {
                                                    this.zzayj().setTransactionSuccessful();
                                                    this.zzayj().endTransaction();
                                                    return 0;
                                                } else {
                                                    android.database.sqlite.SQLiteException v3_9 = v2_3.zzjpe;
                                                    String v4_4 = new com.google.android.gms.internal.zzcob[v2_3.zzaoz.size()];
                                                    v3_9.zzjuq = v4_4;
                                                    String v4_6 = this.zzjns.zzjh(v3_9.zzcm);
                                                    int v9_11 = 0;
                                                    int v12_1 = 0;
                                                    com.google.android.gms.internal.zzcit v13_1 = 0;
                                                    Boolean v14_0 = 0;
                                                    while (v9_11 < v2_3.zzaoz.size()) {
                                                        long v44_0;
                                                        com.google.android.gms.internal.zzcit v7_39 = ((com.google.android.gms.internal.zzcob) v2_3.zzaoz.get(v9_11));
                                                        if (!this.zzaym().zzan(v2_3.zzjpe.zzcm, v7_39.name)) {
                                                            com.google.android.gms.internal.zzcjl v5_103 = this.zzaym().zzao(v2_3.zzjpe.zzcm, v7_39.name);
                                                            if (v5_103 != null) {
                                                                if (v7_39.zzjui == null) {
                                                                    Boolean v8_53 = new com.google.android.gms.internal.zzcoc[0];
                                                                    v7_39.zzjui = v8_53;
                                                                }
                                                                String v6_33 = v7_39.zzjui;
                                                                Boolean v8_39 = v6_33.length;
                                                                int v10_18 = 0;
                                                                com.google.android.gms.internal.zzcil v11_6 = 0;
                                                                long v18_0 = 0;
                                                                while (v10_18 < v8_39) {
                                                                    int v32_1 = v8_39;
                                                                    Boolean v8_38 = v6_33[v10_18];
                                                                    int v33_1 = v6_33;
                                                                    int v34_1 = v12_1;
                                                                    if (!"_c".equals(v8_38.name)) {
                                                                        if ("_r".equals(v8_38.name)) {
                                                                            v8_38.zzjum = Long.valueOf(1);
                                                                            v18_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v8_38.zzjum = Long.valueOf(1);
                                                                        v11_6 = 1;
                                                                    }
                                                                    v10_18++;
                                                                    v8_39 = v32_1;
                                                                    v6_33 = v33_1;
                                                                    v12_1 = v34_1;
                                                                }
                                                                int v34_3 = v12_1;
                                                                if ((v11_6 == null) && (v5_103 != null)) {
                                                                    this.zzayp().zzbba().zzj("Marking event as conversion", this.zzayk().zzjp(v7_39.name));
                                                                    String v6_2 = ((com.google.android.gms.internal.zzcoc[]) java.util.Arrays.copyOf(v7_39.zzjui, (v7_39.zzjui.length + 1)));
                                                                    Boolean v8_4 = new com.google.android.gms.internal.zzcoc();
                                                                    v8_4.name = "_c";
                                                                    v8_4.zzjum = Long.valueOf(1);
                                                                    v6_2[(v6_2.length - 1)] = v8_4;
                                                                    v7_39.zzjui = v6_2;
                                                                }
                                                                if (v18_0 == 0) {
                                                                    this.zzayp().zzbba().zzj("Marking event as real-time", this.zzayk().zzjp(v7_39.name));
                                                                    String v6_7 = ((com.google.android.gms.internal.zzcoc[]) java.util.Arrays.copyOf(v7_39.zzjui, (v7_39.zzjui.length + 1)));
                                                                    Boolean v8_10 = new com.google.android.gms.internal.zzcoc();
                                                                    v8_10.name = "_r";
                                                                    v8_10.zzjum = Long.valueOf(1);
                                                                    v6_7[(v6_7.length - 1)] = v8_10;
                                                                    v7_39.zzjui = v6_7;
                                                                }
                                                                v44_0 = v9_11;
                                                                if (this.zzayj().zza(this.zzbbx(), v2_3.zzjpe.zzcm, 0, 0, 0, 0, 1).zzjhi <= ((long) this.zzjns.zzje(v2_3.zzjpe.zzcm))) {
                                                                    v12_1 = 1;
                                                                } else {
                                                                    String v6_14 = 0;
                                                                    while (v6_14 < v7_39.zzjui.length) {
                                                                        if (!"_r".equals(v7_39.zzjui[v6_14].name)) {
                                                                            v6_14++;
                                                                        } else {
                                                                            Boolean v8_21 = new com.google.android.gms.internal.zzcoc[(v7_39.zzjui.length - 1)];
                                                                            if (v6_14 > null) {
                                                                                System.arraycopy(v7_39.zzjui, 0, v8_21, 0, v6_14);
                                                                            }
                                                                            if (v6_14 < v8_21.length) {
                                                                                System.arraycopy(v7_39.zzjui, (v6_14 + 1), v8_21, v6_14, (v8_21.length - v6_14));
                                                                            }
                                                                            v7_39.zzjui = v8_21;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_1 = v34_3;
                                                                }
                                                                if ((com.google.android.gms.internal.zzcno.zzkh(v7_39.name)) && ((v5_103 != null) && (this.zzayj().zza(this.zzbbx(), v2_3.zzjpe.zzcm, 0, 0, 1, 0, 0).zzjhg > ((long) this.zzjns.zzb(v2_3.zzjpe.zzcm, com.google.android.gms.internal.zzciz.zzjja))))) {
                                                                    this.zzayp().zzbaw().zzj("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm));
                                                                    com.google.android.gms.internal.zzcjl v5_6 = v7_39.zzjui;
                                                                    String v6_18 = v5_6.length;
                                                                    Boolean v8_28 = 0;
                                                                    int v9_10 = 0;
                                                                    int v10_17 = 0;
                                                                    while (v8_28 < v6_18) {
                                                                        com.google.android.gms.internal.zzcil v11_5 = v5_6[v8_28];
                                                                        if (!"_c".equals(v11_5.name)) {
                                                                            if ("_err".equals(v11_5.name)) {
                                                                                v9_10 = 1;
                                                                            }
                                                                        } else {
                                                                            v10_17 = v11_5;
                                                                        }
                                                                        v8_28++;
                                                                    }
                                                                    if ((v9_10 == 0) || (v10_17 == 0)) {
                                                                        if (v10_17 == 0) {
                                                                            this.zzayp().zzbau().zzj("Did not find conversion parameter. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm));
                                                                        } else {
                                                                            v10_17.name = "_err";
                                                                            v10_17.zzjum = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.zzcjl v5_12 = v7_39.zzjui;
                                                                        Boolean v8_32 = new com.google.android.gms.internal.zzcoc[1];
                                                                        v8_32[0] = v10_17;
                                                                        v7_39.zzjui = ((com.google.android.gms.internal.zzcoc[]) com.google.android.gms.common.util.zzb.zza(v5_12, v8_32));
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzayl();
                                                                if (!com.google.android.gms.internal.zzcno.zzku(v7_39.name)) {
                                                                    v44_0 = v9_11;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v4_6 != null) && ("_e".equals(v7_39.name))) {
                                                                Boolean v8_35;
                                                                String v6_23;
                                                                com.google.android.gms.internal.zzcjl v5_25;
                                                                if (v7_39.zzjui == null) {
                                                                    v5_25 = this.zzayp().zzbaw();
                                                                    v6_23 = "Engagement event does not contain any parameters. appId";
                                                                    v8_35 = com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm);
                                                                } else {
                                                                    if (v7_39.zzjui.length != 0) {
                                                                        this.zzayl();
                                                                        com.google.android.gms.internal.zzcjl v5_22 = ((Long) com.google.android.gms.internal.zzcno.zzb(v7_39, "_et"));
                                                                        if (v5_22 != null) {
                                                                            v14_0 += v5_22.longValue();
                                                                            String v6_24 = (v13_1 + 1);
                                                                            v3_9.zzjuq[v13_1] = v7_39;
                                                                            v13_1 = v6_24;
                                                                            v9_11 = (v44_0 + 1);
                                                                            com.google.android.gms.internal.zzcil v11 = 1;
                                                                        } else {
                                                                            v5_25 = this.zzayp().zzbaw();
                                                                            v6_23 = "Engagement event does not include duration. appId";
                                                                            v8_35 = com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm);
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                v5_25.zzj(v6_23, v8_35);
                                                            }
                                                        } else {
                                                            com.google.android.gms.internal.zzcjl v5_38;
                                                            this.zzayp().zzbaw().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm), this.zzayk().zzjp(v7_39.name));
                                                            if (this.zzayl().zzks(v2_3.zzjpe.zzcm)) {
                                                                v5_38 = 1;
                                                            } else {
                                                                if (!this.zzayl().zzkt(v2_3.zzjpe.zzcm)) {
                                                                    v5_38 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_38 == null) && (!"_err".equals(v7_39.name))) {
                                                                this.zzayl().zza(v2_3.zzjpe.zzcm, 11, "_ev", v7_39.name, 0);
                                                            }
                                                            v44_0 = v9_11;
                                                        }
                                                    }
                                                    int v34_2 = v12_1;
                                                    if (v13_1 < v2_3.zzaoz.size()) {
                                                        v3_9.zzjuq = ((com.google.android.gms.internal.zzcob[]) java.util.Arrays.copyOf(v3_9.zzjuq, v13_1));
                                                    }
                                                    if (v4_6 != null) {
                                                        String v4_11;
                                                        String v4_8 = this.zzayj().zzag(v3_9.zzcm, "_lte");
                                                        if (v4_8 == null) {
                                                            v4_11 = new com.google.android.gms.internal.zzcnn;
                                                            v4_11(v3_9.zzcm, "auto", "_lte", this.zzdir.currentTimeMillis(), Long.valueOf(v14_0));
                                                        } else {
                                                            if (v4_8.value != null) {
                                                                com.google.android.gms.internal.zzcjl v5_58 = new com.google.android.gms.internal.zzcnn;
                                                                v5_58(v3_9.zzcm, "auto", "_lte", this.zzdir.currentTimeMillis(), Long.valueOf((((Long) v4_8.value).longValue() + v14_0)));
                                                                v4_11 = v5_58;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.internal.zzcjl v5_61 = new com.google.android.gms.internal.zzcog();
                                                        v5_61.name = "_lte";
                                                        v5_61.zzjvr = Long.valueOf(this.zzdir.currentTimeMillis());
                                                        v5_61.zzjum = ((Long) v4_11.value);
                                                        String v6_61 = 0;
                                                        while (v6_61 < v3_9.zzjur.length) {
                                                            if (!"_lte".equals(v3_9.zzjur[v6_61].name)) {
                                                                v6_61++;
                                                            } else {
                                                                v3_9.zzjur[v6_61] = v5_61;
                                                                String v6_62 = 1;
                                                            }
                                                            if (v6_62 == null) {
                                                                v3_9.zzjur = ((com.google.android.gms.internal.zzcog[]) java.util.Arrays.copyOf(v3_9.zzjur, (v3_9.zzjur.length + 1)));
                                                                v3_9.zzjur[(v2_3.zzjpe.zzjur.length - 1)] = v5_61;
                                                            }
                                                            if (v14_0 > 0) {
                                                                this.zzayj().zza(v4_11);
                                                                this.zzayp().zzbaz().zzj("Updated lifetime engagement user property with value. Value", v4_11.value);
                                                            }
                                                        }
                                                        v6_62 = 0;
                                                    }
                                                    int v12_30;
                                                    v3_9.zzjvh = this.zza(v3_9.zzcm, v3_9.zzjur, v3_9.zzjuq);
                                                    if ((!((Boolean) com.google.android.gms.internal.zzciz.zzjim.get()).booleanValue()) || (!"1".equals(this.zzjns.zzaym().zzam(v2_3.zzjpe.zzcm, "measurement.event_sampling_enabled")))) {
                                                        v12_30 = 0;
                                                    } else {
                                                        String v4_24 = new java.util.HashMap();
                                                        com.google.android.gms.internal.zzcjl v5_71 = new com.google.android.gms.internal.zzcob[v3_9.zzjuq.length];
                                                        String v6_71 = this.zzayl().zzbcr();
                                                        com.google.android.gms.internal.zzcit v7_18 = v3_9.zzjuq;
                                                        Boolean v8_49 = v7_18.length;
                                                        int v9_29 = 0;
                                                        int v10_23 = 0;
                                                        while (v9_29 < v8_49) {
                                                            long v49;
                                                            int v12_46;
                                                            Object v51;
                                                            long v50;
                                                            com.google.android.gms.internal.zzcil v11_10 = v7_18[v9_29];
                                                            if (!v11_10.name.equals("_ep")) {
                                                                int v12_39;
                                                                if (com.google.android.gms.internal.zzckj.zza(v11_10, "_dbg", Long.valueOf(1))) {
                                                                    v12_39 = 1;
                                                                } else {
                                                                    v12_39 = this.zzaym().zzap(v2_3.zzjpe.zzcm, v11_10.name);
                                                                }
                                                                if (v12_39 > 0) {
                                                                    com.google.android.gms.internal.zzcit v13_22 = ((com.google.android.gms.internal.zzcit) v4_24.get(v11_10.name));
                                                                    if (v13_22 == null) {
                                                                        v13_22 = this.zzayj().zzae(v2_3.zzjpe.zzcm, v11_10.name);
                                                                        if (v13_22 == null) {
                                                                            this.zzayp().zzbaw().zze("Event being bundled has no eventAggregate. appId, eventName", v2_3.zzjpe.zzcm, v11_10.name);
                                                                            com.google.android.gms.internal.zzcit v1_22 = new com.google.android.gms.internal.zzcit;
                                                                            v1_22(v2_3.zzjpe.zzcm, v11_10.name, 1, 1, v11_10.zzjuj.longValue(), 0, 0, 0, 0);
                                                                            v13_22 = v1_22;
                                                                        }
                                                                    }
                                                                    Boolean v14_17;
                                                                    this.zzayl();
                                                                    com.google.android.gms.internal.zzcit v1_25 = ((Long) com.google.android.gms.internal.zzcno.zzb(v11_10, "_eid"));
                                                                    if (v1_25 == null) {
                                                                        v14_17 = 0;
                                                                    } else {
                                                                        v14_17 = 1;
                                                                    }
                                                                    Boolean v14_18 = Boolean.valueOf(v14_17);
                                                                    if (v12_39 != 1) {
                                                                        if (v6_71.nextInt(v12_39) != 0) {
                                                                            v49 = v6_71;
                                                                            v50 = v7_18;
                                                                            if (Math.abs((v11_10.zzjuj.longValue() - v13_22.zzjhv)) < 86400000) {
                                                                                v51 = v8_49;
                                                                                if (!v14_18.booleanValue()) {
                                                                                } else {
                                                                                    v4_24.put(v11_10.name, v13_22.zza(v1_25, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.zzayl();
                                                                                v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_efs", Long.valueOf(1));
                                                                                this.zzayl();
                                                                                v51 = v8_49;
                                                                                com.google.android.gms.internal.zzcit v7_28 = ((long) v12_39);
                                                                                v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_sr", Long.valueOf(v7_28));
                                                                                com.google.android.gms.internal.zzcit v1_31 = (v10_23 + 1);
                                                                                v5_71[v10_23] = v11_10;
                                                                                if (v14_18.booleanValue()) {
                                                                                    v13_22 = v13_22.zza(0, Long.valueOf(v7_28), Boolean.valueOf(1));
                                                                                }
                                                                                v4_24.put(v11_10.name, v13_22.zzbc(v11_10.zzjuj.longValue()));
                                                                                v10_23 = v1_31;
                                                                            }
                                                                        } else {
                                                                            this.zzayl();
                                                                            v49 = v6_71;
                                                                            v50 = v7_18;
                                                                            String v6_89 = ((long) v12_39);
                                                                            v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_sr", Long.valueOf(v6_89));
                                                                            com.google.android.gms.internal.zzcit v1_34 = (v10_23 + 1);
                                                                            v5_71[v10_23] = v11_10;
                                                                            if (v14_18.booleanValue()) {
                                                                                v13_22 = v13_22.zza(0, Long.valueOf(v6_89), 0);
                                                                            }
                                                                            v4_24.put(v11_10.name, v13_22.zzbc(v11_10.zzjuj.longValue()));
                                                                            v10_23 = v1_34;
                                                                            v51 = v8_49;
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.zzcit v1_35 = (v10_23 + 1);
                                                                        v5_71[v10_23] = v11_10;
                                                                        if ((v14_18.booleanValue()) && ((v13_22.zzjhw != null) || ((v13_22.zzjhx != null) || (v13_22.zzjhy != null)))) {
                                                                            v4_24.put(v11_10.name, v13_22.zza(0, 0, 0));
                                                                        }
                                                                        v10_23 = v1_35;
                                                                        v49 = v6_71;
                                                                        v50 = v7_18;
                                                                    }
                                                                } else {
                                                                    this.zzayp().zzbaw().zze("Sample rate must be positive. event, rate", v11_10.name, Integer.valueOf(v12_39));
                                                                    v12_46 = (v10_23 + 1);
                                                                    v5_71[v10_23] = v11_10;
                                                                    v49 = v6_71;
                                                                    v50 = v7_18;
                                                                    v51 = v8_49;
                                                                    v10_23 = v12_46;
                                                                }
                                                            } else {
                                                                this.zzayl();
                                                                int v12_49 = ((String) com.google.android.gms.internal.zzcno.zzb(v11_10, "_en"));
                                                                com.google.android.gms.internal.zzcit v13_34 = ((com.google.android.gms.internal.zzcit) v4_24.get(v12_49));
                                                                if (v13_34 == null) {
                                                                    v13_34 = this.zzayj().zzae(v2_3.zzjpe.zzcm, v12_49);
                                                                    v4_24.put(v12_49, v13_34);
                                                                }
                                                                if (v13_34.zzjhw != null) {
                                                                } else {
                                                                    if (v13_34.zzjhx.longValue() > 1) {
                                                                        this.zzayl();
                                                                        v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_sr", v13_34.zzjhx);
                                                                    }
                                                                    if ((v13_34.zzjhy != null) && (v13_34.zzjhy.booleanValue())) {
                                                                        this.zzayl();
                                                                        v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_efs", Long.valueOf(1));
                                                                    }
                                                                    v12_46 = (v10_23 + 1);
                                                                    v5_71[v10_23] = v11_10;
                                                                }
                                                            }
                                                            v9_29++;
                                                            v6_71 = v49;
                                                            v7_18 = v50;
                                                            v8_49 = v51;
                                                        }
                                                        v12_30 = 0;
                                                        if (v10_23 < v3_9.zzjuq.length) {
                                                            v3_9.zzjuq = ((com.google.android.gms.internal.zzcob[]) java.util.Arrays.copyOf(v5_71, v10_23));
                                                        }
                                                        com.google.android.gms.internal.zzcit v1_11 = v4_24.entrySet().iterator();
                                                        while (v1_11.hasNext()) {
                                                            this.zzayj().zza(((com.google.android.gms.internal.zzcit) ((java.util.Map$Entry) v1_11.next()).getValue()));
                                                        }
                                                    }
                                                    v3_9.zzjut = Long.valueOf(nan);
                                                    v3_9.zzjuu = Long.valueOf(-0.0);
                                                    com.google.android.gms.internal.zzcit v1_14 = 0;
                                                    while (v1_14 < v3_9.zzjuq.length) {
                                                        String v4_49 = v3_9.zzjuq[v1_14];
                                                        if (v4_49.zzjuj.longValue() < v3_9.zzjut.longValue()) {
                                                            v3_9.zzjut = v4_49.zzjuj;
                                                        }
                                                        if (v4_49.zzjuj.longValue() > v3_9.zzjuu.longValue()) {
                                                            v3_9.zzjuu = v4_49.zzjuj;
                                                        }
                                                        v1_14++;
                                                    }
                                                    com.google.android.gms.internal.zzcit v1_16 = v2_3.zzjpe.zzcm;
                                                    String v4_31 = this.zzayj().zzjj(v1_16);
                                                    if (v4_31 != null) {
                                                        if (v3_9.zzjuq.length > 0) {
                                                            com.google.android.gms.internal.zzcit v7_20;
                                                            com.google.android.gms.internal.zzcjl v5_74 = v4_31.zzayw();
                                                            if (v5_74 == 0) {
                                                                v7_20 = v12_30;
                                                            } else {
                                                                v7_20 = Long.valueOf(v5_74);
                                                            }
                                                            v3_9.zzjuw = v7_20;
                                                            com.google.android.gms.internal.zzcit v7_21 = v4_31.zzayv();
                                                            if (v7_21 != 0) {
                                                                v5_74 = v7_21;
                                                            } else {
                                                            }
                                                            if (v5_74 != 0) {
                                                                v12_30 = Long.valueOf(v5_74);
                                                            }
                                                            v3_9.zzjuv = v12_30;
                                                            v4_31.zzazf();
                                                            v3_9.zzjvf = Integer.valueOf(((int) v4_31.zzazc()));
                                                            v4_31.zzal(v3_9.zzjut.longValue());
                                                            v4_31.zzam(v3_9.zzjuu.longValue());
                                                            v3_9.zzjgi = v4_31.zzazn();
                                                            this.zzayj().zza(v4_31);
                                                        }
                                                    } else {
                                                        this.zzayp().zzbau().zzj("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm));
                                                    }
                                                    if (v3_9.zzjuq.length > 0) {
                                                        String v4_38;
                                                        String v4_37 = this.zzaym().zzka(v2_3.zzjpe.zzcm);
                                                        if (v4_37 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v2_3.zzjpe.zzjfl)) {
                                                                this.zzayp().zzbaw().zzj("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm));
                                                            } else {
                                                                v4_38 = Long.valueOf(-1);
                                                                v3_9.zzjvm = v4_38;
                                                            }
                                                        } else {
                                                            if (v4_37.zzjtx != null) {
                                                                v4_38 = v4_37.zzjtx;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzayj().zza(v3_9, v34_2);
                                                    }
                                                    this.zzayj().zzai(v2_3.zzjpf);
                                                    com.google.android.gms.internal.zzcjl v2_5 = this.zzayj();
                                                    android.database.sqlite.SQLiteException v3_15 = v2_5.getWritableDatabase();
                                                    try {
                                                        com.google.android.gms.internal.zzcjl v5_91 = new String[2];
                                                        v5_91[0] = v1_16;
                                                        v5_91[1] = v1_16;
                                                        v3_15.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v5_91);
                                                    } catch (java.io.IOException v0_11) {
                                                        v2_5.zzayp().zzbau().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.zzcjj.zzjs(v1_16), v0_11);
                                                    }
                                                    this.zzayj().setTransactionSuccessful();
                                                    this.zzayj().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v9_0.close();
                                            }
                                        } catch (java.io.IOException v0_2) {
                                        }
                                        if (v15_1.moveToNext()) {
                                            v4_55.zzayp().zzbaw().zzj("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzcjj.zzjs(v3_1));
                                        }
                                        com.google.android.gms.internal.zzcjl v5_44;
                                        String[] v16_2;
                                        v15_1.close();
                                        v2_3.zzb(v13_5);
                                        if (v5_98 == -1) {
                                            v5_44 = "app_id = ? and metadata_fingerprint = ?";
                                            int v9_15 = new String[2];
                                            v9_15[0] = v3_1;
                                            v9_15[1] = v22;
                                            v16_2 = v9_15;
                                        } else {
                                            int v12_16 = new String[3];
                                            v12_16[0] = v3_1;
                                            v12_16[1] = v22;
                                            v12_16[2] = String.valueOf(v5_98);
                                            v5_44 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_2 = v12_16;
                                        }
                                        v9_0 = v15_1;
                                        com.google.android.gms.internal.zzcjl v5_46 = v25.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_44, v16_2, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_46.moveToFirst()) {
                                                do {
                                                    int v12_19 = v5_46.getLong(0);
                                                    int v9_19 = v5_46.getBlob(3);
                                                    int v9_20 = com.google.android.gms.internal.zzflj.zzo(v9_19, 0, v9_19.length);
                                                    Boolean v14_8 = new com.google.android.gms.internal.zzcob();
                                                    v14_8.zza(v9_20);
                                                    v14_8.name = v5_46.getString(1);
                                                    v14_8.zzjuj = Long.valueOf(v5_46.getLong(2));
                                                    if (v2_3.zza(v12_19, v14_8)) {
                                                    } else {
                                                        if (v5_46 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_46.moveToNext());
                                                if (v5_46 == null) {
                                                }
                                            } else {
                                                v4_55.zzayp().zzbaw().zzj("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzcjj.zzjs(v3_1));
                                                if (v5_46 == null) {
                                                }
                                            }
                                        } catch (java.io.IOException v0_9) {
                                            com.google.android.gms.internal.zzcit v1_1 = v0_9;
                                            String[] v21 = v5_46;
                                            if (v21 != null) {
                                                v21.close();
                                            }
                                            throw v1_1;
                                        } catch (java.io.IOException v0_2) {
                                            int v12_0 = v3_1;
                                            v9_0 = v5_46;
                                            android.database.sqlite.SQLiteException v3_0 = v0_2;
                                            v4_55.zzayp().zzbau().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzcjj.zzjs(v12_0), v3_0);
                                            if (v9_0 == 0) {
                                            }
                                        }
                                        v5_46.close();
                                    } else {
                                        v4_55.zzayp().zzbau().zzj("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzcjj.zzjs(v3_1));
                                        if (v15_1 == 0) {
                                        } else {
                                            v15_1.close();
                                        }
                                    }
                                } catch (java.io.IOException v0_7) {
                                    v9_0 = v15_1;
                                    v1_1 = v0_7;
                                    v21 = v9_0;
                                } catch (java.io.IOException v0_2) {
                                    v9_0 = v15_1;
                                } catch (java.io.IOException v0_10) {
                                    v1_1 = v0_10;
                                    v21 = v15_1;
                                } catch (java.io.IOException v0_2) {
                                    v12_0 = v3_1;
                                    v9_0 = v15_1;
                                }
                                v12_0 = v3_1;
                            } catch (java.io.IOException v0_5) {
                                v1_1 = v0_5;
                                v21 = v23;
                            } catch (java.io.IOException v0_2) {
                                v12_0 = v3_1;
                                v9_0 = v23;
                            }
                        } else {
                            if (v3_1 == null) {
                            } else {
                            }
                        }
                    } else {
                        try {
                            int v12_34;
                            if (v5_98 == -1) {
                                v12_34 = new String[1];
                                v12_34[0] = String.valueOf(p54);
                            } else {
                                v12_34 = new String[2];
                                v12_34[0] = String.valueOf(v5_98);
                                v12_34[1] = String.valueOf(p54);
                            }
                        } catch (java.io.IOException v0_2) {
                            v9_0 = 0;
                            v12_0 = 0;
                        }
                        com.google.android.gms.internal.zzcit v13_30;
                        if (v5_98 == -1) {
                            v13_30 = "";
                        } else {
                            v13_30 = "rowid <= ? and ";
                        }
                        android.database.sqlite.SQLiteException v3_18 = new StringBuilder((String.valueOf(v13_30).length() + 148));
                        v3_18.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_18.append(v13_30);
                        v3_18.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_1 = v15_2.rawQuery(v3_18.toString(), v12_34);
                        if (v3_1.moveToFirst()) {
                            v12_0 = v3_1.getString(0);
                            try {
                                com.google.android.gms.internal.zzcit v13_0 = v3_1.getString(1);
                                v3_1.close();
                                v23 = v3_1;
                                v3_1 = v12_0;
                                v22 = v13_0;
                            } catch (java.io.IOException v0_2) {
                                v9_0 = v3_1;
                            }
                        } else {
                            if (v3_1 == null) {
                            }
                        }
                    }
                } catch (java.io.IOException v0_3) {
                    v1_1 = v0_3;
                    v21 = v3_1;
                } catch (java.io.IOException v0_2) {
                    v9_0 = v3_1;
                    v12_0 = 0;
                }
                v3_1.close();
            } catch (java.io.IOException v0_1) {
                v1_1 = v0_1;
                v21 = 0;
            } catch (java.io.IOException v0_0) {
                v3_0 = v0_0;
                v9_0 = 0;
                v12_0 = 0;
            } catch (java.io.IOException v0_7) {
            }
        } catch (java.io.IOException v0_4) {
            com.google.android.gms.internal.zzcit v1_2 = v0_4;
            this.zzayj().endTransaction();
            throw v1_2;
        }
    }

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


    private final boolean zzg(String p53, long p54)
    {
        this.zzayj().beginTransaction();
        try {
            android.database.sqlite.SQLiteException v3_1 = 0;
            com.google.android.gms.internal.zzcjl v2_3 = new com.google.android.gms.internal.zzckj$zza(this, 0);
            String v4_55 = this.zzayj();
            com.google.android.gms.internal.zzcjl v5_98 = this.zzjox;
            com.google.android.gms.common.internal.zzbq.checkNotNull(v2_3);
            v4_55.zzwj();
            v4_55.zzyk();
            try {
                String v22;
                int v23;
                long v15_2 = v4_55.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        int v12_22;
                        if (v5_98 == -1) {
                            v12_22 = new String[] {0});
                        } else {
                            android.database.sqlite.SQLiteException v3_4 = new String[2];
                            v3_4[0] = 0;
                            v3_4[1] = String.valueOf(v5_98);
                            v12_22 = v3_4;
                        }
                        android.database.sqlite.SQLiteException v3_11;
                        if (v5_98 == -1) {
                            v3_11 = "";
                        } else {
                            v3_11 = " and rowid <= ?";
                        }
                        Boolean v14_11 = new StringBuilder((String.valueOf(v3_11).length() + 84));
                        v14_11.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_11.append(v3_11);
                        v14_11.append(" order by rowid limit 1;");
                        v3_1 = v15_2.rawQuery(v14_11.toString(), v12_22);
                        if (v3_1.moveToFirst()) {
                            com.google.android.gms.internal.zzcit v13_13 = v3_1.getString(0);
                            v3_1.close();
                            v23 = v3_1;
                            v22 = v13_13;
                            v3_1 = 0;
                            try {
                                int v12_6 = new String[2];
                                v12_6[0] = v3_1;
                                v12_6[1] = v22;
                                android.database.sqlite.SQLiteDatabase v25 = v15_2;
                                long v15_1 = v15_2.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_6, 0, 0, "rowid", "2");
                                try {
                                    if (v15_1.moveToFirst()) {
                                        int v12_9 = v15_1.getBlob(0);
                                        int v12_10 = com.google.android.gms.internal.zzflj.zzo(v12_9, 0, v12_9.length);
                                        com.google.android.gms.internal.zzcit v13_5 = new com.google.android.gms.internal.zzcoe();
                                        try {
                                            v13_5.zza(v12_10);
                                        } catch (java.io.IOException v0_6) {
                                            int v9_0 = v15_1;
                                            v4_55.zzayp().zzbau().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzcjj.zzjs(v3_1), v0_6);
                                            if (v9_0 == 0) {
                                                android.database.sqlite.SQLiteException v3_8;
                                                if (v2_3.zzaoz == null) {
                                                    v3_8 = 1;
                                                } else {
                                                    if (!v2_3.zzaoz.isEmpty()) {
                                                        v3_8 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_8 != null) {
                                                    this.zzayj().setTransactionSuccessful();
                                                    this.zzayj().endTransaction();
                                                    return 0;
                                                } else {
                                                    android.database.sqlite.SQLiteException v3_9 = v2_3.zzjpe;
                                                    String v4_4 = new com.google.android.gms.internal.zzcob[v2_3.zzaoz.size()];
                                                    v3_9.zzjuq = v4_4;
                                                    String v4_6 = this.zzjns.zzjh(v3_9.zzcm);
                                                    int v9_11 = 0;
                                                    int v12_1 = 0;
                                                    com.google.android.gms.internal.zzcit v13_1 = 0;
                                                    Boolean v14_0 = 0;
                                                    while (v9_11 < v2_3.zzaoz.size()) {
                                                        long v44_0;
                                                        com.google.android.gms.internal.zzcit v7_39 = ((com.google.android.gms.internal.zzcob) v2_3.zzaoz.get(v9_11));
                                                        if (!this.zzaym().zzan(v2_3.zzjpe.zzcm, v7_39.name)) {
                                                            com.google.android.gms.internal.zzcjl v5_103 = this.zzaym().zzao(v2_3.zzjpe.zzcm, v7_39.name);
                                                            if (v5_103 != null) {
                                                                if (v7_39.zzjui == null) {
                                                                    Boolean v8_53 = new com.google.android.gms.internal.zzcoc[0];
                                                                    v7_39.zzjui = v8_53;
                                                                }
                                                                String v6_33 = v7_39.zzjui;
                                                                Boolean v8_39 = v6_33.length;
                                                                int v10_18 = 0;
                                                                com.google.android.gms.internal.zzcil v11_6 = 0;
                                                                long v18_0 = 0;
                                                                while (v10_18 < v8_39) {
                                                                    int v32_1 = v8_39;
                                                                    Boolean v8_38 = v6_33[v10_18];
                                                                    int v33_1 = v6_33;
                                                                    int v34_1 = v12_1;
                                                                    if (!"_c".equals(v8_38.name)) {
                                                                        if ("_r".equals(v8_38.name)) {
                                                                            v8_38.zzjum = Long.valueOf(1);
                                                                            v18_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v8_38.zzjum = Long.valueOf(1);
                                                                        v11_6 = 1;
                                                                    }
                                                                    v10_18++;
                                                                    v8_39 = v32_1;
                                                                    v6_33 = v33_1;
                                                                    v12_1 = v34_1;
                                                                }
                                                                int v34_3 = v12_1;
                                                                if ((v11_6 == null) && (v5_103 != null)) {
                                                                    this.zzayp().zzbba().zzj("Marking event as conversion", this.zzayk().zzjp(v7_39.name));
                                                                    String v6_2 = ((com.google.android.gms.internal.zzcoc[]) java.util.Arrays.copyOf(v7_39.zzjui, (v7_39.zzjui.length + 1)));
                                                                    Boolean v8_4 = new com.google.android.gms.internal.zzcoc();
                                                                    v8_4.name = "_c";
                                                                    v8_4.zzjum = Long.valueOf(1);
                                                                    v6_2[(v6_2.length - 1)] = v8_4;
                                                                    v7_39.zzjui = v6_2;
                                                                }
                                                                if (v18_0 == 0) {
                                                                    this.zzayp().zzbba().zzj("Marking event as real-time", this.zzayk().zzjp(v7_39.name));
                                                                    String v6_7 = ((com.google.android.gms.internal.zzcoc[]) java.util.Arrays.copyOf(v7_39.zzjui, (v7_39.zzjui.length + 1)));
                                                                    Boolean v8_10 = new com.google.android.gms.internal.zzcoc();
                                                                    v8_10.name = "_r";
                                                                    v8_10.zzjum = Long.valueOf(1);
                                                                    v6_7[(v6_7.length - 1)] = v8_10;
                                                                    v7_39.zzjui = v6_7;
                                                                }
                                                                v44_0 = v9_11;
                                                                if (this.zzayj().zza(this.zzbbx(), v2_3.zzjpe.zzcm, 0, 0, 0, 0, 1).zzjhi <= ((long) this.zzjns.zzje(v2_3.zzjpe.zzcm))) {
                                                                    v12_1 = 1;
                                                                } else {
                                                                    String v6_14 = 0;
                                                                    while (v6_14 < v7_39.zzjui.length) {
                                                                        if (!"_r".equals(v7_39.zzjui[v6_14].name)) {
                                                                            v6_14++;
                                                                        } else {
                                                                            Boolean v8_21 = new com.google.android.gms.internal.zzcoc[(v7_39.zzjui.length - 1)];
                                                                            if (v6_14 > null) {
                                                                                System.arraycopy(v7_39.zzjui, 0, v8_21, 0, v6_14);
                                                                            }
                                                                            if (v6_14 < v8_21.length) {
                                                                                System.arraycopy(v7_39.zzjui, (v6_14 + 1), v8_21, v6_14, (v8_21.length - v6_14));
                                                                            }
                                                                            v7_39.zzjui = v8_21;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_1 = v34_3;
                                                                }
                                                                if ((com.google.android.gms.internal.zzcno.zzkh(v7_39.name)) && ((v5_103 != null) && (this.zzayj().zza(this.zzbbx(), v2_3.zzjpe.zzcm, 0, 0, 1, 0, 0).zzjhg > ((long) this.zzjns.zzb(v2_3.zzjpe.zzcm, com.google.android.gms.internal.zzciz.zzjja))))) {
                                                                    this.zzayp().zzbaw().zzj("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm));
                                                                    com.google.android.gms.internal.zzcjl v5_6 = v7_39.zzjui;
                                                                    String v6_18 = v5_6.length;
                                                                    Boolean v8_28 = 0;
                                                                    int v9_10 = 0;
                                                                    int v10_17 = 0;
                                                                    while (v8_28 < v6_18) {
                                                                        com.google.android.gms.internal.zzcil v11_5 = v5_6[v8_28];
                                                                        if (!"_c".equals(v11_5.name)) {
                                                                            if ("_err".equals(v11_5.name)) {
                                                                                v9_10 = 1;
                                                                            }
                                                                        } else {
                                                                            v10_17 = v11_5;
                                                                        }
                                                                        v8_28++;
                                                                    }
                                                                    if ((v9_10 == 0) || (v10_17 == 0)) {
                                                                        if (v10_17 == 0) {
                                                                            this.zzayp().zzbau().zzj("Did not find conversion parameter. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm));
                                                                        } else {
                                                                            v10_17.name = "_err";
                                                                            v10_17.zzjum = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.zzcjl v5_12 = v7_39.zzjui;
                                                                        Boolean v8_32 = new com.google.android.gms.internal.zzcoc[1];
                                                                        v8_32[0] = v10_17;
                                                                        v7_39.zzjui = ((com.google.android.gms.internal.zzcoc[]) com.google.android.gms.common.util.zzb.zza(v5_12, v8_32));
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzayl();
                                                                if (!com.google.android.gms.internal.zzcno.zzku(v7_39.name)) {
                                                                    v44_0 = v9_11;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v4_6 != null) && ("_e".equals(v7_39.name))) {
                                                                String v6_23;
                                                                com.google.android.gms.internal.zzcjl v5_25;
                                                                Boolean v8_35;
                                                                if (v7_39.zzjui == null) {
                                                                    v5_25 = this.zzayp().zzbaw();
                                                                    v6_23 = "Engagement event does not contain any parameters. appId";
                                                                    v8_35 = com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm);
                                                                } else {
                                                                    if (v7_39.zzjui.length != 0) {
                                                                        this.zzayl();
                                                                        com.google.android.gms.internal.zzcjl v5_22 = ((Long) com.google.android.gms.internal.zzcno.zzb(v7_39, "_et"));
                                                                        if (v5_22 != null) {
                                                                            v14_0 += v5_22.longValue();
                                                                            String v6_24 = (v13_1 + 1);
                                                                            v3_9.zzjuq[v13_1] = v7_39;
                                                                            v13_1 = v6_24;
                                                                            v9_11 = (v44_0 + 1);
                                                                            com.google.android.gms.internal.zzcil v11 = 1;
                                                                        } else {
                                                                            v5_25 = this.zzayp().zzbaw();
                                                                            v6_23 = "Engagement event does not include duration. appId";
                                                                            v8_35 = com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm);
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                v5_25.zzj(v6_23, v8_35);
                                                            }
                                                        } else {
                                                            com.google.android.gms.internal.zzcjl v5_38;
                                                            this.zzayp().zzbaw().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm), this.zzayk().zzjp(v7_39.name));
                                                            if (this.zzayl().zzks(v2_3.zzjpe.zzcm)) {
                                                                v5_38 = 1;
                                                            } else {
                                                                if (!this.zzayl().zzkt(v2_3.zzjpe.zzcm)) {
                                                                    v5_38 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_38 == null) && (!"_err".equals(v7_39.name))) {
                                                                this.zzayl().zza(v2_3.zzjpe.zzcm, 11, "_ev", v7_39.name, 0);
                                                            }
                                                            v44_0 = v9_11;
                                                        }
                                                    }
                                                    int v34_2 = v12_1;
                                                    if (v13_1 < v2_3.zzaoz.size()) {
                                                        v3_9.zzjuq = ((com.google.android.gms.internal.zzcob[]) java.util.Arrays.copyOf(v3_9.zzjuq, v13_1));
                                                    }
                                                    if (v4_6 != null) {
                                                        String v4_11;
                                                        String v4_8 = this.zzayj().zzag(v3_9.zzcm, "_lte");
                                                        if (v4_8 == null) {
                                                            v4_11 = new com.google.android.gms.internal.zzcnn;
                                                            v4_11(v3_9.zzcm, "auto", "_lte", this.zzdir.currentTimeMillis(), Long.valueOf(v14_0));
                                                        } else {
                                                            if (v4_8.value != null) {
                                                                com.google.android.gms.internal.zzcjl v5_58 = new com.google.android.gms.internal.zzcnn;
                                                                v5_58(v3_9.zzcm, "auto", "_lte", this.zzdir.currentTimeMillis(), Long.valueOf((((Long) v4_8.value).longValue() + v14_0)));
                                                                v4_11 = v5_58;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.internal.zzcjl v5_61 = new com.google.android.gms.internal.zzcog();
                                                        v5_61.name = "_lte";
                                                        v5_61.zzjvr = Long.valueOf(this.zzdir.currentTimeMillis());
                                                        v5_61.zzjum = ((Long) v4_11.value);
                                                        String v6_61 = 0;
                                                        while (v6_61 < v3_9.zzjur.length) {
                                                            if (!"_lte".equals(v3_9.zzjur[v6_61].name)) {
                                                                v6_61++;
                                                            } else {
                                                                v3_9.zzjur[v6_61] = v5_61;
                                                                String v6_62 = 1;
                                                            }
                                                            if (v6_62 == null) {
                                                                v3_9.zzjur = ((com.google.android.gms.internal.zzcog[]) java.util.Arrays.copyOf(v3_9.zzjur, (v3_9.zzjur.length + 1)));
                                                                v3_9.zzjur[(v2_3.zzjpe.zzjur.length - 1)] = v5_61;
                                                            }
                                                            if (v14_0 > 0) {
                                                                this.zzayj().zza(v4_11);
                                                                this.zzayp().zzbaz().zzj("Updated lifetime engagement user property with value. Value", v4_11.value);
                                                            }
                                                        }
                                                        v6_62 = 0;
                                                    }
                                                    int v12_30;
                                                    v3_9.zzjvh = this.zza(v3_9.zzcm, v3_9.zzjur, v3_9.zzjuq);
                                                    if ((!((Boolean) com.google.android.gms.internal.zzciz.zzjim.get()).booleanValue()) || (!"1".equals(this.zzjns.zzaym().zzam(v2_3.zzjpe.zzcm, "measurement.event_sampling_enabled")))) {
                                                        v12_30 = 0;
                                                    } else {
                                                        String v4_24 = new java.util.HashMap();
                                                        com.google.android.gms.internal.zzcjl v5_71 = new com.google.android.gms.internal.zzcob[v3_9.zzjuq.length];
                                                        String v6_71 = this.zzayl().zzbcr();
                                                        com.google.android.gms.internal.zzcit v7_18 = v3_9.zzjuq;
                                                        Boolean v8_49 = v7_18.length;
                                                        int v9_29 = 0;
                                                        int v10_23 = 0;
                                                        while (v9_29 < v8_49) {
                                                            long v50;
                                                            int v12_46;
                                                            long v49;
                                                            Object v51;
                                                            com.google.android.gms.internal.zzcil v11_10 = v7_18[v9_29];
                                                            if (!v11_10.name.equals("_ep")) {
                                                                int v12_39;
                                                                if (com.google.android.gms.internal.zzckj.zza(v11_10, "_dbg", Long.valueOf(1))) {
                                                                    v12_39 = 1;
                                                                } else {
                                                                    v12_39 = this.zzaym().zzap(v2_3.zzjpe.zzcm, v11_10.name);
                                                                }
                                                                if (v12_39 > 0) {
                                                                    com.google.android.gms.internal.zzcit v13_22 = ((com.google.android.gms.internal.zzcit) v4_24.get(v11_10.name));
                                                                    if (v13_22 == null) {
                                                                        v13_22 = this.zzayj().zzae(v2_3.zzjpe.zzcm, v11_10.name);
                                                                        if (v13_22 == null) {
                                                                            this.zzayp().zzbaw().zze("Event being bundled has no eventAggregate. appId, eventName", v2_3.zzjpe.zzcm, v11_10.name);
                                                                            com.google.android.gms.internal.zzcit v1_22 = new com.google.android.gms.internal.zzcit;
                                                                            v1_22(v2_3.zzjpe.zzcm, v11_10.name, 1, 1, v11_10.zzjuj.longValue(), 0, 0, 0, 0);
                                                                            v13_22 = v1_22;
                                                                        }
                                                                    }
                                                                    Boolean v14_17;
                                                                    this.zzayl();
                                                                    com.google.android.gms.internal.zzcit v1_25 = ((Long) com.google.android.gms.internal.zzcno.zzb(v11_10, "_eid"));
                                                                    if (v1_25 == null) {
                                                                        v14_17 = 0;
                                                                    } else {
                                                                        v14_17 = 1;
                                                                    }
                                                                    Boolean v14_18 = Boolean.valueOf(v14_17);
                                                                    if (v12_39 != 1) {
                                                                        if (v6_71.nextInt(v12_39) != 0) {
                                                                            v49 = v6_71;
                                                                            v50 = v7_18;
                                                                            if (Math.abs((v11_10.zzjuj.longValue() - v13_22.zzjhv)) < 86400000) {
                                                                                v51 = v8_49;
                                                                                if (!v14_18.booleanValue()) {
                                                                                } else {
                                                                                    v4_24.put(v11_10.name, v13_22.zza(v1_25, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.zzayl();
                                                                                v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_efs", Long.valueOf(1));
                                                                                this.zzayl();
                                                                                v51 = v8_49;
                                                                                com.google.android.gms.internal.zzcit v7_28 = ((long) v12_39);
                                                                                v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_sr", Long.valueOf(v7_28));
                                                                                com.google.android.gms.internal.zzcit v1_31 = (v10_23 + 1);
                                                                                v5_71[v10_23] = v11_10;
                                                                                if (v14_18.booleanValue()) {
                                                                                    v13_22 = v13_22.zza(0, Long.valueOf(v7_28), Boolean.valueOf(1));
                                                                                }
                                                                                v4_24.put(v11_10.name, v13_22.zzbc(v11_10.zzjuj.longValue()));
                                                                                v10_23 = v1_31;
                                                                            }
                                                                        } else {
                                                                            this.zzayl();
                                                                            v49 = v6_71;
                                                                            v50 = v7_18;
                                                                            String v6_89 = ((long) v12_39);
                                                                            v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_sr", Long.valueOf(v6_89));
                                                                            com.google.android.gms.internal.zzcit v1_34 = (v10_23 + 1);
                                                                            v5_71[v10_23] = v11_10;
                                                                            if (v14_18.booleanValue()) {
                                                                                v13_22 = v13_22.zza(0, Long.valueOf(v6_89), 0);
                                                                            }
                                                                            v4_24.put(v11_10.name, v13_22.zzbc(v11_10.zzjuj.longValue()));
                                                                            v10_23 = v1_34;
                                                                            v51 = v8_49;
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.zzcit v1_35 = (v10_23 + 1);
                                                                        v5_71[v10_23] = v11_10;
                                                                        if ((v14_18.booleanValue()) && ((v13_22.zzjhw != null) || ((v13_22.zzjhx != null) || (v13_22.zzjhy != null)))) {
                                                                            v4_24.put(v11_10.name, v13_22.zza(0, 0, 0));
                                                                        }
                                                                        v10_23 = v1_35;
                                                                        v49 = v6_71;
                                                                        v50 = v7_18;
                                                                    }
                                                                } else {
                                                                    this.zzayp().zzbaw().zze("Sample rate must be positive. event, rate", v11_10.name, Integer.valueOf(v12_39));
                                                                    v12_46 = (v10_23 + 1);
                                                                    v5_71[v10_23] = v11_10;
                                                                    v49 = v6_71;
                                                                    v50 = v7_18;
                                                                    v51 = v8_49;
                                                                    v10_23 = v12_46;
                                                                }
                                                            } else {
                                                                this.zzayl();
                                                                int v12_49 = ((String) com.google.android.gms.internal.zzcno.zzb(v11_10, "_en"));
                                                                com.google.android.gms.internal.zzcit v13_34 = ((com.google.android.gms.internal.zzcit) v4_24.get(v12_49));
                                                                if (v13_34 == null) {
                                                                    v13_34 = this.zzayj().zzae(v2_3.zzjpe.zzcm, v12_49);
                                                                    v4_24.put(v12_49, v13_34);
                                                                }
                                                                if (v13_34.zzjhw != null) {
                                                                } else {
                                                                    if (v13_34.zzjhx.longValue() > 1) {
                                                                        this.zzayl();
                                                                        v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_sr", v13_34.zzjhx);
                                                                    }
                                                                    if ((v13_34.zzjhy != null) && (v13_34.zzjhy.booleanValue())) {
                                                                        this.zzayl();
                                                                        v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_efs", Long.valueOf(1));
                                                                    }
                                                                    v12_46 = (v10_23 + 1);
                                                                    v5_71[v10_23] = v11_10;
                                                                }
                                                            }
                                                            v9_29++;
                                                            v6_71 = v49;
                                                            v7_18 = v50;
                                                            v8_49 = v51;
                                                        }
                                                        v12_30 = 0;
                                                        if (v10_23 < v3_9.zzjuq.length) {
                                                            v3_9.zzjuq = ((com.google.android.gms.internal.zzcob[]) java.util.Arrays.copyOf(v5_71, v10_23));
                                                        }
                                                        com.google.android.gms.internal.zzcit v1_11 = v4_24.entrySet().iterator();
                                                        while (v1_11.hasNext()) {
                                                            this.zzayj().zza(((com.google.android.gms.internal.zzcit) ((java.util.Map$Entry) v1_11.next()).getValue()));
                                                        }
                                                    }
                                                    v3_9.zzjut = Long.valueOf(nan);
                                                    v3_9.zzjuu = Long.valueOf(-0.0);
                                                    com.google.android.gms.internal.zzcit v1_14 = 0;
                                                    while (v1_14 < v3_9.zzjuq.length) {
                                                        String v4_49 = v3_9.zzjuq[v1_14];
                                                        if (v4_49.zzjuj.longValue() < v3_9.zzjut.longValue()) {
                                                            v3_9.zzjut = v4_49.zzjuj;
                                                        }
                                                        if (v4_49.zzjuj.longValue() > v3_9.zzjuu.longValue()) {
                                                            v3_9.zzjuu = v4_49.zzjuj;
                                                        }
                                                        v1_14++;
                                                    }
                                                    com.google.android.gms.internal.zzcit v1_16 = v2_3.zzjpe.zzcm;
                                                    String v4_31 = this.zzayj().zzjj(v1_16);
                                                    if (v4_31 != null) {
                                                        if (v3_9.zzjuq.length > 0) {
                                                            com.google.android.gms.internal.zzcit v7_20;
                                                            com.google.android.gms.internal.zzcjl v5_74 = v4_31.zzayw();
                                                            if (v5_74 == 0) {
                                                                v7_20 = v12_30;
                                                            } else {
                                                                v7_20 = Long.valueOf(v5_74);
                                                            }
                                                            v3_9.zzjuw = v7_20;
                                                            com.google.android.gms.internal.zzcit v7_21 = v4_31.zzayv();
                                                            if (v7_21 != 0) {
                                                                v5_74 = v7_21;
                                                            } else {
                                                            }
                                                            if (v5_74 != 0) {
                                                                v12_30 = Long.valueOf(v5_74);
                                                            }
                                                            v3_9.zzjuv = v12_30;
                                                            v4_31.zzazf();
                                                            v3_9.zzjvf = Integer.valueOf(((int) v4_31.zzazc()));
                                                            v4_31.zzal(v3_9.zzjut.longValue());
                                                            v4_31.zzam(v3_9.zzjuu.longValue());
                                                            v3_9.zzjgi = v4_31.zzazn();
                                                            this.zzayj().zza(v4_31);
                                                        }
                                                    } else {
                                                        this.zzayp().zzbau().zzj("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm));
                                                    }
                                                    if (v3_9.zzjuq.length > 0) {
                                                        String v4_38;
                                                        String v4_37 = this.zzaym().zzka(v2_3.zzjpe.zzcm);
                                                        if (v4_37 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v2_3.zzjpe.zzjfl)) {
                                                                this.zzayp().zzbaw().zzj("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm));
                                                            } else {
                                                                v4_38 = Long.valueOf(-1);
                                                                v3_9.zzjvm = v4_38;
                                                            }
                                                        } else {
                                                            if (v4_37.zzjtx != null) {
                                                                v4_38 = v4_37.zzjtx;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzayj().zza(v3_9, v34_2);
                                                    }
                                                    this.zzayj().zzai(v2_3.zzjpf);
                                                    com.google.android.gms.internal.zzcjl v2_5 = this.zzayj();
                                                    android.database.sqlite.SQLiteException v3_15 = v2_5.getWritableDatabase();
                                                    try {
                                                        com.google.android.gms.internal.zzcjl v5_91 = new String[2];
                                                        v5_91[0] = v1_16;
                                                        v5_91[1] = v1_16;
                                                        v3_15.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v5_91);
                                                    } catch (java.io.IOException v0_11) {
                                                        v2_5.zzayp().zzbau().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.zzcjj.zzjs(v1_16), v0_11);
                                                    }
                                                    this.zzayj().setTransactionSuccessful();
                                                    this.zzayj().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v9_0.close();
                                            }
                                        } catch (java.io.IOException v0_2) {
                                        }
                                        if (v15_1.moveToNext()) {
                                            v4_55.zzayp().zzbaw().zzj("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzcjj.zzjs(v3_1));
                                        }
                                        com.google.android.gms.internal.zzcjl v5_44;
                                        String[] v16_2;
                                        v15_1.close();
                                        v2_3.zzb(v13_5);
                                        if (v5_98 == -1) {
                                            v5_44 = "app_id = ? and metadata_fingerprint = ?";
                                            int v9_15 = new String[2];
                                            v9_15[0] = v3_1;
                                            v9_15[1] = v22;
                                            v16_2 = v9_15;
                                        } else {
                                            int v12_16 = new String[3];
                                            v12_16[0] = v3_1;
                                            v12_16[1] = v22;
                                            v12_16[2] = String.valueOf(v5_98);
                                            v5_44 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_2 = v12_16;
                                        }
                                        v9_0 = v15_1;
                                        com.google.android.gms.internal.zzcjl v5_46 = v25.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_44, v16_2, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_46.moveToFirst()) {
                                                do {
                                                    int v12_19 = v5_46.getLong(0);
                                                    int v9_19 = v5_46.getBlob(3);
                                                    int v9_20 = com.google.android.gms.internal.zzflj.zzo(v9_19, 0, v9_19.length);
                                                    Boolean v14_8 = new com.google.android.gms.internal.zzcob();
                                                    v14_8.zza(v9_20);
                                                    v14_8.name = v5_46.getString(1);
                                                    v14_8.zzjuj = Long.valueOf(v5_46.getLong(2));
                                                    if (v2_3.zza(v12_19, v14_8)) {
                                                    } else {
                                                        if (v5_46 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_46.moveToNext());
                                                if (v5_46 == null) {
                                                }
                                            } else {
                                                v4_55.zzayp().zzbaw().zzj("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzcjj.zzjs(v3_1));
                                                if (v5_46 == null) {
                                                }
                                            }
                                        } catch (java.io.IOException v0_9) {
                                            com.google.android.gms.internal.zzcit v1_1 = v0_9;
                                            String[] v21 = v5_46;
                                            if (v21 != null) {
                                                v21.close();
                                            }
                                            throw v1_1;
                                        } catch (java.io.IOException v0_2) {
                                            int v12_0 = v3_1;
                                            v9_0 = v5_46;
                                            android.database.sqlite.SQLiteException v3_0 = v0_2;
                                            v4_55.zzayp().zzbau().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzcjj.zzjs(v12_0), v3_0);
                                            if (v9_0 == 0) {
                                            }
                                        }
                                        v5_46.close();
                                    } else {
                                        v4_55.zzayp().zzbau().zzj("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzcjj.zzjs(v3_1));
                                        if (v15_1 == 0) {
                                        } else {
                                            v15_1.close();
                                        }
                                    }
                                } catch (java.io.IOException v0_7) {
                                    v9_0 = v15_1;
                                    v1_1 = v0_7;
                                    v21 = v9_0;
                                } catch (java.io.IOException v0_2) {
                                    v9_0 = v15_1;
                                } catch (java.io.IOException v0_10) {
                                    v1_1 = v0_10;
                                    v21 = v15_1;
                                } catch (java.io.IOException v0_2) {
                                    v12_0 = v3_1;
                                    v9_0 = v15_1;
                                }
                                v12_0 = v3_1;
                            } catch (java.io.IOException v0_5) {
                                v1_1 = v0_5;
                                v21 = v23;
                            } catch (java.io.IOException v0_2) {
                                v12_0 = v3_1;
                                v9_0 = v23;
                            }
                        } else {
                            if (v3_1 == null) {
                            } else {
                            }
                        }
                    } else {
                        try {
                            int v12_34;
                            if (v5_98 == -1) {
                                v12_34 = new String[1];
                                v12_34[0] = String.valueOf(p54);
                            } else {
                                v12_34 = new String[2];
                                v12_34[0] = String.valueOf(v5_98);
                                v12_34[1] = String.valueOf(p54);
                            }
                        } catch (java.io.IOException v0_2) {
                            v9_0 = 0;
                            v12_0 = 0;
                        }
                        com.google.android.gms.internal.zzcit v13_30;
                        if (v5_98 == -1) {
                            v13_30 = "";
                        } else {
                            v13_30 = "rowid <= ? and ";
                        }
                        android.database.sqlite.SQLiteException v3_18 = new StringBuilder((String.valueOf(v13_30).length() + 148));
                        v3_18.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_18.append(v13_30);
                        v3_18.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_1 = v15_2.rawQuery(v3_18.toString(), v12_34);
                        if (v3_1.moveToFirst()) {
                            v12_0 = v3_1.getString(0);
                            try {
                                com.google.android.gms.internal.zzcit v13_0 = v3_1.getString(1);
                                v3_1.close();
                                v23 = v3_1;
                                v3_1 = v12_0;
                                v22 = v13_0;
                            } catch (java.io.IOException v0_2) {
                                v9_0 = v3_1;
                            }
                        } else {
                            if (v3_1 == null) {
                            }
                        }
                    }
                } catch (java.io.IOException v0_3) {
                    v1_1 = v0_3;
                    v21 = v3_1;
                } catch (java.io.IOException v0_2) {
                    v9_0 = v3_1;
                    v12_0 = 0;
                }
                v3_1.close();
            } catch (java.io.IOException v0_1) {
                v1_1 = v0_1;
                v21 = 0;
            } catch (java.io.IOException v0_0) {
                v3_0 = v0_0;
                v9_0 = 0;
                v12_0 = 0;
            } catch (java.io.IOException v0_7) {
            }
        } catch (java.io.IOException v0_4) {
            com.google.android.gms.internal.zzcit v1_2 = v0_4;
            this.zzayj().endTransaction();
            throw v1_2;
        }
    }

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

Couldn't retrieve source code

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


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

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


    public final void zzf(com.google.android.gms.internal.zzcif p19)
    {
        this.zzayo().zzwj();
        this.zzyk();
        com.google.android.gms.common.internal.zzbq.checkNotNull(p19);
        com.google.android.gms.common.internal.zzbq.zzgv(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzjfl)) {
            String v0_8 = this.zzayj().zzjj(p19.packageName);
            if ((v0_8 != null) && ((android.text.TextUtils.isEmpty(v0_8.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzjfl)))) {
                v0_8.zzar(0);
                this.zzayj().zza(v0_8);
                this.zzaym().zzkd(p19.packageName);
            }
            if (p19.zzjfv) {
                long v5_6 = p19.zzjgk;
                if (v5_6 == 0) {
                    v5_6 = this.zzdir.currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_62 = p19.zzjgl;
                if ((v0_62 == null) || (v0_62 == 1)) {
                    v15_3 = v0_62;
                } else {
                    this.zzayp().zzbaw().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName), Integer.valueOf(v0_62));
                    v15_3 = 0;
                }
                this.zzayj().beginTransaction();
                try {
                    String v0_7 = this.zzayj().zzjj(p19.packageName);
                } catch (String v0_59) {
                    this.zzayj().endTransaction();
                    throw v0_59;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzjfl)))) {
                    this.zzayp().zzbaw().zzj("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzcjj.zzjs(v0_7.getAppId()));
                    com.google.android.gms.internal.zzcnl v7_39 = this.zzayj();
                    String v8_21 = v0_7.getAppId();
                    v7_39.zzyk();
                    v7_39.zzwj();
                    com.google.android.gms.common.internal.zzbq.zzgv(v8_21);
                    try {
                        String v0_0 = v7_39.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_21;
                        String v10_10 = (((((((((v0_0.delete("events", "app_id=?", v9_0) + 0) + v0_0.delete("user_attributes", "app_id=?", v9_0)) + v0_0.delete("conditional_properties", "app_id=?", v9_0)) + v0_0.delete("apps", "app_id=?", v9_0)) + v0_0.delete("raw_events", "app_id=?", v9_0)) + v0_0.delete("raw_events_metadata", "app_id=?", v9_0)) + v0_0.delete("event_filters", "app_id=?", v9_0)) + v0_0.delete("property_filters", "app_id=?", v9_0)) + v0_0.delete("audience_filter_values", "app_id=?", v9_0));
                    } catch (String v0_4) {
                        v7_39.zzayp().zzbau().zze("Error deleting application data. appId, error", com.google.android.gms.internal.zzcjj.zzjs(v8_21), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_39.zzayp().zzbba().zze("Deleted application data. app, records", v8_21, Integer.valueOf(v10_10));
                    }
                }
                if (v0_7 != null) {
                    String v0_10;
                    if (v0_7.zzayx() == -2147483648) {
                        if ((v0_7.zzwo() == null) || (v0_7.zzwo().equals(p19.zzina))) {
                            String v8_6;
                            String v0_13;
                            String v0_12;
                            com.google.android.gms.internal.zzcnl v7_13;
                            this = this.zzg(p19);
                            if (v15_3 != null) {
                                if (v15_3 != 1) {
                                    v0_12 = 0;
                                } else {
                                    v0_13 = this.zzayj();
                                    v7_13 = p19.packageName;
                                    v8_6 = "_v";
                                    v0_12 = v0_13.zzae(v7_13, v8_6);
                                }
                            } else {
                                v0_13 = this.zzayj();
                                v7_13 = p19.packageName;
                                v8_6 = "_f";
                            }
                            com.google.android.gms.internal.zzcnl v3_2;
                            if (v0_12 != null) {
                                if (p19.zzjgj) {
                                    v3_2 = new com.google.android.gms.internal.zzcix;
                                    v3_2("_cd", new com.google.android.gms.internal.zzciu(new android.os.Bundle()), "auto", v5_6);
                                    this.zzb(v3_2, p19);
                                }
                            } else {
                                Long v13_0;
                                long v9_13 = (((v5_6 / 3600000) + 1) * 3600000);
                                if (v15_3 != null) {
                                    v13_0 = 1;
                                    if (v15_3 == 1) {
                                        String v0_17 = new com.google.android.gms.internal.zzcnl;
                                        v0_17("_fvt", v5_6, Long.valueOf(v9_13), "auto");
                                        this.zzb(v0_17, p19);
                                        this.zzayo().zzwj();
                                        this.zzyk();
                                        String v0_20 = new android.os.Bundle();
                                        v0_20.putLong("_c", 1);
                                        v0_20.putLong("_r", 1);
                                        com.google.android.gms.internal.zzcnl v3_6 = new com.google.android.gms.internal.zzcix;
                                        v3_6("_v", new com.google.android.gms.internal.zzciu(v0_20), "auto", v5_6);
                                        this.zzb(v3_6, p19);
                                    }
                                } else {
                                    String v0_21 = new com.google.android.gms.internal.zzcnl;
                                    v13_0 = 1;
                                    v0_21("_fot", v5_6, Long.valueOf(v9_13), "auto");
                                    this.zzb(v0_21, p19);
                                    this.zzayo().zzwj();
                                    this.zzyk();
                                    android.os.Bundle v15_2 = new android.os.Bundle();
                                    v15_2.putLong("_c", 1);
                                    v15_2.putLong("_r", 1);
                                    v15_2.putLong("_uwa", 0);
                                    v15_2.putLong("_pfo", 0);
                                    v15_2.putLong("_sys", 0);
                                    v15_2.putLong("_sysu", 0);
                                    if (this.zzaiq.getPackageManager() != null) {
                                        try {
                                            String v0_34 = com.google.android.gms.internal.zzbih.zzdd(this.zzaiq).getPackageInfo(p19.packageName, 0);
                                        } catch (String v0_35) {
                                            this.zzayp().zzbau().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName), v0_35);
                                            v0_34 = 0;
                                        }
                                        if ((v0_34 != null) && (v0_34.firstInstallTime != 0)) {
                                            String v0_38;
                                            if (v0_34.firstInstallTime == v0_34.lastUpdateTime) {
                                                v0_38 = 1;
                                            } else {
                                                v15_2.putLong("_uwa", 1);
                                                v0_38 = 0;
                                            }
                                            long v9_22;
                                            String v12_10 = new com.google.android.gms.internal.zzcnl;
                                            if (v0_38 == null) {
                                                v9_22 = 0;
                                            } else {
                                                v9_22 = 1;
                                            }
                                            com.google.android.gms.internal.zzcnl v3_7 = v12_10;
                                            v12_10("_fi", v5_6, Long.valueOf(v9_22), "auto");
                                            this.zzb(v3_7, p19);
                                        }
                                        try {
                                            String v0_43 = com.google.android.gms.internal.zzbih.zzdd(this.zzaiq).getApplicationInfo(p19.packageName, 0);
                                        } catch (String v0_44) {
                                            this.zzayp().zzbau().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName), v0_44);
                                            v0_43 = 0;
                                        }
                                        if (v0_43 != null) {
                                            if ((v0_43.flags & 1) != 0) {
                                                v15_2.putLong("_sys", 1);
                                            }
                                            if ((v0_43.flags & 128) != 0) {
                                                v15_2.putLong("_sysu", 1);
                                            }
                                        }
                                    } else {
                                        this.zzayp().zzbau().zzj("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName));
                                    }
                                    String v0_51 = this.zzayj();
                                    com.google.android.gms.internal.zzcnl v3_14 = p19.packageName;
                                    com.google.android.gms.common.internal.zzbq.zzgv(v3_14);
                                    v0_51.zzwj();
                                    v0_51.zzyk();
                                    com.google.android.gms.internal.zzcnl v3_15 = v0_51.zzal(v3_14, "first_open_count");
                                    if (v3_15 >= 0) {
                                        v15_2.putLong("_pfo", v3_15);
                                    }
                                    String v0_55 = new com.google.android.gms.internal.zzcix;
                                    v0_55("_f", new com.google.android.gms.internal.zzciu(v15_2), "auto", v5_6);
                                    this.zzb(v0_55, p19);
                                }
                                String v0_58 = new android.os.Bundle();
                                v0_58.putLong("_et", v13_0);
                                v3_2 = new com.google.android.gms.internal.zzcix;
                                v3_2("_e", new com.google.android.gms.internal.zzciu(v0_58), "auto", v5_6);
                            }
                            this.zzayj().setTransactionSuccessful();
                            this.zzayj().endTransaction();
                            return;
                        } else {
                            com.google.android.gms.internal.zzcnl v7_7 = new android.os.Bundle();
                            v7_7.putString("_pv", v0_7.zzwo());
                            v0_10 = new com.google.android.gms.internal.zzcix;
                            v0_10("_au", new com.google.android.gms.internal.zzciu(v7_7), "auto", v5_6);
                        }
                    } else {
                        if (v0_7.zzayx() == p19.zzjfr) {
                        } else {
                            com.google.android.gms.internal.zzcnl v7_11 = new android.os.Bundle();
                            v7_11.putString("_pv", v0_7.zzwo());
                            v0_10 = new com.google.android.gms.internal.zzcix;
                            v0_10("_au", new com.google.android.gms.internal.zzciu(v7_11), "auto", v5_6);
                        }
                    }
                    this.zzb(v0_10, p19);
                }
            } else {
                this.zzg(p19);
                return;
            }
        } else {
            return;
        }
    }

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


    public final void zzf(com.google.android.gms.internal.zzcif p19)
    {
        this.zzayo().zzwj();
        this.zzyk();
        com.google.android.gms.common.internal.zzbq.checkNotNull(p19);
        com.google.android.gms.common.internal.zzbq.zzgv(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzjfl)) {
            String v0_8 = this.zzayj().zzjj(p19.packageName);
            if ((v0_8 != null) && ((android.text.TextUtils.isEmpty(v0_8.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzjfl)))) {
                v0_8.zzar(0);
                this.zzayj().zza(v0_8);
                this.zzaym().zzkd(p19.packageName);
            }
            if (p19.zzjfv) {
                long v5_6 = p19.zzjgk;
                if (v5_6 == 0) {
                    v5_6 = this.zzdir.currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_62 = p19.zzjgl;
                if ((v0_62 == null) || (v0_62 == 1)) {
                    v15_3 = v0_62;
                } else {
                    this.zzayp().zzbaw().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName), Integer.valueOf(v0_62));
                    v15_3 = 0;
                }
                this.zzayj().beginTransaction();
                try {
                    String v0_7 = this.zzayj().zzjj(p19.packageName);
                } catch (String v0_59) {
                    this.zzayj().endTransaction();
                    throw v0_59;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzjfl)))) {
                    this.zzayp().zzbaw().zzj("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzcjj.zzjs(v0_7.getAppId()));
                    com.google.android.gms.internal.zzcnl v7_39 = this.zzayj();
                    String v8_21 = v0_7.getAppId();
                    v7_39.zzyk();
                    v7_39.zzwj();
                    com.google.android.gms.common.internal.zzbq.zzgv(v8_21);
                    try {
                        String v0_0 = v7_39.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_21;
                        String v10_10 = (((((((((v0_0.delete("events", "app_id=?", v9_0) + 0) + v0_0.delete("user_attributes", "app_id=?", v9_0)) + v0_0.delete("conditional_properties", "app_id=?", v9_0)) + v0_0.delete("apps", "app_id=?", v9_0)) + v0_0.delete("raw_events", "app_id=?", v9_0)) + v0_0.delete("raw_events_metadata", "app_id=?", v9_0)) + v0_0.delete("event_filters", "app_id=?", v9_0)) + v0_0.delete("property_filters", "app_id=?", v9_0)) + v0_0.delete("audience_filter_values", "app_id=?", v9_0));
                    } catch (String v0_4) {
                        v7_39.zzayp().zzbau().zze("Error deleting application data. appId, error", com.google.android.gms.internal.zzcjj.zzjs(v8_21), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_39.zzayp().zzbba().zze("Deleted application data. app, records", v8_21, Integer.valueOf(v10_10));
                    }
                }
                if (v0_7 != null) {
                    String v0_10;
                    if (v0_7.zzayx() == -2147483648) {
                        if ((v0_7.zzwo() == null) || (v0_7.zzwo().equals(p19.zzina))) {
                            String v8_6;
                            String v0_12;
                            String v0_13;
                            com.google.android.gms.internal.zzcnl v7_13;
                            this = this.zzg(p19);
                            if (v15_3 != null) {
                                if (v15_3 != 1) {
                                    v0_12 = 0;
                                } else {
                                    v0_13 = this.zzayj();
                                    v7_13 = p19.packageName;
                                    v8_6 = "_v";
                                    v0_12 = v0_13.zzae(v7_13, v8_6);
                                }
                            } else {
                                v0_13 = this.zzayj();
                                v7_13 = p19.packageName;
                                v8_6 = "_f";
                            }
                            com.google.android.gms.internal.zzcnl v3_2;
                            if (v0_12 != null) {
                                if (p19.zzjgj) {
                                    v3_2 = new com.google.android.gms.internal.zzcix;
                                    v3_2("_cd", new com.google.android.gms.internal.zzciu(new android.os.Bundle()), "auto", v5_6);
                                    this.zzb(v3_2, p19);
                                }
                            } else {
                                Long v13_0;
                                long v9_13 = (((v5_6 / 3600000) + 1) * 3600000);
                                if (v15_3 != null) {
                                    v13_0 = 1;
                                    if (v15_3 == 1) {
                                        String v0_17 = new com.google.android.gms.internal.zzcnl;
                                        v0_17("_fvt", v5_6, Long.valueOf(v9_13), "auto");
                                        this.zzb(v0_17, p19);
                                        this.zzayo().zzwj();
                                        this.zzyk();
                                        String v0_20 = new android.os.Bundle();
                                        v0_20.putLong("_c", 1);
                                        v0_20.putLong("_r", 1);
                                        com.google.android.gms.internal.zzcnl v3_6 = new com.google.android.gms.internal.zzcix;
                                        v3_6("_v", new com.google.android.gms.internal.zzciu(v0_20), "auto", v5_6);
                                        this.zzb(v3_6, p19);
                                    }
                                } else {
                                    String v0_21 = new com.google.android.gms.internal.zzcnl;
                                    v13_0 = 1;
                                    v0_21("_fot", v5_6, Long.valueOf(v9_13), "auto");
                                    this.zzb(v0_21, p19);
                                    this.zzayo().zzwj();
                                    this.zzyk();
                                    android.os.Bundle v15_2 = new android.os.Bundle();
                                    v15_2.putLong("_c", 1);
                                    v15_2.putLong("_r", 1);
                                    v15_2.putLong("_uwa", 0);
                                    v15_2.putLong("_pfo", 0);
                                    v15_2.putLong("_sys", 0);
                                    v15_2.putLong("_sysu", 0);
                                    if (this.zzaiq.getPackageManager() != null) {
                                        try {
                                            String v0_34 = com.google.android.gms.internal.zzbih.zzdd(this.zzaiq).getPackageInfo(p19.packageName, 0);
                                        } catch (String v0_35) {
                                            this.zzayp().zzbau().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName), v0_35);
                                            v0_34 = 0;
                                        }
                                        if ((v0_34 != null) && (v0_34.firstInstallTime != 0)) {
                                            String v0_38;
                                            if (v0_34.firstInstallTime == v0_34.lastUpdateTime) {
                                                v0_38 = 1;
                                            } else {
                                                v15_2.putLong("_uwa", 1);
                                                v0_38 = 0;
                                            }
                                            long v9_22;
                                            String v12_10 = new com.google.android.gms.internal.zzcnl;
                                            if (v0_38 == null) {
                                                v9_22 = 0;
                                            } else {
                                                v9_22 = 1;
                                            }
                                            com.google.android.gms.internal.zzcnl v3_7 = v12_10;
                                            v12_10("_fi", v5_6, Long.valueOf(v9_22), "auto");
                                            this.zzb(v3_7, p19);
                                        }
                                        try {
                                            String v0_43 = com.google.android.gms.internal.zzbih.zzdd(this.zzaiq).getApplicationInfo(p19.packageName, 0);
                                        } catch (String v0_44) {
                                            this.zzayp().zzbau().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName), v0_44);
                                            v0_43 = 0;
                                        }
                                        if (v0_43 != null) {
                                            if ((v0_43.flags & 1) != 0) {
                                                v15_2.putLong("_sys", 1);
                                            }
                                            if ((v0_43.flags & 128) != 0) {
                                                v15_2.putLong("_sysu", 1);
                                            }
                                        }
                                    } else {
                                        this.zzayp().zzbau().zzj("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName));
                                    }
                                    String v0_51 = this.zzayj();
                                    com.google.android.gms.internal.zzcnl v3_14 = p19.packageName;
                                    com.google.android.gms.common.internal.zzbq.zzgv(v3_14);
                                    v0_51.zzwj();
                                    v0_51.zzyk();
                                    com.google.android.gms.internal.zzcnl v3_15 = v0_51.zzal(v3_14, "first_open_count");
                                    if (v3_15 >= 0) {
                                        v15_2.putLong("_pfo", v3_15);
                                    }
                                    String v0_55 = new com.google.android.gms.internal.zzcix;
                                    v0_55("_f", new com.google.android.gms.internal.zzciu(v15_2), "auto", v5_6);
                                    this.zzb(v0_55, p19);
                                }
                                String v0_58 = new android.os.Bundle();
                                v0_58.putLong("_et", v13_0);
                                v3_2 = new com.google.android.gms.internal.zzcix;
                                v3_2("_e", new com.google.android.gms.internal.zzciu(v0_58), "auto", v5_6);
                            }
                            this.zzayj().setTransactionSuccessful();
                            this.zzayj().endTransaction();
                            return;
                        } else {
                            com.google.android.gms.internal.zzcnl v7_7 = new android.os.Bundle();
                            v7_7.putString("_pv", v0_7.zzwo());
                            v0_10 = new com.google.android.gms.internal.zzcix;
                            v0_10("_au", new com.google.android.gms.internal.zzciu(v7_7), "auto", v5_6);
                        }
                    } else {
                        if (v0_7.zzayx() == p19.zzjfr) {
                        } else {
                            com.google.android.gms.internal.zzcnl v7_11 = new android.os.Bundle();
                            v7_11.putString("_pv", v0_7.zzwo());
                            v0_10 = new com.google.android.gms.internal.zzcix;
                            v0_10("_au", new com.google.android.gms.internal.zzciu(v7_11), "auto", v5_6);
                        }
                    }
                    this.zzb(v0_10, p19);
                }
            } else {
                this.zzg(p19);
                return;
            }
        } else {
            return;
        }
    }

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


    public final void zzf(com.google.android.gms.internal.zzcif p19)
    {
        this.zzayo().zzwj();
        this.zzyk();
        com.google.android.gms.common.internal.zzbq.checkNotNull(p19);
        com.google.android.gms.common.internal.zzbq.zzgv(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzjfl)) {
            String v0_8 = this.zzayj().zzjj(p19.packageName);
            if ((v0_8 != null) && ((android.text.TextUtils.isEmpty(v0_8.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzjfl)))) {
                v0_8.zzar(0);
                this.zzayj().zza(v0_8);
                this.zzaym().zzkd(p19.packageName);
            }
            if (p19.zzjfv) {
                long v5_6 = p19.zzjgk;
                if (v5_6 == 0) {
                    v5_6 = this.zzdir.currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_62 = p19.zzjgl;
                if ((v0_62 == null) || (v0_62 == 1)) {
                    v15_3 = v0_62;
                } else {
                    this.zzayp().zzbaw().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName), Integer.valueOf(v0_62));
                    v15_3 = 0;
                }
                this.zzayj().beginTransaction();
                try {
                    String v0_7 = this.zzayj().zzjj(p19.packageName);
                } catch (String v0_59) {
                    this.zzayj().endTransaction();
                    throw v0_59;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzjfl)))) {
                    this.zzayp().zzbaw().zzj("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzcjj.zzjs(v0_7.getAppId()));
                    com.google.android.gms.internal.zzcnl v7_39 = this.zzayj();
                    String v8_21 = v0_7.getAppId();
                    v7_39.zzyk();
                    v7_39.zzwj();
                    com.google.android.gms.common.internal.zzbq.zzgv(v8_21);
                    try {
                        String v0_0 = v7_39.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_21;
                        String v10_10 = (((((((((v0_0.delete("events", "app_id=?", v9_0) + 0) + v0_0.delete("user_attributes", "app_id=?", v9_0)) + v0_0.delete("conditional_properties", "app_id=?", v9_0)) + v0_0.delete("apps", "app_id=?", v9_0)) + v0_0.delete("raw_events", "app_id=?", v9_0)) + v0_0.delete("raw_events_metadata", "app_id=?", v9_0)) + v0_0.delete("event_filters", "app_id=?", v9_0)) + v0_0.delete("property_filters", "app_id=?", v9_0)) + v0_0.delete("audience_filter_values", "app_id=?", v9_0));
                    } catch (String v0_4) {
                        v7_39.zzayp().zzbau().zze("Error deleting application data. appId, error", com.google.android.gms.internal.zzcjj.zzjs(v8_21), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_39.zzayp().zzbba().zze("Deleted application data. app, records", v8_21, Integer.valueOf(v10_10));
                    }
                }
                if (v0_7 != null) {
                    String v0_10;
                    if (v0_7.zzayx() == -2147483648) {
                        if ((v0_7.zzwo() == null) || (v0_7.zzwo().equals(p19.zzina))) {
                            com.google.android.gms.internal.zzcnl v7_13;
                            String v0_13;
                            String v0_12;
                            String v8_6;
                            this = this.zzg(p19);
                            if (v15_3 != null) {
                                if (v15_3 != 1) {
                                    v0_12 = 0;
                                } else {
                                    v0_13 = this.zzayj();
                                    v7_13 = p19.packageName;
                                    v8_6 = "_v";
                                    v0_12 = v0_13.zzae(v7_13, v8_6);
                                }
                            } else {
                                v0_13 = this.zzayj();
                                v7_13 = p19.packageName;
                                v8_6 = "_f";
                            }
                            com.google.android.gms.internal.zzcnl v3_2;
                            if (v0_12 != null) {
                                if (p19.zzjgj) {
                                    v3_2 = new com.google.android.gms.internal.zzcix;
                                    v3_2("_cd", new com.google.android.gms.internal.zzciu(new android.os.Bundle()), "auto", v5_6);
                                    this.zzb(v3_2, p19);
                                }
                            } else {
                                Long v13_0;
                                long v9_13 = (((v5_6 / 3600000) + 1) * 3600000);
                                if (v15_3 != null) {
                                    v13_0 = 1;
                                    if (v15_3 == 1) {
                                        String v0_17 = new com.google.android.gms.internal.zzcnl;
                                        v0_17("_fvt", v5_6, Long.valueOf(v9_13), "auto");
                                        this.zzb(v0_17, p19);
                                        this.zzayo().zzwj();
                                        this.zzyk();
                                        String v0_20 = new android.os.Bundle();
                                        v0_20.putLong("_c", 1);
                                        v0_20.putLong("_r", 1);
                                        com.google.android.gms.internal.zzcnl v3_6 = new com.google.android.gms.internal.zzcix;
                                        v3_6("_v", new com.google.android.gms.internal.zzciu(v0_20), "auto", v5_6);
                                        this.zzb(v3_6, p19);
                                    }
                                } else {
                                    String v0_21 = new com.google.android.gms.internal.zzcnl;
                                    v13_0 = 1;
                                    v0_21("_fot", v5_6, Long.valueOf(v9_13), "auto");
                                    this.zzb(v0_21, p19);
                                    this.zzayo().zzwj();
                                    this.zzyk();
                                    android.os.Bundle v15_2 = new android.os.Bundle();
                                    v15_2.putLong("_c", 1);
                                    v15_2.putLong("_r", 1);
                                    v15_2.putLong("_uwa", 0);
                                    v15_2.putLong("_pfo", 0);
                                    v15_2.putLong("_sys", 0);
                                    v15_2.putLong("_sysu", 0);
                                    if (this.zzaiq.getPackageManager() != null) {
                                        try {
                                            String v0_34 = com.google.android.gms.internal.zzbih.zzdd(this.zzaiq).getPackageInfo(p19.packageName, 0);
                                        } catch (String v0_35) {
                                            this.zzayp().zzbau().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName), v0_35);
                                            v0_34 = 0;
                                        }
                                        if ((v0_34 != null) && (v0_34.firstInstallTime != 0)) {
                                            String v0_38;
                                            if (v0_34.firstInstallTime == v0_34.lastUpdateTime) {
                                                v0_38 = 1;
                                            } else {
                                                v15_2.putLong("_uwa", 1);
                                                v0_38 = 0;
                                            }
                                            long v9_22;
                                            String v12_10 = new com.google.android.gms.internal.zzcnl;
                                            if (v0_38 == null) {
                                                v9_22 = 0;
                                            } else {
                                                v9_22 = 1;
                                            }
                                            com.google.android.gms.internal.zzcnl v3_7 = v12_10;
                                            v12_10("_fi", v5_6, Long.valueOf(v9_22), "auto");
                                            this.zzb(v3_7, p19);
                                        }
                                        try {
                                            String v0_43 = com.google.android.gms.internal.zzbih.zzdd(this.zzaiq).getApplicationInfo(p19.packageName, 0);
                                        } catch (String v0_44) {
                                            this.zzayp().zzbau().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName), v0_44);
                                            v0_43 = 0;
                                        }
                                        if (v0_43 != null) {
                                            if ((v0_43.flags & 1) != 0) {
                                                v15_2.putLong("_sys", 1);
                                            }
                                            if ((v0_43.flags & 128) != 0) {
                                                v15_2.putLong("_sysu", 1);
                                            }
                                        }
                                    } else {
                                        this.zzayp().zzbau().zzj("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName));
                                    }
                                    String v0_51 = this.zzayj();
                                    com.google.android.gms.internal.zzcnl v3_14 = p19.packageName;
                                    com.google.android.gms.common.internal.zzbq.zzgv(v3_14);
                                    v0_51.zzwj();
                                    v0_51.zzyk();
                                    com.google.android.gms.internal.zzcnl v3_15 = v0_51.zzal(v3_14, "first_open_count");
                                    if (v3_15 >= 0) {
                                        v15_2.putLong("_pfo", v3_15);
                                    }
                                    String v0_55 = new com.google.android.gms.internal.zzcix;
                                    v0_55("_f", new com.google.android.gms.internal.zzciu(v15_2), "auto", v5_6);
                                    this.zzb(v0_55, p19);
                                }
                                String v0_58 = new android.os.Bundle();
                                v0_58.putLong("_et", v13_0);
                                v3_2 = new com.google.android.gms.internal.zzcix;
                                v3_2("_e", new com.google.android.gms.internal.zzciu(v0_58), "auto", v5_6);
                            }
                            this.zzayj().setTransactionSuccessful();
                            this.zzayj().endTransaction();
                            return;
                        } else {
                            com.google.android.gms.internal.zzcnl v7_7 = new android.os.Bundle();
                            v7_7.putString("_pv", v0_7.zzwo());
                            v0_10 = new com.google.android.gms.internal.zzcix;
                            v0_10("_au", new com.google.android.gms.internal.zzciu(v7_7), "auto", v5_6);
                        }
                    } else {
                        if (v0_7.zzayx() == p19.zzjfr) {
                        } else {
                            com.google.android.gms.internal.zzcnl v7_11 = new android.os.Bundle();
                            v7_11.putString("_pv", v0_7.zzwo());
                            v0_10 = new com.google.android.gms.internal.zzcix;
                            v0_10("_au", new com.google.android.gms.internal.zzciu(v7_11), "auto", v5_6);
                        }
                    }
                    this.zzb(v0_10, p19);
                }
            } else {
                this.zzg(p19);
                return;
            }
        } else {
            return;
        }
    }

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


    public final void zzf(com.google.android.gms.internal.zzcif p19)
    {
        this.zzayo().zzwj();
        this.zzyk();
        com.google.android.gms.common.internal.zzbq.checkNotNull(p19);
        com.google.android.gms.common.internal.zzbq.zzgv(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzjfl)) {
            String v0_8 = this.zzayj().zzjj(p19.packageName);
            if ((v0_8 != null) && ((android.text.TextUtils.isEmpty(v0_8.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzjfl)))) {
                v0_8.zzar(0);
                this.zzayj().zza(v0_8);
                this.zzaym().zzkd(p19.packageName);
            }
            if (p19.zzjfv) {
                long v5_6 = p19.zzjgk;
                if (v5_6 == 0) {
                    v5_6 = this.zzdir.currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_62 = p19.zzjgl;
                if ((v0_62 == null) || (v0_62 == 1)) {
                    v15_3 = v0_62;
                } else {
                    this.zzayp().zzbaw().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName), Integer.valueOf(v0_62));
                    v15_3 = 0;
                }
                this.zzayj().beginTransaction();
                try {
                    String v0_7 = this.zzayj().zzjj(p19.packageName);
                } catch (String v0_59) {
                    this.zzayj().endTransaction();
                    throw v0_59;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzjfl)))) {
                    this.zzayp().zzbaw().zzj("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzcjj.zzjs(v0_7.getAppId()));
                    com.google.android.gms.internal.zzcnl v7_39 = this.zzayj();
                    String v8_21 = v0_7.getAppId();
                    v7_39.zzyk();
                    v7_39.zzwj();
                    com.google.android.gms.common.internal.zzbq.zzgv(v8_21);
                    try {
                        String v0_0 = v7_39.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_21;
                        String v10_10 = (((((((((v0_0.delete("events", "app_id=?", v9_0) + 0) + v0_0.delete("user_attributes", "app_id=?", v9_0)) + v0_0.delete("conditional_properties", "app_id=?", v9_0)) + v0_0.delete("apps", "app_id=?", v9_0)) + v0_0.delete("raw_events", "app_id=?", v9_0)) + v0_0.delete("raw_events_metadata", "app_id=?", v9_0)) + v0_0.delete("event_filters", "app_id=?", v9_0)) + v0_0.delete("property_filters", "app_id=?", v9_0)) + v0_0.delete("audience_filter_values", "app_id=?", v9_0));
                    } catch (String v0_4) {
                        v7_39.zzayp().zzbau().zze("Error deleting application data. appId, error", com.google.android.gms.internal.zzcjj.zzjs(v8_21), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_39.zzayp().zzbba().zze("Deleted application data. app, records", v8_21, Integer.valueOf(v10_10));
                    }
                }
                if (v0_7 != null) {
                    String v0_10;
                    if (v0_7.zzayx() == -2147483648) {
                        if ((v0_7.zzwo() == null) || (v0_7.zzwo().equals(p19.zzina))) {
                            String v0_12;
                            String v0_13;
                            String v8_6;
                            com.google.android.gms.internal.zzcnl v7_13;
                            this = this.zzg(p19);
                            if (v15_3 != null) {
                                if (v15_3 != 1) {
                                    v0_12 = 0;
                                } else {
                                    v0_13 = this.zzayj();
                                    v7_13 = p19.packageName;
                                    v8_6 = "_v";
                                    v0_12 = v0_13.zzae(v7_13, v8_6);
                                }
                            } else {
                                v0_13 = this.zzayj();
                                v7_13 = p19.packageName;
                                v8_6 = "_f";
                            }
                            com.google.android.gms.internal.zzcnl v3_2;
                            if (v0_12 != null) {
                                if (p19.zzjgj) {
                                    v3_2 = new com.google.android.gms.internal.zzcix;
                                    v3_2("_cd", new com.google.android.gms.internal.zzciu(new android.os.Bundle()), "auto", v5_6);
                                    this.zzb(v3_2, p19);
                                }
                            } else {
                                Long v13_0;
                                long v9_13 = (((v5_6 / 3600000) + 1) * 3600000);
                                if (v15_3 != null) {
                                    v13_0 = 1;
                                    if (v15_3 == 1) {
                                        String v0_17 = new com.google.android.gms.internal.zzcnl;
                                        v0_17("_fvt", v5_6, Long.valueOf(v9_13), "auto");
                                        this.zzb(v0_17, p19);
                                        this.zzayo().zzwj();
                                        this.zzyk();
                                        String v0_20 = new android.os.Bundle();
                                        v0_20.putLong("_c", 1);
                                        v0_20.putLong("_r", 1);
                                        com.google.android.gms.internal.zzcnl v3_6 = new com.google.android.gms.internal.zzcix;
                                        v3_6("_v", new com.google.android.gms.internal.zzciu(v0_20), "auto", v5_6);
                                        this.zzb(v3_6, p19);
                                    }
                                } else {
                                    String v0_21 = new com.google.android.gms.internal.zzcnl;
                                    v13_0 = 1;
                                    v0_21("_fot", v5_6, Long.valueOf(v9_13), "auto");
                                    this.zzb(v0_21, p19);
                                    this.zzayo().zzwj();
                                    this.zzyk();
                                    android.os.Bundle v15_2 = new android.os.Bundle();
                                    v15_2.putLong("_c", 1);
                                    v15_2.putLong("_r", 1);
                                    v15_2.putLong("_uwa", 0);
                                    v15_2.putLong("_pfo", 0);
                                    v15_2.putLong("_sys", 0);
                                    v15_2.putLong("_sysu", 0);
                                    if (this.zzaiq.getPackageManager() != null) {
                                        try {
                                            String v0_34 = com.google.android.gms.internal.zzbih.zzdd(this.zzaiq).getPackageInfo(p19.packageName, 0);
                                        } catch (String v0_35) {
                                            this.zzayp().zzbau().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName), v0_35);
                                            v0_34 = 0;
                                        }
                                        if ((v0_34 != null) && (v0_34.firstInstallTime != 0)) {
                                            String v0_38;
                                            if (v0_34.firstInstallTime == v0_34.lastUpdateTime) {
                                                v0_38 = 1;
                                            } else {
                                                v15_2.putLong("_uwa", 1);
                                                v0_38 = 0;
                                            }
                                            long v9_22;
                                            String v12_10 = new com.google.android.gms.internal.zzcnl;
                                            if (v0_38 == null) {
                                                v9_22 = 0;
                                            } else {
                                                v9_22 = 1;
                                            }
                                            com.google.android.gms.internal.zzcnl v3_7 = v12_10;
                                            v12_10("_fi", v5_6, Long.valueOf(v9_22), "auto");
                                            this.zzb(v3_7, p19);
                                        }
                                        try {
                                            String v0_43 = com.google.android.gms.internal.zzbih.zzdd(this.zzaiq).getApplicationInfo(p19.packageName, 0);
                                        } catch (String v0_44) {
                                            this.zzayp().zzbau().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName), v0_44);
                                            v0_43 = 0;
                                        }
                                        if (v0_43 != null) {
                                            if ((v0_43.flags & 1) != 0) {
                                                v15_2.putLong("_sys", 1);
                                            }
                                            if ((v0_43.flags & 128) != 0) {
                                                v15_2.putLong("_sysu", 1);
                                            }
                                        }
                                    } else {
                                        this.zzayp().zzbau().zzj("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName));
                                    }
                                    String v0_51 = this.zzayj();
                                    com.google.android.gms.internal.zzcnl v3_14 = p19.packageName;
                                    com.google.android.gms.common.internal.zzbq.zzgv(v3_14);
                                    v0_51.zzwj();
                                    v0_51.zzyk();
                                    com.google.android.gms.internal.zzcnl v3_15 = v0_51.zzal(v3_14, "first_open_count");
                                    if (v3_15 >= 0) {
                                        v15_2.putLong("_pfo", v3_15);
                                    }
                                    String v0_55 = new com.google.android.gms.internal.zzcix;
                                    v0_55("_f", new com.google.android.gms.internal.zzciu(v15_2), "auto", v5_6);
                                    this.zzb(v0_55, p19);
                                }
                                String v0_58 = new android.os.Bundle();
                                v0_58.putLong("_et", v13_0);
                                v3_2 = new com.google.android.gms.internal.zzcix;
                                v3_2("_e", new com.google.android.gms.internal.zzciu(v0_58), "auto", v5_6);
                            }
                            this.zzayj().setTransactionSuccessful();
                            this.zzayj().endTransaction();
                            return;
                        } else {
                            com.google.android.gms.internal.zzcnl v7_7 = new android.os.Bundle();
                            v7_7.putString("_pv", v0_7.zzwo());
                            v0_10 = new com.google.android.gms.internal.zzcix;
                            v0_10("_au", new com.google.android.gms.internal.zzciu(v7_7), "auto", v5_6);
                        }
                    } else {
                        if (v0_7.zzayx() == p19.zzjfr) {
                        } else {
                            com.google.android.gms.internal.zzcnl v7_11 = new android.os.Bundle();
                            v7_11.putString("_pv", v0_7.zzwo());
                            v0_10 = new com.google.android.gms.internal.zzcix;
                            v0_10("_au", new com.google.android.gms.internal.zzciu(v7_11), "auto", v5_6);
                        }
                    }
                    this.zzb(v0_10, p19);
                }
            } else {
                this.zzg(p19);
                return;
            }
        } else {
            return;
        }
    }

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


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

Method com.google.android.gms.internal.zzdao.zzbhf() calling method android.database.sqlite.SQLiteDatabase.query()


    private final int zzbhf()
    {
        String v1_1 = this.zzlq("Error opening database for getNumStoredHits.");
        android.database.sqlite.SQLiteException v0_1 = 0;
        if (v1_1 != null) {
            String v9 = 0;
            try {
                String v1_0 = v1_1.query("gtm_hits", new String[] {"hit_id", "hit_first_send_time"}), "hit_first_send_time=0", 0, 0, 0, 0);
                try {
                    String v2_1 = v1_0.getCount();
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v9 = v1_0;
                    if (v9 != null) {
                        v9.close();
                    }
                    throw v0_2;
                } catch (String v2_0) {
                    v9 = v1_0;
                    String v2_3 = String.valueOf(v2_0.getMessage());
                    if (v2_3.length() == 0) {
                        String v1_3 = new String("Error getting num untried hits: ");
                    } else {
                        v1_3 = "Error getting num untried hits: ".concat(v2_3);
                    }
                    com.google.android.gms.internal.zzdal.zzcz(v1_3);
                    if (v9 == null) {
                        return v0_1;
                    } else {
                        v9.close();
                        return v0_1;
                    }
                }
                if (v1_0 != null) {
                    v1_0.close();
                }
                v0_1 = v2_1;
                return v0_1;
            } catch (android.database.sqlite.SQLiteException v0_2) {
            } catch (String v2_0) {
            }
        } else {
            return 0;
        }
    }

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


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

Method com.google.android.gms.internal.zzdao.zzff() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List zzff(int p25)
    {
        int v1_1 = new java.util.ArrayList();
        com.google.android.gms.internal.zzczx v0_33 = this.zzlq("Error opening database for peekHits");
        if (v0_33 != null) {
            try {
                java.util.ArrayList v10_1 = new Object[1];
                int v14 = 0;
                v10_1[0] = "hit_id";
                String v11_3 = v0_33.query("gtm_hits", new String[] {"hit_id", "hit_time", "hit_first_send_time"}), 0, 0, 0, 0, String.format("%s ASC", v10_1), Integer.toString(40));
                try {
                    java.util.ArrayList v10_6 = new java.util.ArrayList();
                    try {
                        if (v11_3.moveToFirst()) {
                            try {
                                do {
                                    int v1_6 = new com.google.android.gms.internal.zzczx;
                                    v1_6(v11_3.getLong(0), v11_3.getLong(1), v11_3.getLong(2));
                                    v10_6.add(v1_6);
                                } while(v11_3.moveToNext());
                            } catch (com.google.android.gms.internal.zzczx v0_32) {
                                android.database.Cursor v23 = v11_3;
                                if (v23 != null) {
                                    v23.close();
                                }
                                throw v0_32;
                            } catch (com.google.android.gms.internal.zzczx v0_31) {
                                v1_1 = v10_6;
                                int v12_1 = v11_3;
                                try {
                                    com.google.android.gms.internal.zzczx v0_35 = String.valueOf(v0_31.getMessage());
                                } catch (com.google.android.gms.internal.zzczx v0_32) {
                                    v23 = v12_1;
                                }
                                if (v0_35.length() == 0) {
                                    com.google.android.gms.internal.zzczx v0_37 = new String("Error in peekHits fetching hitIds: ");
                                } else {
                                    v0_37 = "Error in peekHits fetching hitIds: ".concat(v0_35);
                                }
                                com.google.android.gms.internal.zzdal.zzcz(v0_37);
                                if (v12_1 != 0) {
                                    v12_1.close();
                                }
                                return v1_1;
                            }
                            if (!v11_3.moveToNext()) {
                            }
                        }
                    } catch (com.google.android.gms.internal.zzczx v0_31) {
                        v1_1 = v10_6;
                        v12_1 = v11_3;
                    }
                    if (v11_3 != null) {
                        v11_3.close();
                    }
                    try {
                        int v9_0 = new Object[1];
                        v9_0[0] = "hit_id";
                        int v1_3 = v10_6;
                        java.util.ArrayList v10_0 = String.format("%s ASC", v9_0);
                        String v16_2 = v11_3;
                        String v11_0 = Integer.toString(40);
                        try {
                            v11_0 = v0_33.query("gtm_hits", new String[] {"hit_id", "hit_url", "hit_method", "hit_headers", "hit_body"}), 0, 0, 0, 0, v10_0, v11_0);
                            try {
                                if (v11_0.moveToFirst()) {
                                    int v3_2 = 0;
                                    do {
                                        if (((android.database.sqlite.SQLiteCursor) v11_0).getWindow().getNumRows() <= 0) {
                                            org.json.JSONObject v4_0 = new Object[1];
                                            v4_0[0] = Long.valueOf(((com.google.android.gms.internal.zzczx) v1_3.get(v3_2)).zzbgr());
                                            com.google.android.gms.internal.zzdal.zzcz(String.format("HitString for hitId %d too large. Hit will be deleted.", v4_0));
                                            v3_2++;
                                        } else {
                                            ((com.google.android.gms.internal.zzczx) v1_3.get(v3_2)).zzlv(v11_0.getString(1));
                                            ((com.google.android.gms.internal.zzczx) v1_3.get(v3_2)).zzmn(v11_0.getString(2));
                                            ((com.google.android.gms.internal.zzczx) v1_3.get(v3_2)).zzmo(v11_0.getString(4));
                                            int v5_5;
                                            com.google.android.gms.internal.zzczx v0_16 = v11_0.getString(3);
                                            if (v0_16 == null) {
                                                v5_5 = 0;
                                            } else {
                                                org.json.JSONObject v4_6 = new org.json.JSONObject(v0_16);
                                                com.google.android.gms.internal.zzczx v0_17 = v4_6.names();
                                                v5_5 = new java.util.HashMap();
                                                int v6_2 = 0;
                                                while (v6_2 < v0_17.length()) {
                                                    String v7_2 = v0_17.getString(v6_2);
                                                    v5_5.put(v7_2, ((String) v4_6.opt(v7_2)));
                                                    v6_2++;
                                                }
                                            }
                                            ((com.google.android.gms.internal.zzczx) v1_3.get(v3_2)).zzad(v5_5);
                                        }
                                    } while(v11_0.moveToNext());
                                }
                            } catch (com.google.android.gms.internal.zzczx v0_0) {
                                com.google.android.gms.internal.zzczx v0_25 = String.valueOf(v0_0.getMessage());
                                if (v0_25.length() == 0) {
                                    com.google.android.gms.internal.zzczx v0_27 = new String("Error in peekHits fetching hit url: ");
                                } else {
                                    v0_27 = "Error in peekHits fetching hit url: ".concat(v0_25);
                                }
                                com.google.android.gms.internal.zzdal.zzcz(v0_27);
                                com.google.android.gms.internal.zzczx v0_29 = new java.util.ArrayList();
                                java.util.ArrayList v10_3 = ((java.util.ArrayList) v1_3);
                                int v1_4 = v10_3.size();
                                int v3_5 = 0;
                            }
                            if (v11_0 != null) {
                                v11_0.close();
                            }
                            return v1_3;
                        } catch (com.google.android.gms.internal.zzczx v0_1) {
                            v11_0 = v16_2;
                            if (v11_0 != null) {
                                v11_0.close();
                            }
                            throw v0_1;
                        } catch (com.google.android.gms.internal.zzczx v0_0) {
                            v11_0 = v16_2;
                        }
                    } catch (com.google.android.gms.internal.zzczx v0_1) {
                    } catch (com.google.android.gms.internal.zzczx v0_0) {
                        v1_3 = v10_0;
                    } catch (com.google.android.gms.internal.zzczx v0_1) {
                    }
                } catch (com.google.android.gms.internal.zzczx v0_32) {
                    v23 = v11_3;
                } catch (com.google.android.gms.internal.zzczx v0_31) {
                }
            } catch (com.google.android.gms.internal.zzczx v0_32) {
                v23 = 0;
            } catch (com.google.android.gms.internal.zzczx v0_31) {
                v12_1 = 0;
            }
        } else {
            return v1_1;
        }
    }

Method com.google.android.gms.tagmanager.zzec.zzbhf() calling method android.database.sqlite.SQLiteDatabase.query()


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

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


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

Method com.google.android.gms.internal.zzedk.zzbvk() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzbvk()
    {
        IllegalStateException v0_7 = System.currentTimeMillis();
        android.database.Cursor v2_0 = this.zzmxy.query("writes", new String[] {"id", "path", "type", "part", "node"}), 0, 0, 0, 0, "id, part");
        String v3_4 = new java.util.ArrayList();
        try {
            while (v2_0.moveToNext()) {
                com.google.android.gms.internal.zzejn v5_12;
                long v9_1 = v2_0.getLong(0);
                com.google.android.gms.internal.zzegu v11_2 = new com.google.android.gms.internal.zzegu(v2_0.getString(1));
                int v4_9 = v2_0.getString(2);
                if (!v2_0.isNull(3)) {
                    com.google.android.gms.internal.zzejn v5_11 = new java.util.ArrayList();
                    do {
                        v5_11.add(v2_0.getBlob(4));
                    } while((v2_0.moveToNext()) && (v2_0.getLong(0) == v9_1));
                    v2_0.moveToPrevious();
                    v5_12 = com.google.android.gms.internal.zzedk.zzat(v5_11);
                } else {
                    v5_12 = v2_0.getBlob(4);
                }
                int v4_2;
                com.google.android.gms.internal.zzejn v5_13 = com.google.android.gms.internal.zzeor.zzqi(new String(v5_12, com.google.android.gms.internal.zzedk.zzfnl));
                if (!"o".equals(v4_9)) {
                    if (!"m".equals(v4_9)) {
                        String v1_1;
                        String v3_6 = String.valueOf(v4_9);
                        if (v3_6.length() == 0) {
                            v1_1 = new String("Got invalid write type: ");
                        } else {
                            v1_1 = "Got invalid write type: ".concat(v3_6);
                        }
                        throw new IllegalStateException(v1_1);
                    } else {
                        v4_2 = new com.google.android.gms.internal.zzejn(v9_1, v11_2, com.google.android.gms.internal.zzegi.zzam(((java.util.Map) v5_13)));
                    }
                } else {
                    v4_2 = new com.google.android.gms.internal.zzejn;
                    v4_2(v9_1, v11_2, com.google.android.gms.internal.zzenq.zza(v5_13, com.google.android.gms.internal.zzene.zzcco()), 1);
                }
                v3_4.add(v4_2);
            }
        } catch (IllegalStateException v0_3) {
            v2_0.close();
            throw v0_3;
        } catch (IllegalStateException v0_2) {
            throw new RuntimeException("Failed to load writes", v0_2);
        }
        long v8_3 = (System.currentTimeMillis() - v0_7);
        if (this.zzmxz.zzcbu()) {
            IllegalStateException v0_6 = this.zzmxz;
            int v4_5 = new Object[2];
            v4_5[0] = Integer.valueOf(v3_4.size());
            v4_5[1] = Long.valueOf(v8_3);
            int v4_7 = new Object[0];
            v0_6.zzb(String.format("Loaded %d writes in %dms", v4_5), 0, v4_7);
        }
        v2_0.close();
        return v3_4;
    }

Method com.google.android.gms.internal.zzedk.zzbvm() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzbvm()
    {
        android.database.Cursor v4 = "queryParams";
        com.google.android.gms.internal.zzelr v6 = "complete";
        java.io.IOException v2_1 = System.currentTimeMillis();
        v4 = this.zzmxy.query("trackedQueries", new String[] {"id", "active"}), 0, 0, 0, 0, "id");
        RuntimeException v0_1 = new java.util.ArrayList();
        try {
            while (v4.moveToNext()) {
                long v10_0 = v4.getLong(0);
                int v15_1;
                com.google.android.gms.internal.zzelu v12_2 = new com.google.android.gms.internal.zzelu(new com.google.android.gms.internal.zzegu(v4.getString(1)), com.google.android.gms.internal.zzelr.zzao(com.google.android.gms.internal.zzeor.zzqh(v4.getString(2))));
                long v13_1 = v4.getLong(3);
                if (v4.getInt(4) == 0) {
                    v15_1 = 0;
                } else {
                    v15_1 = 1;
                }
                int v16;
                if (v4.getInt(5) == 0) {
                    v16 = 0;
                } else {
                    v16 = 1;
                }
                com.google.android.gms.internal.zzeko v5_10 = new com.google.android.gms.internal.zzeko;
                v5_10(v10_0, v12_2, v13_1, v15_1, v16);
                v0_1.add(v5_10);
            }
        } catch (RuntimeException v0_5) {
            v4.close();
            throw v0_5;
        }
        com.google.android.gms.internal.zzeko v9_2 = (System.currentTimeMillis() - v2_1);
        if (this.zzmxz.zzcbu()) {
            java.io.IOException v2_4 = this.zzmxz;
            com.google.android.gms.internal.zzeko v5_1 = new Object[2];
            v5_1[0] = Integer.valueOf(v0_1.size());
            v5_1[1] = Long.valueOf(v9_2);
            com.google.android.gms.internal.zzeko v5_2 = new Object[0];
            v2_4.zzb(String.format("Loaded %d tracked queries in %dms", v5_1), 0, v5_2);
        }
        v4.close();
        return v0_1;
    }

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


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

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


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

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


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

Method com.google.android.gms.tagmanager.zzec.zzff() calling method android.database.sqlite.SQLiteDatabase.query()


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

Method com.google.android.gms.internal.zzart.zzn() calling method android.database.sqlite.SQLiteDatabase.query()


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

Method com.google.android.gms.internal.zzart.zzo() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzo(long p14)
    {
        boolean v2_3;
        if (p14 < 0) {
            v2_3 = 0;
        } else {
            v2_3 = 1;
        }
        com.google.android.gms.common.internal.zzbq.checkArgument(v2_3);
        com.google.android.gms.analytics.zzk.zzwj();
        this.zzyk();
        com.google.android.gms.internal.zzasy v3_0 = this.getWritableDatabase();
        boolean v2_1 = 0;
        try {
            int v11_0 = new Object[1];
            v11_0[0] = "hit_id";
            String v14_1 = v3_0.query("hits2", new String[] {"hit_id", "hit_time", "hit_string", "hit_url", "hit_app_id"}), 0, 0, 0, 0, String.format("%s ASC", v11_0), Long.toString(p14));
            try {
                android.database.sqlite.SQLiteException v15_2 = new java.util.ArrayList();
            } catch (android.database.sqlite.SQLiteException v15_3) {
                v2_1 = v14_1;
                if (v2_1) {
                    v2_1.close();
                }
                throw v15_3;
            } catch (android.database.sqlite.SQLiteException v15_0) {
                v2_1 = v14_1;
                this.zze("Error loading hits from the database", v15_0);
                throw v15_0;
            }
            if (v14_1.moveToFirst()) {
                do {
                    boolean v2_6 = new com.google.android.gms.internal.zzasy;
                    v2_6(this, this.zzef(v14_1.getString(2)), v14_1.getLong(1), com.google.android.gms.internal.zzatt.zzer(v14_1.getString(3)), v14_1.getLong(0), v14_1.getInt(4));
                    v15_2.add(v2_6);
                } while(v14_1.moveToNext());
            }
            if (v14_1 != null) {
                v14_1.close();
            }
            return v15_2;
        } catch (android.database.sqlite.SQLiteException v15_3) {
        } catch (android.database.sqlite.SQLiteException v15_0) {
        }
    }

Method com.google.android.gms.internal.zzart.zzq() calling method android.database.sqlite.SQLiteDatabase.query()


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

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


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

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


    public final com.google.android.gms.internal.zzcim zza(long p16, String p18, boolean p19, boolean p20, boolean p21, boolean p22, boolean p23)
    {
        com.google.android.gms.common.internal.zzbq.zzgv(p18);
        this.zzwj();
        this.zzyk();
        String v2_1 = new String[1];
        v2_1[0] = p18;
        com.google.android.gms.internal.zzcim v4_1 = new com.google.android.gms.internal.zzcim();
        String v5_8 = 0;
        try {
            android.database.sqlite.SQLiteDatabase v14 = this.getWritableDatabase();
            String[] v10 = "daily_public_events_count";
            int v12 = "daily_error_events_count";
            v10 = new String[1];
            v10[0] = p18;
            int v6_1 = v14.query("apps", new String[] {"day", "daily_realtime_events_count"}), "app_id=?", v10, 0, 0, 0);
            try {
                if (v6_1.moveToFirst()) {
                    if (v6_1.getLong(0) == p16) {
                        v4_1.zzjhf = v6_1.getLong(1);
                        v4_1.zzjhe = v6_1.getLong(2);
                        v4_1.zzjhg = v6_1.getLong(3);
                        v4_1.zzjhh = v6_1.getLong(4);
                        v4_1.zzjhi = v6_1.getLong(5);
                    }
                    if (p19) {
                        v4_1.zzjhf = (v4_1.zzjhf + 1);
                    }
                    if (p20) {
                        v4_1.zzjhe = (v4_1.zzjhe + 1);
                    }
                    if (p21) {
                        v4_1.zzjhg = (v4_1.zzjhg + 1);
                    }
                    if (p22) {
                        v4_1.zzjhh = (v4_1.zzjhh + 1);
                    }
                    if (p23) {
                        v4_1.zzjhi = (v4_1.zzjhi + 1);
                    }
                    android.content.ContentValues v0_1 = new android.content.ContentValues();
                    v0_1.put("day", Long.valueOf(p16));
                    v0_1.put("daily_public_events_count", Long.valueOf(v4_1.zzjhe));
                    v0_1.put("daily_events_count", Long.valueOf(v4_1.zzjhf));
                    v0_1.put("daily_conversions_count", Long.valueOf(v4_1.zzjhg));
                    v0_1.put("daily_error_events_count", Long.valueOf(v4_1.zzjhh));
                    v0_1.put("daily_realtime_events_count", Long.valueOf(v4_1.zzjhi));
                    v14.update("apps", v0_1, "app_id=?", v2_1);
                    if (v6_1 != 0) {
                        v6_1.close();
                    }
                    return v4_1;
                } else {
                    this.zzayp().zzbaw().zzj("Not updating daily counts, app is not known. appId", com.google.android.gms.internal.zzcjj.zzjs(p18));
                    if (v6_1 != 0) {
                        v6_1.close();
                    }
                    return v4_1;
                }
            } catch (android.content.ContentValues v0_10) {
                if (v6_1 != 0) {
                    v6_1.close();
                }
                throw v0_10;
            } catch (android.content.ContentValues v0_5) {
                v5_8 = v6_1;
                this.zzayp().zzbau().zze("Error updating daily counts. appId", com.google.android.gms.internal.zzcjj.zzjs(p18), v0_5);
                if (v5_8 != null) {
                    v5_8.close();
                }
                return v4_1;
            }
        } catch (android.content.ContentValues v0_10) {
            v6_1 = v5_8;
        } catch (android.content.ContentValues v0_5) {
        }
    }

Method com.google.android.gms.internal.zzcil.zzae() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.zzcit zzae(String p22, String p23)
    {
        com.google.android.gms.common.internal.zzbq.zzgv(p22);
        com.google.android.gms.common.internal.zzbq.zzgv(p23);
        this.zzwj();
        this.zzyk();
        try {
            String v1_9 = this.getWritableDatabase();
            String[] v5 = "last_fire_timestamp";
            int v7 = "last_sampled_complex_event_id";
            v5 = new String[2];
            int v9_1 = 0;
            v5[0] = p22;
            v5[1] = p23;
            Boolean v14_0 = v1_9.query("events", new String[] {"lifetime_count", "last_exempt_from_sampling"}), "app_id=? and name=?", v5, 0, 0, 0);
            try {
                if (v14_0.moveToFirst()) {
                    com.google.android.gms.internal.zzcjl v0_6;
                    long v4_3 = v14_0.getLong(0);
                    long v6_1 = v14_0.getLong(1);
                    long v11 = v14_0.getLong(2);
                    if (!v14_0.isNull(3)) {
                        v0_6 = v14_0.getLong(3);
                    } else {
                        v0_6 = 0;
                    }
                    android.database.Cursor v17_1 = v0_6;
                    com.google.android.gms.internal.zzcjl v0_9;
                    if (!v14_0.isNull(4)) {
                        v0_9 = Long.valueOf(v14_0.getLong(4));
                    } else {
                        v0_9 = 0;
                    }
                    Long v13;
                    if (!v14_0.isNull(5)) {
                        v13 = Long.valueOf(v14_0.getLong(5));
                    } else {
                        v13 = 0;
                    }
                    Boolean v19_0;
                    if (v14_0.isNull(6)) {
                        v19_0 = 0;
                    } else {
                        if (v14_0.getLong(6) == 1) {
                            v9_1 = 1;
                        }
                        v19_0 = Boolean.valueOf(v9_1);
                    }
                    com.google.android.gms.internal.zzcit v20 = new com.google.android.gms.internal.zzcit;
                    android.database.Cursor v17_0 = v14_0;
                    try {
                        v20(p22, p23, v4_3, v6_1, v11, v17_1, v0_9, v13, v19_0);
                    } catch (com.google.android.gms.internal.zzcjl v0_2) {
                        this.zzayp().zzbau().zzd("Error querying events. appId", com.google.android.gms.internal.zzcjj.zzjs(p22), this.zzayk().zzjp(p23), v0_2);
                        if (v17_0 != null) {
                            v17_0.close();
                        }
                        return 0;
                    }
                    if (v17_0.moveToNext()) {
                        this.zzayp().zzbau().zzj("Got multiple records for event aggregates, expected one. appId", com.google.android.gms.internal.zzcjj.zzjs(p22));
                    }
                    if (v17_0 != null) {
                        v17_0.close();
                    }
                    return v20;
                } else {
                    if (v14_0 != null) {
                        v14_0.close();
                    }
                    return 0;
                }
            } catch (com.google.android.gms.internal.zzcjl v0_3) {
                v17_0 = v14_0;
                if (v17_0 != null) {
                    v17_0.close();
                }
                throw v0_3;
            } catch (com.google.android.gms.internal.zzcjl v0_2) {
                v17_0 = v14_0;
            }
        } catch (com.google.android.gms.internal.zzcjl v0_3) {
            v17_0 = 0;
        } catch (com.google.android.gms.internal.zzcjl v0_2) {
            v17_0 = 0;
        } catch (com.google.android.gms.internal.zzcjl v0_3) {
        }
    }

Method com.google.android.gms.internal.zzcil.zzag() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.zzcnn zzag(String p19, String p20)
    {
        com.google.android.gms.common.internal.zzbq.zzgv(p19);
        com.google.android.gms.common.internal.zzbq.zzgv(p20);
        this.zzwj();
        this.zzyk();
        try {
            int v10_1 = this.getWritableDatabase();
            String[] v14 = new String[2];
            v14[0] = p19;
            v14[1] = p20;
            int v10_0 = v10_1.query("user_attributes", new String[] {"set_timestamp", "value", "origin"}), "app_id=? and name=?", v14, 0, 0, 0);
            try {
                if (v10_0.moveToFirst()) {
                    try {
                        android.database.sqlite.SQLiteException v0_3 = new com.google.android.gms.internal.zzcnn;
                        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.zzayp().zzbau().zzd("Error querying user property. appId", com.google.android.gms.internal.zzcjj.zzjs(p19), this.zzayk().zzjr(p20), v0_1);
                        if (v10_0 != 0) {
                            v10_0.close();
                        }
                        return 0;
                    }
                    if (v10_0.moveToNext()) {
                        this.zzayp().zzbau().zzj("Got multiple records for user property, expected one. appId", com.google.android.gms.internal.zzcjj.zzjs(p19));
                    }
                    if (v10_0 != 0) {
                        v10_0.close();
                    }
                    return v0_3;
                } else {
                    if (v10_0 != 0) {
                        v10_0.close();
                    }
                    return 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_2) {
                if (v10_0 != 0) {
                    v10_0.close();
                }
                throw v0_2;
            } catch (android.database.sqlite.SQLiteException v0_1) {
            }
        } catch (android.database.sqlite.SQLiteException v0_2) {
            v10_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_1) {
            v10_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_2) {
        }
    }

Method com.google.android.gms.internal.zzcil.zzah() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.zzcii zzah(String p30, String p31)
    {
        com.google.android.gms.common.internal.zzbq.zzgv(p30);
        com.google.android.gms.common.internal.zzbq.zzgv(p31);
        this.zzwj();
        this.zzyk();
        try {
            int v9_1 = this.getWritableDatabase();
            String[] v13 = "active";
            String v15 = "trigger_timeout";
            com.google.android.gms.internal.zzcnl v17 = "creation_timestamp";
            String v19 = "triggered_timestamp";
            v13 = new String[2];
            v13[0] = p30;
            v13[1] = p31;
            int v9_0 = v9_1.query("conditional_properties", new String[] {"origin", "expired_event"}), "app_id=? and name=?", v13, 0, 0, 0);
            try {
                if (v9_0.moveToFirst()) {
                    String v16_1 = v9_0.getString(0);
                    try {
                        int v20;
                        Object v5 = this.zza(v9_0, 1);
                    } catch (com.google.android.gms.internal.zzcii v0_1) {
                        this.zzayp().zzbau().zzd("Error querying conditional property", com.google.android.gms.internal.zzcjj.zzjs(p30), this.zzayk().zzjr(p31), v0_1);
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        return 0;
                    }
                    if (v9_0.getInt(2) == 0) {
                        v20 = 0;
                    } else {
                        v20 = 1;
                    }
                    String v21_1 = v9_0.getString(3);
                    long v23 = v9_0.getLong(4);
                    com.google.android.gms.internal.zzcix v22_1 = ((com.google.android.gms.internal.zzcix) this.zzayl().zzb(v9_0.getBlob(5), com.google.android.gms.internal.zzcix.CREATOR));
                    long v18 = v9_0.getLong(6);
                    com.google.android.gms.internal.zzcix v25_1 = ((com.google.android.gms.internal.zzcix) this.zzayl().zzb(v9_0.getBlob(7), com.google.android.gms.internal.zzcix.CREATOR));
                    Object v3_3 = v9_0.getLong(8);
                    long v26 = v9_0.getLong(9);
                    com.google.android.gms.internal.zzcix v28_1 = ((com.google.android.gms.internal.zzcix) this.zzayl().zzb(v9_0.getBlob(10), com.google.android.gms.internal.zzcix.CREATOR));
                    v17 = new com.google.android.gms.internal.zzcnl;
                    v17(p31, v3_3, v5, v16_1);
                    com.google.android.gms.internal.zzcii v0_0 = new com.google.android.gms.internal.zzcii;
                    v0_0(p30, v16_1, v17, v18, v20, v21_1, v22_1, v23, v25_1, v26, v28_1);
                    if (v9_0.moveToNext()) {
                        this.zzayp().zzbau().zze("Got multiple records for conditional property, expected one", com.google.android.gms.internal.zzcjj.zzjs(p30), this.zzayk().zzjr(p31));
                    }
                    if (v9_0 != 0) {
                        v9_0.close();
                    }
                    return v0_0;
                } else {
                    if (v9_0 != 0) {
                        v9_0.close();
                    }
                    return 0;
                }
            } catch (com.google.android.gms.internal.zzcii v0_2) {
                if (v9_0 != 0) {
                    v9_0.close();
                }
                throw v0_2;
            } catch (com.google.android.gms.internal.zzcii v0_1) {
            }
        } catch (com.google.android.gms.internal.zzcii v0_2) {
            v9_0 = 0;
        } catch (com.google.android.gms.internal.zzcii v0_1) {
            v9_0 = 0;
        } catch (com.google.android.gms.internal.zzcii v0_2) {
        }
    }

Method com.google.android.gms.internal.zzcil.zzaj() calling method android.database.sqlite.SQLiteDatabase.query()


    final java.util.Map zzaj(String p13, String p14)
    {
        this.zzyk();
        this.zzwj();
        com.google.android.gms.common.internal.zzbq.zzgv(p13);
        com.google.android.gms.common.internal.zzbq.zzgv(p14);
        java.util.Map v0_2 = new androidx.collection.ArrayMap();
        Integer v1_8 = this.getWritableDatabase();
        try {
            String[] v5_1 = new String[2];
            v5_1[0] = p13;
            v5_1[1] = p14;
            int v14_1 = v1_8.query("event_filters", new String[] {"audience_id", "data"}), "app_id=? AND event_name=?", v5_1, 0, 0, 0);
            try {
                if (!v14_1.moveToFirst()) {
                    java.util.Map v0_3 = java.util.Collections.emptyMap();
                    if (v14_1 != 0) {
                        v14_1.close();
                    }
                    return v0_3;
                }
            } catch (java.util.Map v0_0) {
                this.zzayp().zzbau().zze("Database error querying filters. appId", com.google.android.gms.internal.zzcjj.zzjs(p13), v0_0);
                if (v14_1 != 0) {
                    v14_1.close();
                }
                return 0;
            }
            do {
                Integer v1_1 = v14_1.getBlob(1);
                Integer v1_2 = com.google.android.gms.internal.zzflj.zzo(v1_1, 0, v1_1.length);
                com.google.android.gms.internal.zzcjl v2_2 = new com.google.android.gms.internal.zzcns();
                v2_2.zza(v1_2);
                Integer v1_4 = v14_1.getInt(0);
                java.util.ArrayList v3_5 = ((java.util.List) v0_2.get(Integer.valueOf(v1_4)));
                if (v3_5 == null) {
                    v3_5 = new java.util.ArrayList();
                    v0_2.put(Integer.valueOf(v1_4), v3_5);
                }
                v3_5.add(v2_2);
            } while(v14_1.moveToNext());
            if (v14_1 != 0) {
                v14_1.close();
            }
            return v0_2;
        } catch (Throwable v13_1) {
            v14_1 = 0;
            if (v14_1 != 0) {
                v14_1.close();
            }
            throw v13_1;
        } catch (java.util.Map v0_0) {
            v14_1 = 0;
        } catch (Throwable v13_1) {
        }
    }

Method com.google.android.gms.internal.zzcil.zzak() calling method android.database.sqlite.SQLiteDatabase.query()


    final java.util.Map zzak(String p13, String p14)
    {
        this.zzyk();
        this.zzwj();
        com.google.android.gms.common.internal.zzbq.zzgv(p13);
        com.google.android.gms.common.internal.zzbq.zzgv(p14);
        java.util.Map v0_2 = new androidx.collection.ArrayMap();
        Integer v1_8 = this.getWritableDatabase();
        try {
            String[] v5_1 = new String[2];
            v5_1[0] = p13;
            v5_1[1] = p14;
            int v14_1 = v1_8.query("property_filters", new String[] {"audience_id", "data"}), "app_id=? AND property_name=?", v5_1, 0, 0, 0);
            try {
                if (!v14_1.moveToFirst()) {
                    java.util.Map v0_3 = java.util.Collections.emptyMap();
                    if (v14_1 != 0) {
                        v14_1.close();
                    }
                    return v0_3;
                }
            } catch (java.util.Map v0_0) {
                this.zzayp().zzbau().zze("Database error querying filters. appId", com.google.android.gms.internal.zzcjj.zzjs(p13), v0_0);
                if (v14_1 != 0) {
                    v14_1.close();
                }
                return 0;
            }
            do {
                Integer v1_1 = v14_1.getBlob(1);
                Integer v1_2 = com.google.android.gms.internal.zzflj.zzo(v1_1, 0, v1_1.length);
                com.google.android.gms.internal.zzcjl v2_2 = new com.google.android.gms.internal.zzcnv();
                v2_2.zza(v1_2);
                Integer v1_4 = v14_1.getInt(0);
                java.util.ArrayList v3_5 = ((java.util.List) v0_2.get(Integer.valueOf(v1_4)));
                if (v3_5 == null) {
                    v3_5 = new java.util.ArrayList();
                    v0_2.put(Integer.valueOf(v1_4), v3_5);
                }
                v3_5.add(v2_2);
            } while(v14_1.moveToNext());
            if (v14_1 != 0) {
                v14_1.close();
            }
            return v0_2;
        } catch (Throwable v13_1) {
            v14_1 = 0;
            if (v14_1 != 0) {
                v14_1.close();
            }
            throw v13_1;
        } catch (java.util.Map v0_0) {
            v14_1 = 0;
        } catch (Throwable v13_1) {
        }
    }

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


    public final java.util.List zzd(String p25, String[] p26)
    {
        this.zzwj();
        this.zzyk();
        android.database.sqlite.SQLiteException v0_4 = new java.util.ArrayList();
        boolean v1_4 = 0;
        try {
            com.google.android.gms.internal.zzcnl v6 = "name";
            int v8 = "active";
            String v10 = "trigger_timeout";
            long v12 = "creation_timestamp";
            com.google.android.gms.internal.zzcix v14 = "triggered_timestamp";
            com.google.android.gms.internal.zzcjl v2_2 = this.getWritableDatabase().query("conditional_properties", new String[] {"app_id", "expired_event"}), p25, p26, 0, 0, "rowid", "1001");
            try {
                if (!v2_2.moveToFirst()) {
                    if (v2_2 != null) {
                        v2_2.close();
                    }
                    return v0_4;
                }
            } catch (android.database.sqlite.SQLiteException v0_2) {
                if (v2_2 != null) {
                    v2_2.close();
                }
                throw v0_2;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v1_4 = v2_2;
                this.zzayp().zzbau().zzj("Error querying conditional user property value", v0_0);
                android.database.sqlite.SQLiteException v0_1 = java.util.Collections.emptyList();
                if (v1_4) {
                    v1_4.close();
                }
                return v0_1;
            }
            while (v0_4.size() < 1000) {
                boolean v1_7 = 0;
                String v4_2 = v2_2.getString(0);
                com.google.android.gms.internal.zzcix v11_1 = v2_2.getString(1);
                com.google.android.gms.internal.zzcnl v6_2 = v2_2.getString(2);
                int v9_2 = this.zza(v2_2, 3);
                if (v2_2.getInt(4) != 0) {
                    v1_7 = 1;
                }
                long v12_1 = v2_2.getString(5);
                long v13 = v2_2.getLong(6);
                com.google.android.gms.internal.zzcix v16_2 = ((com.google.android.gms.internal.zzcix) this.zzayl().zzb(v2_2.getBlob(7), com.google.android.gms.internal.zzcix.CREATOR));
                com.google.android.gms.internal.zzcix v17_1 = v2_2.getLong(8);
                com.google.android.gms.internal.zzcix v19_1 = ((com.google.android.gms.internal.zzcix) this.zzayl().zzb(v2_2.getBlob(9), com.google.android.gms.internal.zzcix.CREATOR));
                long v7_4 = v2_2.getLong(10);
                long v20 = v2_2.getLong(11);
                com.google.android.gms.internal.zzcix v22_1 = ((com.google.android.gms.internal.zzcix) this.zzayl().zzb(v2_2.getBlob(12), com.google.android.gms.internal.zzcix.CREATOR));
                com.google.android.gms.internal.zzcnl v23 = new com.google.android.gms.internal.zzcnl;
                v23(v6_2, v7_4, v9_2, v11_1);
                String v10_1 = new com.google.android.gms.internal.zzcii;
                boolean v1_0 = v10_1;
                v10_1(v4_2, v11_1, v23, v17_1, v1_7, v12_1, v16_2, v13, v19_1, v20, v22_1);
                v0_4.add(v1_0);
                if (!v2_2.moveToNext()) {
                }
                if (v2_2 != null) {
                    v2_2.close();
                }
                return v0_4;
            }
            this.zzayp().zzbau().zzj("Read more than the max allowed conditional properties, ignoring extra", Integer.valueOf(1000));
        } catch (android.database.sqlite.SQLiteException v0_2) {
            v2_2 = v1_4;
        } catch (android.database.sqlite.SQLiteException v0_0) {
        }
    }

Method com.google.android.gms.internal.zzdao.zzmp() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final int zzmp(String p6)
    {
        android.database.sqlite.SQLiteException v0_1 = this.zzlq("Error opening database for getNumRecords.");
        int v1 = 0;
        if (v0_1 != null) {
            long v2_0 = 0;
            try {
                android.database.sqlite.SQLiteException v6_2;
                android.database.sqlite.SQLiteException v6_10 = String.valueOf(p6);
            } catch (android.database.sqlite.SQLiteException v6_9) {
                if (v2_0 != 0) {
                    v2_0.close();
                }
                throw v6_9;
            } catch (android.database.sqlite.SQLiteException v6_4) {
                android.database.sqlite.SQLiteException v6_6 = String.valueOf(v6_4.getMessage());
                if (v6_6.length() == 0) {
                    android.database.sqlite.SQLiteException v6_8 = new String("Error getting numStoredRecords: ");
                } else {
                    v6_8 = "Error getting numStoredRecords: ".concat(v6_6);
                }
                com.google.android.gms.internal.zzdal.zzcz(v6_8);
                if (v2_0 == 0) {
                    return v1;
                } else {
                    v2_0.close();
                    return v1;
                }
                if (android.database.sqlite.SQLiteException v6_3 == null) {
                    return v1;
                } else {
                    v6_3.close();
                    return v1;
                }
            }
            if (v6_10.length() == 0) {
                v6_2 = new String("SELECT COUNT(*) from ");
            } else {
                v6_2 = "SELECT COUNT(*) from ".concat(v6_10);
            }
            v6_3 = v0_1.rawQuery(v6_2, 0);
            try {
                if (v6_3.moveToFirst()) {
                    v1 = ((int) v6_3.getLong(0));
                }
            } catch (android.database.sqlite.SQLiteException v0_5) {
                v2_0 = v6_3;
                v6_9 = v0_5;
            } catch (android.database.sqlite.SQLiteException v0_3) {
                v2_0 = v6_3;
                v6_4 = v0_3;
            }
        } else {
            return 0;
        }
    }

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


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

Method com.google.android.gms.internal.zzcil.zzji() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzji(String p14)
    {
        com.google.android.gms.common.internal.zzbq.zzgv(p14);
        this.zzwj();
        this.zzyk();
        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.zzayp().zzbau().zze("Error querying user properties. appId", com.google.android.gms.internal.zzcjj.zzjs(p14), v0_0);
                if (v2_0 != 0) {
                    v2_0.close();
                }
                return 0;
            }
            do {
                String v7_2 = v2_0.getString(0);
                boolean v3_1 = v2_0.getString(1);
                if (!v3_1) {
                    v3_1 = "";
                }
                String v6_2 = v3_1;
                long v8_1 = v2_0.getLong(2);
                Object v10_1 = this.zza(v2_0, 3);
                if (v10_1 != null) {
                    boolean v3_4 = new com.google.android.gms.internal.zzcnn;
                    v3_4(p14, v6_2, v7_2, v8_1, v10_1);
                    v0_2.add(v3_4);
                } else {
                    this.zzayp().zzbau().zzj("Read invalid user property value, ignoring it. appId", com.google.android.gms.internal.zzcjj.zzjs(p14));
                }
            } while(v2_0.moveToNext());
            if (v2_0 != 0) {
                v2_0.close();
            }
            return v0_2;
        } catch (Throwable v14_1) {
            v2_0 = 0;
            if (v2_0 != 0) {
                v2_0.close();
            }
            throw v14_1;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v2_0 = 0;
        } catch (Throwable v14_1) {
        }
    }

Method com.google.android.gms.internal.zzcil.zzjj() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.zzcie zzjj(String p30)
    {
        com.google.android.gms.common.internal.zzbq.zzgv(p30);
        this.zzwj();
        this.zzyk();
        try {
            int v3_1 = this.getWritableDatabase();
            Object v7 = "resettable_device_id_hash";
            int v9 = "last_bundle_start_timestamp";
            int v11 = "app_version";
            String v13 = "gmp_version";
            String v15 = "measurement_enabled";
            String v17 = "daily_public_events_count";
            String v19 = "daily_conversions_count";
            String v21 = "failed_config_fetch_time";
            String v23 = "firebase_instance_id";
            String v25 = "daily_realtime_events_count";
            String v27 = "android_id";
            com.google.android.gms.internal.zzcjl v0_0 = 1;
            Object v7_5 = new String[1];
            v7_5[0] = p30;
            int v3_0 = v3_1.query("apps", new String[] {"app_instance_id", "adid_reporting_enabled"}), "app_id=?", v7_5, 0, 0, 0);
            try {
                if (v3_0.moveToFirst()) {
                    try {
                        String v6_1;
                        com.google.android.gms.internal.zzcie v4_4 = new com.google.android.gms.internal.zzcie(this.zzjev, p30);
                        v4_4.zziy(v3_0.getString(0));
                        v4_4.zziz(v3_0.getString(1));
                        v4_4.zzja(v3_0.getString(2));
                        v4_4.zzaq(v3_0.getLong(3));
                        v4_4.zzal(v3_0.getLong(4));
                        v4_4.zzam(v3_0.getLong(5));
                        v4_4.setAppVersion(v3_0.getString(6));
                        v4_4.zzjc(v3_0.getString(7));
                        v4_4.zzao(v3_0.getLong(8));
                        v4_4.zzap(v3_0.getLong(9));
                    } catch (com.google.android.gms.internal.zzcjl v0_4) {
                        this.zzayp().zzbau().zze("Error querying app. appId", com.google.android.gms.internal.zzcjj.zzjs(p30), v0_4);
                        if (v3_0 != 0) {
                            v3_0.close();
                        }
                        return 0;
                    }
                    if (v3_0.isNull(10)) {
                        v6_1 = 1;
                    } else {
                        if (v3_0.getInt(10) == 0) {
                            v6_1 = 0;
                        } else {
                        }
                    }
                    String v6_16;
                    v4_4.setMeasurementEnabled(v6_1);
                    v4_4.zzat(v3_0.getLong(11));
                    v4_4.zzau(v3_0.getLong(12));
                    v4_4.zzav(v3_0.getLong(13));
                    v4_4.zzaw(v3_0.getLong(14));
                    v4_4.zzar(v3_0.getLong(15));
                    v4_4.zzas(v3_0.getLong(16));
                    if (!v3_0.isNull(17)) {
                        v6_16 = ((long) v3_0.getInt(17));
                    } else {
                        v6_16 = -2147483648;
                    }
                    String v6_26;
                    v4_4.zzan(v6_16);
                    v4_4.zzjb(v3_0.getString(18));
                    v4_4.zzay(v3_0.getLong(19));
                    v4_4.zzax(v3_0.getLong(20));
                    v4_4.zzjd(v3_0.getString(21));
                    if (!v3_0.isNull(22)) {
                        v6_26 = v3_0.getLong(22);
                    } else {
                        v6_26 = 0;
                    }
                    v4_4.zzaz(v6_26);
                    if (!v3_0.isNull(23)) {
                        if (v3_0.getInt(23) == 0) {
                            v0_0 = 0;
                        } else {
                        }
                    }
                    v4_4.zzbq(v0_0);
                    v4_4.zzays();
                    if (v3_0.moveToNext()) {
                        this.zzayp().zzbau().zzj("Got multiple records for app, expected one. appId", com.google.android.gms.internal.zzcjj.zzjs(p30));
                    }
                    if (v3_0 != 0) {
                        v3_0.close();
                    }
                    return v4_4;
                } else {
                    if (v3_0 != 0) {
                        v3_0.close();
                    }
                    return 0;
                }
            } catch (com.google.android.gms.internal.zzcjl v0_5) {
                if (v3_0 != 0) {
                    v3_0.close();
                }
                throw v0_5;
            } catch (com.google.android.gms.internal.zzcjl v0_4) {
            }
        } catch (com.google.android.gms.internal.zzcjl v0_5) {
            v3_0 = 0;
        } catch (com.google.android.gms.internal.zzcjl v0_4) {
            v3_0 = 0;
        } catch (com.google.android.gms.internal.zzcjl v0_5) {
        }
    }

Method com.google.android.gms.internal.zzcil.zzjl() calling method android.database.sqlite.SQLiteDatabase.query()


    public final byte[] zzjl(String p11)
    {
        com.google.android.gms.common.internal.zzbq.zzgv(p11);
        this.zzwj();
        this.zzyk();
        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.zzayp().zzbau().zzj("Got multiple records for app config, expected one. appId", com.google.android.gms.internal.zzcjj.zzjs(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.zzayp().zzbau().zze("Error querying remote config. appId", com.google.android.gms.internal.zzcjj.zzjs(p11), v2_0);
                if (v1_0 != 0) {
                    v1_0.close();
                }
                return 0;
            }
        } catch (Throwable v11_1) {
            v1_0 = 0;
            if (v1_0 != 0) {
                v1_0.close();
            }
            throw v11_1;
        } catch (byte[] v2_0) {
            v1_0 = 0;
        } catch (Throwable v11_1) {
        }
    }

Method com.google.android.gms.internal.zzcil.zzjm() calling method android.database.sqlite.SQLiteDatabase.query()


    final java.util.Map zzjm(String p12)
    {
        this.zzyk();
        this.zzwj();
        com.google.android.gms.common.internal.zzbq.zzgv(p12);
        int v0_1 = this.getWritableDatabase();
        try {
            com.google.android.gms.internal.zzcjl v4_0 = new String[1];
            v4_0[0] = p12;
            int v0_0 = v0_1.query("audience_filter_values", new String[] {"audience_id", "current_results"}), "app_id=?", v4_0, 0, 0, 0);
            try {
                if (v0_0.moveToFirst()) {
                    androidx.collection.ArrayMap v1_3 = new androidx.collection.ArrayMap();
                    do {
                        boolean v2_1 = v0_0.getInt(0);
                        java.io.IOException v3_1 = v0_0.getBlob(1);
                        java.io.IOException v3_2 = com.google.android.gms.internal.zzflj.zzo(v3_1, 0, v3_1.length);
                        com.google.android.gms.internal.zzcjl v4_3 = new com.google.android.gms.internal.zzcof();
                        v4_3.zza(v3_2);
                        v1_3.put(Integer.valueOf(v2_1), v4_3);
                    } while(v0_0.moveToNext());
                    if (v0_0 != 0) {
                        v0_0.close();
                    }
                    return v1_3;
                } else {
                    if (v0_0 != 0) {
                        v0_0.close();
                    }
                    return 0;
                }
            } catch (androidx.collection.ArrayMap v1_0) {
                this.zzayp().zzbau().zze("Database error querying filter results. appId", com.google.android.gms.internal.zzcjj.zzjs(p12), v1_0);
                if (v0_0 != 0) {
                    v0_0.close();
                }
                return 0;
            }
        } catch (Throwable v12_1) {
            v0_0 = 0;
            if (v0_0 != 0) {
                v0_0.close();
            }
            throw v12_1;
        } catch (androidx.collection.ArrayMap v1_0) {
            v0_0 = 0;
        } catch (Throwable v12_1) {
        }
    }

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


    public final java.util.List zzl(String p13, int p14, int p15)
    {
        java.util.ArrayList v2_5;
        this.zzwj();
        this.zzyk();
        if (p14 <= null) {
            v2_5 = 0;
        } else {
            v2_5 = 1;
        }
        java.util.ArrayList v2_0;
        com.google.android.gms.common.internal.zzbq.checkArgument(v2_5);
        if (p15 <= null) {
            v2_0 = 0;
        } else {
            v2_0 = 1;
        }
        com.google.android.gms.common.internal.zzbq.checkArgument(v2_0);
        com.google.android.gms.common.internal.zzbq.zzgv(p13);
        java.util.ArrayList v2_1 = 0;
        try {
            int v3_0 = this.getWritableDatabase();
            Object v7_0 = new String[1];
            v7_0[0] = p13;
            com.google.android.gms.internal.zzcjl v14_1 = v3_0.query("queue", new String[] {"rowid", "data"}), "app_id=?", v7_0, 0, 0, "rowid", String.valueOf(p14));
            try {
                if (v14_1.moveToFirst()) {
                    java.util.ArrayList v2_4 = new java.util.ArrayList();
                    int v3_1 = 0;
                    do {
                        android.util.Pair v4_2 = v14_1.getLong(0);
                        int v6_3 = this.zzayl().zzs(v14_1.getBlob(1));
                        if ((!v2_4.isEmpty()) && ((v6_3.length + v3_1) > p15)) {
                            break;
                        }
                        Object v7_7 = com.google.android.gms.internal.zzflj.zzo(v6_3, 0, v6_3.length);
                        com.google.android.gms.internal.zzcoe v8_2 = new com.google.android.gms.internal.zzcoe();
                        v8_2.zza(v7_7);
                        v3_1 += v6_3.length;
                        v2_4.add(android.util.Pair.create(v8_2, Long.valueOf(v4_2)));
                    } while((v14_1.moveToNext()) && (v3_1 <= p15));
                    if (v14_1 != null) {
                        v14_1.close();
                    }
                    return v2_4;
                } else {
                    java.util.List v15_1 = java.util.Collections.emptyList();
                    if (v14_1 != null) {
                        v14_1.close();
                    }
                    return v15_1;
                }
            } catch (Throwable v13_3) {
                if (v14_1 != null) {
                    v14_1.close();
                }
                throw v13_3;
            } catch (java.util.List v15_2) {
                v2_1 = v14_1;
                this.zzayp().zzbau().zze("Error querying bundles. appId", com.google.android.gms.internal.zzcjj.zzjs(p13), v15_2);
                Throwable v13_2 = java.util.Collections.emptyList();
                if (v2_1 != null) {
                    v2_1.close();
                }
                return v13_2;
            }
        } catch (Throwable v13_3) {
            v14_1 = v2_1;
        } catch (java.util.List v15_2) {
        }
    }

Method com.google.android.gms.internal.zzcjf.zzep() calling method android.database.sqlite.SQLiteDatabase.query()

Couldn't retrieve source code

Method com.telemed.ae.SQLiteServices.SQLiteAdapter.excuteRawQuery() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public void excuteRawQuery(String p2)
    {
        this.sqLiteDatabase.compileStatement(p2);
        return;
    }

Method com.telemed.ae.SQLiteServices.SQLiteAdapter.getCount() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public long getCount(String p6, String[][] p7)
    {
        String v2_0 = "";
        int v0_5 = 0;
        while ((v0_5 < p7.length) && (p7.length > 0)) {
            if ((v0_5 != (p7.length - 1)) && (p7.length != 1)) {
                StringBuilder v3_5 = new StringBuilder();
                v3_5.append(v2_0);
                v3_5.append(p7[v0_5][0]);
                v3_5.append(" = ");
                v3_5.append(p7[v0_5][1]);
                v3_5.append(" AND ");
                v2_0 = v3_5.toString();
            } else {
                StringBuilder v3_7 = new StringBuilder();
                v3_7.append(v2_0);
                v3_7.append(p7[v0_5][0]);
                v3_7.append(" = ");
                v3_7.append(p7[v0_5][1]);
                v2_0 = v3_7.toString();
            }
            v0_5++;
        }
        long v6_2;
        if (v2_0 == "") {
            android.database.sqlite.SQLiteDatabase v7_1 = this.sqLiteDatabase;
            int v0_2 = new StringBuilder();
            v0_2.append("SELECT COUNT(*) FROM ");
            v0_2.append(p6);
            v6_2 = v7_1.compileStatement(v0_2.toString());
        } else {
            android.database.sqlite.SQLiteDatabase v7_2 = this.sqLiteDatabase;
            int v0_4 = new StringBuilder();
            v0_4.append("SELECT COUNT(*) FROM ");
            v0_4.append(p6);
            v0_4.append(" WHERE ");
            v0_4.append(v2_0);
            v6_2 = v7_2.compileStatement(v0_4.toString());
        }
        return v6_2.simpleQueryForLong();
    }

Method com.telemed.ae.SQLiteServices.DatabaseHelper.onCreate() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.compileStatement("CREATE TABLE IF NOT EXISTS NotificationList(id INTEGER PRIMARY KEY AUTOINCREMENT,message TEXT)").execute();
        return;
    }

Method com.telemed.ae.SQLiteServices.SQLiteAdapter.makeEmpty() calling method android.database.sqlite.SQLiteDatabase.delete()


    public int makeEmpty(String p3)
    {
        return this.sqLiteDatabase.delete(p3, 0, 0);
    }

Method com.telemed.ae.SQLiteServices.SQLiteAdapter.makeEmpty() calling method android.database.sqlite.SQLiteDatabase.delete()


    public int makeEmpty(String p3, String p4)
    {
        return this.sqLiteDatabase.delete(p3, p4, 0);
    }

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


    protected final void zza(int p8, Throwable p9, byte[] p10)
    {
        this.zzayo().zzwj();
        this.zzyk();
        if (p10 == null) {
            p10 = new byte[0];
        }
        String v1_6 = this.zzjot;
        this.zzjot = 0;
        int v3 = 1;
        if (((p8 != 200) && (p8 != 204)) || (p9 != null)) {
            this.zzayp().zzbba().zze("Network upload failed. Will retry later. code, error", Integer.valueOf(p8), p9);
            this.zzayq().zzjlo.set(this.zzdir.currentTimeMillis());
            if (p8 != 503) {
                if (p8 != 429) {
                    v3 = 0;
                } else {
                }
            }
            if (v3 != 0) {
                this.zzayq().zzjlp.set(this.zzdir.currentTimeMillis());
            }
            this.zzbca();
        } else {
            try {
                this.zzayq().zzjln.set(this.zzdir.currentTimeMillis());
                this.zzayq().zzjlo.set(0);
                this.zzbca();
                this.zzayp().zzbba().zze("Successful upload. Got network response. code, size", Integer.valueOf(p8), Integer.valueOf(p10.length));
                this.zzayj().beginTransaction();
            } catch (long v8_5) {
                this.zzayp().zzbau().zzj("Database error while trying to delete uploaded bundles", v8_5);
                this.zzjoy = this.zzdir.elapsedRealtime();
                this.zzayp().zzbba().zzj("Disable upload, time", Long.valueOf(this.zzjoy));
            }
            long v8_15 = v1_6.iterator();
            while (v8_15.hasNext()) {
                com.google.android.gms.internal.zzcjl v9_24 = ((Long) v8_15.next());
                String v10_1 = this.zzayj();
                String v1_0 = v9_24.longValue();
                v10_1.zzwj();
                v10_1.zzyk();
                com.google.android.gms.internal.zzcjl v9_1 = v10_1.getWritableDatabase();
                String[] v6 = new String[1];
                v6[0] = String.valueOf(v1_0);
                try {
                    if (v9_1.delete("queue", "rowid=?", v6) != 1) {
                        throw new android.database.sqlite.SQLiteException("Deleted fewer rows from queue than expected");
                    } else {
                    }
                } catch (long v8_3) {
                    v10_1.zzayp().zzbau().zzj("Failed to delete a bundle in a queue table", v8_3);
                    throw v8_3;
                }
            }
            this.zzayj().setTransactionSuccessful();
            this.zzayj().endTransaction();
            if ((!this.zzbbs().zzaax()) || (!this.zzbbz())) {
                this.zzjox = -1;
                this.zzbca();
            } else {
                this.zzbby();
            }
            this.zzjoy = 0;
        }
        this.zzjpa = 0;
        this.zzbce();
        return;
    }

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


    final void zzd(com.google.android.gms.internal.zzcif p11)
    {
        this.zzayj().zzjj(p11.packageName);
        com.google.android.gms.internal.zzcjl v0_1 = this.zzayj();
        Object v1_1 = p11.packageName;
        com.google.android.gms.common.internal.zzbq.zzgv(v1_1);
        v0_1.zzwj();
        v0_1.zzyk();
        try {
            com.google.android.gms.internal.zzcjl v2_0 = v0_1.getWritableDatabase();
            String v3_1 = new String[1];
            v3_1[0] = v1_1;
            android.content.Context v5_10 = (((((((((v2_0.delete("apps", "app_id=?", v3_1) + 0) + v2_0.delete("events", "app_id=?", v3_1)) + v2_0.delete("user_attributes", "app_id=?", v3_1)) + v2_0.delete("conditional_properties", "app_id=?", v3_1)) + v2_0.delete("raw_events", "app_id=?", v3_1)) + v2_0.delete("raw_events_metadata", "app_id=?", v3_1)) + v2_0.delete("queue", "app_id=?", v3_1)) + v2_0.delete("audience_filter_values", "app_id=?", v3_1)) + v2_0.delete("main_event_params", "app_id=?", v3_1));
        } catch (com.google.android.gms.internal.zzcjl v2_2) {
            v0_1.zzayp().zzbau().zze("Error resetting analytics data. appId, error", com.google.android.gms.internal.zzcjj.zzjs(v1_1), v2_2);
            this.zzf(this.zza(this.zzaiq, p11.packageName, p11.zzjfl, p11.zzjfv, p11.zzjfx));
            return;
        }
        if (v5_10 <= null) {
            this.zzf(this.zza(this.zzaiq, p11.packageName, p11.zzjfl, p11.zzjfv, p11.zzjfx));
            return;
        } else {
            v0_1.zzayp().zzbba().zze("Reset analytics data. app, records", v1_1, Integer.valueOf(v5_10));
            this.zzf(this.zza(this.zzaiq, p11.packageName, p11.zzjfl, p11.zzjfv, p11.zzjfx));
            return;
        }
    }

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


    public final void zzf(com.google.android.gms.internal.zzcif p19)
    {
        this.zzayo().zzwj();
        this.zzyk();
        com.google.android.gms.common.internal.zzbq.checkNotNull(p19);
        com.google.android.gms.common.internal.zzbq.zzgv(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzjfl)) {
            String v0_8 = this.zzayj().zzjj(p19.packageName);
            if ((v0_8 != null) && ((android.text.TextUtils.isEmpty(v0_8.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzjfl)))) {
                v0_8.zzar(0);
                this.zzayj().zza(v0_8);
                this.zzaym().zzkd(p19.packageName);
            }
            if (p19.zzjfv) {
                long v5_6 = p19.zzjgk;
                if (v5_6 == 0) {
                    v5_6 = this.zzdir.currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_62 = p19.zzjgl;
                if ((v0_62 == null) || (v0_62 == 1)) {
                    v15_3 = v0_62;
                } else {
                    this.zzayp().zzbaw().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName), Integer.valueOf(v0_62));
                    v15_3 = 0;
                }
                this.zzayj().beginTransaction();
                try {
                    String v0_7 = this.zzayj().zzjj(p19.packageName);
                } catch (String v0_59) {
                    this.zzayj().endTransaction();
                    throw v0_59;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzjfl)))) {
                    this.zzayp().zzbaw().zzj("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzcjj.zzjs(v0_7.getAppId()));
                    com.google.android.gms.internal.zzcnl v7_39 = this.zzayj();
                    String v8_21 = v0_7.getAppId();
                    v7_39.zzyk();
                    v7_39.zzwj();
                    com.google.android.gms.common.internal.zzbq.zzgv(v8_21);
                    try {
                        String v0_0 = v7_39.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_21;
                        String v10_10 = (((((((((v0_0.delete("events", "app_id=?", v9_0) + 0) + v0_0.delete("user_attributes", "app_id=?", v9_0)) + v0_0.delete("conditional_properties", "app_id=?", v9_0)) + v0_0.delete("apps", "app_id=?", v9_0)) + v0_0.delete("raw_events", "app_id=?", v9_0)) + v0_0.delete("raw_events_metadata", "app_id=?", v9_0)) + v0_0.delete("event_filters", "app_id=?", v9_0)) + v0_0.delete("property_filters", "app_id=?", v9_0)) + v0_0.delete("audience_filter_values", "app_id=?", v9_0));
                    } catch (String v0_4) {
                        v7_39.zzayp().zzbau().zze("Error deleting application data. appId, error", com.google.android.gms.internal.zzcjj.zzjs(v8_21), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_39.zzayp().zzbba().zze("Deleted application data. app, records", v8_21, Integer.valueOf(v10_10));
                    }
                }
                if (v0_7 != null) {
                    String v0_10;
                    if (v0_7.zzayx() == -2147483648) {
                        if ((v0_7.zzwo() == null) || (v0_7.zzwo().equals(p19.zzina))) {
                            String v0_13;
                            String v8_6;
                            com.google.android.gms.internal.zzcnl v7_13;
                            String v0_12;
                            this = this.zzg(p19);
                            if (v15_3 != null) {
                                if (v15_3 != 1) {
                                    v0_12 = 0;
                                } else {
                                    v0_13 = this.zzayj();
                                    v7_13 = p19.packageName;
                                    v8_6 = "_v";
                                    v0_12 = v0_13.zzae(v7_13, v8_6);
                                }
                            } else {
                                v0_13 = this.zzayj();
                                v7_13 = p19.packageName;
                                v8_6 = "_f";
                            }
                            com.google.android.gms.internal.zzcnl v3_2;
                            if (v0_12 != null) {
                                if (p19.zzjgj) {
                                    v3_2 = new com.google.android.gms.internal.zzcix;
                                    v3_2("_cd", new com.google.android.gms.internal.zzciu(new android.os.Bundle()), "auto", v5_6);
                                    this.zzb(v3_2, p19);
                                }
                            } else {
                                Long v13_0;
                                long v9_13 = (((v5_6 / 3600000) + 1) * 3600000);
                                if (v15_3 != null) {
                                    v13_0 = 1;
                                    if (v15_3 == 1) {
                                        String v0_17 = new com.google.android.gms.internal.zzcnl;
                                        v0_17("_fvt", v5_6, Long.valueOf(v9_13), "auto");
                                        this.zzb(v0_17, p19);
                                        this.zzayo().zzwj();
                                        this.zzyk();
                                        String v0_20 = new android.os.Bundle();
                                        v0_20.putLong("_c", 1);
                                        v0_20.putLong("_r", 1);
                                        com.google.android.gms.internal.zzcnl v3_6 = new com.google.android.gms.internal.zzcix;
                                        v3_6("_v", new com.google.android.gms.internal.zzciu(v0_20), "auto", v5_6);
                                        this.zzb(v3_6, p19);
                                    }
                                } else {
                                    String v0_21 = new com.google.android.gms.internal.zzcnl;
                                    v13_0 = 1;
                                    v0_21("_fot", v5_6, Long.valueOf(v9_13), "auto");
                                    this.zzb(v0_21, p19);
                                    this.zzayo().zzwj();
                                    this.zzyk();
                                    android.os.Bundle v15_2 = new android.os.Bundle();
                                    v15_2.putLong("_c", 1);
                                    v15_2.putLong("_r", 1);
                                    v15_2.putLong("_uwa", 0);
                                    v15_2.putLong("_pfo", 0);
                                    v15_2.putLong("_sys", 0);
                                    v15_2.putLong("_sysu", 0);
                                    if (this.zzaiq.getPackageManager() != null) {
                                        try {
                                            String v0_34 = com.google.android.gms.internal.zzbih.zzdd(this.zzaiq).getPackageInfo(p19.packageName, 0);
                                        } catch (String v0_35) {
                                            this.zzayp().zzbau().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName), v0_35);
                                            v0_34 = 0;
                                        }
                                        if ((v0_34 != null) && (v0_34.firstInstallTime != 0)) {
                                            String v0_38;
                                            if (v0_34.firstInstallTime == v0_34.lastUpdateTime) {
                                                v0_38 = 1;
                                            } else {
                                                v15_2.putLong("_uwa", 1);
                                                v0_38 = 0;
                                            }
                                            long v9_22;
                                            String v12_10 = new com.google.android.gms.internal.zzcnl;
                                            if (v0_38 == null) {
                                                v9_22 = 0;
                                            } else {
                                                v9_22 = 1;
                                            }
                                            com.google.android.gms.internal.zzcnl v3_7 = v12_10;
                                            v12_10("_fi", v5_6, Long.valueOf(v9_22), "auto");
                                            this.zzb(v3_7, p19);
                                        }
                                        try {
                                            String v0_43 = com.google.android.gms.internal.zzbih.zzdd(this.zzaiq).getApplicationInfo(p19.packageName, 0);
                                        } catch (String v0_44) {
                                            this.zzayp().zzbau().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName), v0_44);
                                            v0_43 = 0;
                                        }
                                        if (v0_43 != null) {
                                            if ((v0_43.flags & 1) != 0) {
                                                v15_2.putLong("_sys", 1);
                                            }
                                            if ((v0_43.flags & 128) != 0) {
                                                v15_2.putLong("_sysu", 1);
                                            }
                                        }
                                    } else {
                                        this.zzayp().zzbau().zzj("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcjj.zzjs(p19.packageName));
                                    }
                                    String v0_51 = this.zzayj();
                                    com.google.android.gms.internal.zzcnl v3_14 = p19.packageName;
                                    com.google.android.gms.common.internal.zzbq.zzgv(v3_14);
                                    v0_51.zzwj();
                                    v0_51.zzyk();
                                    com.google.android.gms.internal.zzcnl v3_15 = v0_51.zzal(v3_14, "first_open_count");
                                    if (v3_15 >= 0) {
                                        v15_2.putLong("_pfo", v3_15);
                                    }
                                    String v0_55 = new com.google.android.gms.internal.zzcix;
                                    v0_55("_f", new com.google.android.gms.internal.zzciu(v15_2), "auto", v5_6);
                                    this.zzb(v0_55, p19);
                                }
                                String v0_58 = new android.os.Bundle();
                                v0_58.putLong("_et", v13_0);
                                v3_2 = new com.google.android.gms.internal.zzcix;
                                v3_2("_e", new com.google.android.gms.internal.zzciu(v0_58), "auto", v5_6);
                            }
                            this.zzayj().setTransactionSuccessful();
                            this.zzayj().endTransaction();
                            return;
                        } else {
                            com.google.android.gms.internal.zzcnl v7_7 = new android.os.Bundle();
                            v7_7.putString("_pv", v0_7.zzwo());
                            v0_10 = new com.google.android.gms.internal.zzcix;
                            v0_10("_au", new com.google.android.gms.internal.zzciu(v7_7), "auto", v5_6);
                        }
                    } else {
                        if (v0_7.zzayx() == p19.zzjfr) {
                        } else {
                            com.google.android.gms.internal.zzcnl v7_11 = new android.os.Bundle();
                            v7_11.putString("_pv", v0_7.zzwo());
                            v0_10 = new com.google.android.gms.internal.zzcix;
                            v0_10("_au", new com.google.android.gms.internal.zzciu(v7_11), "auto", v5_6);
                        }
                    }
                    this.zzb(v0_10, p19);
                }
            } else {
                this.zzg(p19);
                return;
            }
        } else {
            return;
        }
    }

Method com.google.android.gms.internal.zzdao.zze() calling method android.database.sqlite.SQLiteDatabase.delete()


    private final void zze(String[] p8)
    {
        if ((p8 != null) && (p8.length != 0)) {
            String v0_5 = this.zzlq("Error opening database for deleteHits.");
            if (v0_5 != null) {
                int v2 = 1;
                String v3_1 = new Object[1];
                v3_1[0] = android.text.TextUtils.join(",", java.util.Collections.nCopies(p8.length, "?"));
                try {
                    v0_5.delete("gtm_hits", String.format("HIT_ID in (%s)", v3_1), p8);
                } catch (String v8_2) {
                    String v8_4 = String.valueOf(v8_2.getMessage());
                    if (v8_4.length() == 0) {
                        String v8_6 = new String("Error deleting hits: ");
                    } else {
                        v8_6 = "Error deleting hits: ".concat(v8_4);
                    }
                    com.google.android.gms.internal.zzdal.zzcz(v8_6);
                }
                if (this.zzmp("gtm_hits") != 0) {
                    v2 = 0;
                } else {
                }
                this.zzkxg.zzbz(v2);
                return;
            } else {
                return;
            }
        }
        return;
    }

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

Couldn't retrieve source code

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


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

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


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

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


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

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


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

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


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

Method com.google.android.gms.internal.zzedk.zzbm() calling method android.database.sqlite.SQLiteDatabase.delete()


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

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


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

Method com.google.android.gms.internal.zzedk.zzbvn() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzbvn()
    {
        this.zzbvo();
        com.google.android.gms.internal.zzemm v0_3 = System.currentTimeMillis();
        Object[] v2_4 = this.zzmxy.delete("writes", 0, 0);
        Long v5_0 = (System.currentTimeMillis() - v0_3);
        if (this.zzmxz.zzcbu()) {
            com.google.android.gms.internal.zzemm v0_2 = this.zzmxz;
            Object[] v3_1 = new Object[2];
            v3_1[0] = Integer.valueOf(v2_4);
            v3_1[1] = Long.valueOf(v5_0);
            Object[] v2_2 = new Object[0];
            v0_2.zzb(String.format("Deleted %d (all) write(s) in %dms", v3_1), 0, v2_2);
        }
        return;
    }

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


    private final declared_synchronized void zzb(java.util.List p11, long p12)
    {
        try {
            long v0_1 = this.zzata.currentTimeMillis();
            this.zzbh(v0_1);
            String v3_0 = ((this.zzbgg() - this.zzkow) + p11.size());
        } catch (Throwable v11_1) {
            this.zzbgh();
            throw v11_1;
        } catch (Throwable v11_2) {
            throw v11_2;
        }
        if (v3_0 > null) {
            String v2_0 = this.zzez(v3_0);
            String v3_1 = v2_0.size();
            String v5_1 = new StringBuilder(64);
            v5_1.append("DataLayer store full, deleting ");
            v5_1.append(v3_1);
            v5_1.append(" entries to make room.");
            com.google.android.gms.tagmanager.zzdj.zzcy(v5_1.toString());
            int v4_2 = new String[0];
            String v2_2 = ((String[]) v2_0.toArray(v4_2));
            if (v2_2 != null) {
                if (v2_2.length != 0) {
                    int v4_5 = this.zzlq("Error opening database for deleteEntries.");
                    if (v4_5 != 0) {
                        Object[] v6_1 = new Object[2];
                        v6_1[0] = "ID";
                        v6_1[1] = android.text.TextUtils.join(",", java.util.Collections.nCopies(v2_2.length, "?"));
                        v4_5.delete("datalayer", String.format("%s in (%s)", v6_1), v2_2);
                    }
                } else {
                }
            }
        }
        this.zzc(p11, (v0_1 + p12));
        this.zzbgh();
        return;
    }

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


    private final void zzbh(long p6)
    {
        StringBuilder v0_3 = this.zzlq("Error opening database for deleteOlderThan.");
        if (v0_3 != null) {
            try {
                String[] v3_1 = new String[1];
                v3_1[0] = Long.toString(p6);
                String v6_2 = v0_3.delete("datalayer", "expires <= ?", v3_1);
                StringBuilder v0_2 = new StringBuilder(33);
                v0_2.append("Deleted ");
                v0_2.append(v6_2);
                v0_2.append(" expired items");
                com.google.android.gms.tagmanager.zzdj.v(v0_2.toString());
                return;
            } catch (android.database.sqlite.SQLiteException) {
                com.google.android.gms.tagmanager.zzdj.zzcz("Error deleting old entries.");
                return;
            }
        } else {
            return;
        }
    }

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


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

Method com.google.android.gms.tagmanager.zzec.zze() calling method android.database.sqlite.SQLiteDatabase.delete()


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

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


    public final void zzb(long p9, String p11)
    {
        android.database.sqlite.SQLiteDatabase v0_3 = this.zzata.currentTimeMillis();
        if (v0_3 > (this.zzkre + 86400000)) {
            this.zzkre = v0_3;
            android.database.sqlite.SQLiteDatabase v0_2 = this.zzlq("Error opening database for deleteStaleHits.");
            if (v0_2 != null) {
                android.content.ContentValues v1_3;
                String[] v7 = new String[1];
                v7[0] = Long.toString((this.zzata.currentTimeMillis() - 1.280618154e-314));
                v0_2.delete("gtm_hits", "HIT_TIME < ?", v7);
                if (this.zzbhe() != 0) {
                    v1_3 = 0;
                } else {
                    v1_3 = 1;
                }
                this.zzkrc.zzbz(v1_3);
            }
        }
        android.database.sqlite.SQLiteDatabase v0_7 = ((this.zzbhe() - this.zzkrf) + 1);
        if (v0_7 > null) {
            android.database.sqlite.SQLiteDatabase v0_8 = this.zzfe(v0_7);
            android.content.ContentValues v1_5 = v0_8.size();
            StringBuilder v4_5 = new StringBuilder(51);
            v4_5.append("Store full, deleting ");
            v4_5.append(v1_5);
            v4_5.append(" hits to make room.");
            com.google.android.gms.tagmanager.zzdj.v(v4_5.toString());
            android.content.ContentValues v1_8 = new String[0];
            this.zze(((String[]) v0_8.toArray(v1_8)));
        }
        android.database.sqlite.SQLiteDatabase v0_12 = this.zzlq("Error opening database for putHit");
        if (v0_12 != null) {
            android.content.ContentValues v1_10 = new android.content.ContentValues();
            v1_10.put("hit_time", Long.valueOf(p9));
            v1_10.put("hit_url", p11);
            v1_10.put("hit_first_send_time", Integer.valueOf(0));
            try {
                v0_12.insert("gtm_hits", 0, v1_10);
                this.zzkrc.zzbz(0);
                return;
            } catch (android.database.sqlite.SQLiteException) {
                com.google.android.gms.tagmanager.zzdj.zzcz("Error storing hit");
            }
        }
        return;
    }

Method com.google.android.gms.internal.zzart.zzs() calling method android.database.sqlite.SQLiteDatabase.delete()


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

Method com.google.android.gms.internal.zzart.zzyz() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final int zzyz()
    {
        com.google.android.gms.analytics.zzk.zzwj();
        this.zzyk();
        if (this.zzdzy.zzu(86400000)) {
            this.zzdzy.start();
            this.zzea("Deleting stale hits (if any)");
            int v0_1 = this.getWritableDatabase();
            String[] v6_1 = new String[1];
            v6_1[0] = Long.toString((this.zzxx().currentTimeMillis() - 1.280618154e-314));
            int v0_3 = v0_1.delete("hits2", "hit_time < ?", v6_1);
            this.zza("Deleted stale hits, count", Integer.valueOf(v0_3));
            return v0_3;
        } else {
            return 0;
        }
    }

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


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

Method com.google.android.gms.internal.zzarw.zzxr() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzxr()
    {
        com.google.android.gms.analytics.zzk.zzwj();
        this.zzyk();
        this.zzea("Delete all hits from local store");
        try {
            String v0_7 = this.zzeab;
            com.google.android.gms.analytics.zzk.zzwj();
            v0_7.zzyk();
            v0_7.getWritableDatabase().delete("hits2", 0, 0);
            String v0_0 = this.zzeab;
            com.google.android.gms.analytics.zzk.zzwj();
            v0_0.zzyk();
            v0_0.getWritableDatabase().delete("properties", 0, 0);
            this.zzzk();
        } catch (String v0_3) {
            this.zzd("Failed to delete hits from store", v0_3);
        }
        this.zzzh();
        if (this.zzeae.zzyv()) {
            this.zzea("Device service unavailable. Can\'t clear hits stored on the device service.");
        }
        return;
    }

Method com.google.android.gms.internal.zzcil.zze() calling method android.database.sqlite.SQLiteDatabase.delete()


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

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


    final void zza(String p13, com.google.android.gms.internal.zzcnr[] p14)
    {
        this.zzyk();
        this.zzwj();
        com.google.android.gms.common.internal.zzbq.zzgv(p13);
        com.google.android.gms.common.internal.zzbq.checkNotNull(p14);
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        v0.beginTransaction();
        try {
            this.zzyk();
            this.zzwj();
            com.google.android.gms.common.internal.zzbq.zzgv(p13);
            java.util.ArrayList v1_0 = this.getWritableDatabase();
            String v5_5 = new String[1];
            int v6 = 0;
            v5_5[0] = p13;
            v1_0.delete("property_filters", "app_id=?", v5_5);
            String v5_6 = new String[1];
            v5_6[0] = p13;
            v1_0.delete("event_filters", "app_id=?", v5_6);
            java.util.ArrayList v1_1 = p14.length;
            int v2_1 = 0;
        } catch (Throwable v13_1) {
            v0.endTransaction();
            throw v13_1;
        }
        while (v2_1 < v1_1) {
            android.database.sqlite.SQLiteDatabase v3_7 = p14[v2_1];
            this.zzyk();
            this.zzwj();
            com.google.android.gms.common.internal.zzbq.zzgv(p13);
            com.google.android.gms.common.internal.zzbq.checkNotNull(v3_7);
            com.google.android.gms.common.internal.zzbq.checkNotNull(v3_7.zzjsv);
            com.google.android.gms.common.internal.zzbq.checkNotNull(v3_7.zzjsu);
            if (v3_7.zzjst != null) {
                String v5_11 = v3_7.zzjst.intValue();
                int v7_2 = v3_7.zzjsv;
                int v9_2 = 0;
                while (v9_2 < v7_2.length) {
                    if (v7_2[v9_2].zzjsx != null) {
                        v9_2++;
                    } else {
                        String v5_2 = this.zzayp().zzbaw();
                        int v7_0 = "Event filter with no ID. Audience definition ignored. appId, audienceId";
                        String v8_0 = com.google.android.gms.internal.zzcjj.zzjs(p13);
                        android.database.sqlite.SQLiteDatabase v3_0 = v3_7.zzjst;
                    }
                    v5_2.zze(v7_0, v8_0, v3_0);
                }
                int v7_3 = v3_7.zzjsu;
                int v9_1 = 0;
                while (v9_1 < v7_3.length) {
                    if (v7_3[v9_1].zzjsx != null) {
                        v9_1++;
                    } else {
                        v5_2 = this.zzayp().zzbaw();
                        v7_0 = "Property filter with no ID. Audience definition ignored. appId, audienceId";
                        v8_0 = com.google.android.gms.internal.zzcjj.zzjs(p13);
                        v3_0 = v3_7.zzjst;
                    }
                }
                int v7_4 = v3_7.zzjsv;
                int v9_3 = 0;
                while (v9_3 < v7_4.length) {
                    if (this.zza(p13, v5_11, v7_4[v9_3])) {
                        v9_3++;
                    } else {
                        int v7_5 = 0;
                    }
                    if (v7_5 != 0) {
                        android.database.sqlite.SQLiteDatabase v3_8 = v3_7.zzjsu;
                        int v9_4 = 0;
                        while (v9_4 < v3_8.length) {
                            if (this.zza(p13, v5_11, v3_8[v9_4])) {
                                v9_4++;
                            } else {
                                v7_5 = 0;
                                break;
                            }
                        }
                    }
                    if (v7_5 != 0) {
                        v2_1++;
                    } else {
                        this.zzyk();
                        this.zzwj();
                        com.google.android.gms.common.internal.zzbq.zzgv(p13);
                        android.database.sqlite.SQLiteDatabase v3_9 = this.getWritableDatabase();
                        boolean v10_8 = new String[2];
                        v10_8[0] = p13;
                        v10_8[1] = String.valueOf(v5_11);
                        v3_9.delete("property_filters", "app_id=? and audience_id=?", v10_8);
                        int v9_0 = new String[2];
                        v9_0[0] = p13;
                        v9_0[1] = String.valueOf(v5_11);
                        v3_9.delete("event_filters", "app_id=? and audience_id=?", v9_0);
                    }
                }
                v7_5 = 1;
            } else {
                this.zzayp().zzbaw().zzj("Audience with no ID. appId", com.google.android.gms.internal.zzcjj.zzjs(p13));
            }
        }
        java.util.ArrayList v1_3 = new java.util.ArrayList();
        int v2_3 = p14.length;
        while (v6 < v2_3) {
            v1_3.add(p14[v6].zzjst);
            v6++;
        }
        this.zze(p13, v1_3);
        v0.setTransactionSuccessful();
        v0.endTransaction();
        return;
    }

Method com.google.android.gms.internal.zzcil.zzaf() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzaf(String p6, String p7)
    {
        com.google.android.gms.common.internal.zzbq.zzgv(p6);
        com.google.android.gms.common.internal.zzbq.zzgv(p7);
        this.zzwj();
        this.zzyk();
        try {
            android.database.sqlite.SQLiteException v0_3 = this.getWritableDatabase();
            com.google.android.gms.internal.zzcjh v3_2 = new String[2];
            v3_2[0] = p6;
            v3_2[1] = p7;
            this.zzayp().zzbba().zzj("Deleted user attribute rows", Integer.valueOf(v0_3.delete("user_attributes", "app_id=? and name=?", v3_2)));
            return;
        } catch (android.database.sqlite.SQLiteException v0_2) {
            this.zzayp().zzbau().zzd("Error deleting user attribute. appId", com.google.android.gms.internal.zzcjj.zzjs(p6), this.zzayk().zzjr(p7), v0_2);
            return;
        }
    }

Method com.google.android.gms.internal.zzcil.zzai() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final int zzai(String p7, String p8)
    {
        com.google.android.gms.common.internal.zzbq.zzgv(p7);
        com.google.android.gms.common.internal.zzbq.zzgv(p8);
        this.zzwj();
        this.zzyk();
        try {
            android.database.sqlite.SQLiteException v1_2 = this.getWritableDatabase();
            com.google.android.gms.internal.zzcjh v4_0 = new String[2];
            v4_0[0] = p7;
            v4_0[1] = p8;
            return v1_2.delete("conditional_properties", "app_id=? and name=?", v4_0);
        } catch (android.database.sqlite.SQLiteException v1_1) {
            this.zzayp().zzbau().zzd("Error deleting conditional property", com.google.android.gms.internal.zzcjj.zzjs(p7), this.zzayk().zzjr(p8), v1_1);
            return 0;
        }
    }

Method com.google.android.gms.internal.zzcil.zzai() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzai(java.util.List p5)
    {
        com.google.android.gms.common.internal.zzbq.checkNotNull(p5);
        this.zzwj();
        this.zzyk();
        Integer v0_4 = new StringBuilder("rowid in (");
        com.google.android.gms.internal.zzcjl v1_6 = 0;
        while (v1_6 < p5.size()) {
            if (v1_6 != null) {
                v0_4.append(",");
            }
            v0_4.append(((Long) p5.get(v1_6)).longValue());
            v1_6++;
        }
        v0_4.append(")");
        Integer v0_1 = this.getWritableDatabase().delete("raw_events", v0_4.toString(), 0);
        if (v0_1 != p5.size()) {
            this.zzayp().zzbau().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v0_1), Integer.valueOf(p5.size()));
        }
        return;
    }

Method com.google.android.gms.internal.zzcil.zzazy() calling method android.database.sqlite.SQLiteDatabase.delete()


    final void zzazy()
    {
        this.zzwj();
        this.zzyk();
        if (this.zzbae()) {
            Integer v0_11 = this.zzayq().zzjlq.get();
            String v2_1 = this.zzxx().elapsedRealtime();
            if (Math.abs((v2_1 - v0_11)) > ((Long) com.google.android.gms.internal.zzciz.zzjjl.get()).longValue()) {
                this.zzayq().zzjlq.set(v2_1);
                this.zzwj();
                this.zzyk();
                if (this.zzbae()) {
                    Integer v0_6 = this.getWritableDatabase();
                    com.google.android.gms.internal.zzcjl v1_1 = new String[2];
                    v1_1[0] = String.valueOf(this.zzxx().currentTimeMillis());
                    v1_1[1] = String.valueOf(com.google.android.gms.internal.zzcik.zzazs());
                    Integer v0_7 = v0_6.delete("queue", "abs(bundle_end_timestamp - ?) > cast(? as integer)", v1_1);
                    if (v0_7 > null) {
                        this.zzayp().zzbba().zzj("Deleted stale rows. rowsDeleted", Integer.valueOf(v0_7));
                    }
                }
            }
            return;
        } else {
            return;
        }
    }

Method com.google.android.gms.internal.zzcil.zzjk() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final long zzjk(String p7)
    {
        com.google.android.gms.common.internal.zzbq.zzgv(p7);
        this.zzwj();
        this.zzyk();
        try {
            long v0_4 = this.getWritableDatabase();
            com.google.android.gms.internal.zzcjl v1_2 = String.valueOf(Math.max(0, Math.min(1000000, this.zzayr().zzb(p7, com.google.android.gms.internal.zzciz.zzjjc))));
            String[] v5_1 = new String[2];
            v5_1[0] = p7;
            v5_1[1] = v1_2;
            return ((long) v0_4.delete("raw_events", "rowid in (select rowid from raw_events where app_id=? order by rowid desc limit -1 offset ?)", v5_1));
        } catch (long v0_2) {
            this.zzayp().zzbau().zze("Error deleting over the limit events. appId", com.google.android.gms.internal.zzcjj.zzjs(p7), v0_2);
            return 0;
        }
    }

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


    private final boolean zza(String p14, com.google.android.gms.internal.zzcix p15)
    {
        String v3_1;
        Object v0_6 = p15.zzjhr.getString("currency");
        if (!"ecommerce_purchase".equals(p15.name)) {
            v3_1 = p15.zzjhr.getLong("value").longValue();
        } else {
            String v3_6 = (p15.zzjhr.getDouble("value").doubleValue() * 1000000.0);
            if (v3_6 == 0) {
                String v3_9 = ((double) p15.zzjhr.getLong("value").longValue());
                Double.isNaN(v3_9);
                v3_6 = (v3_9 * 1000000.0);
            }
            if ((v3_6 > 9.223372036854776e+18) || (v3_6 < -9.223372036854776e+18)) {
                this.zzayp().zzbaw().zze("Data lost. Currency value is too big. appId", com.google.android.gms.internal.zzcjj.zzjs(p14), Double.valueOf(v3_6));
                return 0;
            } else {
                v3_1 = Math.round(v3_6);
            }
        }
        if (!android.text.TextUtils.isEmpty(v0_6)) {
            Object v0_8 = v0_6.toUpperCase(java.util.Locale.US);
            if (v0_8.matches("[A-Z]{3}")) {
                Object v0_11;
                String v1_23 = String.valueOf("_ltv_");
                Object v0_9 = String.valueOf(v0_8);
                if (v0_9.length() == 0) {
                    v0_11 = new String(v1_23);
                } else {
                    v0_11 = v1_23.concat(v0_9);
                }
                Object v0_1;
                int v9_1 = v0_11;
                Object v0_13 = this.zzayj().zzag(p14, v9_1);
                if ((v0_13 != null) && ((v0_13.value instanceof Long))) {
                    Object v2_5 = new com.google.android.gms.internal.zzcnn;
                    v2_5(p14, p15.zzjgm, v9_1, this.zzdir.currentTimeMillis(), Long.valueOf((((Long) v0_13.value).longValue() + v3_1)));
                    v0_1 = v2_5;
                } else {
                    Object v0_2 = this.zzayj();
                    String v1_4 = (this.zzjns.zzb(p14, com.google.android.gms.internal.zzciz.zzjjr) - 1);
                    com.google.android.gms.common.internal.zzbq.zzgv(p14);
                    v0_2.zzwj();
                    v0_2.zzyk();
                    try {
                        com.google.android.gms.internal.zzcno v6_1 = v0_2.getWritableDatabase();
                        int v8_1 = new String[3];
                        v8_1[0] = p14;
                        v8_1[1] = p14;
                        v8_1[2] = String.valueOf(v1_4);
                        v6_1.execSQL("delete from user_attributes where app_id=? and name in (select name from user_attributes where app_id=? and name like \'_ltv_%\' order by set_timestamp desc limit ?,10);", v8_1);
                    } catch (String v1_6) {
                        v0_2.zzayp().zzbau().zze("Error pruning currencies. appId", com.google.android.gms.internal.zzcjj.zzjs(p14), v1_6);
                    }
                    v0_1 = new com.google.android.gms.internal.zzcnn;
                    v0_1(p14, p15.zzjgm, v9_1, this.zzdir.currentTimeMillis(), Long.valueOf(v3_1));
                }
                if (!this.zzayj().zza(v0_1)) {
                    this.zzayp().zzbau().zzd("Too many unique user properties are set. Ignoring user property. appId", com.google.android.gms.internal.zzcjj.zzjs(p14), this.zzayk().zzjr(v0_1.name), v0_1.value);
                    this.zzayl().zza(p14, 9, 0, 0, 0);
                }
            }
        }
        return 1;
    }

Method com.google.android.gms.internal.zzckj.zzg() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private final boolean zzg(String p53, long p54)
    {
        this.zzayj().beginTransaction();
        try {
            android.database.sqlite.SQLiteException v3_1 = 0;
            com.google.android.gms.internal.zzcjl v2_3 = new com.google.android.gms.internal.zzckj$zza(this, 0);
            String v4_55 = this.zzayj();
            com.google.android.gms.internal.zzcjl v5_98 = this.zzjox;
            com.google.android.gms.common.internal.zzbq.checkNotNull(v2_3);
            v4_55.zzwj();
            v4_55.zzyk();
            try {
                String v22;
                int v23;
                long v15_2 = v4_55.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        int v12_22;
                        if (v5_98 == -1) {
                            v12_22 = new String[] {0});
                        } else {
                            android.database.sqlite.SQLiteException v3_4 = new String[2];
                            v3_4[0] = 0;
                            v3_4[1] = String.valueOf(v5_98);
                            v12_22 = v3_4;
                        }
                        android.database.sqlite.SQLiteException v3_11;
                        if (v5_98 == -1) {
                            v3_11 = "";
                        } else {
                            v3_11 = " and rowid <= ?";
                        }
                        Boolean v14_11 = new StringBuilder((String.valueOf(v3_11).length() + 84));
                        v14_11.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_11.append(v3_11);
                        v14_11.append(" order by rowid limit 1;");
                        v3_1 = v15_2.rawQuery(v14_11.toString(), v12_22);
                        if (v3_1.moveToFirst()) {
                            com.google.android.gms.internal.zzcit v13_13 = v3_1.getString(0);
                            v3_1.close();
                            v23 = v3_1;
                            v22 = v13_13;
                            v3_1 = 0;
                            try {
                                int v12_6 = new String[2];
                                v12_6[0] = v3_1;
                                v12_6[1] = v22;
                                android.database.sqlite.SQLiteDatabase v25 = v15_2;
                                long v15_1 = v15_2.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_6, 0, 0, "rowid", "2");
                                try {
                                    if (v15_1.moveToFirst()) {
                                        int v12_9 = v15_1.getBlob(0);
                                        int v12_10 = com.google.android.gms.internal.zzflj.zzo(v12_9, 0, v12_9.length);
                                        com.google.android.gms.internal.zzcit v13_5 = new com.google.android.gms.internal.zzcoe();
                                        try {
                                            v13_5.zza(v12_10);
                                        } catch (java.io.IOException v0_6) {
                                            int v9_0 = v15_1;
                                            v4_55.zzayp().zzbau().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzcjj.zzjs(v3_1), v0_6);
                                            if (v9_0 == 0) {
                                                android.database.sqlite.SQLiteException v3_8;
                                                if (v2_3.zzaoz == null) {
                                                    v3_8 = 1;
                                                } else {
                                                    if (!v2_3.zzaoz.isEmpty()) {
                                                        v3_8 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_8 != null) {
                                                    this.zzayj().setTransactionSuccessful();
                                                    this.zzayj().endTransaction();
                                                    return 0;
                                                } else {
                                                    android.database.sqlite.SQLiteException v3_9 = v2_3.zzjpe;
                                                    String v4_4 = new com.google.android.gms.internal.zzcob[v2_3.zzaoz.size()];
                                                    v3_9.zzjuq = v4_4;
                                                    String v4_6 = this.zzjns.zzjh(v3_9.zzcm);
                                                    int v9_11 = 0;
                                                    int v12_1 = 0;
                                                    com.google.android.gms.internal.zzcit v13_1 = 0;
                                                    Boolean v14_0 = 0;
                                                    while (v9_11 < v2_3.zzaoz.size()) {
                                                        long v44_0;
                                                        com.google.android.gms.internal.zzcit v7_39 = ((com.google.android.gms.internal.zzcob) v2_3.zzaoz.get(v9_11));
                                                        if (!this.zzaym().zzan(v2_3.zzjpe.zzcm, v7_39.name)) {
                                                            com.google.android.gms.internal.zzcjl v5_103 = this.zzaym().zzao(v2_3.zzjpe.zzcm, v7_39.name);
                                                            if (v5_103 != null) {
                                                                if (v7_39.zzjui == null) {
                                                                    Boolean v8_53 = new com.google.android.gms.internal.zzcoc[0];
                                                                    v7_39.zzjui = v8_53;
                                                                }
                                                                String v6_33 = v7_39.zzjui;
                                                                Boolean v8_39 = v6_33.length;
                                                                int v10_18 = 0;
                                                                com.google.android.gms.internal.zzcil v11_6 = 0;
                                                                long v18_0 = 0;
                                                                while (v10_18 < v8_39) {
                                                                    int v32_1 = v8_39;
                                                                    Boolean v8_38 = v6_33[v10_18];
                                                                    int v33_1 = v6_33;
                                                                    int v34_1 = v12_1;
                                                                    if (!"_c".equals(v8_38.name)) {
                                                                        if ("_r".equals(v8_38.name)) {
                                                                            v8_38.zzjum = Long.valueOf(1);
                                                                            v18_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v8_38.zzjum = Long.valueOf(1);
                                                                        v11_6 = 1;
                                                                    }
                                                                    v10_18++;
                                                                    v8_39 = v32_1;
                                                                    v6_33 = v33_1;
                                                                    v12_1 = v34_1;
                                                                }
                                                                int v34_3 = v12_1;
                                                                if ((v11_6 == null) && (v5_103 != null)) {
                                                                    this.zzayp().zzbba().zzj("Marking event as conversion", this.zzayk().zzjp(v7_39.name));
                                                                    String v6_2 = ((com.google.android.gms.internal.zzcoc[]) java.util.Arrays.copyOf(v7_39.zzjui, (v7_39.zzjui.length + 1)));
                                                                    Boolean v8_4 = new com.google.android.gms.internal.zzcoc();
                                                                    v8_4.name = "_c";
                                                                    v8_4.zzjum = Long.valueOf(1);
                                                                    v6_2[(v6_2.length - 1)] = v8_4;
                                                                    v7_39.zzjui = v6_2;
                                                                }
                                                                if (v18_0 == 0) {
                                                                    this.zzayp().zzbba().zzj("Marking event as real-time", this.zzayk().zzjp(v7_39.name));
                                                                    String v6_7 = ((com.google.android.gms.internal.zzcoc[]) java.util.Arrays.copyOf(v7_39.zzjui, (v7_39.zzjui.length + 1)));
                                                                    Boolean v8_10 = new com.google.android.gms.internal.zzcoc();
                                                                    v8_10.name = "_r";
                                                                    v8_10.zzjum = Long.valueOf(1);
                                                                    v6_7[(v6_7.length - 1)] = v8_10;
                                                                    v7_39.zzjui = v6_7;
                                                                }
                                                                v44_0 = v9_11;
                                                                if (this.zzayj().zza(this.zzbbx(), v2_3.zzjpe.zzcm, 0, 0, 0, 0, 1).zzjhi <= ((long) this.zzjns.zzje(v2_3.zzjpe.zzcm))) {
                                                                    v12_1 = 1;
                                                                } else {
                                                                    String v6_14 = 0;
                                                                    while (v6_14 < v7_39.zzjui.length) {
                                                                        if (!"_r".equals(v7_39.zzjui[v6_14].name)) {
                                                                            v6_14++;
                                                                        } else {
                                                                            Boolean v8_21 = new com.google.android.gms.internal.zzcoc[(v7_39.zzjui.length - 1)];
                                                                            if (v6_14 > null) {
                                                                                System.arraycopy(v7_39.zzjui, 0, v8_21, 0, v6_14);
                                                                            }
                                                                            if (v6_14 < v8_21.length) {
                                                                                System.arraycopy(v7_39.zzjui, (v6_14 + 1), v8_21, v6_14, (v8_21.length - v6_14));
                                                                            }
                                                                            v7_39.zzjui = v8_21;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_1 = v34_3;
                                                                }
                                                                if ((com.google.android.gms.internal.zzcno.zzkh(v7_39.name)) && ((v5_103 != null) && (this.zzayj().zza(this.zzbbx(), v2_3.zzjpe.zzcm, 0, 0, 1, 0, 0).zzjhg > ((long) this.zzjns.zzb(v2_3.zzjpe.zzcm, com.google.android.gms.internal.zzciz.zzjja))))) {
                                                                    this.zzayp().zzbaw().zzj("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm));
                                                                    com.google.android.gms.internal.zzcjl v5_6 = v7_39.zzjui;
                                                                    String v6_18 = v5_6.length;
                                                                    Boolean v8_28 = 0;
                                                                    int v9_10 = 0;
                                                                    int v10_17 = 0;
                                                                    while (v8_28 < v6_18) {
                                                                        com.google.android.gms.internal.zzcil v11_5 = v5_6[v8_28];
                                                                        if (!"_c".equals(v11_5.name)) {
                                                                            if ("_err".equals(v11_5.name)) {
                                                                                v9_10 = 1;
                                                                            }
                                                                        } else {
                                                                            v10_17 = v11_5;
                                                                        }
                                                                        v8_28++;
                                                                    }
                                                                    if ((v9_10 == 0) || (v10_17 == 0)) {
                                                                        if (v10_17 == 0) {
                                                                            this.zzayp().zzbau().zzj("Did not find conversion parameter. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm));
                                                                        } else {
                                                                            v10_17.name = "_err";
                                                                            v10_17.zzjum = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.zzcjl v5_12 = v7_39.zzjui;
                                                                        Boolean v8_32 = new com.google.android.gms.internal.zzcoc[1];
                                                                        v8_32[0] = v10_17;
                                                                        v7_39.zzjui = ((com.google.android.gms.internal.zzcoc[]) com.google.android.gms.common.util.zzb.zza(v5_12, v8_32));
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzayl();
                                                                if (!com.google.android.gms.internal.zzcno.zzku(v7_39.name)) {
                                                                    v44_0 = v9_11;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v4_6 != null) && ("_e".equals(v7_39.name))) {
                                                                com.google.android.gms.internal.zzcjl v5_25;
                                                                Boolean v8_35;
                                                                String v6_23;
                                                                if (v7_39.zzjui == null) {
                                                                    v5_25 = this.zzayp().zzbaw();
                                                                    v6_23 = "Engagement event does not contain any parameters. appId";
                                                                    v8_35 = com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm);
                                                                } else {
                                                                    if (v7_39.zzjui.length != 0) {
                                                                        this.zzayl();
                                                                        com.google.android.gms.internal.zzcjl v5_22 = ((Long) com.google.android.gms.internal.zzcno.zzb(v7_39, "_et"));
                                                                        if (v5_22 != null) {
                                                                            v14_0 += v5_22.longValue();
                                                                            String v6_24 = (v13_1 + 1);
                                                                            v3_9.zzjuq[v13_1] = v7_39;
                                                                            v13_1 = v6_24;
                                                                            v9_11 = (v44_0 + 1);
                                                                            com.google.android.gms.internal.zzcil v11 = 1;
                                                                        } else {
                                                                            v5_25 = this.zzayp().zzbaw();
                                                                            v6_23 = "Engagement event does not include duration. appId";
                                                                            v8_35 = com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm);
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                v5_25.zzj(v6_23, v8_35);
                                                            }
                                                        } else {
                                                            com.google.android.gms.internal.zzcjl v5_38;
                                                            this.zzayp().zzbaw().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm), this.zzayk().zzjp(v7_39.name));
                                                            if (this.zzayl().zzks(v2_3.zzjpe.zzcm)) {
                                                                v5_38 = 1;
                                                            } else {
                                                                if (!this.zzayl().zzkt(v2_3.zzjpe.zzcm)) {
                                                                    v5_38 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_38 == null) && (!"_err".equals(v7_39.name))) {
                                                                this.zzayl().zza(v2_3.zzjpe.zzcm, 11, "_ev", v7_39.name, 0);
                                                            }
                                                            v44_0 = v9_11;
                                                        }
                                                    }
                                                    int v34_2 = v12_1;
                                                    if (v13_1 < v2_3.zzaoz.size()) {
                                                        v3_9.zzjuq = ((com.google.android.gms.internal.zzcob[]) java.util.Arrays.copyOf(v3_9.zzjuq, v13_1));
                                                    }
                                                    if (v4_6 != null) {
                                                        String v4_11;
                                                        String v4_8 = this.zzayj().zzag(v3_9.zzcm, "_lte");
                                                        if (v4_8 == null) {
                                                            v4_11 = new com.google.android.gms.internal.zzcnn;
                                                            v4_11(v3_9.zzcm, "auto", "_lte", this.zzdir.currentTimeMillis(), Long.valueOf(v14_0));
                                                        } else {
                                                            if (v4_8.value != null) {
                                                                com.google.android.gms.internal.zzcjl v5_58 = new com.google.android.gms.internal.zzcnn;
                                                                v5_58(v3_9.zzcm, "auto", "_lte", this.zzdir.currentTimeMillis(), Long.valueOf((((Long) v4_8.value).longValue() + v14_0)));
                                                                v4_11 = v5_58;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.internal.zzcjl v5_61 = new com.google.android.gms.internal.zzcog();
                                                        v5_61.name = "_lte";
                                                        v5_61.zzjvr = Long.valueOf(this.zzdir.currentTimeMillis());
                                                        v5_61.zzjum = ((Long) v4_11.value);
                                                        String v6_61 = 0;
                                                        while (v6_61 < v3_9.zzjur.length) {
                                                            if (!"_lte".equals(v3_9.zzjur[v6_61].name)) {
                                                                v6_61++;
                                                            } else {
                                                                v3_9.zzjur[v6_61] = v5_61;
                                                                String v6_62 = 1;
                                                            }
                                                            if (v6_62 == null) {
                                                                v3_9.zzjur = ((com.google.android.gms.internal.zzcog[]) java.util.Arrays.copyOf(v3_9.zzjur, (v3_9.zzjur.length + 1)));
                                                                v3_9.zzjur[(v2_3.zzjpe.zzjur.length - 1)] = v5_61;
                                                            }
                                                            if (v14_0 > 0) {
                                                                this.zzayj().zza(v4_11);
                                                                this.zzayp().zzbaz().zzj("Updated lifetime engagement user property with value. Value", v4_11.value);
                                                            }
                                                        }
                                                        v6_62 = 0;
                                                    }
                                                    int v12_30;
                                                    v3_9.zzjvh = this.zza(v3_9.zzcm, v3_9.zzjur, v3_9.zzjuq);
                                                    if ((!((Boolean) com.google.android.gms.internal.zzciz.zzjim.get()).booleanValue()) || (!"1".equals(this.zzjns.zzaym().zzam(v2_3.zzjpe.zzcm, "measurement.event_sampling_enabled")))) {
                                                        v12_30 = 0;
                                                    } else {
                                                        String v4_24 = new java.util.HashMap();
                                                        com.google.android.gms.internal.zzcjl v5_71 = new com.google.android.gms.internal.zzcob[v3_9.zzjuq.length];
                                                        String v6_71 = this.zzayl().zzbcr();
                                                        com.google.android.gms.internal.zzcit v7_18 = v3_9.zzjuq;
                                                        Boolean v8_49 = v7_18.length;
                                                        int v9_29 = 0;
                                                        int v10_23 = 0;
                                                        while (v9_29 < v8_49) {
                                                            long v49;
                                                            int v12_46;
                                                            long v50;
                                                            Object v51;
                                                            com.google.android.gms.internal.zzcil v11_10 = v7_18[v9_29];
                                                            if (!v11_10.name.equals("_ep")) {
                                                                int v12_39;
                                                                if (com.google.android.gms.internal.zzckj.zza(v11_10, "_dbg", Long.valueOf(1))) {
                                                                    v12_39 = 1;
                                                                } else {
                                                                    v12_39 = this.zzaym().zzap(v2_3.zzjpe.zzcm, v11_10.name);
                                                                }
                                                                if (v12_39 > 0) {
                                                                    com.google.android.gms.internal.zzcit v13_22 = ((com.google.android.gms.internal.zzcit) v4_24.get(v11_10.name));
                                                                    if (v13_22 == null) {
                                                                        v13_22 = this.zzayj().zzae(v2_3.zzjpe.zzcm, v11_10.name);
                                                                        if (v13_22 == null) {
                                                                            this.zzayp().zzbaw().zze("Event being bundled has no eventAggregate. appId, eventName", v2_3.zzjpe.zzcm, v11_10.name);
                                                                            com.google.android.gms.internal.zzcit v1_22 = new com.google.android.gms.internal.zzcit;
                                                                            v1_22(v2_3.zzjpe.zzcm, v11_10.name, 1, 1, v11_10.zzjuj.longValue(), 0, 0, 0, 0);
                                                                            v13_22 = v1_22;
                                                                        }
                                                                    }
                                                                    Boolean v14_17;
                                                                    this.zzayl();
                                                                    com.google.android.gms.internal.zzcit v1_25 = ((Long) com.google.android.gms.internal.zzcno.zzb(v11_10, "_eid"));
                                                                    if (v1_25 == null) {
                                                                        v14_17 = 0;
                                                                    } else {
                                                                        v14_17 = 1;
                                                                    }
                                                                    Boolean v14_18 = Boolean.valueOf(v14_17);
                                                                    if (v12_39 != 1) {
                                                                        if (v6_71.nextInt(v12_39) != 0) {
                                                                            v49 = v6_71;
                                                                            v50 = v7_18;
                                                                            if (Math.abs((v11_10.zzjuj.longValue() - v13_22.zzjhv)) < 86400000) {
                                                                                v51 = v8_49;
                                                                                if (!v14_18.booleanValue()) {
                                                                                } else {
                                                                                    v4_24.put(v11_10.name, v13_22.zza(v1_25, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.zzayl();
                                                                                v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_efs", Long.valueOf(1));
                                                                                this.zzayl();
                                                                                v51 = v8_49;
                                                                                com.google.android.gms.internal.zzcit v7_28 = ((long) v12_39);
                                                                                v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_sr", Long.valueOf(v7_28));
                                                                                com.google.android.gms.internal.zzcit v1_31 = (v10_23 + 1);
                                                                                v5_71[v10_23] = v11_10;
                                                                                if (v14_18.booleanValue()) {
                                                                                    v13_22 = v13_22.zza(0, Long.valueOf(v7_28), Boolean.valueOf(1));
                                                                                }
                                                                                v4_24.put(v11_10.name, v13_22.zzbc(v11_10.zzjuj.longValue()));
                                                                                v10_23 = v1_31;
                                                                            }
                                                                        } else {
                                                                            this.zzayl();
                                                                            v49 = v6_71;
                                                                            v50 = v7_18;
                                                                            String v6_89 = ((long) v12_39);
                                                                            v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_sr", Long.valueOf(v6_89));
                                                                            com.google.android.gms.internal.zzcit v1_34 = (v10_23 + 1);
                                                                            v5_71[v10_23] = v11_10;
                                                                            if (v14_18.booleanValue()) {
                                                                                v13_22 = v13_22.zza(0, Long.valueOf(v6_89), 0);
                                                                            }
                                                                            v4_24.put(v11_10.name, v13_22.zzbc(v11_10.zzjuj.longValue()));
                                                                            v10_23 = v1_34;
                                                                            v51 = v8_49;
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.zzcit v1_35 = (v10_23 + 1);
                                                                        v5_71[v10_23] = v11_10;
                                                                        if ((v14_18.booleanValue()) && ((v13_22.zzjhw != null) || ((v13_22.zzjhx != null) || (v13_22.zzjhy != null)))) {
                                                                            v4_24.put(v11_10.name, v13_22.zza(0, 0, 0));
                                                                        }
                                                                        v10_23 = v1_35;
                                                                        v49 = v6_71;
                                                                        v50 = v7_18;
                                                                    }
                                                                } else {
                                                                    this.zzayp().zzbaw().zze("Sample rate must be positive. event, rate", v11_10.name, Integer.valueOf(v12_39));
                                                                    v12_46 = (v10_23 + 1);
                                                                    v5_71[v10_23] = v11_10;
                                                                    v49 = v6_71;
                                                                    v50 = v7_18;
                                                                    v51 = v8_49;
                                                                    v10_23 = v12_46;
                                                                }
                                                            } else {
                                                                this.zzayl();
                                                                int v12_49 = ((String) com.google.android.gms.internal.zzcno.zzb(v11_10, "_en"));
                                                                com.google.android.gms.internal.zzcit v13_34 = ((com.google.android.gms.internal.zzcit) v4_24.get(v12_49));
                                                                if (v13_34 == null) {
                                                                    v13_34 = this.zzayj().zzae(v2_3.zzjpe.zzcm, v12_49);
                                                                    v4_24.put(v12_49, v13_34);
                                                                }
                                                                if (v13_34.zzjhw != null) {
                                                                } else {
                                                                    if (v13_34.zzjhx.longValue() > 1) {
                                                                        this.zzayl();
                                                                        v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_sr", v13_34.zzjhx);
                                                                    }
                                                                    if ((v13_34.zzjhy != null) && (v13_34.zzjhy.booleanValue())) {
                                                                        this.zzayl();
                                                                        v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_efs", Long.valueOf(1));
                                                                    }
                                                                    v12_46 = (v10_23 + 1);
                                                                    v5_71[v10_23] = v11_10;
                                                                }
                                                            }
                                                            v9_29++;
                                                            v6_71 = v49;
                                                            v7_18 = v50;
                                                            v8_49 = v51;
                                                        }
                                                        v12_30 = 0;
                                                        if (v10_23 < v3_9.zzjuq.length) {
                                                            v3_9.zzjuq = ((com.google.android.gms.internal.zzcob[]) java.util.Arrays.copyOf(v5_71, v10_23));
                                                        }
                                                        com.google.android.gms.internal.zzcit v1_11 = v4_24.entrySet().iterator();
                                                        while (v1_11.hasNext()) {
                                                            this.zzayj().zza(((com.google.android.gms.internal.zzcit) ((java.util.Map$Entry) v1_11.next()).getValue()));
                                                        }
                                                    }
                                                    v3_9.zzjut = Long.valueOf(nan);
                                                    v3_9.zzjuu = Long.valueOf(-0.0);
                                                    com.google.android.gms.internal.zzcit v1_14 = 0;
                                                    while (v1_14 < v3_9.zzjuq.length) {
                                                        String v4_49 = v3_9.zzjuq[v1_14];
                                                        if (v4_49.zzjuj.longValue() < v3_9.zzjut.longValue()) {
                                                            v3_9.zzjut = v4_49.zzjuj;
                                                        }
                                                        if (v4_49.zzjuj.longValue() > v3_9.zzjuu.longValue()) {
                                                            v3_9.zzjuu = v4_49.zzjuj;
                                                        }
                                                        v1_14++;
                                                    }
                                                    com.google.android.gms.internal.zzcit v1_16 = v2_3.zzjpe.zzcm;
                                                    String v4_31 = this.zzayj().zzjj(v1_16);
                                                    if (v4_31 != null) {
                                                        if (v3_9.zzjuq.length > 0) {
                                                            com.google.android.gms.internal.zzcit v7_20;
                                                            com.google.android.gms.internal.zzcjl v5_74 = v4_31.zzayw();
                                                            if (v5_74 == 0) {
                                                                v7_20 = v12_30;
                                                            } else {
                                                                v7_20 = Long.valueOf(v5_74);
                                                            }
                                                            v3_9.zzjuw = v7_20;
                                                            com.google.android.gms.internal.zzcit v7_21 = v4_31.zzayv();
                                                            if (v7_21 != 0) {
                                                                v5_74 = v7_21;
                                                            } else {
                                                            }
                                                            if (v5_74 != 0) {
                                                                v12_30 = Long.valueOf(v5_74);
                                                            }
                                                            v3_9.zzjuv = v12_30;
                                                            v4_31.zzazf();
                                                            v3_9.zzjvf = Integer.valueOf(((int) v4_31.zzazc()));
                                                            v4_31.zzal(v3_9.zzjut.longValue());
                                                            v4_31.zzam(v3_9.zzjuu.longValue());
                                                            v3_9.zzjgi = v4_31.zzazn();
                                                            this.zzayj().zza(v4_31);
                                                        }
                                                    } else {
                                                        this.zzayp().zzbau().zzj("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm));
                                                    }
                                                    if (v3_9.zzjuq.length > 0) {
                                                        String v4_38;
                                                        String v4_37 = this.zzaym().zzka(v2_3.zzjpe.zzcm);
                                                        if (v4_37 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v2_3.zzjpe.zzjfl)) {
                                                                this.zzayp().zzbaw().zzj("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm));
                                                            } else {
                                                                v4_38 = Long.valueOf(-1);
                                                                v3_9.zzjvm = v4_38;
                                                            }
                                                        } else {
                                                            if (v4_37.zzjtx != null) {
                                                                v4_38 = v4_37.zzjtx;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzayj().zza(v3_9, v34_2);
                                                    }
                                                    this.zzayj().zzai(v2_3.zzjpf);
                                                    com.google.android.gms.internal.zzcjl v2_5 = this.zzayj();
                                                    android.database.sqlite.SQLiteException v3_15 = v2_5.getWritableDatabase();
                                                    try {
                                                        com.google.android.gms.internal.zzcjl v5_91 = new String[2];
                                                        v5_91[0] = v1_16;
                                                        v5_91[1] = v1_16;
                                                        v3_15.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v5_91);
                                                    } catch (java.io.IOException v0_11) {
                                                        v2_5.zzayp().zzbau().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.zzcjj.zzjs(v1_16), v0_11);
                                                    }
                                                    this.zzayj().setTransactionSuccessful();
                                                    this.zzayj().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v9_0.close();
                                            }
                                        } catch (java.io.IOException v0_2) {
                                        }
                                        if (v15_1.moveToNext()) {
                                            v4_55.zzayp().zzbaw().zzj("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzcjj.zzjs(v3_1));
                                        }
                                        com.google.android.gms.internal.zzcjl v5_44;
                                        String[] v16_2;
                                        v15_1.close();
                                        v2_3.zzb(v13_5);
                                        if (v5_98 == -1) {
                                            v5_44 = "app_id = ? and metadata_fingerprint = ?";
                                            int v9_15 = new String[2];
                                            v9_15[0] = v3_1;
                                            v9_15[1] = v22;
                                            v16_2 = v9_15;
                                        } else {
                                            int v12_16 = new String[3];
                                            v12_16[0] = v3_1;
                                            v12_16[1] = v22;
                                            v12_16[2] = String.valueOf(v5_98);
                                            v5_44 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_2 = v12_16;
                                        }
                                        v9_0 = v15_1;
                                        com.google.android.gms.internal.zzcjl v5_46 = v25.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_44, v16_2, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_46.moveToFirst()) {
                                                do {
                                                    int v12_19 = v5_46.getLong(0);
                                                    int v9_19 = v5_46.getBlob(3);
                                                    int v9_20 = com.google.android.gms.internal.zzflj.zzo(v9_19, 0, v9_19.length);
                                                    Boolean v14_8 = new com.google.android.gms.internal.zzcob();
                                                    v14_8.zza(v9_20);
                                                    v14_8.name = v5_46.getString(1);
                                                    v14_8.zzjuj = Long.valueOf(v5_46.getLong(2));
                                                    if (v2_3.zza(v12_19, v14_8)) {
                                                    } else {
                                                        if (v5_46 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_46.moveToNext());
                                                if (v5_46 == null) {
                                                }
                                            } else {
                                                v4_55.zzayp().zzbaw().zzj("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzcjj.zzjs(v3_1));
                                                if (v5_46 == null) {
                                                }
                                            }
                                        } catch (java.io.IOException v0_9) {
                                            com.google.android.gms.internal.zzcit v1_1 = v0_9;
                                            String[] v21 = v5_46;
                                            if (v21 != null) {
                                                v21.close();
                                            }
                                            throw v1_1;
                                        } catch (java.io.IOException v0_2) {
                                            int v12_0 = v3_1;
                                            v9_0 = v5_46;
                                            android.database.sqlite.SQLiteException v3_0 = v0_2;
                                            v4_55.zzayp().zzbau().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzcjj.zzjs(v12_0), v3_0);
                                            if (v9_0 == 0) {
                                            }
                                        }
                                        v5_46.close();
                                    } else {
                                        v4_55.zzayp().zzbau().zzj("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzcjj.zzjs(v3_1));
                                        if (v15_1 == 0) {
                                        } else {
                                            v15_1.close();
                                        }
                                    }
                                } catch (java.io.IOException v0_7) {
                                    v9_0 = v15_1;
                                    v1_1 = v0_7;
                                    v21 = v9_0;
                                } catch (java.io.IOException v0_2) {
                                    v9_0 = v15_1;
                                } catch (java.io.IOException v0_10) {
                                    v1_1 = v0_10;
                                    v21 = v15_1;
                                } catch (java.io.IOException v0_2) {
                                    v12_0 = v3_1;
                                    v9_0 = v15_1;
                                }
                                v12_0 = v3_1;
                            } catch (java.io.IOException v0_5) {
                                v1_1 = v0_5;
                                v21 = v23;
                            } catch (java.io.IOException v0_2) {
                                v12_0 = v3_1;
                                v9_0 = v23;
                            }
                        } else {
                            if (v3_1 == null) {
                            } else {
                            }
                        }
                    } else {
                        try {
                            int v12_34;
                            if (v5_98 == -1) {
                                v12_34 = new String[1];
                                v12_34[0] = String.valueOf(p54);
                            } else {
                                v12_34 = new String[2];
                                v12_34[0] = String.valueOf(v5_98);
                                v12_34[1] = String.valueOf(p54);
                            }
                        } catch (java.io.IOException v0_2) {
                            v9_0 = 0;
                            v12_0 = 0;
                        }
                        com.google.android.gms.internal.zzcit v13_30;
                        if (v5_98 == -1) {
                            v13_30 = "";
                        } else {
                            v13_30 = "rowid <= ? and ";
                        }
                        android.database.sqlite.SQLiteException v3_18 = new StringBuilder((String.valueOf(v13_30).length() + 148));
                        v3_18.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_18.append(v13_30);
                        v3_18.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_1 = v15_2.rawQuery(v3_18.toString(), v12_34);
                        if (v3_1.moveToFirst()) {
                            v12_0 = v3_1.getString(0);
                            try {
                                com.google.android.gms.internal.zzcit v13_0 = v3_1.getString(1);
                                v3_1.close();
                                v23 = v3_1;
                                v3_1 = v12_0;
                                v22 = v13_0;
                            } catch (java.io.IOException v0_2) {
                                v9_0 = v3_1;
                            }
                        } else {
                            if (v3_1 == null) {
                            }
                        }
                    }
                } catch (java.io.IOException v0_3) {
                    v1_1 = v0_3;
                    v21 = v3_1;
                } catch (java.io.IOException v0_2) {
                    v9_0 = v3_1;
                    v12_0 = 0;
                }
                v3_1.close();
            } catch (java.io.IOException v0_1) {
                v1_1 = v0_1;
                v21 = 0;
            } catch (java.io.IOException v0_0) {
                v3_0 = v0_0;
                v9_0 = 0;
                v12_0 = 0;
            } catch (java.io.IOException v0_7) {
            }
        } catch (java.io.IOException v0_4) {
            com.google.android.gms.internal.zzcit v1_2 = v0_4;
            this.zzayj().endTransaction();
            throw v1_2;
        }
    }

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p10)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_15 = p10.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_15.moveToFirst();
                v0_15.close();
            } catch (Throwable v10_1) {
                v0_15.close();
                throw v10_1;
            }
        }
        if (com.google.android.gms.internal.zzdaq.zza("gtm_hit_unique_ids", p10)) {
            com.google.android.gms.internal.zzdaq.zza(p10, "gtm_hit_unique_ids", java.util.Arrays.asList(new String[] {"hit_unique_id"})));
        } else {
            p10.execSQL(com.google.android.gms.internal.zzdao.zzbhg());
        }
        if (com.google.android.gms.internal.zzdaq.zza("gtm_hits", p10)) {
            String v3 = "hit_time";
            String v5 = "hit_method";
            String v7 = "hit_headers";
            com.google.android.gms.internal.zzdaq.zza(p10, "gtm_hits", java.util.Arrays.asList(new String[] {"hit_id", "hit_body"})));
        } else {
            p10.execSQL(com.google.android.gms.internal.zzdao.zzbiw());
        }
        p10.execSQL(com.google.android.gms.internal.zzdao.zzbix());
        p10.execSQL(com.google.android.gms.internal.zzdao.zzbiy());
        return;
    }

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


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

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


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

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


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

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


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

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


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

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


    final com.google.android.gms.internal.zzcoa[] zza(String p56, com.google.android.gms.internal.zzcob[] p57, com.google.android.gms.internal.zzcog[] p58)
    {
        androidx.collection.ArrayMap v15_0 = p56;
        com.google.android.gms.internal.zzcob[] v13_0 = p57;
        com.google.android.gms.internal.zzcog[] v14_1 = p58;
        com.google.android.gms.common.internal.zzbq.zzgv(p56);
        String v11_0 = new java.util.HashSet();
        Integer v12_0 = new androidx.collection.ArrayMap();
        com.google.android.gms.internal.zzcog[] v10_0 = new androidx.collection.ArrayMap();
        String v9_2 = new androidx.collection.ArrayMap();
        String v0_4 = this.zzayj().zzjm(p56);
        if (v0_4 != null) {
            int v1_12 = v0_4.keySet().iterator();
            while (v1_12.hasNext()) {
                int v2_9 = ((Integer) v1_12.next()).intValue();
                com.google.android.gms.internal.zzcog v3_6 = ((com.google.android.gms.internal.zzcof) v0_4.get(Integer.valueOf(v2_9)));
                long v4_5 = ((java.util.BitSet) v10_0.get(Integer.valueOf(v2_9)));
                String v5_4 = ((java.util.BitSet) v9_2.get(Integer.valueOf(v2_9)));
                if (v4_5 == 0) {
                    v4_5 = new java.util.BitSet();
                    v10_0.put(Integer.valueOf(v2_9), v4_5);
                    v5_4 = new java.util.BitSet();
                    v9_2.put(Integer.valueOf(v2_9), v5_4);
                }
                com.google.android.gms.internal.zzcog[] v6_4 = 0;
                while (v6_4 < (v3_6.zzjvo.length << 6)) {
                    Integer v24_1;
                    Integer v25_1;
                    boolean v23_1;
                    if (!com.google.android.gms.internal.zzcno.zza(v3_6.zzjvo, v6_4)) {
                        v23_1 = v0_4;
                        v24_1 = v1_12;
                        v25_1 = v9_2;
                    } else {
                        v23_1 = v0_4;
                        v24_1 = v1_12;
                        v25_1 = v9_2;
                        this.zzayp().zzbba().zze("Filter already evaluated. audience ID, filter ID", Integer.valueOf(v2_9), Integer.valueOf(v6_4));
                        v5_4.set(v6_4);
                        if (com.google.android.gms.internal.zzcno.zza(v3_6.zzjvp, v6_4)) {
                            v4_5.set(v6_4);
                        }
                    }
                    v6_4++;
                    v0_4 = v23_1;
                    v1_12 = v24_1;
                    v9_2 = v25_1;
                }
                boolean v23_0 = v0_4;
                Integer v24_0 = v1_12;
                String v0_2 = new com.google.android.gms.internal.zzcoa();
                v12_0.put(Integer.valueOf(v2_9), v0_2);
                v0_2.zzjug = Boolean.valueOf(0);
                v0_2.zzjuf = v3_6;
                v0_2.zzjue = new com.google.android.gms.internal.zzcof();
                v0_2.zzjue.zzjvp = com.google.android.gms.internal.zzcno.zza(v4_5);
                v0_2.zzjue.zzjvo = com.google.android.gms.internal.zzcno.zza(v5_4);
                v0_4 = v23_0;
                v1_12 = v24_0;
            }
        }
        Integer v25_0 = v9_2;
        if (p57 != null) {
            String v5_1 = new androidx.collection.ArrayMap();
            com.google.android.gms.internal.zzcog v3_3 = p57.length;
            long v16_3 = 0;
            String v0_18 = 0;
            int v1_28 = 0;
            int v2_6 = 0;
            while (v2_6 < v3_3) {
                int v22;
                com.google.android.gms.internal.zzcog[] v10_2;
                String v7_2;
                int v31_0;
                Integer v27;
                com.google.android.gms.internal.zzcih v32_1;
                int v28_2;
                com.google.android.gms.internal.zzcog[] v10_7;
                com.google.android.gms.internal.zzcog[] v14_0;
                boolean v26;
                androidx.collection.ArrayMap v15_1;
                String v0_0;
                com.google.android.gms.internal.zzcih v41_0;
                String v33_1;
                com.google.android.gms.internal.zzcih v46_0;
                long v29_1;
                com.google.android.gms.internal.zzcoc v34_1;
                String v47_0;
                String v8_35 = v13_0[v2_6];
                String v9_11 = v8_35.name;
                long v4_19 = v8_35.zzjui;
                int v28_1 = v2_6;
                if (!this.zzayr().zzc(v15_0, com.google.android.gms.internal.zzciz.zzjjv)) {
                    v26 = v3_3;
                    v33_1 = v5_1;
                    v32_1 = v10_0;
                    v22 = v28_1;
                    v28_2 = 1;
                    v10_7 = v4_19;
                    v34_1 = v0_18;
                    v27 = v1_28;
                    v0_0 = v9_11;
                    v31_0 = v10_7;
                    v29_1 = v16_3;
                    long v37;
                    com.google.android.gms.internal.zzcog v3_24;
                    androidx.collection.ArrayMap v40;
                    String v5_26;
                    String v38;
                    com.google.android.gms.internal.zzcog[] v39;
                    int v1_67;
                    int v1_66 = this.zzayj().zzae(v15_0, v8_35.name);
                    if (v1_66 != 0) {
                        v39 = v11_0;
                        v40 = v12_0;
                        v3_24 = v14_1;
                        v5_26 = v15_0;
                        v37 = v25_0;
                        v38 = v32_1;
                        v1_67 = v1_66.zzban();
                    } else {
                        this.zzayp().zzbaw().zze("Event aggregate wasn\'t created during raw event logging. appId, event", com.google.android.gms.internal.zzcjj.zzjs(p56), this.zzayk().zzjp(v0_0));
                        v1_67 = new com.google.android.gms.internal.zzcit;
                        v37 = v25_0;
                        v38 = v32_1;
                        v39 = v11_0;
                        v40 = v12_0;
                        v3_24 = v14_1;
                        v5_26 = v15_0;
                        v1_67(p56, v8_35.name, 1, 1, v8_35.zzjuj.longValue(), 0, 0, 0, 0);
                    }
                    this.zzayj().zza(v1_67);
                    String v8_37 = v1_67.zzjhs;
                    com.google.android.gms.internal.zzcog[] v10_10 = v33_1;
                    int v1_71 = ((java.util.Map) v10_10.get(v0_0));
                    if (v1_71 == 0) {
                        v1_71 = this.zzayj().zzaj(v5_26, v0_0);
                        if (v1_71 == 0) {
                            v1_71 = new androidx.collection.ArrayMap();
                        }
                        v10_10.put(v0_0, v1_71);
                    }
                    String v11_5 = v1_71;
                    Integer v12_7 = v11_5.keySet().iterator();
                    while (v12_7.hasNext()) {
                        com.google.android.gms.internal.zzcob[] v13_4 = ((Integer) v12_7.next()).intValue();
                        com.google.android.gms.internal.zzcog[] v14_3 = v39;
                        if (!v14_3.contains(Integer.valueOf(v13_4))) {
                            androidx.collection.ArrayMap v15_4 = v40;
                            com.google.android.gms.internal.zzcog[] v6_0 = v38;
                            int v2_39 = ((java.util.BitSet) v6_0.get(Integer.valueOf(v13_4)));
                            com.google.android.gms.internal.zzcih v41_1 = v10_10;
                            com.google.android.gms.internal.zzcog[] v10_1 = v37;
                            long v4_27 = ((java.util.BitSet) v10_1.get(Integer.valueOf(v13_4)));
                            if (((com.google.android.gms.internal.zzcoa) v15_4.get(Integer.valueOf(v13_4))) == null) {
                                int v1_84 = new com.google.android.gms.internal.zzcoa();
                                v15_4.put(Integer.valueOf(v13_4), v1_84);
                                v1_84.zzjug = Boolean.valueOf(v28_2);
                                v2_39 = new java.util.BitSet();
                                v6_0.put(Integer.valueOf(v13_4), v2_39);
                                v4_27 = new java.util.BitSet();
                                v10_1.put(Integer.valueOf(v13_4), v4_27);
                            }
                            long v4_29 = v2_39;
                            int v2_43 = v4_27;
                            long v16_6 = ((java.util.List) v11_5.get(Integer.valueOf(v13_4))).iterator();
                            while (v16_6.hasNext()) {
                                String v45;
                                String v44;
                                int v1_92 = ((com.google.android.gms.internal.zzcns) v16_6.next());
                                String v42 = v2_43;
                                long v43 = v11_5;
                                if (!this.zzayp().zzae(2)) {
                                    v44 = v6_0;
                                    v45 = v12_7;
                                } else {
                                    v44 = v6_0;
                                    v45 = v12_7;
                                    this.zzayp().zzbba().zzd("Evaluating filter. audience, filter, event", Integer.valueOf(v13_4), v1_92.zzjsx, this.zzayk().zzjp(v1_92.zzjsy));
                                    this.zzayp().zzbba().zzj("Filter definition", this.zzayk().zza(v1_92));
                                }
                                if ((v1_92.zzjsx != null) && (v1_92.zzjsx.intValue() <= 256)) {
                                    if (!v4_29.get(v1_92.zzjsx.intValue())) {
                                        long v4_31;
                                        Integer v12_9 = v1_92;
                                        String v11_9 = v4_29;
                                        android.database.sqlite.SQLiteException v48 = v0_0;
                                        String v0_57 = v42;
                                        com.google.android.gms.internal.zzcih v46_2 = v10_1;
                                        String v47_2 = v44;
                                        String v7_39 = p56;
                                        com.google.android.gms.internal.zzcog[] v10_12 = p58;
                                        int v1_94 = this.zza(v12_9, v0_0, v31_0, v8_37);
                                        com.google.android.gms.internal.zzcjl vtmp241 = this.zzayp().zzbba();
                                        if (v1_94 != 0) {
                                            v4_31 = v1_94;
                                        } else {
                                            v4_31 = "null";
                                        }
                                        vtmp241.zzj("Event filter result", v4_31);
                                        if (v1_94 != 0) {
                                            v0_57.set(v12_9.zzjsx.intValue());
                                            if (v1_94.booleanValue()) {
                                                v11_9.set(v12_9.zzjsx.intValue());
                                            }
                                        } else {
                                            v14_3.add(Integer.valueOf(v13_4));
                                        }
                                    } else {
                                        this.zzayp().zzbba().zze("Event filter already evaluated true. audience ID, filter ID", Integer.valueOf(v13_4), v1_92.zzjsx);
                                        v2_43 = v42;
                                        v11_5 = v43;
                                        v6_0 = v44;
                                        v12_7 = v45;
                                        v3_24 = p58;
                                        v5_26 = p56;
                                    }
                                } else {
                                    v48 = v0_0;
                                    v11_9 = v4_29;
                                    v46_2 = v10_1;
                                    v0_57 = v42;
                                    v47_2 = v44;
                                    v7_39 = p56;
                                    v10_12 = p58;
                                    this.zzayp().zzbaw().zze("Invalid event filter ID. appId, id", com.google.android.gms.internal.zzcjj.zzjs(p56), String.valueOf(v1_92.zzjsx));
                                }
                                v2_43 = v0_57;
                                v5_26 = v7_39;
                                v3_24 = v10_12;
                                v4_29 = v11_9;
                                v11_5 = v43;
                                v12_7 = v45;
                                v10_1 = v46_2;
                                v6_0 = v47_2;
                                v0_0 = v48;
                            }
                            v38 = v6_0;
                            v37 = v10_1;
                            v39 = v14_3;
                            v40 = v15_4;
                            v10_10 = v41_1;
                        } else {
                            this.zzayp().zzbba().zzj("Skipping failed audience ID", Integer.valueOf(v13_4));
                            v39 = v14_3;
                        }
                    }
                    v7_2 = v5_26;
                    v41_0 = v10_10;
                    v46_0 = v37;
                    v47_0 = v38;
                    v14_0 = v39;
                    v15_1 = v40;
                    v10_2 = v3_24;
                    v1_28 = v27;
                    v16_3 = v29_1;
                    v0_18 = v34_1;
                } else {
                    int v2_18;
                    this.zzayl();
                    com.google.android.gms.internal.zzcog[] v6_14 = ((Long) com.google.android.gms.internal.zzcno.zzb(v8_35, "_eid"));
                    if (v6_14 == null) {
                        v2_18 = 0;
                    } else {
                        v2_18 = 1;
                    }
                    long v29_0;
                    com.google.android.gms.internal.zzcog v3_17;
                    if (v2_18 == 0) {
                        v29_0 = v3_3;
                        v3_17 = 0;
                    } else {
                        v29_0 = v3_3;
                        if (!v9_11.equals("_ep")) {
                        } else {
                            v3_17 = 1;
                        }
                    }
                    if (v3_17 == null) {
                        v33_1 = v5_1;
                        v32_1 = v10_0;
                        v22 = v28_1;
                        v26 = v29_0;
                        v28_2 = 1;
                        v10_7 = v4_19;
                        if (v2_18 == 0) {
                        } else {
                            this.zzayl();
                            int v1_51 = Long.valueOf(0);
                            String v0_30 = com.google.android.gms.internal.zzcno.zzb(v8_35, "_epc");
                            if (v0_30 == null) {
                                v0_30 = v1_51;
                            }
                            String v0_33;
                            v16_3 = ((Long) v0_30).longValue();
                            if (v16_3 > 0) {
                                v0_33 = v6_14;
                                this.zzayj().zza(p56, v6_14, v16_3, v8_35);
                            } else {
                                this.zzayp().zzbaw().zzj("Complex event with zero extra param count. eventName", v9_11);
                                v0_33 = v6_14;
                            }
                            v27 = v0_33;
                            v34_1 = v8_35;
                        }
                    } else {
                        com.google.android.gms.internal.zzcih v32_0;
                        String v33_0;
                        this.zzayl();
                        String v9_13 = ((String) com.google.android.gms.internal.zzcno.zzb(v8_35, "_en"));
                        if (!android.text.TextUtils.isEmpty(v9_13)) {
                            if ((v0_18 == null) || ((v1_28 == 0) || (v6_14.longValue() != v1_28.longValue()))) {
                                int v2_26 = this.zzayj().zzb(v15_0, v6_14);
                                if ((v2_26 != 0) && (v2_26.first != null)) {
                                    v0_18 = ((com.google.android.gms.internal.zzcob) v2_26.first);
                                    v16_3 = ((Long) v2_26.second).longValue();
                                    this.zzayl();
                                    v1_28 = ((Long) com.google.android.gms.internal.zzcno.zzb(v0_18, "_eid"));
                                } else {
                                    v33_0 = v5_1;
                                    v32_0 = v10_0;
                                    v22 = v28_1;
                                    v26 = v29_0;
                                    int v28 = 1;
                                    this.zzayp().zzbau().zze("Extra parameter without existing main event. eventName, eventId", v9_13, v6_14);
                                    v10_2 = v14_1;
                                    v7_2 = v15_0;
                                    v46_0 = v25_0;
                                    v47_0 = v32_0;
                                    v41_0 = v33_0;
                                    v14_0 = v11_0;
                                    v15_1 = v12_0;
                                    v2_6 = (v22 + 1);
                                    v13_0 = p57;
                                    v11_0 = v14_0;
                                    v12_0 = v15_1;
                                    v3_3 = v26;
                                    v5_1 = v41_0;
                                    v25_0 = v46_0;
                                    v15_0 = v7_2;
                                    v14_1 = v10_2;
                                    v10_0 = v47_0;
                                }
                            }
                            com.google.android.gms.internal.zzcog[] v10_8;
                            int v1_5;
                            com.google.android.gms.internal.zzcog v3_20 = v0_18;
                            Integer v18_1 = v1_28;
                            long v16_4 = (v16_3 - 1);
                            if (v16_4 > 0) {
                                int v20 = 1;
                                v22 = v28_1;
                                v26 = v29_0;
                                int v31_1 = v3_20;
                                v32_1 = v10_0;
                                v28_2 = 1;
                                v10_8 = v4_19;
                                v33_1 = v5_1;
                                this.zzayj().zza(p56, v6_14, v16_4, v31_1);
                                v1_5 = v31_1;
                            } else {
                                int v1_59 = this.zzayj();
                                v1_59.zzwj();
                                v1_59.zzayp().zzbba().zzj("Clearing complex main event info. appId", v15_0);
                                try {
                                    String v0_44 = v1_59.getWritableDatabase();
                                    String v30_1 = v3_20;
                                    try {
                                        com.google.android.gms.internal.zzcog v3_22 = new String[1];
                                        try {
                                            v3_22[0] = v15_0;
                                            v0_44.execSQL("delete from main_event_params where app_id=?", v3_22);
                                        } catch (String v0_45) {
                                            v1_59.zzayp().zzbau().zzj("Error clearing complex main event", v0_45);
                                        }
                                        v33_1 = v5_1;
                                        v32_1 = v10_0;
                                        v22 = v28_1;
                                        v26 = v29_0;
                                        v1_5 = v30_1;
                                        v28_2 = 1;
                                        v10_8 = v4_19;
                                    } catch (String v0_45) {
                                    }
                                } catch (String v0_45) {
                                    v30_1 = v3_20;
                                }
                            }
                            String v0_50 = new com.google.android.gms.internal.zzcoc[(v1_5.zzjui.length + v10_8.length)];
                            int v2_32 = v1_5.zzjui;
                            com.google.android.gms.internal.zzcog v3_23 = v2_32.length;
                            long v4_2 = 0;
                            String v5_0 = 0;
                            while (v4_2 < v3_23) {
                                com.google.android.gms.internal.zzcog[] v6_1 = v2_32[v4_2];
                                this.zzayl();
                                com.google.android.gms.internal.zzcoc v34_0 = v1_5;
                                if (com.google.android.gms.internal.zzcno.zza(v8_35, v6_1.name) == null) {
                                    int v1_4 = (v5_0 + 1);
                                    v0_50[v5_0] = v6_1;
                                    v5_0 = v1_4;
                                }
                                v4_2++;
                                v1_5 = v34_0;
                            }
                            v34_1 = v1_5;
                            if (v5_0 <= null) {
                                this.zzayp().zzbaw().zzj("No unique parameters in main event. eventName", v9_13);
                                v0_0 = v9_13;
                                v31_0 = v10_8;
                            } else {
                                int v1_63 = v10_8.length;
                                int v2_1 = 0;
                                while (v2_1 < v1_63) {
                                    long v4_1 = (v5_0 + 1);
                                    v0_50[v5_0] = v10_8[v2_1];
                                    v2_1++;
                                    v5_0 = v4_1;
                                }
                                if (v5_0 != v0_50.length) {
                                    v0_50 = ((com.google.android.gms.internal.zzcoc[]) java.util.Arrays.copyOf(v0_50, v5_0));
                                }
                                v31_0 = v0_50;
                                v0_0 = v9_13;
                            }
                            v29_1 = v16_4;
                            v27 = v18_1;
                        } else {
                            this.zzayp().zzbau().zzj("Extra parameter without an event name. eventId", v6_14);
                            v33_0 = v5_1;
                            v32_0 = v10_0;
                            v22 = v28_1;
                            v26 = v29_0;
                            v28 = 1;
                        }
                    }
                }
            }
        }
        String v47_1 = v10_0;
        com.google.android.gms.internal.zzcog[] v10_3 = v14_1;
        String v7_28 = v15_0;
        com.google.android.gms.internal.zzcih v46_1 = v25_0;
        com.google.android.gms.internal.zzcog[] v14_2 = v11_0;
        androidx.collection.ArrayMap v15_2 = v12_0;
        if (v10_3 != null) {
            String v0_23 = new androidx.collection.ArrayMap();
            int v1_45 = v10_3.length;
            int v2_12 = 0;
            while (v2_12 < v1_45) {
                com.google.android.gms.internal.zzcog v3_14 = v10_3[v2_12];
                long v4_9 = ((java.util.Map) v0_23.get(v3_14.name));
                if (v4_9 == 0) {
                    v4_9 = this.zzayj().zzak(v7_28, v3_14.name);
                    if (v4_9 == 0) {
                        v4_9 = new androidx.collection.ArrayMap();
                    }
                    v0_23.put(v3_14.name, v4_9);
                }
                String v5_10 = v4_9.keySet().iterator();
                while (v5_10.hasNext()) {
                    com.google.android.gms.internal.zzcog[] v6_10 = ((Integer) v5_10.next()).intValue();
                    if (!v14_2.contains(Integer.valueOf(v6_10))) {
                        String v11_1 = v47_1;
                        String v9_6 = ((java.util.BitSet) v11_1.get(Integer.valueOf(v6_10)));
                        com.google.android.gms.internal.zzcob[] v13_1 = v46_1;
                        Integer v12_4 = ((java.util.BitSet) v13_1.get(Integer.valueOf(v6_10)));
                        if (((com.google.android.gms.internal.zzcoa) v15_2.get(Integer.valueOf(v6_10))) == null) {
                            String v8_19 = new com.google.android.gms.internal.zzcoa();
                            v15_2.put(Integer.valueOf(v6_10), v8_19);
                            v8_19.zzjug = Boolean.valueOf(1);
                            v9_6 = new java.util.BitSet();
                            v11_1.put(Integer.valueOf(v6_10), v9_6);
                            v12_4 = new java.util.BitSet();
                            v13_1.put(Integer.valueOf(v6_10), v12_4);
                        }
                        String v8_25 = ((java.util.List) v4_9.get(Integer.valueOf(v6_10))).iterator();
                        while (v8_25.hasNext()) {
                            String v53;
                            String v52;
                            Object v49 = v0_23;
                            String v0_17 = ((com.google.android.gms.internal.zzcnv) v8_25.next());
                            boolean v50 = v1_45;
                            long v51 = v4_9;
                            if (!this.zzayp().zzae(2)) {
                                v52 = v5_10;
                                v53 = v8_25;
                            } else {
                                v52 = v5_10;
                                v53 = v8_25;
                                this.zzayp().zzbba().zzd("Evaluating filter. audience, filter, property", Integer.valueOf(v6_10), v0_17.zzjsx, this.zzayk().zzjr(v0_17.zzjtn));
                                this.zzayp().zzbba().zzj("Filter definition", this.zzayk().zza(v0_17));
                            }
                            if ((v0_17.zzjsx != null) && (v0_17.zzjsx.intValue() <= 256)) {
                                if (!v9_6.get(v0_17.zzjsx.intValue())) {
                                    String v5_19;
                                    long v4_16;
                                    int v1_42;
                                    int v1_39;
                                    int v1_27 = v0_17.zzjto;
                                    if (v1_27 != 0) {
                                        int v1_32;
                                        String v5_16 = Boolean.TRUE.equals(v1_27.zzjtf);
                                        if (v3_14.zzjum == null) {
                                            int v1_30;
                                            String v5_17;
                                            v4_16 = p56;
                                            if (v3_14.zzjsl == null) {
                                                if (v3_14.zzgim == null) {
                                                    v1_30 = this.zzayp().zzbaw();
                                                    v5_17 = "User property has no value, property";
                                                    v1_30.zzj(v5_17, this.zzayk().zzjr(v3_14.name));
                                                } else {
                                                    if (v1_27.zzjtd != null) {
                                                        v1_32 = this.zza(v3_14.zzgim, v1_27.zzjtd);
                                                        v1_39 = com.google.android.gms.internal.zzcih.zza(v1_32, v5_16);
                                                        String v8_32;
                                                        String v5_21 = this.zzayp().zzbba();
                                                        if (v1_39 != 0) {
                                                            v8_32 = v1_39;
                                                        } else {
                                                            v8_32 = "null";
                                                        }
                                                        v5_21.zzj("Property filter result", v8_32);
                                                        if (v1_39 != 0) {
                                                            v12_4.set(v0_17.zzjsx.intValue());
                                                            if (v1_39.booleanValue()) {
                                                                v9_6.set(v0_17.zzjsx.intValue());
                                                            }
                                                        } else {
                                                            v14_2.add(Integer.valueOf(v6_10));
                                                        }
                                                        v7_28 = v4_16;
                                                        v0_23 = v49;
                                                        v1_45 = v50;
                                                        v4_9 = v51;
                                                        v5_10 = v52;
                                                        v8_25 = v53;
                                                    } else {
                                                        if (v1_27.zzjte != null) {
                                                            if (!com.google.android.gms.internal.zzcno.zzkr(v3_14.zzgim)) {
                                                                this.zzayp().zzbaw().zze("Invalid user property value for Numeric number filter. property, value", this.zzayk().zzjr(v3_14.name), v3_14.zzgim);
                                                            } else {
                                                                v1_32 = this.zza(v3_14.zzgim, v1_27.zzjte);
                                                            }
                                                        } else {
                                                            v1_30 = this.zzayp().zzbaw();
                                                            v5_17 = "No string or number filter defined. property";
                                                        }
                                                    }
                                                }
                                            } else {
                                                if (v1_27.zzjte != null) {
                                                    v1_32 = this.zza(v3_14.zzjsl.doubleValue(), v1_27.zzjte);
                                                } else {
                                                    v1_30 = this.zzayp().zzbaw();
                                                    v5_17 = "No number filter for double property. property";
                                                }
                                            }
                                            v1_39 = 0;
                                        } else {
                                            if (v1_27.zzjte != null) {
                                                v4_16 = p56;
                                                v1_32 = this.zza(v3_14.zzjum.longValue(), v1_27.zzjte);
                                            } else {
                                                v1_42 = this.zzayp().zzbaw();
                                                v5_19 = "No number filter for long property. property";
                                                v1_42.zzj(v5_19, this.zzayk().zzjr(v3_14.name));
                                                v1_39 = 0;
                                                v4_16 = p56;
                                            }
                                        }
                                    } else {
                                        v1_42 = this.zzayp().zzbaw();
                                        v5_19 = "Missing property filter. property";
                                    }
                                } else {
                                    this.zzayp().zzbba().zze("Property filter already evaluated true. audience ID, filter ID", Integer.valueOf(v6_10), v0_17.zzjsx);
                                    v0_23 = v49;
                                    v1_45 = v50;
                                    v4_9 = v51;
                                    v5_10 = v52;
                                    v8_25 = v53;
                                    v7_28 = p56;
                                }
                            } else {
                                this.zzayp().zzbaw().zze("Invalid property filter ID. appId, id", com.google.android.gms.internal.zzcjj.zzjs(p56), String.valueOf(v0_17.zzjsx));
                                v14_2.add(Integer.valueOf(v6_10));
                                v7_28 = p56;
                                v47_1 = v11_1;
                                v46_1 = v13_1;
                                v0_23 = v49;
                                v1_45 = v50;
                                v4_9 = v51;
                                v5_10 = v52;
                            }
                        }
                        v47_1 = v11_1;
                        v46_1 = v13_1;
                    } else {
                        this.zzayp().zzbba().zzj("Skipping failed audience ID", Integer.valueOf(v6_10));
                    }
                }
                v50 = v1_45;
                com.google.android.gms.internal.zzcob[] v13 = v46_1;
                com.google.android.gms.internal.zzcog[] v10 = this;
                v2_12++;
                v10_3 = p58;
            }
        }
        long v4_18 = v7_28;
        com.google.android.gms.internal.zzcob[] v13_2 = v46_1;
        String v11_3 = v47_1;
        int v1_50 = new com.google.android.gms.internal.zzcoa[v11_3.size()];
        int v2_23 = v11_3.keySet().iterator();
        String v8_12 = 0;
        while (v2_23.hasNext()) {
            String v0_56 = ((Integer) v2_23.next()).intValue();
            if (!v14_2.contains(Integer.valueOf(v0_56))) {
                com.google.android.gms.internal.zzcog v3_30 = ((com.google.android.gms.internal.zzcoa) v15_2.get(Integer.valueOf(v0_56)));
                if (v3_30 == null) {
                    v3_30 = new com.google.android.gms.internal.zzcoa();
                }
                String v5_27 = (v8_12 + 1);
                v1_50[v8_12] = v3_30;
                v3_30.zzjst = Integer.valueOf(v0_56);
                v3_30.zzjue = new com.google.android.gms.internal.zzcof();
                v3_30.zzjue.zzjvp = com.google.android.gms.internal.zzcno.zza(((java.util.BitSet) v11_3.get(Integer.valueOf(v0_56))));
                v3_30.zzjue.zzjvo = com.google.android.gms.internal.zzcno.zza(((java.util.BitSet) v13_2.get(Integer.valueOf(v0_56))));
                com.google.android.gms.internal.zzcog[] v6_5 = this.zzayj();
                com.google.android.gms.internal.zzcog v3_7 = v3_30.zzjue;
                v6_5.zzyk();
                v6_5.zzwj();
                com.google.android.gms.common.internal.zzbq.zzgv(p56);
                com.google.android.gms.common.internal.zzbq.checkNotNull(v3_7);
                try {
                    String v7_7 = new byte[v3_7.zzhs()];
                    try {
                        String v8_8 = com.google.android.gms.internal.zzflk.zzp(v7_7, 0, v7_7.length);
                        v3_7.zza(v8_8);
                        v8_8.zzcyx();
                        com.google.android.gms.internal.zzcog v3_9 = new android.content.ContentValues();
                        v3_9.put("app_id", v4_18);
                        v3_9.put("audience_id", Integer.valueOf(v0_56));
                        v3_9.put("current_results", v7_7);
                        try {
                            try {
                                if (v6_5.getWritableDatabase().insertWithOnConflict("audience_filter_values", 0, v3_9, 5) != -1) {
                                    v8_12 = v5_27;
                                } else {
                                    v6_5.zzayp().zzbau().zzj("Failed to insert filter results (got -1). appId", com.google.android.gms.internal.zzcjj.zzjs(p56));
                                }
                            } catch (String v0_8) {
                                com.google.android.gms.internal.zzcog v3_11 = v6_5.zzayp().zzbau();
                                com.google.android.gms.internal.zzcog[] v6_6 = "Error storing filter results. appId";
                                v3_11.zze(v6_6, com.google.android.gms.internal.zzcjj.zzjs(p56), v0_8);
                            }
                        } catch (String v0_8) {
                        }
                    } catch (String v0_8) {
                        v3_11 = v6_5.zzayp().zzbau();
                        v6_6 = "Configuration loss. Failed to serialize filter results. appId";
                    }
                } catch (String v0_8) {
                }
            }
        }
        return ((com.google.android.gms.internal.zzcoa[]) java.util.Arrays.copyOf(v1_50, v8_12));
    }

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


    static void zza(com.google.android.gms.internal.zzcjj p1, android.database.sqlite.SQLiteDatabase p2, String p3, String p4, String p5, String[] p6)
    {
        if (p1 == null) {
            throw new IllegalArgumentException("Monitor must not be null");
        } else {
            if (!com.google.android.gms.internal.zzcil.zza(p1, p2, p3)) {
                p2.execSQL(p4);
            }
            try {
                com.google.android.gms.internal.zzcil.zza(p1, p2, p3, p5, p6);
                return;
            } catch (android.database.sqlite.SQLiteException v2_1) {
                p1.zzbau().zzj("Failed to verify columns on table that was just created", p3);
                throw v2_1;
            }
        }
    }

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


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

Method com.telemed.ae.SQLiteServices.SQLiteAdapter.addChatMessages() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void addChatMessages(com.telemed.ae.model.Chat p6)
    {
        this.sqLiteHelper = new com.telemed.ae.SQLiteServices.SQLiteAdapter$SQLiteHelper(this.context, "Reminder_Db", 0, 2);
        android.database.sqlite.SQLiteDatabase v0_3 = this.sqLiteHelper.getWritableDatabase();
        android.content.ContentValues v1_2 = new android.content.ContentValues();
        v1_2.put("message", p6.getMessage());
        v1_2.put("name", p6.getName());
        v1_2.put("side", p6.getSide());
        v0_3.insert("SimpleChat", 0, v1_2);
        v0_3.close();
        return;
    }

Method com.telemed.ae.SQLiteServices.SQLiteAdapter.insert() calling method android.database.sqlite.SQLiteDatabase.insert()


    public Boolean insert(String[][] p9, String p10)
    {
        long v0_1 = new android.content.ContentValues();
        int v1_2 = this.getAllColumns(p10).iterator();
        while (v1_2.hasNext()) {
            long v2_2 = ((String) v1_2.next());
            int v5 = 0;
            while (v5 < p9.length) {
                if ((p9[v5][0].equalsIgnoreCase(v2_2)) && ((!p9[v5][1].equalsIgnoreCase("")) || (p9[v5][1] == null))) {
                    v0_1.put(v2_2, p9[v5][1]);
                }
                v5++;
            }
        }
        try {
            this.sqLiteDatabase.beginTransaction();
        } catch (Exception) {
            return Boolean.valueOf(0);
        }
        if (this.sqLiteDatabase.insert(p10, 0, v0_1) < 0) {
            this.sqLiteDatabase.setTransactionSuccessful();
            this.sqLiteDatabase.endTransaction();
            return Boolean.valueOf(0);
        } else {
            this.sqLiteDatabase.setTransactionSuccessful();
            this.sqLiteDatabase.endTransaction();
            return Boolean.valueOf(1);
        }
    }

Method com.telemed.ae.SQLiteServices.DatabaseHelper.addPushNotification() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void addPushNotification(String p4)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        android.content.ContentValues v1_1 = new android.content.ContentValues();
        v1_1.put("message", p4);
        v0.insert("NotificationList", 0, v1_1);
        v0.close();
        return;
    }

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


    private final void zzc(java.util.List p6, long p7)
    {
        android.database.sqlite.SQLiteDatabase v0_1 = this.zzlq("Error opening database for writeEntryToDatabase.");
        if (v0_1 != null) {
            java.util.Iterator v6_1 = p6.iterator();
            while (v6_1.hasNext()) {
                String v1_1 = ((com.google.android.gms.tagmanager.zzay) v6_1.next());
                android.content.ContentValues v2_1 = new android.content.ContentValues();
                v2_1.put("expires", Long.valueOf(p7));
                v2_1.put("key", v1_1.zzbkr);
                v2_1.put("value", v1_1.zzkpc);
                v0_1.insert("datalayer", 0, v2_1);
            }
            return;
        } else {
            return;
        }
    }

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


    public final void zzb(long p9, String p11)
    {
        android.database.sqlite.SQLiteDatabase v0_3 = this.zzata.currentTimeMillis();
        if (v0_3 > (this.zzkre + 86400000)) {
            this.zzkre = v0_3;
            android.database.sqlite.SQLiteDatabase v0_2 = this.zzlq("Error opening database for deleteStaleHits.");
            if (v0_2 != null) {
                android.content.ContentValues v1_3;
                String[] v7 = new String[1];
                v7[0] = Long.toString((this.zzata.currentTimeMillis() - 1.280618154e-314));
                v0_2.delete("gtm_hits", "HIT_TIME < ?", v7);
                if (this.zzbhe() != 0) {
                    v1_3 = 0;
                } else {
                    v1_3 = 1;
                }
                this.zzkrc.zzbz(v1_3);
            }
        }
        android.database.sqlite.SQLiteDatabase v0_7 = ((this.zzbhe() - this.zzkrf) + 1);
        if (v0_7 > null) {
            android.database.sqlite.SQLiteDatabase v0_8 = this.zzfe(v0_7);
            android.content.ContentValues v1_5 = v0_8.size();
            StringBuilder v4_5 = new StringBuilder(51);
            v4_5.append("Store full, deleting ");
            v4_5.append(v1_5);
            v4_5.append(" hits to make room.");
            com.google.android.gms.tagmanager.zzdj.v(v4_5.toString());
            android.content.ContentValues v1_8 = new String[0];
            this.zze(((String[]) v0_8.toArray(v1_8)));
        }
        android.database.sqlite.SQLiteDatabase v0_12 = this.zzlq("Error opening database for putHit");
        if (v0_12 != null) {
            android.content.ContentValues v1_10 = new android.content.ContentValues();
            v1_10.put("hit_time", Long.valueOf(p9));
            v1_10.put("hit_url", p11);
            v1_10.put("hit_first_send_time", Integer.valueOf(0));
            try {
                v0_12.insert("gtm_hits", 0, v1_10);
                this.zzkrc.zzbz(0);
                return;
            } catch (android.database.sqlite.SQLiteException) {
                com.google.android.gms.tagmanager.zzdj.zzcz("Error storing hit");
            }
        }
        return;
    }

Method com.google.android.gms.internal.zzart.zzc() calling method android.database.sqlite.SQLiteDatabase.insert()


    public final void zzc(com.google.android.gms.internal.zzasy p8)
    {
        com.google.android.gms.common.internal.zzbq.checkNotNull(p8);
        com.google.android.gms.analytics.zzk.zzwj();
        this.zzyk();
        com.google.android.gms.common.internal.zzbq.checkNotNull(p8);
        Long v0_3 = new android.net.Uri$Builder();
        android.database.sqlite.SQLiteDatabase v1_0 = p8.zzjq().entrySet().iterator();
        while (v1_0.hasNext()) {
            String v2_1 = ((java.util.Map$Entry) v1_0.next());
            int v3_1 = ((String) v2_1.getKey());
            if ((!"ht".equals(v3_1)) && ((!"qt".equals(v3_1)) && (!"AppUID".equals(v3_1)))) {
                v0_3.appendQueryParameter(v3_1, ((String) v2_1.getValue()));
            }
        }
        Long v0_1 = v0_3.build().getEncodedQuery();
        if (v0_1 == null) {
            v0_1 = "";
        }
        if (v0_1.length() <= 8192) {
            android.database.sqlite.SQLiteDatabase v1_5 = ((Integer) com.google.android.gms.internal.zzast.zzebq.get()).intValue();
            String v2_6 = this.zzyu();
            if (v2_6 > ((long) (v1_5 - 1))) {
                android.database.sqlite.SQLiteDatabase v1_6 = this.zzn(((v2_6 - ((long) v1_5)) + 1));
                this.zzd("Store full, deleting hits to make room, count", Integer.valueOf(v1_6.size()));
                this.zzs(v1_6);
            }
            int v3_10;
            android.database.sqlite.SQLiteDatabase v1_7 = this.getWritableDatabase();
            String v2_11 = new android.content.ContentValues();
            v2_11.put("hit_string", v0_1);
            v2_11.put("hit_time", Long.valueOf(p8.zzaan()));
            v2_11.put("hit_app_id", Integer.valueOf(p8.zzaal()));
            if (!p8.zzaap()) {
                v3_10 = com.google.android.gms.internal.zzasl.zzaac();
            } else {
                v3_10 = com.google.android.gms.internal.zzasl.zzaab();
            }
            v2_11.put("hit_url", v3_10);
            try {
                Long v0_8 = v1_7.insert("hits2", 0, v2_11);
            } catch (String v8_2) {
                this.zze("Error storing a hit", v8_2);
                return;
            }
            if (v0_8 != -1) {
                this.zzb("Hit saved to database. db-id, hit", Long.valueOf(v0_8), p8);
                return;
            } else {
                this.zzee("Failed to insert a hit (got -1)");
                return;
            }
        } else {
            this.zzxy().zza(p8, "Hit length exceeds the maximum allowed size");
            return;
        }
    }

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


    public final boolean zza(com.google.android.gms.internal.zzcis p9, long p10, boolean p12)
    {
        this.zzwj();
        this.zzyk();
        com.google.android.gms.common.internal.zzbq.checkNotNull(p9);
        com.google.android.gms.common.internal.zzbq.zzgv(p9.zzcm);
        long v0_6 = new com.google.android.gms.internal.zzcob();
        v0_6.zzjuk = Long.valueOf(p9.zzjhq);
        byte[] v1_2 = new com.google.android.gms.internal.zzcoc[p9.zzjhr.size()];
        v0_6.zzjui = v1_2;
        byte[] v1_4 = p9.zzjhr.iterator();
        String v3_2 = 0;
        while (v1_4.hasNext()) {
            Long v4_1 = ((String) v1_4.next());
            Integer v5_1 = new com.google.android.gms.internal.zzcoc();
            int v7 = (v3_2 + 1);
            v0_6.zzjui[v3_2] = v5_1;
            v5_1.name = v4_1;
            this.zzayl().zza(v5_1, p9.zzjhr.get(v4_1));
            v3_2 = v7;
        }
        try {
            byte[] v1_6 = new byte[v0_6.zzhs()];
            String v3_4 = com.google.android.gms.internal.zzflk.zzp(v1_6, 0, v1_6.length);
            v0_6.zza(v3_4);
            v3_4.zzcyx();
            this.zzayp().zzbba().zze("Saving event, name, data size", this.zzayk().zzjp(p9.name), Integer.valueOf(v1_6.length));
            long v0_4 = new android.content.ContentValues();
            v0_4.put("app_id", p9.zzcm);
            v0_4.put("name", p9.name);
            v0_4.put("timestamp", Long.valueOf(p9.timestamp));
            v0_4.put("metadata_fingerprint", Long.valueOf(p10));
            v0_4.put("data", v1_6);
            v0_4.put("realtime", Integer.valueOf(p12));
            try {
                if (this.getWritableDatabase().insert("raw_events", 0, v0_4) != -1) {
                    return 1;
                } else {
                    this.zzayp().zzbau().zzj("Failed to insert raw event (got -1). appId", com.google.android.gms.internal.zzcjj.zzjs(p9.zzcm));
                    return 0;
                }
            } catch (com.google.android.gms.internal.zzcjl v10_5) {
                String v11_3 = this.zzayp().zzbau();
                Object v12_3 = "Error storing raw event. appId";
                v11_3.zze(v12_3, com.google.android.gms.internal.zzcjj.zzjs(p9.zzcm), v10_5);
                return 0;
            }
        } catch (com.google.android.gms.internal.zzcjl v10_5) {
            v11_3 = this.zzayp().zzbau();
            v12_3 = "Data loss. Failed to serialize event params/data. appId";
            v11_3.zze(v12_3, com.google.android.gms.internal.zzcjj.zzjs(p9.zzcm), v10_5);
            return 0;
        }
    }

Method com.telemed.ae.SQLiteServices.SQLiteAdapter.update() calling method android.database.sqlite.SQLiteDatabase.update()


    public void update(String[][] p10, String p11, String[][] p12)
    {
        android.content.ContentValues v0_1 = new android.content.ContentValues();
        String v1_0 = "";
        StringBuilder v2_10 = this.getAllColumns(p11).iterator();
        while (v2_10.hasNext()) {
            String v3_1 = ((String) v2_10.next());
            int v6 = 0;
            while (v6 < p10.length) {
                if ((p10[v6][0].equalsIgnoreCase(v3_1)) && ((!p10[v6][1].equalsIgnoreCase("")) || (p10[v6][1] == 0))) {
                    v0_1.put(v3_1, p10[v6][1]);
                }
                v6++;
            }
        }
        int v10_1 = 0;
        while ((v10_1 < p12.length) && (p12.length > 0)) {
            if ((v10_1 != (p12.length - 1)) && (p12.length != 1)) {
                StringBuilder v2_6 = new StringBuilder();
                v2_6.append(v1_0);
                v2_6.append(p12[v10_1][0]);
                v2_6.append(" = ");
                v2_6.append(p12[v10_1][1]);
                v2_6.append(" && ");
                v1_0 = v2_6.toString();
            } else {
                StringBuilder v2_9 = new StringBuilder();
                v2_9.append(v1_0);
                v2_9.append(p12[v10_1][0]);
                v2_9.append(" = ");
                v2_9.append(p12[v10_1][1]);
                v1_0 = v2_9.toString();
            }
            v10_1++;
        }
        try {
            this.sqLiteDatabase.beginTransaction();
            this.sqLiteDatabase.update(p11, v0_1, v1_0, 0);
            this.sqLiteDatabase.setTransactionSuccessful();
        } catch (int v10_5) {
            this.sqLiteDatabase.endTransaction();
            throw v10_5;
        } catch (Exception) {
        }
        this.sqLiteDatabase.endTransaction();
        return;
    }

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


    public final boolean zza(com.google.android.gms.internal.zzcoe p8, boolean p9)
    {
        this.zzwj();
        this.zzyk();
        com.google.android.gms.common.internal.zzbq.checkNotNull(p8);
        com.google.android.gms.common.internal.zzbq.zzgv(p8.zzcm);
        com.google.android.gms.common.internal.zzbq.checkNotNull(p8.zzjuu);
        this.zzazy();
        int v0_0 = this.zzxx().currentTimeMillis();
        if ((p8.zzjuu.longValue() < (v0_0 - com.google.android.gms.internal.zzcik.zzazs())) || (p8.zzjuu.longValue() > (com.google.android.gms.internal.zzcik.zzazs() + v0_0))) {
            this.zzayp().zzbaw().zzd("Storing bundle outside of the max uploading time span. appId, now, timestamp", com.google.android.gms.internal.zzcjj.zzjs(p8.zzcm), Long.valueOf(v0_0), p8.zzjuu);
        }
        try {
            String v1_3 = new byte[p8.zzhs()];
            Object v2_9 = com.google.android.gms.internal.zzflk.zzp(v1_3, 0, v1_3.length);
            p8.zza(v2_9);
            v2_9.zzcyx();
            String v1_4 = this.zzayl().zzr(v1_3);
            this.zzayp().zzbba().zzj("Saving bundle, size", Integer.valueOf(v1_4.length));
            Object v2_14 = new android.content.ContentValues();
            v2_14.put("app_id", p8.zzcm);
            v2_14.put("bundle_end_timestamp", p8.zzjuu);
            v2_14.put("data", v1_4);
            v2_14.put("has_realtime", Integer.valueOf(p9));
            try {
                if (this.getWritableDatabase().insert("queue", 0, v2_14) != -1) {
                    return 1;
                } else {
                    this.zzayp().zzbau().zzj("Failed to insert bundle (got -1). appId", com.google.android.gms.internal.zzcjj.zzjs(p8.zzcm));
                    return 0;
                }
            } catch (com.google.android.gms.internal.zzcjl v9_4) {
                String v1_7 = this.zzayp().zzbau();
                Object v2_15 = "Error storing bundle. appId";
                v1_7.zze(v2_15, com.google.android.gms.internal.zzcjj.zzjs(p8.zzcm), v9_4);
                return 0;
            }
        } catch (com.google.android.gms.internal.zzcjl v9_4) {
            v1_7 = this.zzayp().zzbau();
            v2_15 = "Data loss. Failed to serialize bundle. appId";
            v1_7.zze(v2_15, com.google.android.gms.internal.zzcjj.zzjs(p8.zzcm), v9_4);
            return 0;
        }
    }

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

Couldn't retrieve source code

Method com.google.android.gms.internal.zzcjf.zzb() calling method android.database.sqlite.SQLiteDatabase.insertOrThrow()


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

Method com.telemed.ae.SQLiteServices.DatabaseHelper.checkDataBase() calling method android.database.sqlite.SQLiteDatabase.openDatabase()


    private boolean checkDataBase()
    {
        int v0 = 0;
        try {
            android.database.sqlite.SQLiteDatabase v2_2 = new StringBuilder();
            v2_2.append(com.telemed.ae.SQLiteServices.DatabaseHelper.DB_PATH);
            v2_2.append(com.telemed.ae.SQLiteServices.DatabaseHelper.DB_NAME);
            android.database.sqlite.SQLiteDatabase v1_1 = android.database.sqlite.SQLiteDatabase.openDatabase(v2_2.toString(), 0, 0);
        } catch (android.database.sqlite.SQLiteException) {
        }
        if (v1_1 != null) {
            v1_1.close();
        }
        if (v1_1 != null) {
            v0 = 1;
        }
        return v0;
    }

Method com.telemed.ae.SQLiteServices.DatabaseHelper.openDataBase() calling method android.database.sqlite.SQLiteDatabase.openDatabase()


    public void openDataBase()
    {
        android.database.sqlite.SQLiteDatabase v0_1 = new StringBuilder();
        v0_1.append(com.telemed.ae.SQLiteServices.DatabaseHelper.DB_PATH);
        v0_1.append(com.telemed.ae.SQLiteServices.DatabaseHelper.DB_NAME);
        this.myDataBase = android.database.sqlite.SQLiteDatabase.openDatabase(v0_1.toString(), 0, 0);
        return;
    }

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


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

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p6)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_11 = p6.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_11.moveToFirst();
                v0_11.close();
            } catch (android.database.sqlite.SQLiteException v6_5) {
                v0_11.close();
                throw v6_5;
            }
        }
        String v0_8;
        if (this.zza(p6, "hits2")) {
            String v0_4 = com.google.android.gms.internal.zzaru.zzb(p6, "hits2");
            int v2_1 = 0;
            while (v2_1 < 4) {
                String v3_2 = new String[] {"hit_id", "hit_string", "hit_time", "hit_url"})[v2_1];
                if (v0_4.remove(v3_2)) {
                    v2_1++;
                } else {
                    String v0_10;
                    String v1_7 = String.valueOf(v3_2);
                    if (v1_7.length() == 0) {
                        v0_10 = new String("Database hits2 is missing required column: ");
                    } else {
                        v0_10 = "Database hits2 is missing required column: ".concat(v1_7);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_10);
                }
            }
            String v1_5 = (v0_4.remove("hit_app_id") ^ 1);
            if (!v0_4.isEmpty()) {
                throw new android.database.sqlite.SQLiteException("Database hits2 has extra columns");
            } else {
                if (v1_5 != null) {
                    v0_8 = "ALTER TABLE hits2 ADD COLUMN hit_app_id INTEGER";
                    p6.execSQL(v0_8);
                }
            }
        } else {
            v0_8 = com.google.android.gms.internal.zzart.zzzc();
        }
        if (this.zza(p6, "properties")) {
            com.google.android.gms.internal.zzaru.zza(p6);
            return;
        } else {
            p6.execSQL("CREATE TABLE IF NOT EXISTS properties ( app_uid INTEGER NOT NULL, cid TEXT NOT NULL, tid TEXT NOT NULL, params TEXT NOT NULL, adid INTEGER NOT NULL, hits_count INTEGER NOT NULL, PRIMARY KEY (app_uid, cid, tid)) ;");
            return;
        }
    }

Method com.google.android.gms.internal.zzcio.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) {
            com.google.android.gms.internal.zzcil v0_9 = p8.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_9.moveToFirst();
                v0_9.close();
            } catch (Throwable v8_1) {
                v0_9.close();
                throw v8_1;
            }
        }
        com.google.android.gms.internal.zzcil.zza(this.zzjhj.zzayp(), p8, "events", "CREATE TABLE IF NOT EXISTS events ( app_id TEXT NOT NULL, name TEXT NOT NULL, lifetime_count INTEGER NOT NULL, current_bundle_count INTEGER NOT NULL, last_fire_timestamp INTEGER NOT NULL, PRIMARY KEY (app_id, name)) ;", "app_id,name,lifetime_count,current_bundle_count,last_fire_timestamp", com.google.android.gms.internal.zzcil.zzbaf());
        com.google.android.gms.internal.zzcil.zza(this.zzjhj.zzayp(), p8, "conditional_properties", "CREATE TABLE IF NOT EXISTS conditional_properties ( app_id TEXT NOT NULL, origin TEXT NOT NULL, name TEXT NOT NULL, value BLOB NOT NULL, creation_timestamp INTEGER NOT NULL, active INTEGER NOT NULL, trigger_event_name TEXT, trigger_timeout INTEGER NOT NULL, timed_out_event BLOB,triggered_event BLOB, triggered_timestamp INTEGER NOT NULL, time_to_live INTEGER NOT NULL, expired_event BLOB, PRIMARY KEY (app_id, name)) ;", "app_id,origin,name,value,active,trigger_event_name,trigger_timeout,creation_timestamp,timed_out_event,triggered_event,triggered_timestamp,time_to_live,expired_event", 0);
        com.google.android.gms.internal.zzcil.zza(this.zzjhj.zzayp(), p8, "user_attributes", "CREATE TABLE IF NOT EXISTS user_attributes ( app_id TEXT NOT NULL, name TEXT NOT NULL, set_timestamp INTEGER NOT NULL, value BLOB NOT NULL, PRIMARY KEY (app_id, name)) ;", "app_id,name,set_timestamp,value", com.google.android.gms.internal.zzcil.zzbag());
        com.google.android.gms.internal.zzcil.zza(this.zzjhj.zzayp(), p8, "apps", "CREATE TABLE IF NOT EXISTS apps ( app_id TEXT NOT NULL, app_instance_id TEXT, gmp_app_id TEXT, resettable_device_id_hash TEXT, last_bundle_index INTEGER NOT NULL, last_bundle_end_timestamp INTEGER NOT NULL, PRIMARY KEY (app_id)) ;", "app_id,app_instance_id,gmp_app_id,resettable_device_id_hash,last_bundle_index,last_bundle_end_timestamp", com.google.android.gms.internal.zzcil.zzbah());
        com.google.android.gms.internal.zzcil.zza(this.zzjhj.zzayp(), p8, "queue", "CREATE TABLE IF NOT EXISTS queue ( app_id TEXT NOT NULL, bundle_end_timestamp INTEGER NOT NULL, data BLOB NOT NULL);", "app_id,bundle_end_timestamp,data", com.google.android.gms.internal.zzcil.zzbai());
        com.google.android.gms.internal.zzcil.zza(this.zzjhj.zzayp(), p8, "raw_events_metadata", "CREATE TABLE IF NOT EXISTS raw_events_metadata ( app_id TEXT NOT NULL, metadata_fingerprint INTEGER NOT NULL, metadata BLOB NOT NULL, PRIMARY KEY (app_id, metadata_fingerprint));", "app_id,metadata_fingerprint,metadata", 0);
        com.google.android.gms.internal.zzcil.zza(this.zzjhj.zzayp(), p8, "raw_events", "CREATE TABLE IF NOT EXISTS raw_events ( app_id TEXT NOT NULL, name TEXT NOT NULL, timestamp INTEGER NOT NULL, metadata_fingerprint INTEGER NOT NULL, data BLOB NOT NULL);", "app_id,name,timestamp,metadata_fingerprint,data", com.google.android.gms.internal.zzcil.zzbaj());
        com.google.android.gms.internal.zzcil.zza(this.zzjhj.zzayp(), p8, "event_filters", "CREATE TABLE IF NOT EXISTS event_filters ( app_id TEXT NOT NULL, audience_id INTEGER NOT NULL, filter_id INTEGER NOT NULL, event_name TEXT NOT NULL, data BLOB NOT NULL, PRIMARY KEY (app_id, event_name, audience_id, filter_id));", "app_id,audience_id,filter_id,event_name,data", 0);
        com.google.android.gms.internal.zzcil.zza(this.zzjhj.zzayp(), p8, "property_filters", "CREATE TABLE IF NOT EXISTS property_filters ( app_id TEXT NOT NULL, audience_id INTEGER NOT NULL, filter_id INTEGER NOT NULL, property_name TEXT NOT NULL, data BLOB NOT NULL, PRIMARY KEY (app_id, property_name, audience_id, filter_id));", "app_id,audience_id,filter_id,property_name,data", 0);
        com.google.android.gms.internal.zzcil.zza(this.zzjhj.zzayp(), p8, "audience_filter_values", "CREATE TABLE IF NOT EXISTS audience_filter_values ( app_id TEXT NOT NULL, audience_id INTEGER NOT NULL, current_results BLOB, PRIMARY KEY (app_id, audience_id));", "app_id,audience_id,current_results", 0);
        com.google.android.gms.internal.zzcil.zza(this.zzjhj.zzayp(), p8, "app2", "CREATE TABLE IF NOT EXISTS app2 ( app_id TEXT NOT NULL, first_open_count INTEGER NOT NULL, PRIMARY KEY (app_id));", "app_id,first_open_count", com.google.android.gms.internal.zzcil.zzbak());
        com.google.android.gms.internal.zzcil.zza(this.zzjhj.zzayp(), p8, "main_event_params", "CREATE TABLE IF NOT EXISTS main_event_params ( app_id TEXT NOT NULL, event_id TEXT NOT NULL, children_to_process INTEGER NOT NULL, main_event BLOB NOT NULL, PRIMARY KEY (app_id));", "app_id,event_id,children_to_process,main_event", 0);
        return;
    }

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


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

Method com.google.android.gms.internal.zzckj.zzg() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final boolean zzg(String p53, long p54)
    {
        this.zzayj().beginTransaction();
        try {
            android.database.sqlite.SQLiteException v3_1 = 0;
            com.google.android.gms.internal.zzcjl v2_3 = new com.google.android.gms.internal.zzckj$zza(this, 0);
            String v4_55 = this.zzayj();
            com.google.android.gms.internal.zzcjl v5_98 = this.zzjox;
            com.google.android.gms.common.internal.zzbq.checkNotNull(v2_3);
            v4_55.zzwj();
            v4_55.zzyk();
            try {
                int v23;
                String v22;
                long v15_2 = v4_55.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        int v12_22;
                        if (v5_98 == -1) {
                            v12_22 = new String[] {0});
                        } else {
                            android.database.sqlite.SQLiteException v3_4 = new String[2];
                            v3_4[0] = 0;
                            v3_4[1] = String.valueOf(v5_98);
                            v12_22 = v3_4;
                        }
                        android.database.sqlite.SQLiteException v3_11;
                        if (v5_98 == -1) {
                            v3_11 = "";
                        } else {
                            v3_11 = " and rowid <= ?";
                        }
                        Boolean v14_11 = new StringBuilder((String.valueOf(v3_11).length() + 84));
                        v14_11.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_11.append(v3_11);
                        v14_11.append(" order by rowid limit 1;");
                        v3_1 = v15_2.rawQuery(v14_11.toString(), v12_22);
                        if (v3_1.moveToFirst()) {
                            com.google.android.gms.internal.zzcit v13_13 = v3_1.getString(0);
                            v3_1.close();
                            v23 = v3_1;
                            v22 = v13_13;
                            v3_1 = 0;
                            try {
                                int v12_6 = new String[2];
                                v12_6[0] = v3_1;
                                v12_6[1] = v22;
                                android.database.sqlite.SQLiteDatabase v25 = v15_2;
                                long v15_1 = v15_2.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_6, 0, 0, "rowid", "2");
                                try {
                                    if (v15_1.moveToFirst()) {
                                        int v12_9 = v15_1.getBlob(0);
                                        int v12_10 = com.google.android.gms.internal.zzflj.zzo(v12_9, 0, v12_9.length);
                                        com.google.android.gms.internal.zzcit v13_5 = new com.google.android.gms.internal.zzcoe();
                                        try {
                                            v13_5.zza(v12_10);
                                        } catch (java.io.IOException v0_6) {
                                            int v9_0 = v15_1;
                                            v4_55.zzayp().zzbau().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzcjj.zzjs(v3_1), v0_6);
                                            if (v9_0 == 0) {
                                                android.database.sqlite.SQLiteException v3_8;
                                                if (v2_3.zzaoz == null) {
                                                    v3_8 = 1;
                                                } else {
                                                    if (!v2_3.zzaoz.isEmpty()) {
                                                        v3_8 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_8 != null) {
                                                    this.zzayj().setTransactionSuccessful();
                                                    this.zzayj().endTransaction();
                                                    return 0;
                                                } else {
                                                    android.database.sqlite.SQLiteException v3_9 = v2_3.zzjpe;
                                                    String v4_4 = new com.google.android.gms.internal.zzcob[v2_3.zzaoz.size()];
                                                    v3_9.zzjuq = v4_4;
                                                    String v4_6 = this.zzjns.zzjh(v3_9.zzcm);
                                                    int v9_11 = 0;
                                                    int v12_1 = 0;
                                                    com.google.android.gms.internal.zzcit v13_1 = 0;
                                                    Boolean v14_0 = 0;
                                                    while (v9_11 < v2_3.zzaoz.size()) {
                                                        long v44_0;
                                                        com.google.android.gms.internal.zzcit v7_39 = ((com.google.android.gms.internal.zzcob) v2_3.zzaoz.get(v9_11));
                                                        if (!this.zzaym().zzan(v2_3.zzjpe.zzcm, v7_39.name)) {
                                                            com.google.android.gms.internal.zzcjl v5_103 = this.zzaym().zzao(v2_3.zzjpe.zzcm, v7_39.name);
                                                            if (v5_103 != null) {
                                                                if (v7_39.zzjui == null) {
                                                                    Boolean v8_53 = new com.google.android.gms.internal.zzcoc[0];
                                                                    v7_39.zzjui = v8_53;
                                                                }
                                                                String v6_33 = v7_39.zzjui;
                                                                Boolean v8_39 = v6_33.length;
                                                                int v10_18 = 0;
                                                                com.google.android.gms.internal.zzcil v11_6 = 0;
                                                                long v18_0 = 0;
                                                                while (v10_18 < v8_39) {
                                                                    int v32_1 = v8_39;
                                                                    Boolean v8_38 = v6_33[v10_18];
                                                                    int v33_1 = v6_33;
                                                                    int v34_1 = v12_1;
                                                                    if (!"_c".equals(v8_38.name)) {
                                                                        if ("_r".equals(v8_38.name)) {
                                                                            v8_38.zzjum = Long.valueOf(1);
                                                                            v18_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v8_38.zzjum = Long.valueOf(1);
                                                                        v11_6 = 1;
                                                                    }
                                                                    v10_18++;
                                                                    v8_39 = v32_1;
                                                                    v6_33 = v33_1;
                                                                    v12_1 = v34_1;
                                                                }
                                                                int v34_3 = v12_1;
                                                                if ((v11_6 == null) && (v5_103 != null)) {
                                                                    this.zzayp().zzbba().zzj("Marking event as conversion", this.zzayk().zzjp(v7_39.name));
                                                                    String v6_2 = ((com.google.android.gms.internal.zzcoc[]) java.util.Arrays.copyOf(v7_39.zzjui, (v7_39.zzjui.length + 1)));
                                                                    Boolean v8_4 = new com.google.android.gms.internal.zzcoc();
                                                                    v8_4.name = "_c";
                                                                    v8_4.zzjum = Long.valueOf(1);
                                                                    v6_2[(v6_2.length - 1)] = v8_4;
                                                                    v7_39.zzjui = v6_2;
                                                                }
                                                                if (v18_0 == 0) {
                                                                    this.zzayp().zzbba().zzj("Marking event as real-time", this.zzayk().zzjp(v7_39.name));
                                                                    String v6_7 = ((com.google.android.gms.internal.zzcoc[]) java.util.Arrays.copyOf(v7_39.zzjui, (v7_39.zzjui.length + 1)));
                                                                    Boolean v8_10 = new com.google.android.gms.internal.zzcoc();
                                                                    v8_10.name = "_r";
                                                                    v8_10.zzjum = Long.valueOf(1);
                                                                    v6_7[(v6_7.length - 1)] = v8_10;
                                                                    v7_39.zzjui = v6_7;
                                                                }
                                                                v44_0 = v9_11;
                                                                if (this.zzayj().zza(this.zzbbx(), v2_3.zzjpe.zzcm, 0, 0, 0, 0, 1).zzjhi <= ((long) this.zzjns.zzje(v2_3.zzjpe.zzcm))) {
                                                                    v12_1 = 1;
                                                                } else {
                                                                    String v6_14 = 0;
                                                                    while (v6_14 < v7_39.zzjui.length) {
                                                                        if (!"_r".equals(v7_39.zzjui[v6_14].name)) {
                                                                            v6_14++;
                                                                        } else {
                                                                            Boolean v8_21 = new com.google.android.gms.internal.zzcoc[(v7_39.zzjui.length - 1)];
                                                                            if (v6_14 > null) {
                                                                                System.arraycopy(v7_39.zzjui, 0, v8_21, 0, v6_14);
                                                                            }
                                                                            if (v6_14 < v8_21.length) {
                                                                                System.arraycopy(v7_39.zzjui, (v6_14 + 1), v8_21, v6_14, (v8_21.length - v6_14));
                                                                            }
                                                                            v7_39.zzjui = v8_21;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_1 = v34_3;
                                                                }
                                                                if ((com.google.android.gms.internal.zzcno.zzkh(v7_39.name)) && ((v5_103 != null) && (this.zzayj().zza(this.zzbbx(), v2_3.zzjpe.zzcm, 0, 0, 1, 0, 0).zzjhg > ((long) this.zzjns.zzb(v2_3.zzjpe.zzcm, com.google.android.gms.internal.zzciz.zzjja))))) {
                                                                    this.zzayp().zzbaw().zzj("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm));
                                                                    com.google.android.gms.internal.zzcjl v5_6 = v7_39.zzjui;
                                                                    String v6_18 = v5_6.length;
                                                                    Boolean v8_28 = 0;
                                                                    int v9_10 = 0;
                                                                    int v10_17 = 0;
                                                                    while (v8_28 < v6_18) {
                                                                        com.google.android.gms.internal.zzcil v11_5 = v5_6[v8_28];
                                                                        if (!"_c".equals(v11_5.name)) {
                                                                            if ("_err".equals(v11_5.name)) {
                                                                                v9_10 = 1;
                                                                            }
                                                                        } else {
                                                                            v10_17 = v11_5;
                                                                        }
                                                                        v8_28++;
                                                                    }
                                                                    if ((v9_10 == 0) || (v10_17 == 0)) {
                                                                        if (v10_17 == 0) {
                                                                            this.zzayp().zzbau().zzj("Did not find conversion parameter. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm));
                                                                        } else {
                                                                            v10_17.name = "_err";
                                                                            v10_17.zzjum = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.zzcjl v5_12 = v7_39.zzjui;
                                                                        Boolean v8_32 = new com.google.android.gms.internal.zzcoc[1];
                                                                        v8_32[0] = v10_17;
                                                                        v7_39.zzjui = ((com.google.android.gms.internal.zzcoc[]) com.google.android.gms.common.util.zzb.zza(v5_12, v8_32));
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzayl();
                                                                if (!com.google.android.gms.internal.zzcno.zzku(v7_39.name)) {
                                                                    v44_0 = v9_11;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v4_6 != null) && ("_e".equals(v7_39.name))) {
                                                                String v6_23;
                                                                com.google.android.gms.internal.zzcjl v5_25;
                                                                Boolean v8_35;
                                                                if (v7_39.zzjui == null) {
                                                                    v5_25 = this.zzayp().zzbaw();
                                                                    v6_23 = "Engagement event does not contain any parameters. appId";
                                                                    v8_35 = com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm);
                                                                } else {
                                                                    if (v7_39.zzjui.length != 0) {
                                                                        this.zzayl();
                                                                        com.google.android.gms.internal.zzcjl v5_22 = ((Long) com.google.android.gms.internal.zzcno.zzb(v7_39, "_et"));
                                                                        if (v5_22 != null) {
                                                                            v14_0 += v5_22.longValue();
                                                                            String v6_24 = (v13_1 + 1);
                                                                            v3_9.zzjuq[v13_1] = v7_39;
                                                                            v13_1 = v6_24;
                                                                            v9_11 = (v44_0 + 1);
                                                                            com.google.android.gms.internal.zzcil v11 = 1;
                                                                        } else {
                                                                            v5_25 = this.zzayp().zzbaw();
                                                                            v6_23 = "Engagement event does not include duration. appId";
                                                                            v8_35 = com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm);
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                v5_25.zzj(v6_23, v8_35);
                                                            }
                                                        } else {
                                                            com.google.android.gms.internal.zzcjl v5_38;
                                                            this.zzayp().zzbaw().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm), this.zzayk().zzjp(v7_39.name));
                                                            if (this.zzayl().zzks(v2_3.zzjpe.zzcm)) {
                                                                v5_38 = 1;
                                                            } else {
                                                                if (!this.zzayl().zzkt(v2_3.zzjpe.zzcm)) {
                                                                    v5_38 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_38 == null) && (!"_err".equals(v7_39.name))) {
                                                                this.zzayl().zza(v2_3.zzjpe.zzcm, 11, "_ev", v7_39.name, 0);
                                                            }
                                                            v44_0 = v9_11;
                                                        }
                                                    }
                                                    int v34_2 = v12_1;
                                                    if (v13_1 < v2_3.zzaoz.size()) {
                                                        v3_9.zzjuq = ((com.google.android.gms.internal.zzcob[]) java.util.Arrays.copyOf(v3_9.zzjuq, v13_1));
                                                    }
                                                    if (v4_6 != null) {
                                                        String v4_11;
                                                        String v4_8 = this.zzayj().zzag(v3_9.zzcm, "_lte");
                                                        if (v4_8 == null) {
                                                            v4_11 = new com.google.android.gms.internal.zzcnn;
                                                            v4_11(v3_9.zzcm, "auto", "_lte", this.zzdir.currentTimeMillis(), Long.valueOf(v14_0));
                                                        } else {
                                                            if (v4_8.value != null) {
                                                                com.google.android.gms.internal.zzcjl v5_58 = new com.google.android.gms.internal.zzcnn;
                                                                v5_58(v3_9.zzcm, "auto", "_lte", this.zzdir.currentTimeMillis(), Long.valueOf((((Long) v4_8.value).longValue() + v14_0)));
                                                                v4_11 = v5_58;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.internal.zzcjl v5_61 = new com.google.android.gms.internal.zzcog();
                                                        v5_61.name = "_lte";
                                                        v5_61.zzjvr = Long.valueOf(this.zzdir.currentTimeMillis());
                                                        v5_61.zzjum = ((Long) v4_11.value);
                                                        String v6_61 = 0;
                                                        while (v6_61 < v3_9.zzjur.length) {
                                                            if (!"_lte".equals(v3_9.zzjur[v6_61].name)) {
                                                                v6_61++;
                                                            } else {
                                                                v3_9.zzjur[v6_61] = v5_61;
                                                                String v6_62 = 1;
                                                            }
                                                            if (v6_62 == null) {
                                                                v3_9.zzjur = ((com.google.android.gms.internal.zzcog[]) java.util.Arrays.copyOf(v3_9.zzjur, (v3_9.zzjur.length + 1)));
                                                                v3_9.zzjur[(v2_3.zzjpe.zzjur.length - 1)] = v5_61;
                                                            }
                                                            if (v14_0 > 0) {
                                                                this.zzayj().zza(v4_11);
                                                                this.zzayp().zzbaz().zzj("Updated lifetime engagement user property with value. Value", v4_11.value);
                                                            }
                                                        }
                                                        v6_62 = 0;
                                                    }
                                                    int v12_30;
                                                    v3_9.zzjvh = this.zza(v3_9.zzcm, v3_9.zzjur, v3_9.zzjuq);
                                                    if ((!((Boolean) com.google.android.gms.internal.zzciz.zzjim.get()).booleanValue()) || (!"1".equals(this.zzjns.zzaym().zzam(v2_3.zzjpe.zzcm, "measurement.event_sampling_enabled")))) {
                                                        v12_30 = 0;
                                                    } else {
                                                        String v4_24 = new java.util.HashMap();
                                                        com.google.android.gms.internal.zzcjl v5_71 = new com.google.android.gms.internal.zzcob[v3_9.zzjuq.length];
                                                        String v6_71 = this.zzayl().zzbcr();
                                                        com.google.android.gms.internal.zzcit v7_18 = v3_9.zzjuq;
                                                        Boolean v8_49 = v7_18.length;
                                                        int v9_29 = 0;
                                                        int v10_23 = 0;
                                                        while (v9_29 < v8_49) {
                                                            long v49;
                                                            long v50;
                                                            int v12_46;
                                                            Object v51;
                                                            com.google.android.gms.internal.zzcil v11_10 = v7_18[v9_29];
                                                            if (!v11_10.name.equals("_ep")) {
                                                                int v12_39;
                                                                if (com.google.android.gms.internal.zzckj.zza(v11_10, "_dbg", Long.valueOf(1))) {
                                                                    v12_39 = 1;
                                                                } else {
                                                                    v12_39 = this.zzaym().zzap(v2_3.zzjpe.zzcm, v11_10.name);
                                                                }
                                                                if (v12_39 > 0) {
                                                                    com.google.android.gms.internal.zzcit v13_22 = ((com.google.android.gms.internal.zzcit) v4_24.get(v11_10.name));
                                                                    if (v13_22 == null) {
                                                                        v13_22 = this.zzayj().zzae(v2_3.zzjpe.zzcm, v11_10.name);
                                                                        if (v13_22 == null) {
                                                                            this.zzayp().zzbaw().zze("Event being bundled has no eventAggregate. appId, eventName", v2_3.zzjpe.zzcm, v11_10.name);
                                                                            com.google.android.gms.internal.zzcit v1_22 = new com.google.android.gms.internal.zzcit;
                                                                            v1_22(v2_3.zzjpe.zzcm, v11_10.name, 1, 1, v11_10.zzjuj.longValue(), 0, 0, 0, 0);
                                                                            v13_22 = v1_22;
                                                                        }
                                                                    }
                                                                    Boolean v14_17;
                                                                    this.zzayl();
                                                                    com.google.android.gms.internal.zzcit v1_25 = ((Long) com.google.android.gms.internal.zzcno.zzb(v11_10, "_eid"));
                                                                    if (v1_25 == null) {
                                                                        v14_17 = 0;
                                                                    } else {
                                                                        v14_17 = 1;
                                                                    }
                                                                    Boolean v14_18 = Boolean.valueOf(v14_17);
                                                                    if (v12_39 != 1) {
                                                                        if (v6_71.nextInt(v12_39) != 0) {
                                                                            v49 = v6_71;
                                                                            v50 = v7_18;
                                                                            if (Math.abs((v11_10.zzjuj.longValue() - v13_22.zzjhv)) < 86400000) {
                                                                                v51 = v8_49;
                                                                                if (!v14_18.booleanValue()) {
                                                                                } else {
                                                                                    v4_24.put(v11_10.name, v13_22.zza(v1_25, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.zzayl();
                                                                                v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_efs", Long.valueOf(1));
                                                                                this.zzayl();
                                                                                v51 = v8_49;
                                                                                com.google.android.gms.internal.zzcit v7_28 = ((long) v12_39);
                                                                                v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_sr", Long.valueOf(v7_28));
                                                                                com.google.android.gms.internal.zzcit v1_31 = (v10_23 + 1);
                                                                                v5_71[v10_23] = v11_10;
                                                                                if (v14_18.booleanValue()) {
                                                                                    v13_22 = v13_22.zza(0, Long.valueOf(v7_28), Boolean.valueOf(1));
                                                                                }
                                                                                v4_24.put(v11_10.name, v13_22.zzbc(v11_10.zzjuj.longValue()));
                                                                                v10_23 = v1_31;
                                                                            }
                                                                        } else {
                                                                            this.zzayl();
                                                                            v49 = v6_71;
                                                                            v50 = v7_18;
                                                                            String v6_89 = ((long) v12_39);
                                                                            v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_sr", Long.valueOf(v6_89));
                                                                            com.google.android.gms.internal.zzcit v1_34 = (v10_23 + 1);
                                                                            v5_71[v10_23] = v11_10;
                                                                            if (v14_18.booleanValue()) {
                                                                                v13_22 = v13_22.zza(0, Long.valueOf(v6_89), 0);
                                                                            }
                                                                            v4_24.put(v11_10.name, v13_22.zzbc(v11_10.zzjuj.longValue()));
                                                                            v10_23 = v1_34;
                                                                            v51 = v8_49;
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.zzcit v1_35 = (v10_23 + 1);
                                                                        v5_71[v10_23] = v11_10;
                                                                        if ((v14_18.booleanValue()) && ((v13_22.zzjhw != null) || ((v13_22.zzjhx != null) || (v13_22.zzjhy != null)))) {
                                                                            v4_24.put(v11_10.name, v13_22.zza(0, 0, 0));
                                                                        }
                                                                        v10_23 = v1_35;
                                                                        v49 = v6_71;
                                                                        v50 = v7_18;
                                                                    }
                                                                } else {
                                                                    this.zzayp().zzbaw().zze("Sample rate must be positive. event, rate", v11_10.name, Integer.valueOf(v12_39));
                                                                    v12_46 = (v10_23 + 1);
                                                                    v5_71[v10_23] = v11_10;
                                                                    v49 = v6_71;
                                                                    v50 = v7_18;
                                                                    v51 = v8_49;
                                                                    v10_23 = v12_46;
                                                                }
                                                            } else {
                                                                this.zzayl();
                                                                int v12_49 = ((String) com.google.android.gms.internal.zzcno.zzb(v11_10, "_en"));
                                                                com.google.android.gms.internal.zzcit v13_34 = ((com.google.android.gms.internal.zzcit) v4_24.get(v12_49));
                                                                if (v13_34 == null) {
                                                                    v13_34 = this.zzayj().zzae(v2_3.zzjpe.zzcm, v12_49);
                                                                    v4_24.put(v12_49, v13_34);
                                                                }
                                                                if (v13_34.zzjhw != null) {
                                                                } else {
                                                                    if (v13_34.zzjhx.longValue() > 1) {
                                                                        this.zzayl();
                                                                        v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_sr", v13_34.zzjhx);
                                                                    }
                                                                    if ((v13_34.zzjhy != null) && (v13_34.zzjhy.booleanValue())) {
                                                                        this.zzayl();
                                                                        v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_efs", Long.valueOf(1));
                                                                    }
                                                                    v12_46 = (v10_23 + 1);
                                                                    v5_71[v10_23] = v11_10;
                                                                }
                                                            }
                                                            v9_29++;
                                                            v6_71 = v49;
                                                            v7_18 = v50;
                                                            v8_49 = v51;
                                                        }
                                                        v12_30 = 0;
                                                        if (v10_23 < v3_9.zzjuq.length) {
                                                            v3_9.zzjuq = ((com.google.android.gms.internal.zzcob[]) java.util.Arrays.copyOf(v5_71, v10_23));
                                                        }
                                                        com.google.android.gms.internal.zzcit v1_11 = v4_24.entrySet().iterator();
                                                        while (v1_11.hasNext()) {
                                                            this.zzayj().zza(((com.google.android.gms.internal.zzcit) ((java.util.Map$Entry) v1_11.next()).getValue()));
                                                        }
                                                    }
                                                    v3_9.zzjut = Long.valueOf(nan);
                                                    v3_9.zzjuu = Long.valueOf(-0.0);
                                                    com.google.android.gms.internal.zzcit v1_14 = 0;
                                                    while (v1_14 < v3_9.zzjuq.length) {
                                                        String v4_49 = v3_9.zzjuq[v1_14];
                                                        if (v4_49.zzjuj.longValue() < v3_9.zzjut.longValue()) {
                                                            v3_9.zzjut = v4_49.zzjuj;
                                                        }
                                                        if (v4_49.zzjuj.longValue() > v3_9.zzjuu.longValue()) {
                                                            v3_9.zzjuu = v4_49.zzjuj;
                                                        }
                                                        v1_14++;
                                                    }
                                                    com.google.android.gms.internal.zzcit v1_16 = v2_3.zzjpe.zzcm;
                                                    String v4_31 = this.zzayj().zzjj(v1_16);
                                                    if (v4_31 != null) {
                                                        if (v3_9.zzjuq.length > 0) {
                                                            com.google.android.gms.internal.zzcit v7_20;
                                                            com.google.android.gms.internal.zzcjl v5_74 = v4_31.zzayw();
                                                            if (v5_74 == 0) {
                                                                v7_20 = v12_30;
                                                            } else {
                                                                v7_20 = Long.valueOf(v5_74);
                                                            }
                                                            v3_9.zzjuw = v7_20;
                                                            com.google.android.gms.internal.zzcit v7_21 = v4_31.zzayv();
                                                            if (v7_21 != 0) {
                                                                v5_74 = v7_21;
                                                            } else {
                                                            }
                                                            if (v5_74 != 0) {
                                                                v12_30 = Long.valueOf(v5_74);
                                                            }
                                                            v3_9.zzjuv = v12_30;
                                                            v4_31.zzazf();
                                                            v3_9.zzjvf = Integer.valueOf(((int) v4_31.zzazc()));
                                                            v4_31.zzal(v3_9.zzjut.longValue());
                                                            v4_31.zzam(v3_9.zzjuu.longValue());
                                                            v3_9.zzjgi = v4_31.zzazn();
                                                            this.zzayj().zza(v4_31);
                                                        }
                                                    } else {
                                                        this.zzayp().zzbau().zzj("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm));
                                                    }
                                                    if (v3_9.zzjuq.length > 0) {
                                                        String v4_38;
                                                        String v4_37 = this.zzaym().zzka(v2_3.zzjpe.zzcm);
                                                        if (v4_37 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v2_3.zzjpe.zzjfl)) {
                                                                this.zzayp().zzbaw().zzj("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm));
                                                            } else {
                                                                v4_38 = Long.valueOf(-1);
                                                                v3_9.zzjvm = v4_38;
                                                            }
                                                        } else {
                                                            if (v4_37.zzjtx != null) {
                                                                v4_38 = v4_37.zzjtx;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzayj().zza(v3_9, v34_2);
                                                    }
                                                    this.zzayj().zzai(v2_3.zzjpf);
                                                    com.google.android.gms.internal.zzcjl v2_5 = this.zzayj();
                                                    android.database.sqlite.SQLiteException v3_15 = v2_5.getWritableDatabase();
                                                    try {
                                                        com.google.android.gms.internal.zzcjl v5_91 = new String[2];
                                                        v5_91[0] = v1_16;
                                                        v5_91[1] = v1_16;
                                                        v3_15.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v5_91);
                                                    } catch (java.io.IOException v0_11) {
                                                        v2_5.zzayp().zzbau().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.zzcjj.zzjs(v1_16), v0_11);
                                                    }
                                                    this.zzayj().setTransactionSuccessful();
                                                    this.zzayj().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v9_0.close();
                                            }
                                        } catch (java.io.IOException v0_2) {
                                        }
                                        if (v15_1.moveToNext()) {
                                            v4_55.zzayp().zzbaw().zzj("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzcjj.zzjs(v3_1));
                                        }
                                        com.google.android.gms.internal.zzcjl v5_44;
                                        String[] v16_2;
                                        v15_1.close();
                                        v2_3.zzb(v13_5);
                                        if (v5_98 == -1) {
                                            v5_44 = "app_id = ? and metadata_fingerprint = ?";
                                            int v9_15 = new String[2];
                                            v9_15[0] = v3_1;
                                            v9_15[1] = v22;
                                            v16_2 = v9_15;
                                        } else {
                                            int v12_16 = new String[3];
                                            v12_16[0] = v3_1;
                                            v12_16[1] = v22;
                                            v12_16[2] = String.valueOf(v5_98);
                                            v5_44 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_2 = v12_16;
                                        }
                                        v9_0 = v15_1;
                                        com.google.android.gms.internal.zzcjl v5_46 = v25.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_44, v16_2, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_46.moveToFirst()) {
                                                do {
                                                    int v12_19 = v5_46.getLong(0);
                                                    int v9_19 = v5_46.getBlob(3);
                                                    int v9_20 = com.google.android.gms.internal.zzflj.zzo(v9_19, 0, v9_19.length);
                                                    Boolean v14_8 = new com.google.android.gms.internal.zzcob();
                                                    v14_8.zza(v9_20);
                                                    v14_8.name = v5_46.getString(1);
                                                    v14_8.zzjuj = Long.valueOf(v5_46.getLong(2));
                                                    if (v2_3.zza(v12_19, v14_8)) {
                                                    } else {
                                                        if (v5_46 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_46.moveToNext());
                                                if (v5_46 == null) {
                                                }
                                            } else {
                                                v4_55.zzayp().zzbaw().zzj("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzcjj.zzjs(v3_1));
                                                if (v5_46 == null) {
                                                }
                                            }
                                        } catch (java.io.IOException v0_9) {
                                            com.google.android.gms.internal.zzcit v1_1 = v0_9;
                                            String[] v21 = v5_46;
                                            if (v21 != null) {
                                                v21.close();
                                            }
                                            throw v1_1;
                                        } catch (java.io.IOException v0_2) {
                                            int v12_0 = v3_1;
                                            v9_0 = v5_46;
                                            android.database.sqlite.SQLiteException v3_0 = v0_2;
                                            v4_55.zzayp().zzbau().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzcjj.zzjs(v12_0), v3_0);
                                            if (v9_0 == 0) {
                                            }
                                        }
                                        v5_46.close();
                                    } else {
                                        v4_55.zzayp().zzbau().zzj("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzcjj.zzjs(v3_1));
                                        if (v15_1 == 0) {
                                        } else {
                                            v15_1.close();
                                        }
                                    }
                                } catch (java.io.IOException v0_7) {
                                    v9_0 = v15_1;
                                    v1_1 = v0_7;
                                    v21 = v9_0;
                                } catch (java.io.IOException v0_2) {
                                    v9_0 = v15_1;
                                } catch (java.io.IOException v0_10) {
                                    v1_1 = v0_10;
                                    v21 = v15_1;
                                } catch (java.io.IOException v0_2) {
                                    v12_0 = v3_1;
                                    v9_0 = v15_1;
                                }
                                v12_0 = v3_1;
                            } catch (java.io.IOException v0_5) {
                                v1_1 = v0_5;
                                v21 = v23;
                            } catch (java.io.IOException v0_2) {
                                v12_0 = v3_1;
                                v9_0 = v23;
                            }
                        } else {
                            if (v3_1 == null) {
                            } else {
                            }
                        }
                    } else {
                        try {
                            int v12_34;
                            if (v5_98 == -1) {
                                v12_34 = new String[1];
                                v12_34[0] = String.valueOf(p54);
                            } else {
                                v12_34 = new String[2];
                                v12_34[0] = String.valueOf(v5_98);
                                v12_34[1] = String.valueOf(p54);
                            }
                        } catch (java.io.IOException v0_2) {
                            v9_0 = 0;
                            v12_0 = 0;
                        }
                        com.google.android.gms.internal.zzcit v13_30;
                        if (v5_98 == -1) {
                            v13_30 = "";
                        } else {
                            v13_30 = "rowid <= ? and ";
                        }
                        android.database.sqlite.SQLiteException v3_18 = new StringBuilder((String.valueOf(v13_30).length() + 148));
                        v3_18.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_18.append(v13_30);
                        v3_18.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_1 = v15_2.rawQuery(v3_18.toString(), v12_34);
                        if (v3_1.moveToFirst()) {
                            v12_0 = v3_1.getString(0);
                            try {
                                com.google.android.gms.internal.zzcit v13_0 = v3_1.getString(1);
                                v3_1.close();
                                v23 = v3_1;
                                v3_1 = v12_0;
                                v22 = v13_0;
                            } catch (java.io.IOException v0_2) {
                                v9_0 = v3_1;
                            }
                        } else {
                            if (v3_1 == null) {
                            }
                        }
                    }
                } catch (java.io.IOException v0_3) {
                    v1_1 = v0_3;
                    v21 = v3_1;
                } catch (java.io.IOException v0_2) {
                    v9_0 = v3_1;
                    v12_0 = 0;
                }
                v3_1.close();
            } catch (java.io.IOException v0_1) {
                v1_1 = v0_1;
                v21 = 0;
            } catch (java.io.IOException v0_0) {
                v3_0 = v0_0;
                v9_0 = 0;
                v12_0 = 0;
            } catch (java.io.IOException v0_7) {
            }
        } catch (java.io.IOException v0_4) {
            com.google.android.gms.internal.zzcit v1_2 = v0_4;
            this.zzayj().endTransaction();
            throw v1_2;
        }
    }

Method com.google.android.gms.internal.zzckj.zzg() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final boolean zzg(String p53, long p54)
    {
        this.zzayj().beginTransaction();
        try {
            android.database.sqlite.SQLiteException v3_1 = 0;
            com.google.android.gms.internal.zzcjl v2_3 = new com.google.android.gms.internal.zzckj$zza(this, 0);
            String v4_55 = this.zzayj();
            com.google.android.gms.internal.zzcjl v5_98 = this.zzjox;
            com.google.android.gms.common.internal.zzbq.checkNotNull(v2_3);
            v4_55.zzwj();
            v4_55.zzyk();
            try {
                String v22;
                int v23;
                long v15_2 = v4_55.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        int v12_22;
                        if (v5_98 == -1) {
                            v12_22 = new String[] {0});
                        } else {
                            android.database.sqlite.SQLiteException v3_4 = new String[2];
                            v3_4[0] = 0;
                            v3_4[1] = String.valueOf(v5_98);
                            v12_22 = v3_4;
                        }
                        android.database.sqlite.SQLiteException v3_11;
                        if (v5_98 == -1) {
                            v3_11 = "";
                        } else {
                            v3_11 = " and rowid <= ?";
                        }
                        Boolean v14_11 = new StringBuilder((String.valueOf(v3_11).length() + 84));
                        v14_11.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_11.append(v3_11);
                        v14_11.append(" order by rowid limit 1;");
                        v3_1 = v15_2.rawQuery(v14_11.toString(), v12_22);
                        if (v3_1.moveToFirst()) {
                            com.google.android.gms.internal.zzcit v13_13 = v3_1.getString(0);
                            v3_1.close();
                            v23 = v3_1;
                            v22 = v13_13;
                            v3_1 = 0;
                            try {
                                int v12_6 = new String[2];
                                v12_6[0] = v3_1;
                                v12_6[1] = v22;
                                android.database.sqlite.SQLiteDatabase v25 = v15_2;
                                long v15_1 = v15_2.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_6, 0, 0, "rowid", "2");
                                try {
                                    if (v15_1.moveToFirst()) {
                                        int v12_9 = v15_1.getBlob(0);
                                        int v12_10 = com.google.android.gms.internal.zzflj.zzo(v12_9, 0, v12_9.length);
                                        com.google.android.gms.internal.zzcit v13_5 = new com.google.android.gms.internal.zzcoe();
                                        try {
                                            v13_5.zza(v12_10);
                                        } catch (java.io.IOException v0_6) {
                                            int v9_0 = v15_1;
                                            v4_55.zzayp().zzbau().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzcjj.zzjs(v3_1), v0_6);
                                            if (v9_0 == 0) {
                                                android.database.sqlite.SQLiteException v3_8;
                                                if (v2_3.zzaoz == null) {
                                                    v3_8 = 1;
                                                } else {
                                                    if (!v2_3.zzaoz.isEmpty()) {
                                                        v3_8 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_8 != null) {
                                                    this.zzayj().setTransactionSuccessful();
                                                    this.zzayj().endTransaction();
                                                    return 0;
                                                } else {
                                                    android.database.sqlite.SQLiteException v3_9 = v2_3.zzjpe;
                                                    String v4_4 = new com.google.android.gms.internal.zzcob[v2_3.zzaoz.size()];
                                                    v3_9.zzjuq = v4_4;
                                                    String v4_6 = this.zzjns.zzjh(v3_9.zzcm);
                                                    int v9_11 = 0;
                                                    int v12_1 = 0;
                                                    com.google.android.gms.internal.zzcit v13_1 = 0;
                                                    Boolean v14_0 = 0;
                                                    while (v9_11 < v2_3.zzaoz.size()) {
                                                        long v44_0;
                                                        com.google.android.gms.internal.zzcit v7_39 = ((com.google.android.gms.internal.zzcob) v2_3.zzaoz.get(v9_11));
                                                        if (!this.zzaym().zzan(v2_3.zzjpe.zzcm, v7_39.name)) {
                                                            com.google.android.gms.internal.zzcjl v5_103 = this.zzaym().zzao(v2_3.zzjpe.zzcm, v7_39.name);
                                                            if (v5_103 != null) {
                                                                if (v7_39.zzjui == null) {
                                                                    Boolean v8_53 = new com.google.android.gms.internal.zzcoc[0];
                                                                    v7_39.zzjui = v8_53;
                                                                }
                                                                String v6_33 = v7_39.zzjui;
                                                                Boolean v8_39 = v6_33.length;
                                                                int v10_18 = 0;
                                                                com.google.android.gms.internal.zzcil v11_6 = 0;
                                                                long v18_0 = 0;
                                                                while (v10_18 < v8_39) {
                                                                    int v32_1 = v8_39;
                                                                    Boolean v8_38 = v6_33[v10_18];
                                                                    int v33_1 = v6_33;
                                                                    int v34_1 = v12_1;
                                                                    if (!"_c".equals(v8_38.name)) {
                                                                        if ("_r".equals(v8_38.name)) {
                                                                            v8_38.zzjum = Long.valueOf(1);
                                                                            v18_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v8_38.zzjum = Long.valueOf(1);
                                                                        v11_6 = 1;
                                                                    }
                                                                    v10_18++;
                                                                    v8_39 = v32_1;
                                                                    v6_33 = v33_1;
                                                                    v12_1 = v34_1;
                                                                }
                                                                int v34_3 = v12_1;
                                                                if ((v11_6 == null) && (v5_103 != null)) {
                                                                    this.zzayp().zzbba().zzj("Marking event as conversion", this.zzayk().zzjp(v7_39.name));
                                                                    String v6_2 = ((com.google.android.gms.internal.zzcoc[]) java.util.Arrays.copyOf(v7_39.zzjui, (v7_39.zzjui.length + 1)));
                                                                    Boolean v8_4 = new com.google.android.gms.internal.zzcoc();
                                                                    v8_4.name = "_c";
                                                                    v8_4.zzjum = Long.valueOf(1);
                                                                    v6_2[(v6_2.length - 1)] = v8_4;
                                                                    v7_39.zzjui = v6_2;
                                                                }
                                                                if (v18_0 == 0) {
                                                                    this.zzayp().zzbba().zzj("Marking event as real-time", this.zzayk().zzjp(v7_39.name));
                                                                    String v6_7 = ((com.google.android.gms.internal.zzcoc[]) java.util.Arrays.copyOf(v7_39.zzjui, (v7_39.zzjui.length + 1)));
                                                                    Boolean v8_10 = new com.google.android.gms.internal.zzcoc();
                                                                    v8_10.name = "_r";
                                                                    v8_10.zzjum = Long.valueOf(1);
                                                                    v6_7[(v6_7.length - 1)] = v8_10;
                                                                    v7_39.zzjui = v6_7;
                                                                }
                                                                v44_0 = v9_11;
                                                                if (this.zzayj().zza(this.zzbbx(), v2_3.zzjpe.zzcm, 0, 0, 0, 0, 1).zzjhi <= ((long) this.zzjns.zzje(v2_3.zzjpe.zzcm))) {
                                                                    v12_1 = 1;
                                                                } else {
                                                                    String v6_14 = 0;
                                                                    while (v6_14 < v7_39.zzjui.length) {
                                                                        if (!"_r".equals(v7_39.zzjui[v6_14].name)) {
                                                                            v6_14++;
                                                                        } else {
                                                                            Boolean v8_21 = new com.google.android.gms.internal.zzcoc[(v7_39.zzjui.length - 1)];
                                                                            if (v6_14 > null) {
                                                                                System.arraycopy(v7_39.zzjui, 0, v8_21, 0, v6_14);
                                                                            }
                                                                            if (v6_14 < v8_21.length) {
                                                                                System.arraycopy(v7_39.zzjui, (v6_14 + 1), v8_21, v6_14, (v8_21.length - v6_14));
                                                                            }
                                                                            v7_39.zzjui = v8_21;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_1 = v34_3;
                                                                }
                                                                if ((com.google.android.gms.internal.zzcno.zzkh(v7_39.name)) && ((v5_103 != null) && (this.zzayj().zza(this.zzbbx(), v2_3.zzjpe.zzcm, 0, 0, 1, 0, 0).zzjhg > ((long) this.zzjns.zzb(v2_3.zzjpe.zzcm, com.google.android.gms.internal.zzciz.zzjja))))) {
                                                                    this.zzayp().zzbaw().zzj("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm));
                                                                    com.google.android.gms.internal.zzcjl v5_6 = v7_39.zzjui;
                                                                    String v6_18 = v5_6.length;
                                                                    Boolean v8_28 = 0;
                                                                    int v9_10 = 0;
                                                                    int v10_17 = 0;
                                                                    while (v8_28 < v6_18) {
                                                                        com.google.android.gms.internal.zzcil v11_5 = v5_6[v8_28];
                                                                        if (!"_c".equals(v11_5.name)) {
                                                                            if ("_err".equals(v11_5.name)) {
                                                                                v9_10 = 1;
                                                                            }
                                                                        } else {
                                                                            v10_17 = v11_5;
                                                                        }
                                                                        v8_28++;
                                                                    }
                                                                    if ((v9_10 == 0) || (v10_17 == 0)) {
                                                                        if (v10_17 == 0) {
                                                                            this.zzayp().zzbau().zzj("Did not find conversion parameter. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm));
                                                                        } else {
                                                                            v10_17.name = "_err";
                                                                            v10_17.zzjum = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.zzcjl v5_12 = v7_39.zzjui;
                                                                        Boolean v8_32 = new com.google.android.gms.internal.zzcoc[1];
                                                                        v8_32[0] = v10_17;
                                                                        v7_39.zzjui = ((com.google.android.gms.internal.zzcoc[]) com.google.android.gms.common.util.zzb.zza(v5_12, v8_32));
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzayl();
                                                                if (!com.google.android.gms.internal.zzcno.zzku(v7_39.name)) {
                                                                    v44_0 = v9_11;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v4_6 != null) && ("_e".equals(v7_39.name))) {
                                                                com.google.android.gms.internal.zzcjl v5_25;
                                                                Boolean v8_35;
                                                                String v6_23;
                                                                if (v7_39.zzjui == null) {
                                                                    v5_25 = this.zzayp().zzbaw();
                                                                    v6_23 = "Engagement event does not contain any parameters. appId";
                                                                    v8_35 = com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm);
                                                                } else {
                                                                    if (v7_39.zzjui.length != 0) {
                                                                        this.zzayl();
                                                                        com.google.android.gms.internal.zzcjl v5_22 = ((Long) com.google.android.gms.internal.zzcno.zzb(v7_39, "_et"));
                                                                        if (v5_22 != null) {
                                                                            v14_0 += v5_22.longValue();
                                                                            String v6_24 = (v13_1 + 1);
                                                                            v3_9.zzjuq[v13_1] = v7_39;
                                                                            v13_1 = v6_24;
                                                                            v9_11 = (v44_0 + 1);
                                                                            com.google.android.gms.internal.zzcil v11 = 1;
                                                                        } else {
                                                                            v5_25 = this.zzayp().zzbaw();
                                                                            v6_23 = "Engagement event does not include duration. appId";
                                                                            v8_35 = com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm);
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                v5_25.zzj(v6_23, v8_35);
                                                            }
                                                        } else {
                                                            com.google.android.gms.internal.zzcjl v5_38;
                                                            this.zzayp().zzbaw().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm), this.zzayk().zzjp(v7_39.name));
                                                            if (this.zzayl().zzks(v2_3.zzjpe.zzcm)) {
                                                                v5_38 = 1;
                                                            } else {
                                                                if (!this.zzayl().zzkt(v2_3.zzjpe.zzcm)) {
                                                                    v5_38 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_38 == null) && (!"_err".equals(v7_39.name))) {
                                                                this.zzayl().zza(v2_3.zzjpe.zzcm, 11, "_ev", v7_39.name, 0);
                                                            }
                                                            v44_0 = v9_11;
                                                        }
                                                    }
                                                    int v34_2 = v12_1;
                                                    if (v13_1 < v2_3.zzaoz.size()) {
                                                        v3_9.zzjuq = ((com.google.android.gms.internal.zzcob[]) java.util.Arrays.copyOf(v3_9.zzjuq, v13_1));
                                                    }
                                                    if (v4_6 != null) {
                                                        String v4_11;
                                                        String v4_8 = this.zzayj().zzag(v3_9.zzcm, "_lte");
                                                        if (v4_8 == null) {
                                                            v4_11 = new com.google.android.gms.internal.zzcnn;
                                                            v4_11(v3_9.zzcm, "auto", "_lte", this.zzdir.currentTimeMillis(), Long.valueOf(v14_0));
                                                        } else {
                                                            if (v4_8.value != null) {
                                                                com.google.android.gms.internal.zzcjl v5_58 = new com.google.android.gms.internal.zzcnn;
                                                                v5_58(v3_9.zzcm, "auto", "_lte", this.zzdir.currentTimeMillis(), Long.valueOf((((Long) v4_8.value).longValue() + v14_0)));
                                                                v4_11 = v5_58;
                                                            } else {
                                                            }
                                                        }
                                                        com.google.android.gms.internal.zzcjl v5_61 = new com.google.android.gms.internal.zzcog();
                                                        v5_61.name = "_lte";
                                                        v5_61.zzjvr = Long.valueOf(this.zzdir.currentTimeMillis());
                                                        v5_61.zzjum = ((Long) v4_11.value);
                                                        String v6_61 = 0;
                                                        while (v6_61 < v3_9.zzjur.length) {
                                                            if (!"_lte".equals(v3_9.zzjur[v6_61].name)) {
                                                                v6_61++;
                                                            } else {
                                                                v3_9.zzjur[v6_61] = v5_61;
                                                                String v6_62 = 1;
                                                            }
                                                            if (v6_62 == null) {
                                                                v3_9.zzjur = ((com.google.android.gms.internal.zzcog[]) java.util.Arrays.copyOf(v3_9.zzjur, (v3_9.zzjur.length + 1)));
                                                                v3_9.zzjur[(v2_3.zzjpe.zzjur.length - 1)] = v5_61;
                                                            }
                                                            if (v14_0 > 0) {
                                                                this.zzayj().zza(v4_11);
                                                                this.zzayp().zzbaz().zzj("Updated lifetime engagement user property with value. Value", v4_11.value);
                                                            }
                                                        }
                                                        v6_62 = 0;
                                                    }
                                                    int v12_30;
                                                    v3_9.zzjvh = this.zza(v3_9.zzcm, v3_9.zzjur, v3_9.zzjuq);
                                                    if ((!((Boolean) com.google.android.gms.internal.zzciz.zzjim.get()).booleanValue()) || (!"1".equals(this.zzjns.zzaym().zzam(v2_3.zzjpe.zzcm, "measurement.event_sampling_enabled")))) {
                                                        v12_30 = 0;
                                                    } else {
                                                        String v4_24 = new java.util.HashMap();
                                                        com.google.android.gms.internal.zzcjl v5_71 = new com.google.android.gms.internal.zzcob[v3_9.zzjuq.length];
                                                        String v6_71 = this.zzayl().zzbcr();
                                                        com.google.android.gms.internal.zzcit v7_18 = v3_9.zzjuq;
                                                        Boolean v8_49 = v7_18.length;
                                                        int v9_29 = 0;
                                                        int v10_23 = 0;
                                                        while (v9_29 < v8_49) {
                                                            long v49;
                                                            long v50;
                                                            Object v51;
                                                            int v12_46;
                                                            com.google.android.gms.internal.zzcil v11_10 = v7_18[v9_29];
                                                            if (!v11_10.name.equals("_ep")) {
                                                                int v12_39;
                                                                if (com.google.android.gms.internal.zzckj.zza(v11_10, "_dbg", Long.valueOf(1))) {
                                                                    v12_39 = 1;
                                                                } else {
                                                                    v12_39 = this.zzaym().zzap(v2_3.zzjpe.zzcm, v11_10.name);
                                                                }
                                                                if (v12_39 > 0) {
                                                                    com.google.android.gms.internal.zzcit v13_22 = ((com.google.android.gms.internal.zzcit) v4_24.get(v11_10.name));
                                                                    if (v13_22 == null) {
                                                                        v13_22 = this.zzayj().zzae(v2_3.zzjpe.zzcm, v11_10.name);
                                                                        if (v13_22 == null) {
                                                                            this.zzayp().zzbaw().zze("Event being bundled has no eventAggregate. appId, eventName", v2_3.zzjpe.zzcm, v11_10.name);
                                                                            com.google.android.gms.internal.zzcit v1_22 = new com.google.android.gms.internal.zzcit;
                                                                            v1_22(v2_3.zzjpe.zzcm, v11_10.name, 1, 1, v11_10.zzjuj.longValue(), 0, 0, 0, 0);
                                                                            v13_22 = v1_22;
                                                                        }
                                                                    }
                                                                    Boolean v14_17;
                                                                    this.zzayl();
                                                                    com.google.android.gms.internal.zzcit v1_25 = ((Long) com.google.android.gms.internal.zzcno.zzb(v11_10, "_eid"));
                                                                    if (v1_25 == null) {
                                                                        v14_17 = 0;
                                                                    } else {
                                                                        v14_17 = 1;
                                                                    }
                                                                    Boolean v14_18 = Boolean.valueOf(v14_17);
                                                                    if (v12_39 != 1) {
                                                                        if (v6_71.nextInt(v12_39) != 0) {
                                                                            v49 = v6_71;
                                                                            v50 = v7_18;
                                                                            if (Math.abs((v11_10.zzjuj.longValue() - v13_22.zzjhv)) < 86400000) {
                                                                                v51 = v8_49;
                                                                                if (!v14_18.booleanValue()) {
                                                                                } else {
                                                                                    v4_24.put(v11_10.name, v13_22.zza(v1_25, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.zzayl();
                                                                                v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_efs", Long.valueOf(1));
                                                                                this.zzayl();
                                                                                v51 = v8_49;
                                                                                com.google.android.gms.internal.zzcit v7_28 = ((long) v12_39);
                                                                                v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_sr", Long.valueOf(v7_28));
                                                                                com.google.android.gms.internal.zzcit v1_31 = (v10_23 + 1);
                                                                                v5_71[v10_23] = v11_10;
                                                                                if (v14_18.booleanValue()) {
                                                                                    v13_22 = v13_22.zza(0, Long.valueOf(v7_28), Boolean.valueOf(1));
                                                                                }
                                                                                v4_24.put(v11_10.name, v13_22.zzbc(v11_10.zzjuj.longValue()));
                                                                                v10_23 = v1_31;
                                                                            }
                                                                        } else {
                                                                            this.zzayl();
                                                                            v49 = v6_71;
                                                                            v50 = v7_18;
                                                                            String v6_89 = ((long) v12_39);
                                                                            v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_sr", Long.valueOf(v6_89));
                                                                            com.google.android.gms.internal.zzcit v1_34 = (v10_23 + 1);
                                                                            v5_71[v10_23] = v11_10;
                                                                            if (v14_18.booleanValue()) {
                                                                                v13_22 = v13_22.zza(0, Long.valueOf(v6_89), 0);
                                                                            }
                                                                            v4_24.put(v11_10.name, v13_22.zzbc(v11_10.zzjuj.longValue()));
                                                                            v10_23 = v1_34;
                                                                            v51 = v8_49;
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.zzcit v1_35 = (v10_23 + 1);
                                                                        v5_71[v10_23] = v11_10;
                                                                        if ((v14_18.booleanValue()) && ((v13_22.zzjhw != null) || ((v13_22.zzjhx != null) || (v13_22.zzjhy != null)))) {
                                                                            v4_24.put(v11_10.name, v13_22.zza(0, 0, 0));
                                                                        }
                                                                        v10_23 = v1_35;
                                                                        v49 = v6_71;
                                                                        v50 = v7_18;
                                                                    }
                                                                } else {
                                                                    this.zzayp().zzbaw().zze("Sample rate must be positive. event, rate", v11_10.name, Integer.valueOf(v12_39));
                                                                    v12_46 = (v10_23 + 1);
                                                                    v5_71[v10_23] = v11_10;
                                                                    v49 = v6_71;
                                                                    v50 = v7_18;
                                                                    v51 = v8_49;
                                                                    v10_23 = v12_46;
                                                                }
                                                            } else {
                                                                this.zzayl();
                                                                int v12_49 = ((String) com.google.android.gms.internal.zzcno.zzb(v11_10, "_en"));
                                                                com.google.android.gms.internal.zzcit v13_34 = ((com.google.android.gms.internal.zzcit) v4_24.get(v12_49));
                                                                if (v13_34 == null) {
                                                                    v13_34 = this.zzayj().zzae(v2_3.zzjpe.zzcm, v12_49);
                                                                    v4_24.put(v12_49, v13_34);
                                                                }
                                                                if (v13_34.zzjhw != null) {
                                                                } else {
                                                                    if (v13_34.zzjhx.longValue() > 1) {
                                                                        this.zzayl();
                                                                        v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_sr", v13_34.zzjhx);
                                                                    }
                                                                    if ((v13_34.zzjhy != null) && (v13_34.zzjhy.booleanValue())) {
                                                                        this.zzayl();
                                                                        v11_10.zzjui = com.google.android.gms.internal.zzcno.zza(v11_10.zzjui, "_efs", Long.valueOf(1));
                                                                    }
                                                                    v12_46 = (v10_23 + 1);
                                                                    v5_71[v10_23] = v11_10;
                                                                }
                                                            }
                                                            v9_29++;
                                                            v6_71 = v49;
                                                            v7_18 = v50;
                                                            v8_49 = v51;
                                                        }
                                                        v12_30 = 0;
                                                        if (v10_23 < v3_9.zzjuq.length) {
                                                            v3_9.zzjuq = ((com.google.android.gms.internal.zzcob[]) java.util.Arrays.copyOf(v5_71, v10_23));
                                                        }
                                                        com.google.android.gms.internal.zzcit v1_11 = v4_24.entrySet().iterator();
                                                        while (v1_11.hasNext()) {
                                                            this.zzayj().zza(((com.google.android.gms.internal.zzcit) ((java.util.Map$Entry) v1_11.next()).getValue()));
                                                        }
                                                    }
                                                    v3_9.zzjut = Long.valueOf(nan);
                                                    v3_9.zzjuu = Long.valueOf(-0.0);
                                                    com.google.android.gms.internal.zzcit v1_14 = 0;
                                                    while (v1_14 < v3_9.zzjuq.length) {
                                                        String v4_49 = v3_9.zzjuq[v1_14];
                                                        if (v4_49.zzjuj.longValue() < v3_9.zzjut.longValue()) {
                                                            v3_9.zzjut = v4_49.zzjuj;
                                                        }
                                                        if (v4_49.zzjuj.longValue() > v3_9.zzjuu.longValue()) {
                                                            v3_9.zzjuu = v4_49.zzjuj;
                                                        }
                                                        v1_14++;
                                                    }
                                                    com.google.android.gms.internal.zzcit v1_16 = v2_3.zzjpe.zzcm;
                                                    String v4_31 = this.zzayj().zzjj(v1_16);
                                                    if (v4_31 != null) {
                                                        if (v3_9.zzjuq.length > 0) {
                                                            com.google.android.gms.internal.zzcit v7_20;
                                                            com.google.android.gms.internal.zzcjl v5_74 = v4_31.zzayw();
                                                            if (v5_74 == 0) {
                                                                v7_20 = v12_30;
                                                            } else {
                                                                v7_20 = Long.valueOf(v5_74);
                                                            }
                                                            v3_9.zzjuw = v7_20;
                                                            com.google.android.gms.internal.zzcit v7_21 = v4_31.zzayv();
                                                            if (v7_21 != 0) {
                                                                v5_74 = v7_21;
                                                            } else {
                                                            }
                                                            if (v5_74 != 0) {
                                                                v12_30 = Long.valueOf(v5_74);
                                                            }
                                                            v3_9.zzjuv = v12_30;
                                                            v4_31.zzazf();
                                                            v3_9.zzjvf = Integer.valueOf(((int) v4_31.zzazc()));
                                                            v4_31.zzal(v3_9.zzjut.longValue());
                                                            v4_31.zzam(v3_9.zzjuu.longValue());
                                                            v3_9.zzjgi = v4_31.zzazn();
                                                            this.zzayj().zza(v4_31);
                                                        }
                                                    } else {
                                                        this.zzayp().zzbau().zzj("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm));
                                                    }
                                                    if (v3_9.zzjuq.length > 0) {
                                                        String v4_38;
                                                        String v4_37 = this.zzaym().zzka(v2_3.zzjpe.zzcm);
                                                        if (v4_37 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v2_3.zzjpe.zzjfl)) {
                                                                this.zzayp().zzbaw().zzj("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzcjj.zzjs(v2_3.zzjpe.zzcm));
                                                            } else {
                                                                v4_38 = Long.valueOf(-1);
                                                                v3_9.zzjvm = v4_38;
                                                            }
                                                        } else {
                                                            if (v4_37.zzjtx != null) {
                                                                v4_38 = v4_37.zzjtx;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzayj().zza(v3_9, v34_2);
                                                    }
                                                    this.zzayj().zzai(v2_3.zzjpf);
                                                    com.google.android.gms.internal.zzcjl v2_5 = this.zzayj();
                                                    android.database.sqlite.SQLiteException v3_15 = v2_5.getWritableDatabase();
                                                    try {
                                                        com.google.android.gms.internal.zzcjl v5_91 = new String[2];
                                                        v5_91[0] = v1_16;
                                                        v5_91[1] = v1_16;
                                                        v3_15.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v5_91);
                                                    } catch (java.io.IOException v0_11) {
                                                        v2_5.zzayp().zzbau().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.zzcjj.zzjs(v1_16), v0_11);
                                                    }
                                                    this.zzayj().setTransactionSuccessful();
                                                    this.zzayj().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v9_0.close();
                                            }
                                        } catch (java.io.IOException v0_2) {
                                        }
                                        if (v15_1.moveToNext()) {
                                            v4_55.zzayp().zzbaw().zzj("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzcjj.zzjs(v3_1));
                                        }
                                        com.google.android.gms.internal.zzcjl v5_44;
                                        String[] v16_2;
                                        v15_1.close();
                                        v2_3.zzb(v13_5);
                                        if (v5_98 == -1) {
                                            v5_44 = "app_id = ? and metadata_fingerprint = ?";
                                            int v9_15 = new String[2];
                                            v9_15[0] = v3_1;
                                            v9_15[1] = v22;
                                            v16_2 = v9_15;
                                        } else {
                                            int v12_16 = new String[3];
                                            v12_16[0] = v3_1;
                                            v12_16[1] = v22;
                                            v12_16[2] = String.valueOf(v5_98);
                                            v5_44 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_2 = v12_16;
                                        }
                                        v9_0 = v15_1;
                                        com.google.android.gms.internal.zzcjl v5_46 = v25.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_44, v16_2, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_46.moveToFirst()) {
                                                do {
                                                    int v12_19 = v5_46.getLong(0);
                                                    int v9_19 = v5_46.getBlob(3);
                                                    int v9_20 = com.google.android.gms.internal.zzflj.zzo(v9_19, 0, v9_19.length);
                                                    Boolean v14_8 = new com.google.android.gms.internal.zzcob();
                                                    v14_8.zza(v9_20);
                                                    v14_8.name = v5_46.getString(1);
                                                    v14_8.zzjuj = Long.valueOf(v5_46.getLong(2));
                                                    if (v2_3.zza(v12_19, v14_8)) {
                                                    } else {
                                                        if (v5_46 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_46.moveToNext());
                                                if (v5_46 == null) {
                                                }
                                            } else {
                                                v4_55.zzayp().zzbaw().zzj("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzcjj.zzjs(v3_1));
                                                if (v5_46 == null) {
                                                }
                                            }
                                        } catch (java.io.IOException v0_9) {
                                            com.google.android.gms.internal.zzcit v1_1 = v0_9;
                                            String[] v21 = v5_46;
                                            if (v21 != null) {
                                                v21.close();
                                            }
                                            throw v1_1;
                                        } catch (java.io.IOException v0_2) {
                                            int v12_0 = v3_1;
                                            v9_0 = v5_46;
                                            android.database.sqlite.SQLiteException v3_0 = v0_2;
                                            v4_55.zzayp().zzbau().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzcjj.zzjs(v12_0), v3_0);
                                            if (v9_0 == 0) {
                                            }
                                        }
                                        v5_46.close();
                                    } else {
                                        v4_55.zzayp().zzbau().zzj("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzcjj.zzjs(v3_1));
                                        if (v15_1 == 0) {
                                        } else {
                                            v15_1.close();
                                        }
                                    }
                                } catch (java.io.IOException v0_7) {
                                    v9_0 = v15_1;
                                    v1_1 = v0_7;
                                    v21 = v9_0;
                                } catch (java.io.IOException v0_2) {
                                    v9_0 = v15_1;
                                } catch (java.io.IOException v0_10) {
                                    v1_1 = v0_10;
                                    v21 = v15_1;
                                } catch (java.io.IOException v0_2) {
                                    v12_0 = v3_1;
                                    v9_0 = v15_1;
                                }
                                v12_0 = v3_1;
                            } catch (java.io.IOException v0_5) {
                                v1_1 = v0_5;
                                v21 = v23;
                            } catch (java.io.IOException v0_2) {
                                v12_0 = v3_1;
                                v9_0 = v23;
                            }
                        } else {
                            if (v3_1 == null) {
                            } else {
                            }
                        }
                    } else {
                        try {
                            int v12_34;
                            if (v5_98 == -1) {
                                v12_34 = new String[1];
                                v12_34[0] = String.valueOf(p54);
                            } else {
                                v12_34 = new String[2];
                                v12_34[0] = String.valueOf(v5_98);
                                v12_34[1] = String.valueOf(p54);
                            }
                        } catch (java.io.IOException v0_2) {
                            v9_0 = 0;
                            v12_0 = 0;
                        }
                        com.google.android.gms.internal.zzcit v13_30;
                        if (v5_98 == -1) {
                            v13_30 = "";
                        } else {
                            v13_30 = "rowid <= ? and ";
                        }
                        android.database.sqlite.SQLiteException v3_18 = new StringBuilder((String.valueOf(v13_30).length() + 148));
                        v3_18.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_18.append(v13_30);
                        v3_18.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_1 = v15_2.rawQuery(v3_18.toString(), v12_34);
                        if (v3_1.moveToFirst()) {
                            v12_0 = v3_1.getString(0);
                            try {
                                com.google.android.gms.internal.zzcit v13_0 = v3_1.getString(1);
                                v3_1.close();
                                v23 = v3_1;
                                v3_1 = v12_0;
                                v22 = v13_0;
                            } catch (java.io.IOException v0_2) {
                                v9_0 = v3_1;
                            }
                        } else {
                            if (v3_1 == null) {
                            }
                        }
                    }
                } catch (java.io.IOException v0_3) {
                    v1_1 = v0_3;
                    v21 = v3_1;
                } catch (java.io.IOException v0_2) {
                    v9_0 = v3_1;
                    v12_0 = 0;
                }
                v3_1.close();
            } catch (java.io.IOException v0_1) {
                v1_1 = v0_1;
                v21 = 0;
            } catch (java.io.IOException v0_0) {
                v3_0 = v0_0;
                v9_0 = 0;
                v12_0 = 0;
            } catch (java.io.IOException v0_7) {
            }
        } catch (java.io.IOException v0_4) {
            com.google.android.gms.internal.zzcit v1_2 = v0_4;
            this.zzayj().endTransaction();
            throw v1_2;
        }
    }

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


    private static void zza(android.database.sqlite.SQLiteDatabase p5, String p6, java.util.List p7)
    {
        int v1_4 = new StringBuilder((String.valueOf(p6).length() + 22));
        v1_4.append("SELECT * FROM ");
        v1_4.append(p6);
        v1_4.append(" WHERE 0");
        android.database.sqlite.SQLiteException v5_1 = p5.rawQuery(v1_4.toString(), 0);
        Object[] v0_4 = new java.util.HashSet();
        try {
            int v1_1 = v5_1.getColumnNames();
            boolean v3_0 = 0;
        } catch (String v6_1) {
            v5_1.close();
            throw v6_1;
        }
        while (v3_0 < v1_1.length) {
            v0_4.add(v1_1[v3_0]);
            v3_0++;
        }
        v5_1.close();
        android.database.sqlite.SQLiteException v5_2 = p7.iterator();
        while (v5_2.hasNext()) {
            Object[] v7_4 = ((String) v5_2.next());
            if (!v0_4.remove(v7_4)) {
                Object[] v0_8 = new Object[2];
                v0_8[0] = v7_4;
                v0_8[1] = p6;
                throw new android.database.sqlite.SQLiteException(String.format("Database column %s missing in table %s.", v0_8));
            }
        }
        if (!v0_4.isEmpty()) {
            Object[] v7_2 = new Object[1];
            v7_2[0] = p6;
            throw new android.database.sqlite.SQLiteException(String.format("Database has extra columns in table %s.", v7_2));
        } else {
            return;
        }
    }

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p10)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_15 = p10.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_15.moveToFirst();
                v0_15.close();
            } catch (Throwable v10_1) {
                v0_15.close();
                throw v10_1;
            }
        }
        if (com.google.android.gms.internal.zzdaq.zza("gtm_hit_unique_ids", p10)) {
            com.google.android.gms.internal.zzdaq.zza(p10, "gtm_hit_unique_ids", java.util.Arrays.asList(new String[] {"hit_unique_id"})));
        } else {
            p10.execSQL(com.google.android.gms.internal.zzdao.zzbhg());
        }
        if (com.google.android.gms.internal.zzdaq.zza("gtm_hits", p10)) {
            String v3 = "hit_time";
            String v5 = "hit_method";
            String v7 = "hit_headers";
            com.google.android.gms.internal.zzdaq.zza(p10, "gtm_hits", java.util.Arrays.asList(new String[] {"hit_id", "hit_body"})));
        } else {
            p10.execSQL(com.google.android.gms.internal.zzdao.zzbiw());
        }
        p10.execSQL(com.google.android.gms.internal.zzdao.zzbix());
        p10.execSQL(com.google.android.gms.internal.zzdao.zzbiy());
        return;
    }

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


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

Method com.google.android.gms.internal.zzedk.zzah() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


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

Method com.google.android.gms.internal.zzedk.zzbvl() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


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

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


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

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


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

Method com.google.android.gms.tagmanager.zzec.zzbhe() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


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

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


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

Method com.google.android.gms.internal.zzart.zzc() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


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

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


    private final long zza(String p3, String[] p4, long p5)
    {
        com.google.android.gms.internal.zzcjl v1 = 0;
        try {
            com.google.android.gms.internal.zzcjl v4_3 = this.getWritableDatabase().rawQuery(p3, p4);
            try {
                if (!v4_3.moveToFirst()) {
                    if (v4_3 != null) {
                        v4_3.close();
                    }
                    return p5;
                } else {
                    long v5_2 = v4_3.getLong(0);
                    if (v4_3 != null) {
                        v4_3.close();
                    }
                    return v5_2;
                }
            } catch (Throwable v3_1) {
                v1 = v4_3;
                if (v1 != null) {
                    v1.close();
                }
                throw v3_1;
            } catch (long v5_3) {
                v1 = v4_3;
                this.zzayp().zzbau().zze("Database error", p3, v5_3);
                throw v5_3;
            }
        } catch (Throwable v3_1) {
        } catch (long v5_3) {
        }
    }

Method com.google.android.gms.internal.zzcil.zzc() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


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

Method com.google.android.gms.internal.zzcil.zzazw() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


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

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


    public final android.util.Pair zzb(String p8, Long p9)
    {
        this.zzwj();
        this.zzyk();
        try {
            int v1_1 = this.getWritableDatabase();
            com.google.android.gms.internal.zzcjl v3_4 = new String[2];
            v3_4[0] = p8;
            v3_4[1] = String.valueOf(p9);
            int v1_0 = v1_1.rawQuery("select main_event, children_to_process from main_event_params where app_id=? and event_id=?", v3_4);
            try {
                if (v1_0.moveToFirst()) {
                    java.io.IOException v2_1 = v1_0.getBlob(0);
                    com.google.android.gms.internal.zzcjl v3_0 = Long.valueOf(v1_0.getLong(1));
                    java.io.IOException v2_2 = com.google.android.gms.internal.zzflj.zzo(v2_1, 0, v2_1.length);
                    String v4_1 = new com.google.android.gms.internal.zzcob();
                    try {
                        v4_1.zza(v2_2);
                    } catch (java.io.IOException v2_3) {
                        this.zzayp().zzbau().zzd("Failed to merge main event. appId, eventId", com.google.android.gms.internal.zzcjj.zzjs(p8), p9, v2_3);
                        if (v1_0 != 0) {
                            v1_0.close();
                        }
                        return 0;
                    }
                    Object v8_4 = android.util.Pair.create(v4_1, v3_0);
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return v8_4;
                } else {
                    this.zzayp().zzbba().log("Main event not found");
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return 0;
                }
            } catch (Object v8_1) {
                this.zzayp().zzbau().zzj("Error selecting main event", v8_1);
                if (v1_0 != 0) {
                    v1_0.close();
                }
                return 0;
            }
        } catch (Object v8_2) {
            v1_0 = 0;
            if (v1_0 != 0) {
                v1_0.close();
            }
            throw v8_2;
        } catch (Object v8_1) {
            v1_0 = 0;
        } catch (Object v8_2) {
        }
    }

Method com.google.android.gms.internal.zzcil.zzba() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final String zzba(long p5)
    {
        this.zzwj();
        this.zzyk();
        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.zzayp().zzbba().log("No expired configs for apps with pending events");
                    if (v5_1 != 0) {
                        v5_1.close();
                    }
                    return 0;
                }
            } catch (String v6_1) {
                this.zzayp().zzbau().zzj("Error selecting expired configs", v6_1);
                if (v5_1 != 0) {
                    v5_1.close();
                }
                return 0;
            }
        } catch (String v6_2) {
            v5_1 = 0;
            if (v5_1 != 0) {
                v5_1.close();
            }
            throw v6_2;
        } catch (String v6_1) {
            v5_1 = 0;
        } catch (String v6_2) {
        }
    }

Method com.google.android.gms.internal.zzcil.zzbad() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final long zzbad()
    {
        int v2_0 = 0;
        try {
            android.database.sqlite.SQLiteException v3_2 = this.getWritableDatabase().rawQuery("select rowid from raw_events order by rowid desc limit 1;", 0);
            try {
                if (v3_2.moveToFirst()) {
                    long v4_0 = v3_2.getLong(0);
                    if (v3_2 != null) {
                        v3_2.close();
                    }
                    return v4_0;
                } else {
                    if (v3_2 != null) {
                        v3_2.close();
                    }
                    return -1;
                }
            } catch (Throwable v0_1) {
                v2_0 = v3_2;
                if (v2_0 != 0) {
                    v2_0.close();
                }
                throw v0_1;
            } catch (int v2_2) {
                android.database.sqlite.SQLiteException v3_0 = v2_2;
                v2_0 = v3_2;
                this.zzayp().zzbau().zzj("Error querying raw events", v3_0);
                if (v2_0 != 0) {
                    v2_0.close();
                }
                return -1;
            }
        } catch (Throwable v0_1) {
        } catch (android.database.sqlite.SQLiteException v3_0) {
        }
    }

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


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

Method com.telemed.ae.SQLiteServices.SQLiteAdapter.update() calling method android.database.sqlite.SQLiteDatabase.update()


    public void update(android.content.ContentValues p4, String p5, String p6, String p7)
    {
        try {
            this.sqLiteDatabase.beginTransaction();
            android.database.sqlite.SQLiteDatabase v0_1 = this.sqLiteDatabase;
            String[] v1_3 = new StringBuilder();
            v1_3.append(p6);
            v1_3.append("=?");
            String v6_2 = v1_3.toString();
            String[] v1_1 = new String[1];
            v1_1[0] = p7;
            v0_1.update(p5, p4, v6_2, v1_1);
            this.sqLiteDatabase.setTransactionSuccessful();
        } catch (android.database.sqlite.SQLiteDatabase v4_2) {
            this.sqLiteDatabase.endTransaction();
            this.sqLiteDatabase.close();
            throw v4_2;
        } catch (Exception) {
        }
        this.sqLiteDatabase.endTransaction();
        this.sqLiteDatabase.close();
        return;
    }

Method com.google.android.gms.internal.zzdao.zzh() calling method android.database.sqlite.SQLiteDatabase.update()


    private final void zzh(long p6, long p8)
    {
        StringBuilder v0_1 = this.zzlq("Error opening database for getNumStoredHits.");
        if (v0_1 != null) {
            android.content.ContentValues v1_1 = new android.content.ContentValues();
            v1_1.put("hit_first_send_time", Long.valueOf(p8));
            try {
                String[] v2_1 = new String[1];
                v2_1[0] = String.valueOf(p6);
                v0_1.update("gtm_hits", v1_1, "hit_id=?", v2_1);
                return;
            } catch (String v8_2) {
                String v8_3 = v8_2.getMessage();
                StringBuilder v0_3 = new StringBuilder((String.valueOf(v8_3).length() + 70));
                v0_3.append("Error setting HIT_FIRST_DISPATCH_TIME for hitId ");
                v0_3.append(p6);
                v0_3.append(": ");
                v0_3.append(v8_3);
                com.google.android.gms.internal.zzdal.zzcz(v0_3.toString());
                this.zzp(p6);
                return;
            }
        } else {
            return;
        }
    }

Method com.google.android.gms.tagmanager.zzec.zzh() calling method android.database.sqlite.SQLiteDatabase.update()


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

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


    public final com.google.android.gms.internal.zzcim zza(long p16, String p18, boolean p19, boolean p20, boolean p21, boolean p22, boolean p23)
    {
        com.google.android.gms.common.internal.zzbq.zzgv(p18);
        this.zzwj();
        this.zzyk();
        String v2_1 = new String[1];
        v2_1[0] = p18;
        com.google.android.gms.internal.zzcim v4_1 = new com.google.android.gms.internal.zzcim();
        String v5_8 = 0;
        try {
            android.database.sqlite.SQLiteDatabase v14 = this.getWritableDatabase();
            String[] v10 = "daily_public_events_count";
            int v12 = "daily_error_events_count";
            v10 = new String[1];
            v10[0] = p18;
            int v6_1 = v14.query("apps", new String[] {"day", "daily_realtime_events_count"}), "app_id=?", v10, 0, 0, 0);
            try {
                if (v6_1.moveToFirst()) {
                    if (v6_1.getLong(0) == p16) {
                        v4_1.zzjhf = v6_1.getLong(1);
                        v4_1.zzjhe = v6_1.getLong(2);
                        v4_1.zzjhg = v6_1.getLong(3);
                        v4_1.zzjhh = v6_1.getLong(4);
                        v4_1.zzjhi = v6_1.getLong(5);
                    }
                    if (p19) {
                        v4_1.zzjhf = (v4_1.zzjhf + 1);
                    }
                    if (p20) {
                        v4_1.zzjhe = (v4_1.zzjhe + 1);
                    }
                    if (p21) {
                        v4_1.zzjhg = (v4_1.zzjhg + 1);
                    }
                    if (p22) {
                        v4_1.zzjhh = (v4_1.zzjhh + 1);
                    }
                    if (p23) {
                        v4_1.zzjhi = (v4_1.zzjhi + 1);
                    }
                    android.content.ContentValues v0_1 = new android.content.ContentValues();
                    v0_1.put("day", Long.valueOf(p16));
                    v0_1.put("daily_public_events_count", Long.valueOf(v4_1.zzjhe));
                    v0_1.put("daily_events_count", Long.valueOf(v4_1.zzjhf));
                    v0_1.put("daily_conversions_count", Long.valueOf(v4_1.zzjhg));
                    v0_1.put("daily_error_events_count", Long.valueOf(v4_1.zzjhh));
                    v0_1.put("daily_realtime_events_count", Long.valueOf(v4_1.zzjhi));
                    v14.update("apps", v0_1, "app_id=?", v2_1);
                    if (v6_1 != 0) {
                        v6_1.close();
                    }
                    return v4_1;
                } else {
                    this.zzayp().zzbaw().zzj("Not updating daily counts, app is not known. appId", com.google.android.gms.internal.zzcjj.zzjs(p18));
                    if (v6_1 != 0) {
                        v6_1.close();
                    }
                    return v4_1;
                }
            } catch (android.content.ContentValues v0_10) {
                if (v6_1 != 0) {
                    v6_1.close();
                }
                throw v0_10;
            } catch (android.content.ContentValues v0_5) {
                v5_8 = v6_1;
                this.zzayp().zzbau().zze("Error updating daily counts. appId", com.google.android.gms.internal.zzcjj.zzjs(p18), v0_5);
                if (v5_8 != null) {
                    v5_8.close();
                }
                return v4_1;
            }
        } catch (android.content.ContentValues v0_10) {
            v6_1 = v5_8;
        } catch (android.content.ContentValues v0_5) {
        }
    }

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


    public final void zza(com.google.android.gms.internal.zzcie p8)
    {
        com.google.android.gms.common.internal.zzbq.checkNotNull(p8);
        this.zzwj();
        this.zzyk();
        com.google.android.gms.internal.zzcjl v0_5 = new android.content.ContentValues();
        v0_5.put("app_id", p8.getAppId());
        v0_5.put("app_instance_id", p8.getAppInstanceId());
        v0_5.put("gmp_app_id", p8.getGmpAppId());
        v0_5.put("resettable_device_id_hash", p8.zzayt());
        v0_5.put("last_bundle_index", Long.valueOf(p8.zzazc()));
        v0_5.put("last_bundle_start_timestamp", Long.valueOf(p8.zzayv()));
        v0_5.put("last_bundle_end_timestamp", Long.valueOf(p8.zzayw()));
        v0_5.put("app_version", p8.zzwo());
        v0_5.put("app_store", p8.zzayy());
        v0_5.put("gmp_version", Long.valueOf(p8.zzayz()));
        v0_5.put("dev_cert_hash", Long.valueOf(p8.zzaza()));
        v0_5.put("measurement_enabled", Boolean.valueOf(p8.zzazb()));
        v0_5.put("day", Long.valueOf(p8.zzazg()));
        v0_5.put("daily_public_events_count", Long.valueOf(p8.zzazh()));
        v0_5.put("daily_events_count", Long.valueOf(p8.zzazi()));
        v0_5.put("daily_conversions_count", Long.valueOf(p8.zzazj()));
        v0_5.put("config_fetched_time", Long.valueOf(p8.zzazd()));
        v0_5.put("failed_config_fetch_time", Long.valueOf(p8.zzaze()));
        v0_5.put("app_version_int", Long.valueOf(p8.zzayx()));
        v0_5.put("firebase_instance_id", p8.zzayu());
        v0_5.put("daily_error_events_count", Long.valueOf(p8.zzazl()));
        v0_5.put("daily_realtime_events_count", Long.valueOf(p8.zzazk()));
        v0_5.put("health_monitor_sample", p8.zzazm());
        v0_5.put("android_id", Long.valueOf(p8.zzazo()));
        v0_5.put("adid_reporting_enabled", Boolean.valueOf(p8.zzazp()));
        try {
            String v1_8 = this.getWritableDatabase();
            long v4_1 = new String[1];
            v4_1[0] = p8.getAppId();
        } catch (com.google.android.gms.internal.zzcjl v0_3) {
            this.zzayp().zzbau().zze("Error storing app. appId", com.google.android.gms.internal.zzcjj.zzjs(p8.getAppId()), v0_3);
            return;
        }
        if ((((long) v1_8.update("apps", v0_5, "app_id = ?", v4_1)) == 0) && (v1_8.insertWithOnConflict("apps", 0, v0_5, 5) == -1)) {
            this.zzayp().zzbau().zzj("Failed to insert/update app (got -1). appId", com.google.android.gms.internal.zzcjj.zzjs(p8.getAppId()));
        }
        return;
    }

Method com.google.android.gms.internal.zzcil.zzal() calling method android.database.sqlite.SQLiteDatabase.update()


    protected final long zzal(String p14, String p15)
    {
        com.google.android.gms.common.internal.zzbq.zzgv(p14);
        com.google.android.gms.common.internal.zzbq.zzgv(p15);
        this.zzwj();
        this.zzyk();
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        v0.beginTransaction();
        try {
            String v4_2 = new StringBuilder((String.valueOf(p15).length() + 32));
            v4_2.append("select ");
            v4_2.append(p15);
            v4_2.append(" from app2 where app_id=?");
            Object v3_4 = v4_2.toString();
            Object v5_1 = new String[1];
            v5_1[0] = p14;
            com.google.android.gms.internal.zzcjl 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.zzayp().zzbau().zzd("Error inserting column. appId", com.google.android.gms.internal.zzcjj.zzjs(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.zzayp().zzbau().zze("Failed to insert column (got -1). appId", com.google.android.gms.internal.zzcjj.zzjs(p14), p15);
                v0.endTransaction();
                return -1;
            }
        }
        try {
            Object v3_11 = new android.content.ContentValues();
            v3_11.put("app_id", p14);
            v3_11.put(p15, Long.valueOf((1 + v9_0)));
            String v4_4 = new String[1];
            v4_4[0] = p14;
        } catch (Object v3_9) {
        }
        if (((long) v0.update("app2", v3_11, "app_id = ?", v4_4)) != 0) {
            v0.setTransactionSuccessful();
            v0.endTransaction();
            return v9_0;
        } else {
            this.zzayp().zzbau().zze("Failed to update column (got 0). appId", com.google.android.gms.internal.zzcjj.zzjs(p14), p15);
            v0.endTransaction();
            return -1;
        }
    }

Method com.google.android.gms.internal.zzckd.zzb() calling method android.database.sqlite.SQLiteDatabase.update()


    protected final boolean zzb(String p17, byte[] p18, String p19)
    {
        this.zzyk();
        this.zzwj();
        com.google.android.gms.common.internal.zzbq.zzgv(p17);
        com.google.android.gms.internal.zzcjl v0_3 = this.zzc(p17, p18);
        if (v0_3 != null) {
            void v1_1 = this.zza(p17, v0_3);
            v1_1.zzjmy.put(p17, v0_3);
            v1_1.zzjna.put(p17, p19);
            v1_1.zzjmv.put(p17, com.google.android.gms.internal.zzckd.zza(v0_3));
            com.google.android.gms.internal.zzcjl v4_3 = this.zzayc();
            String v5_2 = v0_3.zzjub;
            com.google.android.gms.common.internal.zzbq.checkNotNull(v5_2);
            Object v6_0 = v5_2.length;
            int v7_0 = 0;
            while (v7_0 < v6_0) {
                String[] v8_1 = v5_2[v7_0];
                int v9_2 = v8_1.zzjsv;
                int v10_1 = v9_2.length;
                int v11_2 = 0;
                while (v11_2 < v10_1) {
                    com.google.android.gms.internal.zzcnt[] v12_0 = v9_2[v11_2];
                    int v13_1 = com.google.android.gms.measurement.AppMeasurement$Event.zzix(v12_0.zzjsy);
                    if (v13_1 != 0) {
                        v12_0.zzjsy = v13_1;
                    }
                    com.google.android.gms.internal.zzcnt[] v12_1 = v12_0.zzjsz;
                    int v13_2 = v12_1.length;
                    int v14 = 0;
                    while (v14 < v13_2) {
                        com.google.android.gms.internal.zzcnt v15 = v12_1[v14];
                        int v3_1 = com.google.android.gms.measurement.AppMeasurement$Param.zzix(v15.zzjtg);
                        if (v3_1 != 0) {
                            v15.zzjtg = v3_1;
                        }
                        v14++;
                    }
                    v11_2++;
                }
                int v3_10 = v8_1.zzjsu;
                String[] v8_2 = v3_10.length;
                int v9_0 = 0;
                while (v9_0 < v8_2) {
                    int v10_0 = v3_10[v9_0];
                    int v11_1 = com.google.android.gms.measurement.AppMeasurement$UserProperty.zzix(v10_0.zzjtn);
                    if (v11_1 != 0) {
                        v10_0.zzjtn = v11_1;
                    }
                    v9_0++;
                }
                v7_0++;
            }
            v4_3.zzayj().zza(p17, v5_2);
            try {
                v0_3.zzjub = 0;
                int v3_5 = new byte[v0_3.zzhs()];
                v0_3.zza(com.google.android.gms.internal.zzflk.zzp(v3_5, 0, v3_5.length));
            } catch (com.google.android.gms.internal.zzcjl v0_0) {
                this.zzayp().zzbaw().zze("Unable to serialize reduced-size config. Storing full config instead. appId", com.google.android.gms.internal.zzcjj.zzjs(p17), v0_0);
                v3_5 = p18;
            }
            com.google.android.gms.internal.zzcjl v4_7 = this.zzayj();
            com.google.android.gms.common.internal.zzbq.zzgv(p17);
            v4_7.zzwj();
            v4_7.zzyk();
            com.google.android.gms.internal.zzcjl v0_2 = new android.content.ContentValues();
            v0_2.put("remote_config", v3_5);
            try {
                String v5_6 = v4_7.getWritableDatabase();
                String[] v8_0 = new String[1];
                v8_0[0] = p17;
            } catch (com.google.android.gms.internal.zzcjl v0_6) {
                v4_7.zzayp().zzbau().zze("Error storing remote config. appId", com.google.android.gms.internal.zzcjj.zzjs(p17), v0_6);
                return 1;
            }
            if (((long) v5_6.update("apps", v0_2, "app_id = ?", v8_0)) != 0) {
                return 1;
            } else {
                v4_7.zzayp().zzbau().zzj("Failed to update remote config (got 0). appId", com.google.android.gms.internal.zzcjj.zzjs(p17));
                return 1;
            }
        } else {
            return 0;
        }
    }

Method com.google.android.gms.internal.zzedk.zzbo() calling method android.database.sqlite.SQLiteDatabase.updateWithOnConflict()


    public final void zzbo(long p10)
    {
        this.zzbvo();
        com.google.android.gms.internal.zzemm v0_0 = System.currentTimeMillis();
        android.content.ContentValues v4_1 = new android.content.ContentValues();
        v4_1.put("active", Boolean.valueOf(0));
        v4_1.put("lastUse", Long.valueOf(p10));
        String[] v6 = new String[0];
        this.zzmxy.updateWithOnConflict("trackedQueries", v4_1, "active = 1", v6, 5);
        String v10_2 = System.currentTimeMillis();
        if (this.zzmxz.zzcbu()) {
            com.google.android.gms.internal.zzemm v0_3 = this.zzmxz;
            Object[] v2_3 = new Object[1];
            v2_3[0] = Long.valueOf((v10_2 - v0_0));
            Object[] v11 = new Object[0];
            v0_3.zzb(String.format("Reset active tracked queries in %dms", v2_3), 0, v11);
        }
        return;
    }