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.nb.zzan() calling method android.database.sqlite.SQLiteDatabase.updateWithOnConflict()


    public final void zzan(long p10)
    {
        this.zzFw();
        long v6 = System.currentTimeMillis();
        com.google.android.gms.internal.wl v2_4 = new android.content.ContentValues();
        v2_4.put("active", Boolean.valueOf(0));
        v2_4.put("lastUse", Long.valueOf(p10));
        Object[] v4_0 = new String[0];
        this.zzbZD.updateWithOnConflict("trackedQueries", v2_4, "active = 1", v4_0, 5);
        String v0_2 = System.currentTimeMillis();
        if (this.zzbZE.zzIH()) {
            com.google.android.gms.internal.wl v2_2 = this.zzbZE;
            Object[] v4_2 = new Object[1];
            v4_2[0] = Long.valueOf((v0_2 - v6));
            Object[] v1_2 = new Object[0];
            v2_2.zzb(String.format("Reset active tracked queries in %dms", v4_2), 0, v1_2);
        }
        return;
    }

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


    private final void zzh(long p8, long p10)
    {
        String v0_1 = this.zzfg("Error opening database for getNumStoredHits.");
        if (v0_1 != null) {
            StringBuilder v1_3 = new android.content.ContentValues();
            v1_3.put("hit_first_send_time", Long.valueOf(p10));
            try {
                String[] v4_1 = new String[1];
                v4_1[0] = String.valueOf(p8);
                v0_1.update("gtm_hits", v1_3, "hit_id=?", v4_1);
            } catch (String v0) {
                com.google.android.gms.tagmanager.zzdj.zzaT(new StringBuilder(69).append("Error setting HIT_FIRST_DISPATCH_TIME for hitId: ").append(p8).toString());
                this.zzp(p8);
            }
        }
        return;
    }

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


    private final void zzh(long p8, long p10)
    {
        String v0_2 = this.zzfg("Error opening database for getNumStoredHits.");
        if (v0_2 != null) {
            StringBuilder v1_8 = new android.content.ContentValues();
            v1_8.put("hit_first_send_time", Long.valueOf(p10));
            try {
                String[] v4_1 = new String[1];
                v4_1[0] = String.valueOf(p8);
                v0_2.update("gtm_hits", v1_8, "hit_id=?", v4_1);
            } catch (String v0_1) {
                String v0_4 = String.valueOf(v0_1.getMessage());
                com.google.android.gms.internal.zzcvk.zzaT(new StringBuilder((String.valueOf(v0_4).length() + 70)).append("Error setting HIT_FIRST_DISPATCH_TIME for hitId ").append(p8).append(": ").append(v0_4).toString());
                this.zzp(p8);
            }
        }
        return;
    }

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


    protected final boolean zzb(String p17, byte[] p18, String p19)
    {
        int v2_7;
        this.zzkD();
        void v16_1 = super.zzjC();
        com.google.android.gms.common.internal.zzbo.zzcF(p17);
        Object v5_0 = v16_1.zzc(p17, p18);
        if (v5_0 != null) {
            v16_1.zza(p17, v5_0);
            v16_1.zzbrT.put(p17, v5_0);
            v16_1.zzbrU.put(p17, p19);
            v16_1.zzbrQ.put(p17, com.google.android.gms.internal.zzcgf.zza(v5_0));
            long v6_0 = super.zzws();
            String[] v7_0 = v5_0.zzbvp;
            com.google.android.gms.common.internal.zzbo.zzu(v7_0);
            int v8_0 = v7_0.length;
            String v4_0 = 0;
            while (v4_0 < v8_0) {
                int v9_1 = v7_0[v4_0];
                com.google.android.gms.internal.zzcen v10_1 = v9_1.zzbuK;
                String v11_0 = v10_1.length;
                int v3_0 = 0;
                while (v3_0 < v11_0) {
                    int v2_4 = v10_1[v3_0];
                    com.google.android.gms.internal.zzcjo[] v12_1 = com.google.android.gms.measurement.AppMeasurement$Event.zzdF(v2_4.zzbuN);
                    if (v12_1 != null) {
                        v2_4.zzbuN = v12_1;
                    }
                    com.google.android.gms.internal.zzcjo[] v12_2 = v2_4.zzbuO;
                    int v13 = v12_2.length;
                    int v2_5 = 0;
                    while (v2_5 < v13) {
                        com.google.android.gms.internal.zzcjo v14 = v12_2[v2_5];
                        String v15_1 = com.google.android.gms.measurement.AppMeasurement$Param.zzdF(v14.zzbuV);
                        if (v15_1 != null) {
                            v14.zzbuV = v15_1;
                        }
                        v2_5++;
                    }
                    v3_0++;
                }
                int v3_1 = v9_1.zzbuJ;
                int v9_0 = v3_1.length;
                int v2_2 = 0;
                while (v2_2 < v9_0) {
                    com.google.android.gms.internal.zzcen v10_0 = v3_1[v2_2];
                    String v11_2 = com.google.android.gms.measurement.AppMeasurement$UserProperty.zzdF(v10_0.zzbvc);
                    if (v11_2 != null) {
                        v10_0.zzbvc = v11_2;
                    }
                    v2_2++;
                }
                v4_0++;
            }
            v6_0.zzwz().zza(p17, v7_0);
            try {
                v5_0.zzbvp = 0;
                int v2_14 = new byte[v5_0.zzLV()];
                v5_0.zza(com.google.android.gms.internal.adh.zzc(v2_14, 0, v2_14.length));
                byte[] v18_1 = v2_14;
            } catch (int v2_15) {
                super.zzwF().zzyz().zze("Unable to serialize reduced-size config. Storing full config instead. appId", com.google.android.gms.internal.zzcfl.zzdZ(p17), v2_15);
            }
            int v3_7 = super.zzwz();
            com.google.android.gms.common.internal.zzbo.zzcF(p17);
            v3_7.zzjC();
            v3_7.zzkD();
            int v2_17 = new android.content.ContentValues();
            v2_17.put("remote_config", v18_1);
            try {
                String v4_4 = v3_7.getWritableDatabase();
                String[] v7_2 = new String[1];
                v7_2[0] = p17;
            } catch (int v2_22) {
                v3_7.zzwF().zzyx().zze("Error storing remote config. appId", com.google.android.gms.internal.zzcfl.zzdZ(p17), v2_22);
                v2_7 = 1;
            }
            if (((long) v4_4.update("apps", v2_17, "app_id = ?", v7_2)) != 0) {
            } else {
                v3_7.zzwF().zzyx().zzj("Failed to update remote config (got 0). appId", com.google.android.gms.internal.zzcfl.zzdZ(p17));
            }
        } else {
            v2_7 = 0;
        }
        return v2_7;
    }

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


    public final void zza(com.google.android.gms.internal.zzceg p8)
    {
        com.google.android.gms.common.internal.zzbo.zzu(p8);
        this.zzjC();
        this.zzkD();
        com.google.android.gms.internal.zzcfn v0_6 = new android.content.ContentValues();
        v0_6.put("app_id", p8.zzhl());
        v0_6.put("app_instance_id", p8.getAppInstanceId());
        v0_6.put("gmp_app_id", p8.getGmpAppId());
        v0_6.put("resettable_device_id_hash", p8.zzwJ());
        v0_6.put("last_bundle_index", Long.valueOf(p8.zzwS()));
        v0_6.put("last_bundle_start_timestamp", Long.valueOf(p8.zzwL()));
        v0_6.put("last_bundle_end_timestamp", Long.valueOf(p8.zzwM()));
        v0_6.put("app_version", p8.zzjH());
        v0_6.put("app_store", p8.zzwO());
        v0_6.put("gmp_version", Long.valueOf(p8.zzwP()));
        v0_6.put("dev_cert_hash", Long.valueOf(p8.zzwQ()));
        v0_6.put("measurement_enabled", Boolean.valueOf(p8.zzwR()));
        v0_6.put("day", Long.valueOf(p8.zzwW()));
        v0_6.put("daily_public_events_count", Long.valueOf(p8.zzwX()));
        v0_6.put("daily_events_count", Long.valueOf(p8.zzwY()));
        v0_6.put("daily_conversions_count", Long.valueOf(p8.zzwZ()));
        v0_6.put("config_fetched_time", Long.valueOf(p8.zzwT()));
        v0_6.put("failed_config_fetch_time", Long.valueOf(p8.zzwU()));
        v0_6.put("app_version_int", Long.valueOf(p8.zzwN()));
        v0_6.put("firebase_instance_id", p8.zzwK());
        v0_6.put("daily_error_events_count", Long.valueOf(p8.zzxb()));
        v0_6.put("daily_realtime_events_count", Long.valueOf(p8.zzxa()));
        v0_6.put("health_monitor_sample", p8.zzxc());
        v0_6.put("android_id", Long.valueOf(p8.zzxe()));
        try {
            String v1_7 = this.getWritableDatabase();
            int v4_1 = new String[1];
            v4_1[0] = p8.zzhl();
        } catch (com.google.android.gms.internal.zzcfn v0_4) {
            this.zzwF().zzyx().zze("Error storing app. appId", com.google.android.gms.internal.zzcfl.zzdZ(p8.zzhl()), v0_4);
            return;
        }
        if ((((long) v1_7.update("apps", v0_6, "app_id = ?", v4_1)) != 0) || (v1_7.insertWithOnConflict("apps", 0, v0_6, 5) != -1)) {
            return;
        } else {
            this.zzwF().zzyx().zzj("Failed to insert/update app (got -1). appId", com.google.android.gms.internal.zzcfl.zzdZ(p8.zzhl()));
            return;
        }
    }

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


    public final com.google.android.gms.internal.zzceo zza(long p12, String p14, boolean p15, boolean p16, boolean p17, boolean p18, boolean p19)
    {
        com.google.android.gms.common.internal.zzbo.zzcF(p14);
        this.zzjC();
        this.zzkD();
        String[] v10 = new String[1];
        v10[0] = p14;
        com.google.android.gms.internal.zzceo v8_1 = new com.google.android.gms.internal.zzceo();
        try {
            com.google.android.gms.internal.zzceo v0_1 = this.getWritableDatabase();
            android.content.ContentValues v2_5 = new String[6];
            v2_5[0] = "day";
            v2_5[1] = "daily_events_count";
            v2_5[2] = "daily_public_events_count";
            v2_5[3] = "daily_conversions_count";
            v2_5[4] = "daily_error_events_count";
            v2_5[5] = "daily_realtime_events_count";
            String v4_20 = new String[1];
            v4_20[0] = p14;
            int v1_1 = v0_1.query("apps", v2_5, "app_id=?", v4_20, 0, 0, 0);
            try {
                com.google.android.gms.internal.zzceo v0_2;
                if (v1_1.moveToFirst()) {
                    if (v1_1.getLong(0) == p12) {
                        v8_1.zzbpv = v1_1.getLong(1);
                        v8_1.zzbpu = v1_1.getLong(2);
                        v8_1.zzbpw = v1_1.getLong(3);
                        v8_1.zzbpx = v1_1.getLong(4);
                        v8_1.zzbpy = v1_1.getLong(5);
                    }
                    if (p15) {
                        v8_1.zzbpv = (v8_1.zzbpv + 1);
                    }
                    if (p16) {
                        v8_1.zzbpu = (v8_1.zzbpu + 1);
                    }
                    if (p17) {
                        v8_1.zzbpw = (v8_1.zzbpw + 1);
                    }
                    if (p18) {
                        v8_1.zzbpx = (v8_1.zzbpx + 1);
                    }
                    if (p19) {
                        v8_1.zzbpy = (v8_1.zzbpy + 1);
                    }
                    android.content.ContentValues v2_3 = new android.content.ContentValues();
                    v2_3.put("day", Long.valueOf(p12));
                    v2_3.put("daily_public_events_count", Long.valueOf(v8_1.zzbpu));
                    v2_3.put("daily_events_count", Long.valueOf(v8_1.zzbpv));
                    v2_3.put("daily_conversions_count", Long.valueOf(v8_1.zzbpw));
                    v2_3.put("daily_error_events_count", Long.valueOf(v8_1.zzbpx));
                    v2_3.put("daily_realtime_events_count", Long.valueOf(v8_1.zzbpy));
                    v0_1.update("apps", v2_3, "app_id=?", v10);
                    if (v1_1 != 0) {
                        v1_1.close();
                    }
                    v0_2 = v8_1;
                    return v0_2;
                } else {
                    this.zzwF().zzyz().zzj("Not updating daily counts, app is not known. appId", com.google.android.gms.internal.zzcfl.zzdZ(p14));
                    if (v1_1 != 0) {
                        v1_1.close();
                    }
                    v0_2 = v8_1;
                    return v0_2;
                }
            } catch (com.google.android.gms.internal.zzceo v0_0) {
                this.zzwF().zzyx().zze("Error updating daily counts. appId", com.google.android.gms.internal.zzcfl.zzdZ(p14), v0_0);
                if (v1_1 != 0) {
                    v1_1.close();
                }
                v0_2 = v8_1;
                return v0_2;
            }
        } catch (com.google.android.gms.internal.zzceo v0_3) {
            v1_1 = 0;
            if (v1_1 != 0) {
                v1_1.close();
            }
            throw v0_3;
        } catch (com.google.android.gms.internal.zzceo v0_0) {
            v1_1 = 0;
        } catch (com.google.android.gms.internal.zzceo v0_3) {
        }
    }

Method com.google.android.gms.internal.zzcen.zzL() calling method android.database.sqlite.SQLiteDatabase.update()


    protected final long zzL(String p13, String p14)
    {
        com.google.android.gms.common.internal.zzbo.zzcF(p13);
        com.google.android.gms.common.internal.zzbo.zzcF(p14);
        this.zzjC();
        this.zzkD();
        android.database.sqlite.SQLiteDatabase v6 = this.getWritableDatabase();
        v6.beginTransaction();
        try {
            android.database.sqlite.SQLiteException v0_10 = new StringBuilder((String.valueOf(p14).length() + 32)).append("select ").append(p14).append(" from app2 where app_id=?").toString();
            String v1_5 = new String[1];
            v1_5[0] = p13;
            android.database.sqlite.SQLiteException v0_1 = this.zza(v0_10, v1_5, -1);
        } catch (android.database.sqlite.SQLiteException v0_16) {
            v6.endTransaction();
            throw v0_16;
        } catch (android.database.sqlite.SQLiteException v0_15) {
            android.database.sqlite.SQLiteException v2_1 = v0_15;
            v0_1 = 0;
            this.zzwF().zzyx().zzd("Error inserting column. appId", com.google.android.gms.internal.zzcfl.zzdZ(p13), p14, v2_1);
            v6.endTransaction();
            return v0_1;
        }
        if (v0_1 == -1) {
            android.database.sqlite.SQLiteException v0_12 = new android.content.ContentValues();
            v0_12.put("app_id", p13);
            v0_12.put("first_open_count", Integer.valueOf(0));
            v0_12.put("previous_install_count", Integer.valueOf(0));
            if (v6.insertWithOnConflict("app2", 0, v0_12, 5) != -1) {
                v0_1 = 0;
            } else {
                this.zzwF().zzyx().zze("Failed to insert column (got -1). appId", com.google.android.gms.internal.zzcfl.zzdZ(p13), p14);
                v6.endTransaction();
                v0_1 = -1;
                return v0_1;
            }
        }
        try {
            Object v7_10 = new android.content.ContentValues();
            v7_10.put("app_id", p13);
            v7_10.put(p14, Long.valueOf((1 + v0_1)));
            String[] v10_1 = new String[1];
            v10_1[0] = p13;
        } catch (android.database.sqlite.SQLiteException v2_1) {
        }
        if (((long) v6.update("app2", v7_10, "app_id = ?", v10_1)) != 0) {
            v6.setTransactionSuccessful();
            v6.endTransaction();
            return v0_1;
        } else {
            this.zzwF().zzyx().zze("Failed to update column (got 0). appId", com.google.android.gms.internal.zzcfl.zzdZ(p13), p14);
            v6.endTransaction();
            v0_1 = -1;
            return v0_1;
        }
    }

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


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

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


    private final int zzBA()
    {
        int v0_0 = 0;
        String v2_5 = this.zzfg("Error opening database for getNumStoredHits.");
        if (v2_5 != null) {
            try {
                android.database.Cursor v1 = v2_5.rawQuery("SELECT COUNT(*) from gtm_hits", 0);
            } catch (String v2) {
                com.google.android.gms.tagmanager.zzdj.zzaT("Error getting numStoredHits");
                if (v1 != null) {
                    v1.close();
                }
            } catch (int v0_1) {
                if (v1 != null) {
                    v1.close();
                }
                throw v0_1;
            }
            if (v1.moveToFirst()) {
                v0_0 = ((int) v1.getLong(0));
            }
            if (v1 != null) {
                v1.close();
            }
        }
        return v0_0;
    }

Method com.google.android.gms.tagmanager.zzax.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) {
            android.database.sqlite.SQLiteException v0_20 = p6.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_20.moveToFirst();
                v0_20.close();
            } catch (String v1_4) {
                v0_20.close();
                throw v1_4;
            }
        }
        if (com.google.android.gms.tagmanager.zzax.zza("datalayer", p6)) {
            String v1_0 = p6.rawQuery("SELECT * FROM datalayer WHERE 0", 0);
            java.util.HashSet v2_2 = new java.util.HashSet();
            try {
                String[] v3 = v1_0.getColumnNames();
                android.database.sqlite.SQLiteException v0_4 = 0;
            } catch (android.database.sqlite.SQLiteException v0_5) {
                v1_0.close();
                throw v0_5;
            }
            while (v0_4 < v3.length) {
                v2_2.add(v3[v0_4]);
                v0_4++;
            }
            v1_0.close();
            if ((v2_2.remove("key")) && ((v2_2.remove("value")) && ((v2_2.remove("ID")) && (v2_2.remove("expires"))))) {
                if (!v2_2.isEmpty()) {
                    throw new android.database.sqlite.SQLiteException("Database has extra columns");
                }
            } else {
                throw new android.database.sqlite.SQLiteException("Database column missing");
            }
        } else {
            p6.execSQL(com.google.android.gms.tagmanager.zzat.zzBe());
        }
        return;
    }

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


    private final int zzBc()
    {
        int v0_0 = 0;
        String v2_5 = this.zzfg("Error opening database for getNumStoredEntries.");
        if (v2_5 != null) {
            try {
                android.database.Cursor v1 = v2_5.rawQuery("SELECT COUNT(*) from datalayer", 0);
            } catch (String v2) {
                com.google.android.gms.tagmanager.zzdj.zzaT("Error getting numStoredEntries");
                if (v1 != null) {
                    v1.close();
                }
            } catch (int v0_1) {
                if (v1 != null) {
                    v1.close();
                }
                throw v0_1;
            }
            if (v1.moveToFirst()) {
                v0_0 = ((int) v1.getLong(0));
            }
            if (v1 != null) {
                v1.close();
            }
        }
        return v0_0;
    }

Method com.google.android.gms.internal.zzcvp.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_15 = p5.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_15.moveToFirst();
                v0_15.close();
            } catch (String v1_0) {
                v0_15.close();
                throw v1_0;
            }
        }
        if (com.google.android.gms.internal.zzcvp.zza("gtm_hit_unique_ids", p5)) {
            String v0_2 = new String[1];
            v0_2[0] = "hit_unique_id";
            com.google.android.gms.internal.zzcvp.zza(p5, "gtm_hit_unique_ids", java.util.Arrays.asList(v0_2));
        } else {
            p5.execSQL(com.google.android.gms.internal.zzcvn.zzBC());
        }
        if (com.google.android.gms.internal.zzcvp.zza("gtm_hits", p5)) {
            String v0_9 = new String[8];
            v0_9[0] = "hit_id";
            v0_9[1] = "hit_url";
            v0_9[2] = "hit_time";
            v0_9[3] = "hit_first_send_time";
            v0_9[4] = "hit_method";
            v0_9[5] = "hit_unique_id";
            v0_9[6] = "hit_headers";
            v0_9[7] = "hit_body";
            com.google.android.gms.internal.zzcvp.zza(p5, "gtm_hits", java.util.Arrays.asList(v0_9));
        } else {
            p5.execSQL(com.google.android.gms.internal.zzcvn.zzCs());
        }
        p5.execSQL(com.google.android.gms.internal.zzcvn.zzCt());
        p5.execSQL(com.google.android.gms.internal.zzcvn.zzCu());
        return;
    }

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


    private static void zza(android.database.sqlite.SQLiteDatabase p7, String p8, java.util.List p9)
    {
        String v2_2 = p7.rawQuery(new StringBuilder((String.valueOf(p8).length() + 22)).append("SELECT * FROM ").append(p8).append(" WHERE 0").toString(), 0);
        Object[] v3_1 = new java.util.HashSet();
        try {
            Object[] v4_0 = v2_2.getColumnNames();
            android.database.sqlite.SQLiteException v0_4 = 0;
        } catch (android.database.sqlite.SQLiteException v0_5) {
            v2_2.close();
            throw v0_5;
        }
        while (v0_4 < v4_0.length) {
            v3_1.add(v4_0[v0_4]);
            v0_4++;
        }
        v2_2.close();
        String v2_3 = p9.iterator();
        while (v2_3.hasNext()) {
            android.database.sqlite.SQLiteException v0_13 = ((String) v2_3.next());
            if (!v3_1.remove(v0_13)) {
                Object[] v4_3 = new Object[2];
                v4_3[0] = v0_13;
                v4_3[1] = p8;
                throw new android.database.sqlite.SQLiteException(String.format("Database column %s missing in table %s.", v4_3));
            }
        }
        if (v3_1.isEmpty()) {
            return;
        } else {
            Object[] v3_2 = new Object[1];
            v3_2[0] = p8;
            throw new android.database.sqlite.SQLiteException(String.format("Database has extra columns in table %s.", v3_2));
        }
    }

Method com.google.android.gms.internal.zzcvn.zzfF() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final int zzfF(String p7)
    {
        android.database.Cursor v2 = 0;
        int v0_0 = 0;
        String v3_1 = this.zzfg("Error opening database for getNumRecords.");
        if (v3_1 != null) {
            try {
                int v1_1;
                int v1_10 = String.valueOf(p7);
            } catch (int v1_4) {
                int v1_6 = String.valueOf(v1_4.getMessage());
                if (v1_6.length() == 0) {
                    int v1_8 = new String("Error getting numStoredRecords: ");
                } else {
                    v1_8 = "Error getting numStoredRecords: ".concat(v1_6);
                }
                com.google.android.gms.internal.zzcvk.zzaT(v1_8);
                if (v2 != null) {
                    v2.close();
                }
            } catch (int v0_1) {
                if (v2 != null) {
                    v2.close();
                }
                throw v0_1;
            }
            if (v1_10.length() == 0) {
                v1_1 = new String("SELECT COUNT(*) from ");
            } else {
                v1_1 = "SELECT COUNT(*) from ".concat(v1_10);
            }
            v2 = v3_1.rawQuery(v1_1, 0);
            if (v2.moveToFirst()) {
                v0_0 = ((int) v2.getLong(0));
            }
            if (v2 != null) {
                v2.close();
            }
        }
        return v0_0;
    }

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


    private final boolean zzg(String p21, long p22)
    {
        this.zzwz().beginTransaction();
        try {
            com.google.android.gms.internal.zzcgl$zza v15_1 = new com.google.android.gms.internal.zzcgl$zza(this, 0);
            int v14_1 = this.zzwz();
            com.google.android.gms.internal.zzcjw v4_10 = 0;
            com.google.android.gms.internal.zzcjz v16_0 = this.zzbsS;
            com.google.android.gms.common.internal.zzbo.zzu(v15_1);
            v14_1.zzjC();
            v14_1.zzkD();
            int v3_4 = 0;
            try {
                com.google.android.gms.internal.zzcjw v13_1;
                String[] v12_1;
                com.google.android.gms.internal.zzcfn v2_3 = v14_1.getWritableDatabase();
            } catch (com.google.android.gms.internal.zzcfn v2_1) {
                v14_1.zzwF().zzyx().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzcfl.zzdZ(v4_10), v2_1);
                if (v3_4 == 0) {
                    if ((v15_1.zztH != null) && (!v15_1.zztH.isEmpty())) {
                        com.google.android.gms.internal.zzcfn v2_24 = 0;
                    } else {
                        v2_24 = 1;
                    }
                    com.google.android.gms.internal.zzcfn v2_27;
                    if (v2_24 != null) {
                        this.zzwz().setTransactionSuccessful();
                        this.zzwz().endTransaction();
                        v2_27 = 0;
                    } else {
                        com.google.android.gms.internal.zzcjw v13_0 = 0;
                        com.google.android.gms.internal.zzcjz v16_1 = v15_1.zzbsZ;
                        com.google.android.gms.internal.zzcfn v2_30 = new com.google.android.gms.internal.zzcjw[v15_1.zztH.size()];
                        v16_1.zzbvE = v2_30;
                        String[] v12_0 = 0;
                        int v14_0 = 0;
                        while (v14_0 < v15_1.zztH.size()) {
                            com.google.android.gms.internal.zzcfn v2_171;
                            int v3_72;
                            if (!this.zzwC().zzN(v15_1.zzbsZ.zzaH, ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name)) {
                                com.google.android.gms.internal.zzcjw v4_71;
                                boolean v17 = this.zzwC().zzO(v15_1.zzbsZ.zzaH, ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name);
                                if (v17) {
                                    int v3_41 = 0;
                                    com.google.android.gms.internal.zzcjw v4_43 = 0;
                                    if (((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw == null) {
                                        int v5_34 = new com.google.android.gms.internal.zzcjx[0];
                                        ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw = v5_34;
                                    }
                                    int v6_20 = ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw;
                                    com.google.android.gms.internal.zzcjx[] v7_27 = v6_20.length;
                                    int v5_35 = 0;
                                    while (v5_35 < v7_27) {
                                        com.google.android.gms.internal.zzcfn v2_173;
                                        com.google.android.gms.internal.zzcfn v2_172 = v6_20[v5_35];
                                        if (!"_c".equals(v2_172.name)) {
                                            if (!"_r".equals(v2_172.name)) {
                                                v2_173 = v4_43;
                                            } else {
                                                v2_172.zzbvA = Long.valueOf(1);
                                                v2_173 = 1;
                                            }
                                        } else {
                                            v2_172.zzbvA = Long.valueOf(1);
                                            v3_41 = 1;
                                            v2_173 = v4_43;
                                        }
                                        v5_35++;
                                        v4_43 = v2_173;
                                    }
                                    if ((v3_41 == 0) && (v17)) {
                                        this.zzwF().zzyD().zzj("Marking event as conversion", this.zzwA().zzdW(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name));
                                        com.google.android.gms.internal.zzcfn v2_127 = ((com.google.android.gms.internal.zzcjx[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw, (((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw.length + 1)));
                                        int v3_46 = new com.google.android.gms.internal.zzcjx();
                                        v3_46.name = "_c";
                                        v3_46.zzbvA = Long.valueOf(1);
                                        v2_127[(v2_127.length - 1)] = v3_46;
                                        ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw = v2_127;
                                    }
                                    if (v4_43 == null) {
                                        this.zzwF().zzyD().zzj("Marking event as real-time", this.zzwA().zzdW(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name));
                                        com.google.android.gms.internal.zzcfn v2_144 = ((com.google.android.gms.internal.zzcjx[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw, (((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw.length + 1)));
                                        int v3_53 = new com.google.android.gms.internal.zzcjx();
                                        v3_53.name = "_r";
                                        v3_53.zzbvA = Long.valueOf(1);
                                        v2_144[(v2_144.length - 1)] = v3_53;
                                        ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw = v2_144;
                                    }
                                    if (this.zzwz().zza(this.zzyZ(), v15_1.zzbsZ.zzaH, 0, 0, 0, 0, 1).zzbpy <= ((long) this.zzbsn.zzdM(v15_1.zzbsZ.zzaH))) {
                                        v13_0 = 1;
                                    } else {
                                        com.google.android.gms.internal.zzcfn v2_148 = ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0));
                                        int v3_62 = 0;
                                        while (v3_62 < v2_148.zzbvw.length) {
                                            if (!"_r".equals(v2_148.zzbvw[v3_62].name)) {
                                                v3_62++;
                                            } else {
                                                com.google.android.gms.internal.zzcjw v4_59 = new com.google.android.gms.internal.zzcjx[(v2_148.zzbvw.length - 1)];
                                                if (v3_62 > 0) {
                                                    System.arraycopy(v2_148.zzbvw, 0, v4_59, 0, v3_62);
                                                }
                                                if (v3_62 < v4_59.length) {
                                                    System.arraycopy(v2_148.zzbvw, (v3_62 + 1), v4_59, v3_62, (v4_59.length - v3_62));
                                                }
                                                v2_148.zzbvw = v4_59;
                                                break;
                                            }
                                        }
                                    }
                                    if ((!com.google.android.gms.internal.zzcjl.zzeo(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name)) || ((!v17) || (this.zzwz().zza(this.zzyZ(), v15_1.zzbsZ.zzaH, 0, 0, 1, 0, 0).zzbpw <= ((long) this.zzbsn.zzb(v15_1.zzbsZ.zzaH, com.google.android.gms.internal.zzcfb.zzbqi))))) {
                                        v4_71 = v13_0;
                                    } else {
                                        this.zzwF().zzyz().zzj("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH));
                                        com.google.android.gms.internal.zzcfn v2_162 = ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0));
                                        int v5_57 = 0;
                                        com.google.android.gms.internal.zzcjw v4_67 = 0;
                                        com.google.android.gms.internal.zzcjx[] v7_33 = v2_162.zzbvw;
                                        int v6_34 = 0;
                                        while (v6_34 < v7_33.length) {
                                            com.google.android.gms.internal.zzcjw v4_72;
                                            int v3_74 = v7_33[v6_34];
                                            if (!"_c".equals(v3_74.name)) {
                                                if (!"_err".equals(v3_74.name)) {
                                                    v3_74 = v4_67;
                                                    v4_72 = v5_57;
                                                } else {
                                                    v4_72 = 1;
                                                    v3_74 = v4_67;
                                                }
                                            } else {
                                                v4_72 = v5_57;
                                            }
                                            v6_34++;
                                            v5_57 = v4_72;
                                            v4_67 = v3_74;
                                        }
                                        if ((v5_57 == 0) || (v4_67 == null)) {
                                            if (v4_67 == null) {
                                                this.zzwF().zzyx().zzj("Did not find conversion parameter. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH));
                                            } else {
                                                v4_67.name = "_err";
                                                v4_67.zzbvA = Long.valueOf(10);
                                                v4_71 = v13_0;
                                            }
                                        } else {
                                            com.google.android.gms.internal.zzcjx[] v7_35 = new com.google.android.gms.internal.zzcjx[(v2_162.zzbvw.length - 1)];
                                            int v5_58 = 0;
                                            com.google.android.gms.internal.zzcjx[] v8_17 = v2_162.zzbvw;
                                            int v9_4 = v8_17.length;
                                            int v6_35 = 0;
                                            while (v6_35 < v9_4) {
                                                int v3_73;
                                                com.google.android.gms.internal.zzcjx v10_4 = v8_17[v6_35];
                                                if (v10_4 == v4_67) {
                                                    v3_73 = v5_58;
                                                } else {
                                                    v3_73 = (v5_58 + 1);
                                                    v7_35[v5_58] = v10_4;
                                                }
                                                v6_35++;
                                                v5_58 = v3_73;
                                            }
                                            v2_162.zzbvw = v7_35;
                                            v4_71 = v13_0;
                                        }
                                    }
                                } else {
                                    this.zzwB();
                                    if (!com.google.android.gms.internal.zzcjl.zzeC(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name)) {
                                    }
                                }
                                int v3_71 = (v12_0 + 1);
                                v16_1.zzbvE[v12_0] = ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0));
                                v2_171 = v3_71;
                                v3_72 = v4_71;
                            } else {
                                com.google.android.gms.internal.zzcfn v2_187;
                                this.zzwF().zzyz().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH), this.zzwA().zzdW(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name));
                                if ((!this.zzwB().zzeA(v15_1.zzbsZ.zzaH)) && (!this.zzwB().zzeB(v15_1.zzbsZ.zzaH))) {
                                    v2_187 = 0;
                                } else {
                                    v2_187 = 1;
                                }
                                if ((v2_187 != null) || ("_err".equals(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name))) {
                                    v2_171 = v12_0;
                                    v3_72 = v13_0;
                                } else {
                                    this.zzwB().zza(v15_1.zzbsZ.zzaH, 11, "_ev", ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name, 0);
                                    v2_171 = v12_0;
                                    v3_72 = v13_0;
                                }
                            }
                            v14_0++;
                            v12_0 = v2_171;
                            v13_0 = v3_72;
                        }
                        if (v12_0 < v15_1.zztH.size()) {
                            v16_1.zzbvE = ((com.google.android.gms.internal.zzcjw[]) java.util.Arrays.copyOf(v16_1.zzbvE, v12_0));
                        }
                        v16_1.zzbvX = this.zza(v15_1.zzbsZ.zzaH, v15_1.zzbsZ.zzbvF, v16_1.zzbvE);
                        v16_1.zzbvH = Long.valueOf(nan);
                        v16_1.zzbvI = Long.valueOf(-0.0);
                        com.google.android.gms.internal.zzcfn v2_46 = 0;
                        while (v2_46 < v16_1.zzbvE.length) {
                            int v3_37 = v16_1.zzbvE[v2_46];
                            if (v3_37.zzbvx.longValue() < v16_1.zzbvH.longValue()) {
                                v16_1.zzbvH = v3_37.zzbvx;
                            }
                            if (v3_37.zzbvx.longValue() > v16_1.zzbvI.longValue()) {
                                v16_1.zzbvI = v3_37.zzbvx;
                            }
                            v2_46++;
                        }
                        int v6_15 = v15_1.zzbsZ.zzaH;
                        com.google.android.gms.internal.zzcjx[] v7_18 = this.zzwz().zzdQ(v6_15);
                        if (v7_18 != null) {
                            if (v16_1.zzbvE.length > 0) {
                                com.google.android.gms.internal.zzcjw v4_22;
                                com.google.android.gms.internal.zzcfn v2_52 = v7_18.zzwM();
                                if (v2_52 == 0) {
                                    v4_22 = 0;
                                } else {
                                    v4_22 = Long.valueOf(v2_52);
                                }
                                v16_1.zzbvK = v4_22;
                                com.google.android.gms.internal.zzcjw v4_23 = v7_18.zzwL();
                                if (v4_23 != 0) {
                                    v2_52 = v4_23;
                                }
                                com.google.android.gms.internal.zzcfn v2_53;
                                if (v2_52 == 0) {
                                    v2_53 = 0;
                                } else {
                                    v2_53 = Long.valueOf(v2_52);
                                }
                                v16_1.zzbvJ = v2_53;
                                v7_18.zzwV();
                                v16_1.zzbvV = Integer.valueOf(((int) v7_18.zzwS()));
                                v7_18.zzL(v16_1.zzbvH.longValue());
                                v7_18.zzM(v16_1.zzbvI.longValue());
                                v16_1.zzboU = v7_18.zzxd();
                                this.zzwz().zza(v7_18);
                            }
                        } else {
                            this.zzwF().zzyx().zzj("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH));
                        }
                        if (v16_1.zzbvE.length > 0) {
                            com.google.android.gms.internal.zzcem.zzxE();
                            com.google.android.gms.internal.zzcfn v2_68 = this.zzwC().zzeh(v15_1.zzbsZ.zzaH);
                            if ((v2_68 != null) && (v2_68.zzbvl != null)) {
                                v16_1.zzbwb = v2_68.zzbvl;
                            } else {
                                if (!android.text.TextUtils.isEmpty(v15_1.zzbsZ.zzboQ)) {
                                    this.zzwF().zzyz().zzj("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH));
                                } else {
                                    v16_1.zzbwb = Long.valueOf(-1);
                                }
                            }
                            this.zzwz().zza(v16_1, v13_0);
                        }
                        this.zzwz().zzG(v15_1.zzbta);
                        int v3_32 = this.zzwz();
                        com.google.android.gms.internal.zzcfn v2_79 = v3_32.getWritableDatabase();
                        int v5_29 = new String[2];
                        v5_29[0] = v6_15;
                        v5_29[1] = v6_15;
                        v2_79.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v5_29);
                        this.zzwz().setTransactionSuccessful();
                        if (v16_1.zzbvE.length <= 0) {
                            v2_27 = 0;
                        } else {
                            v2_27 = 1;
                        }
                        this.zzwz().endTransaction();
                    }
                    return v2_27;
                } else {
                    v3_4.close();
                }
            }
            if (!android.text.TextUtils.isEmpty(0)) {
                int v6_12;
                if (v16_0 == -1) {
                    int v5_20 = new String[1];
                    v5_20[0] = 0;
                    v6_12 = v5_20;
                } else {
                    int v5_25 = new String[2];
                    v5_25[0] = 0;
                    v5_25[1] = String.valueOf(v16_0);
                    v6_12 = v5_25;
                }
                int v5_27;
                if (v16_0 == -1) {
                    v5_27 = "";
                } else {
                    v5_27 = " and rowid <= ?";
                }
                int v3_44 = v2_3.rawQuery(new StringBuilder((String.valueOf(v5_27).length() + 84)).append("select metadata_fingerprint from raw_events where app_id = ?").append(v5_27).append(" order by rowid limit 1;").toString(), v6_12);
                if (v3_44.moveToFirst()) {
                    int v5_45 = v3_44.getString(0);
                    v3_44.close();
                    v13_1 = v5_45;
                    v12_1 = 0;
                } else {
                    if (v3_44 == 0) {
                    } else {
                        v3_44.close();
                    }
                }
            } else {
                int v6_36;
                if (v16_0 == -1) {
                    int v5_56 = new String[1];
                    v5_56[0] = String.valueOf(p22);
                    v6_36 = v5_56;
                } else {
                    int v5_62 = new String[2];
                    v5_62[0] = String.valueOf(v16_0);
                    v5_62[1] = String.valueOf(p22);
                    v6_36 = v5_62;
                }
                int v5_1;
                if (v16_0 == -1) {
                    v5_1 = "";
                } else {
                    v5_1 = "rowid <= ? and ";
                }
                int v3_0 = v2_3.rawQuery(new StringBuilder((String.valueOf(v5_1).length() + 148)).append("select app_id, metadata_fingerprint from raw_events where ").append(v5_1).append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;").toString(), v6_36);
                if (v3_0.moveToFirst()) {
                    com.google.android.gms.internal.zzcjw v4_1 = v3_0.getString(0);
                    int v5_8 = v3_0.getString(1);
                    v3_0.close();
                    v13_1 = v5_8;
                    v12_1 = v4_1;
                } else {
                    if (v3_0 == 0) {
                    } else {
                        v3_0.close();
                    }
                }
            }
            try {
                com.google.android.gms.internal.zzcjw v4_3 = new String[1];
                v4_3[0] = "metadata";
                int v6_2 = new String[2];
                v6_2[0] = v12_1;
                v6_2[1] = v13_1;
                int v11_0 = v2_3.query("raw_events_metadata", v4_3, "app_id = ? and metadata_fingerprint = ?", v6_2, 0, 0, "rowid", "2");
            } catch (com.google.android.gms.internal.zzcfn v2_4) {
                v3_4 = v11_0;
                if (v3_4 != 0) {
                    v3_4.close();
                }
                throw v2_4;
            } catch (com.google.android.gms.internal.zzcfn v2_1) {
                v3_4 = v11_0;
                v4_10 = v12_1;
            }
            if (v11_0.moveToFirst()) {
                int v3_5 = v11_0.getBlob(0);
                int v3_6 = com.google.android.gms.internal.adg.zzb(v3_5, 0, v3_5.length);
                com.google.android.gms.internal.zzcjw v4_6 = new com.google.android.gms.internal.zzcjz();
                try {
                    v4_6.zza(v3_6);
                } catch (com.google.android.gms.internal.zzcfn v2_2) {
                    v14_1.zzwF().zzyx().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzcfl.zzdZ(v12_1), v2_2);
                    if (v11_0 == 0) {
                    } else {
                        v11_0.close();
                    }
                }
                if (v11_0.moveToNext()) {
                    v14_1.zzwF().zzyz().zzj("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzcfl.zzdZ(v12_1));
                }
                int v6_4;
                int v5_15;
                v11_0.close();
                v15_1.zzb(v4_6);
                if (v16_0 == -1) {
                    v5_15 = "app_id = ? and metadata_fingerprint = ?";
                    v6_4 = new String[2];
                    v6_4[0] = v12_1;
                    v6_4[1] = v13_1;
                } else {
                    v5_15 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                    v6_4 = new String[3];
                    v6_4[0] = v12_1;
                    v6_4[1] = v13_1;
                    v6_4[2] = String.valueOf(v16_0);
                }
                com.google.android.gms.internal.zzcjw v4_12 = new String[4];
                v4_12[0] = "rowid";
                v4_12[1] = "name";
                v4_12[2] = "timestamp";
                v4_12[3] = "data";
                v3_4 = v2_3.query("raw_events", v4_12, v5_15, v6_4, 0, 0, "rowid", 0);
                try {
                    if (!v3_4.moveToFirst()) {
                        v14_1.zzwF().zzyz().zzj("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzcfl.zzdZ(v12_1));
                        if (v3_4 == 0) {
                        } else {
                            v3_4.close();
                        }
                    }
                } catch (com.google.android.gms.internal.zzcfn v2_1) {
                    v4_10 = v12_1;
                }
                do {
                    com.google.android.gms.internal.zzcjw v4_13 = v3_4.getLong(0);
                    com.google.android.gms.internal.zzcfn v2_8 = v3_4.getBlob(3);
                    com.google.android.gms.internal.zzcfn v2_9 = com.google.android.gms.internal.adg.zzb(v2_8, 0, v2_8.length);
                    int v6_8 = new com.google.android.gms.internal.zzcjw();
                    v6_8.zza(v2_9);
                    v6_8.name = v3_4.getString(1);
                    v6_8.zzbvx = Long.valueOf(v3_4.getLong(2));
                    if (v15_1.zza(v4_13, v6_8)) {
                    } else {
                        if (v3_4 == 0) {
                        } else {
                            v3_4.close();
                        }
                    }
                } while(v3_4.moveToNext());
                if (v3_4 == 0) {
                } else {
                    v3_4.close();
                }
            } else {
                v14_1.zzwF().zzyx().zzj("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzcfl.zzdZ(v12_1));
                if (v11_0 == 0) {
                } else {
                    v11_0.close();
                }
            }
        } catch (com.google.android.gms.internal.zzcfn v2_193) {
            this.zzwz().endTransaction();
            throw v2_193;
        }
    }

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


    private final boolean zzg(String p21, long p22)
    {
        this.zzwz().beginTransaction();
        try {
            com.google.android.gms.internal.zzcgl$zza v15_1 = new com.google.android.gms.internal.zzcgl$zza(this, 0);
            int v14_1 = this.zzwz();
            com.google.android.gms.internal.zzcjw v4_10 = 0;
            com.google.android.gms.internal.zzcjz v16_0 = this.zzbsS;
            com.google.android.gms.common.internal.zzbo.zzu(v15_1);
            v14_1.zzjC();
            v14_1.zzkD();
            int v3_4 = 0;
            try {
                com.google.android.gms.internal.zzcjw v13_1;
                String[] v12_1;
                com.google.android.gms.internal.zzcfn v2_3 = v14_1.getWritableDatabase();
            } catch (com.google.android.gms.internal.zzcfn v2_1) {
                v14_1.zzwF().zzyx().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzcfl.zzdZ(v4_10), v2_1);
                if (v3_4 == 0) {
                    if ((v15_1.zztH != null) && (!v15_1.zztH.isEmpty())) {
                        com.google.android.gms.internal.zzcfn v2_24 = 0;
                    } else {
                        v2_24 = 1;
                    }
                    com.google.android.gms.internal.zzcfn v2_27;
                    if (v2_24 != null) {
                        this.zzwz().setTransactionSuccessful();
                        this.zzwz().endTransaction();
                        v2_27 = 0;
                    } else {
                        com.google.android.gms.internal.zzcjw v13_0 = 0;
                        com.google.android.gms.internal.zzcjz v16_1 = v15_1.zzbsZ;
                        com.google.android.gms.internal.zzcfn v2_30 = new com.google.android.gms.internal.zzcjw[v15_1.zztH.size()];
                        v16_1.zzbvE = v2_30;
                        String[] v12_0 = 0;
                        int v14_0 = 0;
                        while (v14_0 < v15_1.zztH.size()) {
                            int v3_72;
                            com.google.android.gms.internal.zzcfn v2_171;
                            if (!this.zzwC().zzN(v15_1.zzbsZ.zzaH, ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name)) {
                                com.google.android.gms.internal.zzcjw v4_71;
                                boolean v17 = this.zzwC().zzO(v15_1.zzbsZ.zzaH, ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name);
                                if (v17) {
                                    int v3_41 = 0;
                                    com.google.android.gms.internal.zzcjw v4_43 = 0;
                                    if (((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw == null) {
                                        int v5_34 = new com.google.android.gms.internal.zzcjx[0];
                                        ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw = v5_34;
                                    }
                                    int v6_20 = ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw;
                                    com.google.android.gms.internal.zzcjx[] v7_27 = v6_20.length;
                                    int v5_35 = 0;
                                    while (v5_35 < v7_27) {
                                        com.google.android.gms.internal.zzcfn v2_173;
                                        com.google.android.gms.internal.zzcfn v2_172 = v6_20[v5_35];
                                        if (!"_c".equals(v2_172.name)) {
                                            if (!"_r".equals(v2_172.name)) {
                                                v2_173 = v4_43;
                                            } else {
                                                v2_172.zzbvA = Long.valueOf(1);
                                                v2_173 = 1;
                                            }
                                        } else {
                                            v2_172.zzbvA = Long.valueOf(1);
                                            v3_41 = 1;
                                            v2_173 = v4_43;
                                        }
                                        v5_35++;
                                        v4_43 = v2_173;
                                    }
                                    if ((v3_41 == 0) && (v17)) {
                                        this.zzwF().zzyD().zzj("Marking event as conversion", this.zzwA().zzdW(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name));
                                        com.google.android.gms.internal.zzcfn v2_127 = ((com.google.android.gms.internal.zzcjx[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw, (((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw.length + 1)));
                                        int v3_46 = new com.google.android.gms.internal.zzcjx();
                                        v3_46.name = "_c";
                                        v3_46.zzbvA = Long.valueOf(1);
                                        v2_127[(v2_127.length - 1)] = v3_46;
                                        ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw = v2_127;
                                    }
                                    if (v4_43 == null) {
                                        this.zzwF().zzyD().zzj("Marking event as real-time", this.zzwA().zzdW(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name));
                                        com.google.android.gms.internal.zzcfn v2_144 = ((com.google.android.gms.internal.zzcjx[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw, (((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw.length + 1)));
                                        int v3_53 = new com.google.android.gms.internal.zzcjx();
                                        v3_53.name = "_r";
                                        v3_53.zzbvA = Long.valueOf(1);
                                        v2_144[(v2_144.length - 1)] = v3_53;
                                        ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw = v2_144;
                                    }
                                    if (this.zzwz().zza(this.zzyZ(), v15_1.zzbsZ.zzaH, 0, 0, 0, 0, 1).zzbpy <= ((long) this.zzbsn.zzdM(v15_1.zzbsZ.zzaH))) {
                                        v13_0 = 1;
                                    } else {
                                        com.google.android.gms.internal.zzcfn v2_148 = ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0));
                                        int v3_62 = 0;
                                        while (v3_62 < v2_148.zzbvw.length) {
                                            if (!"_r".equals(v2_148.zzbvw[v3_62].name)) {
                                                v3_62++;
                                            } else {
                                                com.google.android.gms.internal.zzcjw v4_59 = new com.google.android.gms.internal.zzcjx[(v2_148.zzbvw.length - 1)];
                                                if (v3_62 > 0) {
                                                    System.arraycopy(v2_148.zzbvw, 0, v4_59, 0, v3_62);
                                                }
                                                if (v3_62 < v4_59.length) {
                                                    System.arraycopy(v2_148.zzbvw, (v3_62 + 1), v4_59, v3_62, (v4_59.length - v3_62));
                                                }
                                                v2_148.zzbvw = v4_59;
                                                break;
                                            }
                                        }
                                    }
                                    if ((!com.google.android.gms.internal.zzcjl.zzeo(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name)) || ((!v17) || (this.zzwz().zza(this.zzyZ(), v15_1.zzbsZ.zzaH, 0, 0, 1, 0, 0).zzbpw <= ((long) this.zzbsn.zzb(v15_1.zzbsZ.zzaH, com.google.android.gms.internal.zzcfb.zzbqi))))) {
                                        v4_71 = v13_0;
                                    } else {
                                        this.zzwF().zzyz().zzj("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH));
                                        com.google.android.gms.internal.zzcfn v2_162 = ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0));
                                        int v5_57 = 0;
                                        com.google.android.gms.internal.zzcjw v4_67 = 0;
                                        com.google.android.gms.internal.zzcjx[] v7_33 = v2_162.zzbvw;
                                        int v6_34 = 0;
                                        while (v6_34 < v7_33.length) {
                                            com.google.android.gms.internal.zzcjw v4_72;
                                            int v3_74 = v7_33[v6_34];
                                            if (!"_c".equals(v3_74.name)) {
                                                if (!"_err".equals(v3_74.name)) {
                                                    v3_74 = v4_67;
                                                    v4_72 = v5_57;
                                                } else {
                                                    v4_72 = 1;
                                                    v3_74 = v4_67;
                                                }
                                            } else {
                                                v4_72 = v5_57;
                                            }
                                            v6_34++;
                                            v5_57 = v4_72;
                                            v4_67 = v3_74;
                                        }
                                        if ((v5_57 == 0) || (v4_67 == null)) {
                                            if (v4_67 == null) {
                                                this.zzwF().zzyx().zzj("Did not find conversion parameter. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH));
                                            } else {
                                                v4_67.name = "_err";
                                                v4_67.zzbvA = Long.valueOf(10);
                                                v4_71 = v13_0;
                                            }
                                        } else {
                                            com.google.android.gms.internal.zzcjx[] v7_35 = new com.google.android.gms.internal.zzcjx[(v2_162.zzbvw.length - 1)];
                                            int v5_58 = 0;
                                            com.google.android.gms.internal.zzcjx[] v8_17 = v2_162.zzbvw;
                                            int v9_4 = v8_17.length;
                                            int v6_35 = 0;
                                            while (v6_35 < v9_4) {
                                                int v3_73;
                                                com.google.android.gms.internal.zzcjx v10_4 = v8_17[v6_35];
                                                if (v10_4 == v4_67) {
                                                    v3_73 = v5_58;
                                                } else {
                                                    v3_73 = (v5_58 + 1);
                                                    v7_35[v5_58] = v10_4;
                                                }
                                                v6_35++;
                                                v5_58 = v3_73;
                                            }
                                            v2_162.zzbvw = v7_35;
                                            v4_71 = v13_0;
                                        }
                                    }
                                } else {
                                    this.zzwB();
                                    if (!com.google.android.gms.internal.zzcjl.zzeC(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name)) {
                                    }
                                }
                                int v3_71 = (v12_0 + 1);
                                v16_1.zzbvE[v12_0] = ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0));
                                v2_171 = v3_71;
                                v3_72 = v4_71;
                            } else {
                                com.google.android.gms.internal.zzcfn v2_187;
                                this.zzwF().zzyz().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH), this.zzwA().zzdW(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name));
                                if ((!this.zzwB().zzeA(v15_1.zzbsZ.zzaH)) && (!this.zzwB().zzeB(v15_1.zzbsZ.zzaH))) {
                                    v2_187 = 0;
                                } else {
                                    v2_187 = 1;
                                }
                                if ((v2_187 != null) || ("_err".equals(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name))) {
                                    v2_171 = v12_0;
                                    v3_72 = v13_0;
                                } else {
                                    this.zzwB().zza(v15_1.zzbsZ.zzaH, 11, "_ev", ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name, 0);
                                    v2_171 = v12_0;
                                    v3_72 = v13_0;
                                }
                            }
                            v14_0++;
                            v12_0 = v2_171;
                            v13_0 = v3_72;
                        }
                        if (v12_0 < v15_1.zztH.size()) {
                            v16_1.zzbvE = ((com.google.android.gms.internal.zzcjw[]) java.util.Arrays.copyOf(v16_1.zzbvE, v12_0));
                        }
                        v16_1.zzbvX = this.zza(v15_1.zzbsZ.zzaH, v15_1.zzbsZ.zzbvF, v16_1.zzbvE);
                        v16_1.zzbvH = Long.valueOf(nan);
                        v16_1.zzbvI = Long.valueOf(-0.0);
                        com.google.android.gms.internal.zzcfn v2_46 = 0;
                        while (v2_46 < v16_1.zzbvE.length) {
                            int v3_37 = v16_1.zzbvE[v2_46];
                            if (v3_37.zzbvx.longValue() < v16_1.zzbvH.longValue()) {
                                v16_1.zzbvH = v3_37.zzbvx;
                            }
                            if (v3_37.zzbvx.longValue() > v16_1.zzbvI.longValue()) {
                                v16_1.zzbvI = v3_37.zzbvx;
                            }
                            v2_46++;
                        }
                        int v6_15 = v15_1.zzbsZ.zzaH;
                        com.google.android.gms.internal.zzcjx[] v7_18 = this.zzwz().zzdQ(v6_15);
                        if (v7_18 != null) {
                            if (v16_1.zzbvE.length > 0) {
                                com.google.android.gms.internal.zzcjw v4_22;
                                com.google.android.gms.internal.zzcfn v2_52 = v7_18.zzwM();
                                if (v2_52 == 0) {
                                    v4_22 = 0;
                                } else {
                                    v4_22 = Long.valueOf(v2_52);
                                }
                                v16_1.zzbvK = v4_22;
                                com.google.android.gms.internal.zzcjw v4_23 = v7_18.zzwL();
                                if (v4_23 != 0) {
                                    v2_52 = v4_23;
                                }
                                com.google.android.gms.internal.zzcfn v2_53;
                                if (v2_52 == 0) {
                                    v2_53 = 0;
                                } else {
                                    v2_53 = Long.valueOf(v2_52);
                                }
                                v16_1.zzbvJ = v2_53;
                                v7_18.zzwV();
                                v16_1.zzbvV = Integer.valueOf(((int) v7_18.zzwS()));
                                v7_18.zzL(v16_1.zzbvH.longValue());
                                v7_18.zzM(v16_1.zzbvI.longValue());
                                v16_1.zzboU = v7_18.zzxd();
                                this.zzwz().zza(v7_18);
                            }
                        } else {
                            this.zzwF().zzyx().zzj("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH));
                        }
                        if (v16_1.zzbvE.length > 0) {
                            com.google.android.gms.internal.zzcem.zzxE();
                            com.google.android.gms.internal.zzcfn v2_68 = this.zzwC().zzeh(v15_1.zzbsZ.zzaH);
                            if ((v2_68 != null) && (v2_68.zzbvl != null)) {
                                v16_1.zzbwb = v2_68.zzbvl;
                            } else {
                                if (!android.text.TextUtils.isEmpty(v15_1.zzbsZ.zzboQ)) {
                                    this.zzwF().zzyz().zzj("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH));
                                } else {
                                    v16_1.zzbwb = Long.valueOf(-1);
                                }
                            }
                            this.zzwz().zza(v16_1, v13_0);
                        }
                        this.zzwz().zzG(v15_1.zzbta);
                        int v3_32 = this.zzwz();
                        com.google.android.gms.internal.zzcfn v2_79 = v3_32.getWritableDatabase();
                        int v5_29 = new String[2];
                        v5_29[0] = v6_15;
                        v5_29[1] = v6_15;
                        v2_79.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v5_29);
                        this.zzwz().setTransactionSuccessful();
                        if (v16_1.zzbvE.length <= 0) {
                            v2_27 = 0;
                        } else {
                            v2_27 = 1;
                        }
                        this.zzwz().endTransaction();
                    }
                    return v2_27;
                } else {
                    v3_4.close();
                }
            }
            if (!android.text.TextUtils.isEmpty(0)) {
                int v6_12;
                if (v16_0 == -1) {
                    int v5_20 = new String[1];
                    v5_20[0] = 0;
                    v6_12 = v5_20;
                } else {
                    int v5_25 = new String[2];
                    v5_25[0] = 0;
                    v5_25[1] = String.valueOf(v16_0);
                    v6_12 = v5_25;
                }
                int v5_27;
                if (v16_0 == -1) {
                    v5_27 = "";
                } else {
                    v5_27 = " and rowid <= ?";
                }
                int v3_44 = v2_3.rawQuery(new StringBuilder((String.valueOf(v5_27).length() + 84)).append("select metadata_fingerprint from raw_events where app_id = ?").append(v5_27).append(" order by rowid limit 1;").toString(), v6_12);
                if (v3_44.moveToFirst()) {
                    int v5_45 = v3_44.getString(0);
                    v3_44.close();
                    v13_1 = v5_45;
                    v12_1 = 0;
                } else {
                    if (v3_44 == 0) {
                    } else {
                        v3_44.close();
                    }
                }
            } else {
                int v6_36;
                if (v16_0 == -1) {
                    int v5_56 = new String[1];
                    v5_56[0] = String.valueOf(p22);
                    v6_36 = v5_56;
                } else {
                    int v5_62 = new String[2];
                    v5_62[0] = String.valueOf(v16_0);
                    v5_62[1] = String.valueOf(p22);
                    v6_36 = v5_62;
                }
                int v5_1;
                if (v16_0 == -1) {
                    v5_1 = "";
                } else {
                    v5_1 = "rowid <= ? and ";
                }
                int v3_0 = v2_3.rawQuery(new StringBuilder((String.valueOf(v5_1).length() + 148)).append("select app_id, metadata_fingerprint from raw_events where ").append(v5_1).append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;").toString(), v6_36);
                if (v3_0.moveToFirst()) {
                    com.google.android.gms.internal.zzcjw v4_1 = v3_0.getString(0);
                    int v5_8 = v3_0.getString(1);
                    v3_0.close();
                    v13_1 = v5_8;
                    v12_1 = v4_1;
                } else {
                    if (v3_0 == 0) {
                    } else {
                        v3_0.close();
                    }
                }
            }
            try {
                com.google.android.gms.internal.zzcjw v4_3 = new String[1];
                v4_3[0] = "metadata";
                int v6_2 = new String[2];
                v6_2[0] = v12_1;
                v6_2[1] = v13_1;
                int v11_0 = v2_3.query("raw_events_metadata", v4_3, "app_id = ? and metadata_fingerprint = ?", v6_2, 0, 0, "rowid", "2");
            } catch (com.google.android.gms.internal.zzcfn v2_4) {
                v3_4 = v11_0;
                if (v3_4 != 0) {
                    v3_4.close();
                }
                throw v2_4;
            } catch (com.google.android.gms.internal.zzcfn v2_1) {
                v3_4 = v11_0;
                v4_10 = v12_1;
            }
            if (v11_0.moveToFirst()) {
                int v3_5 = v11_0.getBlob(0);
                int v3_6 = com.google.android.gms.internal.adg.zzb(v3_5, 0, v3_5.length);
                com.google.android.gms.internal.zzcjw v4_6 = new com.google.android.gms.internal.zzcjz();
                try {
                    v4_6.zza(v3_6);
                } catch (com.google.android.gms.internal.zzcfn v2_2) {
                    v14_1.zzwF().zzyx().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzcfl.zzdZ(v12_1), v2_2);
                    if (v11_0 == 0) {
                    } else {
                        v11_0.close();
                    }
                }
                if (v11_0.moveToNext()) {
                    v14_1.zzwF().zzyz().zzj("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzcfl.zzdZ(v12_1));
                }
                int v5_15;
                int v6_4;
                v11_0.close();
                v15_1.zzb(v4_6);
                if (v16_0 == -1) {
                    v5_15 = "app_id = ? and metadata_fingerprint = ?";
                    v6_4 = new String[2];
                    v6_4[0] = v12_1;
                    v6_4[1] = v13_1;
                } else {
                    v5_15 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                    v6_4 = new String[3];
                    v6_4[0] = v12_1;
                    v6_4[1] = v13_1;
                    v6_4[2] = String.valueOf(v16_0);
                }
                com.google.android.gms.internal.zzcjw v4_12 = new String[4];
                v4_12[0] = "rowid";
                v4_12[1] = "name";
                v4_12[2] = "timestamp";
                v4_12[3] = "data";
                v3_4 = v2_3.query("raw_events", v4_12, v5_15, v6_4, 0, 0, "rowid", 0);
                try {
                    if (!v3_4.moveToFirst()) {
                        v14_1.zzwF().zzyz().zzj("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzcfl.zzdZ(v12_1));
                        if (v3_4 == 0) {
                        } else {
                            v3_4.close();
                        }
                    }
                } catch (com.google.android.gms.internal.zzcfn v2_1) {
                    v4_10 = v12_1;
                }
                do {
                    com.google.android.gms.internal.zzcjw v4_13 = v3_4.getLong(0);
                    com.google.android.gms.internal.zzcfn v2_8 = v3_4.getBlob(3);
                    com.google.android.gms.internal.zzcfn v2_9 = com.google.android.gms.internal.adg.zzb(v2_8, 0, v2_8.length);
                    int v6_8 = new com.google.android.gms.internal.zzcjw();
                    v6_8.zza(v2_9);
                    v6_8.name = v3_4.getString(1);
                    v6_8.zzbvx = Long.valueOf(v3_4.getLong(2));
                    if (v15_1.zza(v4_13, v6_8)) {
                    } else {
                        if (v3_4 == 0) {
                        } else {
                            v3_4.close();
                        }
                    }
                } while(v3_4.moveToNext());
                if (v3_4 == 0) {
                } else {
                    v3_4.close();
                }
            } else {
                v14_1.zzwF().zzyx().zzj("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzcfl.zzdZ(v12_1));
                if (v11_0 == 0) {
                } else {
                    v11_0.close();
                }
            }
        } catch (com.google.android.gms.internal.zzcfn v2_193) {
            this.zzwz().endTransaction();
            throw v2_193;
        }
    }

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p7)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            com.google.android.gms.internal.zzcfl v0_4 = p7.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_4.moveToFirst();
                v0_4.close();
            } catch (Throwable v1_2) {
                v0_4.close();
                throw v1_2;
            }
        }
        com.google.android.gms.internal.zzcen.zza(this.zzbqH.zzwF(), p7, "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.zzcfh.zza() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final boolean zza(int p14, byte[] p15)
    {
        int v0_3;
        super.zzwp();
        super.zzjC();
        if (!this.zzbqG) {
            android.content.ContentValues v7_1 = new android.content.ContentValues();
            v7_1.put("type", Integer.valueOf(p14));
            v7_1.put("entry", p15);
            com.google.android.gms.internal.zzcem.zzxN();
            int v6 = 0;
            int v0_1 = 5;
            while (v6 < 5) {
                android.database.Cursor v2 = 0;
                try {
                    android.database.sqlite.SQLiteDatabase v3 = this.getWritableDatabase();
                } catch (com.google.android.gms.internal.zzcfn v1_1) {
                    super.zzwF().zzyx().zzj("Error writing entry to local database", v1_1);
                    this.zzbqG = 1;
                    if (v2 != null) {
                        v2.close();
                    }
                    if (v3 == null) {
                        v6++;
                    } else {
                        v3.close();
                    }
                    v3.insertOrThrow("messages", 0, v7_1);
                    v3.setTransactionSuccessful();
                    v3.endTransaction();
                    if (v2 != null) {
                        v2.close();
                    }
                    if (v3 != null) {
                        v3.close();
                    }
                    v0_3 = 1;
                } catch (com.google.android.gms.internal.zzcfn v1_21) {
                    if (android.os.Build$VERSION.SDK_INT < 11) {
                        if (v3 != null) {
                            if (v3.inTransaction()) {
                                v3.endTransaction();
                            }
                        }
                        super.zzwF().zzyx().zzj("Error writing entry to local database", v1_21);
                        this.zzbqG = 1;
                    } else {
                        if (!(v1_21 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                        } else {
                            android.os.SystemClock.sleep(((long) v0_1));
                            v0_1 += 20;
                        }
                    }
                    if (v2 != null) {
                        v2.close();
                    }
                    if (v3 == null) {
                    } else {
                        v3.close();
                    }
                } catch (int v0_2) {
                    if (v2 != null) {
                        v2.close();
                    }
                    if (v3 != null) {
                        v3.close();
                    }
                    throw v0_2;
                }
                if (v3 != null) {
                    v3.beginTransaction();
                    Long v4_4 = 0;
                    v2 = v3.rawQuery("select count(1) from messages", 0);
                    if ((v2 != null) && (v2.moveToFirst())) {
                        v4_4 = v2.getLong(0);
                    }
                    if (v4_4 >= 100000) {
                        super.zzwF().zzyx().log("Data loss, local db full");
                        Long v4_6 = ((100000 - v4_4) + 1);
                        String[] v9_1 = new String[1];
                        v9_1[0] = Long.toString(v4_6);
                        long v8_6 = ((long) v3.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v9_1));
                        if (v8_6 != v4_6) {
                            super.zzwF().zzyx().zzd("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v4_6), Long.valueOf(v8_6), Long.valueOf((v4_6 - v8_6)));
                        }
                    }
                } else {
                    this.zzbqG = 1;
                    if (v3 != null) {
                        v3.close();
                    }
                    v0_3 = 0;
                }
            }
            super.zzwF().zzyz().log("Failed to write entry to local database");
            v0_3 = 0;
        } else {
            v0_3 = 0;
        }
        return v0_3;
    }

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p13)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            com.google.android.gms.internal.zzcfl v0_12 = p13.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_12.moveToFirst();
                v0_12.close();
            } catch (Throwable v1_6) {
                v0_12.close();
                throw v1_6;
            }
        }
        com.google.android.gms.internal.zzcen.zza(this.zzbpz.zzwF(), p13, "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.zzcen.zza(this.zzbpz.zzwF(), p13, "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.zzcen.zza(this.zzbpz.zzwF(), p13, "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.zzcen.zzyl());
        com.google.android.gms.internal.zzcen.zza(this.zzbpz.zzwF(), p13, "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.zzcen.zzym());
        com.google.android.gms.internal.zzcen.zza(this.zzbpz.zzwF(), p13, "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.zzcen.zzyn());
        com.google.android.gms.internal.zzcen.zza(this.zzbpz.zzwF(), p13, "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.zzcen.zza(this.zzbpz.zzwF(), p13, "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.zzcen.zzyo());
        com.google.android.gms.internal.zzcen.zza(this.zzbpz.zzwF(), p13, "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.zzcen.zza(this.zzbpz.zzwF(), p13, "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.zzcen.zza(this.zzbpz.zzwF(), p13, "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.zzcen.zza(this.zzbpz.zzwF(), p13, "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.zzcen.zzyp());
        return;
    }

Method com.google.android.gms.internal.zzcen.zzyj() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


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

Method com.google.android.gms.internal.zzcen.zzyc() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final String zzyc()
    {
        String v0_0 = 0;
        try {
            Throwable v2_0 = this.getWritableDatabase().rawQuery("select app_id from queue order by has_realtime desc, rowid asc limit 1;", 0);
            try {
                if (!v2_0.moveToFirst()) {
                    if (v2_0 == null) {
                        return v0_0;
                    } else {
                        v2_0.close();
                        return v0_0;
                    }
                } else {
                    v0_0 = v2_0.getString(0);
                    if (v2_0 == null) {
                        return v0_0;
                    } else {
                        v2_0.close();
                        return v0_0;
                    }
                }
            } catch (int v1_1) {
                this.zzwF().zzyx().zzj("Database error getting next bundle app id", v1_1);
                if (v2_0 == null) {
                    return v0_0;
                } else {
                    v2_0.close();
                    return v0_0;
                }
            }
        } catch (int v1_4) {
            v2_0 = 0;
            String v0_1 = v1_4;
            if (v2_0 != null) {
                v2_0.close();
            }
            throw v0_1;
        } catch (int v1_1) {
            v2_0 = 0;
        } catch (String v0_1) {
        }
    }

Method com.google.android.gms.internal.zzcen.zzaa() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final String zzaa(long p8)
    {
        String v0_0 = 0;
        this.zzjC();
        this.zzkD();
        try {
            int v1_4 = this.getWritableDatabase();
            String v3_4 = new String[1];
            v3_4[0] = String.valueOf(p8);
            Throwable v2_0 = v1_4.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_4);
            try {
                if (v2_0.moveToFirst()) {
                    v0_0 = v2_0.getString(0);
                    if (v2_0 == null) {
                        return v0_0;
                    } else {
                        v2_0.close();
                        return v0_0;
                    }
                } else {
                    this.zzwF().zzyD().log("No expired configs for apps with pending events");
                    if (v2_0 == null) {
                        return v0_0;
                    } else {
                        v2_0.close();
                        return v0_0;
                    }
                }
            } catch (int v1_0) {
                this.zzwF().zzyx().zzj("Error selecting expired configs", v1_0);
                if (v2_0 == null) {
                    return v0_0;
                } else {
                    v2_0.close();
                    return v0_0;
                }
            }
        } catch (int v1_1) {
            v2_0 = 0;
            String v0_1 = v1_1;
            if (v2_0 != null) {
                v2_0.close();
            }
            throw v0_1;
        } catch (int v1_0) {
            v2_0 = 0;
        } catch (String v0_1) {
        }
    }

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


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

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


    private final long zzb(String p5, String[] p6)
    {
        try {
            android.database.Cursor v1 = this.getWritableDatabase().rawQuery(p5, p6);
        } catch (android.database.sqlite.SQLiteException v0_2) {
            this.zzwF().zzyx().zze("Database error", p5, v0_2);
            throw v0_2;
        } catch (android.database.sqlite.SQLiteException v0_3) {
            if (v1 != null) {
                v1.close();
            }
            throw v0_3;
        }
        if (!v1.moveToFirst()) {
            throw new android.database.sqlite.SQLiteException("Database returned empty set");
        } else {
            com.google.android.gms.internal.zzcfn v2_2 = v1.getLong(0);
            if (v1 != null) {
                v1.close();
            }
            return v2_2;
        }
    }

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


    private final long zza(String p6, String[] p7, long p8)
    {
        try {
            android.database.Cursor v1 = this.getWritableDatabase().rawQuery(p6, p7);
        } catch (int v0_4) {
            this.zzwF().zzyx().zze("Database error", p6, v0_4);
            throw v0_4;
        } catch (int v0_1) {
            if (v1 != null) {
                v1.close();
            }
            throw v0_1;
        }
        if (!v1.moveToFirst()) {
            if (v1 != null) {
                v1.close();
            }
        } else {
            p8 = v1.getLong(0);
            if (v1 != null) {
                v1.close();
            }
        }
        return p8;
    }

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p9)
    {
        String v0_0 = 1;
        if (android.os.Build$VERSION.SDK_INT < 15) {
            int v2_13 = p9.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v2_13.moveToFirst();
                v2_13.close();
            } catch (String v0_1) {
                v2_13.close();
                throw v0_1;
            }
        }
        if (this.zza(p9, "hits2")) {
            int v3_0 = com.google.android.gms.internal.zzamt.zzb(p9, "hits2");
            String[] v4 = new String[4];
            v4[0] = "hit_id";
            v4[1] = "hit_string";
            v4[2] = "hit_time";
            v4[3] = "hit_url";
            int v2_8 = 0;
            while (v2_8 < 4) {
                String v5_2 = v4[v2_8];
                if (v3_0.remove(v5_2)) {
                    v2_8++;
                } else {
                    String v0_7;
                    String v0_5 = String.valueOf(v5_2);
                    if (v0_5.length() == 0) {
                        v0_7 = new String("Database hits2 is missing required column: ");
                    } else {
                        v0_7 = "Database hits2 is missing required column: ".concat(v0_5);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_7);
                }
            }
            if (v3_0.remove("hit_app_id")) {
                v0_0 = 0;
            }
            if (v3_0.isEmpty()) {
                if (v0_0 != null) {
                    p9.execSQL("ALTER TABLE hits2 ADD COLUMN hit_app_id INTEGER");
                }
            } else {
                throw new android.database.sqlite.SQLiteException("Database hits2 has extra columns");
            }
        } else {
            p9.execSQL(com.google.android.gms.internal.zzams.zzkV());
        }
        if (this.zza(p9, "properties")) {
            com.google.android.gms.internal.zzamt.zza(p9);
        } else {
            p9.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.zzamt.zzb() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private static java.util.Set zzb(android.database.sqlite.SQLiteDatabase p5, String p6)
    {
        java.util.HashSet v1_1 = new java.util.HashSet();
        android.database.Cursor v2_2 = p5.rawQuery(new StringBuilder((String.valueOf(p6).length() + 22)).append("SELECT * FROM ").append(p6).append(" LIMIT 0").toString(), 0);
        try {
            String[] v3 = v2_2.getColumnNames();
            int v0_4 = 0;
        } catch (int v0_5) {
            v2_2.close();
            throw v0_5;
        }
        while (v0_4 < v3.length) {
            v1_1.add(v3[v0_4]);
            v0_4++;
        }
        v2_2.close();
        return v1_1;
    }

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


    private final long zzb(String p5, String[] p6)
    {
        try {
            android.database.Cursor v1 = this.getWritableDatabase().rawQuery(p5, 0);
        } catch (android.database.sqlite.SQLiteException v0_1) {
            this.zzd("Database error", p5, v0_1);
            throw v0_1;
        } catch (android.database.sqlite.SQLiteException v0_2) {
            if (v1 != null) {
                v1.close();
            }
            throw v0_2;
        }
        if (!v1.moveToFirst()) {
            throw new android.database.sqlite.SQLiteException("Database returned empty set");
        } else {
            String v2_2 = v1.getLong(0);
            if (v1 != null) {
                v1.close();
            }
            return v2_2;
        }
    }

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


    private final long zza(String p4, String[] p5, long p6)
    {
        String v1 = 0;
        try {
            String v2_1 = this.getWritableDatabase().rawQuery(p4, p5);
            try {
                long v0_2;
                if (!v2_1.moveToFirst()) {
                    if (v2_1 != null) {
                        v2_1.close();
                    }
                    v0_2 = 0;
                } else {
                    v0_2 = v2_1.getLong(0);
                    if (v2_1 != null) {
                        v2_1.close();
                    }
                }
            } catch (long v0_1) {
                v1 = v2_1;
                if (v1 != null) {
                    v1.close();
                }
                throw v0_1;
            } catch (long v0_4) {
                v1 = v2_1;
                this.zzd("Database error", p4, v0_4);
                throw v0_4;
            }
            return v0_2;
        } catch (long v0_1) {
        } catch (long v0_4) {
        }
    }

Method com.google.android.gms.internal.nb.zzFt() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


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

Method com.google.android.gms.internal.nb.zzN() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private static android.database.sqlite.SQLiteDatabase zzN(android.content.Context p3, String p4)
    {
        try {
            android.database.sqlite.SQLiteException v0_3 = new com.google.android.gms.internal.ne(p3, p4).getWritableDatabase();
            v0_3.rawQuery("PRAGMA locking_mode = EXCLUSIVE", 0).close();
            v0_3.beginTransaction();
            v0_3.endTransaction();
            return v0_3;
        } catch (android.database.sqlite.SQLiteException v0_2) {
            if (!(v0_2 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                throw v0_2;
            } 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.", v0_2);
            }
        }
    }

Method io.fabric.sdk.android.FabricContext.openOrCreateDatabase() calling method android.database.sqlite.SQLiteDatabase.openOrCreateDatabase()


    public android.database.sqlite.SQLiteDatabase openOrCreateDatabase(String p2, int p3, android.database.sqlite.SQLiteDatabase$CursorFactory p4, android.database.DatabaseErrorHandler p5)
    {
        return android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(this.getDatabasePath(p2).getPath(), p4, p5);
    }

Method io.fabric.sdk.android.FabricContext.openOrCreateDatabase() calling method android.database.sqlite.SQLiteDatabase.openOrCreateDatabase()


    public android.database.sqlite.SQLiteDatabase openOrCreateDatabase(String p2, int p3, android.database.sqlite.SQLiteDatabase$CursorFactory p4)
    {
        return android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(this.getDatabasePath(p2), p4);
    }

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


    public final void zza(long p8, String p10, String p11, String p12, java.util.Map p13, String p14)
    {
        String v0_28 = this.zzvw.currentTimeMillis();
        if (v0_28 > (this.zzbFy + 86400000)) {
            this.zzbFy = v0_28;
            String v0_5 = this.zzfg("Error opening database for deleteStaleHits.");
            if (v0_5 != null) {
                String v0_35;
                String[] v5_1 = new String[1];
                v5_1[0] = Long.toString((this.zzvw.currentTimeMillis() - 1.280618154e-314));
                com.google.android.gms.internal.zzcvk.v(new StringBuilder(31).append("Removed ").append(v0_5.delete("gtm_hits", "HIT_TIME < ?", v5_1)).append(" stale hits.").toString());
                if (this.zzfF("gtm_hits") != 0) {
                    v0_35 = 0;
                } else {
                    v0_35 = 1;
                }
                this.zzbIA.zzar(v0_35);
            }
        }
        String v0_39 = ((this.zzfF("gtm_hits") - this.zzbFz) + 1);
        if (v0_39 > null) {
            String v0_40 = this.zzbD(v0_39);
            com.google.android.gms.internal.zzcvk.v(new StringBuilder(51).append("Store full, deleting ").append(v0_40.size()).append(" hits to make room.").toString());
            String v1_19 = new String[0];
            this.zzd(((String[]) v0_40.toArray(v1_19)));
        }
        String v1_20 = this.zzfg("Error opening database for putHit");
        if (v1_20 != null) {
            int v2_15 = new android.content.ContentValues();
            v2_15.put("hit_time", Long.valueOf(p8));
            v2_15.put("hit_url", p10);
            v2_15.put("hit_first_send_time", Integer.valueOf(0));
            if (p11 == null) {
                p11 = "GET";
            }
            String v0_4;
            v2_15.put("hit_method", p11);
            v2_15.put("hit_unique_id", p12);
            if (p13 != null) {
                v0_4 = new org.json.JSONObject(p13).toString();
            } else {
                v0_4 = 0;
            }
            v2_15.put("hit_headers", v0_4);
            v2_15.put("hit_body", p14);
            try {
                v1_20.insertOrThrow("gtm_hits", 0, v2_15);
                com.google.android.gms.internal.zzcvk.v(new StringBuilder((String.valueOf(p10).length() + 19)).append("Hit stored (url = ").append(p10).append(")").toString());
                this.zzbIA.zzar(0);
            } catch (String v0) {
                String v0_22 = String.valueOf(p10);
                if (v0_22.length() == 0) {
                    String v0_24 = new String("Hit has already been sent: ");
                } else {
                    v0_24 = "Hit has already been sent: ".concat(v0_22);
                }
                com.google.android.gms.internal.zzcvk.v(v0_24);
            } catch (String v0_17) {
                String v0_19 = String.valueOf(v0_17.getMessage());
                if (v0_19.length() == 0) {
                    String v0_21 = new String("Error storing hit: ");
                } else {
                    v0_21 = "Error storing hit: ".concat(v0_19);
                }
                com.google.android.gms.internal.zzcvk.zzaT(v0_21);
            }
        }
        if (com.google.android.gms.internal.zzcvs.zzCw().isPreview()) {
            com.google.android.gms.internal.zzcvk.v("Sending hits immediately under preview.");
            this.dispatch();
        }
        return;
    }

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


    private final boolean zza(int p14, byte[] p15)
    {
        int v0_3;
        super.zzwp();
        super.zzjC();
        if (!this.zzbqG) {
            android.content.ContentValues v7_1 = new android.content.ContentValues();
            v7_1.put("type", Integer.valueOf(p14));
            v7_1.put("entry", p15);
            com.google.android.gms.internal.zzcem.zzxN();
            int v6 = 0;
            int v0_1 = 5;
            while (v6 < 5) {
                android.database.Cursor v2 = 0;
                try {
                    android.database.sqlite.SQLiteDatabase v3 = this.getWritableDatabase();
                } catch (com.google.android.gms.internal.zzcfn v1_1) {
                    super.zzwF().zzyx().zzj("Error writing entry to local database", v1_1);
                    this.zzbqG = 1;
                    if (v2 != null) {
                        v2.close();
                    }
                    if (v3 == null) {
                        v6++;
                    } else {
                        v3.close();
                    }
                    v3.insertOrThrow("messages", 0, v7_1);
                    v3.setTransactionSuccessful();
                    v3.endTransaction();
                    if (v2 != null) {
                        v2.close();
                    }
                    if (v3 != null) {
                        v3.close();
                    }
                    v0_3 = 1;
                } catch (com.google.android.gms.internal.zzcfn v1_21) {
                    if (android.os.Build$VERSION.SDK_INT < 11) {
                        if (v3 != null) {
                            if (v3.inTransaction()) {
                                v3.endTransaction();
                            }
                        }
                        super.zzwF().zzyx().zzj("Error writing entry to local database", v1_21);
                        this.zzbqG = 1;
                    } else {
                        if (!(v1_21 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                        } else {
                            android.os.SystemClock.sleep(((long) v0_1));
                            v0_1 += 20;
                        }
                    }
                    if (v2 != null) {
                        v2.close();
                    }
                    if (v3 == null) {
                    } else {
                        v3.close();
                    }
                } catch (int v0_2) {
                    if (v2 != null) {
                        v2.close();
                    }
                    if (v3 != null) {
                        v3.close();
                    }
                    throw v0_2;
                }
                if (v3 != null) {
                    v3.beginTransaction();
                    Long v4_4 = 0;
                    v2 = v3.rawQuery("select count(1) from messages", 0);
                    if ((v2 != null) && (v2.moveToFirst())) {
                        v4_4 = v2.getLong(0);
                    }
                    if (v4_4 >= 100000) {
                        super.zzwF().zzyx().log("Data loss, local db full");
                        Long v4_6 = ((100000 - v4_4) + 1);
                        String[] v9_1 = new String[1];
                        v9_1[0] = Long.toString(v4_6);
                        long v8_6 = ((long) v3.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v9_1));
                        if (v8_6 != v4_6) {
                            super.zzwF().zzyx().zzd("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v4_6), Long.valueOf(v8_6), Long.valueOf((v4_6 - v8_6)));
                        }
                    }
                } else {
                    this.zzbqG = 1;
                    if (v3 != null) {
                        v3.close();
                    }
                    v0_3 = 0;
                }
            }
            super.zzwF().zzyz().log("Failed to write entry to local database");
            v0_3 = 0;
        } else {
            v0_3 = 0;
        }
        return v0_3;
    }

Method com.hypertrack.hyperlog.DeviceLogTable.addDeviceLog() calling method android.database.sqlite.SQLiteDatabase.insert()


    static void addDeviceLog(android.database.sqlite.SQLiteDatabase p5, String p6)
    {
        if ((p5 != null) && (!android.text.TextUtils.isEmpty(p6))) {
            android.content.ContentValues v0_1 = new android.content.ContentValues();
            v0_1.put("device_log", p6);
            try {
                p5.insert("device_logs", 0, v0_1);
            } catch (Exception v1) {
                v1.printStackTrace();
                com.hypertrack.hyperlog.HyperLog.e(com.hypertrack.hyperlog.DeviceLogTable.TAG, new StringBuilder().append("DeviceLogTable: Exception occurred while addDeviceLog: ").append(v1).toString());
            }
        }
        return;
    }

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


    public final void zzb(long p10, String p12)
    {
        String v0_0 = 1;
        android.content.ContentValues v2_5 = this.zzvw.currentTimeMillis();
        if (v2_5 > (this.zzbFy + 86400000)) {
            this.zzbFy = v2_5;
            android.content.ContentValues v2_1 = this.zzfg("Error opening database for deleteStaleHits.");
            if (v2_1 != null) {
                String[] v7 = new String[1];
                v7[0] = Long.toString((this.zzvw.currentTimeMillis() - 1.280618154e-314));
                v2_1.delete("gtm_hits", "HIT_TIME < ?", v7);
                if (this.zzBA() != 0) {
                    v0_0 = 0;
                }
                this.zzbFw.zzar(v0_0);
            }
        }
        String v0_3 = ((this.zzBA() - this.zzbFz) + 1);
        if (v0_3 > null) {
            String v0_4 = this.zzbD(v0_3);
            com.google.android.gms.tagmanager.zzdj.v(new StringBuilder(51).append("Store full, deleting ").append(v0_4.size()).append(" hits to make room.").toString());
            android.content.ContentValues v2_10 = new String[0];
            this.zzd(((String[]) v0_4.toArray(v2_10)));
        }
        String v0_8 = this.zzfg("Error opening database for putHit");
        if (v0_8 != null) {
            android.content.ContentValues v2_12 = new android.content.ContentValues();
            v2_12.put("hit_time", Long.valueOf(p10));
            v2_12.put("hit_url", p12);
            v2_12.put("hit_first_send_time", Integer.valueOf(0));
            try {
                v0_8.insert("gtm_hits", 0, v2_12);
                this.zzbFw.zzar(0);
            } catch (String v0) {
                com.google.android.gms.tagmanager.zzdj.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 p7, long p8)
    {
        android.database.sqlite.SQLiteDatabase v1 = this.zzfg("Error opening database for writeEntryToDatabase.");
        if (v1 != null) {
            java.util.Iterator v2 = p7.iterator();
            while (v2.hasNext()) {
                String v0_2 = ((com.google.android.gms.tagmanager.zzay) v2.next());
                android.content.ContentValues v3_1 = new android.content.ContentValues();
                v3_1.put("expires", Long.valueOf(p8));
                v3_1.put("key", v0_2.zzBN);
                v3_1.put("value", v0_2.zzbEw);
                v1.insert("datalayer", 0, v3_1);
            }
        }
        return;
    }

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


    public final boolean zza(com.google.android.gms.internal.zzcjz p11, boolean p12)
    {
        String v2 = 0;
        this.zzjC();
        this.zzkD();
        com.google.android.gms.common.internal.zzbo.zzu(p11);
        com.google.android.gms.common.internal.zzbo.zzcF(p11.zzaH);
        com.google.android.gms.common.internal.zzbo.zzu(p11.zzbvI);
        this.zzye();
        Object v4_2 = this.zzkq().currentTimeMillis();
        if ((p11.zzbvI.longValue() < (v4_2 - com.google.android.gms.internal.zzcem.zzxG())) || (p11.zzbvI.longValue() > (com.google.android.gms.internal.zzcem.zzxG() + v4_2))) {
            this.zzwF().zzyz().zzd("Storing bundle outside of the max uploading time span. appId, now, timestamp", com.google.android.gms.internal.zzcfl.zzdZ(p11.zzaH), Long.valueOf(v4_2), p11.zzbvI);
        }
        try {
            com.google.android.gms.internal.zzcfn v0_16;
            com.google.android.gms.internal.zzcfn v0_11 = new byte[p11.zzLV()];
            Object v3_5 = com.google.android.gms.internal.adh.zzc(v0_11, 0, v0_11.length);
            p11.zza(v3_5);
            v3_5.zzLM();
            com.google.android.gms.internal.zzcfn v0_13 = this.zzwB().zzl(v0_11);
            this.zzwF().zzyD().zzj("Saving bundle, size", Integer.valueOf(v0_13.length));
            Object v3_10 = new android.content.ContentValues();
            v3_10.put("app_id", p11.zzaH);
            v3_10.put("bundle_end_timestamp", p11.zzbvI);
            v3_10.put("data", v0_13);
        } catch (com.google.android.gms.internal.zzcfn v0_15) {
            this.zzwF().zzyx().zze("Data loss. Failed to serialize bundle. appId", com.google.android.gms.internal.zzcfl.zzdZ(p11.zzaH), v0_15);
            return v2;
        }
        if (!p12) {
            v0_16 = 0;
        } else {
            v0_16 = 1;
        }
        v3_10.put("has_realtime", Integer.valueOf(v0_16));
        try {
            if (this.getWritableDatabase().insert("queue", 0, v3_10) != -1) {
                v2 = 1;
                return v2;
            } else {
                this.zzwF().zzyx().zzj("Failed to insert bundle (got -1). appId", com.google.android.gms.internal.zzcfl.zzdZ(p11.zzaH));
                return v2;
            }
        } catch (com.google.android.gms.internal.zzcfn v0_3) {
            this.zzwF().zzyx().zze("Error storing bundle. appId", com.google.android.gms.internal.zzcfl.zzdZ(p11.zzaH), v0_3);
            return v2;
        }
    }

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


    public final boolean zza(com.google.android.gms.internal.zzceu p11, long p12, boolean p14)
    {
        Object v2 = 0;
        this.zzjC();
        this.zzkD();
        com.google.android.gms.common.internal.zzbo.zzu(p11);
        com.google.android.gms.common.internal.zzbo.zzcF(p11.mAppId);
        int v5_7 = new com.google.android.gms.internal.zzcjw();
        v5_7.zzbvy = Long.valueOf(p11.zzbpE);
        com.google.android.gms.internal.zzcfn v0_7 = new com.google.android.gms.internal.zzcjx[p11.zzbpF.size()];
        v5_7.zzbvw = v0_7;
        long v6_0 = p11.zzbpF.iterator();
        String v1_4 = 0;
        while (v6_0.hasNext()) {
            com.google.android.gms.internal.zzcfn v0_3 = ((String) v6_0.next());
            com.google.android.gms.internal.zzcjx v7_1 = new com.google.android.gms.internal.zzcjx();
            Object v3_2 = (v1_4 + 1);
            v5_7.zzbvw[v1_4] = v7_1;
            v7_1.name = v0_3;
            this.zzwB().zza(v7_1, p11.zzbpF.get(v0_3));
            v1_4 = v3_2;
        }
        try {
            com.google.android.gms.internal.zzcfn v0_14;
            com.google.android.gms.internal.zzcfn v0_11 = new byte[v5_7.zzLV()];
            String v1_6 = com.google.android.gms.internal.adh.zzc(v0_11, 0, v0_11.length);
            v5_7.zza(v1_6);
            v1_6.zzLM();
            this.zzwF().zzyD().zze("Saving event, name, data size", this.zzwA().zzdW(p11.mName), Integer.valueOf(v0_11.length));
            String v1_10 = new android.content.ContentValues();
            v1_10.put("app_id", p11.mAppId);
            v1_10.put("name", p11.mName);
            v1_10.put("timestamp", Long.valueOf(p11.zzayS));
            v1_10.put("metadata_fingerprint", Long.valueOf(p12));
            v1_10.put("data", v0_11);
        } catch (com.google.android.gms.internal.zzcfn v0_13) {
            this.zzwF().zzyx().zze("Data loss. Failed to serialize event params/data. appId", com.google.android.gms.internal.zzcfl.zzdZ(p11.mAppId), v0_13);
            return v2;
        }
        if (!p14) {
            v0_14 = 0;
        } else {
            v0_14 = 1;
        }
        v1_10.put("realtime", Integer.valueOf(v0_14));
        try {
            if (this.getWritableDatabase().insert("raw_events", 0, v1_10) != -1) {
                v2 = 1;
                return v2;
            } else {
                this.zzwF().zzyx().zzj("Failed to insert raw event (got -1). appId", com.google.android.gms.internal.zzcfl.zzdZ(p11.mAppId));
                return v2;
            }
        } catch (com.google.android.gms.internal.zzcfn v0_0) {
            this.zzwF().zzyx().zze("Error storing raw event. appId", com.google.android.gms.internal.zzcfl.zzdZ(p11.mAppId), v0_0);
            return v2;
        }
    }

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


    public final void zzc(com.google.android.gms.internal.zzanx p7)
    {
        com.google.android.gms.common.internal.zzbo.zzu(p7);
        com.google.android.gms.analytics.zzl.zzjC();
        this.zzkD();
        com.google.android.gms.common.internal.zzbo.zzu(p7);
        String v2_6 = new android.net.Uri$Builder();
        android.content.ContentValues v3_0 = p7.zzdV().entrySet().iterator();
        while (v3_0.hasNext()) {
            Long v0_1 = ((java.util.Map$Entry) v3_0.next());
            String v1_1 = ((String) v0_1.getKey());
            if ((!"ht".equals(v1_1)) && ((!"qt".equals(v1_1)) && (!"AppUID".equals(v1_1)))) {
                v2_6.appendQueryParameter(v1_1, ((String) v0_1.getValue()));
            }
        }
        String v1_2;
        Long v0_6 = v2_6.build().getEncodedQuery();
        if (v0_6 != null) {
            v1_2 = v0_6;
        } else {
            v1_2 = "";
        }
        if (v1_2.length() <= 8192) {
            Long v0_12 = ((Integer) com.google.android.gms.internal.zzans.zzahj.get()).intValue();
            String v2_1 = this.zzkN();
            if (v2_1 > ((long) (v0_12 - 1))) {
                Long v0_13 = this.zzn(((v2_1 - ((long) v0_12)) + 1));
                this.zzd("Store full, deleting hits to make room, count", Integer.valueOf(v0_13.size()));
                this.zzs(v0_13);
            }
            Long v0_19;
            String v2_7 = this.getWritableDatabase();
            android.content.ContentValues v3_4 = new android.content.ContentValues();
            v3_4.put("hit_string", v1_2);
            v3_4.put("hit_time", Long.valueOf(p7.zzlG()));
            v3_4.put("hit_app_id", Integer.valueOf(p7.zzlE()));
            if (!p7.zzlI()) {
                v0_19 = com.google.android.gms.internal.zzank.zzlv();
            } else {
                v0_19 = com.google.android.gms.internal.zzank.zzlu();
            }
            v3_4.put("hit_url", v0_19);
            try {
                Long v0_21 = v2_7.insert("hits2", 0, v3_4);
            } catch (Long v0_24) {
                this.zze("Error storing a hit", v0_24);
            }
            if (v0_21 != -1) {
                this.zzb("Hit saved to database. db-id, hit", Long.valueOf(v0_21), p7);
            } else {
                this.zzbs("Failed to insert a hit (got -1)");
            }
        } else {
            this.zzkr().zza(p7, "Hit length exceeds the maximum allowed size");
        }
        return;
    }

Method com.hypertrack.hyperlog.DeviceLogTable.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static void onUpgrade(android.database.sqlite.SQLiteDatabase p4, int p5, int p6)
    {
        if (p4 != null) {
            try {
                p4.execSQL("DROP TABLE IF EXISTS device_logs");
                com.hypertrack.hyperlog.DeviceLogTable.onCreate(p4);
                com.hypertrack.hyperlog.HyperLog.i(com.hypertrack.hyperlog.DeviceLogTable.TAG, "DeviceLogTable onUpgrade called. Executing drop_table query to clear old logs.");
            } catch (Exception v0) {
                v0.printStackTrace();
                com.hypertrack.hyperlog.HyperLog.e(com.hypertrack.hyperlog.DeviceLogTable.TAG, new StringBuilder().append("DeviceLogTable: Exception occurred while onUpgrade: ").append(v0).toString());
            }
        }
        return;
    }

Method com.hypertrack.hyperlog.DeviceLogTable.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static void onCreate(android.database.sqlite.SQLiteDatabase p4)
    {
        if (p4 != null) {
            try {
                p4.execSQL("CREATE TABLE IF NOT EXISTS device_logs (_id INTEGER PRIMARY KEY AUTOINCREMENT, device_log TEXT);");
            } catch (Exception v0) {
                v0.printStackTrace();
                com.hypertrack.hyperlog.HyperLog.e(com.hypertrack.hyperlog.DeviceLogTable.TAG, new StringBuilder().append("DeviceLogTable: Exception occurred while onCreate: ").append(v0).toString());
            }
        }
        return;
    }

Method com.google.android.gms.tagmanager.zzee.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) {
            android.database.sqlite.SQLiteException v0_20 = p6.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_20.moveToFirst();
                v0_20.close();
            } catch (String v1_4) {
                v0_20.close();
                throw v1_4;
            }
        }
        if (com.google.android.gms.tagmanager.zzee.zza("gtm_hits", p6)) {
            String v1_0 = p6.rawQuery("SELECT * FROM gtm_hits WHERE 0", 0);
            java.util.HashSet v2_2 = new java.util.HashSet();
            try {
                String[] v3 = v1_0.getColumnNames();
                android.database.sqlite.SQLiteException v0_4 = 0;
            } catch (android.database.sqlite.SQLiteException v0_5) {
                v1_0.close();
                throw v0_5;
            }
            while (v0_4 < v3.length) {
                v2_2.add(v3[v0_4]);
                v0_4++;
            }
            v1_0.close();
            if ((v2_2.remove("hit_id")) && ((v2_2.remove("hit_url")) && ((v2_2.remove("hit_time")) && (v2_2.remove("hit_first_send_time"))))) {
                if (!v2_2.isEmpty()) {
                    throw new android.database.sqlite.SQLiteException("Database has extra columns");
                }
            } else {
                throw new android.database.sqlite.SQLiteException("Database column missing");
            }
        } else {
            p6.execSQL(com.google.android.gms.tagmanager.zzec.zzBC());
        }
        return;
    }

Method com.google.android.gms.tagmanager.zzax.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) {
            android.database.sqlite.SQLiteException v0_20 = p6.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_20.moveToFirst();
                v0_20.close();
            } catch (String v1_4) {
                v0_20.close();
                throw v1_4;
            }
        }
        if (com.google.android.gms.tagmanager.zzax.zza("datalayer", p6)) {
            String v1_0 = p6.rawQuery("SELECT * FROM datalayer WHERE 0", 0);
            java.util.HashSet v2_2 = new java.util.HashSet();
            try {
                String[] v3 = v1_0.getColumnNames();
                android.database.sqlite.SQLiteException v0_4 = 0;
            } catch (android.database.sqlite.SQLiteException v0_5) {
                v1_0.close();
                throw v0_5;
            }
            while (v0_4 < v3.length) {
                v2_2.add(v3[v0_4]);
                v0_4++;
            }
            v1_0.close();
            if ((v2_2.remove("key")) && ((v2_2.remove("value")) && ((v2_2.remove("ID")) && (v2_2.remove("expires"))))) {
                if (!v2_2.isEmpty()) {
                    throw new android.database.sqlite.SQLiteException("Database has extra columns");
                }
            } else {
                throw new android.database.sqlite.SQLiteException("Database column missing");
            }
        } else {
            p6.execSQL(com.google.android.gms.tagmanager.zzat.zzBe());
        }
        return;
    }

Method com.google.android.gms.internal.zzcvp.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_15 = p5.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_15.moveToFirst();
                v0_15.close();
            } catch (String v1_0) {
                v0_15.close();
                throw v1_0;
            }
        }
        if (com.google.android.gms.internal.zzcvp.zza("gtm_hit_unique_ids", p5)) {
            String v0_2 = new String[1];
            v0_2[0] = "hit_unique_id";
            com.google.android.gms.internal.zzcvp.zza(p5, "gtm_hit_unique_ids", java.util.Arrays.asList(v0_2));
        } else {
            p5.execSQL(com.google.android.gms.internal.zzcvn.zzBC());
        }
        if (com.google.android.gms.internal.zzcvp.zza("gtm_hits", p5)) {
            String v0_9 = new String[8];
            v0_9[0] = "hit_id";
            v0_9[1] = "hit_url";
            v0_9[2] = "hit_time";
            v0_9[3] = "hit_first_send_time";
            v0_9[4] = "hit_method";
            v0_9[5] = "hit_unique_id";
            v0_9[6] = "hit_headers";
            v0_9[7] = "hit_body";
            com.google.android.gms.internal.zzcvp.zza(p5, "gtm_hits", java.util.Arrays.asList(v0_9));
        } else {
            p5.execSQL(com.google.android.gms.internal.zzcvn.zzCs());
        }
        p5.execSQL(com.google.android.gms.internal.zzcvn.zzCt());
        p5.execSQL(com.google.android.gms.internal.zzcvn.zzCu());
        return;
    }

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


    private final boolean zzg(String p21, long p22)
    {
        this.zzwz().beginTransaction();
        try {
            com.google.android.gms.internal.zzcgl$zza v15_1 = new com.google.android.gms.internal.zzcgl$zza(this, 0);
            int v14_1 = this.zzwz();
            com.google.android.gms.internal.zzcjw v4_10 = 0;
            com.google.android.gms.internal.zzcjz v16_0 = this.zzbsS;
            com.google.android.gms.common.internal.zzbo.zzu(v15_1);
            v14_1.zzjC();
            v14_1.zzkD();
            int v3_4 = 0;
            try {
                com.google.android.gms.internal.zzcjw v13_1;
                String[] v12_1;
                com.google.android.gms.internal.zzcfn v2_3 = v14_1.getWritableDatabase();
            } catch (com.google.android.gms.internal.zzcfn v2_1) {
                v14_1.zzwF().zzyx().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzcfl.zzdZ(v4_10), v2_1);
                if (v3_4 == 0) {
                    if ((v15_1.zztH != null) && (!v15_1.zztH.isEmpty())) {
                        com.google.android.gms.internal.zzcfn v2_24 = 0;
                    } else {
                        v2_24 = 1;
                    }
                    com.google.android.gms.internal.zzcfn v2_27;
                    if (v2_24 != null) {
                        this.zzwz().setTransactionSuccessful();
                        this.zzwz().endTransaction();
                        v2_27 = 0;
                    } else {
                        com.google.android.gms.internal.zzcjw v13_0 = 0;
                        com.google.android.gms.internal.zzcjz v16_1 = v15_1.zzbsZ;
                        com.google.android.gms.internal.zzcfn v2_30 = new com.google.android.gms.internal.zzcjw[v15_1.zztH.size()];
                        v16_1.zzbvE = v2_30;
                        String[] v12_0 = 0;
                        int v14_0 = 0;
                        while (v14_0 < v15_1.zztH.size()) {
                            int v3_72;
                            com.google.android.gms.internal.zzcfn v2_171;
                            if (!this.zzwC().zzN(v15_1.zzbsZ.zzaH, ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name)) {
                                com.google.android.gms.internal.zzcjw v4_71;
                                boolean v17 = this.zzwC().zzO(v15_1.zzbsZ.zzaH, ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name);
                                if (v17) {
                                    int v3_41 = 0;
                                    com.google.android.gms.internal.zzcjw v4_43 = 0;
                                    if (((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw == null) {
                                        int v5_34 = new com.google.android.gms.internal.zzcjx[0];
                                        ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw = v5_34;
                                    }
                                    int v6_20 = ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw;
                                    com.google.android.gms.internal.zzcjx[] v7_27 = v6_20.length;
                                    int v5_35 = 0;
                                    while (v5_35 < v7_27) {
                                        com.google.android.gms.internal.zzcfn v2_173;
                                        com.google.android.gms.internal.zzcfn v2_172 = v6_20[v5_35];
                                        if (!"_c".equals(v2_172.name)) {
                                            if (!"_r".equals(v2_172.name)) {
                                                v2_173 = v4_43;
                                            } else {
                                                v2_172.zzbvA = Long.valueOf(1);
                                                v2_173 = 1;
                                            }
                                        } else {
                                            v2_172.zzbvA = Long.valueOf(1);
                                            v3_41 = 1;
                                            v2_173 = v4_43;
                                        }
                                        v5_35++;
                                        v4_43 = v2_173;
                                    }
                                    if ((v3_41 == 0) && (v17)) {
                                        this.zzwF().zzyD().zzj("Marking event as conversion", this.zzwA().zzdW(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name));
                                        com.google.android.gms.internal.zzcfn v2_127 = ((com.google.android.gms.internal.zzcjx[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw, (((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw.length + 1)));
                                        int v3_46 = new com.google.android.gms.internal.zzcjx();
                                        v3_46.name = "_c";
                                        v3_46.zzbvA = Long.valueOf(1);
                                        v2_127[(v2_127.length - 1)] = v3_46;
                                        ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw = v2_127;
                                    }
                                    if (v4_43 == null) {
                                        this.zzwF().zzyD().zzj("Marking event as real-time", this.zzwA().zzdW(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name));
                                        com.google.android.gms.internal.zzcfn v2_144 = ((com.google.android.gms.internal.zzcjx[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw, (((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw.length + 1)));
                                        int v3_53 = new com.google.android.gms.internal.zzcjx();
                                        v3_53.name = "_r";
                                        v3_53.zzbvA = Long.valueOf(1);
                                        v2_144[(v2_144.length - 1)] = v3_53;
                                        ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw = v2_144;
                                    }
                                    if (this.zzwz().zza(this.zzyZ(), v15_1.zzbsZ.zzaH, 0, 0, 0, 0, 1).zzbpy <= ((long) this.zzbsn.zzdM(v15_1.zzbsZ.zzaH))) {
                                        v13_0 = 1;
                                    } else {
                                        com.google.android.gms.internal.zzcfn v2_148 = ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0));
                                        int v3_62 = 0;
                                        while (v3_62 < v2_148.zzbvw.length) {
                                            if (!"_r".equals(v2_148.zzbvw[v3_62].name)) {
                                                v3_62++;
                                            } else {
                                                com.google.android.gms.internal.zzcjw v4_59 = new com.google.android.gms.internal.zzcjx[(v2_148.zzbvw.length - 1)];
                                                if (v3_62 > 0) {
                                                    System.arraycopy(v2_148.zzbvw, 0, v4_59, 0, v3_62);
                                                }
                                                if (v3_62 < v4_59.length) {
                                                    System.arraycopy(v2_148.zzbvw, (v3_62 + 1), v4_59, v3_62, (v4_59.length - v3_62));
                                                }
                                                v2_148.zzbvw = v4_59;
                                                break;
                                            }
                                        }
                                    }
                                    if ((!com.google.android.gms.internal.zzcjl.zzeo(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name)) || ((!v17) || (this.zzwz().zza(this.zzyZ(), v15_1.zzbsZ.zzaH, 0, 0, 1, 0, 0).zzbpw <= ((long) this.zzbsn.zzb(v15_1.zzbsZ.zzaH, com.google.android.gms.internal.zzcfb.zzbqi))))) {
                                        v4_71 = v13_0;
                                    } else {
                                        this.zzwF().zzyz().zzj("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH));
                                        com.google.android.gms.internal.zzcfn v2_162 = ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0));
                                        int v5_57 = 0;
                                        com.google.android.gms.internal.zzcjw v4_67 = 0;
                                        com.google.android.gms.internal.zzcjx[] v7_33 = v2_162.zzbvw;
                                        int v6_34 = 0;
                                        while (v6_34 < v7_33.length) {
                                            com.google.android.gms.internal.zzcjw v4_72;
                                            int v3_74 = v7_33[v6_34];
                                            if (!"_c".equals(v3_74.name)) {
                                                if (!"_err".equals(v3_74.name)) {
                                                    v3_74 = v4_67;
                                                    v4_72 = v5_57;
                                                } else {
                                                    v4_72 = 1;
                                                    v3_74 = v4_67;
                                                }
                                            } else {
                                                v4_72 = v5_57;
                                            }
                                            v6_34++;
                                            v5_57 = v4_72;
                                            v4_67 = v3_74;
                                        }
                                        if ((v5_57 == 0) || (v4_67 == null)) {
                                            if (v4_67 == null) {
                                                this.zzwF().zzyx().zzj("Did not find conversion parameter. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH));
                                            } else {
                                                v4_67.name = "_err";
                                                v4_67.zzbvA = Long.valueOf(10);
                                                v4_71 = v13_0;
                                            }
                                        } else {
                                            com.google.android.gms.internal.zzcjx[] v7_35 = new com.google.android.gms.internal.zzcjx[(v2_162.zzbvw.length - 1)];
                                            int v5_58 = 0;
                                            com.google.android.gms.internal.zzcjx[] v8_17 = v2_162.zzbvw;
                                            int v9_4 = v8_17.length;
                                            int v6_35 = 0;
                                            while (v6_35 < v9_4) {
                                                int v3_73;
                                                com.google.android.gms.internal.zzcjx v10_4 = v8_17[v6_35];
                                                if (v10_4 == v4_67) {
                                                    v3_73 = v5_58;
                                                } else {
                                                    v3_73 = (v5_58 + 1);
                                                    v7_35[v5_58] = v10_4;
                                                }
                                                v6_35++;
                                                v5_58 = v3_73;
                                            }
                                            v2_162.zzbvw = v7_35;
                                            v4_71 = v13_0;
                                        }
                                    }
                                } else {
                                    this.zzwB();
                                    if (!com.google.android.gms.internal.zzcjl.zzeC(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name)) {
                                    }
                                }
                                int v3_71 = (v12_0 + 1);
                                v16_1.zzbvE[v12_0] = ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0));
                                v2_171 = v3_71;
                                v3_72 = v4_71;
                            } else {
                                com.google.android.gms.internal.zzcfn v2_187;
                                this.zzwF().zzyz().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH), this.zzwA().zzdW(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name));
                                if ((!this.zzwB().zzeA(v15_1.zzbsZ.zzaH)) && (!this.zzwB().zzeB(v15_1.zzbsZ.zzaH))) {
                                    v2_187 = 0;
                                } else {
                                    v2_187 = 1;
                                }
                                if ((v2_187 != null) || ("_err".equals(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name))) {
                                    v2_171 = v12_0;
                                    v3_72 = v13_0;
                                } else {
                                    this.zzwB().zza(v15_1.zzbsZ.zzaH, 11, "_ev", ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name, 0);
                                    v2_171 = v12_0;
                                    v3_72 = v13_0;
                                }
                            }
                            v14_0++;
                            v12_0 = v2_171;
                            v13_0 = v3_72;
                        }
                        if (v12_0 < v15_1.zztH.size()) {
                            v16_1.zzbvE = ((com.google.android.gms.internal.zzcjw[]) java.util.Arrays.copyOf(v16_1.zzbvE, v12_0));
                        }
                        v16_1.zzbvX = this.zza(v15_1.zzbsZ.zzaH, v15_1.zzbsZ.zzbvF, v16_1.zzbvE);
                        v16_1.zzbvH = Long.valueOf(nan);
                        v16_1.zzbvI = Long.valueOf(-0.0);
                        com.google.android.gms.internal.zzcfn v2_46 = 0;
                        while (v2_46 < v16_1.zzbvE.length) {
                            int v3_37 = v16_1.zzbvE[v2_46];
                            if (v3_37.zzbvx.longValue() < v16_1.zzbvH.longValue()) {
                                v16_1.zzbvH = v3_37.zzbvx;
                            }
                            if (v3_37.zzbvx.longValue() > v16_1.zzbvI.longValue()) {
                                v16_1.zzbvI = v3_37.zzbvx;
                            }
                            v2_46++;
                        }
                        int v6_15 = v15_1.zzbsZ.zzaH;
                        com.google.android.gms.internal.zzcjx[] v7_18 = this.zzwz().zzdQ(v6_15);
                        if (v7_18 != null) {
                            if (v16_1.zzbvE.length > 0) {
                                com.google.android.gms.internal.zzcjw v4_22;
                                com.google.android.gms.internal.zzcfn v2_52 = v7_18.zzwM();
                                if (v2_52 == 0) {
                                    v4_22 = 0;
                                } else {
                                    v4_22 = Long.valueOf(v2_52);
                                }
                                v16_1.zzbvK = v4_22;
                                com.google.android.gms.internal.zzcjw v4_23 = v7_18.zzwL();
                                if (v4_23 != 0) {
                                    v2_52 = v4_23;
                                }
                                com.google.android.gms.internal.zzcfn v2_53;
                                if (v2_52 == 0) {
                                    v2_53 = 0;
                                } else {
                                    v2_53 = Long.valueOf(v2_52);
                                }
                                v16_1.zzbvJ = v2_53;
                                v7_18.zzwV();
                                v16_1.zzbvV = Integer.valueOf(((int) v7_18.zzwS()));
                                v7_18.zzL(v16_1.zzbvH.longValue());
                                v7_18.zzM(v16_1.zzbvI.longValue());
                                v16_1.zzboU = v7_18.zzxd();
                                this.zzwz().zza(v7_18);
                            }
                        } else {
                            this.zzwF().zzyx().zzj("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH));
                        }
                        if (v16_1.zzbvE.length > 0) {
                            com.google.android.gms.internal.zzcem.zzxE();
                            com.google.android.gms.internal.zzcfn v2_68 = this.zzwC().zzeh(v15_1.zzbsZ.zzaH);
                            if ((v2_68 != null) && (v2_68.zzbvl != null)) {
                                v16_1.zzbwb = v2_68.zzbvl;
                            } else {
                                if (!android.text.TextUtils.isEmpty(v15_1.zzbsZ.zzboQ)) {
                                    this.zzwF().zzyz().zzj("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH));
                                } else {
                                    v16_1.zzbwb = Long.valueOf(-1);
                                }
                            }
                            this.zzwz().zza(v16_1, v13_0);
                        }
                        this.zzwz().zzG(v15_1.zzbta);
                        int v3_32 = this.zzwz();
                        com.google.android.gms.internal.zzcfn v2_79 = v3_32.getWritableDatabase();
                        int v5_29 = new String[2];
                        v5_29[0] = v6_15;
                        v5_29[1] = v6_15;
                        v2_79.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v5_29);
                        this.zzwz().setTransactionSuccessful();
                        if (v16_1.zzbvE.length <= 0) {
                            v2_27 = 0;
                        } else {
                            v2_27 = 1;
                        }
                        this.zzwz().endTransaction();
                    }
                    return v2_27;
                } else {
                    v3_4.close();
                }
            }
            if (!android.text.TextUtils.isEmpty(0)) {
                int v6_12;
                if (v16_0 == -1) {
                    int v5_20 = new String[1];
                    v5_20[0] = 0;
                    v6_12 = v5_20;
                } else {
                    int v5_25 = new String[2];
                    v5_25[0] = 0;
                    v5_25[1] = String.valueOf(v16_0);
                    v6_12 = v5_25;
                }
                int v5_27;
                if (v16_0 == -1) {
                    v5_27 = "";
                } else {
                    v5_27 = " and rowid <= ?";
                }
                int v3_44 = v2_3.rawQuery(new StringBuilder((String.valueOf(v5_27).length() + 84)).append("select metadata_fingerprint from raw_events where app_id = ?").append(v5_27).append(" order by rowid limit 1;").toString(), v6_12);
                if (v3_44.moveToFirst()) {
                    int v5_45 = v3_44.getString(0);
                    v3_44.close();
                    v13_1 = v5_45;
                    v12_1 = 0;
                } else {
                    if (v3_44 == 0) {
                    } else {
                        v3_44.close();
                    }
                }
            } else {
                int v6_36;
                if (v16_0 == -1) {
                    int v5_56 = new String[1];
                    v5_56[0] = String.valueOf(p22);
                    v6_36 = v5_56;
                } else {
                    int v5_62 = new String[2];
                    v5_62[0] = String.valueOf(v16_0);
                    v5_62[1] = String.valueOf(p22);
                    v6_36 = v5_62;
                }
                int v5_1;
                if (v16_0 == -1) {
                    v5_1 = "";
                } else {
                    v5_1 = "rowid <= ? and ";
                }
                int v3_0 = v2_3.rawQuery(new StringBuilder((String.valueOf(v5_1).length() + 148)).append("select app_id, metadata_fingerprint from raw_events where ").append(v5_1).append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;").toString(), v6_36);
                if (v3_0.moveToFirst()) {
                    com.google.android.gms.internal.zzcjw v4_1 = v3_0.getString(0);
                    int v5_8 = v3_0.getString(1);
                    v3_0.close();
                    v13_1 = v5_8;
                    v12_1 = v4_1;
                } else {
                    if (v3_0 == 0) {
                    } else {
                        v3_0.close();
                    }
                }
            }
            try {
                com.google.android.gms.internal.zzcjw v4_3 = new String[1];
                v4_3[0] = "metadata";
                int v6_2 = new String[2];
                v6_2[0] = v12_1;
                v6_2[1] = v13_1;
                int v11_0 = v2_3.query("raw_events_metadata", v4_3, "app_id = ? and metadata_fingerprint = ?", v6_2, 0, 0, "rowid", "2");
            } catch (com.google.android.gms.internal.zzcfn v2_4) {
                v3_4 = v11_0;
                if (v3_4 != 0) {
                    v3_4.close();
                }
                throw v2_4;
            } catch (com.google.android.gms.internal.zzcfn v2_1) {
                v3_4 = v11_0;
                v4_10 = v12_1;
            }
            if (v11_0.moveToFirst()) {
                int v3_5 = v11_0.getBlob(0);
                int v3_6 = com.google.android.gms.internal.adg.zzb(v3_5, 0, v3_5.length);
                com.google.android.gms.internal.zzcjw v4_6 = new com.google.android.gms.internal.zzcjz();
                try {
                    v4_6.zza(v3_6);
                } catch (com.google.android.gms.internal.zzcfn v2_2) {
                    v14_1.zzwF().zzyx().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzcfl.zzdZ(v12_1), v2_2);
                    if (v11_0 == 0) {
                    } else {
                        v11_0.close();
                    }
                }
                if (v11_0.moveToNext()) {
                    v14_1.zzwF().zzyz().zzj("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzcfl.zzdZ(v12_1));
                }
                int v5_15;
                int v6_4;
                v11_0.close();
                v15_1.zzb(v4_6);
                if (v16_0 == -1) {
                    v5_15 = "app_id = ? and metadata_fingerprint = ?";
                    v6_4 = new String[2];
                    v6_4[0] = v12_1;
                    v6_4[1] = v13_1;
                } else {
                    v5_15 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                    v6_4 = new String[3];
                    v6_4[0] = v12_1;
                    v6_4[1] = v13_1;
                    v6_4[2] = String.valueOf(v16_0);
                }
                com.google.android.gms.internal.zzcjw v4_12 = new String[4];
                v4_12[0] = "rowid";
                v4_12[1] = "name";
                v4_12[2] = "timestamp";
                v4_12[3] = "data";
                v3_4 = v2_3.query("raw_events", v4_12, v5_15, v6_4, 0, 0, "rowid", 0);
                try {
                    if (!v3_4.moveToFirst()) {
                        v14_1.zzwF().zzyz().zzj("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzcfl.zzdZ(v12_1));
                        if (v3_4 == 0) {
                        } else {
                            v3_4.close();
                        }
                    }
                } catch (com.google.android.gms.internal.zzcfn v2_1) {
                    v4_10 = v12_1;
                }
                do {
                    com.google.android.gms.internal.zzcjw v4_13 = v3_4.getLong(0);
                    com.google.android.gms.internal.zzcfn v2_8 = v3_4.getBlob(3);
                    com.google.android.gms.internal.zzcfn v2_9 = com.google.android.gms.internal.adg.zzb(v2_8, 0, v2_8.length);
                    int v6_8 = new com.google.android.gms.internal.zzcjw();
                    v6_8.zza(v2_9);
                    v6_8.name = v3_4.getString(1);
                    v6_8.zzbvx = Long.valueOf(v3_4.getLong(2));
                    if (v15_1.zza(v4_13, v6_8)) {
                    } else {
                        if (v3_4 == 0) {
                        } else {
                            v3_4.close();
                        }
                    }
                } while(v3_4.moveToNext());
                if (v3_4 == 0) {
                } else {
                    v3_4.close();
                }
            } else {
                v14_1.zzwF().zzyx().zzj("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzcfl.zzdZ(v12_1));
                if (v11_0 == 0) {
                } else {
                    v11_0.close();
                }
            }
        } catch (com.google.android.gms.internal.zzcfn v2_193) {
            this.zzwz().endTransaction();
            throw v2_193;
        }
    }

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


    private final void zzc(com.google.android.gms.internal.zzcez p19, com.google.android.gms.internal.zzceh p20)
    {
        com.google.android.gms.common.internal.zzbo.zzu(p20);
        com.google.android.gms.common.internal.zzbo.zzcF(p20.packageName);
        long v16 = System.nanoTime();
        this.zzwE().zzjC();
        this.zzkD();
        String v3_1 = p20.packageName;
        this.zzwB();
        if (com.google.android.gms.internal.zzcjl.zzd(p19, p20)) {
            if (p20.zzboV) {
                if (!this.zzwC().zzN(v3_1, p19.name)) {
                    if (this.zzwF().zzz(2)) {
                        this.zzwF().zzyD().zzj("Logging event", this.zzwA().zzb(p19));
                    }
                    this.zzwz().beginTransaction();
                    try {
                        long v14_1 = p19.zzbpM.zzyt();
                        this.zzf(p20);
                    } catch (com.google.android.gms.internal.zzcjl v2_67) {
                        this.zzwz().endTransaction();
                        throw v2_67;
                    }
                    if (("_iap".equals(p19.name)) || ("ecommerce_purchase".equals(p19.name))) {
                        String v8_0;
                        com.google.android.gms.internal.zzcjl v2_88 = v14_1.getString("currency");
                        if (!"ecommerce_purchase".equals(p19.name)) {
                            v8_0 = v14_1.getLong("value");
                        } else {
                            com.google.android.gms.internal.zzcfn v4_73 = (v14_1.getDouble("value") * 1000000.0);
                            if (v4_73 == 0) {
                                v4_73 = (((double) v14_1.getLong("value")) * 1000000.0);
                            }
                            if ((v4_73 > 9.223372036854776e+18) || (v4_73 < -9.223372036854776e+18)) {
                                this.zzwF().zzyz().zze("Data lost. Currency value is too big. appId", com.google.android.gms.internal.zzcfl.zzdZ(v3_1), Double.valueOf(v4_73));
                                this.zzwz().setTransactionSuccessful();
                                this.zzwz().endTransaction();
                                return;
                            } else {
                                v8_0 = Math.round(v4_73);
                            }
                        }
                        if (!android.text.TextUtils.isEmpty(v2_88)) {
                            com.google.android.gms.internal.zzcjl v2_3 = v2_88.toUpperCase(java.util.Locale.US);
                            if (v2_3.matches("[A-Z]{3}")) {
                                int v5_2;
                                com.google.android.gms.internal.zzcfn v4_7 = String.valueOf("_ltv_");
                                com.google.android.gms.internal.zzcjl v2_4 = String.valueOf(v2_3);
                                if (v2_4.length() == 0) {
                                    v5_2 = new String(v4_7);
                                } else {
                                    v5_2 = v4_7.concat(v2_4);
                                }
                                com.google.android.gms.internal.zzcjl v2_11;
                                com.google.android.gms.internal.zzcjl v2_7 = this.zzwz().zzG(v3_1, v5_2);
                                if ((v2_7 != null) && ((v2_7.mValue instanceof Long))) {
                                    v2_11 = new com.google.android.gms.internal.zzcjk(v3_1, p19.zzbpc, v5_2, this.zzvw.currentTimeMillis(), Long.valueOf((v8_0 + ((Long) v2_7.mValue).longValue())));
                                } else {
                                    com.google.android.gms.internal.zzcfn v4_11 = this.zzwz();
                                    com.google.android.gms.internal.zzcjl v2_14 = (this.zzbsn.zzb(v3_1, com.google.android.gms.internal.zzcfb.zzbqz) - 1);
                                    com.google.android.gms.common.internal.zzbo.zzcF(v3_1);
                                    v4_11.zzjC();
                                    v4_11.zzkD();
                                    try {
                                        String v6_4 = v4_11.getWritableDatabase();
                                        String[] v10_2 = new String[3];
                                        v10_2[0] = v3_1;
                                        v10_2[1] = v3_1;
                                        v10_2[2] = String.valueOf(v2_14);
                                        v6_4.execSQL("delete from user_attributes where app_id=? and name in (select name from user_attributes where app_id=? and name like \'_ltv_%\' order by set_timestamp desc limit ?,10);", v10_2);
                                    } catch (com.google.android.gms.internal.zzcjl v2_17) {
                                        v4_11.zzwF().zzyx().zze("Error pruning currencies. appId", com.google.android.gms.internal.zzcfl.zzdZ(v3_1), v2_17);
                                    }
                                    v2_11 = new com.google.android.gms.internal.zzcjk(v3_1, p19.zzbpc, v5_2, this.zzvw.currentTimeMillis(), Long.valueOf(v8_0));
                                }
                                if (!this.zzwz().zza(v2_11)) {
                                    this.zzwF().zzyx().zzd("Too many unique user properties are set. Ignoring user property. appId", com.google.android.gms.internal.zzcfl.zzdZ(v3_1), this.zzwA().zzdY(v2_11.mName), v2_11.mValue);
                                    this.zzwB().zza(v3_1, 9, 0, 0, 0);
                                }
                            }
                        }
                    }
                    String[] v10_3 = com.google.android.gms.internal.zzcjl.zzeo(p19.name);
                    long v12_0 = "_err".equals(p19.name);
                    com.google.android.gms.internal.zzcjl v2_26 = this.zzwz().zza(this.zzyZ(), v3_1, 1, v10_3, 0, v12_0, 0);
                    com.google.android.gms.internal.zzcfn v4_23 = (v2_26.zzbpv - com.google.android.gms.internal.zzcem.zzxq());
                    if (v4_23 <= 0) {
                        if (v10_3 != null) {
                            com.google.android.gms.internal.zzcfn v4_25 = (v2_26.zzbpu - com.google.android.gms.internal.zzcem.zzxr());
                            if (v4_25 > 0) {
                                if ((v4_25 % 1000) == 1) {
                                    this.zzwF().zzyx().zze("Data loss. Too many public events logged. appId, count", com.google.android.gms.internal.zzcfl.zzdZ(v3_1), Long.valueOf(v2_26.zzbpu));
                                }
                                this.zzwB().zza(v3_1, 16, "_ev", p19.name, 0);
                                this.zzwz().setTransactionSuccessful();
                                this.zzwz().endTransaction();
                                return;
                            }
                        }
                        if (v12_0 != 0) {
                            com.google.android.gms.internal.zzcfn v4_28 = (v2_26.zzbpx - ((long) Math.max(0, Math.min(1000000, this.zzbsn.zzb(p20.packageName, com.google.android.gms.internal.zzcfb.zzbqg)))));
                            if (v4_28 > 0) {
                                if (v4_28 == 1) {
                                    this.zzwF().zzyx().zze("Too many error events logged. appId, count", com.google.android.gms.internal.zzcfl.zzdZ(v3_1), Long.valueOf(v2_26.zzbpx));
                                }
                                this.zzwz().setTransactionSuccessful();
                                this.zzwz().endTransaction();
                                return;
                            }
                        }
                        this.zzwB().zza(v14_1, "_o", p19.zzbpc);
                        if (this.zzwB().zzey(v3_1)) {
                            this.zzwB().zza(v14_1, "_dbg", Long.valueOf(1));
                            this.zzwB().zza(v14_1, "_r", Long.valueOf(1));
                        }
                        com.google.android.gms.internal.zzcfn v4_32 = this.zzwz().zzdR(v3_1);
                        if (v4_32 > 0) {
                            this.zzwF().zzyz().zze("Data lost. Too many events stored on disk, deleted. appId", com.google.android.gms.internal.zzcfl.zzdZ(v3_1), Long.valueOf(v4_32));
                        }
                        Object v7_10;
                        int v5_10 = new com.google.android.gms.internal.zzceu(this, p19.zzbpc, v3_1, p19.name, p19.zzbpN, 0, v14_1);
                        com.google.android.gms.internal.zzcjl v2_40 = this.zzwz().zzE(v3_1, v5_10.mName);
                        if (v2_40 != null) {
                            v5_10 = v5_10.zza(this, v2_40.zzbpI);
                            v7_10 = v2_40.zzab(v5_10.zzayS);
                        } else {
                            String v6_31 = this.zzwz().zzdU(v3_1);
                            com.google.android.gms.internal.zzcem.zzxp();
                            if (v6_31 < 500) {
                                v7_10 = new com.google.android.gms.internal.zzcev(v3_1, v5_10.mName, 0, 0, v5_10.zzayS);
                            } else {
                                this.zzwF().zzyx().zzd("Too many event names used, ignoring event. appId, name, supported count", com.google.android.gms.internal.zzcfl.zzdZ(v3_1), this.zzwA().zzdW(v5_10.mName), Integer.valueOf(com.google.android.gms.internal.zzcem.zzxp()));
                                this.zzwB().zza(v3_1, 8, 0, 0, 0);
                                this.zzwz().endTransaction();
                                return;
                            }
                        }
                        this.zzwz().zza(v7_10);
                        this.zza(v5_10, p20);
                        this.zzwz().setTransactionSuccessful();
                        if (this.zzwF().zzz(2)) {
                            this.zzwF().zzyD().zzj("Event recorded", this.zzwA().zza(v5_10));
                        }
                        this.zzwz().endTransaction();
                        this.zzzc().zzwF().zzyD().zzj("Background event processing time, ms", Long.valueOf((((System.nanoTime() - v16) + 500000) / 1000000)));
                    } else {
                        if ((v4_23 % 1000) == 1) {
                            this.zzwF().zzyx().zze("Data loss. Too many events logged. appId, count", com.google.android.gms.internal.zzcfl.zzdZ(v3_1), Long.valueOf(v2_26.zzbpv));
                        }
                        this.zzwz().setTransactionSuccessful();
                        this.zzwz().endTransaction();
                    }
                } else {
                    String v8_11;
                    this.zzwF().zzyz().zze("Dropping blacklisted event. appId", com.google.android.gms.internal.zzcfl.zzdZ(v3_1), this.zzwA().zzdW(p19.name));
                    if ((!this.zzwB().zzeA(v3_1)) && (!this.zzwB().zzeB(v3_1))) {
                        v8_11 = 0;
                    } else {
                        v8_11 = 1;
                    }
                    if ((v8_11 == null) && (!"_err".equals(p19.name))) {
                        this.zzwB().zza(v3_1, 11, "_ev", p19.name, 0);
                    }
                    if (v8_11 != null) {
                        com.google.android.gms.internal.zzcjl v2_83 = this.zzwz().zzdQ(v3_1);
                        if ((v2_83 != null) && (Math.abs((this.zzvw.currentTimeMillis() - Math.max(v2_83.zzwU(), v2_83.zzwT()))) > com.google.android.gms.internal.zzcem.zzxI())) {
                            this.zzwF().zzyC().log("Fetching config for blacklisted app");
                            this.zzb(v2_83);
                        }
                    }
                }
            } else {
                this.zzf(p20);
            }
        }
        return;
    }

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


    private static void zza(com.google.android.gms.internal.zzcfl p6, android.database.sqlite.SQLiteDatabase p7, String p8, String p9, java.util.Map p10)
    {
        if (p6 != null) {
            String v1_0 = com.google.android.gms.internal.zzcen.zzb(p7, p8);
            String v2_2 = p9.split(",");
            String v0_9 = 0;
            while (v0_9 < v2_2.length) {
                String v4 = v2_2[v0_9];
                if (v1_0.remove(v4)) {
                    v0_9++;
                } else {
                    throw new android.database.sqlite.SQLiteException(new StringBuilder(((String.valueOf(p8).length() + 35) + String.valueOf(v4).length())).append("Table ").append(p8).append(" is missing required column: ").append(v4).toString());
                }
            }
            if (p10 != null) {
                String v2_0 = p10.entrySet().iterator();
                while (v2_0.hasNext()) {
                    String v0_6 = ((java.util.Map$Entry) v2_0.next());
                    if (!v1_0.remove(v0_6.getKey())) {
                        p7.execSQL(((String) v0_6.getValue()));
                    }
                }
            }
            if (!v1_0.isEmpty()) {
                p6.zzyz().zze("Table has extra columns. table, columns", p8, android.text.TextUtils.join(", ", v1_0));
            }
            return;
        } else {
            throw new IllegalArgumentException("Monitor must not be null");
        }
    }

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


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

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p9)
    {
        String v0_0 = 1;
        if (android.os.Build$VERSION.SDK_INT < 15) {
            int v2_13 = p9.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v2_13.moveToFirst();
                v2_13.close();
            } catch (String v0_1) {
                v2_13.close();
                throw v0_1;
            }
        }
        if (this.zza(p9, "hits2")) {
            int v3_0 = com.google.android.gms.internal.zzamt.zzb(p9, "hits2");
            String[] v4 = new String[4];
            v4[0] = "hit_id";
            v4[1] = "hit_string";
            v4[2] = "hit_time";
            v4[3] = "hit_url";
            int v2_8 = 0;
            while (v2_8 < 4) {
                String v5_2 = v4[v2_8];
                if (v3_0.remove(v5_2)) {
                    v2_8++;
                } else {
                    String v0_7;
                    String v0_5 = String.valueOf(v5_2);
                    if (v0_5.length() == 0) {
                        v0_7 = new String("Database hits2 is missing required column: ");
                    } else {
                        v0_7 = "Database hits2 is missing required column: ".concat(v0_5);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_7);
                }
            }
            if (v3_0.remove("hit_app_id")) {
                v0_0 = 0;
            }
            if (v3_0.isEmpty()) {
                if (v0_0 != null) {
                    p9.execSQL("ALTER TABLE hits2 ADD COLUMN hit_app_id INTEGER");
                }
            } else {
                throw new android.database.sqlite.SQLiteException("Database hits2 has extra columns");
            }
        } else {
            p9.execSQL(com.google.android.gms.internal.zzams.zzkV());
        }
        if (this.zza(p9, "properties")) {
            com.google.android.gms.internal.zzamt.zza(p9);
        } else {
            p9.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.ne.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public final void onUpgrade(android.database.sqlite.SQLiteDatabase p4, int p5, int p6)
    {
        if (p5 > 1) {
            throw new AssertionError(new StringBuilder(40).append("We don\'t handle upgrading to ").append(p6).toString());
        } else {
            com.google.android.gms.internal.ne.zzc(p4, "serverCache");
            p4.execSQL("CREATE TABLE serverCache (path TEXT PRIMARY KEY, value BLOB);");
            com.google.android.gms.internal.ne.zzc(p4, "complete");
            p4.execSQL("CREATE TABLE trackedKeys (id INTEGER, key TEXT);");
            p4.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.ne.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.ne.zzc() calling method android.database.sqlite.SQLiteDatabase.execSQL()


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

Method com.hypertrack.hyperlog.DeviceLogTable.deleteDeviceLog() calling method android.database.sqlite.SQLiteDatabase.delete()


    static void deleteDeviceLog(android.database.sqlite.SQLiteDatabase p8, java.util.List p9)
    {
        if (p8 != null) {
            StringBuilder v0_1 = new StringBuilder();
            String v5_8 = p9.iterator();
            while (v5_8.hasNext()) {
                com.hypertrack.hyperlog.DeviceLogModel v1_1 = ((com.hypertrack.hyperlog.DeviceLogModel) v5_8.next());
                if ((v1_1 != null) && (v1_1.getId() > 0)) {
                    v0_1.append(v1_1.getId()).append(",");
                }
            }
            if (v0_1.length() != 0) {
                try {
                    String v3_0 = v0_1.toString();
                    p8.delete("device_logs", new StringBuilder().append("_id IN (").append(v3_0.substring(0, (v3_0.length() - 1))).append(")").toString(), 0);
                } catch (Exception v2) {
                    v2.printStackTrace();
                    com.hypertrack.hyperlog.HyperLog.e(com.hypertrack.hyperlog.DeviceLogTable.TAG, new StringBuilder().append("DeviceLogTable: Exception occurred while deleteDeviceLog: ").append(v2).toString());
                }
            }
        }
        return;
    }

Method com.hypertrack.hyperlog.DeviceLogTable.deleteAllDeviceLogs() calling method android.database.sqlite.SQLiteDatabase.delete()


    static void deleteAllDeviceLogs(android.database.sqlite.SQLiteDatabase p4)
    {
        if (p4 != null) {
            try {
                p4.delete("device_logs", 0, 0);
            } catch (Exception v0) {
                v0.printStackTrace();
                com.hypertrack.hyperlog.HyperLog.e(com.hypertrack.hyperlog.DeviceLogTable.TAG, new StringBuilder().append("DeviceLogTable: Exception occurred while deleteAllDeviceLogs: ").append(v0).toString());
            }
        }
        return;
    }

Method com.hypertrack.hyperlog.DeviceLogTable.clearOldLogs() calling method android.database.sqlite.SQLiteDatabase.delete()


    public static void clearOldLogs(android.database.sqlite.SQLiteDatabase p7, int p8)
    {
        if (p7 != null) {
            try {
                java.util.Calendar v0 = java.util.Calendar.getInstance();
                v0.add(13, (- p8));
                String v5_1 = new String[1];
                v5_1[0] = com.hypertrack.hyperlog.utils.HLDateTimeUtility.getFormattedTime(v0.getTime());
                p7.delete("device_logs", "device_log<?", v5_1);
            } catch (Exception v2) {
                v2.printStackTrace();
                com.hypertrack.hyperlog.HyperLog.e(com.hypertrack.hyperlog.DeviceLogTable.TAG, new StringBuilder().append("DeviceLogTable: Exception occurred while deleteAllDeviceLogs: ").append(v2).toString());
            }
        }
        return;
    }

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


    public final void zzb(long p10, String p12)
    {
        String v0_0 = 1;
        android.content.ContentValues v2_5 = this.zzvw.currentTimeMillis();
        if (v2_5 > (this.zzbFy + 86400000)) {
            this.zzbFy = v2_5;
            android.content.ContentValues v2_1 = this.zzfg("Error opening database for deleteStaleHits.");
            if (v2_1 != null) {
                String[] v7 = new String[1];
                v7[0] = Long.toString((this.zzvw.currentTimeMillis() - 1.280618154e-314));
                v2_1.delete("gtm_hits", "HIT_TIME < ?", v7);
                if (this.zzBA() != 0) {
                    v0_0 = 0;
                }
                this.zzbFw.zzar(v0_0);
            }
        }
        String v0_3 = ((this.zzBA() - this.zzbFz) + 1);
        if (v0_3 > null) {
            String v0_4 = this.zzbD(v0_3);
            com.google.android.gms.tagmanager.zzdj.v(new StringBuilder(51).append("Store full, deleting ").append(v0_4.size()).append(" hits to make room.").toString());
            android.content.ContentValues v2_10 = new String[0];
            this.zzd(((String[]) v0_4.toArray(v2_10)));
        }
        String v0_8 = this.zzfg("Error opening database for putHit");
        if (v0_8 != null) {
            android.content.ContentValues v2_12 = new android.content.ContentValues();
            v2_12.put("hit_time", Long.valueOf(p10));
            v2_12.put("hit_url", p12);
            v2_12.put("hit_first_send_time", Integer.valueOf(0));
            try {
                v0_8.insert("gtm_hits", 0, v2_12);
                this.zzbFw.zzar(0);
            } catch (String v0) {
                com.google.android.gms.tagmanager.zzdj.zzaT("Error storing hit");
            }
        }
        return;
    }

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


    private final void zzd(String[] p9)
    {
        int v0_0 = 1;
        if ((p9 != null) && (p9.length != 0)) {
            com.google.android.gms.tagmanager.zzcd v2_3 = this.zzfg("Error opening database for deleteHits.");
            if (v2_3 != null) {
                String v4_0 = new Object[1];
                v4_0[0] = android.text.TextUtils.join(",", java.util.Collections.nCopies(p9.length, "?"));
                try {
                    v2_3.delete("gtm_hits", String.format("HIT_ID in (%s)", v4_0), p9);
                } catch (int v0) {
                    com.google.android.gms.tagmanager.zzdj.zzaT("Error deleting hits");
                }
                if (this.zzBA() != 0) {
                    v0_0 = 0;
                }
                this.zzbFw.zzar(v0_0);
            }
        }
        return;
    }

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


    private final void zzff(String p8)
    {
        String v0_2 = this.zzfg("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(".%");
                com.google.android.gms.tagmanager.zzdj.v(new StringBuilder(25).append("Cleared ").append(v0_2.delete("datalayer", "key = ? OR key LIKE ?", v3_1)).append(" items").toString());
                this.zzBd();
            } catch (String v0_11) {
                this.zzBd();
                throw v0_11;
            } catch (String v0_6) {
                String v0_7 = String.valueOf(v0_6);
                com.google.android.gms.tagmanager.zzdj.zzaT(new StringBuilder(((String.valueOf(p8).length() + 44) + String.valueOf(v0_7).length())).append("Error deleting entries with key prefix: ").append(p8).append(" (").append(v0_7).append(").").toString());
                this.zzBd();
            }
        }
        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 v2 = this.zzvw.currentTimeMillis();
            this.zzah(v2);
            String v0_1 = (p11.size() + (this.zzBc() - this.zzbEq));
        } catch (String v0_11) {
            this.zzBd();
            throw v0_11;
        } catch (String v0_12) {
            throw v0_12;
        }
        if (v0_1 > null) {
            String v0_2 = this.zzby(v0_1);
            com.google.android.gms.tagmanager.zzdj.zzaS(new StringBuilder(64).append("DataLayer store full, deleting ").append(v0_2.size()).append(" entries to make room.").toString());
            String v1_5 = new String[0];
            String v0_4 = ((String[]) v0_2.toArray(v1_5));
            if ((v0_4 != null) && (v0_4.length != 0)) {
                String v1_8 = this.zzfg("Error opening database for deleteEntries.");
                if (v1_8 != null) {
                    String v5_3 = new Object[2];
                    v5_3[0] = "ID";
                    v5_3[1] = android.text.TextUtils.join(",", java.util.Collections.nCopies(v0_4.length, "?"));
                    try {
                        v1_8.delete("datalayer", String.format("%s in (%s)", v5_3), v0_4);
                    } catch (String v1) {
                        String v0_7 = String.valueOf(java.util.Arrays.toString(v0_4));
                        if (v0_7.length() == 0) {
                            String v0_9 = new String("Error deleting entries ");
                        } else {
                            v0_9 = "Error deleting entries ".concat(v0_7);
                        }
                        com.google.android.gms.tagmanager.zzdj.zzaT(v0_9);
                    }
                }
            }
        }
        this.zzc(p11, (v2 + p12));
        this.zzBd();
        return;
    }

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


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

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


    public final void zza(long p8, String p10, String p11, String p12, java.util.Map p13, String p14)
    {
        String v0_28 = this.zzvw.currentTimeMillis();
        if (v0_28 > (this.zzbFy + 86400000)) {
            this.zzbFy = v0_28;
            String v0_5 = this.zzfg("Error opening database for deleteStaleHits.");
            if (v0_5 != null) {
                String v0_35;
                String[] v5_1 = new String[1];
                v5_1[0] = Long.toString((this.zzvw.currentTimeMillis() - 1.280618154e-314));
                com.google.android.gms.internal.zzcvk.v(new StringBuilder(31).append("Removed ").append(v0_5.delete("gtm_hits", "HIT_TIME < ?", v5_1)).append(" stale hits.").toString());
                if (this.zzfF("gtm_hits") != 0) {
                    v0_35 = 0;
                } else {
                    v0_35 = 1;
                }
                this.zzbIA.zzar(v0_35);
            }
        }
        String v0_39 = ((this.zzfF("gtm_hits") - this.zzbFz) + 1);
        if (v0_39 > null) {
            String v0_40 = this.zzbD(v0_39);
            com.google.android.gms.internal.zzcvk.v(new StringBuilder(51).append("Store full, deleting ").append(v0_40.size()).append(" hits to make room.").toString());
            String v1_19 = new String[0];
            this.zzd(((String[]) v0_40.toArray(v1_19)));
        }
        String v1_20 = this.zzfg("Error opening database for putHit");
        if (v1_20 != null) {
            int v2_15 = new android.content.ContentValues();
            v2_15.put("hit_time", Long.valueOf(p8));
            v2_15.put("hit_url", p10);
            v2_15.put("hit_first_send_time", Integer.valueOf(0));
            if (p11 == null) {
                p11 = "GET";
            }
            String v0_4;
            v2_15.put("hit_method", p11);
            v2_15.put("hit_unique_id", p12);
            if (p13 != null) {
                v0_4 = new org.json.JSONObject(p13).toString();
            } else {
                v0_4 = 0;
            }
            v2_15.put("hit_headers", v0_4);
            v2_15.put("hit_body", p14);
            try {
                v1_20.insertOrThrow("gtm_hits", 0, v2_15);
                com.google.android.gms.internal.zzcvk.v(new StringBuilder((String.valueOf(p10).length() + 19)).append("Hit stored (url = ").append(p10).append(")").toString());
                this.zzbIA.zzar(0);
            } catch (String v0) {
                String v0_22 = String.valueOf(p10);
                if (v0_22.length() == 0) {
                    String v0_24 = new String("Hit has already been sent: ");
                } else {
                    v0_24 = "Hit has already been sent: ".concat(v0_22);
                }
                com.google.android.gms.internal.zzcvk.v(v0_24);
            } catch (String v0_17) {
                String v0_19 = String.valueOf(v0_17.getMessage());
                if (v0_19.length() == 0) {
                    String v0_21 = new String("Error storing hit: ");
                } else {
                    v0_21 = "Error storing hit: ".concat(v0_19);
                }
                com.google.android.gms.internal.zzcvk.zzaT(v0_21);
            }
        }
        if (com.google.android.gms.internal.zzcvs.zzCw().isPreview()) {
            com.google.android.gms.internal.zzcvk.v("Sending hits immediately under preview.");
            this.dispatch();
        }
        return;
    }

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


    private final void zzd(String[] p9)
    {
        String v0_0 = 1;
        if ((p9 != null) && (p9.length != 0)) {
            int v2_4 = this.zzfg("Error opening database for deleteHits.");
            if (v2_4 != 0) {
                String v4_0 = new Object[1];
                v4_0[0] = android.text.TextUtils.join(",", java.util.Collections.nCopies(p9.length, "?"));
                try {
                    v2_4.delete("gtm_hits", String.format("HIT_ID in (%s)", v4_0), p9);
                } catch (String v0_1) {
                    String v0_3 = String.valueOf(v0_1.getMessage());
                    if (v0_3.length() == 0) {
                        String v0_5 = new String("Error deleting hits: ");
                    } else {
                        v0_5 = "Error deleting hits: ".concat(v0_3);
                    }
                    com.google.android.gms.internal.zzcvk.zzaT(v0_5);
                }
                if (this.zzfF("gtm_hits") != 0) {
                    v0_0 = 0;
                }
                this.zzbIA.zzar(v0_0);
            }
        }
        return;
    }

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


    public final void zze(com.google.android.gms.internal.zzceh p11)
    {
        this.zzwE().zzjC();
        this.zzkD();
        com.google.android.gms.common.internal.zzbo.zzu(p11);
        com.google.android.gms.common.internal.zzbo.zzcF(p11.packageName);
        if (!android.text.TextUtils.isEmpty(p11.zzboQ)) {
            String v0_4 = this.zzwz().zzdQ(p11.packageName);
            if ((v0_4 != null) && ((android.text.TextUtils.isEmpty(v0_4.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p11.zzboQ)))) {
                v0_4.zzR(0);
                this.zzwz().zza(v0_4);
                this.zzwC().zzek(p11.packageName);
            }
            if (p11.zzboV) {
                long v4 = p11.zzbpa;
                if (v4 == 0) {
                    v4 = this.zzvw.currentTimeMillis();
                }
                Long v6_12;
                String v0_65 = p11.zzbpb;
                if ((v0_65 == null) || (v0_65 == 1)) {
                    v6_12 = v0_65;
                } else {
                    this.zzwF().zzyz().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzcfl.zzdZ(p11.packageName), Integer.valueOf(v0_65));
                    v6_12 = 0;
                }
                this.zzwz().beginTransaction();
                try {
                    String v0_7 = this.zzwz().zzdQ(p11.packageName);
                } catch (String v0_61) {
                    this.zzwz().endTransaction();
                    throw v0_61;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p11.zzboQ)))) {
                    this.zzwF().zzyz().zzj("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzcfl.zzdZ(v0_7.zzhl()));
                    String v1_40 = this.zzwz();
                    long v2_51 = v0_7.zzhl();
                    v1_40.zzkD();
                    v1_40.zzjC();
                    com.google.android.gms.common.internal.zzbo.zzcF(v2_51);
                    try {
                        String v0_73 = v1_40.getWritableDatabase();
                        String v3_0 = new String[1];
                        v3_0[0] = v2_51;
                        String v0_3 = (v0_73.delete("audience_filter_values", "app_id=?", v3_0) + ((((((((v0_73.delete("events", "app_id=?", v3_0) + 0) + v0_73.delete("user_attributes", "app_id=?", v3_0)) + v0_73.delete("conditional_properties", "app_id=?", v3_0)) + v0_73.delete("apps", "app_id=?", v3_0)) + v0_73.delete("raw_events", "app_id=?", v3_0)) + v0_73.delete("raw_events_metadata", "app_id=?", v3_0)) + v0_73.delete("event_filters", "app_id=?", v3_0)) + v0_73.delete("property_filters", "app_id=?", v3_0)));
                    } catch (String v0_6) {
                        v1_40.zzwF().zzyx().zze("Error deleting application data. appId, error", com.google.android.gms.internal.zzcfl.zzdZ(v2_51), v0_6);
                        v0_7 = 0;
                    }
                    if (v0_3 <= null) {
                    } else {
                        v1_40.zzwF().zzyD().zze("Deleted application data. app, records", v2_51, Integer.valueOf(v0_3));
                    }
                }
                if ((v0_7 != null) && ((v0_7.zzjH() != null) && (!v0_7.zzjH().equals(p11.zzbgW)))) {
                    String v3_5 = new android.os.Bundle();
                    v3_5.putString("_pv", v0_7.zzjH());
                    this.zzb(new com.google.android.gms.internal.zzcez("_au", new com.google.android.gms.internal.zzcew(v3_5), "auto", v4), p11);
                }
                this.zzf(p11);
                String v0_11 = 0;
                if (v6_12 != null) {
                    if (v6_12 == 1) {
                        v0_11 = this.zzwz().zzE(p11.packageName, "_v");
                    }
                } else {
                    v0_11 = this.zzwz().zzE(p11.packageName, "_f");
                }
                if (v0_11 != null) {
                    if (p11.zzboW) {
                        this.zzb(new com.google.android.gms.internal.zzcez("_cd", new com.google.android.gms.internal.zzcew(new android.os.Bundle()), "auto", v4), p11);
                    }
                } else {
                    String v0_19 = ((1 + (v4 / 3600000)) * 3600000);
                    if (v6_12 != null) {
                        if (v6_12 == 1) {
                            this.zzb(new com.google.android.gms.internal.zzcji("_fvt", v4, Long.valueOf(v0_19), "auto"), p11);
                            this.zzwE().zzjC();
                            this.zzkD();
                            String v3_12 = new android.os.Bundle();
                            v3_12.putLong("_c", 1);
                            v3_12.putLong("_r", 1);
                            this.zzb(new com.google.android.gms.internal.zzcez("_v", new com.google.android.gms.internal.zzcew(v3_12), "auto", v4), p11);
                        }
                    } else {
                        this.zzb(new com.google.android.gms.internal.zzcji("_fot", v4, Long.valueOf(v0_19), "auto"), p11);
                        this.zzwE().zzjC();
                        this.zzkD();
                        android.os.Bundle v8_17 = new android.os.Bundle();
                        v8_17.putLong("_c", 1);
                        v8_17.putLong("_r", 1);
                        v8_17.putLong("_uwa", 0);
                        v8_17.putLong("_pfo", 0);
                        v8_17.putLong("_sys", 0);
                        v8_17.putLong("_sysu", 0);
                        if (this.mContext.getPackageManager() != null) {
                            String v1_18 = com.google.android.gms.internal.zzbha.zzaP(this.mContext).getPackageInfo(p11.packageName, 0);
                            if ((v1_18 != null) && (v1_18.firstInstallTime != 0)) {
                                String v0_39 = 0;
                                if (v1_18.firstInstallTime == v1_18.lastUpdateTime) {
                                    v0_39 = 1;
                                } else {
                                    v8_17.putLong("_uwa", 1);
                                }
                                String v0_41;
                                if (v0_39 == null) {
                                    v0_41 = 0;
                                } else {
                                    v0_41 = 1;
                                }
                                this.zzb(new com.google.android.gms.internal.zzcji("_fi", v4, Long.valueOf(v0_41), "auto"), p11);
                            }
                            String v0_44 = com.google.android.gms.internal.zzbha.zzaP(this.mContext).getApplicationInfo(p11.packageName, 0);
                            if (v0_44 != null) {
                                if ((v0_44.flags & 1) != 0) {
                                    v8_17.putLong("_sys", 1);
                                }
                                if ((v0_44.flags & 128) != 0) {
                                    v8_17.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.zzwF().zzyx().zzj("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzcfl.zzdZ(p11.packageName));
                        }
                        String v0_52 = this.zzwz();
                        String v1_27 = p11.packageName;
                        com.google.android.gms.common.internal.zzbo.zzcF(v1_27);
                        v0_52.zzjC();
                        v0_52.zzkD();
                        String v0_54 = v0_52.zzL(v1_27, "first_open_count");
                        if (v0_54 >= 0) {
                            v8_17.putLong("_pfo", v0_54);
                        }
                        this.zzb(new com.google.android.gms.internal.zzcez("_f", new com.google.android.gms.internal.zzcew(v8_17), "auto", v4), p11);
                    }
                    String v3_22 = new android.os.Bundle();
                    v3_22.putLong("_et", 1);
                    this.zzb(new com.google.android.gms.internal.zzcez("_e", new com.google.android.gms.internal.zzcew(v3_22), "auto", v4), p11);
                }
                this.zzwz().setTransactionSuccessful();
                this.zzwz().endTransaction();
            } else {
                this.zzf(p11);
            }
        }
        return;
    }

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


    protected final void zza(int p10, Throwable p11, byte[] p12)
    {
        this.zzwE().zzjC();
        this.zzkD();
        try {
            if (p12 == null) {
                p12 = new byte[0];
            }
        } catch (boolean v0_12) {
            this.zzbsV = 0;
            this.zzzg();
            throw v0_12;
        }
        boolean v0_29 = this.zzbsO;
        this.zzbsO = 0;
        if (((p10 != 200) && (p10 != 204)) || (p11 != null)) {
            boolean v0_20;
            this.zzwF().zzyD().zze("Network upload failed. Will retry later. code, error", Integer.valueOf(p10), p11);
            this.zzwG().zzbrl.set(this.zzvw.currentTimeMillis());
            if ((p10 != 503) && (p10 != 429)) {
                v0_20 = 0;
            } else {
                v0_20 = 1;
            }
            if (v0_20) {
                this.zzwG().zzbrm.set(this.zzvw.currentTimeMillis());
            }
            this.zzzc();
        } else {
            try {
                this.zzwG().zzbrk.set(this.zzvw.currentTimeMillis());
                this.zzwG().zzbrl.set(0);
                this.zzzc();
                this.zzwF().zzyD().zze("Successful upload. Got network response. code, size", Integer.valueOf(p10), Integer.valueOf(p12.length));
                this.zzwz().beginTransaction();
                try {
                    String v3_15 = v0_29.iterator();
                } catch (boolean v0_7) {
                    this.zzwz().endTransaction();
                    throw v0_7;
                }
                while (v3_15.hasNext()) {
                    boolean v0_1 = ((Long) v3_15.next());
                    com.google.android.gms.internal.zzcen v4_0 = this.zzwz();
                    String v6_0 = v0_1.longValue();
                    v4_0.zzjC();
                    v4_0.zzkD();
                    boolean v0_2 = v4_0.getWritableDatabase();
                    String[] v5_1 = new String[1];
                    v5_1[0] = String.valueOf(v6_0);
                    try {
                        if (v0_2.delete("queue", "rowid=?", v5_1) != 1) {
                            throw new android.database.sqlite.SQLiteException("Deleted fewer rows from queue than expected");
                        }
                    } catch (boolean v0_6) {
                        v4_0.zzwF().zzyx().zzj("Failed to delete a bundle in a queue table", v0_6);
                        throw v0_6;
                    }
                }
                this.zzwz().setTransactionSuccessful();
                this.zzwz().endTransaction();
                if ((!this.zzyU().zzlQ()) || (!this.zzzb())) {
                    this.zzbsS = -1;
                    this.zzzc();
                } else {
                    this.zzza();
                }
                this.zzbsT = 0;
            } catch (boolean v0_8) {
                this.zzwF().zzyx().zzj("Database error while trying to delete uploaded bundles", v0_8);
                this.zzbsT = this.zzvw.elapsedRealtime();
                this.zzwF().zzyD().zzj("Disable upload, time", Long.valueOf(this.zzbsT));
            }
        }
        this.zzbsV = 0;
        this.zzzg();
        return;
    }

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


    public final java.util.List zzbp(int p15)
    {
        java.util.ArrayList v0_13;
        super.zzjC();
        super.zzwp();
        if (!this.zzbqG) {
            java.util.ArrayList v10_1 = new java.util.ArrayList();
            if (super.getContext().getDatabasePath(com.google.android.gms.internal.zzcem.zzxD()).exists()) {
                int v9 = 5;
                int v12 = 0;
                while (v12 < 5) {
                    String v1_27 = 0;
                    try {
                        java.util.ArrayList v0_14 = this.getWritableDatabase();
                        try {
                            if (v0_14 != null) {
                                v0_14.beginTransaction();
                                Throwable v2_3 = new String[3];
                                v2_3[0] = "rowid";
                                v2_3[1] = "type";
                                v2_3[2] = "entry";
                                Throwable v2_1 = v0_14.query("messages", v2_3, 0, 0, 0, 0, "rowid asc", Integer.toString(100));
                                String v4_8 = -1;
                                try {
                                    while (v2_1.moveToNext()) {
                                        v4_8 = v2_1.getLong(0);
                                        String v1_46 = v2_1.getInt(1);
                                        String v6_0 = v2_1.getBlob(2);
                                        if (v1_46 != null) {
                                            if (v1_46 != 1) {
                                                if (v1_46 != 2) {
                                                    super.zzwF().zzyx().log("Unknown record type in local database");
                                                } else {
                                                    android.os.Parcel v7_0 = android.os.Parcel.obtain();
                                                    try {
                                                        v7_0.unmarshall(v6_0, 0, v6_0.length);
                                                        v7_0.setDataPosition(0);
                                                        String v1_6 = ((com.google.android.gms.internal.zzcek) com.google.android.gms.internal.zzcek.CREATOR.createFromParcel(v7_0));
                                                    } catch (String v1) {
                                                        super.zzwF().zzyx().log("Failed to load user property from local database");
                                                        v7_0.recycle();
                                                        v1_6 = 0;
                                                        if (v1_6 != null) {
                                                            v10_1.add(v1_6);
                                                        }
                                                    }
                                                    v7_0.recycle();
                                                }
                                            } else {
                                                android.os.Parcel v7_1 = android.os.Parcel.obtain();
                                                try {
                                                    v7_1.unmarshall(v6_0, 0, v6_0.length);
                                                    v7_1.setDataPosition(0);
                                                    String v1_14 = ((com.google.android.gms.internal.zzcji) com.google.android.gms.internal.zzcji.CREATOR.createFromParcel(v7_1));
                                                } catch (String v1) {
                                                    super.zzwF().zzyx().log("Failed to load user property from local database");
                                                    v7_1.recycle();
                                                    v1_14 = 0;
                                                    if (v1_14 != null) {
                                                        v10_1.add(v1_14);
                                                    }
                                                }
                                                v7_1.recycle();
                                            }
                                        } else {
                                            String v3_5 = android.os.Parcel.obtain();
                                            try {
                                                v3_5.unmarshall(v6_0, 0, v6_0.length);
                                                v3_5.setDataPosition(0);
                                                String v1_22 = ((com.google.android.gms.internal.zzcez) com.google.android.gms.internal.zzcez.CREATOR.createFromParcel(v3_5));
                                            } catch (String v1_25) {
                                                v3_5.recycle();
                                                throw v1_25;
                                            } catch (String v1) {
                                                super.zzwF().zzyx().log("Failed to load event from local database");
                                                v3_5.recycle();
                                            }
                                            v3_5.recycle();
                                            if (v1_22 != null) {
                                                v10_1.add(v1_22);
                                            }
                                        }
                                    }
                                } catch (String v1_30) {
                                    v1_27 = v0_14;
                                    java.util.ArrayList v0_7 = v1_30;
                                    if (v2_1 != null) {
                                        v2_1.close();
                                    }
                                    if (v1_27 != null) {
                                        v1_27.close();
                                    }
                                    throw v0_7;
                                } catch (String v1_28) {
                                    String v1_29 = v2_1;
                                    Throwable v2_0 = v0_14;
                                    java.util.ArrayList v0_5 = v1_28;
                                    try {
                                        super.zzwF().zzyx().zzj("Error reading entries from local database", v0_5);
                                        this.zzbqG = 1;
                                    } catch (java.util.ArrayList v0_7) {
                                        v1_27 = v2_0;
                                        v2_1 = v1_29;
                                    }
                                    if (v1_29 != null) {
                                        v1_29.close();
                                    }
                                    if (v2_0 == null) {
                                        java.util.ArrayList v0_11 = v9;
                                        v12++;
                                        v9 = v0_11;
                                    } else {
                                        v2_0.close();
                                        v0_11 = v9;
                                    }
                                } catch (String v1_26) {
                                    v1_27 = v0_14;
                                    java.util.ArrayList v0_4 = v1_26;
                                    try {
                                        if (android.os.Build$VERSION.SDK_INT < 11) {
                                            if (v1_27 != null) {
                                                if (v1_27.inTransaction()) {
                                                    v1_27.endTransaction();
                                                }
                                            }
                                            super.zzwF().zzyx().zzj("Error reading entries from local database", v0_4);
                                            this.zzbqG = 1;
                                            v0_11 = v9;
                                        } else {
                                            if (!(v0_4 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                                            } else {
                                                android.os.SystemClock.sleep(((long) v9));
                                                v0_11 = (v9 + 20);
                                            }
                                        }
                                        if (v2_1 != null) {
                                            v2_1.close();
                                        }
                                        if (v1_27 == null) {
                                        } else {
                                            v1_27.close();
                                        }
                                    } catch (java.util.ArrayList v0_7) {
                                    }
                                }
                                String v6_6 = new String[1];
                                v6_6[0] = Long.toString(v4_8);
                                if (v0_14.delete("messages", "rowid <= ?", v6_6) < v10_1.size()) {
                                    super.zzwF().zzyx().log("Fewer entries removed from local database than expected");
                                }
                                v0_14.setTransactionSuccessful();
                                v0_14.endTransaction();
                                if (v2_1 != null) {
                                    v2_1.close();
                                }
                                if (v0_14 != null) {
                                    v0_14.close();
                                }
                                v0_13 = v10_1;
                            } else {
                                this.zzbqG = 1;
                                if (v0_14 != null) {
                                    v0_14.close();
                                }
                                v0_13 = 0;
                            }
                        } catch (String v1_36) {
                            v2_1 = 0;
                            v1_27 = v0_14;
                            v0_7 = v1_36;
                        } catch (String v1_33) {
                            v2_0 = v0_14;
                            v0_5 = v1_33;
                            v1_29 = 0;
                        } catch (String v1_32) {
                            v2_1 = 0;
                            v1_27 = v0_14;
                            v0_4 = v1_32;
                        }
                    } catch (java.util.ArrayList v0_7) {
                        v2_1 = 0;
                    } catch (java.util.ArrayList v0_5) {
                        v2_0 = 0;
                        v1_29 = 0;
                    } catch (java.util.ArrayList v0_4) {
                        v2_1 = 0;
                    }
                }
                super.zzwF().zzyz().log("Failed to read events from database in reasonable time");
                v0_13 = 0;
            } else {
                v0_13 = v10_1;
            }
        } else {
            v0_13 = 0;
        }
        return v0_13;
    }

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


    private final boolean zza(int p14, byte[] p15)
    {
        int v0_3;
        super.zzwp();
        super.zzjC();
        if (!this.zzbqG) {
            android.content.ContentValues v7_1 = new android.content.ContentValues();
            v7_1.put("type", Integer.valueOf(p14));
            v7_1.put("entry", p15);
            com.google.android.gms.internal.zzcem.zzxN();
            int v6 = 0;
            int v0_1 = 5;
            while (v6 < 5) {
                android.database.Cursor v2 = 0;
                try {
                    android.database.sqlite.SQLiteDatabase v3 = this.getWritableDatabase();
                } catch (com.google.android.gms.internal.zzcfn v1_1) {
                    super.zzwF().zzyx().zzj("Error writing entry to local database", v1_1);
                    this.zzbqG = 1;
                    if (v2 != null) {
                        v2.close();
                    }
                    if (v3 == null) {
                        v6++;
                    } else {
                        v3.close();
                    }
                    v3.insertOrThrow("messages", 0, v7_1);
                    v3.setTransactionSuccessful();
                    v3.endTransaction();
                    if (v2 != null) {
                        v2.close();
                    }
                    if (v3 != null) {
                        v3.close();
                    }
                    v0_3 = 1;
                } catch (com.google.android.gms.internal.zzcfn v1_21) {
                    if (android.os.Build$VERSION.SDK_INT < 11) {
                        if (v3 != null) {
                            if (v3.inTransaction()) {
                                v3.endTransaction();
                            }
                        }
                        super.zzwF().zzyx().zzj("Error writing entry to local database", v1_21);
                        this.zzbqG = 1;
                    } else {
                        if (!(v1_21 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                        } else {
                            android.os.SystemClock.sleep(((long) v0_1));
                            v0_1 += 20;
                        }
                    }
                    if (v2 != null) {
                        v2.close();
                    }
                    if (v3 == null) {
                    } else {
                        v3.close();
                    }
                } catch (int v0_2) {
                    if (v2 != null) {
                        v2.close();
                    }
                    if (v3 != null) {
                        v3.close();
                    }
                    throw v0_2;
                }
                if (v3 != null) {
                    v3.beginTransaction();
                    Long v4_4 = 0;
                    v2 = v3.rawQuery("select count(1) from messages", 0);
                    if ((v2 != null) && (v2.moveToFirst())) {
                        v4_4 = v2.getLong(0);
                    }
                    if (v4_4 >= 100000) {
                        super.zzwF().zzyx().log("Data loss, local db full");
                        Long v4_6 = ((100000 - v4_4) + 1);
                        String[] v9_1 = new String[1];
                        v9_1[0] = Long.toString(v4_6);
                        long v8_6 = ((long) v3.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v9_1));
                        if (v8_6 != v4_6) {
                            super.zzwF().zzyx().zzd("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v4_6), Long.valueOf(v8_6), Long.valueOf((v4_6 - v8_6)));
                        }
                    }
                } else {
                    this.zzbqG = 1;
                    if (v3 != null) {
                        v3.close();
                    }
                    v0_3 = 0;
                }
            }
            super.zzwF().zzyz().log("Failed to write entry to local database");
            v0_3 = 0;
        } else {
            v0_3 = 0;
        }
        return v0_3;
    }

Method com.google.android.gms.internal.zzcen.zzye() calling method android.database.sqlite.SQLiteDatabase.delete()


    final void zzye()
    {
        this.zzjC();
        this.zzkD();
        if (this.zzyk()) {
            Integer v0_12 = this.zzwG().zzbrn.get();
            String v2_1 = this.zzkq().elapsedRealtime();
            if (Math.abs((v2_1 - v0_12)) > com.google.android.gms.internal.zzcem.zzxH()) {
                this.zzwG().zzbrn.set(v2_1);
                this.zzjC();
                this.zzkD();
                if (this.zzyk()) {
                    Integer v0_7 = this.getWritableDatabase();
                    com.google.android.gms.internal.zzcfn v1_1 = new String[2];
                    v1_1[0] = String.valueOf(this.zzkq().currentTimeMillis());
                    v1_1[1] = String.valueOf(com.google.android.gms.internal.zzcem.zzxG());
                    Integer v0_8 = v0_7.delete("queue", "abs(bundle_end_timestamp - ?) > cast(? as integer)", v1_1);
                    if (v0_8 > null) {
                        this.zzwF().zzyD().zzj("Deleted stale rows. rowsDeleted", Integer.valueOf(v0_8));
                    }
                }
            }
        }
        return;
    }

Method com.google.android.gms.internal.zzcen.zzdR() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final long zzdR(String p7)
    {
        com.google.android.gms.common.internal.zzbo.zzcF(p7);
        this.zzjC();
        this.zzkD();
        try {
            long v0_3 = this.getWritableDatabase();
            com.google.android.gms.internal.zzcfn v1_2 = String.valueOf(Math.max(0, Math.min(1000000, this.zzwH().zzb(p7, com.google.android.gms.internal.zzcfb.zzbqk))));
            String[] v4_1 = new String[2];
            v4_1[0] = p7;
            v4_1[1] = v1_2;
            long v0_1 = ((long) v0_3.delete("raw_events", "rowid in (select rowid from raw_events where app_id=? order by rowid desc limit -1 offset ?)", v4_1));
        } catch (long v0_2) {
            this.zzwF().zzyx().zze("Error deleting over the limit events. appId", com.google.android.gms.internal.zzcfl.zzdZ(p7), v0_2);
            v0_1 = 0;
        }
        return v0_1;
    }

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


    final void zza(String p13, com.google.android.gms.internal.zzcjm[] p14)
    {
        int v0_0 = 0;
        this.zzkD();
        this.zzjC();
        com.google.android.gms.common.internal.zzbo.zzcF(p13);
        com.google.android.gms.common.internal.zzbo.zzu(p14);
        android.database.sqlite.SQLiteDatabase v5 = this.getWritableDatabase();
        v5.beginTransaction();
        try {
            this.zzkD();
            this.zzjC();
            com.google.android.gms.common.internal.zzbo.zzcF(p13);
            int v1_0 = this.getWritableDatabase();
            int v6_1 = new String[1];
            v6_1[0] = p13;
            v1_0.delete("property_filters", "app_id=?", v6_1);
            int v6_3 = new String[1];
            v6_3[0] = p13;
            v1_0.delete("event_filters", "app_id=?", v6_3);
            int v6_4 = p14.length;
            int v1_1 = 0;
        } catch (int v0_1) {
            v5.endTransaction();
            throw v0_1;
        }
        while (v1_1 < v6_4) {
            int v3_8 = p14[v1_1];
            this.zzkD();
            this.zzjC();
            com.google.android.gms.common.internal.zzbo.zzcF(p13);
            com.google.android.gms.common.internal.zzbo.zzu(v3_8);
            com.google.android.gms.common.internal.zzbo.zzu(v3_8.zzbuK);
            com.google.android.gms.common.internal.zzbo.zzu(v3_8.zzbuJ);
            if (v3_8.zzbuI != null) {
                String v7_6 = v3_8.zzbuI.intValue();
                String v8_3 = v3_8.zzbuK;
                int v2_3 = 0;
                while (v2_3 < v8_3.length) {
                    if (v8_3[v2_3].zzbuM != null) {
                        v2_3++;
                    } else {
                        this.zzwF().zzyz().zze("Event filter with no ID. Audience definition ignored. appId, audienceId", com.google.android.gms.internal.zzcfl.zzdZ(p13), v3_8.zzbuI);
                    }
                }
                String v8_4 = v3_8.zzbuJ;
                int v2_0 = 0;
                while (v2_0 < v8_4.length) {
                    if (v8_4[v2_0].zzbuM != null) {
                        v2_0++;
                    } else {
                        this.zzwF().zzyz().zze("Property filter with no ID. Audience definition ignored. appId, audienceId", com.google.android.gms.internal.zzcfl.zzdZ(p13), v3_8.zzbuI);
                    }
                }
                String v8_5 = v3_8.zzbuK;
                int v2_15 = 0;
                while (v2_15 < v8_5.length) {
                    if (this.zza(p13, v7_6, v8_5[v2_15])) {
                        v2_15++;
                    } else {
                        int v2_16 = 0;
                    }
                    if (v2_16 != 0) {
                        String v8_6 = v3_8.zzbuJ;
                        int v3_9 = 0;
                        while (v3_9 < v8_6.length) {
                            if (this.zza(p13, v7_6, v8_6[v3_9])) {
                                v3_9++;
                            } else {
                                v2_16 = 0;
                                break;
                            }
                        }
                    }
                    if (v2_16 == 0) {
                        this.zzkD();
                        this.zzjC();
                        com.google.android.gms.common.internal.zzbo.zzcF(p13);
                        int v2_17 = this.getWritableDatabase();
                        String[] v9_7 = new String[2];
                        v9_7[0] = p13;
                        v9_7[1] = String.valueOf(v7_6);
                        v2_17.delete("property_filters", "app_id=? and audience_id=?", v9_7);
                        String[] v9_1 = new String[2];
                        v9_1[0] = p13;
                        v9_1[1] = String.valueOf(v7_6);
                        v2_17.delete("event_filters", "app_id=? and audience_id=?", v9_1);
                    }
                }
                v2_16 = 1;
            } else {
                this.zzwF().zzyz().zzj("Audience with no ID. appId", com.google.android.gms.internal.zzcfl.zzdZ(p13));
            }
            v1_1++;
        }
        int v1_3 = new java.util.ArrayList();
        int v2_10 = p14.length;
        while (v0_0 < v2_10) {
            v1_3.add(p14[v0_0].zzbuI);
            v0_0++;
        }
        this.zzc(p13, v1_3);
        v5.setTransactionSuccessful();
        v5.endTransaction();
        return;
    }

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


    public final int zzI(String p7, String p8)
    {
        String vtmp1 = com.google.android.gms.common.internal.zzbo.zzcF(p7);
        com.google.android.gms.common.internal.zzbo.zzcF(p8);
        this.zzjC();
        this.zzkD();
        try {
            android.database.sqlite.SQLiteException v1_1 = this.getWritableDatabase();
            Object v4_0 = new String[2];
            v4_0[0] = p7;
            v4_0[1] = p8;
            int v0 = v1_1.delete("conditional_properties", "app_id=? and name=?", v4_0);
        } catch (android.database.sqlite.SQLiteException v1_0) {
            this.zzwF().zzyx().zzd("Error deleting conditional property", com.google.android.gms.internal.zzcfl.zzdZ(p7), this.zzwA().zzdY(p8), v1_0);
        }
        return v0;
    }

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


    public final void zzG(java.util.List p7)
    {
        com.google.android.gms.common.internal.zzbo.zzu(p7);
        this.zzjC();
        this.zzkD();
        String v2_3 = new StringBuilder("rowid in (");
        com.google.android.gms.internal.zzcfn v1_4 = 0;
        while (v1_4 < p7.size()) {
            if (v1_4 != null) {
                v2_3.append(",");
            }
            v2_3.append(((Long) p7.get(v1_4)).longValue());
            v1_4++;
        }
        v2_3.append(")");
        Integer v0_2 = this.getWritableDatabase().delete("raw_events", v2_3.toString(), 0);
        if (v0_2 != p7.size()) {
            this.zzwF().zzyx().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v0_2), Integer.valueOf(p7.size()));
        }
        return;
    }

Method com.google.android.gms.internal.zzcen.zzF() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzF(String p6, String p7)
    {
        com.google.android.gms.common.internal.zzbo.zzcF(p6);
        com.google.android.gms.common.internal.zzbo.zzcF(p7);
        this.zzjC();
        this.zzkD();
        try {
            android.database.sqlite.SQLiteException v0_3 = this.getWritableDatabase();
            Object v3_2 = new String[2];
            v3_2[0] = p6;
            v3_2[1] = p7;
            this.zzwF().zzyD().zzj("Deleted user attribute rows", Integer.valueOf(v0_3.delete("user_attributes", "app_id=? and name=?", v3_2)));
        } catch (android.database.sqlite.SQLiteException v0_2) {
            this.zzwF().zzyx().zzd("Error deleting user attribute. appId", com.google.android.gms.internal.zzcfl.zzdZ(p6), this.zzwA().zzdY(p7), v0_2);
        }
        return;
    }

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


    private final boolean zzc(String p9, java.util.List p10)
    {
        String v2 = 0;
        com.google.android.gms.common.internal.zzbo.zzcF(p9);
        this.zzkD();
        this.zzjC();
        Object v4_1 = this.getWritableDatabase();
        try {
            int v1_11 = new String[1];
            v1_11[0] = p9;
            int v0_2 = this.zzb("select count(1) from audience_filter_values where app_id=?", v1_11);
            String v5_4 = Math.max(0, Math.min(2000, this.zzwH().zzb(p9, com.google.android.gms.internal.zzcfb.zzbqA)));
        } catch (int v0_4) {
            this.zzwF().zzyx().zze("Database error querying filters. appId", com.google.android.gms.internal.zzcfl.zzdZ(p9), v0_4);
            return v2;
        }
        if (v0_2 > ((long) v5_4)) {
            String[] v6_4 = new java.util.ArrayList();
            int v1_0 = 0;
            while (v1_0 < p10.size()) {
                int v0_18 = ((Integer) p10.get(v1_0));
                if ((v0_18 == 0) || (!(v0_18 instanceof Integer))) {
                    return v2;
                } else {
                    v6_4.add(Integer.toString(v0_18.intValue()));
                    v1_0++;
                }
            }
            int v0_8 = String.valueOf(android.text.TextUtils.join(",", v6_4));
            int v0_11 = new StringBuilder((String.valueOf(v0_8).length() + 2)).append("(").append(v0_8).append(")").toString();
            int v0_15 = new StringBuilder((String.valueOf(v0_11).length() + 140)).append("audience_id in (select audience_id from audience_filter_values where app_id=? and audience_id not in ").append(v0_11).append(" order by rowid desc limit -1 offset ?)").toString();
            String[] v6_14 = new String[2];
            v6_14[0] = p9;
            v6_14[1] = Integer.toString(v5_4);
            if (v4_1.delete("audience_filter_values", v0_15, v6_14) <= 0) {
                return v2;
            } else {
                v2 = 1;
                return v2;
            }
        } else {
            return v2;
        }
    }

Method com.google.android.gms.internal.zzamv.zzkk() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzkk()
    {
        com.google.android.gms.analytics.zzl.zzjC();
        this.zzkD();
        this.zzbo("Delete all hits from local store");
        try {
            String v0_7 = this.zzagv;
            com.google.android.gms.analytics.zzl.zzjC();
            v0_7.zzkD();
            v0_7.getWritableDatabase().delete("hits2", 0, 0);
            String v0_0 = this.zzagv;
            com.google.android.gms.analytics.zzl.zzjC();
            v0_0.zzkD();
            v0_0.getWritableDatabase().delete("properties", 0, 0);
            this.zzld();
        } catch (String v0_3) {
            this.zzd("Failed to delete hits from store", v0_3);
        }
        this.zzla();
        if (this.zzagy.zzkO()) {
            this.zzbo("Device service unavailable. Can\'t clear hits stored on the device service.");
        }
        return;
    }

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


    public final long zza(com.google.android.gms.internal.zzamm p11, boolean p12)
    {
        com.google.android.gms.common.internal.zzbo.zzu(p11);
        this.zzkD();
        com.google.android.gms.analytics.zzl.zzjC();
        try {
            this.zzagv.beginTransaction();
            String v0_22 = this.zzagv;
            String v2_6 = p11.zzkK();
            String v1_13 = p11.zzjX();
            com.google.android.gms.common.internal.zzbo.zzcF(v1_13);
            v0_22.zzkD();
            com.google.android.gms.analytics.zzl.zzjC();
            com.google.android.gms.internal.zzams v4_0 = v0_22.getWritableDatabase();
            int v7_2 = new String[2];
            v7_2[0] = String.valueOf(v2_6);
            v7_2[1] = v1_13;
            String v1_9 = v4_0.delete("properties", "app_uid=? AND cid<>?", v7_2);
        } catch (String v0_11) {
            try {
                this.zzagv.endTransaction();
            } catch (String v1_5) {
                this.zze("Failed to end transaction", v1_5);
            }
            throw v0_11;
        } catch (String v0_7) {
            this.zze("Failed to update Analytics property", v0_7);
            try {
                this.zzagv.endTransaction();
            } catch (String v0_9) {
                this.zze("Failed to end transaction", v0_9);
            }
            String v0_10 = -1;
            return v0_10;
        }
        if (v1_9 > null) {
            v0_22.zza("Deleted property records", Integer.valueOf(v1_9));
        }
        String v2_5 = this.zzagv.zza(p11.zzkK(), p11.zzjX(), p11.zzkL());
        p11.zzm((1 + v2_5));
        com.google.android.gms.internal.zzams v4_2 = this.zzagv;
        com.google.android.gms.common.internal.zzbo.zzu(p11);
        v4_2.zzkD();
        com.google.android.gms.analytics.zzl.zzjC();
        android.database.sqlite.SQLiteDatabase v5_1 = v4_2.getWritableDatabase();
        String v0_23 = p11.zzdV();
        com.google.android.gms.common.internal.zzbo.zzu(v0_23);
        long v6_3 = new android.net.Uri$Builder();
        int v7_3 = v0_23.entrySet().iterator();
        while (v7_3.hasNext()) {
            String v0_15 = ((java.util.Map$Entry) v7_3.next());
            v6_3.appendQueryParameter(((String) v0_15.getKey()), ((String) v0_15.getValue()));
        }
        String v1_12;
        String v0_27 = v6_3.build().getEncodedQuery();
        if (v0_27 != null) {
            v1_12 = v0_27;
        } else {
            v1_12 = "";
        }
        String v0_33;
        long v6_5 = new android.content.ContentValues();
        v6_5.put("app_uid", Long.valueOf(p11.zzkK()));
        v6_5.put("cid", p11.zzjX());
        v6_5.put("tid", p11.zzkL());
        if (!p11.zzkM()) {
            v0_33 = 0;
        } else {
            v0_33 = 1;
        }
        v6_5.put("adid", Integer.valueOf(v0_33));
        v6_5.put("hits_count", Long.valueOf(p11.zzkN()));
        v6_5.put("params", v1_12);
        try {
            if (v5_1.insertWithOnConflict("properties", 0, v6_5, 5) == -1) {
                v4_2.zzbs("Failed to insert/update a property (got -1)");
            }
        } catch (String v0_5) {
            v4_2.zze("Error storing a property", v0_5);
        }
        this.zzagv.setTransactionSuccessful();
        try {
            this.zzagv.endTransaction();
        } catch (String v0_13) {
            this.zze("Failed to end transaction", v0_13);
        }
        v0_10 = v2_5;
        return v0_10;
    }

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


    public final void zzs(java.util.List p9)
    {
        com.google.android.gms.common.internal.zzbo.zzu(p9);
        com.google.android.gms.analytics.zzl.zzjC();
        this.zzkD();
        if (!p9.isEmpty()) {
            String v2_5 = new StringBuilder("hit_id");
            v2_5.append(" in (");
            int v1_0 = 0;
            while (v1_0 < p9.size()) {
                int v0_7 = ((Long) p9.get(v1_0));
                if ((v0_7 != 0) && (v0_7.longValue() != 0)) {
                    if (v1_0 > 0) {
                        v2_5.append(",");
                    }
                    v2_5.append(v0_7);
                    v1_0++;
                } else {
                    throw new android.database.sqlite.SQLiteException("Invalid hit id");
                }
            }
            v2_5.append(")");
            int v0_3 = v2_5.toString();
            try {
                int v1_1 = this.getWritableDatabase();
                this.zza("Deleting dispatched hits. count", Integer.valueOf(p9.size()));
                int v1_2 = v1_1.delete("hits2", v0_3, 0);
            } catch (int v0_4) {
                this.zze("Error deleting hits", v0_4);
                throw v0_4;
            }
            if (v1_2 != p9.size()) {
                this.zzb("Deleted fewer hits then expected", Integer.valueOf(p9.size()), Integer.valueOf(v1_2), v0_3);
            }
        }
        return;
    }

Method com.google.android.gms.internal.zzams.zzkS() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final int zzkS()
    {
        int v0 = 0;
        com.google.android.gms.analytics.zzl.zzjC();
        this.zzkD();
        if (this.zzags.zzu(86400000)) {
            this.zzags.start();
            this.zzbo("Deleting stale hits (if any)");
            String v1_1 = this.getWritableDatabase();
            String[] v6_1 = new String[1];
            v6_1[0] = Long.toString((this.zzkq().currentTimeMillis() - 1.280618154e-314));
            v0 = v1_1.delete("hits2", "hit_time < ?", v6_1);
            this.zza("Deleted stale hits, count", Integer.valueOf(v0));
        }
        return v0;
    }

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


    public final void zzam(long p8)
    {
        this.zzFw();
        String v0 = String.valueOf(p8);
        android.database.sqlite.SQLiteDatabase v2_1 = this.zzbZD;
        String[] v4_1 = new String[1];
        v4_1[0] = v0;
        v2_1.delete("trackedQueries", "id = ?", v4_1);
        android.database.sqlite.SQLiteDatabase v2_0 = this.zzbZD;
        String[] v4_0 = new String[1];
        v4_0[0] = v0;
        v2_0.delete("trackedKeys", "id = ?", v4_0);
        return;
    }

Method com.google.android.gms.internal.nb.zzal() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzal(long p10)
    {
        this.zzFw();
        String v0_3 = System.currentTimeMillis();
        int v2_5 = this.zzbZD;
        Object[] v5_2 = new String[1];
        v5_2[0] = String.valueOf(p10);
        int v2_0 = v2_5.delete("writes", "id = ?", v5_2);
        String v0_0 = (System.currentTimeMillis() - v0_3);
        if (this.zzbZE.zzIH()) {
            com.google.android.gms.internal.wl v3_2 = this.zzbZE;
            Object[] v5_1 = new Object[3];
            v5_1[0] = Integer.valueOf(v2_0);
            v5_1[1] = Long.valueOf(p10);
            v5_1[2] = Long.valueOf(v0_0);
            Object[] v1 = new Object[0];
            v3_2.zzb(String.format("Deleted %d write(s) with writeId %d in %dms", v5_1), 0, v1);
        }
        return;
    }

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


    public final void zza(com.google.android.gms.internal.qr p11, com.google.android.gms.internal.uj p12)
    {
        if (p12.zzHN()) {
            this.zzFw();
            long v8 = System.currentTimeMillis();
            int v0_13 = new String[2];
            v0_13[0] = "rowid";
            v0_13[1] = "path";
            int v0_2 = this.zza(p11, v0_13);
            int v3_2 = new com.google.android.gms.internal.uv(0);
            com.google.android.gms.internal.uv v4_0 = new com.google.android.gms.internal.uv(0);
            while (v0_2.moveToNext()) {
                String v6_0 = v0_2.getLong(0);
                int v1_9 = new com.google.android.gms.internal.qr(v0_2.getString(1));
                if (p11.zzi(v1_9)) {
                    int v2_9 = com.google.android.gms.internal.qr.zza(p11, v1_9);
                    if (!p12.zzv(v2_9)) {
                        if (!p12.zzw(v2_9)) {
                            int v2_10 = this.zzbZE;
                            int v5_2 = String.valueOf(p11);
                            int v1_10 = String.valueOf(v1_9);
                            v2_10.zze(new StringBuilder(((String.valueOf(v5_2).length() + 88) + String.valueOf(v1_10).length())).append("We are pruning at ").append(v5_2).append(" and have data at ").append(v1_10).append(" that isn\'t marked for pruning or keeping. Ignoring.").toString(), 0);
                        } else {
                            v4_0 = v4_0.zzb(v2_9, Long.valueOf(v6_0));
                        }
                    } else {
                        v3_2 = v3_2.zzb(v2_9, Long.valueOf(v6_0));
                    }
                } else {
                    int v2_11 = this.zzbZE;
                    int v5_7 = String.valueOf(p11);
                    int v1_17 = String.valueOf(v1_9);
                    v2_11.zze(new StringBuilder(((String.valueOf(v5_7).length() + 67) + String.valueOf(v1_17).length())).append("We are pruning at ").append(v5_7).append(" but we have data stored higher up at ").append(v1_17).append(". Ignoring.").toString(), 0);
                }
            }
            int v1_23 = 0;
            int v0_3 = 0;
            if (!v3_2.isEmpty()) {
                String v6_16 = new java.util.ArrayList();
                this.zza(p11, com.google.android.gms.internal.qr.zzGZ(), v3_2, v4_0, p12, v6_16);
                com.google.android.gms.internal.uv v4_2 = v3_2.values();
                int v0_6 = String.valueOf(com.google.android.gms.internal.nb.zzj(v4_2));
                this.zzbZD.delete("serverCache", new StringBuilder((String.valueOf(v0_6).length() + 11)).append("rowid IN (").append(v0_6).append(")").toString(), 0);
                int v0_12 = ((java.util.ArrayList) v6_16);
                int v5_13 = v0_12.size();
                int v2_4 = 0;
                while (v2_4 < v5_13) {
                    int v3_0 = (v2_4 + 1);
                    int v1_3 = ((com.google.android.gms.internal.za) v0_12.get(v2_4));
                    this.zzc(p11.zzh(((com.google.android.gms.internal.qr) v1_3.getFirst())), ((com.google.android.gms.internal.xm) v1_3.zzJG()));
                    v2_4 = v3_0;
                }
                v1_23 = v4_2.size();
                v0_3 = v6_16.size();
            }
            int v2_18 = (System.currentTimeMillis() - v8);
            if (this.zzbZE.zzIH()) {
                com.google.android.gms.internal.uv v4_5 = this.zzbZE;
                String v6_18 = new Object[3];
                v6_18[0] = Integer.valueOf(v1_23);
                v6_18[1] = Integer.valueOf(v0_3);
                v6_18[2] = Long.valueOf(v2_18);
                int v1_1 = new Object[0];
                v4_5.zzb(String.format("Pruned %d rows with %d nodes resaved in %dms", v6_18), 0, v1_1);
            }
        }
        return;
    }

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


    public final void zza(long p12, java.util.Set p14, java.util.Set p15)
    {
        this.zzFw();
        com.google.android.gms.internal.wl v2_1 = System.currentTimeMillis();
        Object[] v4_2 = String.valueOf(p12);
        int v5_7 = p15.iterator();
        while (v5_7.hasNext()) {
            String v0_10 = ((com.google.android.gms.internal.wp) v5_7.next());
            Long v6_7 = this.zzbZD;
            String[] v8_1 = new String[2];
            v8_1[0] = v4_2;
            v8_1[1] = v0_10.asString();
            v6_7.delete("trackedKeys", "id = ? AND key = ?", v8_1);
        }
        Object[] v1_0 = p14.iterator();
        while (v1_0.hasNext()) {
            String v0_6 = ((com.google.android.gms.internal.wp) v1_0.next());
            Object[] v4_4 = new android.content.ContentValues();
            v4_4.put("id", Long.valueOf(p12));
            v4_4.put("key", v0_6.asString());
            this.zzbZD.insertWithOnConflict("trackedKeys", 0, v4_4, 5);
        }
        String v0_2 = (System.currentTimeMillis() - v2_1);
        if (this.zzbZE.zzIH()) {
            com.google.android.gms.internal.wl v2_3 = this.zzbZE;
            Object[] v4_1 = new Object[4];
            v4_1[0] = Integer.valueOf(p14.size());
            v4_1[1] = Integer.valueOf(p15.size());
            v4_1[2] = Long.valueOf(p12);
            v4_1[3] = Long.valueOf(v0_2);
            Object[] v1_3 = new Object[0];
            v2_3.zzb(String.format("Updated tracked query keys (%d added, %d removed) for tracked query id %d in %dms", v4_1), 0, v1_3);
        }
        return;
    }

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


    public final void zza(long p12, java.util.Set p14)
    {
        this.zzFw();
        com.google.android.gms.internal.wl v2_3 = System.currentTimeMillis();
        Object[] v4_4 = this.zzbZD;
        int v6_0 = new String[1];
        v6_0[0] = String.valueOf(p12);
        v4_4.delete("trackedKeys", "id = ?", v6_0);
        Object[] v1_0 = p14.iterator();
        while (v1_0.hasNext()) {
            String v0_6 = ((com.google.android.gms.internal.wp) v1_0.next());
            Object[] v4_3 = new android.content.ContentValues();
            v4_3.put("id", Long.valueOf(p12));
            v4_3.put("key", v0_6.asString());
            this.zzbZD.insertWithOnConflict("trackedKeys", 0, v4_3, 5);
        }
        String v0_2 = (System.currentTimeMillis() - v2_3);
        if (this.zzbZE.zzIH()) {
            com.google.android.gms.internal.wl v2_2 = this.zzbZE;
            Object[] v4_1 = new Object[3];
            v4_1[0] = Integer.valueOf(p14.size());
            v4_1[1] = Long.valueOf(p12);
            v4_1[2] = Long.valueOf(v0_2);
            Object[] v1_1 = new Object[0];
            v2_2.zzb(String.format("Set %d tracked query keys for tracked query %d in %dms", v4_1), 0, v1_1);
        }
        return;
    }

Method com.google.android.gms.internal.nb.zzFv() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzFv()
    {
        this.zzFw();
        String v0_3 = System.currentTimeMillis();
        int v2_3 = this.zzbZD.delete("writes", 0, 0);
        String v0_0 = (System.currentTimeMillis() - v0_3);
        if (this.zzbZE.zzIH()) {
            com.google.android.gms.internal.wl v3_2 = this.zzbZE;
            Object[] v5_1 = new Object[2];
            v5_1[0] = Integer.valueOf(v2_3);
            v5_1[1] = Long.valueOf(v0_0);
            Object[] v1 = new Object[0];
            v3_2.zzb(String.format("Deleted %d (all) write(s) in %dms", v5_1), 0, v1);
        }
        return;
    }

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


    private final void zza(com.google.android.gms.internal.qr p11, long p12, String p14, byte[] p15)
    {
        this.zzFw();
        int v1_8 = this.zzbZD;
        String v4_6 = new String[1];
        v4_6[0] = String.valueOf(p12);
        v1_8.delete("writes", "id = ?", v4_6);
        if (p15.length < 262144) {
            int v0_1 = new android.content.ContentValues();
            v0_1.put("id", Long.valueOf(p12));
            v0_1.put("path", com.google.android.gms.internal.nb.zzc(p11));
            v0_1.put("type", p14);
            v0_1.put("part", 0);
            v0_1.put("node", p15);
            this.zzbZD.insertWithOnConflict("writes", 0, v0_1, 5);
        } else {
            String v2_3 = com.google.android.gms.internal.nb.zzd(p15, 262144);
            int v1_7 = 0;
            while (v1_7 < v2_3.size()) {
                android.content.ContentValues v3_1 = new android.content.ContentValues();
                v3_1.put("id", Long.valueOf(p12));
                v3_1.put("path", com.google.android.gms.internal.nb.zzc(p11));
                v3_1.put("type", p14);
                v3_1.put("part", Integer.valueOf(v1_7));
                v3_1.put("node", ((byte[]) v2_3.get(v1_7)));
                this.zzbZD.insertWithOnConflict("writes", 0, v3_1, 5);
                v1_7++;
            }
        }
        return;
    }

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


    private final int zza(String p7, com.google.android.gms.internal.qr p8)
    {
        int v1_1 = com.google.android.gms.internal.nb.zzc(p8);
        String v2 = com.google.android.gms.internal.nb.zzgC(v1_1);
        android.database.sqlite.SQLiteDatabase v3 = this.zzbZD;
        String[] v4_1 = new String[2];
        v4_1[0] = v1_1;
        v4_1[1] = v2;
        return v3.delete(p7, "path >= ? AND path < ?", v4_1);
    }

Method com.hypertrack.hyperlog.DeviceLogTable.getDeviceLogs() calling method android.database.sqlite.SQLiteDatabase.query()


    static java.util.List getDeviceLogs(android.database.sqlite.SQLiteDatabase p18, int p19)
    {
        java.util.ArrayList v13;
        if (p18 != null) {
            int v19_1 = (p19 - 1);
            if ((com.hypertrack.hyperlog.DeviceLogTable.getDeviceLogBatchCount(p18) <= 1) || (v19_1 < 0)) {
                v19_1 = 0;
            }
            v13 = 0;
            String v9 = new StringBuilder().append(String.valueOf((v19_1 * 5000))).append(", ").append(String.valueOf(5000)).toString();
            String v3_0 = new String[2];
            v3_0[0] = "_id";
            v3_0[1] = "device_log";
            android.database.Cursor v11 = p18.query("device_logs", v3_0, 0, 0, 0, 0, 0, v9);
            if ((v11 != null) && (!v11.isClosed())) {
                try {
                    if (v11.moveToFirst()) {
                        java.util.ArrayList v14_1 = new java.util.ArrayList();
                        try {
                            while (!v11.isClosed()) {
                                String v15 = v11.getString(1);
                                if (!android.text.TextUtils.isEmpty(v15)) {
                                    int v1_16;
                                    com.hypertrack.hyperlog.DeviceLogModel v12_1 = new com.hypertrack.hyperlog.DeviceLogModel(v15);
                                    Integer v17 = Integer.valueOf(v11.getString(0));
                                    if (v17 == null) {
                                        v1_16 = 0;
                                    } else {
                                        v1_16 = v17.intValue();
                                    }
                                    v12_1.setId(v1_16);
                                    v14_1.add(v12_1);
                                }
                                if (!v11.moveToNext()) {
                                    v13 = v14_1;
                                }
                            }
                        } catch (int v1_19) {
                            v11.close();
                            throw v1_19;
                        } catch (Exception v16) {
                            v13 = v14_1;
                            v16.printStackTrace();
                            com.hypertrack.hyperlog.HyperLog.e(com.hypertrack.hyperlog.DeviceLogTable.TAG, new StringBuilder().append("DeviceLogTable: Exception occurred while getDeviceLogs: ").append(v16).toString());
                            v11.close();
                            return v13;
                        }
                        v13 = v14_1;
                    }
                } catch (int v1_19) {
                } catch (Exception v16) {
                }
                v11.close();
            } else {
                v13 = 0;
            }
        } else {
            v13 = 0;
        }
        return v13;
    }

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


    private static boolean zza(String p10, android.database.sqlite.SQLiteDatabase p11)
    {
        String v9 = 0;
        try {
            String v2_1 = new String[1];
            v2_1[0] = "name";
            String[] v4 = new String[1];
            v4[0] = p10;
            String v1_0 = p11.query("SQLITE_MASTER", v2_1, "name=?", v4, 0, 0, 0);
            try {
                int v0_4 = v1_0.moveToFirst();
            } catch (int v0_3) {
                v9 = v1_0;
                if (v9 != null) {
                    v9.close();
                }
                throw v0_3;
            } catch (int v0) {
                int v0_2 = v1_0;
                try {
                    String v1_2 = String.valueOf(p10);
                } catch (String v1_5) {
                    v9 = v0_2;
                    v0_3 = v1_5;
                }
                if (v1_2.length() == 0) {
                    String v1_4 = new String("Error querying for table ");
                } else {
                    v1_4 = "Error querying for table ".concat(v1_2);
                }
                com.google.android.gms.tagmanager.zzdj.zzaT(v1_4);
                if (v0_2 != 0) {
                    v0_2.close();
                }
                v0_4 = 0;
                return v0_4;
            }
            if (v1_0 == null) {
                return v0_4;
            } else {
                v1_0.close();
                return v0_4;
            }
        } catch (int v0_3) {
        } catch (int v0) {
            v0_2 = 0;
        }
    }

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


    private final java.util.List zzbE(int p17)
    {
        int v11_0;
        int v12_1 = new java.util.ArrayList();
        int v2_22 = this.zzfg("Error opening database for peekHits");
        if (v2_22 != 0) {
            int v11_2 = 0;
            try {
                int v4_0 = new String[3];
                v4_0[0] = "hit_id";
                v4_0[1] = "hit_time";
                v4_0[2] = "hit_first_send_time";
                String v10_5 = new Object[1];
                v10_5[0] = "hit_id";
                String v13_0 = v2_22.query("gtm_hits", v4_0, 0, 0, 0, 0, String.format("%s ASC", v10_5), Integer.toString(40));
                try {
                    v11_0 = new java.util.ArrayList();
                    try {
                        if (v13_0.moveToFirst()) {
                            do {
                                v11_0.add(new com.google.android.gms.tagmanager.zzbx(v13_0.getLong(0), v13_0.getLong(1), v13_0.getLong(2)));
                            } while(v13_0.moveToNext());
                        }
                    } catch (int v2_20) {
                        com.google.android.gms.tagmanager.zzbx v3_5 = v13_0;
                        try {
                            int v2_24 = String.valueOf(v2_20.getMessage());
                        } catch (int v2_21) {
                            v11_2 = v3_5;
                            if (v11_2 != 0) {
                                v11_2.close();
                            }
                            throw v2_21;
                        }
                        if (v2_24.length() == 0) {
                            int v2_26 = new String("Error in peekHits fetching hitIds: ");
                        } else {
                            v2_26 = "Error in peekHits fetching hitIds: ".concat(v2_24);
                        }
                        com.google.android.gms.tagmanager.zzdj.zzaT(v2_26);
                        if (v3_5 == null) {
                            return v11_0;
                        } else {
                            v3_5.close();
                            return v11_0;
                        }
                    }
                    if (v13_0 != null) {
                        v13_0.close();
                    }
                    try {
                        int v4_11 = new String[2];
                        v4_11[0] = "hit_id";
                        v4_11[1] = "hit_url";
                        String v10_1 = new Object[1];
                        v10_1[0] = "hit_id";
                        com.google.android.gms.tagmanager.zzbx v3_0 = v2_22.query("gtm_hits", v4_11, 0, 0, 0, 0, String.format("%s ASC", v10_1), Integer.toString(40));
                        try {
                            if (v3_0.moveToFirst()) {
                                int v4_1 = 0;
                                while(true) {
                                    if (((android.database.sqlite.SQLiteCursor) v3_0).getWindow().getNumRows() <= 0) {
                                        int v6_2 = new Object[1];
                                        v6_2[0] = Long.valueOf(((com.google.android.gms.tagmanager.zzbx) v11_0.get(v4_1)).zzBm());
                                        com.google.android.gms.tagmanager.zzdj.zzaT(String.format("HitString for hitId %d too large.  Hit will be deleted.", v6_2));
                                    } else {
                                        ((com.google.android.gms.tagmanager.zzbx) v11_0.get(v4_1)).zzfl(v3_0.getString(1));
                                    }
                                    if (!v3_0.moveToNext()) {
                                        break;
                                    }
                                    v4_1++;
                                }
                            }
                        } catch (int v2_17) {
                            v13_0 = v3_0;
                            if (v13_0 != null) {
                                v13_0.close();
                            }
                            throw v2_17;
                        } catch (int v2_0) {
                            v13_0 = v3_0;
                            int v2_13 = String.valueOf(v2_0.getMessage());
                            if (v2_13.length() == 0) {
                                int v2_15 = new String("Error in peekHits fetching hit url: ");
                            } else {
                                v2_15 = "Error in peekHits fetching hit url: ".concat(v2_13);
                            }
                            com.google.android.gms.tagmanager.zzdj.zzaT(v2_15);
                            int v4_4 = new java.util.ArrayList();
                            int v5_6 = 0;
                            int v2_16 = ((java.util.ArrayList) v11_0);
                            int v7_2 = v2_16.size();
                            int v6_4 = 0;
                        }
                        if (v3_0 != null) {
                            v3_0.close();
                        }
                    } catch (int v2_17) {
                    } catch (int v2_0) {
                    }
                } catch (int v2_21) {
                    v11_2 = v13_0;
                } catch (int v2_20) {
                    v3_5 = v13_0;
                    v11_0 = v12_1;
                }
            } catch (int v2_21) {
            } catch (int v2_20) {
                v3_5 = 0;
                v11_0 = v12_1;
            }
        } else {
            v11_0 = v12_1;
        }
        return v11_0;
    }

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


    private final java.util.List zzbD(int p14)
    {
        java.util.ArrayList v0_12;
        java.util.ArrayList v9_1 = new java.util.ArrayList();
        if (p14 > 0) {
            java.util.ArrayList v0_9 = this.zzfg("Error opening database for peekHitIds.");
            if (v0_9 != null) {
                try {
                    long v2_0 = new String[1];
                    v2_0[0] = "hit_id";
                    String v8_1 = new Object[1];
                    v8_1[0] = "hit_id";
                    int v1_0 = v0_9.query("gtm_hits", v2_0, 0, 0, 0, 0, String.format("%s ASC", v8_1), Integer.toString(p14));
                    try {
                        if (v1_0.moveToFirst()) {
                            do {
                                v9_1.add(String.valueOf(v1_0.getLong(0)));
                            } while(v1_0.moveToNext());
                        }
                    } catch (java.util.ArrayList v0_0) {
                        java.util.ArrayList v0_5 = String.valueOf(v0_0.getMessage());
                        if (v0_5.length() == 0) {
                            java.util.ArrayList v0_7 = new String("Error in peekHits fetching hitIds: ");
                        } else {
                            v0_7 = "Error in peekHits fetching hitIds: ".concat(v0_5);
                        }
                        com.google.android.gms.tagmanager.zzdj.zzaT(v0_7);
                        if (v1_0 == 0) {
                            v0_12 = v9_1;
                            return v0_12;
                        } else {
                            v1_0.close();
                        }
                    }
                    if (v1_0 == 0) {
                    } else {
                        v1_0.close();
                    }
                } catch (java.util.ArrayList v0_1) {
                    v1_0 = 0;
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    throw v0_1;
                } catch (java.util.ArrayList v0_0) {
                    v1_0 = 0;
                } catch (java.util.ArrayList v0_1) {
                }
            } else {
                v0_12 = v9_1;
            }
        } else {
            com.google.android.gms.tagmanager.zzdj.zzaT("Invalid maxHits specified. Skipping");
            v0_12 = v9_1;
        }
        return v0_12;
    }

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


    private final int zzBB()
    {
        String v8 = 0;
        String v9 = 0;
        String v0_4 = this.zzfg("Error opening database for getNumStoredHits.");
        if (v0_4 != null) {
            try {
                String[] v2_1 = new String[2];
                v2_1[0] = "hit_id";
                v2_1[1] = "hit_first_send_time";
                Throwable v1_0 = v0_4.query("gtm_hits", v2_1, "hit_first_send_time=0", 0, 0, 0, 0);
                try {
                    String v0_3 = v1_0.getCount();
                } catch (String v0_2) {
                    v9 = v1_0;
                    if (v9 != null) {
                        v9.close();
                    }
                    throw v0_2;
                } catch (String v0) {
                    String v0_1 = v1_0;
                    try {
                        com.google.android.gms.tagmanager.zzdj.zzaT("Error getting num untried hits");
                    } catch (Throwable v1_2) {
                        v9 = v0_1;
                        v0_2 = v1_2;
                    }
                    if (v0_1 == null) {
                        v0_3 = 0;
                        v8 = v0_3;
                    } else {
                        v0_1.close();
                        v0_3 = 0;
                    }
                }
                if (v1_0 == null) {
                } else {
                    v1_0.close();
                }
            } catch (String v0_2) {
            } catch (String v0) {
                v0_1 = 0;
            }
        }
        return v8;
    }

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 v9 = 0;
        try {
            String v2_1 = new String[1];
            v2_1[0] = "name";
            String[] v4 = new String[1];
            v4[0] = p10;
            String v1_0 = p11.query("SQLITE_MASTER", v2_1, "name=?", v4, 0, 0, 0);
            try {
                int v0_4 = v1_0.moveToFirst();
            } catch (int v0_3) {
                v9 = v1_0;
                if (v9 != null) {
                    v9.close();
                }
                throw v0_3;
            } catch (int v0) {
                int v0_2 = v1_0;
                try {
                    String v1_2 = String.valueOf(p10);
                } catch (String v1_5) {
                    v9 = v0_2;
                    v0_3 = v1_5;
                }
                if (v1_2.length() == 0) {
                    String v1_4 = new String("Error querying for table ");
                } else {
                    v1_4 = "Error querying for table ".concat(v1_2);
                }
                com.google.android.gms.tagmanager.zzdj.zzaT(v1_4);
                if (v0_2 != 0) {
                    v0_2.close();
                }
                v0_4 = 0;
                return v0_4;
            }
            if (v1_0 == null) {
                return v0_4;
            } else {
                v1_0.close();
                return v0_4;
            }
        } catch (int v0_3) {
        } catch (int v0) {
            v0_2 = 0;
        }
    }

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


    private final java.util.List zzby(int p14)
    {
        java.util.ArrayList v0_12;
        java.util.ArrayList v9_1 = new java.util.ArrayList();
        if (p14 > 0) {
            java.util.ArrayList v0_9 = this.zzfg("Error opening database for peekEntryIds.");
            if (v0_9 != null) {
                try {
                    long v2_0 = new String[1];
                    v2_0[0] = "ID";
                    String v8_1 = new Object[1];
                    v8_1[0] = "ID";
                    int v1_0 = v0_9.query("datalayer", v2_0, 0, 0, 0, 0, String.format("%s ASC", v8_1), Integer.toString(p14));
                    try {
                        if (v1_0.moveToFirst()) {
                            do {
                                v9_1.add(String.valueOf(v1_0.getLong(0)));
                            } while(v1_0.moveToNext());
                        }
                    } catch (java.util.ArrayList v0_0) {
                        java.util.ArrayList v0_5 = String.valueOf(v0_0.getMessage());
                        if (v0_5.length() == 0) {
                            java.util.ArrayList v0_7 = new String("Error in peekEntries fetching entryIds: ");
                        } else {
                            v0_7 = "Error in peekEntries fetching entryIds: ".concat(v0_5);
                        }
                        com.google.android.gms.tagmanager.zzdj.zzaT(v0_7);
                        if (v1_0 == 0) {
                            v0_12 = v9_1;
                            return v0_12;
                        } else {
                            v1_0.close();
                        }
                    }
                    if (v1_0 == 0) {
                    } else {
                        v1_0.close();
                    }
                } catch (java.util.ArrayList v0_1) {
                    v1_0 = 0;
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    throw v0_1;
                } catch (java.util.ArrayList v0_0) {
                    v1_0 = 0;
                } catch (java.util.ArrayList v0_1) {
                }
            } else {
                v0_12 = v9_1;
            }
        } else {
            com.google.android.gms.tagmanager.zzdj.zzaT("Invalid maxEntries specified. Skipping.");
            v0_12 = v9_1;
        }
        return v0_12;
    }

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


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

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


    private static boolean zza(String p10, android.database.sqlite.SQLiteDatabase p11)
    {
        android.database.Cursor v9 = 0;
        try {
            String[] v2 = new String[1];
            v2[0] = "name";
            String[] v4 = new String[1];
            v4[0] = p10;
            android.database.Cursor v1_0 = p11.query("SQLITE_MASTER", v2, "name=?", v4, 0, 0, 0);
            try {
                int v0_4 = v1_0.moveToFirst();
            } catch (int v0_3) {
                v9 = v1_0;
                if (v9 != null) {
                    v9.close();
                }
                throw v0_3;
            } catch (int v0) {
                int v0_2 = v1_0;
                if (v0_2 != 0) {
                    v0_2.close();
                }
                v0_4 = 0;
                return v0_4;
            }
            if (v1_0 == null) {
                return v0_4;
            } else {
                v1_0.close();
                return v0_4;
            }
        } catch (int v0_3) {
        } catch (int v0) {
            v0_2 = 0;
        }
    }

Method com.google.android.gms.internal.zzcvn.zzbE() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List zzbE(int p17)
    {
        boolean v11_0;
        long v12_1 = new java.util.ArrayList();
        int v2_41 = this.zzfg("Error opening database for peekHits");
        if (v2_41 != 0) {
            boolean v11_2 = 0;
            try {
                String v4_0 = new String[3];
                v4_0[0] = "hit_id";
                v4_0[1] = "hit_time";
                v4_0[2] = "hit_first_send_time";
                String v10_5 = new Object[1];
                v10_5[0] = "hit_id";
                String v13_0 = v2_41.query("gtm_hits", v4_0, 0, 0, 0, 0, String.format("%s ASC", v10_5), Integer.toString(40));
                try {
                    v11_0 = new java.util.ArrayList();
                    try {
                        if (v13_0.moveToFirst()) {
                            do {
                                v11_0.add(new com.google.android.gms.internal.zzcuw(v13_0.getLong(0), v13_0.getLong(1), v13_0.getLong(2)));
                            } while(v13_0.moveToNext());
                        }
                    } catch (int v2_39) {
                        com.google.android.gms.internal.zzcuw v3_5 = v13_0;
                        try {
                            int v2_43 = String.valueOf(v2_39.getMessage());
                        } catch (int v2_40) {
                            v11_2 = v3_5;
                            if (v11_2) {
                                v11_2.close();
                            }
                            throw v2_40;
                        }
                        if (v2_43.length() == 0) {
                            int v2_45 = new String("Error in peekHits fetching hitIds: ");
                        } else {
                            v2_45 = "Error in peekHits fetching hitIds: ".concat(v2_43);
                        }
                        com.google.android.gms.internal.zzcvk.zzaT(v2_45);
                        if (v3_5 == null) {
                            return v11_0;
                        } else {
                            v3_5.close();
                            return v11_0;
                        }
                    }
                    if (v13_0 != null) {
                        v13_0.close();
                    }
                    try {
                        String v4_23 = new String[5];
                        v4_23[0] = "hit_id";
                        v4_23[1] = "hit_url";
                        v4_23[2] = "hit_method";
                        v4_23[3] = "hit_headers";
                        v4_23[4] = "hit_body";
                        String v10_1 = new Object[1];
                        v10_1[0] = "hit_id";
                        com.google.android.gms.internal.zzcuw v3_0 = v2_41.query("gtm_hits", v4_23, 0, 0, 0, 0, String.format("%s ASC", v10_1), Integer.toString(40));
                        try {
                            if (v3_0.moveToFirst()) {
                                int v5_5 = 0;
                                while(true) {
                                    if (((android.database.sqlite.SQLiteCursor) v3_0).getWindow().getNumRows() <= 0) {
                                        int v6_5 = new Object[1];
                                        v6_5[0] = Long.valueOf(((com.google.android.gms.internal.zzcuw) v11_0.get(v5_5)).zzBm());
                                        com.google.android.gms.internal.zzcvk.zzaT(String.format("HitString for hitId %d too large. Hit will be deleted.", v6_5));
                                        int v2_27 = (v5_5 + 1);
                                    } else {
                                        ((com.google.android.gms.internal.zzcuw) v11_0.get(v5_5)).zzfl(v3_0.getString(1));
                                        ((com.google.android.gms.internal.zzcuw) v11_0.get(v5_5)).zzfD(v3_0.getString(2));
                                        ((com.google.android.gms.internal.zzcuw) v11_0.get(v5_5)).zzfE(v3_0.getString(4));
                                        try {
                                            String v4_10;
                                            String v4_9 = v3_0.getString(3);
                                        } catch (int v2_19) {
                                            String v4_12 = v2_19;
                                            Object[] v7_4 = new Object[2];
                                            v7_4[0] = Long.valueOf(((com.google.android.gms.internal.zzcuw) v11_0.get(v5_5)).zzBm());
                                            v7_4[1] = v4_12.getMessage();
                                            com.google.android.gms.internal.zzcvk.zzaT(String.format("Failed to read headers for hitId %d: %s", v7_4));
                                            v2_27 = v5_5;
                                        }
                                        if (v4_9 == null) {
                                            v4_10 = 0;
                                        } else {
                                            Object[] v7_3 = new org.json.JSONObject(v4_9);
                                            int v8_2 = v7_3.names();
                                            v4_10 = new java.util.HashMap();
                                            int v6_8 = 0;
                                            while (v6_8 < v8_2.length()) {
                                                String v9_3 = v8_2.getString(v6_8);
                                                v4_10.put(v9_3, ((String) v7_3.opt(v9_3)));
                                                v6_8++;
                                            }
                                        }
                                        ((com.google.android.gms.internal.zzcuw) v11_0.get(v5_5)).zzu(v4_10);
                                    }
                                    if (!v3_0.moveToNext()) {
                                        break;
                                    }
                                    v5_5 = v2_27;
                                }
                            }
                        } catch (int v2_35) {
                            if (v3_0 != null) {
                                v3_0.close();
                            }
                            throw v2_35;
                        } catch (int v2_0) {
                            v13_0 = v3_0;
                            int v2_31 = String.valueOf(v2_0.getMessage());
                            if (v2_31.length() == 0) {
                                int v2_33 = new String("Error in peekHits fetching hit url: ");
                            } else {
                                v2_33 = "Error in peekHits fetching hit url: ".concat(v2_31);
                            }
                            com.google.android.gms.internal.zzcvk.zzaT(v2_33);
                            String v4_16 = new java.util.ArrayList();
                            int v5_9 = 0;
                            int v2_34 = ((java.util.ArrayList) v11_0);
                            Object[] v7_6 = v2_34.size();
                            int v6_11 = 0;
                        }
                        if (v3_0 != null) {
                            v3_0.close();
                        }
                    } catch (int v2_35) {
                        v3_0 = v13_0;
                    } catch (int v2_0) {
                    }
                } catch (int v2_40) {
                    v11_2 = v13_0;
                } catch (int v2_39) {
                    v3_5 = v13_0;
                    v11_0 = v12_1;
                }
            } catch (int v2_40) {
            } catch (int v2_39) {
                v3_5 = 0;
                v11_0 = v12_1;
            }
        } else {
            v11_0 = v12_1;
        }
        return v11_0;
    }

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


    private final java.util.List zzbD(int p14)
    {
        java.util.ArrayList v0_12;
        java.util.ArrayList v9_1 = new java.util.ArrayList();
        if (p14 > 0) {
            java.util.ArrayList v0_9 = this.zzfg("Error opening database for peekHitIds.");
            if (v0_9 != null) {
                try {
                    long v2_0 = new String[1];
                    v2_0[0] = "hit_id";
                    String v8_1 = new Object[1];
                    v8_1[0] = "hit_id";
                    int v1_0 = v0_9.query("gtm_hits", v2_0, 0, 0, 0, 0, String.format("%s ASC", v8_1), Integer.toString(p14));
                    try {
                        if (v1_0.moveToFirst()) {
                            do {
                                v9_1.add(String.valueOf(v1_0.getLong(0)));
                            } while(v1_0.moveToNext());
                        }
                    } catch (java.util.ArrayList v0_0) {
                        java.util.ArrayList v0_5 = String.valueOf(v0_0.getMessage());
                        if (v0_5.length() == 0) {
                            java.util.ArrayList v0_7 = new String("Error in peekHits fetching hitIds: ");
                        } else {
                            v0_7 = "Error in peekHits fetching hitIds: ".concat(v0_5);
                        }
                        com.google.android.gms.internal.zzcvk.zzaT(v0_7);
                        if (v1_0 == 0) {
                            v0_12 = v9_1;
                            return v0_12;
                        } else {
                            v1_0.close();
                        }
                    }
                    if (v1_0 == 0) {
                    } else {
                        v1_0.close();
                    }
                } catch (java.util.ArrayList v0_1) {
                    v1_0 = 0;
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    throw v0_1;
                } catch (java.util.ArrayList v0_0) {
                    v1_0 = 0;
                } catch (java.util.ArrayList v0_1) {
                }
            } else {
                v0_12 = v9_1;
            }
        } else {
            com.google.android.gms.internal.zzcvk.zzaT("Invalid maxHits specified. Skipping");
            v0_12 = v9_1;
        }
        return v0_12;
    }

Method com.google.android.gms.internal.zzcvn.zzBB() calling method android.database.sqlite.SQLiteDatabase.query()


    private final int zzBB()
    {
        android.database.sqlite.SQLiteException v8 = 0;
        android.database.sqlite.SQLiteException v0_8 = this.zzfg("Error opening database for getNumStoredHits.");
        if (v0_8 != null) {
            try {
                String v2_2 = new String[2];
                v2_2[0] = "hit_id";
                v2_2[1] = "hit_first_send_time";
                int v1_0 = v0_8.query("gtm_hits", v2_2, "hit_first_send_time=0", 0, 0, 0, 0);
                try {
                    android.database.sqlite.SQLiteException v0_3 = v1_0.getCount();
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    android.database.sqlite.SQLiteException v0_5 = String.valueOf(v0_1.getMessage());
                    if (v0_5.length() == 0) {
                        android.database.sqlite.SQLiteException v0_7 = new String("Error getting num untried hits: ");
                    } else {
                        v0_7 = "Error getting num untried hits: ".concat(v0_5);
                    }
                    com.google.android.gms.internal.zzcvk.zzaT(v0_7);
                    if (v1_0 == 0) {
                        v0_3 = 0;
                        v8 = v0_3;
                    } else {
                        v1_0.close();
                        v0_3 = 0;
                    }
                }
                if (v1_0 == 0) {
                } else {
                    v1_0.close();
                }
            } catch (android.database.sqlite.SQLiteException v0_2) {
                v1_0 = 0;
                if (v1_0 != 0) {
                    v1_0.close();
                }
                throw v0_2;
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v1_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_2) {
            }
        }
        return v8;
    }

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


    private final boolean zzg(String p21, long p22)
    {
        this.zzwz().beginTransaction();
        try {
            com.google.android.gms.internal.zzcgl$zza v15_1 = new com.google.android.gms.internal.zzcgl$zza(this, 0);
            int v14_1 = this.zzwz();
            com.google.android.gms.internal.zzcjw v4_10 = 0;
            com.google.android.gms.internal.zzcjz v16_0 = this.zzbsS;
            com.google.android.gms.common.internal.zzbo.zzu(v15_1);
            v14_1.zzjC();
            v14_1.zzkD();
            int v3_4 = 0;
            try {
                String[] v12_1;
                com.google.android.gms.internal.zzcjw v13_1;
                com.google.android.gms.internal.zzcfn v2_3 = v14_1.getWritableDatabase();
            } catch (com.google.android.gms.internal.zzcfn v2_1) {
                v14_1.zzwF().zzyx().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzcfl.zzdZ(v4_10), v2_1);
                if (v3_4 == 0) {
                    if ((v15_1.zztH != null) && (!v15_1.zztH.isEmpty())) {
                        com.google.android.gms.internal.zzcfn v2_24 = 0;
                    } else {
                        v2_24 = 1;
                    }
                    com.google.android.gms.internal.zzcfn v2_27;
                    if (v2_24 != null) {
                        this.zzwz().setTransactionSuccessful();
                        this.zzwz().endTransaction();
                        v2_27 = 0;
                    } else {
                        com.google.android.gms.internal.zzcjw v13_0 = 0;
                        com.google.android.gms.internal.zzcjz v16_1 = v15_1.zzbsZ;
                        com.google.android.gms.internal.zzcfn v2_30 = new com.google.android.gms.internal.zzcjw[v15_1.zztH.size()];
                        v16_1.zzbvE = v2_30;
                        String[] v12_0 = 0;
                        int v14_0 = 0;
                        while (v14_0 < v15_1.zztH.size()) {
                            com.google.android.gms.internal.zzcfn v2_171;
                            int v3_72;
                            if (!this.zzwC().zzN(v15_1.zzbsZ.zzaH, ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name)) {
                                com.google.android.gms.internal.zzcjw v4_71;
                                boolean v17 = this.zzwC().zzO(v15_1.zzbsZ.zzaH, ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name);
                                if (v17) {
                                    int v3_41 = 0;
                                    com.google.android.gms.internal.zzcjw v4_43 = 0;
                                    if (((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw == null) {
                                        int v5_34 = new com.google.android.gms.internal.zzcjx[0];
                                        ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw = v5_34;
                                    }
                                    int v6_20 = ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw;
                                    com.google.android.gms.internal.zzcjx[] v7_27 = v6_20.length;
                                    int v5_35 = 0;
                                    while (v5_35 < v7_27) {
                                        com.google.android.gms.internal.zzcfn v2_173;
                                        com.google.android.gms.internal.zzcfn v2_172 = v6_20[v5_35];
                                        if (!"_c".equals(v2_172.name)) {
                                            if (!"_r".equals(v2_172.name)) {
                                                v2_173 = v4_43;
                                            } else {
                                                v2_172.zzbvA = Long.valueOf(1);
                                                v2_173 = 1;
                                            }
                                        } else {
                                            v2_172.zzbvA = Long.valueOf(1);
                                            v3_41 = 1;
                                            v2_173 = v4_43;
                                        }
                                        v5_35++;
                                        v4_43 = v2_173;
                                    }
                                    if ((v3_41 == 0) && (v17)) {
                                        this.zzwF().zzyD().zzj("Marking event as conversion", this.zzwA().zzdW(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name));
                                        com.google.android.gms.internal.zzcfn v2_127 = ((com.google.android.gms.internal.zzcjx[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw, (((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw.length + 1)));
                                        int v3_46 = new com.google.android.gms.internal.zzcjx();
                                        v3_46.name = "_c";
                                        v3_46.zzbvA = Long.valueOf(1);
                                        v2_127[(v2_127.length - 1)] = v3_46;
                                        ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw = v2_127;
                                    }
                                    if (v4_43 == null) {
                                        this.zzwF().zzyD().zzj("Marking event as real-time", this.zzwA().zzdW(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name));
                                        com.google.android.gms.internal.zzcfn v2_144 = ((com.google.android.gms.internal.zzcjx[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw, (((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw.length + 1)));
                                        int v3_53 = new com.google.android.gms.internal.zzcjx();
                                        v3_53.name = "_r";
                                        v3_53.zzbvA = Long.valueOf(1);
                                        v2_144[(v2_144.length - 1)] = v3_53;
                                        ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw = v2_144;
                                    }
                                    if (this.zzwz().zza(this.zzyZ(), v15_1.zzbsZ.zzaH, 0, 0, 0, 0, 1).zzbpy <= ((long) this.zzbsn.zzdM(v15_1.zzbsZ.zzaH))) {
                                        v13_0 = 1;
                                    } else {
                                        com.google.android.gms.internal.zzcfn v2_148 = ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0));
                                        int v3_62 = 0;
                                        while (v3_62 < v2_148.zzbvw.length) {
                                            if (!"_r".equals(v2_148.zzbvw[v3_62].name)) {
                                                v3_62++;
                                            } else {
                                                com.google.android.gms.internal.zzcjw v4_59 = new com.google.android.gms.internal.zzcjx[(v2_148.zzbvw.length - 1)];
                                                if (v3_62 > 0) {
                                                    System.arraycopy(v2_148.zzbvw, 0, v4_59, 0, v3_62);
                                                }
                                                if (v3_62 < v4_59.length) {
                                                    System.arraycopy(v2_148.zzbvw, (v3_62 + 1), v4_59, v3_62, (v4_59.length - v3_62));
                                                }
                                                v2_148.zzbvw = v4_59;
                                                break;
                                            }
                                        }
                                    }
                                    if ((!com.google.android.gms.internal.zzcjl.zzeo(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name)) || ((!v17) || (this.zzwz().zza(this.zzyZ(), v15_1.zzbsZ.zzaH, 0, 0, 1, 0, 0).zzbpw <= ((long) this.zzbsn.zzb(v15_1.zzbsZ.zzaH, com.google.android.gms.internal.zzcfb.zzbqi))))) {
                                        v4_71 = v13_0;
                                    } else {
                                        this.zzwF().zzyz().zzj("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH));
                                        com.google.android.gms.internal.zzcfn v2_162 = ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0));
                                        int v5_57 = 0;
                                        com.google.android.gms.internal.zzcjw v4_67 = 0;
                                        com.google.android.gms.internal.zzcjx[] v7_33 = v2_162.zzbvw;
                                        int v6_34 = 0;
                                        while (v6_34 < v7_33.length) {
                                            com.google.android.gms.internal.zzcjw v4_72;
                                            int v3_74 = v7_33[v6_34];
                                            if (!"_c".equals(v3_74.name)) {
                                                if (!"_err".equals(v3_74.name)) {
                                                    v3_74 = v4_67;
                                                    v4_72 = v5_57;
                                                } else {
                                                    v4_72 = 1;
                                                    v3_74 = v4_67;
                                                }
                                            } else {
                                                v4_72 = v5_57;
                                            }
                                            v6_34++;
                                            v5_57 = v4_72;
                                            v4_67 = v3_74;
                                        }
                                        if ((v5_57 == 0) || (v4_67 == null)) {
                                            if (v4_67 == null) {
                                                this.zzwF().zzyx().zzj("Did not find conversion parameter. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH));
                                            } else {
                                                v4_67.name = "_err";
                                                v4_67.zzbvA = Long.valueOf(10);
                                                v4_71 = v13_0;
                                            }
                                        } else {
                                            com.google.android.gms.internal.zzcjx[] v7_35 = new com.google.android.gms.internal.zzcjx[(v2_162.zzbvw.length - 1)];
                                            int v5_58 = 0;
                                            com.google.android.gms.internal.zzcjx[] v8_17 = v2_162.zzbvw;
                                            int v9_4 = v8_17.length;
                                            int v6_35 = 0;
                                            while (v6_35 < v9_4) {
                                                int v3_73;
                                                com.google.android.gms.internal.zzcjx v10_4 = v8_17[v6_35];
                                                if (v10_4 == v4_67) {
                                                    v3_73 = v5_58;
                                                } else {
                                                    v3_73 = (v5_58 + 1);
                                                    v7_35[v5_58] = v10_4;
                                                }
                                                v6_35++;
                                                v5_58 = v3_73;
                                            }
                                            v2_162.zzbvw = v7_35;
                                            v4_71 = v13_0;
                                        }
                                    }
                                } else {
                                    this.zzwB();
                                    if (!com.google.android.gms.internal.zzcjl.zzeC(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name)) {
                                    }
                                }
                                int v3_71 = (v12_0 + 1);
                                v16_1.zzbvE[v12_0] = ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0));
                                v2_171 = v3_71;
                                v3_72 = v4_71;
                            } else {
                                com.google.android.gms.internal.zzcfn v2_187;
                                this.zzwF().zzyz().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH), this.zzwA().zzdW(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name));
                                if ((!this.zzwB().zzeA(v15_1.zzbsZ.zzaH)) && (!this.zzwB().zzeB(v15_1.zzbsZ.zzaH))) {
                                    v2_187 = 0;
                                } else {
                                    v2_187 = 1;
                                }
                                if ((v2_187 != null) || ("_err".equals(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name))) {
                                    v2_171 = v12_0;
                                    v3_72 = v13_0;
                                } else {
                                    this.zzwB().zza(v15_1.zzbsZ.zzaH, 11, "_ev", ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name, 0);
                                    v2_171 = v12_0;
                                    v3_72 = v13_0;
                                }
                            }
                            v14_0++;
                            v12_0 = v2_171;
                            v13_0 = v3_72;
                        }
                        if (v12_0 < v15_1.zztH.size()) {
                            v16_1.zzbvE = ((com.google.android.gms.internal.zzcjw[]) java.util.Arrays.copyOf(v16_1.zzbvE, v12_0));
                        }
                        v16_1.zzbvX = this.zza(v15_1.zzbsZ.zzaH, v15_1.zzbsZ.zzbvF, v16_1.zzbvE);
                        v16_1.zzbvH = Long.valueOf(nan);
                        v16_1.zzbvI = Long.valueOf(-0.0);
                        com.google.android.gms.internal.zzcfn v2_46 = 0;
                        while (v2_46 < v16_1.zzbvE.length) {
                            int v3_37 = v16_1.zzbvE[v2_46];
                            if (v3_37.zzbvx.longValue() < v16_1.zzbvH.longValue()) {
                                v16_1.zzbvH = v3_37.zzbvx;
                            }
                            if (v3_37.zzbvx.longValue() > v16_1.zzbvI.longValue()) {
                                v16_1.zzbvI = v3_37.zzbvx;
                            }
                            v2_46++;
                        }
                        int v6_15 = v15_1.zzbsZ.zzaH;
                        com.google.android.gms.internal.zzcjx[] v7_18 = this.zzwz().zzdQ(v6_15);
                        if (v7_18 != null) {
                            if (v16_1.zzbvE.length > 0) {
                                com.google.android.gms.internal.zzcjw v4_22;
                                com.google.android.gms.internal.zzcfn v2_52 = v7_18.zzwM();
                                if (v2_52 == 0) {
                                    v4_22 = 0;
                                } else {
                                    v4_22 = Long.valueOf(v2_52);
                                }
                                v16_1.zzbvK = v4_22;
                                com.google.android.gms.internal.zzcjw v4_23 = v7_18.zzwL();
                                if (v4_23 != 0) {
                                    v2_52 = v4_23;
                                }
                                com.google.android.gms.internal.zzcfn v2_53;
                                if (v2_52 == 0) {
                                    v2_53 = 0;
                                } else {
                                    v2_53 = Long.valueOf(v2_52);
                                }
                                v16_1.zzbvJ = v2_53;
                                v7_18.zzwV();
                                v16_1.zzbvV = Integer.valueOf(((int) v7_18.zzwS()));
                                v7_18.zzL(v16_1.zzbvH.longValue());
                                v7_18.zzM(v16_1.zzbvI.longValue());
                                v16_1.zzboU = v7_18.zzxd();
                                this.zzwz().zza(v7_18);
                            }
                        } else {
                            this.zzwF().zzyx().zzj("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH));
                        }
                        if (v16_1.zzbvE.length > 0) {
                            com.google.android.gms.internal.zzcem.zzxE();
                            com.google.android.gms.internal.zzcfn v2_68 = this.zzwC().zzeh(v15_1.zzbsZ.zzaH);
                            if ((v2_68 != null) && (v2_68.zzbvl != null)) {
                                v16_1.zzbwb = v2_68.zzbvl;
                            } else {
                                if (!android.text.TextUtils.isEmpty(v15_1.zzbsZ.zzboQ)) {
                                    this.zzwF().zzyz().zzj("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH));
                                } else {
                                    v16_1.zzbwb = Long.valueOf(-1);
                                }
                            }
                            this.zzwz().zza(v16_1, v13_0);
                        }
                        this.zzwz().zzG(v15_1.zzbta);
                        int v3_32 = this.zzwz();
                        com.google.android.gms.internal.zzcfn v2_79 = v3_32.getWritableDatabase();
                        int v5_29 = new String[2];
                        v5_29[0] = v6_15;
                        v5_29[1] = v6_15;
                        v2_79.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v5_29);
                        this.zzwz().setTransactionSuccessful();
                        if (v16_1.zzbvE.length <= 0) {
                            v2_27 = 0;
                        } else {
                            v2_27 = 1;
                        }
                        this.zzwz().endTransaction();
                    }
                    return v2_27;
                } else {
                    v3_4.close();
                }
            }
            if (!android.text.TextUtils.isEmpty(0)) {
                int v6_12;
                if (v16_0 == -1) {
                    int v5_20 = new String[1];
                    v5_20[0] = 0;
                    v6_12 = v5_20;
                } else {
                    int v5_25 = new String[2];
                    v5_25[0] = 0;
                    v5_25[1] = String.valueOf(v16_0);
                    v6_12 = v5_25;
                }
                int v5_27;
                if (v16_0 == -1) {
                    v5_27 = "";
                } else {
                    v5_27 = " and rowid <= ?";
                }
                int v3_44 = v2_3.rawQuery(new StringBuilder((String.valueOf(v5_27).length() + 84)).append("select metadata_fingerprint from raw_events where app_id = ?").append(v5_27).append(" order by rowid limit 1;").toString(), v6_12);
                if (v3_44.moveToFirst()) {
                    int v5_45 = v3_44.getString(0);
                    v3_44.close();
                    v13_1 = v5_45;
                    v12_1 = 0;
                } else {
                    if (v3_44 == 0) {
                    } else {
                        v3_44.close();
                    }
                }
            } else {
                int v6_36;
                if (v16_0 == -1) {
                    int v5_56 = new String[1];
                    v5_56[0] = String.valueOf(p22);
                    v6_36 = v5_56;
                } else {
                    int v5_62 = new String[2];
                    v5_62[0] = String.valueOf(v16_0);
                    v5_62[1] = String.valueOf(p22);
                    v6_36 = v5_62;
                }
                int v5_1;
                if (v16_0 == -1) {
                    v5_1 = "";
                } else {
                    v5_1 = "rowid <= ? and ";
                }
                int v3_0 = v2_3.rawQuery(new StringBuilder((String.valueOf(v5_1).length() + 148)).append("select app_id, metadata_fingerprint from raw_events where ").append(v5_1).append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;").toString(), v6_36);
                if (v3_0.moveToFirst()) {
                    com.google.android.gms.internal.zzcjw v4_1 = v3_0.getString(0);
                    int v5_8 = v3_0.getString(1);
                    v3_0.close();
                    v13_1 = v5_8;
                    v12_1 = v4_1;
                } else {
                    if (v3_0 == 0) {
                    } else {
                        v3_0.close();
                    }
                }
            }
            try {
                com.google.android.gms.internal.zzcjw v4_3 = new String[1];
                v4_3[0] = "metadata";
                int v6_2 = new String[2];
                v6_2[0] = v12_1;
                v6_2[1] = v13_1;
                int v11_0 = v2_3.query("raw_events_metadata", v4_3, "app_id = ? and metadata_fingerprint = ?", v6_2, 0, 0, "rowid", "2");
            } catch (com.google.android.gms.internal.zzcfn v2_4) {
                v3_4 = v11_0;
                if (v3_4 != 0) {
                    v3_4.close();
                }
                throw v2_4;
            } catch (com.google.android.gms.internal.zzcfn v2_1) {
                v3_4 = v11_0;
                v4_10 = v12_1;
            }
            if (v11_0.moveToFirst()) {
                int v3_5 = v11_0.getBlob(0);
                int v3_6 = com.google.android.gms.internal.adg.zzb(v3_5, 0, v3_5.length);
                com.google.android.gms.internal.zzcjw v4_6 = new com.google.android.gms.internal.zzcjz();
                try {
                    v4_6.zza(v3_6);
                } catch (com.google.android.gms.internal.zzcfn v2_2) {
                    v14_1.zzwF().zzyx().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzcfl.zzdZ(v12_1), v2_2);
                    if (v11_0 == 0) {
                    } else {
                        v11_0.close();
                    }
                }
                if (v11_0.moveToNext()) {
                    v14_1.zzwF().zzyz().zzj("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzcfl.zzdZ(v12_1));
                }
                int v5_15;
                int v6_4;
                v11_0.close();
                v15_1.zzb(v4_6);
                if (v16_0 == -1) {
                    v5_15 = "app_id = ? and metadata_fingerprint = ?";
                    v6_4 = new String[2];
                    v6_4[0] = v12_1;
                    v6_4[1] = v13_1;
                } else {
                    v5_15 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                    v6_4 = new String[3];
                    v6_4[0] = v12_1;
                    v6_4[1] = v13_1;
                    v6_4[2] = String.valueOf(v16_0);
                }
                com.google.android.gms.internal.zzcjw v4_12 = new String[4];
                v4_12[0] = "rowid";
                v4_12[1] = "name";
                v4_12[2] = "timestamp";
                v4_12[3] = "data";
                v3_4 = v2_3.query("raw_events", v4_12, v5_15, v6_4, 0, 0, "rowid", 0);
                try {
                    if (!v3_4.moveToFirst()) {
                        v14_1.zzwF().zzyz().zzj("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzcfl.zzdZ(v12_1));
                        if (v3_4 == 0) {
                        } else {
                            v3_4.close();
                        }
                    }
                } catch (com.google.android.gms.internal.zzcfn v2_1) {
                    v4_10 = v12_1;
                }
                do {
                    com.google.android.gms.internal.zzcjw v4_13 = v3_4.getLong(0);
                    com.google.android.gms.internal.zzcfn v2_8 = v3_4.getBlob(3);
                    com.google.android.gms.internal.zzcfn v2_9 = com.google.android.gms.internal.adg.zzb(v2_8, 0, v2_8.length);
                    int v6_8 = new com.google.android.gms.internal.zzcjw();
                    v6_8.zza(v2_9);
                    v6_8.name = v3_4.getString(1);
                    v6_8.zzbvx = Long.valueOf(v3_4.getLong(2));
                    if (v15_1.zza(v4_13, v6_8)) {
                    } else {
                        if (v3_4 == 0) {
                        } else {
                            v3_4.close();
                        }
                    }
                } while(v3_4.moveToNext());
                if (v3_4 == 0) {
                } else {
                    v3_4.close();
                }
            } else {
                v14_1.zzwF().zzyx().zzj("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzcfl.zzdZ(v12_1));
                if (v11_0 == 0) {
                } else {
                    v11_0.close();
                }
            }
        } catch (com.google.android.gms.internal.zzcfn v2_193) {
            this.zzwz().endTransaction();
            throw v2_193;
        }
    }

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


    private final boolean zzg(String p21, long p22)
    {
        this.zzwz().beginTransaction();
        try {
            com.google.android.gms.internal.zzcgl$zza v15_1 = new com.google.android.gms.internal.zzcgl$zza(this, 0);
            int v14_1 = this.zzwz();
            com.google.android.gms.internal.zzcjw v4_10 = 0;
            com.google.android.gms.internal.zzcjz v16_0 = this.zzbsS;
            com.google.android.gms.common.internal.zzbo.zzu(v15_1);
            v14_1.zzjC();
            v14_1.zzkD();
            int v3_4 = 0;
            try {
                com.google.android.gms.internal.zzcjw v13_1;
                String[] v12_1;
                com.google.android.gms.internal.zzcfn v2_3 = v14_1.getWritableDatabase();
            } catch (com.google.android.gms.internal.zzcfn v2_1) {
                v14_1.zzwF().zzyx().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzcfl.zzdZ(v4_10), v2_1);
                if (v3_4 == 0) {
                    if ((v15_1.zztH != null) && (!v15_1.zztH.isEmpty())) {
                        com.google.android.gms.internal.zzcfn v2_24 = 0;
                    } else {
                        v2_24 = 1;
                    }
                    com.google.android.gms.internal.zzcfn v2_27;
                    if (v2_24 != null) {
                        this.zzwz().setTransactionSuccessful();
                        this.zzwz().endTransaction();
                        v2_27 = 0;
                    } else {
                        com.google.android.gms.internal.zzcjw v13_0 = 0;
                        com.google.android.gms.internal.zzcjz v16_1 = v15_1.zzbsZ;
                        com.google.android.gms.internal.zzcfn v2_30 = new com.google.android.gms.internal.zzcjw[v15_1.zztH.size()];
                        v16_1.zzbvE = v2_30;
                        String[] v12_0 = 0;
                        int v14_0 = 0;
                        while (v14_0 < v15_1.zztH.size()) {
                            com.google.android.gms.internal.zzcfn v2_171;
                            int v3_72;
                            if (!this.zzwC().zzN(v15_1.zzbsZ.zzaH, ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name)) {
                                com.google.android.gms.internal.zzcjw v4_71;
                                boolean v17 = this.zzwC().zzO(v15_1.zzbsZ.zzaH, ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name);
                                if (v17) {
                                    int v3_41 = 0;
                                    com.google.android.gms.internal.zzcjw v4_43 = 0;
                                    if (((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw == null) {
                                        int v5_34 = new com.google.android.gms.internal.zzcjx[0];
                                        ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw = v5_34;
                                    }
                                    int v6_20 = ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw;
                                    com.google.android.gms.internal.zzcjx[] v7_27 = v6_20.length;
                                    int v5_35 = 0;
                                    while (v5_35 < v7_27) {
                                        com.google.android.gms.internal.zzcfn v2_173;
                                        com.google.android.gms.internal.zzcfn v2_172 = v6_20[v5_35];
                                        if (!"_c".equals(v2_172.name)) {
                                            if (!"_r".equals(v2_172.name)) {
                                                v2_173 = v4_43;
                                            } else {
                                                v2_172.zzbvA = Long.valueOf(1);
                                                v2_173 = 1;
                                            }
                                        } else {
                                            v2_172.zzbvA = Long.valueOf(1);
                                            v3_41 = 1;
                                            v2_173 = v4_43;
                                        }
                                        v5_35++;
                                        v4_43 = v2_173;
                                    }
                                    if ((v3_41 == 0) && (v17)) {
                                        this.zzwF().zzyD().zzj("Marking event as conversion", this.zzwA().zzdW(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name));
                                        com.google.android.gms.internal.zzcfn v2_127 = ((com.google.android.gms.internal.zzcjx[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw, (((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw.length + 1)));
                                        int v3_46 = new com.google.android.gms.internal.zzcjx();
                                        v3_46.name = "_c";
                                        v3_46.zzbvA = Long.valueOf(1);
                                        v2_127[(v2_127.length - 1)] = v3_46;
                                        ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw = v2_127;
                                    }
                                    if (v4_43 == null) {
                                        this.zzwF().zzyD().zzj("Marking event as real-time", this.zzwA().zzdW(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name));
                                        com.google.android.gms.internal.zzcfn v2_144 = ((com.google.android.gms.internal.zzcjx[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw, (((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw.length + 1)));
                                        int v3_53 = new com.google.android.gms.internal.zzcjx();
                                        v3_53.name = "_r";
                                        v3_53.zzbvA = Long.valueOf(1);
                                        v2_144[(v2_144.length - 1)] = v3_53;
                                        ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).zzbvw = v2_144;
                                    }
                                    if (this.zzwz().zza(this.zzyZ(), v15_1.zzbsZ.zzaH, 0, 0, 0, 0, 1).zzbpy <= ((long) this.zzbsn.zzdM(v15_1.zzbsZ.zzaH))) {
                                        v13_0 = 1;
                                    } else {
                                        com.google.android.gms.internal.zzcfn v2_148 = ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0));
                                        int v3_62 = 0;
                                        while (v3_62 < v2_148.zzbvw.length) {
                                            if (!"_r".equals(v2_148.zzbvw[v3_62].name)) {
                                                v3_62++;
                                            } else {
                                                com.google.android.gms.internal.zzcjw v4_59 = new com.google.android.gms.internal.zzcjx[(v2_148.zzbvw.length - 1)];
                                                if (v3_62 > 0) {
                                                    System.arraycopy(v2_148.zzbvw, 0, v4_59, 0, v3_62);
                                                }
                                                if (v3_62 < v4_59.length) {
                                                    System.arraycopy(v2_148.zzbvw, (v3_62 + 1), v4_59, v3_62, (v4_59.length - v3_62));
                                                }
                                                v2_148.zzbvw = v4_59;
                                                break;
                                            }
                                        }
                                    }
                                    if ((!com.google.android.gms.internal.zzcjl.zzeo(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name)) || ((!v17) || (this.zzwz().zza(this.zzyZ(), v15_1.zzbsZ.zzaH, 0, 0, 1, 0, 0).zzbpw <= ((long) this.zzbsn.zzb(v15_1.zzbsZ.zzaH, com.google.android.gms.internal.zzcfb.zzbqi))))) {
                                        v4_71 = v13_0;
                                    } else {
                                        this.zzwF().zzyz().zzj("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH));
                                        com.google.android.gms.internal.zzcfn v2_162 = ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0));
                                        int v5_57 = 0;
                                        com.google.android.gms.internal.zzcjw v4_67 = 0;
                                        com.google.android.gms.internal.zzcjx[] v7_33 = v2_162.zzbvw;
                                        int v6_34 = 0;
                                        while (v6_34 < v7_33.length) {
                                            com.google.android.gms.internal.zzcjw v4_72;
                                            int v3_74 = v7_33[v6_34];
                                            if (!"_c".equals(v3_74.name)) {
                                                if (!"_err".equals(v3_74.name)) {
                                                    v3_74 = v4_67;
                                                    v4_72 = v5_57;
                                                } else {
                                                    v4_72 = 1;
                                                    v3_74 = v4_67;
                                                }
                                            } else {
                                                v4_72 = v5_57;
                                            }
                                            v6_34++;
                                            v5_57 = v4_72;
                                            v4_67 = v3_74;
                                        }
                                        if ((v5_57 == 0) || (v4_67 == null)) {
                                            if (v4_67 == null) {
                                                this.zzwF().zzyx().zzj("Did not find conversion parameter. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH));
                                            } else {
                                                v4_67.name = "_err";
                                                v4_67.zzbvA = Long.valueOf(10);
                                                v4_71 = v13_0;
                                            }
                                        } else {
                                            com.google.android.gms.internal.zzcjx[] v7_35 = new com.google.android.gms.internal.zzcjx[(v2_162.zzbvw.length - 1)];
                                            int v5_58 = 0;
                                            com.google.android.gms.internal.zzcjx[] v8_17 = v2_162.zzbvw;
                                            int v9_4 = v8_17.length;
                                            int v6_35 = 0;
                                            while (v6_35 < v9_4) {
                                                int v3_73;
                                                com.google.android.gms.internal.zzcjx v10_4 = v8_17[v6_35];
                                                if (v10_4 == v4_67) {
                                                    v3_73 = v5_58;
                                                } else {
                                                    v3_73 = (v5_58 + 1);
                                                    v7_35[v5_58] = v10_4;
                                                }
                                                v6_35++;
                                                v5_58 = v3_73;
                                            }
                                            v2_162.zzbvw = v7_35;
                                            v4_71 = v13_0;
                                        }
                                    }
                                } else {
                                    this.zzwB();
                                    if (!com.google.android.gms.internal.zzcjl.zzeC(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name)) {
                                    }
                                }
                                int v3_71 = (v12_0 + 1);
                                v16_1.zzbvE[v12_0] = ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0));
                                v2_171 = v3_71;
                                v3_72 = v4_71;
                            } else {
                                com.google.android.gms.internal.zzcfn v2_187;
                                this.zzwF().zzyz().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH), this.zzwA().zzdW(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name));
                                if ((!this.zzwB().zzeA(v15_1.zzbsZ.zzaH)) && (!this.zzwB().zzeB(v15_1.zzbsZ.zzaH))) {
                                    v2_187 = 0;
                                } else {
                                    v2_187 = 1;
                                }
                                if ((v2_187 != null) || ("_err".equals(((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name))) {
                                    v2_171 = v12_0;
                                    v3_72 = v13_0;
                                } else {
                                    this.zzwB().zza(v15_1.zzbsZ.zzaH, 11, "_ev", ((com.google.android.gms.internal.zzcjw) v15_1.zztH.get(v14_0)).name, 0);
                                    v2_171 = v12_0;
                                    v3_72 = v13_0;
                                }
                            }
                            v14_0++;
                            v12_0 = v2_171;
                            v13_0 = v3_72;
                        }
                        if (v12_0 < v15_1.zztH.size()) {
                            v16_1.zzbvE = ((com.google.android.gms.internal.zzcjw[]) java.util.Arrays.copyOf(v16_1.zzbvE, v12_0));
                        }
                        v16_1.zzbvX = this.zza(v15_1.zzbsZ.zzaH, v15_1.zzbsZ.zzbvF, v16_1.zzbvE);
                        v16_1.zzbvH = Long.valueOf(nan);
                        v16_1.zzbvI = Long.valueOf(-0.0);
                        com.google.android.gms.internal.zzcfn v2_46 = 0;
                        while (v2_46 < v16_1.zzbvE.length) {
                            int v3_37 = v16_1.zzbvE[v2_46];
                            if (v3_37.zzbvx.longValue() < v16_1.zzbvH.longValue()) {
                                v16_1.zzbvH = v3_37.zzbvx;
                            }
                            if (v3_37.zzbvx.longValue() > v16_1.zzbvI.longValue()) {
                                v16_1.zzbvI = v3_37.zzbvx;
                            }
                            v2_46++;
                        }
                        int v6_15 = v15_1.zzbsZ.zzaH;
                        com.google.android.gms.internal.zzcjx[] v7_18 = this.zzwz().zzdQ(v6_15);
                        if (v7_18 != null) {
                            if (v16_1.zzbvE.length > 0) {
                                com.google.android.gms.internal.zzcjw v4_22;
                                com.google.android.gms.internal.zzcfn v2_52 = v7_18.zzwM();
                                if (v2_52 == 0) {
                                    v4_22 = 0;
                                } else {
                                    v4_22 = Long.valueOf(v2_52);
                                }
                                v16_1.zzbvK = v4_22;
                                com.google.android.gms.internal.zzcjw v4_23 = v7_18.zzwL();
                                if (v4_23 != 0) {
                                    v2_52 = v4_23;
                                }
                                com.google.android.gms.internal.zzcfn v2_53;
                                if (v2_52 == 0) {
                                    v2_53 = 0;
                                } else {
                                    v2_53 = Long.valueOf(v2_52);
                                }
                                v16_1.zzbvJ = v2_53;
                                v7_18.zzwV();
                                v16_1.zzbvV = Integer.valueOf(((int) v7_18.zzwS()));
                                v7_18.zzL(v16_1.zzbvH.longValue());
                                v7_18.zzM(v16_1.zzbvI.longValue());
                                v16_1.zzboU = v7_18.zzxd();
                                this.zzwz().zza(v7_18);
                            }
                        } else {
                            this.zzwF().zzyx().zzj("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH));
                        }
                        if (v16_1.zzbvE.length > 0) {
                            com.google.android.gms.internal.zzcem.zzxE();
                            com.google.android.gms.internal.zzcfn v2_68 = this.zzwC().zzeh(v15_1.zzbsZ.zzaH);
                            if ((v2_68 != null) && (v2_68.zzbvl != null)) {
                                v16_1.zzbwb = v2_68.zzbvl;
                            } else {
                                if (!android.text.TextUtils.isEmpty(v15_1.zzbsZ.zzboQ)) {
                                    this.zzwF().zzyz().zzj("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzcfl.zzdZ(v15_1.zzbsZ.zzaH));
                                } else {
                                    v16_1.zzbwb = Long.valueOf(-1);
                                }
                            }
                            this.zzwz().zza(v16_1, v13_0);
                        }
                        this.zzwz().zzG(v15_1.zzbta);
                        int v3_32 = this.zzwz();
                        com.google.android.gms.internal.zzcfn v2_79 = v3_32.getWritableDatabase();
                        int v5_29 = new String[2];
                        v5_29[0] = v6_15;
                        v5_29[1] = v6_15;
                        v2_79.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v5_29);
                        this.zzwz().setTransactionSuccessful();
                        if (v16_1.zzbvE.length <= 0) {
                            v2_27 = 0;
                        } else {
                            v2_27 = 1;
                        }
                        this.zzwz().endTransaction();
                    }
                    return v2_27;
                } else {
                    v3_4.close();
                }
            }
            if (!android.text.TextUtils.isEmpty(0)) {
                int v6_12;
                if (v16_0 == -1) {
                    int v5_20 = new String[1];
                    v5_20[0] = 0;
                    v6_12 = v5_20;
                } else {
                    int v5_25 = new String[2];
                    v5_25[0] = 0;
                    v5_25[1] = String.valueOf(v16_0);
                    v6_12 = v5_25;
                }
                int v5_27;
                if (v16_0 == -1) {
                    v5_27 = "";
                } else {
                    v5_27 = " and rowid <= ?";
                }
                int v3_44 = v2_3.rawQuery(new StringBuilder((String.valueOf(v5_27).length() + 84)).append("select metadata_fingerprint from raw_events where app_id = ?").append(v5_27).append(" order by rowid limit 1;").toString(), v6_12);
                if (v3_44.moveToFirst()) {
                    int v5_45 = v3_44.getString(0);
                    v3_44.close();
                    v13_1 = v5_45;
                    v12_1 = 0;
                } else {
                    if (v3_44 == 0) {
                    } else {
                        v3_44.close();
                    }
                }
            } else {
                int v6_36;
                if (v16_0 == -1) {
                    int v5_56 = new String[1];
                    v5_56[0] = String.valueOf(p22);
                    v6_36 = v5_56;
                } else {
                    int v5_62 = new String[2];
                    v5_62[0] = String.valueOf(v16_0);
                    v5_62[1] = String.valueOf(p22);
                    v6_36 = v5_62;
                }
                int v5_1;
                if (v16_0 == -1) {
                    v5_1 = "";
                } else {
                    v5_1 = "rowid <= ? and ";
                }
                int v3_0 = v2_3.rawQuery(new StringBuilder((String.valueOf(v5_1).length() + 148)).append("select app_id, metadata_fingerprint from raw_events where ").append(v5_1).append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;").toString(), v6_36);
                if (v3_0.moveToFirst()) {
                    com.google.android.gms.internal.zzcjw v4_1 = v3_0.getString(0);
                    int v5_8 = v3_0.getString(1);
                    v3_0.close();
                    v13_1 = v5_8;
                    v12_1 = v4_1;
                } else {
                    if (v3_0 == 0) {
                    } else {
                        v3_0.close();
                    }
                }
            }
            try {
                com.google.android.gms.internal.zzcjw v4_3 = new String[1];
                v4_3[0] = "metadata";
                int v6_2 = new String[2];
                v6_2[0] = v12_1;
                v6_2[1] = v13_1;
                int v11_0 = v2_3.query("raw_events_metadata", v4_3, "app_id = ? and metadata_fingerprint = ?", v6_2, 0, 0, "rowid", "2");
            } catch (com.google.android.gms.internal.zzcfn v2_4) {
                v3_4 = v11_0;
                if (v3_4 != 0) {
                    v3_4.close();
                }
                throw v2_4;
            } catch (com.google.android.gms.internal.zzcfn v2_1) {
                v3_4 = v11_0;
                v4_10 = v12_1;
            }
            if (v11_0.moveToFirst()) {
                int v3_5 = v11_0.getBlob(0);
                int v3_6 = com.google.android.gms.internal.adg.zzb(v3_5, 0, v3_5.length);
                com.google.android.gms.internal.zzcjw v4_6 = new com.google.android.gms.internal.zzcjz();
                try {
                    v4_6.zza(v3_6);
                } catch (com.google.android.gms.internal.zzcfn v2_2) {
                    v14_1.zzwF().zzyx().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzcfl.zzdZ(v12_1), v2_2);
                    if (v11_0 == 0) {
                    } else {
                        v11_0.close();
                    }
                }
                if (v11_0.moveToNext()) {
                    v14_1.zzwF().zzyz().zzj("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzcfl.zzdZ(v12_1));
                }
                int v5_15;
                int v6_4;
                v11_0.close();
                v15_1.zzb(v4_6);
                if (v16_0 == -1) {
                    v5_15 = "app_id = ? and metadata_fingerprint = ?";
                    v6_4 = new String[2];
                    v6_4[0] = v12_1;
                    v6_4[1] = v13_1;
                } else {
                    v5_15 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                    v6_4 = new String[3];
                    v6_4[0] = v12_1;
                    v6_4[1] = v13_1;
                    v6_4[2] = String.valueOf(v16_0);
                }
                com.google.android.gms.internal.zzcjw v4_12 = new String[4];
                v4_12[0] = "rowid";
                v4_12[1] = "name";
                v4_12[2] = "timestamp";
                v4_12[3] = "data";
                v3_4 = v2_3.query("raw_events", v4_12, v5_15, v6_4, 0, 0, "rowid", 0);
                try {
                    if (!v3_4.moveToFirst()) {
                        v14_1.zzwF().zzyz().zzj("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzcfl.zzdZ(v12_1));
                        if (v3_4 == 0) {
                        } else {
                            v3_4.close();
                        }
                    }
                } catch (com.google.android.gms.internal.zzcfn v2_1) {
                    v4_10 = v12_1;
                }
                do {
                    com.google.android.gms.internal.zzcjw v4_13 = v3_4.getLong(0);
                    com.google.android.gms.internal.zzcfn v2_8 = v3_4.getBlob(3);
                    com.google.android.gms.internal.zzcfn v2_9 = com.google.android.gms.internal.adg.zzb(v2_8, 0, v2_8.length);
                    int v6_8 = new com.google.android.gms.internal.zzcjw();
                    v6_8.zza(v2_9);
                    v6_8.name = v3_4.getString(1);
                    v6_8.zzbvx = Long.valueOf(v3_4.getLong(2));
                    if (v15_1.zza(v4_13, v6_8)) {
                    } else {
                        if (v3_4 == 0) {
                        } else {
                            v3_4.close();
                        }
                    }
                } while(v3_4.moveToNext());
                if (v3_4 == 0) {
                } else {
                    v3_4.close();
                }
            } else {
                v14_1.zzwF().zzyx().zzj("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzcfl.zzdZ(v12_1));
                if (v11_0 == 0) {
                } else {
                    v11_0.close();
                }
            }
        } catch (com.google.android.gms.internal.zzcfn v2_193) {
            this.zzwz().endTransaction();
            throw v2_193;
        }
    }

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


    public final java.util.List zzbp(int p15)
    {
        java.util.ArrayList v0_13;
        super.zzjC();
        super.zzwp();
        if (!this.zzbqG) {
            java.util.ArrayList v10_1 = new java.util.ArrayList();
            if (super.getContext().getDatabasePath(com.google.android.gms.internal.zzcem.zzxD()).exists()) {
                int v9 = 5;
                int v12 = 0;
                while (v12 < 5) {
                    String v1_27 = 0;
                    try {
                        java.util.ArrayList v0_14 = this.getWritableDatabase();
                        try {
                            if (v0_14 != null) {
                                v0_14.beginTransaction();
                                Throwable v2_3 = new String[3];
                                v2_3[0] = "rowid";
                                v2_3[1] = "type";
                                v2_3[2] = "entry";
                                Throwable v2_1 = v0_14.query("messages", v2_3, 0, 0, 0, 0, "rowid asc", Integer.toString(100));
                                String v4_8 = -1;
                                try {
                                    while (v2_1.moveToNext()) {
                                        v4_8 = v2_1.getLong(0);
                                        String v1_46 = v2_1.getInt(1);
                                        String v6_0 = v2_1.getBlob(2);
                                        if (v1_46 != null) {
                                            if (v1_46 != 1) {
                                                if (v1_46 != 2) {
                                                    super.zzwF().zzyx().log("Unknown record type in local database");
                                                } else {
                                                    android.os.Parcel v7_0 = android.os.Parcel.obtain();
                                                    try {
                                                        v7_0.unmarshall(v6_0, 0, v6_0.length);
                                                        v7_0.setDataPosition(0);
                                                        String v1_6 = ((com.google.android.gms.internal.zzcek) com.google.android.gms.internal.zzcek.CREATOR.createFromParcel(v7_0));
                                                    } catch (String v1) {
                                                        super.zzwF().zzyx().log("Failed to load user property from local database");
                                                        v7_0.recycle();
                                                        v1_6 = 0;
                                                        if (v1_6 != null) {
                                                            v10_1.add(v1_6);
                                                        }
                                                    }
                                                    v7_0.recycle();
                                                }
                                            } else {
                                                android.os.Parcel v7_1 = android.os.Parcel.obtain();
                                                try {
                                                    v7_1.unmarshall(v6_0, 0, v6_0.length);
                                                    v7_1.setDataPosition(0);
                                                    String v1_14 = ((com.google.android.gms.internal.zzcji) com.google.android.gms.internal.zzcji.CREATOR.createFromParcel(v7_1));
                                                } catch (String v1) {
                                                    super.zzwF().zzyx().log("Failed to load user property from local database");
                                                    v7_1.recycle();
                                                    v1_14 = 0;
                                                    if (v1_14 != null) {
                                                        v10_1.add(v1_14);
                                                    }
                                                }
                                                v7_1.recycle();
                                            }
                                        } else {
                                            String v3_5 = android.os.Parcel.obtain();
                                            try {
                                                v3_5.unmarshall(v6_0, 0, v6_0.length);
                                                v3_5.setDataPosition(0);
                                                String v1_22 = ((com.google.android.gms.internal.zzcez) com.google.android.gms.internal.zzcez.CREATOR.createFromParcel(v3_5));
                                            } catch (String v1_25) {
                                                v3_5.recycle();
                                                throw v1_25;
                                            } catch (String v1) {
                                                super.zzwF().zzyx().log("Failed to load event from local database");
                                                v3_5.recycle();
                                            }
                                            v3_5.recycle();
                                            if (v1_22 != null) {
                                                v10_1.add(v1_22);
                                            }
                                        }
                                    }
                                } catch (String v1_30) {
                                    v1_27 = v0_14;
                                    java.util.ArrayList v0_7 = v1_30;
                                    if (v2_1 != null) {
                                        v2_1.close();
                                    }
                                    if (v1_27 != null) {
                                        v1_27.close();
                                    }
                                    throw v0_7;
                                } catch (String v1_28) {
                                    String v1_29 = v2_1;
                                    Throwable v2_0 = v0_14;
                                    java.util.ArrayList v0_5 = v1_28;
                                    try {
                                        super.zzwF().zzyx().zzj("Error reading entries from local database", v0_5);
                                        this.zzbqG = 1;
                                    } catch (java.util.ArrayList v0_7) {
                                        v1_27 = v2_0;
                                        v2_1 = v1_29;
                                    }
                                    if (v1_29 != null) {
                                        v1_29.close();
                                    }
                                    if (v2_0 == null) {
                                        java.util.ArrayList v0_11 = v9;
                                        v12++;
                                        v9 = v0_11;
                                    } else {
                                        v2_0.close();
                                        v0_11 = v9;
                                    }
                                } catch (String v1_26) {
                                    v1_27 = v0_14;
                                    java.util.ArrayList v0_4 = v1_26;
                                    try {
                                        if (android.os.Build$VERSION.SDK_INT < 11) {
                                            if (v1_27 != null) {
                                                if (v1_27.inTransaction()) {
                                                    v1_27.endTransaction();
                                                }
                                            }
                                            super.zzwF().zzyx().zzj("Error reading entries from local database", v0_4);
                                            this.zzbqG = 1;
                                            v0_11 = v9;
                                        } else {
                                            if (!(v0_4 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                                            } else {
                                                android.os.SystemClock.sleep(((long) v9));
                                                v0_11 = (v9 + 20);
                                            }
                                        }
                                        if (v2_1 != null) {
                                            v2_1.close();
                                        }
                                        if (v1_27 == null) {
                                        } else {
                                            v1_27.close();
                                        }
                                    } catch (java.util.ArrayList v0_7) {
                                    }
                                }
                                String v6_6 = new String[1];
                                v6_6[0] = Long.toString(v4_8);
                                if (v0_14.delete("messages", "rowid <= ?", v6_6) < v10_1.size()) {
                                    super.zzwF().zzyx().log("Fewer entries removed from local database than expected");
                                }
                                v0_14.setTransactionSuccessful();
                                v0_14.endTransaction();
                                if (v2_1 != null) {
                                    v2_1.close();
                                }
                                if (v0_14 != null) {
                                    v0_14.close();
                                }
                                v0_13 = v10_1;
                            } else {
                                this.zzbqG = 1;
                                if (v0_14 != null) {
                                    v0_14.close();
                                }
                                v0_13 = 0;
                            }
                        } catch (String v1_36) {
                            v2_1 = 0;
                            v1_27 = v0_14;
                            v0_7 = v1_36;
                        } catch (String v1_33) {
                            v2_0 = v0_14;
                            v0_5 = v1_33;
                            v1_29 = 0;
                        } catch (String v1_32) {
                            v2_1 = 0;
                            v1_27 = v0_14;
                            v0_4 = v1_32;
                        }
                    } catch (java.util.ArrayList v0_7) {
                        v2_1 = 0;
                    } catch (java.util.ArrayList v0_5) {
                        v2_0 = 0;
                        v1_29 = 0;
                    } catch (java.util.ArrayList v0_4) {
                        v2_1 = 0;
                    }
                }
                super.zzwF().zzyz().log("Failed to read events from database in reasonable time");
                v0_13 = 0;
            } else {
                v0_13 = v10_1;
            }
        } else {
            v0_13 = 0;
        }
        return v0_13;
    }

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


    public final java.util.List zzl(String p12, int p13, int p14)
    {
        Throwable v0_6;
        int v1_0 = 1;
        this.zzjC();
        this.zzkD();
        if (p13 <= 0) {
            v0_6 = 0;
        } else {
            v0_6 = 1;
        }
        com.google.android.gms.common.internal.zzbo.zzaf(v0_6);
        if (p14 <= 0) {
            v1_0 = 0;
        }
        com.google.android.gms.common.internal.zzbo.zzaf(v1_0);
        com.google.android.gms.common.internal.zzbo.zzcF(p12);
        try {
            Throwable v0_2 = this.getWritableDatabase();
            com.google.android.gms.internal.zzcfn v2_3 = new String[2];
            v2_3[0] = "rowid";
            v2_3[1] = "data";
            com.google.android.gms.internal.zzcfn v4_4 = new String[1];
            v4_4[0] = p12;
            com.google.android.gms.internal.zzcfn v2_1 = v0_2.query("queue", v2_3, "app_id=?", v4_4, 0, 0, "rowid", String.valueOf(p13));
            try {
                Throwable v0_0;
                if (v2_1.moveToFirst()) {
                    v0_0 = new java.util.ArrayList();
                    int v3_2 = 0;
                    while(true) {
                        com.google.android.gms.internal.zzcfn v4_5 = v2_1.getLong(0);
                        int v1_6 = this.zzwB().zzm(v2_1.getBlob(1));
                        if ((!v0_0.isEmpty()) && ((v1_6.length + v3_2) > p14)) {
                            break;
                        }
                        Object v6_7 = com.google.android.gms.internal.adg.zzb(v1_6, 0, v1_6.length);
                        com.google.android.gms.internal.zzcjz v7_3 = new com.google.android.gms.internal.zzcjz();
                        try {
                            v7_3.zza(v6_7);
                        } catch (int v1_9) {
                            this.zzwF().zzyx().zze("Failed to merge queued bundle. appId", com.google.android.gms.internal.zzcfl.zzdZ(p12), v1_9);
                            int v1_8 = v3_2;
                        }
                        v1_8 = (v1_6.length + v3_2);
                        v0_0.add(android.util.Pair.create(v7_3, Long.valueOf(v4_5)));
                        if ((!v2_1.moveToNext()) || (v1_8 > p14)) {
                            break;
                        }
                        v3_2 = v1_8;
                    }
                    if (v2_1 == null) {
                        return v0_0;
                    } else {
                        v2_1.close();
                        return v0_0;
                    }
                } else {
                    v0_0 = java.util.Collections.emptyList();
                    if (v2_1 == null) {
                        return v0_0;
                    } else {
                        v2_1.close();
                        return v0_0;
                    }
                }
            } catch (Throwable v0_1) {
                if (v2_1 != null) {
                    v2_1.close();
                }
                throw v0_1;
            } catch (Throwable v0_3) {
                int v1_2 = v2_1;
                try {
                    this.zzwF().zzyx().zze("Error querying bundles. appId", com.google.android.gms.internal.zzcfl.zzdZ(p12), v0_3);
                    v0_0 = java.util.Collections.emptyList();
                } catch (Throwable v0_1) {
                    v2_1 = v1_2;
                }
                if (v1_2 == 0) {
                    return v0_0;
                } else {
                    v1_2.close();
                    return v0_0;
                }
            }
        } catch (Throwable v0_1) {
            v2_1 = 0;
        } catch (Throwable v0_3) {
            v1_2 = 0;
        }
    }

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


    public final java.util.List zzh(String p12, String p13, String p14)
    {
        android.database.Cursor v10 = 0;
        com.google.android.gms.common.internal.zzbo.zzcF(p12);
        this.zzjC();
        this.zzkD();
        java.util.ArrayList v9_1 = new java.util.ArrayList();
        try {
            boolean v0_12 = new java.util.ArrayList(3);
            v0_12.add(p12);
            Object v3_1 = new StringBuilder("app_id=?");
        } catch (boolean v0_3) {
            if (v10 != null) {
                v10.close();
            }
            throw v0_3;
        } catch (boolean v0_0) {
            android.database.Cursor v1_0 = 0;
            try {
                this.zzwF().zzyx().zzd("(2)Error querying user properties", com.google.android.gms.internal.zzcfl.zzdZ(p12), p13, v0_0);
            } catch (boolean v0_3) {
                v10 = v1_0;
            }
            if (v1_0 != null) {
                v1_0.close();
            }
            boolean v0_4 = 0;
            return v0_4;
        }
        if (!android.text.TextUtils.isEmpty(p13)) {
            v0_12.add(p13);
            v3_1.append(" and origin=?");
        }
        if (!android.text.TextUtils.isEmpty(p14)) {
            v0_12.add(String.valueOf(p14).concat("*"));
            v3_1.append(" and name glob ?");
        }
        android.database.Cursor v1_10 = new String[v0_12.size()];
        long v4_2 = ((String[]) v0_12.toArray(v1_10));
        boolean v0_5 = this.getWritableDatabase();
        String v2_6 = new String[4];
        v2_6[0] = "name";
        v2_6[1] = "set_timestamp";
        v2_6[2] = "value";
        v2_6[3] = "origin";
        Object v3_3 = v3_1.toString();
        com.google.android.gms.internal.zzcem.zzxt();
        android.database.Cursor v7_1 = v0_5.query("user_attributes", v2_6, v3_3, v4_2, 0, 0, "rowid", "1001");
        try {
            if (!v7_1.moveToFirst()) {
                if (v7_1 != null) {
                    v7_1.close();
                }
                v0_4 = v9_1;
                return v0_4;
            }
        } catch (boolean v0_3) {
            v10 = v7_1;
        } catch (boolean v0_0) {
            v1_0 = v7_1;
        }
        while (v9_1.size() < com.google.android.gms.internal.zzcem.zzxt()) {
            Object v3_4 = v7_1.getString(0);
            long v4_3 = v7_1.getLong(1);
            Object v6_5 = this.zza(v7_1, 2);
            String v2_7 = v7_1.getString(3);
            try {
                if (v6_5 != null) {
                    v9_1.add(new com.google.android.gms.internal.zzcjk(p12, v2_7, v3_4, v4_3, v6_5));
                } else {
                    this.zzwF().zzyx().zzd("(2)Read invalid user property value, ignoring it", com.google.android.gms.internal.zzcfl.zzdZ(p12), v2_7, p14);
                }
                if (v7_1.moveToNext()) {
                    p13 = v2_7;
                } else {
                }
                if (v7_1 != null) {
                    v7_1.close();
                }
                v0_4 = v9_1;
                return v0_4;
            } catch (boolean v0_0) {
                v1_0 = v7_1;
                p13 = v2_7;
            }
        }
        this.zzwF().zzyx().zzj("Read more than the max allowed user properties, ignoring excess", Integer.valueOf(com.google.android.gms.internal.zzcem.zzxt()));
    }

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


    final java.util.Map zzdT(String p10)
    {
        this.zzkD();
        this.zzjC();
        com.google.android.gms.common.internal.zzbo.zzcF(p10);
        int v0_5 = this.getWritableDatabase();
        try {
            boolean v2_8 = new String[2];
            v2_8[0] = "audience_id";
            v2_8[1] = "current_results";
            com.google.android.gms.internal.zzcfn v4_3 = new String[1];
            v4_3[0] = p10;
            int v1_0 = v0_5.query("audience_filter_values", v2_8, "app_id=?", v4_3, 0, 0, 0);
            try {
                int v0_4;
                if (v1_0.moveToFirst()) {
                    v0_4 = new android.support.v4.util.ArrayMap();
                    do {
                        boolean v2_1 = v1_0.getInt(0);
                        java.io.IOException v3_3 = v1_0.getBlob(1);
                        java.io.IOException v3_4 = com.google.android.gms.internal.adg.zzb(v3_3, 0, v3_3.length);
                        com.google.android.gms.internal.zzcfn v4_6 = new com.google.android.gms.internal.zzcka();
                        v4_6.zza(v3_4);
                        v0_4.put(Integer.valueOf(v2_1), v4_6);
                    } while(v1_0.moveToNext());
                    if (v1_0 == 0) {
                        return v0_4;
                    } else {
                        v1_0.close();
                        return v0_4;
                    }
                } else {
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    v0_4 = 0;
                    return v0_4;
                }
            } catch (int v0_0) {
                this.zzwF().zzyx().zze("Database error querying filter results. appId", com.google.android.gms.internal.zzcfl.zzdZ(p10), v0_0);
                if (v1_0 != 0) {
                    v1_0.close();
                }
                v0_4 = 0;
                return v0_4;
            }
        } catch (int v0_1) {
            v1_0 = 0;
            if (v1_0 != 0) {
                v1_0.close();
            }
            throw v0_1;
        } catch (int v0_0) {
            v1_0 = 0;
        } catch (int v0_1) {
        }
    }

Method com.google.android.gms.internal.zzcen.zzdS() calling method android.database.sqlite.SQLiteDatabase.query()


    public final byte[] zzdS(String p10)
    {
        com.google.android.gms.common.internal.zzbo.zzcF(p10);
        this.zzjC();
        this.zzkD();
        try {
            byte[] v0_5 = this.getWritableDatabase();
            com.google.android.gms.internal.zzcfn v2_6 = new String[1];
            v2_6[0] = "remote_config";
            Object v4_2 = new String[1];
            v4_2[0] = p10;
            int v1_0 = v0_5.query("apps", v2_6, "app_id=?", v4_2, 0, 0, 0);
            try {
                byte[] v0_4;
                if (v1_0.moveToFirst()) {
                    v0_4 = v1_0.getBlob(0);
                    if (v1_0.moveToNext()) {
                        this.zzwF().zzyx().zzj("Got multiple records for app config, expected one. appId", com.google.android.gms.internal.zzcfl.zzdZ(p10));
                    }
                    if (v1_0 == 0) {
                        return v0_4;
                    } else {
                        v1_0.close();
                        return v0_4;
                    }
                } else {
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    v0_4 = 0;
                    return v0_4;
                }
            } catch (byte[] v0_0) {
                this.zzwF().zzyx().zze("Error querying remote config. appId", com.google.android.gms.internal.zzcfl.zzdZ(p10), v0_0);
                if (v1_0 != 0) {
                    v1_0.close();
                }
                v0_4 = 0;
                return v0_4;
            }
        } catch (byte[] v0_1) {
            v1_0 = 0;
            if (v1_0 != 0) {
                v1_0.close();
            }
            throw v0_1;
        } catch (byte[] v0_0) {
            v1_0 = 0;
        } catch (byte[] v0_1) {
        }
    }

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


    public final com.google.android.gms.internal.zzceg zzdQ(String p12)
    {
        com.google.android.gms.common.internal.zzbo.zzcF(p12);
        this.zzjC();
        this.zzkD();
        try {
            int v0_3 = this.getWritableDatabase();
            com.google.android.gms.internal.zzcfn v2_0 = new String[23];
            v2_0[0] = "app_instance_id";
            v2_0[1] = "gmp_app_id";
            v2_0[2] = "resettable_device_id_hash";
            v2_0[3] = "last_bundle_index";
            v2_0[4] = "last_bundle_start_timestamp";
            v2_0[5] = "last_bundle_end_timestamp";
            v2_0[6] = "app_version";
            v2_0[7] = "app_store";
            v2_0[8] = "gmp_version";
            v2_0[9] = "dev_cert_hash";
            v2_0[10] = "measurement_enabled";
            v2_0[11] = "day";
            v2_0[12] = "daily_public_events_count";
            v2_0[13] = "daily_events_count";
            v2_0[14] = "daily_conversions_count";
            v2_0[15] = "config_fetched_time";
            v2_0[16] = "failed_config_fetch_time";
            v2_0[17] = "app_version_int";
            v2_0[18] = "firebase_instance_id";
            v2_0[19] = "daily_error_events_count";
            v2_0[20] = "daily_realtime_events_count";
            v2_0[21] = "health_monitor_sample";
            v2_0[22] = "android_id";
            Object v4_26 = new String[1];
            v4_26[0] = p12;
            int v1_1 = v0_3.query("apps", v2_0, "app_id=?", v4_26, 0, 0, 0);
            try {
                int v0_1;
                if (v1_1.moveToFirst()) {
                    com.google.android.gms.internal.zzcfn v2_24;
                    v0_1 = new com.google.android.gms.internal.zzceg(this.zzboe, p12);
                    v0_1.zzdG(v1_1.getString(0));
                    v0_1.zzdH(v1_1.getString(1));
                    v0_1.zzdI(v1_1.getString(2));
                    v0_1.zzQ(v1_1.getLong(3));
                    v0_1.zzL(v1_1.getLong(4));
                    v0_1.zzM(v1_1.getLong(5));
                    v0_1.setAppVersion(v1_1.getString(6));
                    v0_1.zzdK(v1_1.getString(7));
                    v0_1.zzO(v1_1.getLong(8));
                    v0_1.zzP(v1_1.getLong(9));
                    if (!v1_1.isNull(10)) {
                        v2_24 = v1_1.getInt(10);
                    } else {
                        v2_24 = 1;
                    }
                    com.google.android.gms.internal.zzcfn v2_25;
                    if (v2_24 == null) {
                        v2_25 = 0;
                    } else {
                        v2_25 = 1;
                    }
                    com.google.android.gms.internal.zzcfn v2_42;
                    v0_1.setMeasurementEnabled(v2_25);
                    v0_1.zzT(v1_1.getLong(11));
                    v0_1.zzU(v1_1.getLong(12));
                    v0_1.zzV(v1_1.getLong(13));
                    v0_1.zzW(v1_1.getLong(14));
                    v0_1.zzR(v1_1.getLong(15));
                    v0_1.zzS(v1_1.getLong(16));
                    if (!v1_1.isNull(17)) {
                        v2_42 = ((long) v1_1.getInt(17));
                    } else {
                        v2_42 = -2147483648;
                    }
                    com.google.android.gms.internal.zzcfn v2_54;
                    v0_1.zzN(v2_42);
                    v0_1.zzdJ(v1_1.getString(18));
                    v0_1.zzY(v1_1.getLong(19));
                    v0_1.zzX(v1_1.getLong(20));
                    v0_1.zzdL(v1_1.getString(21));
                    if (!v1_1.isNull(22)) {
                        v2_54 = v1_1.getLong(22);
                    } else {
                        v2_54 = 0;
                    }
                    v0_1.zzZ(v2_54);
                    v0_1.zzwI();
                    if (v1_1.moveToNext()) {
                        this.zzwF().zzyx().zzj("Got multiple records for app, expected one. appId", com.google.android.gms.internal.zzcfl.zzdZ(p12));
                    }
                    if (v1_1 == 0) {
                        return v0_1;
                    } else {
                        v1_1.close();
                        return v0_1;
                    }
                } else {
                    if (v1_1 != 0) {
                        v1_1.close();
                    }
                    v0_1 = 0;
                    return v0_1;
                }
            } catch (int v0_0) {
                this.zzwF().zzyx().zze("Error querying app. appId", com.google.android.gms.internal.zzcfl.zzdZ(p12), v0_0);
                if (v1_1 != 0) {
                    v1_1.close();
                }
                v0_1 = 0;
                return v0_1;
            }
        } catch (int v0_2) {
            v1_1 = 0;
            if (v1_1 != 0) {
                v1_1.close();
            }
            throw v0_2;
        } catch (int v0_0) {
            v1_1 = 0;
        } catch (int v0_2) {
        }
    }

Method com.google.android.gms.internal.zzcen.zzdP() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzdP(String p12)
    {
        android.database.Cursor v10 = 0;
        com.google.android.gms.common.internal.zzbo.zzcF(p12);
        this.zzjC();
        this.zzkD();
        java.util.ArrayList v9_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v0_11 = this.getWritableDatabase();
            Object v2_0 = new String[4];
            v2_0[0] = "name";
            v2_0[1] = "origin";
            v2_0[2] = "set_timestamp";
            v2_0[3] = "value";
            long v4_5 = new String[1];
            v4_5[0] = p12;
            android.database.Cursor v7_1 = v0_11.query("user_attributes", v2_0, "app_id=?", v4_5, 0, 0, "rowid", String.valueOf(com.google.android.gms.internal.zzcem.zzxt()));
            try {
                java.util.ArrayList v0_12;
                if (!v7_1.moveToFirst()) {
                    if (v7_1 != null) {
                        v7_1.close();
                    }
                    v0_12 = v9_1;
                    return v0_12;
                }
            } catch (java.util.ArrayList v0_1) {
                v10 = v7_1;
                if (v10 != null) {
                    v10.close();
                }
                throw v0_1;
            } catch (java.util.ArrayList v0_0) {
                String v1_0 = v7_1;
                try {
                    this.zzwF().zzyx().zze("Error querying user properties. appId", com.google.android.gms.internal.zzcfl.zzdZ(p12), v0_0);
                } catch (java.util.ArrayList v0_1) {
                    v10 = v1_0;
                }
                if (v1_0 != null) {
                    v1_0.close();
                }
                v0_12 = 0;
                return v0_12;
            }
            do {
                String v3_5 = v7_1.getString(0);
                Object v2_1 = v7_1.getString(1);
                if (v2_1 == null) {
                    v2_1 = "";
                }
                long v4_6 = v7_1.getLong(2);
                Object v6_1 = this.zza(v7_1, 3);
                if (v6_1 != null) {
                    v9_1.add(new com.google.android.gms.internal.zzcjk(p12, v2_1, v3_5, v4_6, v6_1));
                } else {
                    this.zzwF().zzyx().zzj("Read invalid user property value, ignoring it. appId", com.google.android.gms.internal.zzcfl.zzdZ(p12));
                }
            } while(v7_1.moveToNext());
            if (v7_1 != null) {
                v7_1.close();
            }
            v0_12 = v9_1;
            return v0_12;
        } catch (java.util.ArrayList v0_1) {
        } catch (java.util.ArrayList v0_0) {
            v1_0 = 0;
        }
    }

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


    public final java.util.List zzc(String p24, String[] p25)
    {
        this.zzjC();
        this.zzkD();
        java.util.ArrayList v20_1 = new java.util.ArrayList();
        try {
            boolean v2_14 = this.getWritableDatabase();
            long v4_10 = new String[13];
            v4_10[0] = "app_id";
            v4_10[1] = "origin";
            v4_10[2] = "name";
            v4_10[3] = "value";
            v4_10[4] = "active";
            v4_10[5] = "trigger_event_name";
            v4_10[6] = "trigger_timeout";
            v4_10[7] = "timed_out_event";
            v4_10[8] = "creation_timestamp";
            v4_10[9] = "triggered_event";
            v4_10[10] = "triggered_timestamp";
            v4_10[11] = "time_to_live";
            v4_10[12] = "expired_event";
            com.google.android.gms.internal.zzcem.zzxv();
            int v21 = v2_14.query("conditional_properties", v4_10, p24, p25, 0, 0, "rowid", "1001");
            try {
                boolean v2_12;
                if (!v21.moveToFirst()) {
                    if (v21 != 0) {
                        v21.close();
                    }
                    v2_12 = v20_1;
                    return v2_12;
                }
            } catch (boolean v2_13) {
                if (v21 != 0) {
                    v21.close();
                }
                throw v2_13;
            } catch (boolean v2_11) {
                String v3_1 = v21;
                try {
                    this.zzwF().zzyx().zzj("Error querying conditional user property value", v2_11);
                    v2_12 = java.util.Collections.emptyList();
                } catch (boolean v2_13) {
                    v21 = v3_1;
                }
                if (v3_1 == null) {
                    return v2_12;
                } else {
                    v3_1.close();
                    return v2_12;
                }
                if (v21 != 0) {
                    v21.close();
                }
                v2_12 = v20_1;
                return v2_12;
            }
            while (v20_1.size() < com.google.android.gms.internal.zzcem.zzxv()) {
                int v11_1;
                com.google.android.gms.internal.zzcji v8_2 = v21.getString(0);
                String v7_1 = v21.getString(1);
                String v3_4 = v21.getString(2);
                String v6_15 = this.zza(v21, 3);
                if (v21.getInt(4) == 0) {
                    v11_1 = 0;
                } else {
                    v11_1 = 1;
                }
                v20_1.add(new com.google.android.gms.internal.zzcek(v8_2, v7_1, new com.google.android.gms.internal.zzcji(v3_4, v21.getLong(10), v6_15, v7_1), v21.getLong(8), v11_1, v21.getString(5), ((com.google.android.gms.internal.zzcez) this.zzwB().zzb(v21.getBlob(7), com.google.android.gms.internal.zzcez.CREATOR)), v21.getLong(6), ((com.google.android.gms.internal.zzcez) this.zzwB().zzb(v21.getBlob(9), com.google.android.gms.internal.zzcez.CREATOR)), v21.getLong(11), ((com.google.android.gms.internal.zzcez) this.zzwB().zzb(v21.getBlob(12), com.google.android.gms.internal.zzcez.CREATOR))));
                if (!v21.moveToNext()) {
                }
            }
            this.zzwF().zzyx().zzj("Read more than the max allowed conditional properties, ignoring extra", Integer.valueOf(com.google.android.gms.internal.zzcem.zzxv()));
        } catch (boolean v2_13) {
            v21 = 0;
        } catch (boolean v2_11) {
            v3_1 = 0;
        }
    }

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


    public final com.google.android.gms.internal.zzceo zza(long p12, String p14, boolean p15, boolean p16, boolean p17, boolean p18, boolean p19)
    {
        com.google.android.gms.common.internal.zzbo.zzcF(p14);
        this.zzjC();
        this.zzkD();
        String[] v10 = new String[1];
        v10[0] = p14;
        com.google.android.gms.internal.zzceo v8_1 = new com.google.android.gms.internal.zzceo();
        try {
            com.google.android.gms.internal.zzceo v0_1 = this.getWritableDatabase();
            android.content.ContentValues v2_5 = new String[6];
            v2_5[0] = "day";
            v2_5[1] = "daily_events_count";
            v2_5[2] = "daily_public_events_count";
            v2_5[3] = "daily_conversions_count";
            v2_5[4] = "daily_error_events_count";
            v2_5[5] = "daily_realtime_events_count";
            String v4_20 = new String[1];
            v4_20[0] = p14;
            int v1_1 = v0_1.query("apps", v2_5, "app_id=?", v4_20, 0, 0, 0);
            try {
                com.google.android.gms.internal.zzceo v0_2;
                if (v1_1.moveToFirst()) {
                    if (v1_1.getLong(0) == p12) {
                        v8_1.zzbpv = v1_1.getLong(1);
                        v8_1.zzbpu = v1_1.getLong(2);
                        v8_1.zzbpw = v1_1.getLong(3);
                        v8_1.zzbpx = v1_1.getLong(4);
                        v8_1.zzbpy = v1_1.getLong(5);
                    }
                    if (p15) {
                        v8_1.zzbpv = (v8_1.zzbpv + 1);
                    }
                    if (p16) {
                        v8_1.zzbpu = (v8_1.zzbpu + 1);
                    }
                    if (p17) {
                        v8_1.zzbpw = (v8_1.zzbpw + 1);
                    }
                    if (p18) {
                        v8_1.zzbpx = (v8_1.zzbpx + 1);
                    }
                    if (p19) {
                        v8_1.zzbpy = (v8_1.zzbpy + 1);
                    }
                    android.content.ContentValues v2_3 = new android.content.ContentValues();
                    v2_3.put("day", Long.valueOf(p12));
                    v2_3.put("daily_public_events_count", Long.valueOf(v8_1.zzbpu));
                    v2_3.put("daily_events_count", Long.valueOf(v8_1.zzbpv));
                    v2_3.put("daily_conversions_count", Long.valueOf(v8_1.zzbpw));
                    v2_3.put("daily_error_events_count", Long.valueOf(v8_1.zzbpx));
                    v2_3.put("daily_realtime_events_count", Long.valueOf(v8_1.zzbpy));
                    v0_1.update("apps", v2_3, "app_id=?", v10);
                    if (v1_1 != 0) {
                        v1_1.close();
                    }
                    v0_2 = v8_1;
                    return v0_2;
                } else {
                    this.zzwF().zzyz().zzj("Not updating daily counts, app is not known. appId", com.google.android.gms.internal.zzcfl.zzdZ(p14));
                    if (v1_1 != 0) {
                        v1_1.close();
                    }
                    v0_2 = v8_1;
                    return v0_2;
                }
            } catch (com.google.android.gms.internal.zzceo v0_0) {
                this.zzwF().zzyx().zze("Error updating daily counts. appId", com.google.android.gms.internal.zzcfl.zzdZ(p14), v0_0);
                if (v1_1 != 0) {
                    v1_1.close();
                }
                v0_2 = v8_1;
                return v0_2;
            }
        } catch (com.google.android.gms.internal.zzceo v0_3) {
            v1_1 = 0;
            if (v1_1 != 0) {
                v1_1.close();
            }
            throw v0_3;
        } catch (com.google.android.gms.internal.zzceo v0_0) {
            v1_1 = 0;
        } catch (com.google.android.gms.internal.zzceo v0_3) {
        }
    }

Method com.google.android.gms.internal.zzcen.zzK() calling method android.database.sqlite.SQLiteDatabase.query()


    final java.util.Map zzK(String p11, String p12)
    {
        this.zzkD();
        this.zzjC();
        com.google.android.gms.common.internal.zzbo.zzcF(p11);
        com.google.android.gms.common.internal.zzbo.zzcF(p12);
        android.support.v4.util.ArrayMap v8_1 = new android.support.v4.util.ArrayMap();
        android.support.v4.util.ArrayMap v0_12 = this.getWritableDatabase();
        try {
            com.google.android.gms.internal.zzcfn v2_1 = new String[2];
            v2_1[0] = "audience_id";
            v2_1[1] = "data";
            Object v4_3 = new String[2];
            v4_3[0] = p11;
            v4_3[1] = p12;
            int v1_0 = v0_12.query("property_filters", v2_1, "app_id=? AND property_name=?", v4_3, 0, 0, 0);
            try {
                android.support.v4.util.ArrayMap v0_13;
                if (!v1_0.moveToFirst()) {
                    v0_13 = java.util.Collections.emptyMap();
                    if (v1_0 == 0) {
                        return v0_13;
                    } else {
                        v1_0.close();
                        return v0_13;
                    }
                }
            } catch (android.support.v4.util.ArrayMap v0_0) {
                this.zzwF().zzyx().zze("Database error querying filters. appId", com.google.android.gms.internal.zzcfl.zzdZ(p11), v0_0);
                if (v1_0 != 0) {
                    v1_0.close();
                }
                v0_13 = 0;
                return v0_13;
            }
            do {
                android.support.v4.util.ArrayMap v0_4 = v1_0.getBlob(1);
                android.support.v4.util.ArrayMap v0_5 = com.google.android.gms.internal.adg.zzb(v0_4, 0, v0_4.length);
                com.google.android.gms.internal.zzcfn v2_4 = new com.google.android.gms.internal.zzcjq();
                v2_4.zza(v0_5);
                Integer v3_5 = v1_0.getInt(0);
                android.support.v4.util.ArrayMap v0_10 = ((java.util.List) v8_1.get(Integer.valueOf(v3_5)));
                if (v0_10 == null) {
                    v0_10 = new java.util.ArrayList();
                    v8_1.put(Integer.valueOf(v3_5), v0_10);
                }
                v0_10.add(v2_4);
            } while(v1_0.moveToNext());
            if (v1_0 != 0) {
                v1_0.close();
            }
            v0_13 = v8_1;
            return v0_13;
        } catch (android.support.v4.util.ArrayMap v0_1) {
            v1_0 = 0;
            if (v1_0 != 0) {
                v1_0.close();
            }
            throw v0_1;
        } catch (android.support.v4.util.ArrayMap v0_0) {
            v1_0 = 0;
        } catch (android.support.v4.util.ArrayMap v0_1) {
        }
    }

Method com.google.android.gms.internal.zzcen.zzJ() calling method android.database.sqlite.SQLiteDatabase.query()


    final java.util.Map zzJ(String p11, String p12)
    {
        this.zzkD();
        this.zzjC();
        com.google.android.gms.common.internal.zzbo.zzcF(p11);
        com.google.android.gms.common.internal.zzbo.zzcF(p12);
        android.support.v4.util.ArrayMap v8_1 = new android.support.v4.util.ArrayMap();
        android.support.v4.util.ArrayMap v0_12 = this.getWritableDatabase();
        try {
            com.google.android.gms.internal.zzcfn v2_1 = new String[2];
            v2_1[0] = "audience_id";
            v2_1[1] = "data";
            Object v4_3 = new String[2];
            v4_3[0] = p11;
            v4_3[1] = p12;
            int v1_0 = v0_12.query("event_filters", v2_1, "app_id=? AND event_name=?", v4_3, 0, 0, 0);
            try {
                android.support.v4.util.ArrayMap v0_13;
                if (!v1_0.moveToFirst()) {
                    v0_13 = java.util.Collections.emptyMap();
                    if (v1_0 == 0) {
                        return v0_13;
                    } else {
                        v1_0.close();
                        return v0_13;
                    }
                }
            } catch (android.support.v4.util.ArrayMap v0_0) {
                this.zzwF().zzyx().zze("Database error querying filters. appId", com.google.android.gms.internal.zzcfl.zzdZ(p11), v0_0);
                if (v1_0 != 0) {
                    v1_0.close();
                }
                v0_13 = 0;
                return v0_13;
            }
            do {
                android.support.v4.util.ArrayMap v0_4 = v1_0.getBlob(1);
                android.support.v4.util.ArrayMap v0_5 = com.google.android.gms.internal.adg.zzb(v0_4, 0, v0_4.length);
                com.google.android.gms.internal.zzcfn v2_4 = new com.google.android.gms.internal.zzcjn();
                v2_4.zza(v0_5);
                Integer v3_5 = v1_0.getInt(0);
                android.support.v4.util.ArrayMap v0_10 = ((java.util.List) v8_1.get(Integer.valueOf(v3_5)));
                if (v0_10 == null) {
                    v0_10 = new java.util.ArrayList();
                    v8_1.put(Integer.valueOf(v3_5), v0_10);
                }
                v0_10.add(v2_4);
            } while(v1_0.moveToNext());
            if (v1_0 != 0) {
                v1_0.close();
            }
            v0_13 = v8_1;
            return v0_13;
        } catch (android.support.v4.util.ArrayMap v0_1) {
            v1_0 = 0;
            if (v1_0 != 0) {
                v1_0.close();
            }
            throw v0_1;
        } catch (android.support.v4.util.ArrayMap v0_0) {
            v1_0 = 0;
        } catch (android.support.v4.util.ArrayMap v0_1) {
        }
    }

Method com.google.android.gms.internal.zzcen.zzH() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.zzcek zzH(String p22, String p23)
    {
        com.google.android.gms.common.internal.zzbo.zzcF(p22);
        com.google.android.gms.common.internal.zzbo.zzcF(p23);
        this.zzjC();
        this.zzkD();
        try {
            com.google.android.gms.internal.zzcfn v2_11 = this.getWritableDatabase();
            Object v4_6 = new String[11];
            v4_6[0] = "origin";
            v4_6[1] = "value";
            v4_6[2] = "active";
            v4_6[3] = "trigger_event_name";
            v4_6[4] = "trigger_timeout";
            v4_6[5] = "timed_out_event";
            v4_6[6] = "creation_timestamp";
            v4_6[7] = "triggered_event";
            v4_6[8] = "triggered_timestamp";
            v4_6[9] = "time_to_live";
            v4_6[10] = "expired_event";
            String v6_16 = new String[2];
            v6_16[0] = p22;
            v6_16[1] = p23;
            int v20 = v2_11.query("conditional_properties", v4_6, "app_id=? and name=?", v6_16, 0, 0, 0);
            try {
                com.google.android.gms.internal.zzcek v5_3;
                if (v20.moveToFirst()) {
                    int v11;
                    String v7_5 = v20.getString(0);
                    String v6_17 = this.zza(v20, 1);
                    if (v20.getInt(2) == 0) {
                        v11 = 0;
                    } else {
                        v11 = 1;
                    }
                    v5_3 = new com.google.android.gms.internal.zzcek(p22, v7_5, new com.google.android.gms.internal.zzcji(p23, v20.getLong(8), v6_17, v7_5), v20.getLong(6), v11, v20.getString(3), ((com.google.android.gms.internal.zzcez) this.zzwB().zzb(v20.getBlob(5), com.google.android.gms.internal.zzcez.CREATOR)), v20.getLong(4), ((com.google.android.gms.internal.zzcez) this.zzwB().zzb(v20.getBlob(7), com.google.android.gms.internal.zzcez.CREATOR)), v20.getLong(9), ((com.google.android.gms.internal.zzcez) this.zzwB().zzb(v20.getBlob(10), com.google.android.gms.internal.zzcez.CREATOR)));
                    if (v20.moveToNext()) {
                        this.zzwF().zzyx().zze("Got multiple records for conditional property, expected one", com.google.android.gms.internal.zzcfl.zzdZ(p22), this.zzwA().zzdY(p23));
                    }
                    if (v20 == 0) {
                        return v5_3;
                    } else {
                        v20.close();
                        return v5_3;
                    }
                } else {
                    if (v20 != 0) {
                        v20.close();
                    }
                    v5_3 = 0;
                    return v5_3;
                }
            } catch (com.google.android.gms.internal.zzcfn v2_10) {
                if (v20 != 0) {
                    v20.close();
                }
                throw v2_10;
            } catch (com.google.android.gms.internal.zzcfn v2_9) {
                String v3_6 = v20;
                try {
                    this.zzwF().zzyx().zzd("Error querying conditional property", com.google.android.gms.internal.zzcfl.zzdZ(p22), this.zzwA().zzdY(p23), v2_9);
                } catch (com.google.android.gms.internal.zzcfn v2_10) {
                    v20 = v3_6;
                }
                if (v3_6 != null) {
                    v3_6.close();
                }
                v5_3 = 0;
                return v5_3;
            }
        } catch (com.google.android.gms.internal.zzcfn v2_10) {
            v20 = 0;
        } catch (com.google.android.gms.internal.zzcfn v2_9) {
            v3_6 = 0;
        }
    }

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


    public final com.google.android.gms.internal.zzcjk zzG(String p10, String p11)
    {
        android.database.Cursor v8 = 0;
        com.google.android.gms.common.internal.zzbo.zzcF(p10);
        com.google.android.gms.common.internal.zzbo.zzcF(p11);
        this.zzjC();
        this.zzkD();
        try {
            com.google.android.gms.internal.zzcjk v0_8 = this.getWritableDatabase();
            String v2_5 = new String[3];
            v2_5[0] = "set_timestamp";
            v2_5[1] = "value";
            v2_5[2] = "origin";
            long v4_4 = new String[2];
            v4_4[0] = p10;
            v4_4[1] = p11;
            android.database.Cursor v7_1 = v0_8.query("user_attributes", v2_5, "app_id=? and name=?", v4_4, 0, 0, 0);
            try {
                com.google.android.gms.internal.zzcjk v0_7;
                if (v7_1.moveToFirst()) {
                    v0_7 = new com.google.android.gms.internal.zzcjk(p10, v7_1.getString(2), p11, v7_1.getLong(0), this.zza(v7_1, 1));
                    if (v7_1.moveToNext()) {
                        this.zzwF().zzyx().zzj("Got multiple records for user property, expected one. appId", com.google.android.gms.internal.zzcfl.zzdZ(p10));
                    }
                    if (v7_1 == null) {
                        return v0_7;
                    } else {
                        v7_1.close();
                        return v0_7;
                    }
                } else {
                    if (v7_1 != null) {
                        v7_1.close();
                    }
                    v0_7 = 0;
                    return v0_7;
                }
            } catch (com.google.android.gms.internal.zzcjk v0_1) {
                v8 = v7_1;
                if (v8 != null) {
                    v8.close();
                }
                throw v0_1;
            } catch (com.google.android.gms.internal.zzcjk v0_0) {
                com.google.android.gms.internal.zzcfn v1_0 = v7_1;
                try {
                    this.zzwF().zzyx().zzd("Error querying user property. appId", com.google.android.gms.internal.zzcfl.zzdZ(p10), this.zzwA().zzdY(p11), v0_0);
                } catch (com.google.android.gms.internal.zzcjk v0_1) {
                    v8 = v1_0;
                }
                if (v1_0 != null) {
                    v1_0.close();
                }
                v0_7 = 0;
                return v0_7;
            }
        } catch (com.google.android.gms.internal.zzcjk v0_1) {
        } catch (com.google.android.gms.internal.zzcjk v0_0) {
            v1_0 = 0;
        }
    }

Method com.google.android.gms.internal.zzcen.zzE() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.zzcev zzE(String p13, String p14)
    {
        android.database.Cursor v10 = 0;
        com.google.android.gms.common.internal.zzbo.zzcF(p13);
        com.google.android.gms.common.internal.zzbo.zzcF(p14);
        this.zzjC();
        this.zzkD();
        try {
            com.google.android.gms.internal.zzcfn v0_9 = this.getWritableDatabase();
            String v2_5 = new String[3];
            v2_5[0] = "lifetime_count";
            v2_5[1] = "current_bundle_count";
            v2_5[2] = "last_fire_timestamp";
            long v4_4 = new String[2];
            v4_4[0] = p13;
            v4_4[1] = p14;
            android.database.Cursor v11 = v0_9.query("events", v2_5, "app_id=? and name=?", v4_4, 0, 0, 0);
            try {
                com.google.android.gms.internal.zzcev v1_2;
                if (v11.moveToFirst()) {
                    v1_2 = new com.google.android.gms.internal.zzcev(p13, p14, v11.getLong(0), v11.getLong(1), v11.getLong(2));
                    if (v11.moveToNext()) {
                        this.zzwF().zzyx().zzj("Got multiple records for event aggregates, expected one. appId", com.google.android.gms.internal.zzcfl.zzdZ(p13));
                    }
                    if (v11 == null) {
                        return v1_2;
                    } else {
                        v11.close();
                        return v1_2;
                    }
                } else {
                    if (v11 != null) {
                        v11.close();
                    }
                    v1_2 = 0;
                    return v1_2;
                }
            } catch (com.google.android.gms.internal.zzcfn v0_1) {
                v10 = v11;
                if (v10 != null) {
                    v10.close();
                }
                throw v0_1;
            } catch (com.google.android.gms.internal.zzcfn v0_0) {
                com.google.android.gms.internal.zzcev v1_0 = v11;
                try {
                    this.zzwF().zzyx().zzd("Error querying events. appId", com.google.android.gms.internal.zzcfl.zzdZ(p13), this.zzwA().zzdW(p14), v0_0);
                } catch (com.google.android.gms.internal.zzcfn v0_1) {
                    v10 = v1_0;
                }
                if (v1_0 != null) {
                    v1_0.close();
                }
                v1_2 = 0;
                return v1_2;
            }
        } catch (com.google.android.gms.internal.zzcfn v0_1) {
        } catch (com.google.android.gms.internal.zzcfn v0_0) {
            v1_0 = 0;
        }
    }

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


    private static boolean zza(com.google.android.gms.internal.zzcfl p10, android.database.sqlite.SQLiteDatabase p11, String p12)
    {
        int v9 = 0;
        if (p10 != null) {
            try {
                com.google.android.gms.internal.zzcfn v2_1 = new String[1];
                v2_1[0] = "name";
                String[] v4 = new String[1];
                v4[0] = p12;
                int v1_0 = p11.query("SQLITE_MASTER", v2_1, "name=?", v4, 0, 0, 0);
                try {
                    int v0_5 = v1_0.moveToFirst();
                } catch (int v0_3) {
                    p10.zzyz().zze("Error querying for table", p12, v0_3);
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    v0_5 = 0;
                    return v0_5;
                }
                if (v1_0 == 0) {
                    return v0_5;
                } else {
                    v1_0.close();
                    return v0_5;
                }
            } catch (int v0_4) {
                if (v9 != 0) {
                    v9.close();
                }
                throw v0_4;
            } catch (int v0_3) {
                v1_0 = 0;
            } catch (int v0_4) {
                v9 = v1_0;
            }
        } else {
            throw new IllegalArgumentException("Monitor must not be null");
        }
    }

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


    private final boolean zza(android.database.sqlite.SQLiteDatabase p11, String p12)
    {
        int v9 = 0;
        try {
            com.google.android.gms.internal.zzams v2_1 = new String[1];
            v2_1[0] = "name";
            String[] v4 = new String[1];
            v4[0] = p12;
            int v1_0 = p11.query("SQLITE_MASTER", v2_1, "name=?", v4, 0, 0, 0);
            try {
                int v0_4 = v1_0.moveToFirst();
            } catch (int v0_2) {
                this.zzagu.zzc("Error querying for table", p12, v0_2);
                if (v1_0 != 0) {
                    v1_0.close();
                }
                v0_4 = 0;
                return v0_4;
            }
            if (v1_0 == 0) {
                return v0_4;
            } else {
                v1_0.close();
                return v0_4;
            }
        } catch (int v0_3) {
            if (v9 != 0) {
                v9.close();
            }
            throw v0_3;
        } catch (int v0_2) {
            v1_0 = 0;
        } catch (int v0_3) {
            v9 = v1_0;
        }
    }

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


    public final java.util.List zzq(long p13)
    {
        this.zzkD();
        com.google.android.gms.analytics.zzl.zzjC();
        boolean v0_0 = this.getWritableDatabase();
        try {
            String v2_0 = new String[5];
            v2_0[0] = "cid";
            v2_0[1] = "tid";
            v2_0[2] = "adid";
            v2_0[3] = "hits_count";
            v2_0[4] = "params";
            int v10 = ((Integer) com.google.android.gms.internal.zzans.zzahl.get()).intValue();
            java.util.Map v8_0 = String.valueOf(v10);
            String v4_0 = new String[1];
            v4_0[0] = "0";
            android.database.Cursor v9 = v0_0.query("properties", v2_0, "app_uid=?", v4_0, 0, 0, 0, v8_0);
            try {
                java.util.ArrayList v11_1 = new java.util.ArrayList();
            } catch (boolean v0_1) {
                long v1_10 = v9;
                try {
                    this.zze("Error loading hits from the database", v0_1);
                    throw v0_1;
                } catch (boolean v0_19) {
                    v9 = v1_10;
                    if (v9 != null) {
                        v9.close();
                    }
                    throw v0_19;
                }
            }
            if (v9.moveToFirst()) {
                do {
                    int v5_2;
                    String v3_5 = v9.getString(0);
                    String v4_1 = v9.getString(1);
                    if (v9.getInt(2) == 0) {
                        v5_2 = 0;
                    } else {
                        v5_2 = 1;
                    }
                    long v6_1 = ((long) v9.getInt(3));
                    java.util.Map vtmp13 = this.zzbu(v9.getString(4));
                    if ((!android.text.TextUtils.isEmpty(v3_5)) && (!android.text.TextUtils.isEmpty(v4_1))) {
                        v11_1.add(new com.google.android.gms.internal.zzamm(0, v3_5, v4_1, v5_2, v6_1, vtmp13));
                    } else {
                        this.zzc("Read property with empty client id or tracker id", v3_5, v4_1);
                    }
                } while(v9.moveToNext());
            }
            if (v11_1.size() >= v10) {
                this.zzbr("Sending hits to too many properties. Campaign report might be incorrect");
            }
            if (v9 != null) {
                v9.close();
            }
            return v11_1;
        } catch (boolean v0_19) {
        } catch (boolean v0_1) {
            v1_10 = v9;
        }
    }

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


    public final java.util.List zzo(long p14)
    {
        Throwable v0_0 = 1;
        if (p14 < 0) {
            v0_0 = 0;
        }
        com.google.android.gms.common.internal.zzbo.zzaf(v0_0);
        com.google.android.gms.analytics.zzl.zzjC();
        this.zzkD();
        Throwable v0_1 = this.getWritableDatabase();
        try {
            java.util.Map v2_1 = new String[5];
            v2_1[0] = "hit_id";
            v2_1[1] = "hit_time";
            v2_1[2] = "hit_string";
            v2_1[3] = "hit_url";
            v2_1[4] = "hit_app_id";
            int v8_1 = new Object[1];
            v8_1[0] = "hit_id";
            com.google.android.gms.internal.zzams v9 = v0_1.query("hits2", v2_1, 0, 0, 0, 0, String.format("%s ASC", v8_1), Long.toString(p14));
            try {
                java.util.ArrayList v10_2 = new java.util.ArrayList();
            } catch (Throwable v0_2) {
                com.google.android.gms.internal.zzams v1_2 = v9;
                try {
                    this.zze("Error loading hits from the database", v0_2);
                    throw v0_2;
                } catch (Throwable v0_4) {
                    v9 = v1_2;
                    if (v9 != null) {
                        v9.close();
                    }
                    throw v0_4;
                }
            }
            if (v9.moveToFirst()) {
                do {
                    v10_2.add(new com.google.android.gms.internal.zzanx(this, this.zzbt(v9.getString(2)), v9.getLong(1), com.google.android.gms.internal.zzaos.zzbF(v9.getString(3)), v9.getLong(0), v9.getInt(4)));
                } while(v9.moveToNext());
            }
            if (v9 != null) {
                v9.close();
            }
            return v10_2;
        } catch (Throwable v0_4) {
        } catch (Throwable v0_2) {
            v1_2 = v9;
        }
    }

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


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

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


    public final java.util.Set zze(java.util.Set p13)
    {
        Object[] v3_0 = new String[1];
        v3_0[0] = "key";
        long v10 = System.currentTimeMillis();
        Throwable v0_0 = String.valueOf("id IN (");
        String v2_2 = String.valueOf(com.google.android.gms.internal.nb.zzj(p13));
        android.database.Cursor v1_1 = this.zzbZD.query(1, "trackedKeys", v3_0, new StringBuilder(((String.valueOf(v0_0).length() + 1) + String.valueOf(v2_2).length())).append(v0_0).append(v2_2).append(")").toString(), 0, 0, 0, 0, 0);
        Throwable v0_7 = new java.util.HashSet();
        try {
            while (v1_1.moveToNext()) {
                v0_7.add(com.google.android.gms.internal.wp.zzgT(v1_1.getString(0)));
            }
        } catch (Throwable v0_9) {
            v1_1.close();
            throw v0_9;
        }
        String v2_7 = (System.currentTimeMillis() - v10);
        if (this.zzbZE.zzIH()) {
            com.google.android.gms.internal.wl v4_7 = this.zzbZE;
            Object[] v6_6 = new Object[3];
            v6_6[0] = Integer.valueOf(v0_7.size());
            v6_6[1] = p13.toString();
            v6_6[2] = Long.valueOf(v2_7);
            Object[] v3_2 = new Object[0];
            v4_7.zzb(String.format("Loaded %d tracked queries keys for tracked queries %s in %dms", v6_6), 0, v3_2);
        }
        v1_1.close();
        return v0_7;
    }

Method com.google.android.gms.internal.nb.zzFu() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzFu()
    {
        com.google.android.gms.internal.wl v2_3 = new String[6];
        v2_3[0] = "id";
        v2_3[1] = "path";
        v2_3[2] = "queryParams";
        v2_3[3] = "lastUse";
        v2_3[4] = "complete";
        v2_3[5] = "active";
        long v10 = System.currentTimeMillis();
        android.database.Cursor v12 = this.zzbZD.query("trackedQueries", v2_3, 0, 0, 0, 0, "id");
        java.util.ArrayList v13_1 = new java.util.ArrayList();
        try {
            while (v12.moveToNext()) {
                RuntimeException v1_6 = v12.getLong(0);
                try {
                } catch (com.google.android.gms.internal.un v0_18) {
                    throw new RuntimeException(v0_18);
                }
                int v6_3;
                com.google.android.gms.internal.vt v3_9 = new com.google.android.gms.internal.vt(new com.google.android.gms.internal.qr(v12.getString(1)), com.google.android.gms.internal.vq.zzF(com.google.android.gms.internal.yr.zzgV(v12.getString(2))));
                long v4_5 = v12.getLong(3);
                if (v12.getInt(4) == 0) {
                    v6_3 = 0;
                } else {
                    v6_3 = 1;
                }
                int v7_0;
                if (v12.getInt(5) == 0) {
                    v7_0 = 0;
                } else {
                    v7_0 = 1;
                }
                v13_1.add(new com.google.android.gms.internal.un(v1_6, v3_9, v4_5, v6_3, v7_0));
            }
        } catch (com.google.android.gms.internal.un v0_0) {
            v12.close();
            throw v0_0;
        }
        com.google.android.gms.internal.un v0_10 = (System.currentTimeMillis() - v10);
        if (this.zzbZE.zzIH()) {
            com.google.android.gms.internal.wl v2_2 = this.zzbZE;
            long v4_3 = new Object[2];
            v4_3[0] = Integer.valueOf(v13_1.size());
            v4_3[1] = Long.valueOf(v0_10);
            RuntimeException v1_5 = new Object[0];
            v2_2.zzb(String.format("Loaded %d tracked queries in %dms", v4_3), 0, v1_5);
        }
        v12.close();
        return v13_1;
    }

Method com.google.android.gms.internal.nb.zzFs() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzFs()
    {
        IllegalStateException v2_6 = new String[5];
        v2_6[0] = "id";
        v2_6[1] = "path";
        v2_6[2] = "type";
        v2_6[3] = "part";
        v2_6[4] = "node";
        long v8 = System.currentTimeMillis();
        android.database.Cursor v7_1 = this.zzbZD.query("writes", v2_6, 0, 0, 0, 0, "id, part");
        java.util.ArrayList v10_1 = new java.util.ArrayList();
        try {
            while (v7_1.moveToNext()) {
                String v0_28;
                IllegalStateException v2_7 = v7_1.getLong(0);
                Object[] v4_5 = new com.google.android.gms.internal.qr(v7_1.getString(1));
                int v1_12 = v7_1.getString(2);
                if (!v7_1.isNull(3)) {
                    String v0_26 = new java.util.ArrayList();
                    do {
                        v0_26.add(v7_1.getBlob(4));
                    } while((v7_1.moveToNext()) && (v7_1.getLong(0) == v2_7));
                    v7_1.moveToPrevious();
                    v0_28 = com.google.android.gms.internal.nb.zzQ(v0_26);
                } else {
                    v0_28 = v7_1.getBlob(4);
                }
                int v1_2;
                String v0_0 = com.google.android.gms.internal.yr.zzgW(new String(v0_28, com.google.android.gms.internal.nb.zzayt));
                if (!"o".equals(v1_12)) {
                    if (!"m".equals(v1_12)) {
                        String v0_4;
                        String v0_2 = String.valueOf(v1_12);
                        if (v0_2.length() == 0) {
                            v0_4 = new String("Got invalid write type: ");
                        } else {
                            v0_4 = "Got invalid write type: ".concat(v0_2);
                        }
                        throw new IllegalStateException(v0_4);
                    } else {
                        v1_2 = new com.google.android.gms.internal.tm(v2_7, v4_5, com.google.android.gms.internal.pz.zzD(((java.util.Map) v0_0)));
                    }
                } else {
                    v1_2 = new com.google.android.gms.internal.tm(v2_7, v4_5, com.google.android.gms.internal.xp.zza(v0_0, com.google.android.gms.internal.xd.zzJb()), 1);
                }
                v10_1.add(v1_2);
            }
        } catch (String v0_9) {
            v7_1.close();
            throw v0_9;
        } catch (String v0_8) {
            throw new RuntimeException("Failed to load writes", v0_8);
        }
        String v0_14 = (System.currentTimeMillis() - v8);
        if (this.zzbZE.zzIH()) {
            IllegalStateException v2_5 = this.zzbZE;
            Object[] v4_3 = new Object[2];
            v4_3[0] = Integer.valueOf(v10_1.size());
            v4_3[1] = Long.valueOf(v0_14);
            int v1_11 = new Object[0];
            v2_5.zzb(String.format("Loaded %d writes in %dms", v4_3), 0, v1_11);
        }
        v7_1.close();
        return v10_1;
    }

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


    private final android.database.Cursor zza(com.google.android.gms.internal.qr p9, String[] p10)
    {
        String[] v2_0 = com.google.android.gms.internal.nb.zzc(p9);
        int v6_0 = com.google.android.gms.internal.nb.zzgC(v2_0);
        String[] v4 = new String[(p9.size() + 3)];
        android.database.Cursor v0_9 = 0;
        String v3_1 = new StringBuilder("(");
        String v1_1 = p9;
        while (!v1_1.isEmpty()) {
            v3_1.append("path");
            v3_1.append(" = ? OR ");
            v4[v0_9] = com.google.android.gms.internal.nb.zzc(v1_1);
            v1_1 = v1_1.zzHe();
            v0_9++;
        }
        String v3_4;
        v3_1.append("path");
        v3_1.append(" = ?)");
        v4[v0_9] = com.google.android.gms.internal.nb.zzc(com.google.android.gms.internal.qr.zzGZ());
        android.database.Cursor v0_1 = String.valueOf(v3_1.toString());
        String v1_7 = String.valueOf(" OR (path > ? AND path < ?)");
        if (v1_7.length() == 0) {
            v3_4 = new String(v0_1);
        } else {
            v3_4 = v0_1.concat(v1_7);
        }
        v4[(p9.size() + 1)] = v2_0;
        v4[(p9.size() + 2)] = v6_0;
        return this.zzbZD.query("serverCache", p10, v3_4, v4, 0, 0, "path");
    }