Info Call to SQLite query API

Description

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

Recommendation

This entry is informative, no recommendations applicable.

Technical details

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


    private final long zzb(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.zzaoe.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.tagmanager.zzeb.zzBx() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


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

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


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

Method com.google.android.gms.internal.zzcwz.zzfH() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final int zzfH(String p6)
    {
        android.database.sqlite.SQLiteException v0_1 = this.zzfi("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.zzcww.zzaT(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.rz.zzFK() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final long zzFK()
    {
        IllegalStateException v1_3 = new Object[3];
        v1_3[0] = "value";
        v1_3[1] = "path";
        v1_3[2] = "serverCache";
        android.database.Cursor v0_2 = this.zzccF.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.rz.zzO() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private static android.database.sqlite.SQLiteDatabase zzO(android.content.Context p1, String p2)
    {
        try {
            android.database.sqlite.SQLiteException v1_2 = new com.google.android.gms.internal.sc(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.keabis.dtss.curia.dao.OfflineSavedDbHandler.isOfflineAvailable() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public Boolean isOfflineAvailable(String p3)
    {
        int v0_1 = new StringBuilder();
        v0_1.append("SELECT  * FROM checklistSavedDetails WHERE qrCODE=\'");
        v0_1.append(p3);
        v0_1.append("\'");
        Boolean v3_1 = this.getReadableDatabase().rawQuery(v0_1.toString(), 0);
        int v0_3 = v3_1.getCount();
        v3_1.close();
        if (v0_3 <= 0) {
            return Boolean.valueOf(0);
        } else {
            return Boolean.valueOf(1);
        }
    }

Method com.keabis.dtss.curia.dao.OfflineSavedDbHandler.isEmployeeToNotify() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public boolean isEmployeeToNotify(Integer p3)
    {
        int v0_1 = new StringBuilder();
        v0_1.append("Select * from checklistSavedDetails where checklistSUBID = ");
        v0_1.append(p3);
        int v3_1 = this.getReadableDatabase().rawQuery(v0_1.toString(), 0);
        if (v3_1.getCount() > 0) {
            v3_1.close();
            return 1;
        } else {
            v3_1.close();
            return 0;
        }
    }

Method com.keabis.dtss.curia.dao.OfflineSavedDbHandler.getSavedDataCount() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public int getSavedDataCount()
    {
        android.database.Cursor v0_1 = this.getReadableDatabase().rawQuery("SELECT  * FROM checklistSavedDetails", 0);
        int v1_1 = v0_1.getCount();
        v0_1.close();
        return v1_1;
    }

Method com.keabis.dtss.curia.dao.OfflineSavedDbHandler.getData() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.List getData()
    {
        java.util.ArrayList v0_1 = new java.util.ArrayList();
        android.database.Cursor v1_1 = this.getWritableDatabase().rawQuery("SELECT  * FROM checklistSavedDetails", 0);
        if (v1_1.moveToFirst()) {
            do {
                v0_1.add(v1_1.getString(3));
            } while(v1_1.moveToNext());
        }
        return v0_1;
    }

Method com.keabis.dtss.curia.dao.OfflineDatabaseHandler.isOfflineAvailable() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public Boolean isOfflineAvailable(String p3)
    {
        int v0_1 = new StringBuilder();
        v0_1.append("SELECT  * FROM checklistDetails WHERE qrCODE=\'");
        v0_1.append(p3);
        v0_1.append("\'");
        Boolean v3_1 = this.getReadableDatabase().rawQuery(v0_1.toString(), 0);
        int v0_3 = v3_1.getCount();
        v3_1.close();
        if (v0_3 <= 0) {
            return Boolean.valueOf(0);
        } else {
            return Boolean.valueOf(1);
        }
    }

Method com.keabis.dtss.curia.dao.OfflineDatabaseHandler.isEmployeeToNotify() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public boolean isEmployeeToNotify(Integer p3)
    {
        int v0_1 = new StringBuilder();
        v0_1.append("Select * from checklistDetails where checklistSUBID = ");
        v0_1.append(p3);
        int v3_1 = this.getReadableDatabase().rawQuery(v0_1.toString(), 0);
        if (v3_1.getCount() > 0) {
            v3_1.close();
            return 1;
        } else {
            v3_1.close();
            return 0;
        }
    }

Method com.keabis.dtss.curia.dao.OfflineDatabaseHandler.getSavedDataCount() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public int getSavedDataCount()
    {
        android.database.Cursor v0_1 = this.getReadableDatabase().rawQuery("SELECT  * FROM checklistDetails", 0);
        int v1_1 = v0_1.getCount();
        v0_1.close();
        return v1_1;
    }

Method com.keabis.dtss.curia.dao.OfflineDatabaseHandler.getChecklist() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public String getChecklist(String p3)
    {
        new com.keabis.dtss.curia.rest.model.CheckInListModel();
        boolean v0_6 = new StringBuilder();
        v0_6.append("SELECT  * FROM checklistDetails WHERE qrCODE=\'");
        v0_6.append(p3);
        v0_6.append("\'");
        String v1_0 = 0;
        android.database.Cursor v3_2 = this.getWritableDatabase().rawQuery(v0_6.toString(), 0);
        if (v3_2.moveToFirst()) {
            do {
                v1_0 = v3_2.getString(2);
            } while(v3_2.moveToNext());
        }
        return v1_0;
    }

Method com.keabis.dtss.curia.dao.DatabaseHandler.isEmployeeToNotify() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public boolean isEmployeeToNotify(Integer p3)
    {
        int v0_1 = new StringBuilder();
        v0_1.append("Select * from csatDetails where catSUBID = ");
        v0_1.append(p3);
        int v3_1 = this.getReadableDatabase().rawQuery(v0_1.toString(), 0);
        if (v3_1.getCount() > 0) {
            v3_1.close();
            return 1;
        } else {
            v3_1.close();
            return 0;
        }
    }

Method com.keabis.dtss.curia.dao.DatabaseHandler.getSavedDataCount() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public int getSavedDataCount()
    {
        android.database.Cursor v0_1 = this.getReadableDatabase().rawQuery("SELECT  * FROM csatDetails", 0);
        int v1_1 = v0_1.getCount();
        v0_1.close();
        return v1_1;
    }

Method com.keabis.dtss.curia.dao.DatabaseHandler.getAllDetails() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.List getAllDetails()
    {
        java.util.ArrayList v0_1 = new java.util.ArrayList();
        android.database.Cursor v1_1 = this.getWritableDatabase().rawQuery("SELECT  * FROM csatDetails", 0);
        if (v1_1.moveToFirst()) {
            do {
                boolean v2_1 = new com.keabis.dtss.curia.rest.model.CSatSavedData();
                v2_1.setCatSubId(Integer.valueOf(v1_1.getInt(0)));
                v2_1.setSiteId(Integer.valueOf(v1_1.getInt(1)));
                v0_1.add(v2_1);
            } while(v1_1.moveToNext());
        }
        return v0_1;
    }

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


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

Method com.google.android.gms.internal.zzcxb.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.zzcxb.zza("gtm_hit_unique_ids", p10)) {
            com.google.android.gms.internal.zzcxb.zza(p10, "gtm_hit_unique_ids", java.util.Arrays.asList(new String[] {"hit_unique_id"})));
        } else {
            p10.execSQL(com.google.android.gms.internal.zzcwz.zzBz());
        }
        if (com.google.android.gms.internal.zzcxb.zza("gtm_hits", p10)) {
            String v3 = "hit_time";
            String v5 = "hit_method";
            String v7 = "hit_headers";
            com.google.android.gms.internal.zzcxb.zza(p10, "gtm_hits", java.util.Arrays.asList(new String[] {"hit_id", "hit_body"})));
        } else {
            p10.execSQL(com.google.android.gms.internal.zzcwz.zzCp());
        }
        p10.execSQL(com.google.android.gms.internal.zzcwz.zzCq());
        p10.execSQL(com.google.android.gms.internal.zzcwz.zzCr());
        return;
    }

Method com.google.android.gms.internal.zzcxb.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.zzchx.zzg() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final boolean zzg(String p27, long p28)
    {
        this.zzwy().beginTransaction();
        try {
            String v3_0 = 0;
            com.google.android.gms.internal.zzcfz v2_14 = new com.google.android.gms.internal.zzchx$zza(this, 0);
            Object v4_20 = this.zzwy();
            android.database.sqlite.SQLiteException v5_11 = this.zzbsW;
            com.google.android.gms.common.internal.zzbr.zzu(v2_14);
            v4_20.zzjB();
            v4_20.zzkC();
            int v10_0 = 1;
            int v11_0 = 0;
            try {
                String v21_1;
                int v22;
                int v15_2 = v4_20.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        int v12_19;
                        if (v5_11 == -1) {
                            v3_0 = 0;
                            v12_19 = new String[] {0});
                        } else {
                            String v3_3 = new String[2];
                            v3_3[0] = 0;
                            v3_3[1] = String.valueOf(v5_11);
                            v12_19 = v3_3;
                            v3_0 = 0;
                        }
                        com.google.android.gms.internal.zzclj v13_9;
                        if (v5_11 == -1) {
                            v13_9 = "";
                        } else {
                            v13_9 = " and rowid <= ?";
                        }
                        String v3_10 = new StringBuilder((String.valueOf(v13_9).length() + 84));
                        v3_10.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v3_10.append(v13_9);
                        v3_10.append(" order by rowid limit 1;");
                        v3_0 = v15_2.rawQuery(v3_10.toString(), v12_19);
                        if (v3_0.moveToFirst()) {
                            com.google.android.gms.internal.zzclj v13_21 = v3_0.getString(0);
                            v3_0.close();
                            v22 = v3_0;
                            v21_1 = v13_21;
                            v3_0 = 0;
                            try {
                                int v12_3 = new String[2];
                                v12_3[0] = v3_0;
                                v12_3[1] = v21_1;
                                android.database.sqlite.SQLiteDatabase v24 = v15_2;
                                int v15_1 = v15_2.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_3, 0, 0, "rowid", "2");
                                try {
                                    if (v15_1.moveToFirst()) {
                                        int v12_6 = v15_1.getBlob(0);
                                        int v12_7 = com.google.android.gms.internal.ahw.zzb(v12_6, 0, v12_6.length);
                                        com.google.android.gms.internal.zzclj v13_4 = new com.google.android.gms.internal.zzcll();
                                        try {
                                            v13_4.zza(v12_7);
                                        } catch (java.io.IOException v0_5) {
                                            Object v9_0 = v15_1;
                                            v4_20.zzwE().zzyv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzcgx.zzea(v3_0), v0_5);
                                            if (v9_0 == null) {
                                                String v3_7;
                                                if (v2_14.zztK == null) {
                                                    v3_7 = 1;
                                                } else {
                                                    if (!v2_14.zztK.isEmpty()) {
                                                        v3_7 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_7 != null) {
                                                    this.zzwy().setTransactionSuccessful();
                                                    this.zzwy().endTransaction();
                                                    return 0;
                                                } else {
                                                    String v3_8 = v2_14.zzbtd;
                                                    Object v4_4 = new com.google.android.gms.internal.zzcli[v2_14.zztK.size()];
                                                    v3_8.zzbvI = v4_4;
                                                    Object v4_5 = 0;
                                                    android.database.sqlite.SQLiteException v5_7 = 0;
                                                    com.google.android.gms.internal.zzcgz v6_10 = 0;
                                                    while (v4_5 < v2_14.zztK.size()) {
                                                        if (!this.zzwB().zzN(v2_14.zzbtd.zzaK, ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name)) {
                                                            Object v9_28 = this.zzwB().zzO(v2_14.zzbtd.zzaK, ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name);
                                                            if (v9_28 != null) {
                                                                if (((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA == null) {
                                                                    com.google.android.gms.internal.zzclj v13_20 = new com.google.android.gms.internal.zzclj[v11_0];
                                                                    ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA = v13_20;
                                                                }
                                                                int v12_44 = ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA;
                                                                com.google.android.gms.internal.zzclj v13_22 = v12_44.length;
                                                                Object v14_13 = 0;
                                                                int v15_5 = 0;
                                                                int v16_3 = 0;
                                                                while (v14_13 < v13_22) {
                                                                    com.google.android.gms.internal.zzcgz v7_68 = v12_44[v14_13];
                                                                    if (!"_c".equals(v7_68.name)) {
                                                                        if ("_r".equals(v7_68.name)) {
                                                                            v7_68.zzbvE = Long.valueOf(1);
                                                                            v16_3 = 1;
                                                                        }
                                                                    } else {
                                                                        v7_68.zzbvE = Long.valueOf(1);
                                                                        v15_5 = 1;
                                                                    }
                                                                    v14_13++;
                                                                    int v11 = 0;
                                                                }
                                                                if ((v15_5 == 0) && (v9_28 != null)) {
                                                                    this.zzwE().zzyB().zzj("Marking event as conversion", this.zzwz().zzdX(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name));
                                                                    com.google.android.gms.internal.zzcgz v7_34 = ((com.google.android.gms.internal.zzclj[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA, (((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA.length + v10_0)));
                                                                    String v8_15 = new com.google.android.gms.internal.zzclj();
                                                                    v8_15.name = "_c";
                                                                    v8_15.zzbvE = Long.valueOf(1);
                                                                    v7_34[(v7_34.length - v10_0)] = v8_15;
                                                                    ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA = v7_34;
                                                                }
                                                                if (v16_3 == 0) {
                                                                    this.zzwE().zzyB().zzj("Marking event as real-time", this.zzwz().zzdX(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name));
                                                                    com.google.android.gms.internal.zzcgz v7_42 = ((com.google.android.gms.internal.zzclj[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA, (((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA.length + v10_0)));
                                                                    String v8_27 = new com.google.android.gms.internal.zzclj();
                                                                    v8_27.name = "_r";
                                                                    v8_27.zzbvE = Long.valueOf(1);
                                                                    v7_42[(v7_42.length - v10_0)] = v8_27;
                                                                    ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA = v7_42;
                                                                }
                                                                if (this.zzwy().zza(this.zzyX(), v2_14.zzbtd.zzaK, 0, 0, 0, 0, 1).zzbpC <= ((long) this.zzbsr.zzdN(v2_14.zzbtd.zzaK))) {
                                                                    v5_7 = 1;
                                                                } else {
                                                                    com.google.android.gms.internal.zzcgz v7_48 = ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5));
                                                                    String v8_31 = 0;
                                                                    while (v8_31 < v7_48.zzbvA.length) {
                                                                        if (!"_r".equals(v7_48.zzbvA[v8_31].name)) {
                                                                            v8_31++;
                                                                        } else {
                                                                            int v11_30 = new com.google.android.gms.internal.zzclj[(v7_48.zzbvA.length - v10_0)];
                                                                            if (v8_31 > null) {
                                                                                System.arraycopy(v7_48.zzbvA, 0, v11_30, 0, v8_31);
                                                                            }
                                                                            if (v8_31 < v11_30.length) {
                                                                                System.arraycopy(v7_48.zzbvA, (v8_31 + 1), v11_30, v8_31, (v11_30.length - v8_31));
                                                                            }
                                                                            v7_48.zzbvA = v11_30;
                                                                            break;
                                                                        }
                                                                    }
                                                                }
                                                                if ((com.google.android.gms.internal.zzckx.zzep(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name)) && ((v9_28 != null) && (this.zzwy().zza(this.zzyX(), v2_14.zzbtd.zzaK, 0, 0, 1, 0, 0).zzbpA > ((long) this.zzbsr.zzb(v2_14.zzbtd.zzaK, com.google.android.gms.internal.zzcgn.zzbqm))))) {
                                                                    this.zzwE().zzyx().zzj("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK));
                                                                    com.google.android.gms.internal.zzcgz v7_61 = ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5));
                                                                    String v8_33 = v7_61.zzbvA;
                                                                    int v11_35 = 0;
                                                                    int v12_66 = 0;
                                                                    com.google.android.gms.internal.zzclj v13_30 = 0;
                                                                    while (v11_35 < v8_33.length) {
                                                                        Object v14_19 = v8_33[v11_35];
                                                                        if (!"_c".equals(v14_19.name)) {
                                                                            if ("_err".equals(v14_19.name)) {
                                                                                v12_66 = 1;
                                                                            }
                                                                        } else {
                                                                            v13_30 = v14_19;
                                                                        }
                                                                        v11_35++;
                                                                    }
                                                                    if ((v12_66 == 0) || (v13_30 == null)) {
                                                                        if (v13_30 == null) {
                                                                            this.zzwE().zzyv().zzj("Did not find conversion parameter. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK));
                                                                        } else {
                                                                            v13_30.name = "_err";
                                                                            v13_30.zzbvE = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        String v8_38 = new com.google.android.gms.internal.zzclj[(v7_61.zzbvA.length - 1)];
                                                                        Object v9_40 = v7_61.zzbvA;
                                                                        int v10_1 = v9_40.length;
                                                                        int v11_36 = 0;
                                                                        int v12_67 = 0;
                                                                        while (v11_36 < v10_1) {
                                                                            Object v14_18 = v9_40[v11_36];
                                                                            if (v14_18 != v13_30) {
                                                                                int v15_8 = (v12_67 + 1);
                                                                                v8_38[v12_67] = v14_18;
                                                                                v12_67 = v15_8;
                                                                            }
                                                                            v11_36++;
                                                                        }
                                                                        v7_61.zzbvA = v8_38;
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzwA();
                                                                if (com.google.android.gms.internal.zzckx.zzeD(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name)) {
                                                                }
                                                            }
                                                            String v8_39 = (v6_10 + 1);
                                                            v3_8.zzbvI[v6_10] = ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5));
                                                            v6_10 = v8_39;
                                                        } else {
                                                            Object v9_50;
                                                            this.zzwE().zzyx().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK), this.zzwz().zzdX(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name));
                                                            if (this.zzwA().zzeB(v2_14.zzbtd.zzaK)) {
                                                                v9_50 = 1;
                                                            } else {
                                                                if (!this.zzwA().zzeC(v2_14.zzbtd.zzaK)) {
                                                                    v9_50 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v9_50 == null) && (!"_err".equals(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name))) {
                                                                this.zzwA().zza(v2_14.zzbtd.zzaK, 11, "_ev", ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name, 0);
                                                            }
                                                        }
                                                        v4_5++;
                                                        v10_0 = 1;
                                                        v11_0 = 0;
                                                    }
                                                    if (v6_10 < v2_14.zztK.size()) {
                                                        v3_8.zzbvI = ((com.google.android.gms.internal.zzcli[]) java.util.Arrays.copyOf(v3_8.zzbvI, v6_10));
                                                    }
                                                    v3_8.zzbwb = this.zza(v2_14.zzbtd.zzaK, v2_14.zzbtd.zzbvJ, v3_8.zzbvI);
                                                    v3_8.zzbvL = Long.valueOf(nan);
                                                    v3_8.zzbvM = Long.valueOf(-0.0);
                                                    Object v4_16 = 0;
                                                    while (v4_16 < v3_8.zzbvI.length) {
                                                        com.google.android.gms.internal.zzcgz v6_36 = v3_8.zzbvI[v4_16];
                                                        if (v6_36.zzbvB.longValue() < v3_8.zzbvL.longValue()) {
                                                            v3_8.zzbvL = v6_36.zzbvB;
                                                        }
                                                        if (v6_36.zzbvB.longValue() > v3_8.zzbvM.longValue()) {
                                                            v3_8.zzbvM = v6_36.zzbvB;
                                                        }
                                                        v4_16++;
                                                    }
                                                    Object v4_18 = v2_14.zzbtd.zzaK;
                                                    com.google.android.gms.internal.zzcgz v6_18 = this.zzwy().zzdR(v4_18);
                                                    if (v6_18 != null) {
                                                        if (v3_8.zzbvI.length > 0) {
                                                            int v11_2;
                                                            com.google.android.gms.internal.zzcgz v7_4 = v6_18.zzwL();
                                                            if (v7_4 == 0) {
                                                                v11_2 = 0;
                                                            } else {
                                                                v11_2 = Long.valueOf(v7_4);
                                                            }
                                                            v3_8.zzbvO = v11_2;
                                                            int v11_3 = v6_18.zzwK();
                                                            if (v11_3 != 0) {
                                                                v7_4 = v11_3;
                                                            } else {
                                                            }
                                                            com.google.android.gms.internal.zzcgz v7_5;
                                                            if (v7_4 == 0) {
                                                                v7_5 = 0;
                                                            } else {
                                                                v7_5 = Long.valueOf(v7_4);
                                                            }
                                                            v3_8.zzbvN = v7_5;
                                                            v6_18.zzwU();
                                                            v3_8.zzbvZ = Integer.valueOf(((int) v6_18.zzwR()));
                                                            v6_18.zzL(v3_8.zzbvL.longValue());
                                                            v6_18.zzM(v3_8.zzbvM.longValue());
                                                            v3_8.zzboY = v6_18.zzxc();
                                                            this.zzwy().zza(v6_18);
                                                        }
                                                    } else {
                                                        this.zzwE().zzyv().zzj("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK));
                                                    }
                                                    if (v3_8.zzbvI.length > 0) {
                                                        com.google.android.gms.internal.zzcgz v6_25;
                                                        com.google.android.gms.internal.zzcfy.zzxD();
                                                        com.google.android.gms.internal.zzcgz v6_24 = this.zzwB().zzei(v2_14.zzbtd.zzaK);
                                                        if (v6_24 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v2_14.zzbtd.zzboU)) {
                                                                this.zzwE().zzyx().zzj("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK));
                                                            } else {
                                                                v6_25 = Long.valueOf(-1);
                                                                v3_8.zzbwf = v6_25;
                                                            }
                                                        } else {
                                                            if (v6_24.zzbvp != null) {
                                                                v6_25 = v6_24.zzbvp;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzwy().zza(v3_8, v5_7);
                                                    }
                                                    this.zzwy().zzG(v2_14.zzbte);
                                                    com.google.android.gms.internal.zzcfz v2_7 = this.zzwy();
                                                    android.database.sqlite.SQLiteException v5_9 = v2_7.getWritableDatabase();
                                                    try {
                                                        com.google.android.gms.internal.zzcgz v7_21 = new String[2];
                                                        v7_21[0] = v4_18;
                                                        try {
                                                            v7_21[1] = v4_18;
                                                            v5_9.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v7_21);
                                                        } catch (java.io.IOException v0_10) {
                                                            v2_7.zzwE().zzyv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.zzcgx.zzea(v4_18), v0_10);
                                                        }
                                                        int v25;
                                                        this.zzwy().setTransactionSuccessful();
                                                        if (v3_8.zzbvI.length <= 0) {
                                                            v25 = 0;
                                                        } else {
                                                            v25 = 1;
                                                        }
                                                        this.zzwy().endTransaction();
                                                        return v25;
                                                    } catch (java.io.IOException v0_10) {
                                                    }
                                                }
                                            } else {
                                                v9_0.close();
                                            }
                                        } catch (java.io.IOException v0_2) {
                                        }
                                        if (v15_1.moveToNext()) {
                                            v4_20.zzwE().zzyx().zzj("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzcgx.zzea(v3_0));
                                        }
                                        int v16_2;
                                        android.database.sqlite.SQLiteException v5_1;
                                        v15_1.close();
                                        v2_14.zzb(v13_4);
                                        if (v5_11 == -1) {
                                            v5_1 = "app_id = ? and metadata_fingerprint = ?";
                                            Object v9_4 = new String[2];
                                            v9_4[0] = v3_0;
                                            v9_4[1] = v21_1;
                                            v16_2 = v9_4;
                                        } else {
                                            int v12_13 = new String[3];
                                            v12_13[0] = v3_0;
                                            v12_13[1] = v21_1;
                                            v12_13[2] = String.valueOf(v5_11);
                                            v5_1 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_2 = v12_13;
                                        }
                                        v9_0 = v15_1;
                                        android.database.sqlite.SQLiteException v5_3 = v24.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_1, v16_2, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_3.moveToFirst()) {
                                                do {
                                                    int v12_16 = v5_3.getLong(0);
                                                    Object v9_8 = v5_3.getBlob(3);
                                                    Object v9_9 = com.google.android.gms.internal.ahw.zzb(v9_8, 0, v9_8.length);
                                                    Object v14_7 = new com.google.android.gms.internal.zzcli();
                                                    v14_7.zza(v9_9);
                                                    v14_7.name = v5_3.getString(1);
                                                    v14_7.zzbvB = Long.valueOf(v5_3.getLong(2));
                                                    if (v2_14.zza(v12_16, v14_7)) {
                                                    } else {
                                                        if (v5_3 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_3.moveToNext());
                                                if (v5_3 == null) {
                                                }
                                            } else {
                                                v4_20.zzwE().zzyx().zzj("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzcgx.zzea(v3_0));
                                                if (v5_3 == null) {
                                                }
                                            }
                                        } catch (java.io.IOException v0_8) {
                                            com.google.android.gms.internal.zzcfz v2_0 = v0_8;
                                            v9_0 = v5_3;
                                            if (v9_0 != null) {
                                                v9_0.close();
                                            }
                                            throw v2_0;
                                        } catch (java.io.IOException v0_2) {
                                            String v21_0 = v3_0;
                                            v9_0 = v5_3;
                                            String v3_1 = v0_2;
                                            v4_20.zzwE().zzyv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzcgx.zzea(v21_0), v3_1);
                                            if (v9_0 == null) {
                                            }
                                        }
                                        v5_3.close();
                                    } else {
                                        v4_20.zzwE().zzyv().zzj("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzcgx.zzea(v3_0));
                                        if (v15_1 == 0) {
                                        } else {
                                            v15_1.close();
                                        }
                                    }
                                } catch (java.io.IOException v0_6) {
                                    v9_0 = v15_1;
                                    v2_0 = v0_6;
                                } catch (java.io.IOException v0_2) {
                                    v9_0 = v15_1;
                                } catch (java.io.IOException v0_9) {
                                    v2_0 = v0_9;
                                    v9_0 = v15_1;
                                } catch (java.io.IOException v0_2) {
                                    v21_0 = v3_0;
                                    v9_0 = v15_1;
                                }
                                v21_0 = v3_0;
                            } catch (java.io.IOException v0_4) {
                                v2_0 = v0_4;
                                v9_0 = v22;
                            } catch (java.io.IOException v0_2) {
                                v21_0 = v3_0;
                                v9_0 = v22;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                            }
                        }
                    } else {
                        int v12_54;
                        if (v5_11 == -1) {
                            v12_54 = new String[1];
                            v12_54[0] = String.valueOf(p28);
                        } else {
                            v12_54 = new String[2];
                            v12_54[0] = String.valueOf(v5_11);
                            v12_54[1] = String.valueOf(p28);
                        }
                        com.google.android.gms.internal.zzclj v13_31;
                        if (v5_11 == -1) {
                            v13_31 = "";
                        } else {
                            v13_31 = "rowid <= ? and ";
                        }
                        String v3_13 = new StringBuilder((String.valueOf(v13_31).length() + 148));
                        v3_13.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_13.append(v13_31);
                        v3_13.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_2.rawQuery(v3_13.toString(), v12_54);
                        if (v3_0.moveToFirst()) {
                            int v12_1 = v3_0.getString(0);
                            try {
                                com.google.android.gms.internal.zzclj v13_0 = v3_0.getString(1);
                                v3_0.close();
                                v22 = v3_0;
                                v3_0 = v12_1;
                                v21_1 = v13_0;
                            } catch (java.io.IOException v0_2) {
                                v9_0 = v3_0;
                                v21_0 = v12_1;
                            }
                        } else {
                            if (v3_0 == null) {
                            }
                        }
                    }
                } catch (java.io.IOException v0_3) {
                    v2_0 = v0_3;
                    v9_0 = v3_0;
                } catch (java.io.IOException v0_2) {
                    v9_0 = v3_0;
                    v21_0 = v9_0;
                } catch (java.io.IOException v0_2) {
                    v9_0 = v3_0;
                    v21_0 = 0;
                }
                v3_0.close();
            } catch (java.io.IOException v0_1) {
                v2_0 = v0_1;
                v9_0 = 0;
            } catch (java.io.IOException v0_0) {
                v3_1 = v0_0;
                v9_0 = 0;
                v21_0 = 0;
            } catch (java.io.IOException v0_6) {
            }
        } catch (java.io.IOException v0_11) {
            com.google.android.gms.internal.zzcfz v2_15 = v0_11;
            this.zzwy().endTransaction();
            throw v2_15;
        }
    }

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


    private final boolean zzg(String p27, long p28)
    {
        this.zzwy().beginTransaction();
        try {
            String v3_0 = 0;
            com.google.android.gms.internal.zzcfz v2_14 = new com.google.android.gms.internal.zzchx$zza(this, 0);
            Object v4_20 = this.zzwy();
            android.database.sqlite.SQLiteException v5_11 = this.zzbsW;
            com.google.android.gms.common.internal.zzbr.zzu(v2_14);
            v4_20.zzjB();
            v4_20.zzkC();
            int v10_0 = 1;
            int v11_0 = 0;
            try {
                int v22;
                String v21_1;
                int v15_2 = v4_20.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        int v12_19;
                        if (v5_11 == -1) {
                            v3_0 = 0;
                            v12_19 = new String[] {0});
                        } else {
                            String v3_3 = new String[2];
                            v3_3[0] = 0;
                            v3_3[1] = String.valueOf(v5_11);
                            v12_19 = v3_3;
                            v3_0 = 0;
                        }
                        com.google.android.gms.internal.zzclj v13_9;
                        if (v5_11 == -1) {
                            v13_9 = "";
                        } else {
                            v13_9 = " and rowid <= ?";
                        }
                        String v3_10 = new StringBuilder((String.valueOf(v13_9).length() + 84));
                        v3_10.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v3_10.append(v13_9);
                        v3_10.append(" order by rowid limit 1;");
                        v3_0 = v15_2.rawQuery(v3_10.toString(), v12_19);
                        if (v3_0.moveToFirst()) {
                            com.google.android.gms.internal.zzclj v13_21 = v3_0.getString(0);
                            v3_0.close();
                            v22 = v3_0;
                            v21_1 = v13_21;
                            v3_0 = 0;
                            try {
                                int v12_3 = new String[2];
                                v12_3[0] = v3_0;
                                v12_3[1] = v21_1;
                                android.database.sqlite.SQLiteDatabase v24 = v15_2;
                                int v15_1 = v15_2.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_3, 0, 0, "rowid", "2");
                                try {
                                    if (v15_1.moveToFirst()) {
                                        int v12_6 = v15_1.getBlob(0);
                                        int v12_7 = com.google.android.gms.internal.ahw.zzb(v12_6, 0, v12_6.length);
                                        com.google.android.gms.internal.zzclj v13_4 = new com.google.android.gms.internal.zzcll();
                                        try {
                                            v13_4.zza(v12_7);
                                        } catch (java.io.IOException v0_5) {
                                            Object v9_0 = v15_1;
                                            v4_20.zzwE().zzyv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzcgx.zzea(v3_0), v0_5);
                                            if (v9_0 == null) {
                                                String v3_7;
                                                if (v2_14.zztK == null) {
                                                    v3_7 = 1;
                                                } else {
                                                    if (!v2_14.zztK.isEmpty()) {
                                                        v3_7 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_7 != null) {
                                                    this.zzwy().setTransactionSuccessful();
                                                    this.zzwy().endTransaction();
                                                    return 0;
                                                } else {
                                                    String v3_8 = v2_14.zzbtd;
                                                    Object v4_4 = new com.google.android.gms.internal.zzcli[v2_14.zztK.size()];
                                                    v3_8.zzbvI = v4_4;
                                                    Object v4_5 = 0;
                                                    android.database.sqlite.SQLiteException v5_7 = 0;
                                                    com.google.android.gms.internal.zzcgz v6_10 = 0;
                                                    while (v4_5 < v2_14.zztK.size()) {
                                                        if (!this.zzwB().zzN(v2_14.zzbtd.zzaK, ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name)) {
                                                            Object v9_28 = this.zzwB().zzO(v2_14.zzbtd.zzaK, ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name);
                                                            if (v9_28 != null) {
                                                                if (((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA == null) {
                                                                    com.google.android.gms.internal.zzclj v13_20 = new com.google.android.gms.internal.zzclj[v11_0];
                                                                    ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA = v13_20;
                                                                }
                                                                int v12_44 = ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA;
                                                                com.google.android.gms.internal.zzclj v13_22 = v12_44.length;
                                                                Object v14_13 = 0;
                                                                int v15_5 = 0;
                                                                int v16_3 = 0;
                                                                while (v14_13 < v13_22) {
                                                                    com.google.android.gms.internal.zzcgz v7_68 = v12_44[v14_13];
                                                                    if (!"_c".equals(v7_68.name)) {
                                                                        if ("_r".equals(v7_68.name)) {
                                                                            v7_68.zzbvE = Long.valueOf(1);
                                                                            v16_3 = 1;
                                                                        }
                                                                    } else {
                                                                        v7_68.zzbvE = Long.valueOf(1);
                                                                        v15_5 = 1;
                                                                    }
                                                                    v14_13++;
                                                                    int v11 = 0;
                                                                }
                                                                if ((v15_5 == 0) && (v9_28 != null)) {
                                                                    this.zzwE().zzyB().zzj("Marking event as conversion", this.zzwz().zzdX(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name));
                                                                    com.google.android.gms.internal.zzcgz v7_34 = ((com.google.android.gms.internal.zzclj[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA, (((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA.length + v10_0)));
                                                                    String v8_15 = new com.google.android.gms.internal.zzclj();
                                                                    v8_15.name = "_c";
                                                                    v8_15.zzbvE = Long.valueOf(1);
                                                                    v7_34[(v7_34.length - v10_0)] = v8_15;
                                                                    ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA = v7_34;
                                                                }
                                                                if (v16_3 == 0) {
                                                                    this.zzwE().zzyB().zzj("Marking event as real-time", this.zzwz().zzdX(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name));
                                                                    com.google.android.gms.internal.zzcgz v7_42 = ((com.google.android.gms.internal.zzclj[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA, (((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA.length + v10_0)));
                                                                    String v8_27 = new com.google.android.gms.internal.zzclj();
                                                                    v8_27.name = "_r";
                                                                    v8_27.zzbvE = Long.valueOf(1);
                                                                    v7_42[(v7_42.length - v10_0)] = v8_27;
                                                                    ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA = v7_42;
                                                                }
                                                                if (this.zzwy().zza(this.zzyX(), v2_14.zzbtd.zzaK, 0, 0, 0, 0, 1).zzbpC <= ((long) this.zzbsr.zzdN(v2_14.zzbtd.zzaK))) {
                                                                    v5_7 = 1;
                                                                } else {
                                                                    com.google.android.gms.internal.zzcgz v7_48 = ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5));
                                                                    String v8_31 = 0;
                                                                    while (v8_31 < v7_48.zzbvA.length) {
                                                                        if (!"_r".equals(v7_48.zzbvA[v8_31].name)) {
                                                                            v8_31++;
                                                                        } else {
                                                                            int v11_30 = new com.google.android.gms.internal.zzclj[(v7_48.zzbvA.length - v10_0)];
                                                                            if (v8_31 > null) {
                                                                                System.arraycopy(v7_48.zzbvA, 0, v11_30, 0, v8_31);
                                                                            }
                                                                            if (v8_31 < v11_30.length) {
                                                                                System.arraycopy(v7_48.zzbvA, (v8_31 + 1), v11_30, v8_31, (v11_30.length - v8_31));
                                                                            }
                                                                            v7_48.zzbvA = v11_30;
                                                                            break;
                                                                        }
                                                                    }
                                                                }
                                                                if ((com.google.android.gms.internal.zzckx.zzep(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name)) && ((v9_28 != null) && (this.zzwy().zza(this.zzyX(), v2_14.zzbtd.zzaK, 0, 0, 1, 0, 0).zzbpA > ((long) this.zzbsr.zzb(v2_14.zzbtd.zzaK, com.google.android.gms.internal.zzcgn.zzbqm))))) {
                                                                    this.zzwE().zzyx().zzj("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK));
                                                                    com.google.android.gms.internal.zzcgz v7_61 = ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5));
                                                                    String v8_33 = v7_61.zzbvA;
                                                                    int v11_35 = 0;
                                                                    int v12_66 = 0;
                                                                    com.google.android.gms.internal.zzclj v13_30 = 0;
                                                                    while (v11_35 < v8_33.length) {
                                                                        Object v14_19 = v8_33[v11_35];
                                                                        if (!"_c".equals(v14_19.name)) {
                                                                            if ("_err".equals(v14_19.name)) {
                                                                                v12_66 = 1;
                                                                            }
                                                                        } else {
                                                                            v13_30 = v14_19;
                                                                        }
                                                                        v11_35++;
                                                                    }
                                                                    if ((v12_66 == 0) || (v13_30 == null)) {
                                                                        if (v13_30 == null) {
                                                                            this.zzwE().zzyv().zzj("Did not find conversion parameter. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK));
                                                                        } else {
                                                                            v13_30.name = "_err";
                                                                            v13_30.zzbvE = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        String v8_38 = new com.google.android.gms.internal.zzclj[(v7_61.zzbvA.length - 1)];
                                                                        Object v9_40 = v7_61.zzbvA;
                                                                        int v10_1 = v9_40.length;
                                                                        int v11_36 = 0;
                                                                        int v12_67 = 0;
                                                                        while (v11_36 < v10_1) {
                                                                            Object v14_18 = v9_40[v11_36];
                                                                            if (v14_18 != v13_30) {
                                                                                int v15_8 = (v12_67 + 1);
                                                                                v8_38[v12_67] = v14_18;
                                                                                v12_67 = v15_8;
                                                                            }
                                                                            v11_36++;
                                                                        }
                                                                        v7_61.zzbvA = v8_38;
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzwA();
                                                                if (com.google.android.gms.internal.zzckx.zzeD(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name)) {
                                                                }
                                                            }
                                                            String v8_39 = (v6_10 + 1);
                                                            v3_8.zzbvI[v6_10] = ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5));
                                                            v6_10 = v8_39;
                                                        } else {
                                                            Object v9_50;
                                                            this.zzwE().zzyx().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK), this.zzwz().zzdX(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name));
                                                            if (this.zzwA().zzeB(v2_14.zzbtd.zzaK)) {
                                                                v9_50 = 1;
                                                            } else {
                                                                if (!this.zzwA().zzeC(v2_14.zzbtd.zzaK)) {
                                                                    v9_50 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v9_50 == null) && (!"_err".equals(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name))) {
                                                                this.zzwA().zza(v2_14.zzbtd.zzaK, 11, "_ev", ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name, 0);
                                                            }
                                                        }
                                                        v4_5++;
                                                        v10_0 = 1;
                                                        v11_0 = 0;
                                                    }
                                                    if (v6_10 < v2_14.zztK.size()) {
                                                        v3_8.zzbvI = ((com.google.android.gms.internal.zzcli[]) java.util.Arrays.copyOf(v3_8.zzbvI, v6_10));
                                                    }
                                                    v3_8.zzbwb = this.zza(v2_14.zzbtd.zzaK, v2_14.zzbtd.zzbvJ, v3_8.zzbvI);
                                                    v3_8.zzbvL = Long.valueOf(nan);
                                                    v3_8.zzbvM = Long.valueOf(-0.0);
                                                    Object v4_16 = 0;
                                                    while (v4_16 < v3_8.zzbvI.length) {
                                                        com.google.android.gms.internal.zzcgz v6_36 = v3_8.zzbvI[v4_16];
                                                        if (v6_36.zzbvB.longValue() < v3_8.zzbvL.longValue()) {
                                                            v3_8.zzbvL = v6_36.zzbvB;
                                                        }
                                                        if (v6_36.zzbvB.longValue() > v3_8.zzbvM.longValue()) {
                                                            v3_8.zzbvM = v6_36.zzbvB;
                                                        }
                                                        v4_16++;
                                                    }
                                                    Object v4_18 = v2_14.zzbtd.zzaK;
                                                    com.google.android.gms.internal.zzcgz v6_18 = this.zzwy().zzdR(v4_18);
                                                    if (v6_18 != null) {
                                                        if (v3_8.zzbvI.length > 0) {
                                                            int v11_2;
                                                            com.google.android.gms.internal.zzcgz v7_4 = v6_18.zzwL();
                                                            if (v7_4 == 0) {
                                                                v11_2 = 0;
                                                            } else {
                                                                v11_2 = Long.valueOf(v7_4);
                                                            }
                                                            v3_8.zzbvO = v11_2;
                                                            int v11_3 = v6_18.zzwK();
                                                            if (v11_3 != 0) {
                                                                v7_4 = v11_3;
                                                            } else {
                                                            }
                                                            com.google.android.gms.internal.zzcgz v7_5;
                                                            if (v7_4 == 0) {
                                                                v7_5 = 0;
                                                            } else {
                                                                v7_5 = Long.valueOf(v7_4);
                                                            }
                                                            v3_8.zzbvN = v7_5;
                                                            v6_18.zzwU();
                                                            v3_8.zzbvZ = Integer.valueOf(((int) v6_18.zzwR()));
                                                            v6_18.zzL(v3_8.zzbvL.longValue());
                                                            v6_18.zzM(v3_8.zzbvM.longValue());
                                                            v3_8.zzboY = v6_18.zzxc();
                                                            this.zzwy().zza(v6_18);
                                                        }
                                                    } else {
                                                        this.zzwE().zzyv().zzj("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK));
                                                    }
                                                    if (v3_8.zzbvI.length > 0) {
                                                        com.google.android.gms.internal.zzcgz v6_25;
                                                        com.google.android.gms.internal.zzcfy.zzxD();
                                                        com.google.android.gms.internal.zzcgz v6_24 = this.zzwB().zzei(v2_14.zzbtd.zzaK);
                                                        if (v6_24 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v2_14.zzbtd.zzboU)) {
                                                                this.zzwE().zzyx().zzj("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK));
                                                            } else {
                                                                v6_25 = Long.valueOf(-1);
                                                                v3_8.zzbwf = v6_25;
                                                            }
                                                        } else {
                                                            if (v6_24.zzbvp != null) {
                                                                v6_25 = v6_24.zzbvp;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzwy().zza(v3_8, v5_7);
                                                    }
                                                    this.zzwy().zzG(v2_14.zzbte);
                                                    com.google.android.gms.internal.zzcfz v2_7 = this.zzwy();
                                                    android.database.sqlite.SQLiteException v5_9 = v2_7.getWritableDatabase();
                                                    try {
                                                        com.google.android.gms.internal.zzcgz v7_21 = new String[2];
                                                        v7_21[0] = v4_18;
                                                        try {
                                                            v7_21[1] = v4_18;
                                                            v5_9.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v7_21);
                                                        } catch (java.io.IOException v0_10) {
                                                            v2_7.zzwE().zzyv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.zzcgx.zzea(v4_18), v0_10);
                                                        }
                                                        int v25;
                                                        this.zzwy().setTransactionSuccessful();
                                                        if (v3_8.zzbvI.length <= 0) {
                                                            v25 = 0;
                                                        } else {
                                                            v25 = 1;
                                                        }
                                                        this.zzwy().endTransaction();
                                                        return v25;
                                                    } catch (java.io.IOException v0_10) {
                                                    }
                                                }
                                            } else {
                                                v9_0.close();
                                            }
                                        } catch (java.io.IOException v0_2) {
                                        }
                                        if (v15_1.moveToNext()) {
                                            v4_20.zzwE().zzyx().zzj("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzcgx.zzea(v3_0));
                                        }
                                        int v16_2;
                                        android.database.sqlite.SQLiteException v5_1;
                                        v15_1.close();
                                        v2_14.zzb(v13_4);
                                        if (v5_11 == -1) {
                                            v5_1 = "app_id = ? and metadata_fingerprint = ?";
                                            Object v9_4 = new String[2];
                                            v9_4[0] = v3_0;
                                            v9_4[1] = v21_1;
                                            v16_2 = v9_4;
                                        } else {
                                            int v12_13 = new String[3];
                                            v12_13[0] = v3_0;
                                            v12_13[1] = v21_1;
                                            v12_13[2] = String.valueOf(v5_11);
                                            v5_1 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_2 = v12_13;
                                        }
                                        v9_0 = v15_1;
                                        android.database.sqlite.SQLiteException v5_3 = v24.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_1, v16_2, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_3.moveToFirst()) {
                                                do {
                                                    int v12_16 = v5_3.getLong(0);
                                                    Object v9_8 = v5_3.getBlob(3);
                                                    Object v9_9 = com.google.android.gms.internal.ahw.zzb(v9_8, 0, v9_8.length);
                                                    Object v14_7 = new com.google.android.gms.internal.zzcli();
                                                    v14_7.zza(v9_9);
                                                    v14_7.name = v5_3.getString(1);
                                                    v14_7.zzbvB = Long.valueOf(v5_3.getLong(2));
                                                    if (v2_14.zza(v12_16, v14_7)) {
                                                    } else {
                                                        if (v5_3 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_3.moveToNext());
                                                if (v5_3 == null) {
                                                }
                                            } else {
                                                v4_20.zzwE().zzyx().zzj("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzcgx.zzea(v3_0));
                                                if (v5_3 == null) {
                                                }
                                            }
                                        } catch (java.io.IOException v0_8) {
                                            com.google.android.gms.internal.zzcfz v2_0 = v0_8;
                                            v9_0 = v5_3;
                                            if (v9_0 != null) {
                                                v9_0.close();
                                            }
                                            throw v2_0;
                                        } catch (java.io.IOException v0_2) {
                                            String v21_0 = v3_0;
                                            v9_0 = v5_3;
                                            String v3_1 = v0_2;
                                            v4_20.zzwE().zzyv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzcgx.zzea(v21_0), v3_1);
                                            if (v9_0 == null) {
                                            }
                                        }
                                        v5_3.close();
                                    } else {
                                        v4_20.zzwE().zzyv().zzj("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzcgx.zzea(v3_0));
                                        if (v15_1 == 0) {
                                        } else {
                                            v15_1.close();
                                        }
                                    }
                                } catch (java.io.IOException v0_6) {
                                    v9_0 = v15_1;
                                    v2_0 = v0_6;
                                } catch (java.io.IOException v0_2) {
                                    v9_0 = v15_1;
                                } catch (java.io.IOException v0_9) {
                                    v2_0 = v0_9;
                                    v9_0 = v15_1;
                                } catch (java.io.IOException v0_2) {
                                    v21_0 = v3_0;
                                    v9_0 = v15_1;
                                }
                                v21_0 = v3_0;
                            } catch (java.io.IOException v0_4) {
                                v2_0 = v0_4;
                                v9_0 = v22;
                            } catch (java.io.IOException v0_2) {
                                v21_0 = v3_0;
                                v9_0 = v22;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                            }
                        }
                    } else {
                        int v12_54;
                        if (v5_11 == -1) {
                            v12_54 = new String[1];
                            v12_54[0] = String.valueOf(p28);
                        } else {
                            v12_54 = new String[2];
                            v12_54[0] = String.valueOf(v5_11);
                            v12_54[1] = String.valueOf(p28);
                        }
                        com.google.android.gms.internal.zzclj v13_31;
                        if (v5_11 == -1) {
                            v13_31 = "";
                        } else {
                            v13_31 = "rowid <= ? and ";
                        }
                        String v3_13 = new StringBuilder((String.valueOf(v13_31).length() + 148));
                        v3_13.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_13.append(v13_31);
                        v3_13.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_2.rawQuery(v3_13.toString(), v12_54);
                        if (v3_0.moveToFirst()) {
                            int v12_1 = v3_0.getString(0);
                            try {
                                com.google.android.gms.internal.zzclj v13_0 = v3_0.getString(1);
                                v3_0.close();
                                v22 = v3_0;
                                v3_0 = v12_1;
                                v21_1 = v13_0;
                            } catch (java.io.IOException v0_2) {
                                v9_0 = v3_0;
                                v21_0 = v12_1;
                            }
                        } else {
                            if (v3_0 == null) {
                            }
                        }
                    }
                } catch (java.io.IOException v0_3) {
                    v2_0 = v0_3;
                    v9_0 = v3_0;
                } catch (java.io.IOException v0_2) {
                    v9_0 = v3_0;
                    v21_0 = v9_0;
                } catch (java.io.IOException v0_2) {
                    v9_0 = v3_0;
                    v21_0 = 0;
                }
                v3_0.close();
            } catch (java.io.IOException v0_1) {
                v2_0 = v0_1;
                v9_0 = 0;
            } catch (java.io.IOException v0_0) {
                v3_1 = v0_0;
                v9_0 = 0;
                v21_0 = 0;
            } catch (java.io.IOException v0_6) {
            }
        } catch (java.io.IOException v0_11) {
            com.google.android.gms.internal.zzcfz v2_15 = v0_11;
            this.zzwy().endTransaction();
            throw v2_15;
        }
    }

Method com.google.android.gms.internal.zzcgu.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.zzcgt v0_3 = p8.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_3.moveToFirst();
                v0_3.close();
            } catch (Throwable v8_1) {
                v0_3.close();
                throw v8_1;
            }
        }
        com.google.android.gms.internal.zzcfz.zza(this.zzbqL.zzwE(), 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.zzcgc.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.zzcfz v0_8 = p8.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_8.moveToFirst();
                v0_8.close();
            } catch (Throwable v8_1) {
                v0_8.close();
                throw v8_1;
            }
        }
        com.google.android.gms.internal.zzcfz.zza(this.zzbpD.zzwE(), 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", 0);
        com.google.android.gms.internal.zzcfz.zza(this.zzbpD.zzwE(), 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.zzcfz.zza(this.zzbpD.zzwE(), 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.zzcfz.zzyk());
        com.google.android.gms.internal.zzcfz.zza(this.zzbpD.zzwE(), 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.zzcfz.access$200());
        com.google.android.gms.internal.zzcfz.zza(this.zzbpD.zzwE(), 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.zzcfz.zzyl());
        com.google.android.gms.internal.zzcfz.zza(this.zzbpD.zzwE(), 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.zzcfz.zza(this.zzbpD.zzwE(), 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.zzcfz.zzym());
        com.google.android.gms.internal.zzcfz.zza(this.zzbpD.zzwE(), 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.zzcfz.zza(this.zzbpD.zzwE(), 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.zzcfz.zza(this.zzbpD.zzwE(), 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.zzcfz.zza(this.zzbpD.zzwE(), 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.zzcfz.zzyn());
        return;
    }

Method com.google.android.gms.internal.zzaof.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.zzaof.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.zzaoe.zzkU();
        }
        if (this.zza(p6, "properties")) {
            com.google.android.gms.internal.zzaof.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.zzaof.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.zzcgt.zza() calling method android.database.sqlite.SQLiteDatabase.insertOrThrow()


    private final boolean zza(int p18, byte[] p19)
    {
        super.zzwo();
        void v17_1 = super.zzjB();
        Long v2_7 = 0;
        if (!this.zzbqK) {
            android.content.ContentValues v3_1 = new android.content.ContentValues();
            v3_1.put("type", Integer.valueOf(p18));
            v3_1.put("entry", p19);
            com.google.android.gms.internal.zzcfy.zzxM();
            Long v4_5 = 5;
            int v5 = 0;
            int v6 = 5;
            while (v5 < v4_5) {
                int v7 = 0;
                try {
                    int v9 = v17_1.getWritableDatabase();
                    try {
                        if (v9 != 0) {
                            v9.beginTransaction();
                            Long v10_0 = 0;
                            int v12 = v9.rawQuery("select count(1) from messages", 0);
                            if ((v12 != 0) && (v12.moveToFirst())) {
                                v10_0 = v12.getLong(v2_7);
                            }
                            if (v10_0 >= 100000) {
                                super.zzwE().zzyv().log("Data loss, local db full");
                                long v13_2 = ((100000 - v10_0) + 1);
                                String[] v11 = new String[1];
                                v11[v2_7] = Long.toString(v13_2);
                                Long v10_3 = ((long) v9.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v11));
                                if (v10_3 != v13_2) {
                                    super.zzwE().zzyv().zzd("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v13_2), Long.valueOf(v10_3), Long.valueOf((v13_2 - v10_3)));
                                }
                            }
                            v9.insertOrThrow("messages", 0, v3_1);
                            v9.setTransactionSuccessful();
                            v9.endTransaction();
                            if (v12 != 0) {
                                v12.close();
                            }
                            if (v9 != 0) {
                                v9.close();
                            }
                            return 1;
                        } else {
                            this.zzbqK = 1;
                            if (v9 != 0) {
                                v9.close();
                            }
                            return v2_7;
                        }
                        v7 = v9;
                        try {
                            if (android.os.Build$VERSION.SDK_INT < 11) {
                                if (v7 != 0) {
                                    if (v7.inTransaction()) {
                                        v7.endTransaction();
                                    }
                                }
                                super.zzwE().zzyv().zzj("Error writing entry to local database", com.google.android.gms.internal.zzcgz v0_0);
                                this.zzbqK = 1;
                            } else {
                                if (!(v0_0 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                                } else {
                                    android.os.SystemClock.sleep(((long) v6));
                                    v6 += 20;
                                }
                            }
                            if (v12 != 0) {
                                v12.close();
                            }
                            if (v7 == 0) {
                                v5++;
                                v2_7 = 0;
                                v4_5 = 5;
                            } else {
                                v7.close();
                            }
                        } catch (com.google.android.gms.internal.zzcgz v0_2) {
                            v9 = v7;
                            if (v12 != 0) {
                                v12.close();
                            }
                            if (v9 != 0) {
                                v9.close();
                            }
                            throw v0_2;
                        }
                    } catch (com.google.android.gms.internal.zzcgz v0_3) {
                        super.zzwE().zzyv().zzj("Error writing entry to local database", v0_3);
                        this.zzbqK = 1;
                        if (v7 != 0) {
                            v7.close();
                        }
                        if (v9 == 0) {
                        } else {
                            v9.close();
                        }
                    } catch (com.google.android.gms.internal.zzcgz v0_0) {
                        v12 = 0;
                    }
                } catch (com.google.android.gms.internal.zzcgz v0_2) {
                    v9 = 0;
                    v12 = 0;
                } catch (com.google.android.gms.internal.zzcgz v0_3) {
                    v9 = 0;
                } catch (com.google.android.gms.internal.zzcgz v0_0) {
                    v12 = 0;
                } catch (com.google.android.gms.internal.zzcgz v0_2) {
                    v12 = v7;
                }
            }
            super.zzwE().zzyx().log("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

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

Couldn't retrieve source code

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


    public final boolean zza(com.google.android.gms.internal.zzcll p8, boolean p9)
    {
        this.zzjB();
        this.zzkC();
        com.google.android.gms.common.internal.zzbr.zzu(p8);
        com.google.android.gms.common.internal.zzbr.zzcF(p8.zzaK);
        com.google.android.gms.common.internal.zzbr.zzu(p8.zzbvM);
        this.zzyd();
        int v0_0 = this.zzkp().currentTimeMillis();
        if ((p8.zzbvM.longValue() < (v0_0 - com.google.android.gms.internal.zzcfy.zzxF())) || (p8.zzbvM.longValue() > (com.google.android.gms.internal.zzcfy.zzxF() + v0_0))) {
            this.zzwE().zzyx().zzd("Storing bundle outside of the max uploading time span. appId, now, timestamp", com.google.android.gms.internal.zzcgx.zzea(p8.zzaK), Long.valueOf(v0_0), p8.zzbvM);
        }
        try {
            String v1_3 = new byte[p8.zzMl()];
            Object v2_9 = com.google.android.gms.internal.ahx.zzc(v1_3, 0, v1_3.length);
            p8.zza(v2_9);
            v2_9.zzMc();
            String v1_4 = this.zzwA().zzm(v1_3);
            this.zzwE().zzyB().zzj("Saving bundle, size", Integer.valueOf(v1_4.length));
            Object v2_14 = new android.content.ContentValues();
            v2_14.put("app_id", p8.zzaK);
            v2_14.put("bundle_end_timestamp", p8.zzbvM);
            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.zzwE().zzyv().zzj("Failed to insert bundle (got -1). appId", com.google.android.gms.internal.zzcgx.zzea(p8.zzaK));
                    return 0;
                }
            } catch (com.google.android.gms.internal.zzcgz v9_4) {
                String v1_7 = this.zzwE().zzyv();
                Object v2_15 = "Error storing bundle. appId";
                v1_7.zze(v2_15, com.google.android.gms.internal.zzcgx.zzea(p8.zzaK), v9_4);
                return 0;
            }
        } catch (com.google.android.gms.internal.zzcgz v9_4) {
            v1_7 = this.zzwE().zzyv();
            v2_15 = "Data loss. Failed to serialize bundle. appId";
            v1_7.zze(v2_15, com.google.android.gms.internal.zzcgx.zzea(p8.zzaK), v9_4);
            return 0;
        }
    }

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


    public final boolean zza(com.google.android.gms.internal.zzcgg p9, long p10, boolean p12)
    {
        this.zzjB();
        this.zzkC();
        com.google.android.gms.common.internal.zzbr.zzu(p9);
        com.google.android.gms.common.internal.zzbr.zzcF(p9.mAppId);
        long v0_6 = new com.google.android.gms.internal.zzcli();
        v0_6.zzbvC = Long.valueOf(p9.zzbpI);
        byte[] v1_2 = new com.google.android.gms.internal.zzclj[p9.zzbpJ.size()];
        v0_6.zzbvA = v1_2;
        byte[] v1_4 = p9.zzbpJ.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.zzclj();
            int v7 = (v3_2 + 1);
            v0_6.zzbvA[v3_2] = v5_1;
            v5_1.name = v4_1;
            this.zzwA().zza(v5_1, p9.zzbpJ.get(v4_1));
            v3_2 = v7;
        }
        try {
            byte[] v1_6 = new byte[v0_6.zzMl()];
            String v3_4 = com.google.android.gms.internal.ahx.zzc(v1_6, 0, v1_6.length);
            v0_6.zza(v3_4);
            v3_4.zzMc();
            this.zzwE().zzyB().zze("Saving event, name, data size", this.zzwz().zzdX(p9.mName), Integer.valueOf(v1_6.length));
            long v0_4 = new android.content.ContentValues();
            v0_4.put("app_id", p9.mAppId);
            v0_4.put("name", p9.mName);
            v0_4.put("timestamp", Long.valueOf(p9.zzayU));
            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.zzwE().zzyv().zzj("Failed to insert raw event (got -1). appId", com.google.android.gms.internal.zzcgx.zzea(p9.mAppId));
                    return 0;
                }
            } catch (com.google.android.gms.internal.zzcgz v10_5) {
                String v11_3 = this.zzwE().zzyv();
                Object v12_3 = "Error storing raw event. appId";
                v11_3.zze(v12_3, com.google.android.gms.internal.zzcgx.zzea(p9.mAppId), v10_5);
                return 0;
            }
        } catch (com.google.android.gms.internal.zzcgz v10_5) {
            v11_3 = this.zzwE().zzyv();
            v12_3 = "Data loss. Failed to serialize event params/data. appId";
            v11_3.zze(v12_3, com.google.android.gms.internal.zzcgx.zzea(p9.mAppId), v10_5);
            return 0;
        }
    }

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


    public final void zzc(com.google.android.gms.internal.zzapj p8)
    {
        com.google.android.gms.common.internal.zzbr.zzu(p8);
        com.google.android.gms.analytics.zzl.zzjB();
        this.zzkC();
        com.google.android.gms.common.internal.zzbr.zzu(p8);
        Long v0_3 = new android.net.Uri$Builder();
        android.database.sqlite.SQLiteDatabase v1_0 = p8.zzdU().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.zzape.zzahl.get()).intValue();
            String v2_6 = this.zzkM();
            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.zzlF()));
            v2_11.put("hit_app_id", Integer.valueOf(p8.zzlD()));
            if (!p8.zzlH()) {
                v3_10 = com.google.android.gms.internal.zzaow.zzlu();
            } else {
                v3_10 = com.google.android.gms.internal.zzaow.zzlt();
            }
            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.zzbs("Failed to insert a hit (got -1)");
                return;
            }
        } else {
            this.zzkq().zza(p8, "Hit length exceeds the maximum allowed size");
            return;
        }
    }

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


    public final void zzb(long p9, String p11)
    {
        android.database.sqlite.SQLiteDatabase v0_3 = this.zzvz.currentTimeMillis();
        if (v0_3 > (this.zzbFB + 86400000)) {
            this.zzbFB = v0_3;
            android.database.sqlite.SQLiteDatabase v0_2 = this.zzfi("Error opening database for deleteStaleHits.");
            if (v0_2 != null) {
                android.content.ContentValues v1_3;
                String[] v7 = new String[1];
                v7[0] = Long.toString((this.zzvz.currentTimeMillis() - 1.280618154e-314));
                v0_2.delete("gtm_hits", "HIT_TIME < ?", v7);
                if (this.zzBx() != 0) {
                    v1_3 = 0;
                } else {
                    v1_3 = 1;
                }
                this.zzbFz.zzar(v1_3);
            }
        }
        android.database.sqlite.SQLiteDatabase v0_7 = ((this.zzBx() - this.zzbFC) + 1);
        if (v0_7 > null) {
            android.database.sqlite.SQLiteDatabase v0_8 = this.zzbC(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.zzdi.v(v4_5.toString());
            android.content.ContentValues v1_8 = new String[0];
            this.zzd(((String[]) v0_8.toArray(v1_8)));
        }
        android.database.sqlite.SQLiteDatabase v0_12 = this.zzfi("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.zzbFz.zzar(0);
                return;
            } catch (android.database.sqlite.SQLiteException) {
                com.google.android.gms.tagmanager.zzdi.zzaT("Error storing hit");
            }
        }
        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.zzfi("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.zzBQ);
                v2_1.put("value", v1_1.zzbEA);
                v0_1.insert("datalayer", 0, v2_1);
            }
            return;
        } else {
            return;
        }
    }

Method com.keabis.dtss.curia.dao.OfflineSavedDbHandler.saveData() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void saveData(com.keabis.dtss.curia.rest.model.CheckInListModel p5, String p6)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        android.content.ContentValues v1_1 = new android.content.ContentValues();
        v1_1.put("checklistSUBID", Integer.valueOf(p5.getOfflineId()));
        v1_1.put("qrCODE", p5.getQrCode());
        v1_1.put("offline_ID", Integer.valueOf(p5.getOfflineId()));
        v1_1.put("checklistData", p6);
        v0.insert("checklistSavedDetails", 0, v1_1);
        v0.close();
        return;
    }

Method com.keabis.dtss.curia.dao.OfflineDatabaseHandler.saveData() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void saveData(com.keabis.dtss.curia.rest.model.CheckInListModel p5, String p6)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        android.content.ContentValues v1_1 = new android.content.ContentValues();
        v1_1.put("checklistSUBID", p5.getSubCategoryId());
        v1_1.put("qrCODE", p5.getQrCode());
        v1_1.put("checklistData", p6);
        v0.insert("checklistDetails", 0, v1_1);
        v0.close();
        return;
    }

Method com.keabis.dtss.curia.dao.DatabaseHandler.saveData() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void saveData(com.keabis.dtss.curia.rest.model.CSatSavedData p5)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        android.content.ContentValues v1_1 = new android.content.ContentValues();
        v1_1.put("catSUBID", p5.getCatSubId());
        v1_1.put("siteID", p5.getSiteId());
        v0.insert("csatDetails", 0, v1_1);
        v0.close();
        return;
    }

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


    private static void zza(com.google.android.gms.internal.zzcgx p5, android.database.sqlite.SQLiteDatabase p6, String p7, String p8, java.util.Map p9)
    {
        if (p5 == null) {
            throw new IllegalArgumentException("Monitor must not be null");
        } else {
            java.util.Set v0 = com.google.android.gms.internal.zzcfz.zzb(p6, p7);
            String v8_9 = p8.split(",");
            int v2 = 0;
            while (v2 < v8_9.length) {
                String v3 = v8_9[v2];
                if (!v0.remove(v3)) {
                    String v8_8 = new StringBuilder(((String.valueOf(p7).length() + 35) + String.valueOf(v3).length()));
                    v8_8.append("Table ");
                    v8_8.append(p7);
                    v8_8.append(" is missing required column: ");
                    v8_8.append(v3);
                    throw new android.database.sqlite.SQLiteException(v8_8.toString());
                } else {
                    v2++;
                }
            }
            if (p9 != null) {
                String v8_2 = p9.entrySet().iterator();
                while (v8_2.hasNext()) {
                    String v9_3 = ((java.util.Map$Entry) v8_2.next());
                    if (!v0.remove(v9_3.getKey())) {
                        p6.execSQL(((String) v9_3.getValue()));
                    }
                }
            }
            if (!v0.isEmpty()) {
                p5.zzyx().zze("Table has extra columns. table, columns", p7, android.text.TextUtils.join(", ", v0));
            }
            return;
        }
    }

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


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

Method com.keabis.dtss.curia.dao.OfflineSavedDbHandler.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        p1.execSQL("DROP TABLE IF EXISTS checklistSavedDetails");
        this.onCreate(p1);
        return;
    }

Method com.keabis.dtss.curia.dao.OfflineSavedDbHandler.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE checklistSavedDetails(checklistSUBID INTEGER PRIMARY KEY,qrCODE TEXT ,offline_ID INTEGER ,checklistData TEXT )");
        return;
    }

Method com.keabis.dtss.curia.dao.OfflineDatabaseHandler.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        p1.execSQL("DROP TABLE IF EXISTS checklistDetails");
        this.onCreate(p1);
        return;
    }

Method com.keabis.dtss.curia.dao.OfflineDatabaseHandler.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE checklistDetails(checklistSUBID INTEGER PRIMARY KEY,qrCODE TEXT ,checklistData TEXT )");
        return;
    }

Method com.keabis.dtss.curia.dao.DatabaseHandler.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        p1.execSQL("DROP TABLE IF EXISTS csatDetails");
        this.onCreate(p1);
        return;
    }

Method com.keabis.dtss.curia.dao.DatabaseHandler.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE csatDetails(catSUBID INTEGER PRIMARY KEY,siteID INTEGER)");
        return;
    }

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


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

Method com.google.android.gms.internal.zzcxb.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.zzcxb.zza("gtm_hit_unique_ids", p10)) {
            com.google.android.gms.internal.zzcxb.zza(p10, "gtm_hit_unique_ids", java.util.Arrays.asList(new String[] {"hit_unique_id"})));
        } else {
            p10.execSQL(com.google.android.gms.internal.zzcwz.zzBz());
        }
        if (com.google.android.gms.internal.zzcxb.zza("gtm_hits", p10)) {
            String v3 = "hit_time";
            String v5 = "hit_method";
            String v7 = "hit_headers";
            com.google.android.gms.internal.zzcxb.zza(p10, "gtm_hits", java.util.Arrays.asList(new String[] {"hit_id", "hit_body"})));
        } else {
            p10.execSQL(com.google.android.gms.internal.zzcwz.zzCp());
        }
        p10.execSQL(com.google.android.gms.internal.zzcwz.zzCq());
        p10.execSQL(com.google.android.gms.internal.zzcwz.zzCr());
        return;
    }

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


    private final boolean zzg(String p27, long p28)
    {
        this.zzwy().beginTransaction();
        try {
            String v3_0 = 0;
            com.google.android.gms.internal.zzcfz v2_14 = new com.google.android.gms.internal.zzchx$zza(this, 0);
            Object v4_20 = this.zzwy();
            android.database.sqlite.SQLiteException v5_11 = this.zzbsW;
            com.google.android.gms.common.internal.zzbr.zzu(v2_14);
            v4_20.zzjB();
            v4_20.zzkC();
            int v10_0 = 1;
            int v11_0 = 0;
            try {
                String v21_1;
                int v22;
                int v15_2 = v4_20.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        int v12_19;
                        if (v5_11 == -1) {
                            v3_0 = 0;
                            v12_19 = new String[] {0});
                        } else {
                            String v3_3 = new String[2];
                            v3_3[0] = 0;
                            v3_3[1] = String.valueOf(v5_11);
                            v12_19 = v3_3;
                            v3_0 = 0;
                        }
                        com.google.android.gms.internal.zzclj v13_9;
                        if (v5_11 == -1) {
                            v13_9 = "";
                        } else {
                            v13_9 = " and rowid <= ?";
                        }
                        String v3_10 = new StringBuilder((String.valueOf(v13_9).length() + 84));
                        v3_10.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v3_10.append(v13_9);
                        v3_10.append(" order by rowid limit 1;");
                        v3_0 = v15_2.rawQuery(v3_10.toString(), v12_19);
                        if (v3_0.moveToFirst()) {
                            com.google.android.gms.internal.zzclj v13_21 = v3_0.getString(0);
                            v3_0.close();
                            v22 = v3_0;
                            v21_1 = v13_21;
                            v3_0 = 0;
                            try {
                                int v12_3 = new String[2];
                                v12_3[0] = v3_0;
                                v12_3[1] = v21_1;
                                android.database.sqlite.SQLiteDatabase v24 = v15_2;
                                int v15_1 = v15_2.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_3, 0, 0, "rowid", "2");
                                try {
                                    if (v15_1.moveToFirst()) {
                                        int v12_6 = v15_1.getBlob(0);
                                        int v12_7 = com.google.android.gms.internal.ahw.zzb(v12_6, 0, v12_6.length);
                                        com.google.android.gms.internal.zzclj v13_4 = new com.google.android.gms.internal.zzcll();
                                        try {
                                            v13_4.zza(v12_7);
                                        } catch (java.io.IOException v0_5) {
                                            Object v9_0 = v15_1;
                                            v4_20.zzwE().zzyv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzcgx.zzea(v3_0), v0_5);
                                            if (v9_0 == null) {
                                                String v3_7;
                                                if (v2_14.zztK == null) {
                                                    v3_7 = 1;
                                                } else {
                                                    if (!v2_14.zztK.isEmpty()) {
                                                        v3_7 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_7 != null) {
                                                    this.zzwy().setTransactionSuccessful();
                                                    this.zzwy().endTransaction();
                                                    return 0;
                                                } else {
                                                    String v3_8 = v2_14.zzbtd;
                                                    Object v4_4 = new com.google.android.gms.internal.zzcli[v2_14.zztK.size()];
                                                    v3_8.zzbvI = v4_4;
                                                    Object v4_5 = 0;
                                                    android.database.sqlite.SQLiteException v5_7 = 0;
                                                    com.google.android.gms.internal.zzcgz v6_10 = 0;
                                                    while (v4_5 < v2_14.zztK.size()) {
                                                        if (!this.zzwB().zzN(v2_14.zzbtd.zzaK, ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name)) {
                                                            Object v9_28 = this.zzwB().zzO(v2_14.zzbtd.zzaK, ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name);
                                                            if (v9_28 != null) {
                                                                if (((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA == null) {
                                                                    com.google.android.gms.internal.zzclj v13_20 = new com.google.android.gms.internal.zzclj[v11_0];
                                                                    ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA = v13_20;
                                                                }
                                                                int v12_44 = ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA;
                                                                com.google.android.gms.internal.zzclj v13_22 = v12_44.length;
                                                                Object v14_13 = 0;
                                                                int v15_5 = 0;
                                                                int v16_3 = 0;
                                                                while (v14_13 < v13_22) {
                                                                    com.google.android.gms.internal.zzcgz v7_68 = v12_44[v14_13];
                                                                    if (!"_c".equals(v7_68.name)) {
                                                                        if ("_r".equals(v7_68.name)) {
                                                                            v7_68.zzbvE = Long.valueOf(1);
                                                                            v16_3 = 1;
                                                                        }
                                                                    } else {
                                                                        v7_68.zzbvE = Long.valueOf(1);
                                                                        v15_5 = 1;
                                                                    }
                                                                    v14_13++;
                                                                    int v11 = 0;
                                                                }
                                                                if ((v15_5 == 0) && (v9_28 != null)) {
                                                                    this.zzwE().zzyB().zzj("Marking event as conversion", this.zzwz().zzdX(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name));
                                                                    com.google.android.gms.internal.zzcgz v7_34 = ((com.google.android.gms.internal.zzclj[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA, (((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA.length + v10_0)));
                                                                    String v8_15 = new com.google.android.gms.internal.zzclj();
                                                                    v8_15.name = "_c";
                                                                    v8_15.zzbvE = Long.valueOf(1);
                                                                    v7_34[(v7_34.length - v10_0)] = v8_15;
                                                                    ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA = v7_34;
                                                                }
                                                                if (v16_3 == 0) {
                                                                    this.zzwE().zzyB().zzj("Marking event as real-time", this.zzwz().zzdX(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name));
                                                                    com.google.android.gms.internal.zzcgz v7_42 = ((com.google.android.gms.internal.zzclj[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA, (((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA.length + v10_0)));
                                                                    String v8_27 = new com.google.android.gms.internal.zzclj();
                                                                    v8_27.name = "_r";
                                                                    v8_27.zzbvE = Long.valueOf(1);
                                                                    v7_42[(v7_42.length - v10_0)] = v8_27;
                                                                    ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA = v7_42;
                                                                }
                                                                if (this.zzwy().zza(this.zzyX(), v2_14.zzbtd.zzaK, 0, 0, 0, 0, 1).zzbpC <= ((long) this.zzbsr.zzdN(v2_14.zzbtd.zzaK))) {
                                                                    v5_7 = 1;
                                                                } else {
                                                                    com.google.android.gms.internal.zzcgz v7_48 = ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5));
                                                                    String v8_31 = 0;
                                                                    while (v8_31 < v7_48.zzbvA.length) {
                                                                        if (!"_r".equals(v7_48.zzbvA[v8_31].name)) {
                                                                            v8_31++;
                                                                        } else {
                                                                            int v11_30 = new com.google.android.gms.internal.zzclj[(v7_48.zzbvA.length - v10_0)];
                                                                            if (v8_31 > null) {
                                                                                System.arraycopy(v7_48.zzbvA, 0, v11_30, 0, v8_31);
                                                                            }
                                                                            if (v8_31 < v11_30.length) {
                                                                                System.arraycopy(v7_48.zzbvA, (v8_31 + 1), v11_30, v8_31, (v11_30.length - v8_31));
                                                                            }
                                                                            v7_48.zzbvA = v11_30;
                                                                            break;
                                                                        }
                                                                    }
                                                                }
                                                                if ((com.google.android.gms.internal.zzckx.zzep(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name)) && ((v9_28 != null) && (this.zzwy().zza(this.zzyX(), v2_14.zzbtd.zzaK, 0, 0, 1, 0, 0).zzbpA > ((long) this.zzbsr.zzb(v2_14.zzbtd.zzaK, com.google.android.gms.internal.zzcgn.zzbqm))))) {
                                                                    this.zzwE().zzyx().zzj("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK));
                                                                    com.google.android.gms.internal.zzcgz v7_61 = ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5));
                                                                    String v8_33 = v7_61.zzbvA;
                                                                    int v11_35 = 0;
                                                                    int v12_66 = 0;
                                                                    com.google.android.gms.internal.zzclj v13_30 = 0;
                                                                    while (v11_35 < v8_33.length) {
                                                                        Object v14_19 = v8_33[v11_35];
                                                                        if (!"_c".equals(v14_19.name)) {
                                                                            if ("_err".equals(v14_19.name)) {
                                                                                v12_66 = 1;
                                                                            }
                                                                        } else {
                                                                            v13_30 = v14_19;
                                                                        }
                                                                        v11_35++;
                                                                    }
                                                                    if ((v12_66 == 0) || (v13_30 == null)) {
                                                                        if (v13_30 == null) {
                                                                            this.zzwE().zzyv().zzj("Did not find conversion parameter. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK));
                                                                        } else {
                                                                            v13_30.name = "_err";
                                                                            v13_30.zzbvE = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        String v8_38 = new com.google.android.gms.internal.zzclj[(v7_61.zzbvA.length - 1)];
                                                                        Object v9_40 = v7_61.zzbvA;
                                                                        int v10_1 = v9_40.length;
                                                                        int v11_36 = 0;
                                                                        int v12_67 = 0;
                                                                        while (v11_36 < v10_1) {
                                                                            Object v14_18 = v9_40[v11_36];
                                                                            if (v14_18 != v13_30) {
                                                                                int v15_8 = (v12_67 + 1);
                                                                                v8_38[v12_67] = v14_18;
                                                                                v12_67 = v15_8;
                                                                            }
                                                                            v11_36++;
                                                                        }
                                                                        v7_61.zzbvA = v8_38;
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzwA();
                                                                if (com.google.android.gms.internal.zzckx.zzeD(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name)) {
                                                                }
                                                            }
                                                            String v8_39 = (v6_10 + 1);
                                                            v3_8.zzbvI[v6_10] = ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5));
                                                            v6_10 = v8_39;
                                                        } else {
                                                            Object v9_50;
                                                            this.zzwE().zzyx().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK), this.zzwz().zzdX(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name));
                                                            if (this.zzwA().zzeB(v2_14.zzbtd.zzaK)) {
                                                                v9_50 = 1;
                                                            } else {
                                                                if (!this.zzwA().zzeC(v2_14.zzbtd.zzaK)) {
                                                                    v9_50 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v9_50 == null) && (!"_err".equals(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name))) {
                                                                this.zzwA().zza(v2_14.zzbtd.zzaK, 11, "_ev", ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name, 0);
                                                            }
                                                        }
                                                        v4_5++;
                                                        v10_0 = 1;
                                                        v11_0 = 0;
                                                    }
                                                    if (v6_10 < v2_14.zztK.size()) {
                                                        v3_8.zzbvI = ((com.google.android.gms.internal.zzcli[]) java.util.Arrays.copyOf(v3_8.zzbvI, v6_10));
                                                    }
                                                    v3_8.zzbwb = this.zza(v2_14.zzbtd.zzaK, v2_14.zzbtd.zzbvJ, v3_8.zzbvI);
                                                    v3_8.zzbvL = Long.valueOf(nan);
                                                    v3_8.zzbvM = Long.valueOf(-0.0);
                                                    Object v4_16 = 0;
                                                    while (v4_16 < v3_8.zzbvI.length) {
                                                        com.google.android.gms.internal.zzcgz v6_36 = v3_8.zzbvI[v4_16];
                                                        if (v6_36.zzbvB.longValue() < v3_8.zzbvL.longValue()) {
                                                            v3_8.zzbvL = v6_36.zzbvB;
                                                        }
                                                        if (v6_36.zzbvB.longValue() > v3_8.zzbvM.longValue()) {
                                                            v3_8.zzbvM = v6_36.zzbvB;
                                                        }
                                                        v4_16++;
                                                    }
                                                    Object v4_18 = v2_14.zzbtd.zzaK;
                                                    com.google.android.gms.internal.zzcgz v6_18 = this.zzwy().zzdR(v4_18);
                                                    if (v6_18 != null) {
                                                        if (v3_8.zzbvI.length > 0) {
                                                            int v11_2;
                                                            com.google.android.gms.internal.zzcgz v7_4 = v6_18.zzwL();
                                                            if (v7_4 == 0) {
                                                                v11_2 = 0;
                                                            } else {
                                                                v11_2 = Long.valueOf(v7_4);
                                                            }
                                                            v3_8.zzbvO = v11_2;
                                                            int v11_3 = v6_18.zzwK();
                                                            if (v11_3 != 0) {
                                                                v7_4 = v11_3;
                                                            } else {
                                                            }
                                                            com.google.android.gms.internal.zzcgz v7_5;
                                                            if (v7_4 == 0) {
                                                                v7_5 = 0;
                                                            } else {
                                                                v7_5 = Long.valueOf(v7_4);
                                                            }
                                                            v3_8.zzbvN = v7_5;
                                                            v6_18.zzwU();
                                                            v3_8.zzbvZ = Integer.valueOf(((int) v6_18.zzwR()));
                                                            v6_18.zzL(v3_8.zzbvL.longValue());
                                                            v6_18.zzM(v3_8.zzbvM.longValue());
                                                            v3_8.zzboY = v6_18.zzxc();
                                                            this.zzwy().zza(v6_18);
                                                        }
                                                    } else {
                                                        this.zzwE().zzyv().zzj("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK));
                                                    }
                                                    if (v3_8.zzbvI.length > 0) {
                                                        com.google.android.gms.internal.zzcgz v6_25;
                                                        com.google.android.gms.internal.zzcfy.zzxD();
                                                        com.google.android.gms.internal.zzcgz v6_24 = this.zzwB().zzei(v2_14.zzbtd.zzaK);
                                                        if (v6_24 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v2_14.zzbtd.zzboU)) {
                                                                this.zzwE().zzyx().zzj("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK));
                                                            } else {
                                                                v6_25 = Long.valueOf(-1);
                                                                v3_8.zzbwf = v6_25;
                                                            }
                                                        } else {
                                                            if (v6_24.zzbvp != null) {
                                                                v6_25 = v6_24.zzbvp;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzwy().zza(v3_8, v5_7);
                                                    }
                                                    this.zzwy().zzG(v2_14.zzbte);
                                                    com.google.android.gms.internal.zzcfz v2_7 = this.zzwy();
                                                    android.database.sqlite.SQLiteException v5_9 = v2_7.getWritableDatabase();
                                                    try {
                                                        com.google.android.gms.internal.zzcgz v7_21 = new String[2];
                                                        v7_21[0] = v4_18;
                                                        try {
                                                            v7_21[1] = v4_18;
                                                            v5_9.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v7_21);
                                                        } catch (java.io.IOException v0_10) {
                                                            v2_7.zzwE().zzyv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.zzcgx.zzea(v4_18), v0_10);
                                                        }
                                                        int v25;
                                                        this.zzwy().setTransactionSuccessful();
                                                        if (v3_8.zzbvI.length <= 0) {
                                                            v25 = 0;
                                                        } else {
                                                            v25 = 1;
                                                        }
                                                        this.zzwy().endTransaction();
                                                        return v25;
                                                    } catch (java.io.IOException v0_10) {
                                                    }
                                                }
                                            } else {
                                                v9_0.close();
                                            }
                                        } catch (java.io.IOException v0_2) {
                                        }
                                        if (v15_1.moveToNext()) {
                                            v4_20.zzwE().zzyx().zzj("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzcgx.zzea(v3_0));
                                        }
                                        android.database.sqlite.SQLiteException v5_1;
                                        int v16_2;
                                        v15_1.close();
                                        v2_14.zzb(v13_4);
                                        if (v5_11 == -1) {
                                            v5_1 = "app_id = ? and metadata_fingerprint = ?";
                                            Object v9_4 = new String[2];
                                            v9_4[0] = v3_0;
                                            v9_4[1] = v21_1;
                                            v16_2 = v9_4;
                                        } else {
                                            int v12_13 = new String[3];
                                            v12_13[0] = v3_0;
                                            v12_13[1] = v21_1;
                                            v12_13[2] = String.valueOf(v5_11);
                                            v5_1 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_2 = v12_13;
                                        }
                                        v9_0 = v15_1;
                                        android.database.sqlite.SQLiteException v5_3 = v24.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_1, v16_2, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_3.moveToFirst()) {
                                                do {
                                                    int v12_16 = v5_3.getLong(0);
                                                    Object v9_8 = v5_3.getBlob(3);
                                                    Object v9_9 = com.google.android.gms.internal.ahw.zzb(v9_8, 0, v9_8.length);
                                                    Object v14_7 = new com.google.android.gms.internal.zzcli();
                                                    v14_7.zza(v9_9);
                                                    v14_7.name = v5_3.getString(1);
                                                    v14_7.zzbvB = Long.valueOf(v5_3.getLong(2));
                                                    if (v2_14.zza(v12_16, v14_7)) {
                                                    } else {
                                                        if (v5_3 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_3.moveToNext());
                                                if (v5_3 == null) {
                                                }
                                            } else {
                                                v4_20.zzwE().zzyx().zzj("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzcgx.zzea(v3_0));
                                                if (v5_3 == null) {
                                                }
                                            }
                                        } catch (java.io.IOException v0_8) {
                                            com.google.android.gms.internal.zzcfz v2_0 = v0_8;
                                            v9_0 = v5_3;
                                            if (v9_0 != null) {
                                                v9_0.close();
                                            }
                                            throw v2_0;
                                        } catch (java.io.IOException v0_2) {
                                            String v21_0 = v3_0;
                                            v9_0 = v5_3;
                                            String v3_1 = v0_2;
                                            v4_20.zzwE().zzyv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzcgx.zzea(v21_0), v3_1);
                                            if (v9_0 == null) {
                                            }
                                        }
                                        v5_3.close();
                                    } else {
                                        v4_20.zzwE().zzyv().zzj("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzcgx.zzea(v3_0));
                                        if (v15_1 == 0) {
                                        } else {
                                            v15_1.close();
                                        }
                                    }
                                } catch (java.io.IOException v0_6) {
                                    v9_0 = v15_1;
                                    v2_0 = v0_6;
                                } catch (java.io.IOException v0_2) {
                                    v9_0 = v15_1;
                                } catch (java.io.IOException v0_9) {
                                    v2_0 = v0_9;
                                    v9_0 = v15_1;
                                } catch (java.io.IOException v0_2) {
                                    v21_0 = v3_0;
                                    v9_0 = v15_1;
                                }
                                v21_0 = v3_0;
                            } catch (java.io.IOException v0_4) {
                                v2_0 = v0_4;
                                v9_0 = v22;
                            } catch (java.io.IOException v0_2) {
                                v21_0 = v3_0;
                                v9_0 = v22;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                            }
                        }
                    } else {
                        int v12_54;
                        if (v5_11 == -1) {
                            v12_54 = new String[1];
                            v12_54[0] = String.valueOf(p28);
                        } else {
                            v12_54 = new String[2];
                            v12_54[0] = String.valueOf(v5_11);
                            v12_54[1] = String.valueOf(p28);
                        }
                        com.google.android.gms.internal.zzclj v13_31;
                        if (v5_11 == -1) {
                            v13_31 = "";
                        } else {
                            v13_31 = "rowid <= ? and ";
                        }
                        String v3_13 = new StringBuilder((String.valueOf(v13_31).length() + 148));
                        v3_13.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_13.append(v13_31);
                        v3_13.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_2.rawQuery(v3_13.toString(), v12_54);
                        if (v3_0.moveToFirst()) {
                            int v12_1 = v3_0.getString(0);
                            try {
                                com.google.android.gms.internal.zzclj v13_0 = v3_0.getString(1);
                                v3_0.close();
                                v22 = v3_0;
                                v3_0 = v12_1;
                                v21_1 = v13_0;
                            } catch (java.io.IOException v0_2) {
                                v9_0 = v3_0;
                                v21_0 = v12_1;
                            }
                        } else {
                            if (v3_0 == null) {
                            }
                        }
                    }
                } catch (java.io.IOException v0_3) {
                    v2_0 = v0_3;
                    v9_0 = v3_0;
                } catch (java.io.IOException v0_2) {
                    v9_0 = v3_0;
                    v21_0 = v9_0;
                } catch (java.io.IOException v0_2) {
                    v9_0 = v3_0;
                    v21_0 = 0;
                }
                v3_0.close();
            } catch (java.io.IOException v0_1) {
                v2_0 = v0_1;
                v9_0 = 0;
            } catch (java.io.IOException v0_0) {
                v3_1 = v0_0;
                v9_0 = 0;
                v21_0 = 0;
            } catch (java.io.IOException v0_6) {
            }
        } catch (java.io.IOException v0_11) {
            com.google.android.gms.internal.zzcfz v2_15 = v0_11;
            this.zzwy().endTransaction();
            throw v2_15;
        }
    }

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


    private final void zzc(com.google.android.gms.internal.zzcgl p27, com.google.android.gms.internal.zzcft p28)
    {
        com.google.android.gms.common.internal.zzbr.zzu(p28);
        com.google.android.gms.common.internal.zzbr.zzcF(p28.packageName);
        int v13_1 = System.nanoTime();
        this.zzwD().zzjB();
        this.zzkC();
        String v15 = p28.packageName;
        this.zzwA();
        if (com.google.android.gms.internal.zzckx.zzd(p27, p28)) {
            if (p28.zzboZ) {
                com.google.android.gms.internal.zzcgh v10_0 = 0;
                if (!this.zzwB().zzN(v15, p27.name)) {
                    if (this.zzwE().zzz(2)) {
                        this.zzwE().zzyB().zzj("Logging event", this.zzwz().zzb(p27));
                    }
                    this.zzwy().beginTransaction();
                    try {
                        long v19;
                        Long v8_8 = p27.zzbpQ.zzyr();
                        void v11_1 = this.zzf(p28);
                    } catch (com.google.android.gms.internal.zzckw v0_68) {
                        this.zzwy().endTransaction();
                        throw v0_68;
                    }
                    if ("_iap".equals(p27.name)) {
                        String v3_0;
                        com.google.android.gms.internal.zzckw v0_86 = v8_8.getString("currency");
                        if (!"ecommerce_purchase".equals(p27.name)) {
                            v3_0 = v8_8.getLong("value");
                        } else {
                            String v3_43 = (v8_8.getDouble("value") * 1000000.0);
                            if (v3_43 == 0) {
                                String v3_46 = ((double) v8_8.getLong("value"));
                                Double.isNaN(v3_46);
                                v3_43 = (v3_46 * 1000000.0);
                            }
                            if ((v3_43 > 9.223372036854776e+18) || (v3_43 < -9.223372036854776e+18)) {
                                this.zzwE().zzyx().zze("Data lost. Currency value is too big. appId", com.google.android.gms.internal.zzcgx.zzea(v15), Double.valueOf(v3_43));
                                this.zzwy().setTransactionSuccessful();
                                this.zzwy().endTransaction();
                                return;
                            } else {
                                v3_0 = Math.round(v3_43);
                            }
                        }
                        if (android.text.TextUtils.isEmpty(v0_86)) {
                            v19 = v8_8;
                        } else {
                            com.google.android.gms.internal.zzckw v0_2 = v0_86.toUpperCase(java.util.Locale.US);
                            if (!v0_2.matches("[A-Z]{3}")) {
                            } else {
                                com.google.android.gms.internal.zzckw v0_5;
                                int v5_5 = String.valueOf("_ltv_");
                                com.google.android.gms.internal.zzckw v0_3 = String.valueOf(v0_2);
                                if (v0_3.length() == 0) {
                                    v0_5 = new String(v5_5);
                                } else {
                                    v0_5 = v5_5.concat(v0_3);
                                }
                                int v5_6 = v0_5;
                                com.google.android.gms.internal.zzckw v0_10;
                                com.google.android.gms.internal.zzckw v0_7 = this.zzwy().zzG(v15, v5_6);
                                if (v0_7 == null) {
                                    v19 = v8_8;
                                    long v6_6 = this.zzwy();
                                    com.google.android.gms.internal.zzckw v0_15 = (v11_1.zzbsr.zzb(v15, com.google.android.gms.internal.zzcgn.zzbqD) - 1);
                                    com.google.android.gms.common.internal.zzbr.zzcF(v15);
                                    v6_6.zzjB();
                                    v6_6.zzkC();
                                    try {
                                        long v7_1 = v6_6.getWritableDatabase();
                                        Long v9_3 = new String[3];
                                        v9_3[0] = v15;
                                        v9_3[1] = v15;
                                        try {
                                            v9_3[2] = String.valueOf(v0_15);
                                            v7_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);", v9_3);
                                        } catch (com.google.android.gms.internal.zzckw v0_17) {
                                            v6_6.zzwE().zzyv().zze("Error pruning currencies. appId", com.google.android.gms.internal.zzcgx.zzea(v15), v0_17);
                                        }
                                        v0_10 = new com.google.android.gms.internal.zzckw;
                                        v0_10(v15, p27.zzbpg, v5_6, v11_1.zzvz.currentTimeMillis(), Long.valueOf(v3_0));
                                    } catch (com.google.android.gms.internal.zzckw v0_17) {
                                    }
                                } else {
                                    if ((v0_7.mValue instanceof Long)) {
                                        v0_10 = new com.google.android.gms.internal.zzckw;
                                        v19 = v8_8;
                                        v0_10(v15, p27.zzbpg, v5_6, v11_1.zzvz.currentTimeMillis(), Long.valueOf((((Long) v0_7.mValue).longValue() + v3_0)));
                                    } else {
                                    }
                                }
                                if (!this.zzwy().zza(v0_10)) {
                                    this.zzwE().zzyv().zzd("Too many unique user properties are set. Ignoring user property. appId", com.google.android.gms.internal.zzcgx.zzea(v15), this.zzwz().zzdZ(v0_10.mName), v0_10.mValue);
                                    this.zzwA().zza(v15, 9, 0, 0, 0);
                                }
                            }
                        }
                    } else {
                        if (!"ecommerce_purchase".equals(p27.name)) {
                        } else {
                        }
                    }
                    com.google.android.gms.internal.zzckw v0_22 = com.google.android.gms.internal.zzckx.zzep(p27.name);
                    boolean v17 = "_err".equals(p27.name);
                    long v20 = v13_1;
                    com.google.android.gms.internal.zzckw v2_15 = this.zzwy().zza(this.zzyX(), v15, 1, v0_22, 0, v17, 0);
                    String v3_8 = (v2_15.zzbpz - com.google.android.gms.internal.zzcfy.zzxp());
                    if (v3_8 <= 0) {
                        if (v0_22 != null) {
                            String v3_10 = (v2_15.zzbpy - com.google.android.gms.internal.zzcfy.zzxq());
                            if (v3_10 > 0) {
                                if ((v3_10 % 1000) == 1) {
                                    this.zzwE().zzyv().zze("Data loss. Too many public events logged. appId, count", com.google.android.gms.internal.zzcgx.zzea(v15), Long.valueOf(v2_15.zzbpy));
                                }
                                this.zzwA().zza(v15, 16, "_ev", p27.name, 0);
                                this.zzwy().setTransactionSuccessful();
                                this.zzwy().endTransaction();
                                return;
                            }
                        }
                        if (v17) {
                            String v3_12 = (v2_15.zzbpB - ((long) Math.max(0, Math.min(1000000, v11_1.zzbsr.zzb(p28.packageName, com.google.android.gms.internal.zzcgn.zzbqk)))));
                            if (v3_12 > 0) {
                                if (v3_12 == 1) {
                                    this.zzwE().zzyv().zze("Too many error events logged. appId, count", com.google.android.gms.internal.zzcgx.zzea(v15), Long.valueOf(v2_15.zzbpB));
                                }
                                this.zzwy().setTransactionSuccessful();
                                this.zzwy().endTransaction();
                                return;
                            }
                        }
                        com.google.android.gms.internal.zzcgh v10_2 = v19;
                        this.zzwA().zza(v10_2, "_o", p27.zzbpg);
                        if (this.zzwA().zzez(v15)) {
                            this.zzwA().zza(v10_2, "_dbg", Long.valueOf(1));
                            this.zzwA().zza(v10_2, "_r", Long.valueOf(1));
                        }
                        com.google.android.gms.internal.zzckw v2_19 = this.zzwy().zzdS(v15);
                        if (v2_19 > 0) {
                            this.zzwE().zzyx().zze("Data lost. Too many events stored on disk, deleted. appId", com.google.android.gms.internal.zzcgx.zzea(v15), Long.valueOf(v2_19));
                        }
                        com.google.android.gms.internal.zzcgh v10_3;
                        com.google.android.gms.internal.zzckw v0_40 = new com.google.android.gms.internal.zzcgg;
                        v0_40(this, p27.zzbpg, v15, p27.name, p27.zzbpR, 0, v10_2);
                        String v1_3 = this.zzwy().zzE(v15, v0_40.mName);
                        if (v1_3 != null) {
                            v0_40 = v0_40.zza(v11_1, v1_3.zzbpM);
                            v10_3 = v1_3.zzab(v0_40.zzayU);
                        } else {
                            String v1_5 = this.zzwy().zzdV(v15);
                            com.google.android.gms.internal.zzcfy.zzxo();
                            if (v1_5 < 500) {
                                v10_3 = new com.google.android.gms.internal.zzcgh;
                                v10_3(v15, v0_40.mName, 0, 0, v0_40.zzayU);
                            } else {
                                this.zzwE().zzyv().zzd("Too many event names used, ignoring event. appId, name, supported count", com.google.android.gms.internal.zzcgx.zzea(v15), this.zzwz().zzdX(v0_40.mName), Integer.valueOf(com.google.android.gms.internal.zzcfy.zzxo()));
                                this.zzwA().zza(v15, 8, 0, 0, 0);
                                this.zzwy().endTransaction();
                                return;
                            }
                        }
                        this.zzwy().zza(v10_3);
                        v11_1.zza(v0_40, p28);
                        this.zzwy().setTransactionSuccessful();
                        if (this.zzwE().zzz(2)) {
                            this.zzwE().zzyB().zzj("Event recorded", this.zzwz().zza(v0_40));
                        }
                        this.zzwy().endTransaction();
                        this.zzza().zzwE().zzyB().zzj("Background event processing time, ms", Long.valueOf((((System.nanoTime() - v20) + 500000) / 1000000)));
                        return;
                    } else {
                        if ((v3_8 % 1000) == 1) {
                            this.zzwE().zzyv().zze("Data loss. Too many events logged. appId, count", com.google.android.gms.internal.zzcgx.zzea(v15), Long.valueOf(v2_15.zzbpz));
                        }
                        this.zzwy().setTransactionSuccessful();
                        this.zzwy().endTransaction();
                        return;
                    }
                } else {
                    this.zzwE().zzyx().zze("Dropping blacklisted event. appId", com.google.android.gms.internal.zzcgx.zzea(v15), this.zzwz().zzdX(p27.name));
                    if ((this.zzwA().zzeB(v15)) || (this.zzwA().zzeC(v15))) {
                        v10_0 = 1;
                    }
                    if ((v10_0 == null) && (!"_err".equals(p27.name))) {
                        this.zzwA().zza(v15, 11, "_ev", p27.name, 0);
                    }
                    if (v10_0 != null) {
                        com.google.android.gms.internal.zzckw v0_83 = this.zzwy().zzdR(v15);
                        if ((v0_83 != null) && (Math.abs((this.zzvz.currentTimeMillis() - Math.max(v0_83.zzwT(), v0_83.zzwS()))) > com.google.android.gms.internal.zzcfy.zzxH())) {
                            this.zzwE().zzyA().log("Fetching config for blacklisted app");
                            this.zzb(v0_83);
                        }
                    }
                    return;
                }
            } else {
                this.zzf(p28);
                return;
            }
        } else {
            return;
        }
    }

Method com.google.android.gms.internal.zzaof.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.zzaof.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.zzaoe.zzkU();
        }
        if (this.zza(p6, "properties")) {
            com.google.android.gms.internal.zzaof.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.sc.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.sc.zzc(p2, "serverCache");
            p2.execSQL("CREATE TABLE serverCache (path TEXT PRIMARY KEY, value BLOB);");
            com.google.android.gms.internal.sc.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.internal.sc.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.sc.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.zzcgt.zzbo() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final java.util.List zzbo(int p19)
    {
        super.zzjB();
        void v18_1 = super.zzwo();
        if (!this.zzbqK) {
            String v3_2 = new java.util.ArrayList();
            if (super.getContext().getDatabasePath(com.google.android.gms.internal.zzcfy.zzxC()).exists()) {
                int v4_1 = 5;
                int v6 = 0;
                int v7 = 5;
                while (v6 < v4_1) {
                    try {
                        int v15_0 = v18_1.getWritableDatabase();
                    } catch (int v0_26) {
                        int v4_2 = 0;
                        int v9_0 = 0;
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        if (v4_2 != 0) {
                            v4_2.close();
                        }
                        throw v0_26;
                    } catch (int v0_25) {
                        v4_2 = 0;
                        v9_0 = 0;
                        super.zzwE().zzyv().zzj("Error reading entries from local database", v0_25);
                        this.zzbqK = 1;
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        if (v4_2 == 0) {
                            v6++;
                            v4_1 = 5;
                        } else {
                            v4_2.close();
                        }
                        v3_2.add(int v0_6);
                        try {
                            while (v9_0.moveToNext()) {
                                String v10_0 = v9_0.getLong(0);
                                int v0_0 = v9_0.getInt(1);
                                String v13_0 = v9_0.getBlob(2);
                                if (v0_0 != 0) {
                                    if (v0_0 != 1) {
                                        if (v0_0 != 2) {
                                            super.zzwE().zzyv().log("Unknown record type in local database");
                                        } else {
                                            String v12_2 = android.os.Parcel.obtain();
                                            try {
                                                v12_2.unmarshall(v13_0, 0, v13_0.length);
                                                v12_2.setDataPosition(0);
                                                v0_6 = ((com.google.android.gms.internal.zzcfw) com.google.android.gms.internal.zzcfw.CREATOR.createFromParcel(v12_2));
                                            } catch (int v0_10) {
                                                v12_2.recycle();
                                                throw v0_10;
                                            }
                                            v12_2.recycle();
                                            if (v0_6 != 0) {
                                            }
                                        }
                                    } else {
                                        String v12_3 = android.os.Parcel.obtain();
                                        try {
                                            v12_3.unmarshall(v13_0, 0, v13_0.length);
                                            v12_3.setDataPosition(0);
                                            v0_6 = ((com.google.android.gms.internal.zzcku) com.google.android.gms.internal.zzcku.CREATOR.createFromParcel(v12_3));
                                        } catch (int v0_17) {
                                            v12_3.recycle();
                                            throw v0_17;
                                        }
                                        v12_3.recycle();
                                        if (v0_6 != 0) {
                                        }
                                    }
                                } else {
                                    String v12_4 = android.os.Parcel.obtain();
                                    try {
                                        v12_4.unmarshall(v13_0, 0, v13_0.length);
                                        v12_4.setDataPosition(0);
                                        v0_6 = ((com.google.android.gms.internal.zzcgl) com.google.android.gms.internal.zzcgl.CREATOR.createFromParcel(v12_4));
                                    } catch (int v0_23) {
                                        v12_4.recycle();
                                        throw v0_23;
                                    }
                                    v12_4.recycle();
                                    if (v0_6 != 0) {
                                    }
                                }
                            }
                        } catch (int v0_25) {
                        } catch (int v0_24) {
                            if (android.os.Build$VERSION.SDK_INT < 11) {
                                if (v4_2 != 0) {
                                    if (v4_2.inTransaction()) {
                                        v4_2.endTransaction();
                                    }
                                }
                                super.zzwE().zzyv().zzj("Error reading entries from local database", v0_24);
                                this.zzbqK = 1;
                            } else {
                                if (!(v0_24 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                                } else {
                                    android.os.SystemClock.sleep(((long) v7));
                                    v7 += 20;
                                }
                            }
                            if (v9_0 != 0) {
                                v9_0.close();
                            }
                            if (v4_2 == 0) {
                            }
                        }
                        String v13_5 = new String[1];
                        v13_5[0] = Long.toString(v10_0);
                        if (v4_2.delete("messages", "rowid <= ?", v13_5) < v3_2.size()) {
                            super.zzwE().zzyv().log("Fewer entries removed from local database than expected");
                        }
                        v4_2.setTransactionSuccessful();
                        v4_2.endTransaction();
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        if (v4_2 != 0) {
                            v4_2.close();
                        }
                        return v3_2;
                    } catch (int v0_24) {
                        v4_2 = 0;
                        v9_0 = 0;
                    } catch (int v0_26) {
                    }
                    if (v15_0 != 0) {
                        try {
                            v15_0.beginTransaction();
                            v4_2 = v15_0;
                            try {
                                v9_0 = v15_0.query("messages", new String[] {"rowid", "type", "entry"}), 0, 0, 0, 0, "rowid asc", Integer.toString(100));
                                v10_0 = -1;
                            } catch (int v0_26) {
                                v9_0 = 0;
                            } catch (int v0_25) {
                                v9_0 = 0;
                            } catch (int v0_24) {
                                v9_0 = 0;
                            }
                        } catch (int v0_26) {
                            v4_2 = 0;
                        } catch (int v0_25) {
                            v4_2 = 0;
                        } catch (int v0_24) {
                            v4_2 = 0;
                        }
                    } else {
                        try {
                            this.zzbqK = 1;
                        } catch (int v0_26) {
                            v9_0 = 0;
                            v4_2 = v15_0;
                        } catch (int v0_25) {
                            v9_0 = 0;
                            v4_2 = v15_0;
                        } catch (int v0_24) {
                            v9_0 = 0;
                            v4_2 = v15_0;
                        }
                        if (v15_0 != 0) {
                            v15_0.close();
                        }
                        return 0;
                    }
                }
                super.zzwE().zzyx().log("Failed to read events from database in reasonable time");
                return 0;
            } else {
                return v3_2;
            }
        } else {
            return 0;
        }
    }

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


    private final boolean zza(int p18, byte[] p19)
    {
        super.zzwo();
        void v17_1 = super.zzjB();
        Long v2_7 = 0;
        if (!this.zzbqK) {
            android.content.ContentValues v3_1 = new android.content.ContentValues();
            v3_1.put("type", Integer.valueOf(p18));
            v3_1.put("entry", p19);
            com.google.android.gms.internal.zzcfy.zzxM();
            Long v4_5 = 5;
            int v5 = 0;
            int v6 = 5;
            while (v5 < v4_5) {
                int v7 = 0;
                try {
                    int v9 = v17_1.getWritableDatabase();
                    try {
                        if (v9 != 0) {
                            v9.beginTransaction();
                            Long v10_0 = 0;
                            int v12 = v9.rawQuery("select count(1) from messages", 0);
                            if ((v12 != 0) && (v12.moveToFirst())) {
                                v10_0 = v12.getLong(v2_7);
                            }
                            if (v10_0 >= 100000) {
                                super.zzwE().zzyv().log("Data loss, local db full");
                                long v13_2 = ((100000 - v10_0) + 1);
                                String[] v11 = new String[1];
                                v11[v2_7] = Long.toString(v13_2);
                                Long v10_3 = ((long) v9.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v11));
                                if (v10_3 != v13_2) {
                                    super.zzwE().zzyv().zzd("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v13_2), Long.valueOf(v10_3), Long.valueOf((v13_2 - v10_3)));
                                }
                            }
                            v9.insertOrThrow("messages", 0, v3_1);
                            v9.setTransactionSuccessful();
                            v9.endTransaction();
                            if (v12 != 0) {
                                v12.close();
                            }
                            if (v9 != 0) {
                                v9.close();
                            }
                            return 1;
                        } else {
                            this.zzbqK = 1;
                            if (v9 != 0) {
                                v9.close();
                            }
                            return v2_7;
                        }
                        v7 = v9;
                        try {
                            if (android.os.Build$VERSION.SDK_INT < 11) {
                                if (v7 != 0) {
                                    if (v7.inTransaction()) {
                                        v7.endTransaction();
                                    }
                                }
                                super.zzwE().zzyv().zzj("Error writing entry to local database", com.google.android.gms.internal.zzcgz v0_0);
                                this.zzbqK = 1;
                            } else {
                                if (!(v0_0 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                                } else {
                                    android.os.SystemClock.sleep(((long) v6));
                                    v6 += 20;
                                }
                            }
                            if (v12 != 0) {
                                v12.close();
                            }
                            if (v7 == 0) {
                                v5++;
                                v2_7 = 0;
                                v4_5 = 5;
                            } else {
                                v7.close();
                            }
                        } catch (com.google.android.gms.internal.zzcgz v0_2) {
                            v9 = v7;
                            if (v12 != 0) {
                                v12.close();
                            }
                            if (v9 != 0) {
                                v9.close();
                            }
                            throw v0_2;
                        }
                    } catch (com.google.android.gms.internal.zzcgz v0_3) {
                        super.zzwE().zzyv().zzj("Error writing entry to local database", v0_3);
                        this.zzbqK = 1;
                        if (v7 != 0) {
                            v7.close();
                        }
                        if (v9 == 0) {
                        } else {
                            v9.close();
                        }
                    } catch (com.google.android.gms.internal.zzcgz v0_0) {
                        v12 = 0;
                    }
                } catch (com.google.android.gms.internal.zzcgz v0_2) {
                    v9 = 0;
                    v12 = 0;
                } catch (com.google.android.gms.internal.zzcgz v0_3) {
                    v9 = 0;
                } catch (com.google.android.gms.internal.zzcgz v0_0) {
                    v12 = 0;
                } catch (com.google.android.gms.internal.zzcgz v0_2) {
                    v12 = v7;
                }
            }
            super.zzwE().zzyx().log("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

Method com.google.android.gms.internal.zzcfz.zzyd() calling method android.database.sqlite.SQLiteDatabase.delete()


    final void zzyd()
    {
        this.zzjB();
        this.zzkC();
        if (this.zzyj()) {
            Integer v0_11 = this.zzwF().zzbrr.get();
            String v2_1 = this.zzkp().elapsedRealtime();
            if (Math.abs((v2_1 - v0_11)) > com.google.android.gms.internal.zzcfy.zzxG()) {
                this.zzwF().zzbrr.set(v2_1);
                this.zzjB();
                this.zzkC();
                if (this.zzyj()) {
                    Integer v0_6 = this.getWritableDatabase();
                    com.google.android.gms.internal.zzcgz v1_1 = new String[2];
                    v1_1[0] = String.valueOf(this.zzkp().currentTimeMillis());
                    v1_1[1] = String.valueOf(com.google.android.gms.internal.zzcfy.zzxF());
                    Integer v0_7 = v0_6.delete("queue", "abs(bundle_end_timestamp - ?) > cast(? as integer)", v1_1);
                    if (v0_7 > null) {
                        this.zzwE().zzyB().zzj("Deleted stale rows. rowsDeleted", Integer.valueOf(v0_7));
                    }
                }
            }
            return;
        } else {
            return;
        }
    }

Method com.google.android.gms.internal.zzcfz.zzdS() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final long zzdS(String p7)
    {
        com.google.android.gms.common.internal.zzbr.zzcF(p7);
        this.zzjB();
        this.zzkC();
        try {
            long v0_4 = this.getWritableDatabase();
            com.google.android.gms.internal.zzcgz v1_2 = String.valueOf(Math.max(0, Math.min(1000000, this.zzwG().zzb(p7, com.google.android.gms.internal.zzcgn.zzbqo))));
            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.zzwE().zzyv().zze("Error deleting over the limit events. appId", com.google.android.gms.internal.zzcgx.zzea(p7), v0_2);
            return 0;
        }
    }

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


    final void zza(String p13, com.google.android.gms.internal.zzcky[] p14)
    {
        this.zzkC();
        this.zzjB();
        com.google.android.gms.common.internal.zzbr.zzcF(p13);
        com.google.android.gms.common.internal.zzbr.zzu(p14);
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        v0.beginTransaction();
        try {
            this.zzkC();
            this.zzjB();
            com.google.android.gms.common.internal.zzbr.zzcF(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.zzkC();
            this.zzjB();
            com.google.android.gms.common.internal.zzbr.zzcF(p13);
            com.google.android.gms.common.internal.zzbr.zzu(v3_7);
            com.google.android.gms.common.internal.zzbr.zzu(v3_7.zzbuO);
            com.google.android.gms.common.internal.zzbr.zzu(v3_7.zzbuN);
            if (v3_7.zzbuM != null) {
                String v5_11 = v3_7.zzbuM.intValue();
                int v7_2 = v3_7.zzbuO;
                int v9_2 = 0;
                while (v9_2 < v7_2.length) {
                    if (v7_2[v9_2].zzbuQ != null) {
                        v9_2++;
                    } else {
                        String v5_2 = this.zzwE().zzyx();
                        int v7_0 = "Event filter with no ID. Audience definition ignored. appId, audienceId";
                        String v8_0 = com.google.android.gms.internal.zzcgx.zzea(p13);
                        android.database.sqlite.SQLiteDatabase v3_0 = v3_7.zzbuM;
                    }
                    v5_2.zze(v7_0, v8_0, v3_0);
                }
                int v7_3 = v3_7.zzbuN;
                int v9_1 = 0;
                while (v9_1 < v7_3.length) {
                    if (v7_3[v9_1].zzbuQ != null) {
                        v9_1++;
                    } else {
                        v5_2 = this.zzwE().zzyx();
                        v7_0 = "Property filter with no ID. Audience definition ignored. appId, audienceId";
                        v8_0 = com.google.android.gms.internal.zzcgx.zzea(p13);
                        v3_0 = v3_7.zzbuM;
                    }
                }
                int v7_4 = v3_7.zzbuO;
                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.zzbuN;
                        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.zzkC();
                        this.zzjB();
                        com.google.android.gms.common.internal.zzbr.zzcF(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.zzwE().zzyx().zzj("Audience with no ID. appId", com.google.android.gms.internal.zzcgx.zzea(p13));
            }
        }
        java.util.ArrayList v1_3 = new java.util.ArrayList();
        int v2_3 = p14.length;
        while (v6 < v2_3) {
            v1_3.add(p14[v6].zzbuM);
            v6++;
        }
        this.zzc(p13, v1_3);
        v0.setTransactionSuccessful();
        v0.endTransaction();
        return;
    }

Method com.google.android.gms.internal.zzcfz.zzI() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final int zzI(String p7, String p8)
    {
        com.google.android.gms.common.internal.zzbr.zzcF(p7);
        com.google.android.gms.common.internal.zzbr.zzcF(p8);
        this.zzjB();
        this.zzkC();
        try {
            android.database.sqlite.SQLiteException v1_2 = this.getWritableDatabase();
            com.google.android.gms.internal.zzcgv 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.zzwE().zzyv().zzd("Error deleting conditional property", com.google.android.gms.internal.zzcgx.zzea(p7), this.zzwz().zzdZ(p8), v1_1);
            return 0;
        }
    }

Method com.google.android.gms.internal.zzcfz.zzG() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzG(java.util.List p5)
    {
        com.google.android.gms.common.internal.zzbr.zzu(p5);
        this.zzjB();
        this.zzkC();
        Integer v0_4 = new StringBuilder("rowid in (");
        com.google.android.gms.internal.zzcgz 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.zzwE().zzyv().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.zzcfz.zzF() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzF(String p6, String p7)
    {
        com.google.android.gms.common.internal.zzbr.zzcF(p6);
        com.google.android.gms.common.internal.zzbr.zzcF(p7);
        this.zzjB();
        this.zzkC();
        try {
            android.database.sqlite.SQLiteException v0_3 = this.getWritableDatabase();
            com.google.android.gms.internal.zzcgv v3_2 = new String[2];
            v3_2[0] = p6;
            v3_2[1] = p7;
            this.zzwE().zzyB().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.zzwE().zzyv().zzd("Error deleting user attribute. appId", com.google.android.gms.internal.zzcgx.zzea(p6), this.zzwz().zzdZ(p7), v0_2);
            return;
        }
    }

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


    private final boolean zzc(String p10, java.util.List p11)
    {
        com.google.android.gms.common.internal.zzbr.zzcF(p10);
        this.zzkC();
        this.zzjB();
        com.google.android.gms.internal.zzcgz v0_2 = this.getWritableDatabase();
        try {
            String v4_8 = new String[1];
            v4_8[0] = p10;
            String v4_0 = this.zzb("select count(1) from audience_filter_values where app_id=?", v4_8);
            String v2_3 = Math.max(0, Math.min(2000, this.zzwG().zzb(p10, com.google.android.gms.internal.zzcgn.zzbqE)));
        } catch (String v11_1) {
            this.zzwE().zzyv().zze("Database error querying filters. appId", com.google.android.gms.internal.zzcgx.zzea(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_4 = String.valueOf(android.text.TextUtils.join(",", v4_2));
            String v6_5 = new StringBuilder((String.valueOf(v11_4).length() + 2));
            v6_5.append("(");
            v6_5.append(v11_4);
            v6_5.append(")");
            String v11_6 = v6_5.toString();
            boolean v7_1 = new StringBuilder((String.valueOf(v11_6).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_6);
            v7_1.append(" order by rowid desc limit -1 offset ?)");
            String v11_8 = 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_8, v5_2) <= 0) {
                return 0;
            } else {
                return 1;
            }
        } else {
            return 0;
        }
    }

Method com.google.android.gms.internal.zzaoh.zzkj() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzkj()
    {
        com.google.android.gms.analytics.zzl.zzjB();
        this.zzkC();
        this.zzbo("Delete all hits from local store");
        try {
            String v0_7 = this.zzagx;
            com.google.android.gms.analytics.zzl.zzjB();
            v0_7.zzkC();
            v0_7.getWritableDatabase().delete("hits2", 0, 0);
            String v0_0 = this.zzagx;
            com.google.android.gms.analytics.zzl.zzjB();
            v0_0.zzkC();
            v0_0.getWritableDatabase().delete("properties", 0, 0);
            this.zzlc();
        } catch (String v0_3) {
            this.zzd("Failed to delete hits from store", v0_3);
        }
        this.zzkZ();
        if (this.zzagA.zzkN()) {
            this.zzbo("Device service unavailable. Can\'t clear hits stored on the device service.");
        }
        return;
    }

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


    public final long zza(com.google.android.gms.internal.zzany p11, boolean p12)
    {
        com.google.android.gms.common.internal.zzbr.zzu(p11);
        this.zzkC();
        com.google.android.gms.analytics.zzl.zzjB();
        try {
            this.zzagx.beginTransaction();
            String v12_8 = this.zzagx;
            long v2_6 = p11.zzkJ();
            String v4_0 = p11.zzjW();
            com.google.android.gms.common.internal.zzbr.zzcF(v4_0);
            v12_8.zzkC();
            com.google.android.gms.analytics.zzl.zzjB();
            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.zzagx.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.zzagx.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.zzagx.zza(p11.zzkJ(), p11.zzjW(), p11.zzkK());
        p11.zzm((1 + v2_5));
        String v12_7 = this.zzagx;
        com.google.android.gms.common.internal.zzbr.zzu(p11);
        v12_7.zzkC();
        com.google.android.gms.analytics.zzl.zzjB();
        String v4_6 = v12_7.getWritableDatabase();
        int v5_3 = p11.zzdU();
        com.google.android.gms.common.internal.zzbr.zzu(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.zzkJ()));
        v6_4.put("cid", p11.zzjW());
        v6_4.put("tid", p11.zzkK());
        v6_4.put("adid", Integer.valueOf(p11.zzkL()));
        v6_4.put("hits_count", Long.valueOf(p11.zzkM()));
        v6_4.put("params", v5_7);
        try {
            if (v4_6.insertWithOnConflict("properties", 0, v6_4, 5) == -1) {
                v12_7.zzbs("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.zzagx.setTransactionSuccessful();
        try {
            this.zzagx.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.zzaoe.zzs() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzs(java.util.List p9)
    {
        com.google.android.gms.common.internal.zzbr.zzu(p9);
        com.google.android.gms.analytics.zzl.zzjB();
        this.zzkC();
        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.zzaoe.zzkR() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final int zzkR()
    {
        com.google.android.gms.analytics.zzl.zzjB();
        this.zzkC();
        if (this.zzagu.zzu(86400000)) {
            this.zzagu.start();
            this.zzbo("Deleting stale hits (if any)");
            int v0_1 = this.getWritableDatabase();
            String[] v6_1 = new String[1];
            v6_1[0] = Long.toString((this.zzkp().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.tagmanager.zzeb.zzb() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzb(long p9, String p11)
    {
        android.database.sqlite.SQLiteDatabase v0_3 = this.zzvz.currentTimeMillis();
        if (v0_3 > (this.zzbFB + 86400000)) {
            this.zzbFB = v0_3;
            android.database.sqlite.SQLiteDatabase v0_2 = this.zzfi("Error opening database for deleteStaleHits.");
            if (v0_2 != null) {
                android.content.ContentValues v1_3;
                String[] v7 = new String[1];
                v7[0] = Long.toString((this.zzvz.currentTimeMillis() - 1.280618154e-314));
                v0_2.delete("gtm_hits", "HIT_TIME < ?", v7);
                if (this.zzBx() != 0) {
                    v1_3 = 0;
                } else {
                    v1_3 = 1;
                }
                this.zzbFz.zzar(v1_3);
            }
        }
        android.database.sqlite.SQLiteDatabase v0_7 = ((this.zzBx() - this.zzbFC) + 1);
        if (v0_7 > null) {
            android.database.sqlite.SQLiteDatabase v0_8 = this.zzbC(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.zzdi.v(v4_5.toString());
            android.content.ContentValues v1_8 = new String[0];
            this.zzd(((String[]) v0_8.toArray(v1_8)));
        }
        android.database.sqlite.SQLiteDatabase v0_12 = this.zzfi("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.zzbFz.zzar(0);
                return;
            } catch (android.database.sqlite.SQLiteException) {
                com.google.android.gms.tagmanager.zzdi.zzaT("Error storing hit");
            }
        }
        return;
    }

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


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

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


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

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


    private final declared_synchronized void zzb(java.util.List p11, long p12)
    {
        try {
            long v0_1 = this.zzvz.currentTimeMillis();
            this.zzah(v0_1);
            String v3_0 = ((this.zzBa() - this.zzbEu) + p11.size());
        } catch (Throwable v11_1) {
            this.zzBb();
            throw v11_1;
        } catch (Throwable v11_2) {
            throw v11_2;
        }
        if (v3_0 > null) {
            String v2_0 = this.zzbx(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.zzdi.zzaS(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.zzfi("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.zzBb();
        return;
    }

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


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

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

Couldn't retrieve source code

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


    private final void zzd(String[] p8)
    {
        if ((p8 != null) && (p8.length != 0)) {
            String v0_5 = this.zzfi("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.zzcww.zzaT(v8_6);
                }
                if (this.zzfH("gtm_hits") != 0) {
                    v2 = 0;
                } else {
                }
                this.zzbIC.zzar(v2);
                return;
            } else {
                return;
            }
        }
        return;
    }

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


    public final void zzam(long p6)
    {
        this.zzFN();
        String v6_1 = String.valueOf(p6);
        android.database.sqlite.SQLiteDatabase v0_1 = this.zzccF;
        String[] v3 = new String[1];
        v3[0] = v6_1;
        v0_1.delete("trackedQueries", "id = ?", v3);
        android.database.sqlite.SQLiteDatabase v0_0 = this.zzccF;
        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.rz.zzal() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzal(long p10)
    {
        this.zzFN();
        com.google.android.gms.internal.abe v0_2 = System.currentTimeMillis();
        Integer v2_2 = this.zzccF;
        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.zzccG.zzIX()) {
            com.google.android.gms.internal.abe v0_3 = this.zzccG;
            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.zzc(String.format("Deleted %d write(s) with writeId %d in %dms", v6_1), 0, v11_1);
        }
        return;
    }

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


    public final void zza(com.google.android.gms.internal.vn p17, com.google.android.gms.internal.zf p18)
    {
        if (p18.zzIe()) {
            void v16_1 = this.zzFN();
            long v9 = System.currentTimeMillis();
            String v0_1 = this.zza(p17, new String[] {"rowid", "path"}));
            com.google.android.gms.internal.zr v12 = new com.google.android.gms.internal.zr(0);
            com.google.android.gms.internal.abe v4_4 = new com.google.android.gms.internal.zr(0);
            while (v0_1.moveToNext()) {
                StringBuilder v13_5;
                Object[] v1_2;
                String v2_2;
                Object[] v1_1 = v0_1.getLong(0);
                int v3_2 = new com.google.android.gms.internal.vn(v0_1.getString(1));
                if (p17.zzi(v3_2)) {
                    Object[] v6_2 = com.google.android.gms.internal.vn.zza(p17, v3_2);
                    if (!p18.zzv(v6_2)) {
                        if (!p18.zzw(v6_2)) {
                            v1_2 = this.zzccG;
                            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.zzccG;
                    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.zze(v13_5.toString(), 0);
            }
            Object[] v1_8;
            String v0_3;
            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.vn.zzHq(), v12, v4_4, p18, v15_1);
                String v0_6 = v12.values();
                Object[] v1_11 = String.valueOf(com.google.android.gms.internal.rz.zzj(v0_6));
                int v3_7 = new StringBuilder((String.valueOf(v1_11).length() + 11));
                v3_7.append("rowid IN (");
                v3_7.append(v1_11);
                v3_7.append(")");
                this.zzccF.delete("serverCache", v3_7.toString(), 0);
                Object[] v1_15 = ((java.util.ArrayList) v15_1);
                String v2_14 = v1_15.size();
                int v3_0 = 0;
                while (v3_0 < v2_14) {
                    com.google.android.gms.internal.abe v4_0 = v1_15.get(v3_0);
                    v3_0++;
                    com.google.android.gms.internal.abe v4_1 = ((com.google.android.gms.internal.adq) v4_0);
                    this.zzc(p17.zzh(((com.google.android.gms.internal.vn) v4_1.getFirst())), ((com.google.android.gms.internal.ace) v4_1.zzJV()));
                }
                v0_3 = v0_6.size();
                v1_8 = v15_1.size();
            }
            String v2_16 = (System.currentTimeMillis() - v9);
            if (this.zzccG.zzIX()) {
                com.google.android.gms.internal.abe v4_7 = this.zzccG;
                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_17 = new Object[0];
                v4_7.zzc(String.format("Pruned %d rows with %d nodes resaved in %dms", v6_15), 0, v1_17);
            }
            return;
        } else {
            return;
        }
    }

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


    public final void zza(long p12, java.util.Set p14, java.util.Set p15)
    {
        this.zzFN();
        com.google.android.gms.internal.abe 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.abi) v4_1.next());
            String v9_3 = this.zzccF;
            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.abi) 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.zzccF.insertWithOnConflict("trackedKeys", 0, v5_3, 5);
        }
        long v2_2 = (System.currentTimeMillis() - v0_0);
        if (this.zzccG.zzIX()) {
            com.google.android.gms.internal.abe v0_3 = this.zzccG;
            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.zzc(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.rz.zza() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zza(long p11, java.util.Set p13)
    {
        this.zzFN();
        com.google.android.gms.internal.abe v0_0 = System.currentTimeMillis();
        int v4_1 = this.zzccF;
        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.abi) 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.zzccF.insertWithOnConflict("trackedKeys", 0, v5_3, 5);
        }
        long v2_2 = (System.currentTimeMillis() - v0_0);
        if (this.zzccG.zzIX()) {
            com.google.android.gms.internal.abe v0_3 = this.zzccG;
            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.zzc(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.rz.zzFM() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzFM()
    {
        this.zzFN();
        com.google.android.gms.internal.abe v0_3 = System.currentTimeMillis();
        Object[] v2_4 = this.zzccF.delete("writes", 0, 0);
        Long v5_0 = (System.currentTimeMillis() - v0_3);
        if (this.zzccG.zzIX()) {
            com.google.android.gms.internal.abe v0_2 = this.zzccG;
            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.zzc(String.format("Deleted %d (all) write(s) in %dms", v3_1), 0, v2_2);
        }
        return;
    }

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


    private final void zza(com.google.android.gms.internal.vn p7, long p8, String p10, byte[] p11)
    {
        this.zzFN();
        android.content.ContentValues v0_0 = this.zzccF;
        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.rz.zzc(p7));
            v0_3.put("type", p10);
            v0_3.put("part", 0);
            v0_3.put("node", p11);
            this.zzccF.insertWithOnConflict("writes", 0, v0_3, 5);
            return;
        } else {
            java.util.List v11_1 = com.google.android.gms.internal.rz.zzd(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.rz.zzc(p7));
                v0_6.put("type", p10);
                v0_6.put("part", Integer.valueOf(v5));
                v0_6.put("node", ((byte[]) v11_1.get(v5)));
                this.zzccF.insertWithOnConflict("writes", 0, v0_6, 5);
                v5++;
            }
            return;
        }
    }

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


    private final int zza(String p6, com.google.android.gms.internal.vn p7)
    {
        int v7_2 = com.google.android.gms.internal.rz.zzc(p7);
        String v1 = com.google.android.gms.internal.rz.zzhb(v7_2);
        android.database.sqlite.SQLiteDatabase v2 = this.zzccF;
        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.keabis.dtss.curia.dao.OfflineSavedDbHandler.deleteChecklist() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void deleteChecklist(Integer p6)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        String[] v3_1 = new String[1];
        v3_1[0] = String.valueOf(p6);
        v0.delete("checklistSavedDetails", "offline_ID = ?", v3_1);
        v0.close();
        return;
    }

Method com.keabis.dtss.curia.dao.OfflineDatabaseHandler.deleteChecklist() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void deleteChecklist(String p6)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        String[] v3_1 = new String[1];
        v3_1[0] = String.valueOf(p6);
        v0.delete("checklistDetails", "qrCODE = ?", v3_1);
        v0.close();
        return;
    }

Method com.keabis.dtss.curia.dao.DatabaseHandler.deleteSavedData() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void deleteSavedData(com.keabis.dtss.curia.rest.model.CSatSavedData p6)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        String[] v3_1 = new String[1];
        v3_1[0] = String.valueOf(p6.getCatSubId());
        v0.delete("csatDetails", "catSUBID = ?", v3_1);
        v0.close();
        return;
    }

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


    public final void zze(com.google.android.gms.internal.zzcft p19)
    {
        this.zzwD().zzjB();
        this.zzkC();
        com.google.android.gms.common.internal.zzbr.zzu(p19);
        com.google.android.gms.common.internal.zzbr.zzcF(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzboU)) {
            String v0_8 = this.zzwy().zzdR(p19.packageName);
            if ((v0_8 != null) && ((android.text.TextUtils.isEmpty(v0_8.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzboU)))) {
                v0_8.zzR(0);
                this.zzwy().zza(v0_8);
                this.zzwB().zzel(p19.packageName);
            }
            if (p19.zzboZ) {
                long v5_6 = p19.zzbpe;
                if (v5_6 == 0) {
                    v5_6 = this.zzvz.currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_61 = p19.zzbpf;
                if ((v0_61 == null) || (v0_61 == 1)) {
                    v15_3 = v0_61;
                } else {
                    this.zzwE().zzyx().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), Integer.valueOf(v0_61));
                    v15_3 = 0;
                }
                this.zzwy().beginTransaction();
                try {
                    String v0_7 = this.zzwy().zzdR(p19.packageName);
                } catch (String v0_57) {
                    this.zzwy().endTransaction();
                    throw v0_57;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzboU)))) {
                    this.zzwE().zzyx().zzj("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzcgx.zzea(v0_7.zzhk()));
                    com.google.android.gms.internal.zzcku v7_34 = this.zzwy();
                    String v8_19 = v0_7.zzhk();
                    v7_34.zzkC();
                    v7_34.zzjB();
                    com.google.android.gms.common.internal.zzbr.zzcF(v8_19);
                    try {
                        String v0_0 = v7_34.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_19;
                        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_34.zzwE().zzyv().zze("Error deleting application data. appId, error", com.google.android.gms.internal.zzcgx.zzea(v8_19), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_34.zzwE().zzyB().zze("Deleted application data. app, records", v8_19, Integer.valueOf(v10_10));
                    }
                }
                if ((v0_7 != null) && ((v0_7.zzjG() != null) && (!v0_7.zzjG().equals(p19.zzbha)))) {
                    com.google.android.gms.internal.zzcku v7_6 = new android.os.Bundle();
                    v7_6.putString("_pv", v0_7.zzjG());
                    String v0_10 = new com.google.android.gms.internal.zzcgl;
                    v0_10("_au", new com.google.android.gms.internal.zzcgi(v7_6), "auto", v5_6);
                    this.zzb(v0_10, p19);
                }
                String v0_12;
                String v0_11;
                String v8_4;
                com.google.android.gms.internal.zzcku v7_8;
                this = this.zzf(p19);
                if (v15_3 != null) {
                    if (v15_3 != 1) {
                        v0_11 = 0;
                    } else {
                        v0_12 = this.zzwy();
                        v7_8 = p19.packageName;
                        v8_4 = "_v";
                        v0_11 = v0_12.zzE(v7_8, v8_4);
                    }
                } else {
                    v0_12 = this.zzwy();
                    v7_8 = p19.packageName;
                    v8_4 = "_f";
                }
                com.google.android.gms.internal.zzcku v3_2;
                if (v0_11 != null) {
                    if (p19.zzbpa) {
                        v3_2 = new com.google.android.gms.internal.zzcgl;
                        v3_2("_cd", new com.google.android.gms.internal.zzcgi(new android.os.Bundle()), "auto", v5_6);
                        this.zzb(v3_2, p19);
                    }
                } else {
                    Long v13_0;
                    long v9_9 = (((v5_6 / 3600000) + 1) * 3600000);
                    if (v15_3 != null) {
                        v13_0 = 1;
                        if (v15_3 == 1) {
                            String v0_16 = new com.google.android.gms.internal.zzcku;
                            v0_16("_fvt", v5_6, Long.valueOf(v9_9), "auto");
                            this.zzb(v0_16, p19);
                            this.zzwD().zzjB();
                            this.zzkC();
                            String v0_19 = new android.os.Bundle();
                            v0_19.putLong("_c", 1);
                            v0_19.putLong("_r", 1);
                            com.google.android.gms.internal.zzcku v3_6 = new com.google.android.gms.internal.zzcgl;
                            v3_6("_v", new com.google.android.gms.internal.zzcgi(v0_19), "auto", v5_6);
                            this.zzb(v3_6, p19);
                        }
                    } else {
                        String v0_20 = new com.google.android.gms.internal.zzcku;
                        v13_0 = 1;
                        v0_20("_fot", v5_6, Long.valueOf(v9_9), "auto");
                        this.zzb(v0_20, p19);
                        this.zzwD().zzjB();
                        this.zzkC();
                        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.mContext.getPackageManager() != null) {
                            try {
                                String v0_32 = com.google.android.gms.internal.zzbim.zzaP(this.mContext).getPackageInfo(p19.packageName, 0);
                            } catch (String v0_33) {
                                this.zzwE().zzyv().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), v0_33);
                                v0_32 = 0;
                            }
                            if ((v0_32 != null) && (v0_32.firstInstallTime != 0)) {
                                String v0_36;
                                if (v0_32.firstInstallTime == v0_32.lastUpdateTime) {
                                    v0_36 = 1;
                                } else {
                                    v15_2.putLong("_uwa", 1);
                                    v0_36 = 0;
                                }
                                long v9_18;
                                String v12_10 = new com.google.android.gms.internal.zzcku;
                                if (v0_36 == null) {
                                    v9_18 = 0;
                                } else {
                                    v9_18 = 1;
                                }
                                com.google.android.gms.internal.zzcku v3_7 = v12_10;
                                v12_10("_fi", v5_6, Long.valueOf(v9_18), "auto");
                                this.zzb(v3_7, p19);
                            }
                            try {
                                String v0_42 = com.google.android.gms.internal.zzbim.zzaP(this.mContext).getApplicationInfo(p19.packageName, 0);
                            } catch (String v0_43) {
                                this.zzwE().zzyv().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), v0_43);
                                v0_42 = 0;
                            }
                            if (v0_42 != null) {
                                if ((v0_42.flags & 1) != 0) {
                                    v15_2.putLong("_sys", 1);
                                }
                                if ((v0_42.flags & 128) != 0) {
                                    v15_2.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.zzwE().zzyv().zzj("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName));
                        }
                        String v0_50 = this.zzwy();
                        com.google.android.gms.internal.zzcku v3_14 = p19.packageName;
                        com.google.android.gms.common.internal.zzbr.zzcF(v3_14);
                        v0_50.zzjB();
                        v0_50.zzkC();
                        com.google.android.gms.internal.zzcku v3_15 = v0_50.zzL(v3_14, "first_open_count");
                        if (v3_15 >= 0) {
                            v15_2.putLong("_pfo", v3_15);
                        }
                        String v0_53 = new com.google.android.gms.internal.zzcgl;
                        v0_53("_f", new com.google.android.gms.internal.zzcgi(v15_2), "auto", v5_6);
                        this.zzb(v0_53, p19);
                    }
                    String v0_55 = new android.os.Bundle();
                    v0_55.putLong("_et", v13_0);
                    v3_2 = new com.google.android.gms.internal.zzcgl;
                    v3_2("_e", new com.google.android.gms.internal.zzcgi(v0_55), "auto", v5_6);
                }
                this.zzwy().setTransactionSuccessful();
                this.zzwy().endTransaction();
                return;
            } else {
                this.zzf(p19);
                return;
            }
        } else {
            return;
        }
    }

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


    public final void zze(com.google.android.gms.internal.zzcft p19)
    {
        this.zzwD().zzjB();
        this.zzkC();
        com.google.android.gms.common.internal.zzbr.zzu(p19);
        com.google.android.gms.common.internal.zzbr.zzcF(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzboU)) {
            String v0_8 = this.zzwy().zzdR(p19.packageName);
            if ((v0_8 != null) && ((android.text.TextUtils.isEmpty(v0_8.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzboU)))) {
                v0_8.zzR(0);
                this.zzwy().zza(v0_8);
                this.zzwB().zzel(p19.packageName);
            }
            if (p19.zzboZ) {
                long v5_6 = p19.zzbpe;
                if (v5_6 == 0) {
                    v5_6 = this.zzvz.currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_61 = p19.zzbpf;
                if ((v0_61 == null) || (v0_61 == 1)) {
                    v15_3 = v0_61;
                } else {
                    this.zzwE().zzyx().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), Integer.valueOf(v0_61));
                    v15_3 = 0;
                }
                this.zzwy().beginTransaction();
                try {
                    String v0_7 = this.zzwy().zzdR(p19.packageName);
                } catch (String v0_57) {
                    this.zzwy().endTransaction();
                    throw v0_57;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzboU)))) {
                    this.zzwE().zzyx().zzj("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzcgx.zzea(v0_7.zzhk()));
                    com.google.android.gms.internal.zzcku v7_34 = this.zzwy();
                    String v8_19 = v0_7.zzhk();
                    v7_34.zzkC();
                    v7_34.zzjB();
                    com.google.android.gms.common.internal.zzbr.zzcF(v8_19);
                    try {
                        String v0_0 = v7_34.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_19;
                        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_34.zzwE().zzyv().zze("Error deleting application data. appId, error", com.google.android.gms.internal.zzcgx.zzea(v8_19), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_34.zzwE().zzyB().zze("Deleted application data. app, records", v8_19, Integer.valueOf(v10_10));
                    }
                }
                if ((v0_7 != null) && ((v0_7.zzjG() != null) && (!v0_7.zzjG().equals(p19.zzbha)))) {
                    com.google.android.gms.internal.zzcku v7_6 = new android.os.Bundle();
                    v7_6.putString("_pv", v0_7.zzjG());
                    String v0_10 = new com.google.android.gms.internal.zzcgl;
                    v0_10("_au", new com.google.android.gms.internal.zzcgi(v7_6), "auto", v5_6);
                    this.zzb(v0_10, p19);
                }
                com.google.android.gms.internal.zzcku v7_8;
                String v0_11;
                String v8_4;
                String v0_12;
                this = this.zzf(p19);
                if (v15_3 != null) {
                    if (v15_3 != 1) {
                        v0_11 = 0;
                    } else {
                        v0_12 = this.zzwy();
                        v7_8 = p19.packageName;
                        v8_4 = "_v";
                        v0_11 = v0_12.zzE(v7_8, v8_4);
                    }
                } else {
                    v0_12 = this.zzwy();
                    v7_8 = p19.packageName;
                    v8_4 = "_f";
                }
                com.google.android.gms.internal.zzcku v3_2;
                if (v0_11 != null) {
                    if (p19.zzbpa) {
                        v3_2 = new com.google.android.gms.internal.zzcgl;
                        v3_2("_cd", new com.google.android.gms.internal.zzcgi(new android.os.Bundle()), "auto", v5_6);
                        this.zzb(v3_2, p19);
                    }
                } else {
                    Long v13_0;
                    long v9_9 = (((v5_6 / 3600000) + 1) * 3600000);
                    if (v15_3 != null) {
                        v13_0 = 1;
                        if (v15_3 == 1) {
                            String v0_16 = new com.google.android.gms.internal.zzcku;
                            v0_16("_fvt", v5_6, Long.valueOf(v9_9), "auto");
                            this.zzb(v0_16, p19);
                            this.zzwD().zzjB();
                            this.zzkC();
                            String v0_19 = new android.os.Bundle();
                            v0_19.putLong("_c", 1);
                            v0_19.putLong("_r", 1);
                            com.google.android.gms.internal.zzcku v3_6 = new com.google.android.gms.internal.zzcgl;
                            v3_6("_v", new com.google.android.gms.internal.zzcgi(v0_19), "auto", v5_6);
                            this.zzb(v3_6, p19);
                        }
                    } else {
                        String v0_20 = new com.google.android.gms.internal.zzcku;
                        v13_0 = 1;
                        v0_20("_fot", v5_6, Long.valueOf(v9_9), "auto");
                        this.zzb(v0_20, p19);
                        this.zzwD().zzjB();
                        this.zzkC();
                        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.mContext.getPackageManager() != null) {
                            try {
                                String v0_32 = com.google.android.gms.internal.zzbim.zzaP(this.mContext).getPackageInfo(p19.packageName, 0);
                            } catch (String v0_33) {
                                this.zzwE().zzyv().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), v0_33);
                                v0_32 = 0;
                            }
                            if ((v0_32 != null) && (v0_32.firstInstallTime != 0)) {
                                String v0_36;
                                if (v0_32.firstInstallTime == v0_32.lastUpdateTime) {
                                    v0_36 = 1;
                                } else {
                                    v15_2.putLong("_uwa", 1);
                                    v0_36 = 0;
                                }
                                long v9_18;
                                String v12_10 = new com.google.android.gms.internal.zzcku;
                                if (v0_36 == null) {
                                    v9_18 = 0;
                                } else {
                                    v9_18 = 1;
                                }
                                com.google.android.gms.internal.zzcku v3_7 = v12_10;
                                v12_10("_fi", v5_6, Long.valueOf(v9_18), "auto");
                                this.zzb(v3_7, p19);
                            }
                            try {
                                String v0_42 = com.google.android.gms.internal.zzbim.zzaP(this.mContext).getApplicationInfo(p19.packageName, 0);
                            } catch (String v0_43) {
                                this.zzwE().zzyv().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), v0_43);
                                v0_42 = 0;
                            }
                            if (v0_42 != null) {
                                if ((v0_42.flags & 1) != 0) {
                                    v15_2.putLong("_sys", 1);
                                }
                                if ((v0_42.flags & 128) != 0) {
                                    v15_2.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.zzwE().zzyv().zzj("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName));
                        }
                        String v0_50 = this.zzwy();
                        com.google.android.gms.internal.zzcku v3_14 = p19.packageName;
                        com.google.android.gms.common.internal.zzbr.zzcF(v3_14);
                        v0_50.zzjB();
                        v0_50.zzkC();
                        com.google.android.gms.internal.zzcku v3_15 = v0_50.zzL(v3_14, "first_open_count");
                        if (v3_15 >= 0) {
                            v15_2.putLong("_pfo", v3_15);
                        }
                        String v0_53 = new com.google.android.gms.internal.zzcgl;
                        v0_53("_f", new com.google.android.gms.internal.zzcgi(v15_2), "auto", v5_6);
                        this.zzb(v0_53, p19);
                    }
                    String v0_55 = new android.os.Bundle();
                    v0_55.putLong("_et", v13_0);
                    v3_2 = new com.google.android.gms.internal.zzcgl;
                    v3_2("_e", new com.google.android.gms.internal.zzcgi(v0_55), "auto", v5_6);
                }
                this.zzwy().setTransactionSuccessful();
                this.zzwy().endTransaction();
                return;
            } else {
                this.zzf(p19);
                return;
            }
        } else {
            return;
        }
    }

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


    public final void zze(com.google.android.gms.internal.zzcft p19)
    {
        this.zzwD().zzjB();
        this.zzkC();
        com.google.android.gms.common.internal.zzbr.zzu(p19);
        com.google.android.gms.common.internal.zzbr.zzcF(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzboU)) {
            String v0_8 = this.zzwy().zzdR(p19.packageName);
            if ((v0_8 != null) && ((android.text.TextUtils.isEmpty(v0_8.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzboU)))) {
                v0_8.zzR(0);
                this.zzwy().zza(v0_8);
                this.zzwB().zzel(p19.packageName);
            }
            if (p19.zzboZ) {
                long v5_6 = p19.zzbpe;
                if (v5_6 == 0) {
                    v5_6 = this.zzvz.currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_61 = p19.zzbpf;
                if ((v0_61 == null) || (v0_61 == 1)) {
                    v15_3 = v0_61;
                } else {
                    this.zzwE().zzyx().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), Integer.valueOf(v0_61));
                    v15_3 = 0;
                }
                this.zzwy().beginTransaction();
                try {
                    String v0_7 = this.zzwy().zzdR(p19.packageName);
                } catch (String v0_57) {
                    this.zzwy().endTransaction();
                    throw v0_57;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzboU)))) {
                    this.zzwE().zzyx().zzj("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzcgx.zzea(v0_7.zzhk()));
                    com.google.android.gms.internal.zzcku v7_34 = this.zzwy();
                    String v8_19 = v0_7.zzhk();
                    v7_34.zzkC();
                    v7_34.zzjB();
                    com.google.android.gms.common.internal.zzbr.zzcF(v8_19);
                    try {
                        String v0_0 = v7_34.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_19;
                        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_34.zzwE().zzyv().zze("Error deleting application data. appId, error", com.google.android.gms.internal.zzcgx.zzea(v8_19), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_34.zzwE().zzyB().zze("Deleted application data. app, records", v8_19, Integer.valueOf(v10_10));
                    }
                }
                if ((v0_7 != null) && ((v0_7.zzjG() != null) && (!v0_7.zzjG().equals(p19.zzbha)))) {
                    com.google.android.gms.internal.zzcku v7_6 = new android.os.Bundle();
                    v7_6.putString("_pv", v0_7.zzjG());
                    String v0_10 = new com.google.android.gms.internal.zzcgl;
                    v0_10("_au", new com.google.android.gms.internal.zzcgi(v7_6), "auto", v5_6);
                    this.zzb(v0_10, p19);
                }
                String v0_11;
                com.google.android.gms.internal.zzcku v7_8;
                String v8_4;
                String v0_12;
                this = this.zzf(p19);
                if (v15_3 != null) {
                    if (v15_3 != 1) {
                        v0_11 = 0;
                    } else {
                        v0_12 = this.zzwy();
                        v7_8 = p19.packageName;
                        v8_4 = "_v";
                        v0_11 = v0_12.zzE(v7_8, v8_4);
                    }
                } else {
                    v0_12 = this.zzwy();
                    v7_8 = p19.packageName;
                    v8_4 = "_f";
                }
                com.google.android.gms.internal.zzcku v3_2;
                if (v0_11 != null) {
                    if (p19.zzbpa) {
                        v3_2 = new com.google.android.gms.internal.zzcgl;
                        v3_2("_cd", new com.google.android.gms.internal.zzcgi(new android.os.Bundle()), "auto", v5_6);
                        this.zzb(v3_2, p19);
                    }
                } else {
                    Long v13_0;
                    long v9_9 = (((v5_6 / 3600000) + 1) * 3600000);
                    if (v15_3 != null) {
                        v13_0 = 1;
                        if (v15_3 == 1) {
                            String v0_16 = new com.google.android.gms.internal.zzcku;
                            v0_16("_fvt", v5_6, Long.valueOf(v9_9), "auto");
                            this.zzb(v0_16, p19);
                            this.zzwD().zzjB();
                            this.zzkC();
                            String v0_19 = new android.os.Bundle();
                            v0_19.putLong("_c", 1);
                            v0_19.putLong("_r", 1);
                            com.google.android.gms.internal.zzcku v3_6 = new com.google.android.gms.internal.zzcgl;
                            v3_6("_v", new com.google.android.gms.internal.zzcgi(v0_19), "auto", v5_6);
                            this.zzb(v3_6, p19);
                        }
                    } else {
                        String v0_20 = new com.google.android.gms.internal.zzcku;
                        v13_0 = 1;
                        v0_20("_fot", v5_6, Long.valueOf(v9_9), "auto");
                        this.zzb(v0_20, p19);
                        this.zzwD().zzjB();
                        this.zzkC();
                        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.mContext.getPackageManager() != null) {
                            try {
                                String v0_32 = com.google.android.gms.internal.zzbim.zzaP(this.mContext).getPackageInfo(p19.packageName, 0);
                            } catch (String v0_33) {
                                this.zzwE().zzyv().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), v0_33);
                                v0_32 = 0;
                            }
                            if ((v0_32 != null) && (v0_32.firstInstallTime != 0)) {
                                String v0_36;
                                if (v0_32.firstInstallTime == v0_32.lastUpdateTime) {
                                    v0_36 = 1;
                                } else {
                                    v15_2.putLong("_uwa", 1);
                                    v0_36 = 0;
                                }
                                long v9_18;
                                String v12_10 = new com.google.android.gms.internal.zzcku;
                                if (v0_36 == null) {
                                    v9_18 = 0;
                                } else {
                                    v9_18 = 1;
                                }
                                com.google.android.gms.internal.zzcku v3_7 = v12_10;
                                v12_10("_fi", v5_6, Long.valueOf(v9_18), "auto");
                                this.zzb(v3_7, p19);
                            }
                            try {
                                String v0_42 = com.google.android.gms.internal.zzbim.zzaP(this.mContext).getApplicationInfo(p19.packageName, 0);
                            } catch (String v0_43) {
                                this.zzwE().zzyv().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), v0_43);
                                v0_42 = 0;
                            }
                            if (v0_42 != null) {
                                if ((v0_42.flags & 1) != 0) {
                                    v15_2.putLong("_sys", 1);
                                }
                                if ((v0_42.flags & 128) != 0) {
                                    v15_2.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.zzwE().zzyv().zzj("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName));
                        }
                        String v0_50 = this.zzwy();
                        com.google.android.gms.internal.zzcku v3_14 = p19.packageName;
                        com.google.android.gms.common.internal.zzbr.zzcF(v3_14);
                        v0_50.zzjB();
                        v0_50.zzkC();
                        com.google.android.gms.internal.zzcku v3_15 = v0_50.zzL(v3_14, "first_open_count");
                        if (v3_15 >= 0) {
                            v15_2.putLong("_pfo", v3_15);
                        }
                        String v0_53 = new com.google.android.gms.internal.zzcgl;
                        v0_53("_f", new com.google.android.gms.internal.zzcgi(v15_2), "auto", v5_6);
                        this.zzb(v0_53, p19);
                    }
                    String v0_55 = new android.os.Bundle();
                    v0_55.putLong("_et", v13_0);
                    v3_2 = new com.google.android.gms.internal.zzcgl;
                    v3_2("_e", new com.google.android.gms.internal.zzcgi(v0_55), "auto", v5_6);
                }
                this.zzwy().setTransactionSuccessful();
                this.zzwy().endTransaction();
                return;
            } else {
                this.zzf(p19);
                return;
            }
        } else {
            return;
        }
    }

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


    public final void zze(com.google.android.gms.internal.zzcft p19)
    {
        this.zzwD().zzjB();
        this.zzkC();
        com.google.android.gms.common.internal.zzbr.zzu(p19);
        com.google.android.gms.common.internal.zzbr.zzcF(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzboU)) {
            String v0_8 = this.zzwy().zzdR(p19.packageName);
            if ((v0_8 != null) && ((android.text.TextUtils.isEmpty(v0_8.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzboU)))) {
                v0_8.zzR(0);
                this.zzwy().zza(v0_8);
                this.zzwB().zzel(p19.packageName);
            }
            if (p19.zzboZ) {
                long v5_6 = p19.zzbpe;
                if (v5_6 == 0) {
                    v5_6 = this.zzvz.currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_61 = p19.zzbpf;
                if ((v0_61 == null) || (v0_61 == 1)) {
                    v15_3 = v0_61;
                } else {
                    this.zzwE().zzyx().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), Integer.valueOf(v0_61));
                    v15_3 = 0;
                }
                this.zzwy().beginTransaction();
                try {
                    String v0_7 = this.zzwy().zzdR(p19.packageName);
                } catch (String v0_57) {
                    this.zzwy().endTransaction();
                    throw v0_57;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzboU)))) {
                    this.zzwE().zzyx().zzj("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzcgx.zzea(v0_7.zzhk()));
                    com.google.android.gms.internal.zzcku v7_34 = this.zzwy();
                    String v8_19 = v0_7.zzhk();
                    v7_34.zzkC();
                    v7_34.zzjB();
                    com.google.android.gms.common.internal.zzbr.zzcF(v8_19);
                    try {
                        String v0_0 = v7_34.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_19;
                        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_34.zzwE().zzyv().zze("Error deleting application data. appId, error", com.google.android.gms.internal.zzcgx.zzea(v8_19), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_34.zzwE().zzyB().zze("Deleted application data. app, records", v8_19, Integer.valueOf(v10_10));
                    }
                }
                if ((v0_7 != null) && ((v0_7.zzjG() != null) && (!v0_7.zzjG().equals(p19.zzbha)))) {
                    com.google.android.gms.internal.zzcku v7_6 = new android.os.Bundle();
                    v7_6.putString("_pv", v0_7.zzjG());
                    String v0_10 = new com.google.android.gms.internal.zzcgl;
                    v0_10("_au", new com.google.android.gms.internal.zzcgi(v7_6), "auto", v5_6);
                    this.zzb(v0_10, p19);
                }
                String v0_12;
                String v0_11;
                com.google.android.gms.internal.zzcku v7_8;
                String v8_4;
                this = this.zzf(p19);
                if (v15_3 != null) {
                    if (v15_3 != 1) {
                        v0_11 = 0;
                    } else {
                        v0_12 = this.zzwy();
                        v7_8 = p19.packageName;
                        v8_4 = "_v";
                        v0_11 = v0_12.zzE(v7_8, v8_4);
                    }
                } else {
                    v0_12 = this.zzwy();
                    v7_8 = p19.packageName;
                    v8_4 = "_f";
                }
                com.google.android.gms.internal.zzcku v3_2;
                if (v0_11 != null) {
                    if (p19.zzbpa) {
                        v3_2 = new com.google.android.gms.internal.zzcgl;
                        v3_2("_cd", new com.google.android.gms.internal.zzcgi(new android.os.Bundle()), "auto", v5_6);
                        this.zzb(v3_2, p19);
                    }
                } else {
                    Long v13_0;
                    long v9_9 = (((v5_6 / 3600000) + 1) * 3600000);
                    if (v15_3 != null) {
                        v13_0 = 1;
                        if (v15_3 == 1) {
                            String v0_16 = new com.google.android.gms.internal.zzcku;
                            v0_16("_fvt", v5_6, Long.valueOf(v9_9), "auto");
                            this.zzb(v0_16, p19);
                            this.zzwD().zzjB();
                            this.zzkC();
                            String v0_19 = new android.os.Bundle();
                            v0_19.putLong("_c", 1);
                            v0_19.putLong("_r", 1);
                            com.google.android.gms.internal.zzcku v3_6 = new com.google.android.gms.internal.zzcgl;
                            v3_6("_v", new com.google.android.gms.internal.zzcgi(v0_19), "auto", v5_6);
                            this.zzb(v3_6, p19);
                        }
                    } else {
                        String v0_20 = new com.google.android.gms.internal.zzcku;
                        v13_0 = 1;
                        v0_20("_fot", v5_6, Long.valueOf(v9_9), "auto");
                        this.zzb(v0_20, p19);
                        this.zzwD().zzjB();
                        this.zzkC();
                        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.mContext.getPackageManager() != null) {
                            try {
                                String v0_32 = com.google.android.gms.internal.zzbim.zzaP(this.mContext).getPackageInfo(p19.packageName, 0);
                            } catch (String v0_33) {
                                this.zzwE().zzyv().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), v0_33);
                                v0_32 = 0;
                            }
                            if ((v0_32 != null) && (v0_32.firstInstallTime != 0)) {
                                String v0_36;
                                if (v0_32.firstInstallTime == v0_32.lastUpdateTime) {
                                    v0_36 = 1;
                                } else {
                                    v15_2.putLong("_uwa", 1);
                                    v0_36 = 0;
                                }
                                long v9_18;
                                String v12_10 = new com.google.android.gms.internal.zzcku;
                                if (v0_36 == null) {
                                    v9_18 = 0;
                                } else {
                                    v9_18 = 1;
                                }
                                com.google.android.gms.internal.zzcku v3_7 = v12_10;
                                v12_10("_fi", v5_6, Long.valueOf(v9_18), "auto");
                                this.zzb(v3_7, p19);
                            }
                            try {
                                String v0_42 = com.google.android.gms.internal.zzbim.zzaP(this.mContext).getApplicationInfo(p19.packageName, 0);
                            } catch (String v0_43) {
                                this.zzwE().zzyv().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), v0_43);
                                v0_42 = 0;
                            }
                            if (v0_42 != null) {
                                if ((v0_42.flags & 1) != 0) {
                                    v15_2.putLong("_sys", 1);
                                }
                                if ((v0_42.flags & 128) != 0) {
                                    v15_2.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.zzwE().zzyv().zzj("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName));
                        }
                        String v0_50 = this.zzwy();
                        com.google.android.gms.internal.zzcku v3_14 = p19.packageName;
                        com.google.android.gms.common.internal.zzbr.zzcF(v3_14);
                        v0_50.zzjB();
                        v0_50.zzkC();
                        com.google.android.gms.internal.zzcku v3_15 = v0_50.zzL(v3_14, "first_open_count");
                        if (v3_15 >= 0) {
                            v15_2.putLong("_pfo", v3_15);
                        }
                        String v0_53 = new com.google.android.gms.internal.zzcgl;
                        v0_53("_f", new com.google.android.gms.internal.zzcgi(v15_2), "auto", v5_6);
                        this.zzb(v0_53, p19);
                    }
                    String v0_55 = new android.os.Bundle();
                    v0_55.putLong("_et", v13_0);
                    v3_2 = new com.google.android.gms.internal.zzcgl;
                    v3_2("_e", new com.google.android.gms.internal.zzcgi(v0_55), "auto", v5_6);
                }
                this.zzwy().setTransactionSuccessful();
                this.zzwy().endTransaction();
                return;
            } else {
                this.zzf(p19);
                return;
            }
        } else {
            return;
        }
    }

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


    public final void zze(com.google.android.gms.internal.zzcft p19)
    {
        this.zzwD().zzjB();
        this.zzkC();
        com.google.android.gms.common.internal.zzbr.zzu(p19);
        com.google.android.gms.common.internal.zzbr.zzcF(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzboU)) {
            String v0_8 = this.zzwy().zzdR(p19.packageName);
            if ((v0_8 != null) && ((android.text.TextUtils.isEmpty(v0_8.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzboU)))) {
                v0_8.zzR(0);
                this.zzwy().zza(v0_8);
                this.zzwB().zzel(p19.packageName);
            }
            if (p19.zzboZ) {
                long v5_6 = p19.zzbpe;
                if (v5_6 == 0) {
                    v5_6 = this.zzvz.currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_61 = p19.zzbpf;
                if ((v0_61 == null) || (v0_61 == 1)) {
                    v15_3 = v0_61;
                } else {
                    this.zzwE().zzyx().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), Integer.valueOf(v0_61));
                    v15_3 = 0;
                }
                this.zzwy().beginTransaction();
                try {
                    String v0_7 = this.zzwy().zzdR(p19.packageName);
                } catch (String v0_57) {
                    this.zzwy().endTransaction();
                    throw v0_57;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzboU)))) {
                    this.zzwE().zzyx().zzj("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzcgx.zzea(v0_7.zzhk()));
                    com.google.android.gms.internal.zzcku v7_34 = this.zzwy();
                    String v8_19 = v0_7.zzhk();
                    v7_34.zzkC();
                    v7_34.zzjB();
                    com.google.android.gms.common.internal.zzbr.zzcF(v8_19);
                    try {
                        String v0_0 = v7_34.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_19;
                        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_34.zzwE().zzyv().zze("Error deleting application data. appId, error", com.google.android.gms.internal.zzcgx.zzea(v8_19), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_34.zzwE().zzyB().zze("Deleted application data. app, records", v8_19, Integer.valueOf(v10_10));
                    }
                }
                if ((v0_7 != null) && ((v0_7.zzjG() != null) && (!v0_7.zzjG().equals(p19.zzbha)))) {
                    com.google.android.gms.internal.zzcku v7_6 = new android.os.Bundle();
                    v7_6.putString("_pv", v0_7.zzjG());
                    String v0_10 = new com.google.android.gms.internal.zzcgl;
                    v0_10("_au", new com.google.android.gms.internal.zzcgi(v7_6), "auto", v5_6);
                    this.zzb(v0_10, p19);
                }
                String v8_4;
                com.google.android.gms.internal.zzcku v7_8;
                String v0_12;
                String v0_11;
                this = this.zzf(p19);
                if (v15_3 != null) {
                    if (v15_3 != 1) {
                        v0_11 = 0;
                    } else {
                        v0_12 = this.zzwy();
                        v7_8 = p19.packageName;
                        v8_4 = "_v";
                        v0_11 = v0_12.zzE(v7_8, v8_4);
                    }
                } else {
                    v0_12 = this.zzwy();
                    v7_8 = p19.packageName;
                    v8_4 = "_f";
                }
                com.google.android.gms.internal.zzcku v3_2;
                if (v0_11 != null) {
                    if (p19.zzbpa) {
                        v3_2 = new com.google.android.gms.internal.zzcgl;
                        v3_2("_cd", new com.google.android.gms.internal.zzcgi(new android.os.Bundle()), "auto", v5_6);
                        this.zzb(v3_2, p19);
                    }
                } else {
                    Long v13_0;
                    long v9_9 = (((v5_6 / 3600000) + 1) * 3600000);
                    if (v15_3 != null) {
                        v13_0 = 1;
                        if (v15_3 == 1) {
                            String v0_16 = new com.google.android.gms.internal.zzcku;
                            v0_16("_fvt", v5_6, Long.valueOf(v9_9), "auto");
                            this.zzb(v0_16, p19);
                            this.zzwD().zzjB();
                            this.zzkC();
                            String v0_19 = new android.os.Bundle();
                            v0_19.putLong("_c", 1);
                            v0_19.putLong("_r", 1);
                            com.google.android.gms.internal.zzcku v3_6 = new com.google.android.gms.internal.zzcgl;
                            v3_6("_v", new com.google.android.gms.internal.zzcgi(v0_19), "auto", v5_6);
                            this.zzb(v3_6, p19);
                        }
                    } else {
                        String v0_20 = new com.google.android.gms.internal.zzcku;
                        v13_0 = 1;
                        v0_20("_fot", v5_6, Long.valueOf(v9_9), "auto");
                        this.zzb(v0_20, p19);
                        this.zzwD().zzjB();
                        this.zzkC();
                        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.mContext.getPackageManager() != null) {
                            try {
                                String v0_32 = com.google.android.gms.internal.zzbim.zzaP(this.mContext).getPackageInfo(p19.packageName, 0);
                            } catch (String v0_33) {
                                this.zzwE().zzyv().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), v0_33);
                                v0_32 = 0;
                            }
                            if ((v0_32 != null) && (v0_32.firstInstallTime != 0)) {
                                String v0_36;
                                if (v0_32.firstInstallTime == v0_32.lastUpdateTime) {
                                    v0_36 = 1;
                                } else {
                                    v15_2.putLong("_uwa", 1);
                                    v0_36 = 0;
                                }
                                long v9_18;
                                String v12_10 = new com.google.android.gms.internal.zzcku;
                                if (v0_36 == null) {
                                    v9_18 = 0;
                                } else {
                                    v9_18 = 1;
                                }
                                com.google.android.gms.internal.zzcku v3_7 = v12_10;
                                v12_10("_fi", v5_6, Long.valueOf(v9_18), "auto");
                                this.zzb(v3_7, p19);
                            }
                            try {
                                String v0_42 = com.google.android.gms.internal.zzbim.zzaP(this.mContext).getApplicationInfo(p19.packageName, 0);
                            } catch (String v0_43) {
                                this.zzwE().zzyv().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), v0_43);
                                v0_42 = 0;
                            }
                            if (v0_42 != null) {
                                if ((v0_42.flags & 1) != 0) {
                                    v15_2.putLong("_sys", 1);
                                }
                                if ((v0_42.flags & 128) != 0) {
                                    v15_2.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.zzwE().zzyv().zzj("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName));
                        }
                        String v0_50 = this.zzwy();
                        com.google.android.gms.internal.zzcku v3_14 = p19.packageName;
                        com.google.android.gms.common.internal.zzbr.zzcF(v3_14);
                        v0_50.zzjB();
                        v0_50.zzkC();
                        com.google.android.gms.internal.zzcku v3_15 = v0_50.zzL(v3_14, "first_open_count");
                        if (v3_15 >= 0) {
                            v15_2.putLong("_pfo", v3_15);
                        }
                        String v0_53 = new com.google.android.gms.internal.zzcgl;
                        v0_53("_f", new com.google.android.gms.internal.zzcgi(v15_2), "auto", v5_6);
                        this.zzb(v0_53, p19);
                    }
                    String v0_55 = new android.os.Bundle();
                    v0_55.putLong("_et", v13_0);
                    v3_2 = new com.google.android.gms.internal.zzcgl;
                    v3_2("_e", new com.google.android.gms.internal.zzcgi(v0_55), "auto", v5_6);
                }
                this.zzwy().setTransactionSuccessful();
                this.zzwy().endTransaction();
                return;
            } else {
                this.zzf(p19);
                return;
            }
        } else {
            return;
        }
    }

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


    public final void zze(com.google.android.gms.internal.zzcft p19)
    {
        this.zzwD().zzjB();
        this.zzkC();
        com.google.android.gms.common.internal.zzbr.zzu(p19);
        com.google.android.gms.common.internal.zzbr.zzcF(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzboU)) {
            String v0_8 = this.zzwy().zzdR(p19.packageName);
            if ((v0_8 != null) && ((android.text.TextUtils.isEmpty(v0_8.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzboU)))) {
                v0_8.zzR(0);
                this.zzwy().zza(v0_8);
                this.zzwB().zzel(p19.packageName);
            }
            if (p19.zzboZ) {
                long v5_6 = p19.zzbpe;
                if (v5_6 == 0) {
                    v5_6 = this.zzvz.currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_61 = p19.zzbpf;
                if ((v0_61 == null) || (v0_61 == 1)) {
                    v15_3 = v0_61;
                } else {
                    this.zzwE().zzyx().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), Integer.valueOf(v0_61));
                    v15_3 = 0;
                }
                this.zzwy().beginTransaction();
                try {
                    String v0_7 = this.zzwy().zzdR(p19.packageName);
                } catch (String v0_57) {
                    this.zzwy().endTransaction();
                    throw v0_57;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzboU)))) {
                    this.zzwE().zzyx().zzj("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzcgx.zzea(v0_7.zzhk()));
                    com.google.android.gms.internal.zzcku v7_34 = this.zzwy();
                    String v8_19 = v0_7.zzhk();
                    v7_34.zzkC();
                    v7_34.zzjB();
                    com.google.android.gms.common.internal.zzbr.zzcF(v8_19);
                    try {
                        String v0_0 = v7_34.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_19;
                        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_34.zzwE().zzyv().zze("Error deleting application data. appId, error", com.google.android.gms.internal.zzcgx.zzea(v8_19), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_34.zzwE().zzyB().zze("Deleted application data. app, records", v8_19, Integer.valueOf(v10_10));
                    }
                }
                if ((v0_7 != null) && ((v0_7.zzjG() != null) && (!v0_7.zzjG().equals(p19.zzbha)))) {
                    com.google.android.gms.internal.zzcku v7_6 = new android.os.Bundle();
                    v7_6.putString("_pv", v0_7.zzjG());
                    String v0_10 = new com.google.android.gms.internal.zzcgl;
                    v0_10("_au", new com.google.android.gms.internal.zzcgi(v7_6), "auto", v5_6);
                    this.zzb(v0_10, p19);
                }
                String v8_4;
                String v0_12;
                String v0_11;
                com.google.android.gms.internal.zzcku v7_8;
                this = this.zzf(p19);
                if (v15_3 != null) {
                    if (v15_3 != 1) {
                        v0_11 = 0;
                    } else {
                        v0_12 = this.zzwy();
                        v7_8 = p19.packageName;
                        v8_4 = "_v";
                        v0_11 = v0_12.zzE(v7_8, v8_4);
                    }
                } else {
                    v0_12 = this.zzwy();
                    v7_8 = p19.packageName;
                    v8_4 = "_f";
                }
                com.google.android.gms.internal.zzcku v3_2;
                if (v0_11 != null) {
                    if (p19.zzbpa) {
                        v3_2 = new com.google.android.gms.internal.zzcgl;
                        v3_2("_cd", new com.google.android.gms.internal.zzcgi(new android.os.Bundle()), "auto", v5_6);
                        this.zzb(v3_2, p19);
                    }
                } else {
                    Long v13_0;
                    long v9_9 = (((v5_6 / 3600000) + 1) * 3600000);
                    if (v15_3 != null) {
                        v13_0 = 1;
                        if (v15_3 == 1) {
                            String v0_16 = new com.google.android.gms.internal.zzcku;
                            v0_16("_fvt", v5_6, Long.valueOf(v9_9), "auto");
                            this.zzb(v0_16, p19);
                            this.zzwD().zzjB();
                            this.zzkC();
                            String v0_19 = new android.os.Bundle();
                            v0_19.putLong("_c", 1);
                            v0_19.putLong("_r", 1);
                            com.google.android.gms.internal.zzcku v3_6 = new com.google.android.gms.internal.zzcgl;
                            v3_6("_v", new com.google.android.gms.internal.zzcgi(v0_19), "auto", v5_6);
                            this.zzb(v3_6, p19);
                        }
                    } else {
                        String v0_20 = new com.google.android.gms.internal.zzcku;
                        v13_0 = 1;
                        v0_20("_fot", v5_6, Long.valueOf(v9_9), "auto");
                        this.zzb(v0_20, p19);
                        this.zzwD().zzjB();
                        this.zzkC();
                        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.mContext.getPackageManager() != null) {
                            try {
                                String v0_32 = com.google.android.gms.internal.zzbim.zzaP(this.mContext).getPackageInfo(p19.packageName, 0);
                            } catch (String v0_33) {
                                this.zzwE().zzyv().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), v0_33);
                                v0_32 = 0;
                            }
                            if ((v0_32 != null) && (v0_32.firstInstallTime != 0)) {
                                String v0_36;
                                if (v0_32.firstInstallTime == v0_32.lastUpdateTime) {
                                    v0_36 = 1;
                                } else {
                                    v15_2.putLong("_uwa", 1);
                                    v0_36 = 0;
                                }
                                long v9_18;
                                String v12_10 = new com.google.android.gms.internal.zzcku;
                                if (v0_36 == null) {
                                    v9_18 = 0;
                                } else {
                                    v9_18 = 1;
                                }
                                com.google.android.gms.internal.zzcku v3_7 = v12_10;
                                v12_10("_fi", v5_6, Long.valueOf(v9_18), "auto");
                                this.zzb(v3_7, p19);
                            }
                            try {
                                String v0_42 = com.google.android.gms.internal.zzbim.zzaP(this.mContext).getApplicationInfo(p19.packageName, 0);
                            } catch (String v0_43) {
                                this.zzwE().zzyv().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), v0_43);
                                v0_42 = 0;
                            }
                            if (v0_42 != null) {
                                if ((v0_42.flags & 1) != 0) {
                                    v15_2.putLong("_sys", 1);
                                }
                                if ((v0_42.flags & 128) != 0) {
                                    v15_2.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.zzwE().zzyv().zzj("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName));
                        }
                        String v0_50 = this.zzwy();
                        com.google.android.gms.internal.zzcku v3_14 = p19.packageName;
                        com.google.android.gms.common.internal.zzbr.zzcF(v3_14);
                        v0_50.zzjB();
                        v0_50.zzkC();
                        com.google.android.gms.internal.zzcku v3_15 = v0_50.zzL(v3_14, "first_open_count");
                        if (v3_15 >= 0) {
                            v15_2.putLong("_pfo", v3_15);
                        }
                        String v0_53 = new com.google.android.gms.internal.zzcgl;
                        v0_53("_f", new com.google.android.gms.internal.zzcgi(v15_2), "auto", v5_6);
                        this.zzb(v0_53, p19);
                    }
                    String v0_55 = new android.os.Bundle();
                    v0_55.putLong("_et", v13_0);
                    v3_2 = new com.google.android.gms.internal.zzcgl;
                    v3_2("_e", new com.google.android.gms.internal.zzcgi(v0_55), "auto", v5_6);
                }
                this.zzwy().setTransactionSuccessful();
                this.zzwy().endTransaction();
                return;
            } else {
                this.zzf(p19);
                return;
            }
        } else {
            return;
        }
    }

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


    public final void zze(com.google.android.gms.internal.zzcft p19)
    {
        this.zzwD().zzjB();
        this.zzkC();
        com.google.android.gms.common.internal.zzbr.zzu(p19);
        com.google.android.gms.common.internal.zzbr.zzcF(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzboU)) {
            String v0_8 = this.zzwy().zzdR(p19.packageName);
            if ((v0_8 != null) && ((android.text.TextUtils.isEmpty(v0_8.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzboU)))) {
                v0_8.zzR(0);
                this.zzwy().zza(v0_8);
                this.zzwB().zzel(p19.packageName);
            }
            if (p19.zzboZ) {
                long v5_6 = p19.zzbpe;
                if (v5_6 == 0) {
                    v5_6 = this.zzvz.currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_61 = p19.zzbpf;
                if ((v0_61 == null) || (v0_61 == 1)) {
                    v15_3 = v0_61;
                } else {
                    this.zzwE().zzyx().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), Integer.valueOf(v0_61));
                    v15_3 = 0;
                }
                this.zzwy().beginTransaction();
                try {
                    String v0_7 = this.zzwy().zzdR(p19.packageName);
                } catch (String v0_57) {
                    this.zzwy().endTransaction();
                    throw v0_57;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzboU)))) {
                    this.zzwE().zzyx().zzj("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzcgx.zzea(v0_7.zzhk()));
                    com.google.android.gms.internal.zzcku v7_34 = this.zzwy();
                    String v8_19 = v0_7.zzhk();
                    v7_34.zzkC();
                    v7_34.zzjB();
                    com.google.android.gms.common.internal.zzbr.zzcF(v8_19);
                    try {
                        String v0_0 = v7_34.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_19;
                        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_34.zzwE().zzyv().zze("Error deleting application data. appId, error", com.google.android.gms.internal.zzcgx.zzea(v8_19), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_34.zzwE().zzyB().zze("Deleted application data. app, records", v8_19, Integer.valueOf(v10_10));
                    }
                }
                if ((v0_7 != null) && ((v0_7.zzjG() != null) && (!v0_7.zzjG().equals(p19.zzbha)))) {
                    com.google.android.gms.internal.zzcku v7_6 = new android.os.Bundle();
                    v7_6.putString("_pv", v0_7.zzjG());
                    String v0_10 = new com.google.android.gms.internal.zzcgl;
                    v0_10("_au", new com.google.android.gms.internal.zzcgi(v7_6), "auto", v5_6);
                    this.zzb(v0_10, p19);
                }
                String v8_4;
                String v0_11;
                com.google.android.gms.internal.zzcku v7_8;
                String v0_12;
                this = this.zzf(p19);
                if (v15_3 != null) {
                    if (v15_3 != 1) {
                        v0_11 = 0;
                    } else {
                        v0_12 = this.zzwy();
                        v7_8 = p19.packageName;
                        v8_4 = "_v";
                        v0_11 = v0_12.zzE(v7_8, v8_4);
                    }
                } else {
                    v0_12 = this.zzwy();
                    v7_8 = p19.packageName;
                    v8_4 = "_f";
                }
                com.google.android.gms.internal.zzcku v3_2;
                if (v0_11 != null) {
                    if (p19.zzbpa) {
                        v3_2 = new com.google.android.gms.internal.zzcgl;
                        v3_2("_cd", new com.google.android.gms.internal.zzcgi(new android.os.Bundle()), "auto", v5_6);
                        this.zzb(v3_2, p19);
                    }
                } else {
                    Long v13_0;
                    long v9_9 = (((v5_6 / 3600000) + 1) * 3600000);
                    if (v15_3 != null) {
                        v13_0 = 1;
                        if (v15_3 == 1) {
                            String v0_16 = new com.google.android.gms.internal.zzcku;
                            v0_16("_fvt", v5_6, Long.valueOf(v9_9), "auto");
                            this.zzb(v0_16, p19);
                            this.zzwD().zzjB();
                            this.zzkC();
                            String v0_19 = new android.os.Bundle();
                            v0_19.putLong("_c", 1);
                            v0_19.putLong("_r", 1);
                            com.google.android.gms.internal.zzcku v3_6 = new com.google.android.gms.internal.zzcgl;
                            v3_6("_v", new com.google.android.gms.internal.zzcgi(v0_19), "auto", v5_6);
                            this.zzb(v3_6, p19);
                        }
                    } else {
                        String v0_20 = new com.google.android.gms.internal.zzcku;
                        v13_0 = 1;
                        v0_20("_fot", v5_6, Long.valueOf(v9_9), "auto");
                        this.zzb(v0_20, p19);
                        this.zzwD().zzjB();
                        this.zzkC();
                        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.mContext.getPackageManager() != null) {
                            try {
                                String v0_32 = com.google.android.gms.internal.zzbim.zzaP(this.mContext).getPackageInfo(p19.packageName, 0);
                            } catch (String v0_33) {
                                this.zzwE().zzyv().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), v0_33);
                                v0_32 = 0;
                            }
                            if ((v0_32 != null) && (v0_32.firstInstallTime != 0)) {
                                String v0_36;
                                if (v0_32.firstInstallTime == v0_32.lastUpdateTime) {
                                    v0_36 = 1;
                                } else {
                                    v15_2.putLong("_uwa", 1);
                                    v0_36 = 0;
                                }
                                long v9_18;
                                String v12_10 = new com.google.android.gms.internal.zzcku;
                                if (v0_36 == null) {
                                    v9_18 = 0;
                                } else {
                                    v9_18 = 1;
                                }
                                com.google.android.gms.internal.zzcku v3_7 = v12_10;
                                v12_10("_fi", v5_6, Long.valueOf(v9_18), "auto");
                                this.zzb(v3_7, p19);
                            }
                            try {
                                String v0_42 = com.google.android.gms.internal.zzbim.zzaP(this.mContext).getApplicationInfo(p19.packageName, 0);
                            } catch (String v0_43) {
                                this.zzwE().zzyv().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), v0_43);
                                v0_42 = 0;
                            }
                            if (v0_42 != null) {
                                if ((v0_42.flags & 1) != 0) {
                                    v15_2.putLong("_sys", 1);
                                }
                                if ((v0_42.flags & 128) != 0) {
                                    v15_2.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.zzwE().zzyv().zzj("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName));
                        }
                        String v0_50 = this.zzwy();
                        com.google.android.gms.internal.zzcku v3_14 = p19.packageName;
                        com.google.android.gms.common.internal.zzbr.zzcF(v3_14);
                        v0_50.zzjB();
                        v0_50.zzkC();
                        com.google.android.gms.internal.zzcku v3_15 = v0_50.zzL(v3_14, "first_open_count");
                        if (v3_15 >= 0) {
                            v15_2.putLong("_pfo", v3_15);
                        }
                        String v0_53 = new com.google.android.gms.internal.zzcgl;
                        v0_53("_f", new com.google.android.gms.internal.zzcgi(v15_2), "auto", v5_6);
                        this.zzb(v0_53, p19);
                    }
                    String v0_55 = new android.os.Bundle();
                    v0_55.putLong("_et", v13_0);
                    v3_2 = new com.google.android.gms.internal.zzcgl;
                    v3_2("_e", new com.google.android.gms.internal.zzcgi(v0_55), "auto", v5_6);
                }
                this.zzwy().setTransactionSuccessful();
                this.zzwy().endTransaction();
                return;
            } else {
                this.zzf(p19);
                return;
            }
        } else {
            return;
        }
    }

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


    public final void zze(com.google.android.gms.internal.zzcft p19)
    {
        this.zzwD().zzjB();
        this.zzkC();
        com.google.android.gms.common.internal.zzbr.zzu(p19);
        com.google.android.gms.common.internal.zzbr.zzcF(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzboU)) {
            String v0_8 = this.zzwy().zzdR(p19.packageName);
            if ((v0_8 != null) && ((android.text.TextUtils.isEmpty(v0_8.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzboU)))) {
                v0_8.zzR(0);
                this.zzwy().zza(v0_8);
                this.zzwB().zzel(p19.packageName);
            }
            if (p19.zzboZ) {
                long v5_6 = p19.zzbpe;
                if (v5_6 == 0) {
                    v5_6 = this.zzvz.currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_61 = p19.zzbpf;
                if ((v0_61 == null) || (v0_61 == 1)) {
                    v15_3 = v0_61;
                } else {
                    this.zzwE().zzyx().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), Integer.valueOf(v0_61));
                    v15_3 = 0;
                }
                this.zzwy().beginTransaction();
                try {
                    String v0_7 = this.zzwy().zzdR(p19.packageName);
                } catch (String v0_57) {
                    this.zzwy().endTransaction();
                    throw v0_57;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzboU)))) {
                    this.zzwE().zzyx().zzj("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzcgx.zzea(v0_7.zzhk()));
                    com.google.android.gms.internal.zzcku v7_34 = this.zzwy();
                    String v8_19 = v0_7.zzhk();
                    v7_34.zzkC();
                    v7_34.zzjB();
                    com.google.android.gms.common.internal.zzbr.zzcF(v8_19);
                    try {
                        String v0_0 = v7_34.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_19;
                        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_34.zzwE().zzyv().zze("Error deleting application data. appId, error", com.google.android.gms.internal.zzcgx.zzea(v8_19), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_34.zzwE().zzyB().zze("Deleted application data. app, records", v8_19, Integer.valueOf(v10_10));
                    }
                }
                if ((v0_7 != null) && ((v0_7.zzjG() != null) && (!v0_7.zzjG().equals(p19.zzbha)))) {
                    com.google.android.gms.internal.zzcku v7_6 = new android.os.Bundle();
                    v7_6.putString("_pv", v0_7.zzjG());
                    String v0_10 = new com.google.android.gms.internal.zzcgl;
                    v0_10("_au", new com.google.android.gms.internal.zzcgi(v7_6), "auto", v5_6);
                    this.zzb(v0_10, p19);
                }
                String v0_11;
                String v8_4;
                String v0_12;
                com.google.android.gms.internal.zzcku v7_8;
                this = this.zzf(p19);
                if (v15_3 != null) {
                    if (v15_3 != 1) {
                        v0_11 = 0;
                    } else {
                        v0_12 = this.zzwy();
                        v7_8 = p19.packageName;
                        v8_4 = "_v";
                        v0_11 = v0_12.zzE(v7_8, v8_4);
                    }
                } else {
                    v0_12 = this.zzwy();
                    v7_8 = p19.packageName;
                    v8_4 = "_f";
                }
                com.google.android.gms.internal.zzcku v3_2;
                if (v0_11 != null) {
                    if (p19.zzbpa) {
                        v3_2 = new com.google.android.gms.internal.zzcgl;
                        v3_2("_cd", new com.google.android.gms.internal.zzcgi(new android.os.Bundle()), "auto", v5_6);
                        this.zzb(v3_2, p19);
                    }
                } else {
                    Long v13_0;
                    long v9_9 = (((v5_6 / 3600000) + 1) * 3600000);
                    if (v15_3 != null) {
                        v13_0 = 1;
                        if (v15_3 == 1) {
                            String v0_16 = new com.google.android.gms.internal.zzcku;
                            v0_16("_fvt", v5_6, Long.valueOf(v9_9), "auto");
                            this.zzb(v0_16, p19);
                            this.zzwD().zzjB();
                            this.zzkC();
                            String v0_19 = new android.os.Bundle();
                            v0_19.putLong("_c", 1);
                            v0_19.putLong("_r", 1);
                            com.google.android.gms.internal.zzcku v3_6 = new com.google.android.gms.internal.zzcgl;
                            v3_6("_v", new com.google.android.gms.internal.zzcgi(v0_19), "auto", v5_6);
                            this.zzb(v3_6, p19);
                        }
                    } else {
                        String v0_20 = new com.google.android.gms.internal.zzcku;
                        v13_0 = 1;
                        v0_20("_fot", v5_6, Long.valueOf(v9_9), "auto");
                        this.zzb(v0_20, p19);
                        this.zzwD().zzjB();
                        this.zzkC();
                        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.mContext.getPackageManager() != null) {
                            try {
                                String v0_32 = com.google.android.gms.internal.zzbim.zzaP(this.mContext).getPackageInfo(p19.packageName, 0);
                            } catch (String v0_33) {
                                this.zzwE().zzyv().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), v0_33);
                                v0_32 = 0;
                            }
                            if ((v0_32 != null) && (v0_32.firstInstallTime != 0)) {
                                String v0_36;
                                if (v0_32.firstInstallTime == v0_32.lastUpdateTime) {
                                    v0_36 = 1;
                                } else {
                                    v15_2.putLong("_uwa", 1);
                                    v0_36 = 0;
                                }
                                long v9_18;
                                String v12_10 = new com.google.android.gms.internal.zzcku;
                                if (v0_36 == null) {
                                    v9_18 = 0;
                                } else {
                                    v9_18 = 1;
                                }
                                com.google.android.gms.internal.zzcku v3_7 = v12_10;
                                v12_10("_fi", v5_6, Long.valueOf(v9_18), "auto");
                                this.zzb(v3_7, p19);
                            }
                            try {
                                String v0_42 = com.google.android.gms.internal.zzbim.zzaP(this.mContext).getApplicationInfo(p19.packageName, 0);
                            } catch (String v0_43) {
                                this.zzwE().zzyv().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), v0_43);
                                v0_42 = 0;
                            }
                            if (v0_42 != null) {
                                if ((v0_42.flags & 1) != 0) {
                                    v15_2.putLong("_sys", 1);
                                }
                                if ((v0_42.flags & 128) != 0) {
                                    v15_2.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.zzwE().zzyv().zzj("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName));
                        }
                        String v0_50 = this.zzwy();
                        com.google.android.gms.internal.zzcku v3_14 = p19.packageName;
                        com.google.android.gms.common.internal.zzbr.zzcF(v3_14);
                        v0_50.zzjB();
                        v0_50.zzkC();
                        com.google.android.gms.internal.zzcku v3_15 = v0_50.zzL(v3_14, "first_open_count");
                        if (v3_15 >= 0) {
                            v15_2.putLong("_pfo", v3_15);
                        }
                        String v0_53 = new com.google.android.gms.internal.zzcgl;
                        v0_53("_f", new com.google.android.gms.internal.zzcgi(v15_2), "auto", v5_6);
                        this.zzb(v0_53, p19);
                    }
                    String v0_55 = new android.os.Bundle();
                    v0_55.putLong("_et", v13_0);
                    v3_2 = new com.google.android.gms.internal.zzcgl;
                    v3_2("_e", new com.google.android.gms.internal.zzcgi(v0_55), "auto", v5_6);
                }
                this.zzwy().setTransactionSuccessful();
                this.zzwy().endTransaction();
                return;
            } else {
                this.zzf(p19);
                return;
            }
        } else {
            return;
        }
    }

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


    public final void zze(com.google.android.gms.internal.zzcft p19)
    {
        this.zzwD().zzjB();
        this.zzkC();
        com.google.android.gms.common.internal.zzbr.zzu(p19);
        com.google.android.gms.common.internal.zzbr.zzcF(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzboU)) {
            String v0_8 = this.zzwy().zzdR(p19.packageName);
            if ((v0_8 != null) && ((android.text.TextUtils.isEmpty(v0_8.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzboU)))) {
                v0_8.zzR(0);
                this.zzwy().zza(v0_8);
                this.zzwB().zzel(p19.packageName);
            }
            if (p19.zzboZ) {
                long v5_6 = p19.zzbpe;
                if (v5_6 == 0) {
                    v5_6 = this.zzvz.currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_61 = p19.zzbpf;
                if ((v0_61 == null) || (v0_61 == 1)) {
                    v15_3 = v0_61;
                } else {
                    this.zzwE().zzyx().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), Integer.valueOf(v0_61));
                    v15_3 = 0;
                }
                this.zzwy().beginTransaction();
                try {
                    String v0_7 = this.zzwy().zzdR(p19.packageName);
                } catch (String v0_57) {
                    this.zzwy().endTransaction();
                    throw v0_57;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzboU)))) {
                    this.zzwE().zzyx().zzj("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzcgx.zzea(v0_7.zzhk()));
                    com.google.android.gms.internal.zzcku v7_34 = this.zzwy();
                    String v8_19 = v0_7.zzhk();
                    v7_34.zzkC();
                    v7_34.zzjB();
                    com.google.android.gms.common.internal.zzbr.zzcF(v8_19);
                    try {
                        String v0_0 = v7_34.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_19;
                        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_34.zzwE().zzyv().zze("Error deleting application data. appId, error", com.google.android.gms.internal.zzcgx.zzea(v8_19), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_34.zzwE().zzyB().zze("Deleted application data. app, records", v8_19, Integer.valueOf(v10_10));
                    }
                }
                if ((v0_7 != null) && ((v0_7.zzjG() != null) && (!v0_7.zzjG().equals(p19.zzbha)))) {
                    com.google.android.gms.internal.zzcku v7_6 = new android.os.Bundle();
                    v7_6.putString("_pv", v0_7.zzjG());
                    String v0_10 = new com.google.android.gms.internal.zzcgl;
                    v0_10("_au", new com.google.android.gms.internal.zzcgi(v7_6), "auto", v5_6);
                    this.zzb(v0_10, p19);
                }
                com.google.android.gms.internal.zzcku v7_8;
                String v8_4;
                String v0_11;
                String v0_12;
                this = this.zzf(p19);
                if (v15_3 != null) {
                    if (v15_3 != 1) {
                        v0_11 = 0;
                    } else {
                        v0_12 = this.zzwy();
                        v7_8 = p19.packageName;
                        v8_4 = "_v";
                        v0_11 = v0_12.zzE(v7_8, v8_4);
                    }
                } else {
                    v0_12 = this.zzwy();
                    v7_8 = p19.packageName;
                    v8_4 = "_f";
                }
                com.google.android.gms.internal.zzcku v3_2;
                if (v0_11 != null) {
                    if (p19.zzbpa) {
                        v3_2 = new com.google.android.gms.internal.zzcgl;
                        v3_2("_cd", new com.google.android.gms.internal.zzcgi(new android.os.Bundle()), "auto", v5_6);
                        this.zzb(v3_2, p19);
                    }
                } else {
                    Long v13_0;
                    long v9_9 = (((v5_6 / 3600000) + 1) * 3600000);
                    if (v15_3 != null) {
                        v13_0 = 1;
                        if (v15_3 == 1) {
                            String v0_16 = new com.google.android.gms.internal.zzcku;
                            v0_16("_fvt", v5_6, Long.valueOf(v9_9), "auto");
                            this.zzb(v0_16, p19);
                            this.zzwD().zzjB();
                            this.zzkC();
                            String v0_19 = new android.os.Bundle();
                            v0_19.putLong("_c", 1);
                            v0_19.putLong("_r", 1);
                            com.google.android.gms.internal.zzcku v3_6 = new com.google.android.gms.internal.zzcgl;
                            v3_6("_v", new com.google.android.gms.internal.zzcgi(v0_19), "auto", v5_6);
                            this.zzb(v3_6, p19);
                        }
                    } else {
                        String v0_20 = new com.google.android.gms.internal.zzcku;
                        v13_0 = 1;
                        v0_20("_fot", v5_6, Long.valueOf(v9_9), "auto");
                        this.zzb(v0_20, p19);
                        this.zzwD().zzjB();
                        this.zzkC();
                        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.mContext.getPackageManager() != null) {
                            try {
                                String v0_32 = com.google.android.gms.internal.zzbim.zzaP(this.mContext).getPackageInfo(p19.packageName, 0);
                            } catch (String v0_33) {
                                this.zzwE().zzyv().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), v0_33);
                                v0_32 = 0;
                            }
                            if ((v0_32 != null) && (v0_32.firstInstallTime != 0)) {
                                String v0_36;
                                if (v0_32.firstInstallTime == v0_32.lastUpdateTime) {
                                    v0_36 = 1;
                                } else {
                                    v15_2.putLong("_uwa", 1);
                                    v0_36 = 0;
                                }
                                long v9_18;
                                String v12_10 = new com.google.android.gms.internal.zzcku;
                                if (v0_36 == null) {
                                    v9_18 = 0;
                                } else {
                                    v9_18 = 1;
                                }
                                com.google.android.gms.internal.zzcku v3_7 = v12_10;
                                v12_10("_fi", v5_6, Long.valueOf(v9_18), "auto");
                                this.zzb(v3_7, p19);
                            }
                            try {
                                String v0_42 = com.google.android.gms.internal.zzbim.zzaP(this.mContext).getApplicationInfo(p19.packageName, 0);
                            } catch (String v0_43) {
                                this.zzwE().zzyv().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName), v0_43);
                                v0_42 = 0;
                            }
                            if (v0_42 != null) {
                                if ((v0_42.flags & 1) != 0) {
                                    v15_2.putLong("_sys", 1);
                                }
                                if ((v0_42.flags & 128) != 0) {
                                    v15_2.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.zzwE().zzyv().zzj("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcgx.zzea(p19.packageName));
                        }
                        String v0_50 = this.zzwy();
                        com.google.android.gms.internal.zzcku v3_14 = p19.packageName;
                        com.google.android.gms.common.internal.zzbr.zzcF(v3_14);
                        v0_50.zzjB();
                        v0_50.zzkC();
                        com.google.android.gms.internal.zzcku v3_15 = v0_50.zzL(v3_14, "first_open_count");
                        if (v3_15 >= 0) {
                            v15_2.putLong("_pfo", v3_15);
                        }
                        String v0_53 = new com.google.android.gms.internal.zzcgl;
                        v0_53("_f", new com.google.android.gms.internal.zzcgi(v15_2), "auto", v5_6);
                        this.zzb(v0_53, p19);
                    }
                    String v0_55 = new android.os.Bundle();
                    v0_55.putLong("_et", v13_0);
                    v3_2 = new com.google.android.gms.internal.zzcgl;
                    v3_2("_e", new com.google.android.gms.internal.zzcgi(v0_55), "auto", v5_6);
                }
                this.zzwy().setTransactionSuccessful();
                this.zzwy().endTransaction();
                return;
            } else {
                this.zzf(p19);
                return;
            }
        } else {
            return;
        }
    }

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


    protected final void zza(int p8, Throwable p9, byte[] p10)
    {
        this.zzwD().zzjB();
        this.zzkC();
        if (p10 == null) {
            p10 = new byte[0];
        }
        String v1_6 = this.zzbsS;
        this.zzbsS = 0;
        int v3 = 1;
        if (((p8 != 200) && (p8 != 204)) || (p9 != null)) {
            this.zzwE().zzyB().zze("Network upload failed. Will retry later. code, error", Integer.valueOf(p8), p9);
            this.zzwF().zzbrp.set(this.zzvz.currentTimeMillis());
            if (p8 != 503) {
                if (p8 != 429) {
                    v3 = 0;
                } else {
                }
            }
            if (v3 != 0) {
                this.zzwF().zzbrq.set(this.zzvz.currentTimeMillis());
            }
            this.zzza();
        } else {
            try {
                this.zzwF().zzbro.set(this.zzvz.currentTimeMillis());
                this.zzwF().zzbrp.set(0);
                this.zzza();
                this.zzwE().zzyB().zze("Successful upload. Got network response. code, size", Integer.valueOf(p8), Integer.valueOf(p10.length));
                this.zzwy().beginTransaction();
            } catch (long v8_5) {
                this.zzwE().zzyv().zzj("Database error while trying to delete uploaded bundles", v8_5);
                this.zzbsX = this.zzvz.elapsedRealtime();
                this.zzwE().zzyB().zzj("Disable upload, time", Long.valueOf(this.zzbsX));
            }
            long v8_15 = v1_6.iterator();
            while (v8_15.hasNext()) {
                com.google.android.gms.internal.zzcgz v9_24 = ((Long) v8_15.next());
                String v10_1 = this.zzwy();
                String v1_0 = v9_24.longValue();
                v10_1.zzjB();
                v10_1.zzkC();
                com.google.android.gms.internal.zzcgz 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.zzwE().zzyv().zzj("Failed to delete a bundle in a queue table", v8_3);
                    throw v8_3;
                }
            }
            this.zzwy().setTransactionSuccessful();
            this.zzwy().endTransaction();
            if ((!this.zzyS().zzlP()) || (!this.zzyZ())) {
                this.zzbsW = -1;
                this.zzza();
            } else {
                this.zzyY();
            }
            this.zzbsX = 0;
        }
        this.zzbsZ = 0;
        this.zzze();
        return;
    }

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


    public final java.util.List zzbo(int p19)
    {
        super.zzjB();
        void v18_1 = super.zzwo();
        if (!this.zzbqK) {
            String v3_2 = new java.util.ArrayList();
            if (super.getContext().getDatabasePath(com.google.android.gms.internal.zzcfy.zzxC()).exists()) {
                int v4_1 = 5;
                int v6 = 0;
                int v7 = 5;
                while (v6 < v4_1) {
                    try {
                        int v15_0 = v18_1.getWritableDatabase();
                    } catch (int v0_26) {
                        int v4_2 = 0;
                        int v9_0 = 0;
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        if (v4_2 != 0) {
                            v4_2.close();
                        }
                        throw v0_26;
                    } catch (int v0_25) {
                        v4_2 = 0;
                        v9_0 = 0;
                        super.zzwE().zzyv().zzj("Error reading entries from local database", v0_25);
                        this.zzbqK = 1;
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        if (v4_2 == 0) {
                            v6++;
                            v4_1 = 5;
                        } else {
                            v4_2.close();
                        }
                        v3_2.add(int v0_6);
                        try {
                            while (v9_0.moveToNext()) {
                                String v10_0 = v9_0.getLong(0);
                                int v0_0 = v9_0.getInt(1);
                                String v13_0 = v9_0.getBlob(2);
                                if (v0_0 != 0) {
                                    if (v0_0 != 1) {
                                        if (v0_0 != 2) {
                                            super.zzwE().zzyv().log("Unknown record type in local database");
                                        } else {
                                            String v12_2 = android.os.Parcel.obtain();
                                            try {
                                                v12_2.unmarshall(v13_0, 0, v13_0.length);
                                                v12_2.setDataPosition(0);
                                                v0_6 = ((com.google.android.gms.internal.zzcfw) com.google.android.gms.internal.zzcfw.CREATOR.createFromParcel(v12_2));
                                            } catch (int v0_10) {
                                                v12_2.recycle();
                                                throw v0_10;
                                            }
                                            v12_2.recycle();
                                            if (v0_6 != 0) {
                                            }
                                        }
                                    } else {
                                        String v12_3 = android.os.Parcel.obtain();
                                        try {
                                            v12_3.unmarshall(v13_0, 0, v13_0.length);
                                            v12_3.setDataPosition(0);
                                            v0_6 = ((com.google.android.gms.internal.zzcku) com.google.android.gms.internal.zzcku.CREATOR.createFromParcel(v12_3));
                                        } catch (int v0_17) {
                                            v12_3.recycle();
                                            throw v0_17;
                                        }
                                        v12_3.recycle();
                                        if (v0_6 != 0) {
                                        }
                                    }
                                } else {
                                    String v12_4 = android.os.Parcel.obtain();
                                    try {
                                        v12_4.unmarshall(v13_0, 0, v13_0.length);
                                        v12_4.setDataPosition(0);
                                        v0_6 = ((com.google.android.gms.internal.zzcgl) com.google.android.gms.internal.zzcgl.CREATOR.createFromParcel(v12_4));
                                    } catch (int v0_23) {
                                        v12_4.recycle();
                                        throw v0_23;
                                    }
                                    v12_4.recycle();
                                    if (v0_6 != 0) {
                                    }
                                }
                            }
                        } catch (int v0_25) {
                        } catch (int v0_24) {
                            if (android.os.Build$VERSION.SDK_INT < 11) {
                                if (v4_2 != 0) {
                                    if (v4_2.inTransaction()) {
                                        v4_2.endTransaction();
                                    }
                                }
                                super.zzwE().zzyv().zzj("Error reading entries from local database", v0_24);
                                this.zzbqK = 1;
                            } else {
                                if (!(v0_24 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                                } else {
                                    android.os.SystemClock.sleep(((long) v7));
                                    v7 += 20;
                                }
                            }
                            if (v9_0 != 0) {
                                v9_0.close();
                            }
                            if (v4_2 == 0) {
                            }
                        }
                        String v13_5 = new String[1];
                        v13_5[0] = Long.toString(v10_0);
                        if (v4_2.delete("messages", "rowid <= ?", v13_5) < v3_2.size()) {
                            super.zzwE().zzyv().log("Fewer entries removed from local database than expected");
                        }
                        v4_2.setTransactionSuccessful();
                        v4_2.endTransaction();
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        if (v4_2 != 0) {
                            v4_2.close();
                        }
                        return v3_2;
                    } catch (int v0_24) {
                        v4_2 = 0;
                        v9_0 = 0;
                    } catch (int v0_26) {
                    }
                    if (v15_0 != 0) {
                        try {
                            v15_0.beginTransaction();
                            v4_2 = v15_0;
                            try {
                                v9_0 = v15_0.query("messages", new String[] {"rowid", "type", "entry"}), 0, 0, 0, 0, "rowid asc", Integer.toString(100));
                                v10_0 = -1;
                            } catch (int v0_26) {
                                v9_0 = 0;
                            } catch (int v0_25) {
                                v9_0 = 0;
                            } catch (int v0_24) {
                                v9_0 = 0;
                            }
                        } catch (int v0_26) {
                            v4_2 = 0;
                        } catch (int v0_25) {
                            v4_2 = 0;
                        } catch (int v0_24) {
                            v4_2 = 0;
                        }
                    } else {
                        try {
                            this.zzbqK = 1;
                        } catch (int v0_26) {
                            v9_0 = 0;
                            v4_2 = v15_0;
                        } catch (int v0_25) {
                            v9_0 = 0;
                            v4_2 = v15_0;
                        } catch (int v0_24) {
                            v9_0 = 0;
                            v4_2 = v15_0;
                        }
                        if (v15_0 != 0) {
                            v15_0.close();
                        }
                        return 0;
                    }
                }
                super.zzwE().zzyx().log("Failed to read events from database in reasonable time");
                return 0;
            } else {
                return v3_2;
            }
        } else {
            return 0;
        }
    }

Method com.google.android.gms.internal.zzcfz.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.zzjB();
        this.zzkC();
        if (p14 <= null) {
            v2_5 = 0;
        } else {
            v2_5 = 1;
        }
        java.util.ArrayList v2_0;
        com.google.android.gms.common.internal.zzbr.zzaf(v2_5);
        if (p15 <= null) {
            v2_0 = 0;
        } else {
            v2_0 = 1;
        }
        com.google.android.gms.common.internal.zzbr.zzaf(v2_0);
        com.google.android.gms.common.internal.zzbr.zzcF(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.zzcgz 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.zzwA().zzn(v14_1.getBlob(1));
                        if ((!v2_4.isEmpty()) && ((v6_3.length + v3_1) > p15)) {
                            break;
                        }
                        Object v7_7 = com.google.android.gms.internal.ahw.zzb(v6_3, 0, v6_3.length);
                        com.google.android.gms.internal.zzcll v8_2 = new com.google.android.gms.internal.zzcll();
                        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.zzwE().zzyv().zze("Error querying bundles. appId", com.google.android.gms.internal.zzcgx.zzea(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.zzcfz.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.zzbr.zzcF(p22);
        this.zzjB();
        this.zzkC();
        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_5 = new StringBuilder("app_id=?");
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v5_1 = p23;
                android.database.Cursor v2_3 = 0;
                this.zzwE().zzyv().zzd("(2)Error querying user properties", com.google.android.gms.internal.zzcgx.zzea(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_5.append(" and origin=?");
            }
            if (!android.text.TextUtils.isEmpty(p24)) {
                v2_4.add(String.valueOf(p24).concat("*"));
                v4_5.append(" and name glob ?");
            }
            String v6_10 = new String[v2_4.size()];
            String[] v16_1 = ((String[]) v2_4.toArray(v6_10));
            com.google.android.gms.internal.zzcfz v12_0 = this.getWritableDatabase();
            com.google.android.gms.internal.zzckw v15_0 = v4_5.toString();
            com.google.android.gms.internal.zzcfy.zzxs();
            v2_3 = v12_0.query("user_attributes", new String[] {"name", "set_timestamp", "value", "origin"}), v15_0, v16_1, 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() < com.google.android.gms.internal.zzcfy.zzxs()) {
                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.zzckw v15_1 = new com.google.android.gms.internal.zzckw;
                    v15_1(p22, v13_1, v7_2, v8_1, v10);
                    v0_3.add(v15_1);
                } else {
                    this.zzwE().zzyv().zzd("(2)Read invalid user property value, ignoring it", com.google.android.gms.internal.zzcgx.zzea(p22), v13_1, p24);
                }
                if (v2_3.moveToNext()) {
                    v5_1 = v13_1;
                }
                if (v2_3 != null) {
                    v2_3.close();
                }
                return v0_3;
            }
            this.zzwE().zzyv().zzj("Read more than the max allowed user properties, ignoring excess", Integer.valueOf(com.google.android.gms.internal.zzcfy.zzxs()));
        } 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.zzcfz.zzdU() calling method android.database.sqlite.SQLiteDatabase.query()


    final java.util.Map zzdU(String p12)
    {
        this.zzkC();
        this.zzjB();
        com.google.android.gms.common.internal.zzbr.zzcF(p12);
        int v0_1 = this.getWritableDatabase();
        try {
            com.google.android.gms.internal.zzcgz v4_0 = new String[1];
            v4_0[0] = p12;
            int v0_0 = v0_1.query("audience_filter_values", new String[] {"audience_id", "current_results"}), "app_id=?", v4_0, 0, 0, 0);
            try {
                if (v0_0.moveToFirst()) {
                    android.support.v4.util.ArrayMap v1_3 = new android.support.v4.util.ArrayMap();
                    do {
                        boolean v2_1 = v0_0.getInt(0);
                        java.io.IOException v3_1 = v0_0.getBlob(1);
                        java.io.IOException v3_2 = com.google.android.gms.internal.ahw.zzb(v3_1, 0, v3_1.length);
                        com.google.android.gms.internal.zzcgz v4_3 = new com.google.android.gms.internal.zzclm();
                        v4_3.zza(v3_2);
                        v1_3.put(Integer.valueOf(v2_1), v4_3);
                    } while(v0_0.moveToNext());
                    if (v0_0 != 0) {
                        v0_0.close();
                    }
                    return v1_3;
                } else {
                    if (v0_0 != 0) {
                        v0_0.close();
                    }
                    return 0;
                }
            } catch (android.support.v4.util.ArrayMap v1_0) {
                this.zzwE().zzyv().zze("Database error querying filter results. appId", com.google.android.gms.internal.zzcgx.zzea(p12), v1_0);
                if (v0_0 != 0) {
                    v0_0.close();
                }
                return 0;
            }
        } catch (Throwable v12_1) {
            v0_0 = 0;
            if (v0_0 != 0) {
                v0_0.close();
            }
            throw v12_1;
        } catch (android.support.v4.util.ArrayMap v1_0) {
            v0_0 = 0;
        } catch (Throwable v12_1) {
        }
    }

Method com.google.android.gms.internal.zzcfz.zzdT() calling method android.database.sqlite.SQLiteDatabase.query()


    public final byte[] zzdT(String p11)
    {
        com.google.android.gms.common.internal.zzbr.zzcF(p11);
        this.zzjB();
        this.zzkC();
        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.zzwE().zzyv().zzj("Got multiple records for app config, expected one. appId", com.google.android.gms.internal.zzcgx.zzea(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.zzwE().zzyv().zze("Error querying remote config. appId", com.google.android.gms.internal.zzcgx.zzea(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.zzcfz.zzdR() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.zzcfs zzdR(String p29)
    {
        com.google.android.gms.common.internal.zzbr.zzcF(p29);
        this.zzjB();
        this.zzkC();
        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";
            com.google.android.gms.internal.zzcgz v0_0 = 1;
            Object v7_2 = new String[1];
            v7_2[0] = p29;
            int v3_0 = v3_1.query("apps", new String[] {"app_instance_id", "android_id"}), "app_id=?", v7_2, 0, 0, 0);
            try {
                if (v3_0.moveToFirst()) {
                    try {
                        String v6_0;
                        com.google.android.gms.internal.zzcfs v4_4 = new com.google.android.gms.internal.zzcfs(this.zzboi, p29);
                        v4_4.zzdH(v3_0.getString(0));
                        v4_4.zzdI(v3_0.getString(1));
                        v4_4.zzdJ(v3_0.getString(2));
                        v4_4.zzQ(v3_0.getLong(3));
                        v4_4.zzL(v3_0.getLong(4));
                        v4_4.zzM(v3_0.getLong(5));
                        v4_4.setAppVersion(v3_0.getString(6));
                        v4_4.zzdL(v3_0.getString(7));
                        v4_4.zzO(v3_0.getLong(8));
                        v4_4.zzP(v3_0.getLong(9));
                    } catch (com.google.android.gms.internal.zzcgz v0_19) {
                        this.zzwE().zzyv().zze("Error querying app. appId", com.google.android.gms.internal.zzcgx.zzea(p29), v0_19);
                        if (v3_0 != 0) {
                            v3_0.close();
                        }
                        return 0;
                    }
                    if (!v3_0.isNull(10)) {
                        v6_0 = v3_0.getInt(10);
                    } else {
                        v6_0 = 1;
                    }
                    if (v6_0 == null) {
                        v0_0 = 0;
                    } else {
                    }
                    String v6_8;
                    v4_4.setMeasurementEnabled(v0_0);
                    v4_4.zzT(v3_0.getLong(11));
                    v4_4.zzU(v3_0.getLong(12));
                    v4_4.zzV(v3_0.getLong(13));
                    v4_4.zzW(v3_0.getLong(14));
                    v4_4.zzR(v3_0.getLong(15));
                    v4_4.zzS(v3_0.getLong(16));
                    if (!v3_0.isNull(17)) {
                        v6_8 = ((long) v3_0.getInt(17));
                    } else {
                        v6_8 = -2147483648;
                    }
                    String v6_12;
                    v4_4.zzN(v6_8);
                    v4_4.zzdK(v3_0.getString(18));
                    v4_4.zzY(v3_0.getLong(19));
                    v4_4.zzX(v3_0.getLong(20));
                    v4_4.zzdM(v3_0.getString(21));
                    if (!v3_0.isNull(22)) {
                        v6_12 = v3_0.getLong(22);
                    } else {
                        v6_12 = 0;
                    }
                    v4_4.zzZ(v6_12);
                    v4_4.zzwH();
                    if (v3_0.moveToNext()) {
                        this.zzwE().zzyv().zzj("Got multiple records for app, expected one. appId", com.google.android.gms.internal.zzcgx.zzea(p29));
                    }
                    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.zzcgz v0_20) {
                if (v3_0 != 0) {
                    v3_0.close();
                }
                throw v0_20;
            } catch (com.google.android.gms.internal.zzcgz v0_19) {
            }
        } catch (com.google.android.gms.internal.zzcgz v0_20) {
            v3_0 = 0;
        } catch (com.google.android.gms.internal.zzcgz v0_19) {
            v3_0 = 0;
        } catch (com.google.android.gms.internal.zzcgz v0_20) {
        }
    }

Method com.google.android.gms.internal.zzcfz.zzdQ() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzdQ(String p14)
    {
        com.google.android.gms.common.internal.zzbr.zzcF(p14);
        this.zzjB();
        this.zzkC();
        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", String.valueOf(com.google.android.gms.internal.zzcfy.zzxs()));
            try {
                if (!v2_0.moveToFirst()) {
                    if (v2_0 != 0) {
                        v2_0.close();
                    }
                    return v0_2;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                this.zzwE().zzyv().zze("Error querying user properties. appId", com.google.android.gms.internal.zzcgx.zzea(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_2 = this.zza(v2_0, 3);
                if (v10_2 != null) {
                    boolean v3_4 = new com.google.android.gms.internal.zzckw;
                    v3_4(p14, v6_2, v7_2, v8_1, v10_2);
                    v0_2.add(v3_4);
                } else {
                    this.zzwE().zzyv().zzj("Read invalid user property value, ignoring it. appId", com.google.android.gms.internal.zzcgx.zzea(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.zzcfz.zzc() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzc(String p25, String[] p26)
    {
        this.zzjB();
        this.zzkC();
        android.database.sqlite.SQLiteException v0_4 = new java.util.ArrayList();
        boolean v1_4 = 0;
        try {
            com.google.android.gms.internal.zzcgz v2_3 = this.getWritableDatabase();
            com.google.android.gms.internal.zzcku v6 = "name";
            int v8 = "active";
            String v10 = "trigger_timeout";
            long v12 = "creation_timestamp";
            com.google.android.gms.internal.zzcgl v14 = "triggered_timestamp";
            com.google.android.gms.internal.zzcfy.zzxu();
            com.google.android.gms.internal.zzcgz v2_2 = v2_3.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.zzwE().zzyv().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() < com.google.android.gms.internal.zzcfy.zzxu()) {
                boolean v1_7 = 0;
                String v4_3 = v2_2.getString(0);
                com.google.android.gms.internal.zzcgl v11_1 = v2_2.getString(1);
                com.google.android.gms.internal.zzcku 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.zzcgl v16_2 = ((com.google.android.gms.internal.zzcgl) this.zzwA().zzb(v2_2.getBlob(7), com.google.android.gms.internal.zzcgl.CREATOR));
                com.google.android.gms.internal.zzcgl v17_1 = v2_2.getLong(8);
                com.google.android.gms.internal.zzcgl v19_1 = ((com.google.android.gms.internal.zzcgl) this.zzwA().zzb(v2_2.getBlob(9), com.google.android.gms.internal.zzcgl.CREATOR));
                long v7_4 = v2_2.getLong(10);
                long v20 = v2_2.getLong(11);
                com.google.android.gms.internal.zzcgl v22_1 = ((com.google.android.gms.internal.zzcgl) this.zzwA().zzb(v2_2.getBlob(12), com.google.android.gms.internal.zzcgl.CREATOR));
                com.google.android.gms.internal.zzcku v23 = new com.google.android.gms.internal.zzcku;
                v23(v6_2, v7_4, v9_2, v11_1);
                String v10_1 = new com.google.android.gms.internal.zzcfw;
                boolean v1_0 = v10_1;
                v10_1(v4_3, 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.zzwE().zzyv().zzj("Read more than the max allowed conditional properties, ignoring extra", Integer.valueOf(com.google.android.gms.internal.zzcfy.zzxu()));
        } catch (android.database.sqlite.SQLiteException v0_2) {
            v2_2 = v1_4;
        } catch (android.database.sqlite.SQLiteException v0_0) {
        }
    }

Method com.google.android.gms.internal.rz.zzan() calling method android.database.sqlite.SQLiteDatabase.updateWithOnConflict()


    public final void zzan(long p10)
    {
        this.zzFN();
        com.google.android.gms.internal.abe 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.zzccF.updateWithOnConflict("trackedQueries", v4_1, "active = 1", v6, 5);
        String v10_2 = System.currentTimeMillis();
        if (this.zzccG.zzIX()) {
            com.google.android.gms.internal.abe v0_3 = this.zzccG;
            Object[] v2_3 = new Object[1];
            v2_3[0] = Long.valueOf((v10_2 - v0_0));
            Object[] v11 = new Object[0];
            v0_3.zzc(String.format("Reset active tracked queries in %dms", v2_3), 0, v11);
        }
        return;
    }

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


    protected final boolean zzb(String p17, byte[] p18, String p19)
    {
        this.zzkC();
        void v16_1 = super.zzjB();
        com.google.android.gms.common.internal.zzbr.zzcF(p17);
        com.google.android.gms.internal.zzcgz v0_3 = v16_1.zzc(p17, p18);
        if (v0_3 != null) {
            void v1_1 = this.zza(p17, v0_3);
            v1_1.zzbrX.put(p17, v0_3);
            v1_1.zzbrY.put(p17, p19);
            v1_1.zzbrU.put(p17, com.google.android.gms.internal.zzchr.zza(v0_3));
            com.google.android.gms.internal.zzcgz v4_3 = super.zzwr();
            String v5_2 = v0_3.zzbvt;
            com.google.android.gms.common.internal.zzbr.zzu(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.zzbuO;
                int v10_1 = v9_2.length;
                int v11_2 = 0;
                while (v11_2 < v10_1) {
                    com.google.android.gms.internal.zzcla[] v12_0 = v9_2[v11_2];
                    int v13_1 = com.google.android.gms.measurement.AppMeasurement$Event.zzdG(v12_0.zzbuR);
                    if (v13_1 != 0) {
                        v12_0.zzbuR = v13_1;
                    }
                    com.google.android.gms.internal.zzcla[] v12_1 = v12_0.zzbuS;
                    int v13_2 = v12_1.length;
                    int v14 = 0;
                    while (v14 < v13_2) {
                        com.google.android.gms.internal.zzcla v15 = v12_1[v14];
                        int v3_1 = com.google.android.gms.measurement.AppMeasurement$Param.zzdG(v15.zzbuZ);
                        if (v3_1 != 0) {
                            v15.zzbuZ = v3_1;
                        }
                        v14++;
                    }
                    v11_2++;
                }
                int v3_10 = v8_1.zzbuN;
                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.zzdG(v10_0.zzbvg);
                    if (v11_1 != 0) {
                        v10_0.zzbvg = v11_1;
                    }
                    v9_0++;
                }
                v7_0++;
            }
            v4_3.zzwy().zza(p17, v5_2);
            try {
                v0_3.zzbvt = 0;
                int v3_5 = new byte[v0_3.zzMl()];
                v0_3.zza(com.google.android.gms.internal.ahx.zzc(v3_5, 0, v3_5.length));
            } catch (com.google.android.gms.internal.zzcgz v0_0) {
                super.zzwE().zzyx().zze("Unable to serialize reduced-size config. Storing full config instead. appId", com.google.android.gms.internal.zzcgx.zzea(p17), v0_0);
                v3_5 = p18;
            }
            com.google.android.gms.internal.zzcgz v4_7 = super.zzwy();
            com.google.android.gms.common.internal.zzbr.zzcF(p17);
            v4_7.zzjB();
            v4_7.zzkC();
            com.google.android.gms.internal.zzcgz 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.zzcgz v0_6) {
                v4_7.zzwE().zzyv().zze("Error storing remote config. appId", com.google.android.gms.internal.zzcgx.zzea(p17), v0_6);
                return 1;
            }
            if (((long) v5_6.update("apps", v0_2, "app_id = ?", v8_0)) != 0) {
                return 1;
            } else {
                v4_7.zzwE().zzyv().zzj("Failed to update remote config (got 0). appId", com.google.android.gms.internal.zzcgx.zzea(p17));
                return 1;
            }
        } else {
            return 0;
        }
    }

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


    public final void zza(com.google.android.gms.internal.zzcfs p8)
    {
        com.google.android.gms.common.internal.zzbr.zzu(p8);
        this.zzjB();
        this.zzkC();
        com.google.android.gms.internal.zzcgz v0_5 = new android.content.ContentValues();
        v0_5.put("app_id", p8.zzhk());
        v0_5.put("app_instance_id", p8.getAppInstanceId());
        v0_5.put("gmp_app_id", p8.getGmpAppId());
        v0_5.put("resettable_device_id_hash", p8.zzwI());
        v0_5.put("last_bundle_index", Long.valueOf(p8.zzwR()));
        v0_5.put("last_bundle_start_timestamp", Long.valueOf(p8.zzwK()));
        v0_5.put("last_bundle_end_timestamp", Long.valueOf(p8.zzwL()));
        v0_5.put("app_version", p8.zzjG());
        v0_5.put("app_store", p8.zzwN());
        v0_5.put("gmp_version", Long.valueOf(p8.zzwO()));
        v0_5.put("dev_cert_hash", Long.valueOf(p8.zzwP()));
        v0_5.put("measurement_enabled", Boolean.valueOf(p8.zzwQ()));
        v0_5.put("day", Long.valueOf(p8.zzwV()));
        v0_5.put("daily_public_events_count", Long.valueOf(p8.zzwW()));
        v0_5.put("daily_events_count", Long.valueOf(p8.zzwX()));
        v0_5.put("daily_conversions_count", Long.valueOf(p8.zzwY()));
        v0_5.put("config_fetched_time", Long.valueOf(p8.zzwS()));
        v0_5.put("failed_config_fetch_time", Long.valueOf(p8.zzwT()));
        v0_5.put("app_version_int", Long.valueOf(p8.zzwM()));
        v0_5.put("firebase_instance_id", p8.zzwJ());
        v0_5.put("daily_error_events_count", Long.valueOf(p8.zzxa()));
        v0_5.put("daily_realtime_events_count", Long.valueOf(p8.zzwZ()));
        v0_5.put("health_monitor_sample", p8.zzxb());
        v0_5.put("android_id", Long.valueOf(p8.zzxd()));
        try {
            String v1_7 = this.getWritableDatabase();
            long v4_1 = new String[1];
            v4_1[0] = p8.zzhk();
        } catch (com.google.android.gms.internal.zzcgz v0_3) {
            this.zzwE().zzyv().zze("Error storing app. appId", com.google.android.gms.internal.zzcgx.zzea(p8.zzhk()), v0_3);
            return;
        }
        if ((((long) v1_7.update("apps", v0_5, "app_id = ?", v4_1)) == 0) && (v1_7.insertWithOnConflict("apps", 0, v0_5, 5) == -1)) {
            this.zzwE().zzyv().zzj("Failed to insert/update app (got -1). appId", com.google.android.gms.internal.zzcgx.zzea(p8.zzhk()));
        }
        return;
    }

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


    public final com.google.android.gms.internal.zzcga zza(long p16, String p18, boolean p19, boolean p20, boolean p21, boolean p22, boolean p23)
    {
        com.google.android.gms.common.internal.zzbr.zzcF(p18);
        this.zzjB();
        this.zzkC();
        String v2_1 = new String[1];
        v2_1[0] = p18;
        com.google.android.gms.internal.zzcga v4_1 = new com.google.android.gms.internal.zzcga();
        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.zzbpz = v6_1.getLong(1);
                        v4_1.zzbpy = v6_1.getLong(2);
                        v4_1.zzbpA = v6_1.getLong(3);
                        v4_1.zzbpB = v6_1.getLong(4);
                        v4_1.zzbpC = v6_1.getLong(5);
                    }
                    if (p19) {
                        v4_1.zzbpz = (v4_1.zzbpz + 1);
                    }
                    if (p20) {
                        v4_1.zzbpy = (v4_1.zzbpy + 1);
                    }
                    if (p21) {
                        v4_1.zzbpA = (v4_1.zzbpA + 1);
                    }
                    if (p22) {
                        v4_1.zzbpB = (v4_1.zzbpB + 1);
                    }
                    if (p23) {
                        v4_1.zzbpC = (v4_1.zzbpC + 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.zzbpy));
                    v0_1.put("daily_events_count", Long.valueOf(v4_1.zzbpz));
                    v0_1.put("daily_conversions_count", Long.valueOf(v4_1.zzbpA));
                    v0_1.put("daily_error_events_count", Long.valueOf(v4_1.zzbpB));
                    v0_1.put("daily_realtime_events_count", Long.valueOf(v4_1.zzbpC));
                    v14.update("apps", v0_1, "app_id=?", v2_1);
                    if (v6_1 != 0) {
                        v6_1.close();
                    }
                    return v4_1;
                } else {
                    this.zzwE().zzyx().zzj("Not updating daily counts, app is not known. appId", com.google.android.gms.internal.zzcgx.zzea(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.zzwE().zzyv().zze("Error updating daily counts. appId", com.google.android.gms.internal.zzcgx.zzea(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.zzcfz.zzL() calling method android.database.sqlite.SQLiteDatabase.update()


    protected final long zzL(String p14, String p15)
    {
        com.google.android.gms.common.internal.zzbr.zzcF(p14);
        com.google.android.gms.common.internal.zzbr.zzcF(p15);
        this.zzjB();
        this.zzkC();
        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.zzcgz 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.zzwE().zzyv().zzd("Error inserting column. appId", com.google.android.gms.internal.zzcgx.zzea(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.zzwE().zzyv().zze("Failed to insert column (got -1). appId", com.google.android.gms.internal.zzcgx.zzea(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.zzwE().zzyv().zze("Failed to update column (got 0). appId", com.google.android.gms.internal.zzcgx.zzea(p14), p15);
            v0.endTransaction();
            return -1;
        }
    }

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


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

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


    private final void zzh(long p6, long p8)
    {
        StringBuilder v0_1 = this.zzfi("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_4 = String.valueOf(v8_2.getMessage());
                StringBuilder v0_3 = new StringBuilder((String.valueOf(v8_4).length() + 70));
                v0_3.append("Error setting HIT_FIRST_DISPATCH_TIME for hitId ");
                v0_3.append(p6);
                v0_3.append(": ");
                v0_3.append(v8_4);
                com.google.android.gms.internal.zzcww.zzaT(v0_3.toString());
                this.zzp(p6);
                return;
            }
        } else {
            return;
        }
    }

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


    private final boolean zza(int p18, byte[] p19)
    {
        super.zzwo();
        void v17_1 = super.zzjB();
        Long v2_7 = 0;
        if (!this.zzbqK) {
            android.content.ContentValues v3_1 = new android.content.ContentValues();
            v3_1.put("type", Integer.valueOf(p18));
            v3_1.put("entry", p19);
            com.google.android.gms.internal.zzcfy.zzxM();
            Long v4_5 = 5;
            int v5 = 0;
            int v6 = 5;
            while (v5 < v4_5) {
                int v7 = 0;
                try {
                    int v9 = v17_1.getWritableDatabase();
                    try {
                        if (v9 != 0) {
                            v9.beginTransaction();
                            Long v10_0 = 0;
                            int v12 = v9.rawQuery("select count(1) from messages", 0);
                            if ((v12 != 0) && (v12.moveToFirst())) {
                                v10_0 = v12.getLong(v2_7);
                            }
                            if (v10_0 >= 100000) {
                                super.zzwE().zzyv().log("Data loss, local db full");
                                long v13_2 = ((100000 - v10_0) + 1);
                                String[] v11 = new String[1];
                                v11[v2_7] = Long.toString(v13_2);
                                Long v10_3 = ((long) v9.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v11));
                                if (v10_3 != v13_2) {
                                    super.zzwE().zzyv().zzd("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v13_2), Long.valueOf(v10_3), Long.valueOf((v13_2 - v10_3)));
                                }
                            }
                            v9.insertOrThrow("messages", 0, v3_1);
                            v9.setTransactionSuccessful();
                            v9.endTransaction();
                            if (v12 != 0) {
                                v12.close();
                            }
                            if (v9 != 0) {
                                v9.close();
                            }
                            return 1;
                        } else {
                            this.zzbqK = 1;
                            if (v9 != 0) {
                                v9.close();
                            }
                            return v2_7;
                        }
                        v7 = v9;
                        try {
                            if (android.os.Build$VERSION.SDK_INT < 11) {
                                if (v7 != 0) {
                                    if (v7.inTransaction()) {
                                        v7.endTransaction();
                                    }
                                }
                                super.zzwE().zzyv().zzj("Error writing entry to local database", com.google.android.gms.internal.zzcgz v0_0);
                                this.zzbqK = 1;
                            } else {
                                if (!(v0_0 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                                } else {
                                    android.os.SystemClock.sleep(((long) v6));
                                    v6 += 20;
                                }
                            }
                            if (v12 != 0) {
                                v12.close();
                            }
                            if (v7 == 0) {
                                v5++;
                                v2_7 = 0;
                                v4_5 = 5;
                            } else {
                                v7.close();
                            }
                        } catch (com.google.android.gms.internal.zzcgz v0_2) {
                            v9 = v7;
                            if (v12 != 0) {
                                v12.close();
                            }
                            if (v9 != 0) {
                                v9.close();
                            }
                            throw v0_2;
                        }
                    } catch (com.google.android.gms.internal.zzcgz v0_3) {
                        super.zzwE().zzyv().zzj("Error writing entry to local database", v0_3);
                        this.zzbqK = 1;
                        if (v7 != 0) {
                            v7.close();
                        }
                        if (v9 == 0) {
                        } else {
                            v9.close();
                        }
                    } catch (com.google.android.gms.internal.zzcgz v0_0) {
                        v12 = 0;
                    }
                } catch (com.google.android.gms.internal.zzcgz v0_2) {
                    v9 = 0;
                    v12 = 0;
                } catch (com.google.android.gms.internal.zzcgz v0_3) {
                    v9 = 0;
                } catch (com.google.android.gms.internal.zzcgz v0_0) {
                    v12 = 0;
                } catch (com.google.android.gms.internal.zzcgz v0_2) {
                    v12 = v7;
                }
            }
            super.zzwE().zzyx().log("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

Method com.google.android.gms.internal.zzcfz.zzyi() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final long zzyi()
    {
        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.zzwE().zzyv().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.zzcfz.zzyb() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final String zzyb()
    {
        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.zzwE().zzyv().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.zzcfz.zzaa() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final String zzaa(long p5)
    {
        this.zzjB();
        this.zzkC();
        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.zzwE().zzyB().log("No expired configs for apps with pending events");
                    if (v5_1 != 0) {
                        v5_1.close();
                    }
                    return 0;
                }
            } catch (String v6_1) {
                this.zzwE().zzyv().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.zzcfz.zzb() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


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

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


    private final long zzb(String p4, String[] p5)
    {
        String v1_1 = 0;
        try {
            com.google.android.gms.internal.zzcgz 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.zzwE().zzyv().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.zzcfz.zza() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


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

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


    public final com.google.android.gms.internal.zzcga zza(long p16, String p18, boolean p19, boolean p20, boolean p21, boolean p22, boolean p23)
    {
        com.google.android.gms.common.internal.zzbr.zzcF(p18);
        this.zzjB();
        this.zzkC();
        String v2_1 = new String[1];
        v2_1[0] = p18;
        com.google.android.gms.internal.zzcga v4_1 = new com.google.android.gms.internal.zzcga();
        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.zzbpz = v6_1.getLong(1);
                        v4_1.zzbpy = v6_1.getLong(2);
                        v4_1.zzbpA = v6_1.getLong(3);
                        v4_1.zzbpB = v6_1.getLong(4);
                        v4_1.zzbpC = v6_1.getLong(5);
                    }
                    if (p19) {
                        v4_1.zzbpz = (v4_1.zzbpz + 1);
                    }
                    if (p20) {
                        v4_1.zzbpy = (v4_1.zzbpy + 1);
                    }
                    if (p21) {
                        v4_1.zzbpA = (v4_1.zzbpA + 1);
                    }
                    if (p22) {
                        v4_1.zzbpB = (v4_1.zzbpB + 1);
                    }
                    if (p23) {
                        v4_1.zzbpC = (v4_1.zzbpC + 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.zzbpy));
                    v0_1.put("daily_events_count", Long.valueOf(v4_1.zzbpz));
                    v0_1.put("daily_conversions_count", Long.valueOf(v4_1.zzbpA));
                    v0_1.put("daily_error_events_count", Long.valueOf(v4_1.zzbpB));
                    v0_1.put("daily_realtime_events_count", Long.valueOf(v4_1.zzbpC));
                    v14.update("apps", v0_1, "app_id=?", v2_1);
                    if (v6_1 != 0) {
                        v6_1.close();
                    }
                    return v4_1;
                } else {
                    this.zzwE().zzyx().zzj("Not updating daily counts, app is not known. appId", com.google.android.gms.internal.zzcgx.zzea(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.zzwE().zzyv().zze("Error updating daily counts. appId", com.google.android.gms.internal.zzcgx.zzea(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.zzcfz.zzK() calling method android.database.sqlite.SQLiteDatabase.query()


    final java.util.Map zzK(String p13, String p14)
    {
        this.zzkC();
        this.zzjB();
        com.google.android.gms.common.internal.zzbr.zzcF(p13);
        com.google.android.gms.common.internal.zzbr.zzcF(p14);
        java.util.Map v0_2 = new android.support.v4.util.ArrayMap();
        Integer v1_8 = this.getWritableDatabase();
        try {
            String[] v5_1 = new String[2];
            v5_1[0] = p13;
            v5_1[1] = p14;
            int v14_1 = v1_8.query("property_filters", new String[] {"audience_id", "data"}), "app_id=? AND property_name=?", v5_1, 0, 0, 0);
            try {
                if (!v14_1.moveToFirst()) {
                    java.util.Map v0_3 = java.util.Collections.emptyMap();
                    if (v14_1 != 0) {
                        v14_1.close();
                    }
                    return v0_3;
                }
            } catch (java.util.Map v0_0) {
                this.zzwE().zzyv().zze("Database error querying filters. appId", com.google.android.gms.internal.zzcgx.zzea(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.ahw.zzb(v1_1, 0, v1_1.length);
                com.google.android.gms.internal.zzcgz v2_2 = new com.google.android.gms.internal.zzclc();
                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.zzcfz.zzJ() calling method android.database.sqlite.SQLiteDatabase.query()


    final java.util.Map zzJ(String p13, String p14)
    {
        this.zzkC();
        this.zzjB();
        com.google.android.gms.common.internal.zzbr.zzcF(p13);
        com.google.android.gms.common.internal.zzbr.zzcF(p14);
        java.util.Map v0_2 = new android.support.v4.util.ArrayMap();
        Integer v1_8 = this.getWritableDatabase();
        try {
            String[] v5_1 = new String[2];
            v5_1[0] = p13;
            v5_1[1] = p14;
            int v14_1 = v1_8.query("event_filters", new String[] {"audience_id", "data"}), "app_id=? AND event_name=?", v5_1, 0, 0, 0);
            try {
                if (!v14_1.moveToFirst()) {
                    java.util.Map v0_3 = java.util.Collections.emptyMap();
                    if (v14_1 != 0) {
                        v14_1.close();
                    }
                    return v0_3;
                }
            } catch (java.util.Map v0_0) {
                this.zzwE().zzyv().zze("Database error querying filters. appId", com.google.android.gms.internal.zzcgx.zzea(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.ahw.zzb(v1_1, 0, v1_1.length);
                com.google.android.gms.internal.zzcgz v2_2 = new com.google.android.gms.internal.zzckz();
                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.zzcfz.zzH() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.zzcfw zzH(String p30, String p31)
    {
        com.google.android.gms.common.internal.zzbr.zzcF(p30);
        com.google.android.gms.common.internal.zzbr.zzcF(p31);
        this.zzjB();
        this.zzkC();
        try {
            int v9_1 = this.getWritableDatabase();
            String[] v13 = "active";
            String v15 = "trigger_timeout";
            com.google.android.gms.internal.zzcku 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.zzcfw v0_1) {
                        this.zzwE().zzyv().zzd("Error querying conditional property", com.google.android.gms.internal.zzcgx.zzea(p30), this.zzwz().zzdZ(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.zzcgl v22_1 = ((com.google.android.gms.internal.zzcgl) this.zzwA().zzb(v9_0.getBlob(5), com.google.android.gms.internal.zzcgl.CREATOR));
                    long v18 = v9_0.getLong(6);
                    com.google.android.gms.internal.zzcgl v25_1 = ((com.google.android.gms.internal.zzcgl) this.zzwA().zzb(v9_0.getBlob(7), com.google.android.gms.internal.zzcgl.CREATOR));
                    Object v3_3 = v9_0.getLong(8);
                    long v26 = v9_0.getLong(9);
                    com.google.android.gms.internal.zzcgl v28_1 = ((com.google.android.gms.internal.zzcgl) this.zzwA().zzb(v9_0.getBlob(10), com.google.android.gms.internal.zzcgl.CREATOR));
                    v17 = new com.google.android.gms.internal.zzcku;
                    v17(p31, v3_3, v5, v16_1);
                    com.google.android.gms.internal.zzcfw v0_0 = new com.google.android.gms.internal.zzcfw;
                    v0_0(p30, v16_1, v17, v18, v20, v21_1, v22_1, v23, v25_1, v26, v28_1);
                    if (v9_0.moveToNext()) {
                        this.zzwE().zzyv().zze("Got multiple records for conditional property, expected one", com.google.android.gms.internal.zzcgx.zzea(p30), this.zzwz().zzdZ(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.zzcfw v0_2) {
                if (v9_0 != 0) {
                    v9_0.close();
                }
                throw v0_2;
            } catch (com.google.android.gms.internal.zzcfw v0_1) {
            }
        } catch (com.google.android.gms.internal.zzcfw v0_2) {
            v9_0 = 0;
        } catch (com.google.android.gms.internal.zzcfw v0_1) {
            v9_0 = 0;
        } catch (com.google.android.gms.internal.zzcfw v0_2) {
        }
    }

Method com.google.android.gms.internal.zzcfz.zzG() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.zzckw zzG(String p19, String p20)
    {
        com.google.android.gms.common.internal.zzbr.zzcF(p19);
        com.google.android.gms.common.internal.zzbr.zzcF(p20);
        this.zzjB();
        this.zzkC();
        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.zzckw;
                        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.zzwE().zzyv().zzd("Error querying user property. appId", com.google.android.gms.internal.zzcgx.zzea(p19), this.zzwz().zzdZ(p20), v0_1);
                        if (v10_0 != 0) {
                            v10_0.close();
                        }
                        return 0;
                    }
                    if (v10_0.moveToNext()) {
                        this.zzwE().zzyv().zzj("Got multiple records for user property, expected one. appId", com.google.android.gms.internal.zzcgx.zzea(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.zzcfz.zzE() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.zzcgh zzE(String p15, String p16)
    {
        com.google.android.gms.common.internal.zzbr.zzcF(p15);
        com.google.android.gms.common.internal.zzbr.zzcF(p16);
        this.zzjB();
        this.zzkC();
        try {
            com.google.android.gms.internal.zzcgz v1_7 = this.getWritableDatabase();
            String[] v5 = new String[2];
            v5[0] = p15;
            v5[1] = p16;
            int v13 = v1_7.query("events", new String[] {"lifetime_count", "current_bundle_count", "last_fire_timestamp"}), "app_id=? and name=?", v5, 0, 0, 0);
            try {
                if (v13.moveToFirst()) {
                    com.google.android.gms.internal.zzcgh v0_3 = new com.google.android.gms.internal.zzcgh;
                    v0_3(p15, p16, v13.getLong(0), v13.getLong(1), v13.getLong(2));
                    if (v13.moveToNext()) {
                        this.zzwE().zzyv().zzj("Got multiple records for event aggregates, expected one. appId", com.google.android.gms.internal.zzcgx.zzea(p15));
                    }
                    if (v13 != 0) {
                        v13.close();
                    }
                    return v0_3;
                } else {
                    if (v13 != 0) {
                        v13.close();
                    }
                    return 0;
                }
            } catch (com.google.android.gms.internal.zzcgh v0_1) {
                this.zzwE().zzyv().zzd("Error querying events. appId", com.google.android.gms.internal.zzcgx.zzea(p15), this.zzwz().zzdX(p16), v0_1);
                if (v13 != 0) {
                    v13.close();
                }
                return 0;
            }
        } catch (com.google.android.gms.internal.zzcgh v0_2) {
            v13 = 0;
            if (v13 != 0) {
                v13.close();
            }
            throw v0_2;
        } catch (com.google.android.gms.internal.zzcgh v0_1) {
            v13 = 0;
        } catch (com.google.android.gms.internal.zzcgh v0_2) {
        }
    }

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


    private static boolean zza(com.google.android.gms.internal.zzcgx 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.zzyx().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.zzaoe.zzq() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzq(long p12)
    {
        this.zzkC();
        com.google.android.gms.analytics.zzl.zzjB();
        Throwable v0_1 = this.getWritableDatabase();
        try {
            String v13_3 = ((Integer) com.google.android.gms.internal.zzape.zzahn.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.zzbu(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.zzany;
                            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.zzbr("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.zzaoe.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.zzbr.zzaf(v2_3);
        com.google.android.gms.analytics.zzl.zzjB();
        this.zzkC();
        com.google.android.gms.internal.zzapj 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.zzapj;
                    v2_6(this, this.zzbt(v14_1.getString(2)), v14_1.getLong(1), com.google.android.gms.internal.zzaqe.zzbF(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.zzaoe.zzn() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List zzn(long p14)
    {
        com.google.android.gms.analytics.zzl.zzjB();
        this.zzkC();
        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.tagmanager.zzeb.zzbD() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List zzbD(int p17)
    {
        boolean v1_1 = new java.util.ArrayList();
        int v0_13 = this.zzfi("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.zzdi.zzaT(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)).zzBk());
                                            com.google.android.gms.tagmanager.zzdi.zzaT(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)).zzfn(v11_0.getString(1));
                                        }
                                        v0_3++;
                                    } while(v11_0.moveToNext());
                                }
                            } catch (int v0_0) {
                                int v0_5 = String.valueOf(v0_0.getMessage());
                                if (v0_5.length() == 0) {
                                    int v0_7 = new String("Error in peekHits fetching hit url: ");
                                } else {
                                    v0_7 = "Error in peekHits fetching hit url: ".concat(v0_5);
                                }
                                com.google.android.gms.tagmanager.zzdi.zzaT(v0_7);
                                int v0_9 = new java.util.ArrayList();
                                java.util.ArrayList v12_0 = ((java.util.ArrayList) v12_2);
                                boolean v1_12 = v12_0.size();
                                int v3_4 = 0;
                            }
                            if (v11_0 != null) {
                                v11_0.close();
                            }
                            return v12_2;
                        } catch (int v0_1) {
                            v11_0 = v15_0;
                            if (v11_0 != null) {
                                v11_0.close();
                            }
                            throw v0_1;
                        } catch (int v0_0) {
                            v11_0 = v15_0;
                        }
                    } catch (int v0_1) {
                    } catch (int v0_0) {
                    } catch (int v0_1) {
                    }
                } catch (int v0_12) {
                    v12_3 = v11_3;
                } catch (int v0_11) {
                    v15_2 = v11_3;
                }
            } catch (int v0_12) {
            } catch (int v0_11) {
            }
        } else {
            return v1_1;
        }
    }

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


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

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


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

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


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

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


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

Method com.google.android.gms.internal.zzcwz.zzbD() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List zzbD(int p25)
    {
        int v1_1 = new java.util.ArrayList();
        com.google.android.gms.internal.zzcwi v0_33 = this.zzfi("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.zzcwi;
                                    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.zzcwi v0_32) {
                                android.database.Cursor v23 = v11_3;
                                if (v23 != null) {
                                    v23.close();
                                }
                                throw v0_32;
                            } catch (com.google.android.gms.internal.zzcwi v0_31) {
                                v1_1 = v10_6;
                                int v12_1 = v11_3;
                                try {
                                    com.google.android.gms.internal.zzcwi v0_35 = String.valueOf(v0_31.getMessage());
                                } catch (com.google.android.gms.internal.zzcwi v0_32) {
                                    v23 = v12_1;
                                }
                                if (v0_35.length() == 0) {
                                    com.google.android.gms.internal.zzcwi 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.zzcww.zzaT(v0_37);
                                if (v12_1 != 0) {
                                    v12_1.close();
                                }
                                return v1_1;
                            }
                            if (!v11_3.moveToNext()) {
                            }
                        }
                    } catch (com.google.android.gms.internal.zzcwi 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.zzcwi) v1_3.get(v3_2)).zzBk());
                                            com.google.android.gms.internal.zzcww.zzaT(String.format("HitString for hitId %d too large. Hit will be deleted.", v4_0));
                                            v3_2++;
                                        } else {
                                            ((com.google.android.gms.internal.zzcwi) v1_3.get(v3_2)).zzfn(v11_0.getString(1));
                                            ((com.google.android.gms.internal.zzcwi) v1_3.get(v3_2)).zzfF(v11_0.getString(2));
                                            ((com.google.android.gms.internal.zzcwi) v1_3.get(v3_2)).zzfG(v11_0.getString(4));
                                            int v5_5;
                                            com.google.android.gms.internal.zzcwi 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.zzcwi 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.zzcwi) v1_3.get(v3_2)).zzu(v5_5);
                                        }
                                    } while(v11_0.moveToNext());
                                }
                            } catch (com.google.android.gms.internal.zzcwi v0_0) {
                                com.google.android.gms.internal.zzcwi v0_25 = String.valueOf(v0_0.getMessage());
                                if (v0_25.length() == 0) {
                                    com.google.android.gms.internal.zzcwi 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.zzcww.zzaT(v0_27);
                                com.google.android.gms.internal.zzcwi 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.zzcwi v0_1) {
                            v11_0 = v16_2;
                            if (v11_0 != null) {
                                v11_0.close();
                            }
                            throw v0_1;
                        } catch (com.google.android.gms.internal.zzcwi v0_0) {
                            v11_0 = v16_2;
                        }
                    } catch (com.google.android.gms.internal.zzcwi v0_1) {
                    } catch (com.google.android.gms.internal.zzcwi v0_0) {
                        v1_3 = v10_0;
                    } catch (com.google.android.gms.internal.zzcwi v0_1) {
                    }
                } catch (com.google.android.gms.internal.zzcwi v0_32) {
                    v23 = v11_3;
                } catch (com.google.android.gms.internal.zzcwi v0_31) {
                }
            } catch (com.google.android.gms.internal.zzcwi v0_32) {
                v23 = 0;
            } catch (com.google.android.gms.internal.zzcwi v0_31) {
                v12_1 = 0;
            }
        } else {
            return v1_1;
        }
    }

Method com.google.android.gms.internal.zzcwz.zzbC() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List zzbC(int p15)
    {
        Throwable v0_1 = new java.util.ArrayList();
        if (p15 > null) {
            String v2_1 = this.zzfi("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.zzcww.zzaT(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.zzcww.zzaT("Invalid maxHits specified. Skipping");
            return v0_1;
        }
    }

Method com.google.android.gms.internal.zzcwz.zzBy() calling method android.database.sqlite.SQLiteDatabase.query()


    private final int zzBy()
    {
        String v1_1 = this.zzfi("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.zzcww.zzaT(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.rz.zze() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.Set zze(java.util.Set p15)
    {
        long v11 = System.currentTimeMillis();
        android.database.Cursor v0_4 = String.valueOf("id IN (");
        java.util.HashSet v1_0 = String.valueOf(com.google.android.gms.internal.rz.zzj(p15));
        Object[] v3_3 = new StringBuilder(((String.valueOf(v0_4).length() + 1) + String.valueOf(v1_0).length()));
        v3_3.append(v0_4);
        v3_3.append(v1_0);
        v3_3.append(")");
        android.database.Cursor v0_2 = this.zzccF.query(1, "trackedKeys", new String[] {"key"}), v3_3.toString(), 0, 0, 0, 0, 0);
        java.util.HashSet v1_3 = new java.util.HashSet();
        try {
            while (v0_2.moveToNext()) {
                v1_3.add(com.google.android.gms.internal.abi.zzhs(v0_2.getString(0)));
            }
        } catch (String v15_4) {
            v0_2.close();
            throw v15_4;
        }
        int v4_2 = (System.currentTimeMillis() - v11);
        if (this.zzccG.zzIX()) {
            com.google.android.gms.internal.abe v2_8 = this.zzccG;
            Object[] v7_2 = new Object[3];
            v7_2[0] = Integer.valueOf(v1_3.size());
            v7_2[1] = p15.toString();
            v7_2[2] = Long.valueOf(v4_2);
            Object[] v3_6 = new Object[0];
            v2_8.zzc(String.format("Loaded %d tracked queries keys for tracked queries %s in %dms", v7_2), 0, v3_6);
        }
        v0_2.close();
        return v1_3;
    }

Method com.google.android.gms.internal.rz.zzFL() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzFL()
    {
        android.database.Cursor v4 = "queryParams";
        com.google.android.gms.internal.aam v6 = "complete";
        java.io.IOException v2_1 = System.currentTimeMillis();
        v4 = this.zzccF.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.aao v12_2 = new com.google.android.gms.internal.aao(new com.google.android.gms.internal.vn(v4.getString(1)), com.google.android.gms.internal.aam.zzF(com.google.android.gms.internal.adh.zzhu(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.zj v5_10 = new com.google.android.gms.internal.zj;
                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.zj v9_2 = (System.currentTimeMillis() - v2_1);
        if (this.zzccG.zzIX()) {
            java.io.IOException v2_4 = this.zzccG;
            com.google.android.gms.internal.zj 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.zj v5_2 = new Object[0];
            v2_4.zzc(String.format("Loaded %d tracked queries in %dms", v5_1), 0, v5_2);
        }
        v4.close();
        return v0_1;
    }

Method com.google.android.gms.internal.rz.zzFJ() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzFJ()
    {
        IllegalStateException v0_7 = System.currentTimeMillis();
        android.database.Cursor v2_0 = this.zzccF.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.yi v5_12;
                long v9_1 = v2_0.getLong(0);
                com.google.android.gms.internal.vn v11_2 = new com.google.android.gms.internal.vn(v2_0.getString(1));
                int v4_9 = v2_0.getString(2);
                if (!v2_0.isNull(3)) {
                    com.google.android.gms.internal.yi 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.rz.zzR(v5_11);
                } else {
                    v5_12 = v2_0.getBlob(4);
                }
                int v4_2;
                com.google.android.gms.internal.yi v5_13 = com.google.android.gms.internal.adh.zzhv(new String(v5_12, com.google.android.gms.internal.rz.zzayv));
                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.yi(v9_1, v11_2, com.google.android.gms.internal.uw.zzD(((java.util.Map) v5_13)));
                    }
                } else {
                    v4_2 = new com.google.android.gms.internal.yi;
                    v4_2(v9_1, v11_2, com.google.android.gms.internal.ach.zza(v5_13, com.google.android.gms.internal.abw.zzJr()), 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.zzccG.zzIX()) {
            IllegalStateException v0_6 = this.zzccG;
            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.zzc(String.format("Loaded %d writes in %dms", v4_5), 0, v4_7);
        }
        v2_0.close();
        return v3_4;
    }

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


    private final android.database.Cursor zza(com.google.android.gms.internal.vn p12, String[] p13)
    {
        String v0 = com.google.android.gms.internal.rz.zzc(p12);
        String v1 = com.google.android.gms.internal.rz.zzhb(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.rz.zzc(v3_0);
            v3_0 = v3_0.zzHv();
            v4_0++;
        }
        String v6;
        v2_0.append("path");
        v2_0.append(" = ?)");
        v7[v4_0] = com.google.android.gms.internal.rz.zzc(com.google.android.gms.internal.vn.zzHq());
        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.zzccF.query("serverCache", p13, v6, v7, 0, 0, "path");
    }

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


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

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


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

Couldn't retrieve source code

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


    private final boolean zzg(String p27, long p28)
    {
        this.zzwy().beginTransaction();
        try {
            String v3_0 = 0;
            com.google.android.gms.internal.zzcfz v2_14 = new com.google.android.gms.internal.zzchx$zza(this, 0);
            Object v4_20 = this.zzwy();
            android.database.sqlite.SQLiteException v5_11 = this.zzbsW;
            com.google.android.gms.common.internal.zzbr.zzu(v2_14);
            v4_20.zzjB();
            v4_20.zzkC();
            int v10_0 = 1;
            int v11_0 = 0;
            try {
                int v22;
                String v21_1;
                int v15_2 = v4_20.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        int v12_19;
                        if (v5_11 == -1) {
                            v3_0 = 0;
                            v12_19 = new String[] {0});
                        } else {
                            String v3_3 = new String[2];
                            v3_3[0] = 0;
                            v3_3[1] = String.valueOf(v5_11);
                            v12_19 = v3_3;
                            v3_0 = 0;
                        }
                        com.google.android.gms.internal.zzclj v13_9;
                        if (v5_11 == -1) {
                            v13_9 = "";
                        } else {
                            v13_9 = " and rowid <= ?";
                        }
                        String v3_10 = new StringBuilder((String.valueOf(v13_9).length() + 84));
                        v3_10.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v3_10.append(v13_9);
                        v3_10.append(" order by rowid limit 1;");
                        v3_0 = v15_2.rawQuery(v3_10.toString(), v12_19);
                        if (v3_0.moveToFirst()) {
                            com.google.android.gms.internal.zzclj v13_21 = v3_0.getString(0);
                            v3_0.close();
                            v22 = v3_0;
                            v21_1 = v13_21;
                            v3_0 = 0;
                            try {
                                int v12_3 = new String[2];
                                v12_3[0] = v3_0;
                                v12_3[1] = v21_1;
                                android.database.sqlite.SQLiteDatabase v24 = v15_2;
                                int v15_1 = v15_2.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_3, 0, 0, "rowid", "2");
                                try {
                                    if (v15_1.moveToFirst()) {
                                        int v12_6 = v15_1.getBlob(0);
                                        int v12_7 = com.google.android.gms.internal.ahw.zzb(v12_6, 0, v12_6.length);
                                        com.google.android.gms.internal.zzclj v13_4 = new com.google.android.gms.internal.zzcll();
                                        try {
                                            v13_4.zza(v12_7);
                                        } catch (java.io.IOException v0_5) {
                                            Object v9_0 = v15_1;
                                            v4_20.zzwE().zzyv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzcgx.zzea(v3_0), v0_5);
                                            if (v9_0 == null) {
                                                String v3_7;
                                                if (v2_14.zztK == null) {
                                                    v3_7 = 1;
                                                } else {
                                                    if (!v2_14.zztK.isEmpty()) {
                                                        v3_7 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_7 != null) {
                                                    this.zzwy().setTransactionSuccessful();
                                                    this.zzwy().endTransaction();
                                                    return 0;
                                                } else {
                                                    String v3_8 = v2_14.zzbtd;
                                                    Object v4_4 = new com.google.android.gms.internal.zzcli[v2_14.zztK.size()];
                                                    v3_8.zzbvI = v4_4;
                                                    Object v4_5 = 0;
                                                    android.database.sqlite.SQLiteException v5_7 = 0;
                                                    com.google.android.gms.internal.zzcgz v6_10 = 0;
                                                    while (v4_5 < v2_14.zztK.size()) {
                                                        if (!this.zzwB().zzN(v2_14.zzbtd.zzaK, ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name)) {
                                                            Object v9_28 = this.zzwB().zzO(v2_14.zzbtd.zzaK, ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name);
                                                            if (v9_28 != null) {
                                                                if (((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA == null) {
                                                                    com.google.android.gms.internal.zzclj v13_20 = new com.google.android.gms.internal.zzclj[v11_0];
                                                                    ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA = v13_20;
                                                                }
                                                                int v12_44 = ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA;
                                                                com.google.android.gms.internal.zzclj v13_22 = v12_44.length;
                                                                Object v14_13 = 0;
                                                                int v15_5 = 0;
                                                                int v16_3 = 0;
                                                                while (v14_13 < v13_22) {
                                                                    com.google.android.gms.internal.zzcgz v7_68 = v12_44[v14_13];
                                                                    if (!"_c".equals(v7_68.name)) {
                                                                        if ("_r".equals(v7_68.name)) {
                                                                            v7_68.zzbvE = Long.valueOf(1);
                                                                            v16_3 = 1;
                                                                        }
                                                                    } else {
                                                                        v7_68.zzbvE = Long.valueOf(1);
                                                                        v15_5 = 1;
                                                                    }
                                                                    v14_13++;
                                                                    int v11 = 0;
                                                                }
                                                                if ((v15_5 == 0) && (v9_28 != null)) {
                                                                    this.zzwE().zzyB().zzj("Marking event as conversion", this.zzwz().zzdX(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name));
                                                                    com.google.android.gms.internal.zzcgz v7_34 = ((com.google.android.gms.internal.zzclj[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA, (((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA.length + v10_0)));
                                                                    String v8_15 = new com.google.android.gms.internal.zzclj();
                                                                    v8_15.name = "_c";
                                                                    v8_15.zzbvE = Long.valueOf(1);
                                                                    v7_34[(v7_34.length - v10_0)] = v8_15;
                                                                    ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA = v7_34;
                                                                }
                                                                if (v16_3 == 0) {
                                                                    this.zzwE().zzyB().zzj("Marking event as real-time", this.zzwz().zzdX(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name));
                                                                    com.google.android.gms.internal.zzcgz v7_42 = ((com.google.android.gms.internal.zzclj[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA, (((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA.length + v10_0)));
                                                                    String v8_27 = new com.google.android.gms.internal.zzclj();
                                                                    v8_27.name = "_r";
                                                                    v8_27.zzbvE = Long.valueOf(1);
                                                                    v7_42[(v7_42.length - v10_0)] = v8_27;
                                                                    ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA = v7_42;
                                                                }
                                                                if (this.zzwy().zza(this.zzyX(), v2_14.zzbtd.zzaK, 0, 0, 0, 0, 1).zzbpC <= ((long) this.zzbsr.zzdN(v2_14.zzbtd.zzaK))) {
                                                                    v5_7 = 1;
                                                                } else {
                                                                    com.google.android.gms.internal.zzcgz v7_48 = ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5));
                                                                    String v8_31 = 0;
                                                                    while (v8_31 < v7_48.zzbvA.length) {
                                                                        if (!"_r".equals(v7_48.zzbvA[v8_31].name)) {
                                                                            v8_31++;
                                                                        } else {
                                                                            int v11_30 = new com.google.android.gms.internal.zzclj[(v7_48.zzbvA.length - v10_0)];
                                                                            if (v8_31 > null) {
                                                                                System.arraycopy(v7_48.zzbvA, 0, v11_30, 0, v8_31);
                                                                            }
                                                                            if (v8_31 < v11_30.length) {
                                                                                System.arraycopy(v7_48.zzbvA, (v8_31 + 1), v11_30, v8_31, (v11_30.length - v8_31));
                                                                            }
                                                                            v7_48.zzbvA = v11_30;
                                                                            break;
                                                                        }
                                                                    }
                                                                }
                                                                if ((com.google.android.gms.internal.zzckx.zzep(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name)) && ((v9_28 != null) && (this.zzwy().zza(this.zzyX(), v2_14.zzbtd.zzaK, 0, 0, 1, 0, 0).zzbpA > ((long) this.zzbsr.zzb(v2_14.zzbtd.zzaK, com.google.android.gms.internal.zzcgn.zzbqm))))) {
                                                                    this.zzwE().zzyx().zzj("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK));
                                                                    com.google.android.gms.internal.zzcgz v7_61 = ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5));
                                                                    String v8_33 = v7_61.zzbvA;
                                                                    int v11_35 = 0;
                                                                    int v12_66 = 0;
                                                                    com.google.android.gms.internal.zzclj v13_30 = 0;
                                                                    while (v11_35 < v8_33.length) {
                                                                        Object v14_19 = v8_33[v11_35];
                                                                        if (!"_c".equals(v14_19.name)) {
                                                                            if ("_err".equals(v14_19.name)) {
                                                                                v12_66 = 1;
                                                                            }
                                                                        } else {
                                                                            v13_30 = v14_19;
                                                                        }
                                                                        v11_35++;
                                                                    }
                                                                    if ((v12_66 == 0) || (v13_30 == null)) {
                                                                        if (v13_30 == null) {
                                                                            this.zzwE().zzyv().zzj("Did not find conversion parameter. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK));
                                                                        } else {
                                                                            v13_30.name = "_err";
                                                                            v13_30.zzbvE = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        String v8_38 = new com.google.android.gms.internal.zzclj[(v7_61.zzbvA.length - 1)];
                                                                        Object v9_40 = v7_61.zzbvA;
                                                                        int v10_1 = v9_40.length;
                                                                        int v11_36 = 0;
                                                                        int v12_67 = 0;
                                                                        while (v11_36 < v10_1) {
                                                                            Object v14_18 = v9_40[v11_36];
                                                                            if (v14_18 != v13_30) {
                                                                                int v15_8 = (v12_67 + 1);
                                                                                v8_38[v12_67] = v14_18;
                                                                                v12_67 = v15_8;
                                                                            }
                                                                            v11_36++;
                                                                        }
                                                                        v7_61.zzbvA = v8_38;
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzwA();
                                                                if (com.google.android.gms.internal.zzckx.zzeD(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name)) {
                                                                }
                                                            }
                                                            String v8_39 = (v6_10 + 1);
                                                            v3_8.zzbvI[v6_10] = ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5));
                                                            v6_10 = v8_39;
                                                        } else {
                                                            Object v9_50;
                                                            this.zzwE().zzyx().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK), this.zzwz().zzdX(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name));
                                                            if (this.zzwA().zzeB(v2_14.zzbtd.zzaK)) {
                                                                v9_50 = 1;
                                                            } else {
                                                                if (!this.zzwA().zzeC(v2_14.zzbtd.zzaK)) {
                                                                    v9_50 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v9_50 == null) && (!"_err".equals(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name))) {
                                                                this.zzwA().zza(v2_14.zzbtd.zzaK, 11, "_ev", ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name, 0);
                                                            }
                                                        }
                                                        v4_5++;
                                                        v10_0 = 1;
                                                        v11_0 = 0;
                                                    }
                                                    if (v6_10 < v2_14.zztK.size()) {
                                                        v3_8.zzbvI = ((com.google.android.gms.internal.zzcli[]) java.util.Arrays.copyOf(v3_8.zzbvI, v6_10));
                                                    }
                                                    v3_8.zzbwb = this.zza(v2_14.zzbtd.zzaK, v2_14.zzbtd.zzbvJ, v3_8.zzbvI);
                                                    v3_8.zzbvL = Long.valueOf(nan);
                                                    v3_8.zzbvM = Long.valueOf(-0.0);
                                                    Object v4_16 = 0;
                                                    while (v4_16 < v3_8.zzbvI.length) {
                                                        com.google.android.gms.internal.zzcgz v6_36 = v3_8.zzbvI[v4_16];
                                                        if (v6_36.zzbvB.longValue() < v3_8.zzbvL.longValue()) {
                                                            v3_8.zzbvL = v6_36.zzbvB;
                                                        }
                                                        if (v6_36.zzbvB.longValue() > v3_8.zzbvM.longValue()) {
                                                            v3_8.zzbvM = v6_36.zzbvB;
                                                        }
                                                        v4_16++;
                                                    }
                                                    Object v4_18 = v2_14.zzbtd.zzaK;
                                                    com.google.android.gms.internal.zzcgz v6_18 = this.zzwy().zzdR(v4_18);
                                                    if (v6_18 != null) {
                                                        if (v3_8.zzbvI.length > 0) {
                                                            int v11_2;
                                                            com.google.android.gms.internal.zzcgz v7_4 = v6_18.zzwL();
                                                            if (v7_4 == 0) {
                                                                v11_2 = 0;
                                                            } else {
                                                                v11_2 = Long.valueOf(v7_4);
                                                            }
                                                            v3_8.zzbvO = v11_2;
                                                            int v11_3 = v6_18.zzwK();
                                                            if (v11_3 != 0) {
                                                                v7_4 = v11_3;
                                                            } else {
                                                            }
                                                            com.google.android.gms.internal.zzcgz v7_5;
                                                            if (v7_4 == 0) {
                                                                v7_5 = 0;
                                                            } else {
                                                                v7_5 = Long.valueOf(v7_4);
                                                            }
                                                            v3_8.zzbvN = v7_5;
                                                            v6_18.zzwU();
                                                            v3_8.zzbvZ = Integer.valueOf(((int) v6_18.zzwR()));
                                                            v6_18.zzL(v3_8.zzbvL.longValue());
                                                            v6_18.zzM(v3_8.zzbvM.longValue());
                                                            v3_8.zzboY = v6_18.zzxc();
                                                            this.zzwy().zza(v6_18);
                                                        }
                                                    } else {
                                                        this.zzwE().zzyv().zzj("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK));
                                                    }
                                                    if (v3_8.zzbvI.length > 0) {
                                                        com.google.android.gms.internal.zzcgz v6_25;
                                                        com.google.android.gms.internal.zzcfy.zzxD();
                                                        com.google.android.gms.internal.zzcgz v6_24 = this.zzwB().zzei(v2_14.zzbtd.zzaK);
                                                        if (v6_24 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v2_14.zzbtd.zzboU)) {
                                                                this.zzwE().zzyx().zzj("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK));
                                                            } else {
                                                                v6_25 = Long.valueOf(-1);
                                                                v3_8.zzbwf = v6_25;
                                                            }
                                                        } else {
                                                            if (v6_24.zzbvp != null) {
                                                                v6_25 = v6_24.zzbvp;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzwy().zza(v3_8, v5_7);
                                                    }
                                                    this.zzwy().zzG(v2_14.zzbte);
                                                    com.google.android.gms.internal.zzcfz v2_7 = this.zzwy();
                                                    android.database.sqlite.SQLiteException v5_9 = v2_7.getWritableDatabase();
                                                    try {
                                                        com.google.android.gms.internal.zzcgz v7_21 = new String[2];
                                                        v7_21[0] = v4_18;
                                                        try {
                                                            v7_21[1] = v4_18;
                                                            v5_9.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v7_21);
                                                        } catch (java.io.IOException v0_10) {
                                                            v2_7.zzwE().zzyv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.zzcgx.zzea(v4_18), v0_10);
                                                        }
                                                        int v25;
                                                        this.zzwy().setTransactionSuccessful();
                                                        if (v3_8.zzbvI.length <= 0) {
                                                            v25 = 0;
                                                        } else {
                                                            v25 = 1;
                                                        }
                                                        this.zzwy().endTransaction();
                                                        return v25;
                                                    } catch (java.io.IOException v0_10) {
                                                    }
                                                }
                                            } else {
                                                v9_0.close();
                                            }
                                        } catch (java.io.IOException v0_2) {
                                        }
                                        if (v15_1.moveToNext()) {
                                            v4_20.zzwE().zzyx().zzj("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzcgx.zzea(v3_0));
                                        }
                                        int v16_2;
                                        android.database.sqlite.SQLiteException v5_1;
                                        v15_1.close();
                                        v2_14.zzb(v13_4);
                                        if (v5_11 == -1) {
                                            v5_1 = "app_id = ? and metadata_fingerprint = ?";
                                            Object v9_4 = new String[2];
                                            v9_4[0] = v3_0;
                                            v9_4[1] = v21_1;
                                            v16_2 = v9_4;
                                        } else {
                                            int v12_13 = new String[3];
                                            v12_13[0] = v3_0;
                                            v12_13[1] = v21_1;
                                            v12_13[2] = String.valueOf(v5_11);
                                            v5_1 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_2 = v12_13;
                                        }
                                        v9_0 = v15_1;
                                        android.database.sqlite.SQLiteException v5_3 = v24.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_1, v16_2, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_3.moveToFirst()) {
                                                do {
                                                    int v12_16 = v5_3.getLong(0);
                                                    Object v9_8 = v5_3.getBlob(3);
                                                    Object v9_9 = com.google.android.gms.internal.ahw.zzb(v9_8, 0, v9_8.length);
                                                    Object v14_7 = new com.google.android.gms.internal.zzcli();
                                                    v14_7.zza(v9_9);
                                                    v14_7.name = v5_3.getString(1);
                                                    v14_7.zzbvB = Long.valueOf(v5_3.getLong(2));
                                                    if (v2_14.zza(v12_16, v14_7)) {
                                                    } else {
                                                        if (v5_3 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_3.moveToNext());
                                                if (v5_3 == null) {
                                                }
                                            } else {
                                                v4_20.zzwE().zzyx().zzj("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzcgx.zzea(v3_0));
                                                if (v5_3 == null) {
                                                }
                                            }
                                        } catch (java.io.IOException v0_8) {
                                            com.google.android.gms.internal.zzcfz v2_0 = v0_8;
                                            v9_0 = v5_3;
                                            if (v9_0 != null) {
                                                v9_0.close();
                                            }
                                            throw v2_0;
                                        } catch (java.io.IOException v0_2) {
                                            String v21_0 = v3_0;
                                            v9_0 = v5_3;
                                            String v3_1 = v0_2;
                                            v4_20.zzwE().zzyv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzcgx.zzea(v21_0), v3_1);
                                            if (v9_0 == null) {
                                            }
                                        }
                                        v5_3.close();
                                    } else {
                                        v4_20.zzwE().zzyv().zzj("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzcgx.zzea(v3_0));
                                        if (v15_1 == 0) {
                                        } else {
                                            v15_1.close();
                                        }
                                    }
                                } catch (java.io.IOException v0_6) {
                                    v9_0 = v15_1;
                                    v2_0 = v0_6;
                                } catch (java.io.IOException v0_2) {
                                    v9_0 = v15_1;
                                } catch (java.io.IOException v0_9) {
                                    v2_0 = v0_9;
                                    v9_0 = v15_1;
                                } catch (java.io.IOException v0_2) {
                                    v21_0 = v3_0;
                                    v9_0 = v15_1;
                                }
                                v21_0 = v3_0;
                            } catch (java.io.IOException v0_4) {
                                v2_0 = v0_4;
                                v9_0 = v22;
                            } catch (java.io.IOException v0_2) {
                                v21_0 = v3_0;
                                v9_0 = v22;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                            }
                        }
                    } else {
                        int v12_54;
                        if (v5_11 == -1) {
                            v12_54 = new String[1];
                            v12_54[0] = String.valueOf(p28);
                        } else {
                            v12_54 = new String[2];
                            v12_54[0] = String.valueOf(v5_11);
                            v12_54[1] = String.valueOf(p28);
                        }
                        com.google.android.gms.internal.zzclj v13_31;
                        if (v5_11 == -1) {
                            v13_31 = "";
                        } else {
                            v13_31 = "rowid <= ? and ";
                        }
                        String v3_13 = new StringBuilder((String.valueOf(v13_31).length() + 148));
                        v3_13.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_13.append(v13_31);
                        v3_13.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_2.rawQuery(v3_13.toString(), v12_54);
                        if (v3_0.moveToFirst()) {
                            int v12_1 = v3_0.getString(0);
                            try {
                                com.google.android.gms.internal.zzclj v13_0 = v3_0.getString(1);
                                v3_0.close();
                                v22 = v3_0;
                                v3_0 = v12_1;
                                v21_1 = v13_0;
                            } catch (java.io.IOException v0_2) {
                                v9_0 = v3_0;
                                v21_0 = v12_1;
                            }
                        } else {
                            if (v3_0 == null) {
                            }
                        }
                    }
                } catch (java.io.IOException v0_3) {
                    v2_0 = v0_3;
                    v9_0 = v3_0;
                } catch (java.io.IOException v0_2) {
                    v9_0 = v3_0;
                    v21_0 = v9_0;
                } catch (java.io.IOException v0_2) {
                    v9_0 = v3_0;
                    v21_0 = 0;
                }
                v3_0.close();
            } catch (java.io.IOException v0_1) {
                v2_0 = v0_1;
                v9_0 = 0;
            } catch (java.io.IOException v0_0) {
                v3_1 = v0_0;
                v9_0 = 0;
                v21_0 = 0;
            } catch (java.io.IOException v0_6) {
            }
        } catch (java.io.IOException v0_11) {
            com.google.android.gms.internal.zzcfz v2_15 = v0_11;
            this.zzwy().endTransaction();
            throw v2_15;
        }
    }

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


    private final boolean zzg(String p27, long p28)
    {
        this.zzwy().beginTransaction();
        try {
            String v3_0 = 0;
            com.google.android.gms.internal.zzcfz v2_14 = new com.google.android.gms.internal.zzchx$zza(this, 0);
            Object v4_20 = this.zzwy();
            android.database.sqlite.SQLiteException v5_11 = this.zzbsW;
            com.google.android.gms.common.internal.zzbr.zzu(v2_14);
            v4_20.zzjB();
            v4_20.zzkC();
            int v10_0 = 1;
            int v11_0 = 0;
            try {
                String v21_1;
                int v22;
                int v15_2 = v4_20.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        int v12_19;
                        if (v5_11 == -1) {
                            v3_0 = 0;
                            v12_19 = new String[] {0});
                        } else {
                            String v3_3 = new String[2];
                            v3_3[0] = 0;
                            v3_3[1] = String.valueOf(v5_11);
                            v12_19 = v3_3;
                            v3_0 = 0;
                        }
                        com.google.android.gms.internal.zzclj v13_9;
                        if (v5_11 == -1) {
                            v13_9 = "";
                        } else {
                            v13_9 = " and rowid <= ?";
                        }
                        String v3_10 = new StringBuilder((String.valueOf(v13_9).length() + 84));
                        v3_10.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v3_10.append(v13_9);
                        v3_10.append(" order by rowid limit 1;");
                        v3_0 = v15_2.rawQuery(v3_10.toString(), v12_19);
                        if (v3_0.moveToFirst()) {
                            com.google.android.gms.internal.zzclj v13_21 = v3_0.getString(0);
                            v3_0.close();
                            v22 = v3_0;
                            v21_1 = v13_21;
                            v3_0 = 0;
                            try {
                                int v12_3 = new String[2];
                                v12_3[0] = v3_0;
                                v12_3[1] = v21_1;
                                android.database.sqlite.SQLiteDatabase v24 = v15_2;
                                int v15_1 = v15_2.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_3, 0, 0, "rowid", "2");
                                try {
                                    if (v15_1.moveToFirst()) {
                                        int v12_6 = v15_1.getBlob(0);
                                        int v12_7 = com.google.android.gms.internal.ahw.zzb(v12_6, 0, v12_6.length);
                                        com.google.android.gms.internal.zzclj v13_4 = new com.google.android.gms.internal.zzcll();
                                        try {
                                            v13_4.zza(v12_7);
                                        } catch (java.io.IOException v0_5) {
                                            Object v9_0 = v15_1;
                                            v4_20.zzwE().zzyv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzcgx.zzea(v3_0), v0_5);
                                            if (v9_0 == null) {
                                                String v3_7;
                                                if (v2_14.zztK == null) {
                                                    v3_7 = 1;
                                                } else {
                                                    if (!v2_14.zztK.isEmpty()) {
                                                        v3_7 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_7 != null) {
                                                    this.zzwy().setTransactionSuccessful();
                                                    this.zzwy().endTransaction();
                                                    return 0;
                                                } else {
                                                    String v3_8 = v2_14.zzbtd;
                                                    Object v4_4 = new com.google.android.gms.internal.zzcli[v2_14.zztK.size()];
                                                    v3_8.zzbvI = v4_4;
                                                    Object v4_5 = 0;
                                                    android.database.sqlite.SQLiteException v5_7 = 0;
                                                    com.google.android.gms.internal.zzcgz v6_10 = 0;
                                                    while (v4_5 < v2_14.zztK.size()) {
                                                        if (!this.zzwB().zzN(v2_14.zzbtd.zzaK, ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name)) {
                                                            Object v9_28 = this.zzwB().zzO(v2_14.zzbtd.zzaK, ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name);
                                                            if (v9_28 != null) {
                                                                if (((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA == null) {
                                                                    com.google.android.gms.internal.zzclj v13_20 = new com.google.android.gms.internal.zzclj[v11_0];
                                                                    ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA = v13_20;
                                                                }
                                                                int v12_44 = ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA;
                                                                com.google.android.gms.internal.zzclj v13_22 = v12_44.length;
                                                                Object v14_13 = 0;
                                                                int v15_5 = 0;
                                                                int v16_3 = 0;
                                                                while (v14_13 < v13_22) {
                                                                    com.google.android.gms.internal.zzcgz v7_68 = v12_44[v14_13];
                                                                    if (!"_c".equals(v7_68.name)) {
                                                                        if ("_r".equals(v7_68.name)) {
                                                                            v7_68.zzbvE = Long.valueOf(1);
                                                                            v16_3 = 1;
                                                                        }
                                                                    } else {
                                                                        v7_68.zzbvE = Long.valueOf(1);
                                                                        v15_5 = 1;
                                                                    }
                                                                    v14_13++;
                                                                    int v11 = 0;
                                                                }
                                                                if ((v15_5 == 0) && (v9_28 != null)) {
                                                                    this.zzwE().zzyB().zzj("Marking event as conversion", this.zzwz().zzdX(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name));
                                                                    com.google.android.gms.internal.zzcgz v7_34 = ((com.google.android.gms.internal.zzclj[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA, (((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA.length + v10_0)));
                                                                    String v8_15 = new com.google.android.gms.internal.zzclj();
                                                                    v8_15.name = "_c";
                                                                    v8_15.zzbvE = Long.valueOf(1);
                                                                    v7_34[(v7_34.length - v10_0)] = v8_15;
                                                                    ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA = v7_34;
                                                                }
                                                                if (v16_3 == 0) {
                                                                    this.zzwE().zzyB().zzj("Marking event as real-time", this.zzwz().zzdX(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name));
                                                                    com.google.android.gms.internal.zzcgz v7_42 = ((com.google.android.gms.internal.zzclj[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA, (((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA.length + v10_0)));
                                                                    String v8_27 = new com.google.android.gms.internal.zzclj();
                                                                    v8_27.name = "_r";
                                                                    v8_27.zzbvE = Long.valueOf(1);
                                                                    v7_42[(v7_42.length - v10_0)] = v8_27;
                                                                    ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).zzbvA = v7_42;
                                                                }
                                                                if (this.zzwy().zza(this.zzyX(), v2_14.zzbtd.zzaK, 0, 0, 0, 0, 1).zzbpC <= ((long) this.zzbsr.zzdN(v2_14.zzbtd.zzaK))) {
                                                                    v5_7 = 1;
                                                                } else {
                                                                    com.google.android.gms.internal.zzcgz v7_48 = ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5));
                                                                    String v8_31 = 0;
                                                                    while (v8_31 < v7_48.zzbvA.length) {
                                                                        if (!"_r".equals(v7_48.zzbvA[v8_31].name)) {
                                                                            v8_31++;
                                                                        } else {
                                                                            int v11_30 = new com.google.android.gms.internal.zzclj[(v7_48.zzbvA.length - v10_0)];
                                                                            if (v8_31 > null) {
                                                                                System.arraycopy(v7_48.zzbvA, 0, v11_30, 0, v8_31);
                                                                            }
                                                                            if (v8_31 < v11_30.length) {
                                                                                System.arraycopy(v7_48.zzbvA, (v8_31 + 1), v11_30, v8_31, (v11_30.length - v8_31));
                                                                            }
                                                                            v7_48.zzbvA = v11_30;
                                                                            break;
                                                                        }
                                                                    }
                                                                }
                                                                if ((com.google.android.gms.internal.zzckx.zzep(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name)) && ((v9_28 != null) && (this.zzwy().zza(this.zzyX(), v2_14.zzbtd.zzaK, 0, 0, 1, 0, 0).zzbpA > ((long) this.zzbsr.zzb(v2_14.zzbtd.zzaK, com.google.android.gms.internal.zzcgn.zzbqm))))) {
                                                                    this.zzwE().zzyx().zzj("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK));
                                                                    com.google.android.gms.internal.zzcgz v7_61 = ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5));
                                                                    String v8_33 = v7_61.zzbvA;
                                                                    int v11_35 = 0;
                                                                    int v12_66 = 0;
                                                                    com.google.android.gms.internal.zzclj v13_30 = 0;
                                                                    while (v11_35 < v8_33.length) {
                                                                        Object v14_19 = v8_33[v11_35];
                                                                        if (!"_c".equals(v14_19.name)) {
                                                                            if ("_err".equals(v14_19.name)) {
                                                                                v12_66 = 1;
                                                                            }
                                                                        } else {
                                                                            v13_30 = v14_19;
                                                                        }
                                                                        v11_35++;
                                                                    }
                                                                    if ((v12_66 == 0) || (v13_30 == null)) {
                                                                        if (v13_30 == null) {
                                                                            this.zzwE().zzyv().zzj("Did not find conversion parameter. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK));
                                                                        } else {
                                                                            v13_30.name = "_err";
                                                                            v13_30.zzbvE = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        String v8_38 = new com.google.android.gms.internal.zzclj[(v7_61.zzbvA.length - 1)];
                                                                        Object v9_40 = v7_61.zzbvA;
                                                                        int v10_1 = v9_40.length;
                                                                        int v11_36 = 0;
                                                                        int v12_67 = 0;
                                                                        while (v11_36 < v10_1) {
                                                                            Object v14_18 = v9_40[v11_36];
                                                                            if (v14_18 != v13_30) {
                                                                                int v15_8 = (v12_67 + 1);
                                                                                v8_38[v12_67] = v14_18;
                                                                                v12_67 = v15_8;
                                                                            }
                                                                            v11_36++;
                                                                        }
                                                                        v7_61.zzbvA = v8_38;
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzwA();
                                                                if (com.google.android.gms.internal.zzckx.zzeD(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name)) {
                                                                }
                                                            }
                                                            String v8_39 = (v6_10 + 1);
                                                            v3_8.zzbvI[v6_10] = ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5));
                                                            v6_10 = v8_39;
                                                        } else {
                                                            Object v9_50;
                                                            this.zzwE().zzyx().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK), this.zzwz().zzdX(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name));
                                                            if (this.zzwA().zzeB(v2_14.zzbtd.zzaK)) {
                                                                v9_50 = 1;
                                                            } else {
                                                                if (!this.zzwA().zzeC(v2_14.zzbtd.zzaK)) {
                                                                    v9_50 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v9_50 == null) && (!"_err".equals(((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name))) {
                                                                this.zzwA().zza(v2_14.zzbtd.zzaK, 11, "_ev", ((com.google.android.gms.internal.zzcli) v2_14.zztK.get(v4_5)).name, 0);
                                                            }
                                                        }
                                                        v4_5++;
                                                        v10_0 = 1;
                                                        v11_0 = 0;
                                                    }
                                                    if (v6_10 < v2_14.zztK.size()) {
                                                        v3_8.zzbvI = ((com.google.android.gms.internal.zzcli[]) java.util.Arrays.copyOf(v3_8.zzbvI, v6_10));
                                                    }
                                                    v3_8.zzbwb = this.zza(v2_14.zzbtd.zzaK, v2_14.zzbtd.zzbvJ, v3_8.zzbvI);
                                                    v3_8.zzbvL = Long.valueOf(nan);
                                                    v3_8.zzbvM = Long.valueOf(-0.0);
                                                    Object v4_16 = 0;
                                                    while (v4_16 < v3_8.zzbvI.length) {
                                                        com.google.android.gms.internal.zzcgz v6_36 = v3_8.zzbvI[v4_16];
                                                        if (v6_36.zzbvB.longValue() < v3_8.zzbvL.longValue()) {
                                                            v3_8.zzbvL = v6_36.zzbvB;
                                                        }
                                                        if (v6_36.zzbvB.longValue() > v3_8.zzbvM.longValue()) {
                                                            v3_8.zzbvM = v6_36.zzbvB;
                                                        }
                                                        v4_16++;
                                                    }
                                                    Object v4_18 = v2_14.zzbtd.zzaK;
                                                    com.google.android.gms.internal.zzcgz v6_18 = this.zzwy().zzdR(v4_18);
                                                    if (v6_18 != null) {
                                                        if (v3_8.zzbvI.length > 0) {
                                                            int v11_2;
                                                            com.google.android.gms.internal.zzcgz v7_4 = v6_18.zzwL();
                                                            if (v7_4 == 0) {
                                                                v11_2 = 0;
                                                            } else {
                                                                v11_2 = Long.valueOf(v7_4);
                                                            }
                                                            v3_8.zzbvO = v11_2;
                                                            int v11_3 = v6_18.zzwK();
                                                            if (v11_3 != 0) {
                                                                v7_4 = v11_3;
                                                            } else {
                                                            }
                                                            com.google.android.gms.internal.zzcgz v7_5;
                                                            if (v7_4 == 0) {
                                                                v7_5 = 0;
                                                            } else {
                                                                v7_5 = Long.valueOf(v7_4);
                                                            }
                                                            v3_8.zzbvN = v7_5;
                                                            v6_18.zzwU();
                                                            v3_8.zzbvZ = Integer.valueOf(((int) v6_18.zzwR()));
                                                            v6_18.zzL(v3_8.zzbvL.longValue());
                                                            v6_18.zzM(v3_8.zzbvM.longValue());
                                                            v3_8.zzboY = v6_18.zzxc();
                                                            this.zzwy().zza(v6_18);
                                                        }
                                                    } else {
                                                        this.zzwE().zzyv().zzj("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK));
                                                    }
                                                    if (v3_8.zzbvI.length > 0) {
                                                        com.google.android.gms.internal.zzcgz v6_25;
                                                        com.google.android.gms.internal.zzcfy.zzxD();
                                                        com.google.android.gms.internal.zzcgz v6_24 = this.zzwB().zzei(v2_14.zzbtd.zzaK);
                                                        if (v6_24 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v2_14.zzbtd.zzboU)) {
                                                                this.zzwE().zzyx().zzj("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzcgx.zzea(v2_14.zzbtd.zzaK));
                                                            } else {
                                                                v6_25 = Long.valueOf(-1);
                                                                v3_8.zzbwf = v6_25;
                                                            }
                                                        } else {
                                                            if (v6_24.zzbvp != null) {
                                                                v6_25 = v6_24.zzbvp;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzwy().zza(v3_8, v5_7);
                                                    }
                                                    this.zzwy().zzG(v2_14.zzbte);
                                                    com.google.android.gms.internal.zzcfz v2_7 = this.zzwy();
                                                    android.database.sqlite.SQLiteException v5_9 = v2_7.getWritableDatabase();
                                                    try {
                                                        com.google.android.gms.internal.zzcgz v7_21 = new String[2];
                                                        v7_21[0] = v4_18;
                                                        try {
                                                            v7_21[1] = v4_18;
                                                            v5_9.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v7_21);
                                                        } catch (java.io.IOException v0_10) {
                                                            v2_7.zzwE().zzyv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.zzcgx.zzea(v4_18), v0_10);
                                                        }
                                                        int v25;
                                                        this.zzwy().setTransactionSuccessful();
                                                        if (v3_8.zzbvI.length <= 0) {
                                                            v25 = 0;
                                                        } else {
                                                            v25 = 1;
                                                        }
                                                        this.zzwy().endTransaction();
                                                        return v25;
                                                    } catch (java.io.IOException v0_10) {
                                                    }
                                                }
                                            } else {
                                                v9_0.close();
                                            }
                                        } catch (java.io.IOException v0_2) {
                                        }
                                        if (v15_1.moveToNext()) {
                                            v4_20.zzwE().zzyx().zzj("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzcgx.zzea(v3_0));
                                        }
                                        int v16_2;
                                        android.database.sqlite.SQLiteException v5_1;
                                        v15_1.close();
                                        v2_14.zzb(v13_4);
                                        if (v5_11 == -1) {
                                            v5_1 = "app_id = ? and metadata_fingerprint = ?";
                                            Object v9_4 = new String[2];
                                            v9_4[0] = v3_0;
                                            v9_4[1] = v21_1;
                                            v16_2 = v9_4;
                                        } else {
                                            int v12_13 = new String[3];
                                            v12_13[0] = v3_0;
                                            v12_13[1] = v21_1;
                                            v12_13[2] = String.valueOf(v5_11);
                                            v5_1 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_2 = v12_13;
                                        }
                                        v9_0 = v15_1;
                                        android.database.sqlite.SQLiteException v5_3 = v24.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_1, v16_2, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_3.moveToFirst()) {
                                                do {
                                                    int v12_16 = v5_3.getLong(0);
                                                    Object v9_8 = v5_3.getBlob(3);
                                                    Object v9_9 = com.google.android.gms.internal.ahw.zzb(v9_8, 0, v9_8.length);
                                                    Object v14_7 = new com.google.android.gms.internal.zzcli();
                                                    v14_7.zza(v9_9);
                                                    v14_7.name = v5_3.getString(1);
                                                    v14_7.zzbvB = Long.valueOf(v5_3.getLong(2));
                                                    if (v2_14.zza(v12_16, v14_7)) {
                                                    } else {
                                                        if (v5_3 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_3.moveToNext());
                                                if (v5_3 == null) {
                                                }
                                            } else {
                                                v4_20.zzwE().zzyx().zzj("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzcgx.zzea(v3_0));
                                                if (v5_3 == null) {
                                                }
                                            }
                                        } catch (java.io.IOException v0_8) {
                                            com.google.android.gms.internal.zzcfz v2_0 = v0_8;
                                            v9_0 = v5_3;
                                            if (v9_0 != null) {
                                                v9_0.close();
                                            }
                                            throw v2_0;
                                        } catch (java.io.IOException v0_2) {
                                            String v21_0 = v3_0;
                                            v9_0 = v5_3;
                                            String v3_1 = v0_2;
                                            v4_20.zzwE().zzyv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzcgx.zzea(v21_0), v3_1);
                                            if (v9_0 == null) {
                                            }
                                        }
                                        v5_3.close();
                                    } else {
                                        v4_20.zzwE().zzyv().zzj("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzcgx.zzea(v3_0));
                                        if (v15_1 == 0) {
                                        } else {
                                            v15_1.close();
                                        }
                                    }
                                } catch (java.io.IOException v0_6) {
                                    v9_0 = v15_1;
                                    v2_0 = v0_6;
                                } catch (java.io.IOException v0_2) {
                                    v9_0 = v15_1;
                                } catch (java.io.IOException v0_9) {
                                    v2_0 = v0_9;
                                    v9_0 = v15_1;
                                } catch (java.io.IOException v0_2) {
                                    v21_0 = v3_0;
                                    v9_0 = v15_1;
                                }
                                v21_0 = v3_0;
                            } catch (java.io.IOException v0_4) {
                                v2_0 = v0_4;
                                v9_0 = v22;
                            } catch (java.io.IOException v0_2) {
                                v21_0 = v3_0;
                                v9_0 = v22;
                            }
                        } else {
                            if (v3_0 == null) {
                            } else {
                            }
                        }
                    } else {
                        int v12_54;
                        if (v5_11 == -1) {
                            v12_54 = new String[1];
                            v12_54[0] = String.valueOf(p28);
                        } else {
                            v12_54 = new String[2];
                            v12_54[0] = String.valueOf(v5_11);
                            v12_54[1] = String.valueOf(p28);
                        }
                        com.google.android.gms.internal.zzclj v13_31;
                        if (v5_11 == -1) {
                            v13_31 = "";
                        } else {
                            v13_31 = "rowid <= ? and ";
                        }
                        String v3_13 = new StringBuilder((String.valueOf(v13_31).length() + 148));
                        v3_13.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_13.append(v13_31);
                        v3_13.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_0 = v15_2.rawQuery(v3_13.toString(), v12_54);
                        if (v3_0.moveToFirst()) {
                            int v12_1 = v3_0.getString(0);
                            try {
                                com.google.android.gms.internal.zzclj v13_0 = v3_0.getString(1);
                                v3_0.close();
                                v22 = v3_0;
                                v3_0 = v12_1;
                                v21_1 = v13_0;
                            } catch (java.io.IOException v0_2) {
                                v9_0 = v3_0;
                                v21_0 = v12_1;
                            }
                        } else {
                            if (v3_0 == null) {
                            }
                        }
                    }
                } catch (java.io.IOException v0_3) {
                    v2_0 = v0_3;
                    v9_0 = v3_0;
                } catch (java.io.IOException v0_2) {
                    v9_0 = v3_0;
                    v21_0 = v9_0;
                } catch (java.io.IOException v0_2) {
                    v9_0 = v3_0;
                    v21_0 = 0;
                }
                v3_0.close();
            } catch (java.io.IOException v0_1) {
                v2_0 = v0_1;
                v9_0 = 0;
            } catch (java.io.IOException v0_0) {
                v3_1 = v0_0;
                v9_0 = 0;
                v21_0 = 0;
            } catch (java.io.IOException v0_6) {
            }
        } catch (java.io.IOException v0_11) {
            com.google.android.gms.internal.zzcfz v2_15 = v0_11;
            this.zzwy().endTransaction();
            throw v2_15;
        }
    }

Method com.google.android.gms.internal.zzaof.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.zzagw.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) {
        }
    }