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.measurement.zzgh.zza() calling method android.database.sqlite.SQLiteDatabase.update()


    protected final boolean zza(String p9, byte[] p10, String p11)
    {
        int v0_0 = 0;
        this.zzch();
        this.zzab();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p9);
        com.google.android.gms.internal.measurement.zzfk v2_3 = this.zza(p9, p10);
        if (v2_3 != null) {
            this.zza(p9, v2_3);
            this.zzanj.put(p9, v2_3);
            this.zzanl.put(p9, p11);
            this.zzang.put(p9, com.google.android.gms.internal.measurement.zzgh.zza(v2_3));
            this.zzjg().zza(p9, v2_3.zzauq);
            try {
                v2_3.zzauq = 0;
                int v0_6 = new byte[v2_3.zzwb()];
                v2_3.zza(com.google.android.gms.internal.measurement.zzacb.zzb(v0_6, 0, v0_6.length));
                byte[] v10_1 = v0_6;
            } catch (int v0_7) {
                this.zzgi().zziy().zze("Unable to serialize reduced-size config. Storing full config instead. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p9), v0_7);
            }
            com.google.android.gms.internal.measurement.zzfk v2_2 = this.zzjh();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p9);
            v2_2.zzab();
            v2_2.zzch();
            int v0_9 = new android.content.ContentValues();
            v0_9.put("remote_config", v10_1);
            try {
                String v3_6 = v2_2.getWritableDatabase();
                long v6_1 = new String[1];
                v6_1[0] = p9;
            } catch (int v0_14) {
                v2_2.zzgi().zziv().zze("Error storing remote config. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p9), v0_14);
                v0_0 = 1;
            }
            if (((long) v3_6.update("apps", v0_9, "app_id = ?", v6_1)) != 0) {
            } else {
                v2_2.zzgi().zziv().zzg("Failed to update remote config (got 0). appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p9));
            }
        }
        return v0_0;
    }

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


    protected final long zzm(String p13, String p14)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p14);
        this.zzab();
        this.zzch();
        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.zzgi().zziv().zzd("Error inserting column. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(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.zzgi().zziv().zze("Failed to insert column (got -1). appId", com.google.android.gms.internal.measurement.zzfi.zzbp(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.zzgi().zziv().zze("Failed to update column (got 0). appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p13), p14);
            v6.endTransaction();
            v0_1 = -1;
            return v0_1;
        }
    }

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


    public final void zza(com.google.android.gms.internal.measurement.zzea p8)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p8);
        this.zzab();
        this.zzch();
        com.google.android.gms.internal.measurement.zzfk v0_6 = new android.content.ContentValues();
        v0_6.put("app_id", p8.zzah());
        v0_6.put("app_instance_id", p8.getAppInstanceId());
        v0_6.put("gmp_app_id", p8.getGmpAppId());
        v0_6.put("resettable_device_id_hash", p8.zzgq());
        v0_6.put("last_bundle_index", Long.valueOf(p8.zzgy()));
        v0_6.put("last_bundle_start_timestamp", Long.valueOf(p8.zzgs()));
        v0_6.put("last_bundle_end_timestamp", Long.valueOf(p8.zzgt()));
        v0_6.put("app_version", p8.zzag());
        v0_6.put("app_store", p8.zzgv());
        v0_6.put("gmp_version", Long.valueOf(p8.zzgw()));
        v0_6.put("dev_cert_hash", Long.valueOf(p8.zzgx()));
        v0_6.put("measurement_enabled", Boolean.valueOf(p8.isMeasurementEnabled()));
        v0_6.put("day", Long.valueOf(p8.zzhc()));
        v0_6.put("daily_public_events_count", Long.valueOf(p8.zzhd()));
        v0_6.put("daily_events_count", Long.valueOf(p8.zzhe()));
        v0_6.put("daily_conversions_count", Long.valueOf(p8.zzhf()));
        v0_6.put("config_fetched_time", Long.valueOf(p8.zzgz()));
        v0_6.put("failed_config_fetch_time", Long.valueOf(p8.zzha()));
        v0_6.put("app_version_int", Long.valueOf(p8.zzgu()));
        v0_6.put("firebase_instance_id", p8.zzgr());
        v0_6.put("daily_error_events_count", Long.valueOf(p8.zzhh()));
        v0_6.put("daily_realtime_events_count", Long.valueOf(p8.zzhg()));
        v0_6.put("health_monitor_sample", p8.zzhi());
        v0_6.put("android_id", Long.valueOf(p8.zzhk()));
        v0_6.put("adid_reporting_enabled", Boolean.valueOf(p8.zzhl()));
        v0_6.put("ssaid_reporting_enabled", Boolean.valueOf(p8.zzhm()));
        try {
            String v1_9 = this.getWritableDatabase();
            int v4_1 = new String[1];
            v4_1[0] = p8.zzah();
        } catch (com.google.android.gms.internal.measurement.zzfk v0_4) {
            this.zzgi().zziv().zze("Error storing app. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p8.zzah()), v0_4);
            return;
        }
        if ((((long) v1_9.update("apps", v0_6, "app_id = ?", v4_1)) != 0) || (v1_9.insertWithOnConflict("apps", 0, v0_6, 5) != -1)) {
            return;
        } else {
            this.zzgi().zziv().zzg("Failed to insert/update app (got -1). appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p8.zzah()));
            return;
        }
    }

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


    public final com.google.android.gms.internal.measurement.zzel zza(long p12, String p14, boolean p15, boolean p16, boolean p17, boolean p18, boolean p19)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p14);
        this.zzab();
        this.zzch();
        String[] v10 = new String[1];
        v10[0] = p14;
        com.google.android.gms.internal.measurement.zzel v8_1 = new com.google.android.gms.internal.measurement.zzel();
        try {
            com.google.android.gms.internal.measurement.zzel 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.measurement.zzel v0_2;
                if (v1_1.moveToFirst()) {
                    if (v1_1.getLong(0) == p12) {
                        v8_1.zzagu = v1_1.getLong(1);
                        v8_1.zzagt = v1_1.getLong(2);
                        v8_1.zzagv = v1_1.getLong(3);
                        v8_1.zzagw = v1_1.getLong(4);
                        v8_1.zzagx = v1_1.getLong(5);
                    }
                    if (p15) {
                        v8_1.zzagu = (v8_1.zzagu + 1);
                    }
                    if (p16) {
                        v8_1.zzagt = (v8_1.zzagt + 1);
                    }
                    if (p17) {
                        v8_1.zzagv = (v8_1.zzagv + 1);
                    }
                    if (p18) {
                        v8_1.zzagw = (v8_1.zzagw + 1);
                    }
                    if (p19) {
                        v8_1.zzagx = (v8_1.zzagx + 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.zzagt));
                    v2_3.put("daily_events_count", Long.valueOf(v8_1.zzagu));
                    v2_3.put("daily_conversions_count", Long.valueOf(v8_1.zzagv));
                    v2_3.put("daily_error_events_count", Long.valueOf(v8_1.zzagw));
                    v2_3.put("daily_realtime_events_count", Long.valueOf(v8_1.zzagx));
                    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.zzgi().zziy().zzg("Not updating daily counts, app is not known. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p14));
                    if (v1_1 != 0) {
                        v1_1.close();
                    }
                    v0_2 = v8_1;
                    return v0_2;
                }
            } catch (com.google.android.gms.internal.measurement.zzel v0_0) {
                this.zzgi().zziv().zze("Error updating daily counts. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p14), v0_0);
                if (v1_1 != 0) {
                    v1_1.close();
                }
                v0_2 = v8_1;
                return v0_2;
            }
        } catch (com.google.android.gms.internal.measurement.zzel v0_3) {
            v1_1 = 0;
            if (v1_1 != 0) {
                v1_1.close();
            }
            throw v0_3;
        } catch (com.google.android.gms.internal.measurement.zzel v0_0) {
            v1_1 = 0;
        } catch (com.google.android.gms.internal.measurement.zzel v0_3) {
        }
    }

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


    private final boolean zza(int p14, byte[] p15)
    {
        int v0_4;
        this.zzfv();
        this.zzab();
        if (!this.zzakg) {
            android.content.ContentValues v7_1 = new android.content.ContentValues();
            v7_1.put("type", Integer.valueOf(p14));
            v7_1.put("entry", p15);
            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.measurement.zzfk v1_0) {
                    this.zzgi().zziv().zzg("Error writing entry to local database", v1_0);
                    this.zzakg = 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_4 = 1;
                } catch (com.google.android.gms.internal.measurement.zzfk v1) {
                    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;
                } catch (com.google.android.gms.internal.measurement.zzfk v1_20) {
                    if (v3 != null) {
                        if (v3.inTransaction()) {
                            v3.endTransaction();
                        }
                    }
                    this.zzgi().zziv().zzg("Error writing entry to local database", v1_20);
                    this.zzakg = 1;
                    if (v2 != null) {
                        v2.close();
                    }
                    if (v3 == null) {
                    } else {
                        v3.close();
                    }
                }
                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) {
                        this.zzgi().zziv().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) {
                            this.zzgi().zziv().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.zzakg = 1;
                    if (v3 != null) {
                        v3.close();
                    }
                    v0_4 = 0;
                }
            }
            this.zzgi().zziy().log("Failed to write entry to local database");
            v0_4 = 0;
        } else {
            v0_4 = 0;
        }
        return v0_4;
    }

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


    public final long zzic()
    {
        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.zzgi().zziv().zzg("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.measurement.zzek.zzhv() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final String zzhv()
    {
        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.zzgi().zziv().zzg("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.measurement.zzek.zzag() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final String zzag(long p8)
    {
        String v0_0 = 0;
        this.zzab();
        this.zzch();
        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.zzgi().zzjc().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.zzgi().zziv().zzg("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.measurement.zzek.zza() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final android.util.Pair zza(String p7, Long p8)
    {
        android.util.Pair v0_0 = 0;
        this.zzab();
        this.zzch();
        try {
            java.io.IOException v1_7 = this.getWritableDatabase();
            com.google.android.gms.internal.measurement.zzfk v3_7 = new String[2];
            v3_7[0] = p7;
            v3_7[1] = String.valueOf(p8);
            Throwable v2_0 = v1_7.rawQuery("select main_event, children_to_process from main_event_params where app_id=? and event_id=?", v3_7);
            try {
                if (v2_0.moveToFirst()) {
                    java.io.IOException v1_4 = v2_0.getBlob(0);
                    com.google.android.gms.internal.measurement.zzfk v3_1 = Long.valueOf(v2_0.getLong(1));
                    java.io.IOException v1_5 = com.google.android.gms.internal.measurement.zzaca.zza(v1_4, 0, v1_4.length);
                    String v4_4 = new com.google.android.gms.internal.measurement.zzkr();
                    try {
                        v4_4.zzb(v1_5);
                    } catch (java.io.IOException v1_6) {
                        this.zzgi().zziv().zzd("Failed to merge main event. appId, eventId", com.google.android.gms.internal.measurement.zzfi.zzbp(p7), p8, v1_6);
                        if (v2_0 == null) {
                            return v0_0;
                        } else {
                            v2_0.close();
                            return v0_0;
                        }
                    }
                    v0_0 = android.util.Pair.create(v4_4, v3_1);
                    if (v2_0 == null) {
                        return v0_0;
                    } else {
                        v2_0.close();
                        return v0_0;
                    }
                } else {
                    this.zzgi().zzjc().log("Main event not found");
                    if (v2_0 == null) {
                        return v0_0;
                    } else {
                        v2_0.close();
                        return v0_0;
                    }
                }
            } catch (java.io.IOException v1_0) {
                this.zzgi().zziv().zzg("Error selecting main event", v1_0);
                if (v2_0 == null) {
                    return v0_0;
                } else {
                    v2_0.close();
                    return v0_0;
                }
            }
        } catch (java.io.IOException v1_1) {
            v2_0 = 0;
            android.util.Pair v0_1 = v1_1;
            if (v2_0 != null) {
                v2_0.close();
            }
            throw v0_1;
        } catch (java.io.IOException v1_0) {
            v2_0 = 0;
        } catch (android.util.Pair v0_1) {
        }
    }

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


    private final long zza(String p5, String[] p6)
    {
        try {
            android.database.Cursor v1 = this.getWritableDatabase().rawQuery(p5, p6);
        } catch (android.database.sqlite.SQLiteException v0_2) {
            this.zzgi().zziv().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.measurement.zzfk v2_2 = v1.getLong(0);
            if (v1 != null) {
                v1.close();
            }
            return v2_2;
        }
    }

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


    private final boolean zzd(String p31, long p32)
    {
        this.zzjh().beginTransaction();
        try {
            com.google.android.gms.internal.measurement.zzjt$zza v21 = new com.google.android.gms.internal.measurement.zzjt$zza;
            v21(this, 0);
            int v14_2 = this.zzjh();
            String v4_0 = 0;
            int v16_0 = this.zzasl;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v21);
            v14_2.zzab();
            v14_2.zzch();
            com.google.android.gms.internal.measurement.zzet v3_64 = 0;
            try {
                long v12_1;
                String v13_0;
                com.google.android.gms.internal.measurement.zzet v2_101 = v14_2.getWritableDatabase();
            } catch (com.google.android.gms.internal.measurement.zzet v2_4) {
                v14_2.zzgi().zziv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v4_0), v2_4);
                if (v3_64 == null) {
                    if ((v21.zzasr != null) && (!v21.zzasr.isEmpty())) {
                        com.google.android.gms.internal.measurement.zzet v2_122 = 0;
                    } else {
                        v2_122 = 1;
                    }
                    com.google.android.gms.internal.measurement.zzet v2_125;
                    if (v2_122 != null) {
                        this.zzjh().setTransactionSuccessful();
                        this.zzjh().endTransaction();
                        v2_125 = 0;
                    } else {
                        int v17 = 0;
                        com.google.android.gms.internal.measurement.zzku v22 = v21.zzasp;
                        com.google.android.gms.internal.measurement.zzet v2_128 = new com.google.android.gms.internal.measurement.zzkr[v21.zzasr.size()];
                        v22.zzavi = v2_128;
                        String v13_1 = 0;
                        int v14_1 = 0;
                        Boolean v18_1 = this.zzacv.zzgk().zzaw(v22.zzth);
                        int v16_1 = 0;
                        while (v16_1 < v21.zzasr.size()) {
                            int v5_32;
                            String v4_72;
                            com.google.android.gms.internal.measurement.zzet v2_66;
                            long v12_0 = ((com.google.android.gms.internal.measurement.zzkr) v21.zzasr.get(v16_1));
                            if (!this.zzky().zzn(v21.zzasp.zzth, v12_0.name)) {
                                int v19_1 = this.zzky().zzo(v21.zzasp.zzth, v12_0.name);
                                if (v19_1 != 0) {
                                    String v4_25 = 0;
                                    com.google.android.gms.internal.measurement.zzet v3_18 = 0;
                                    if (v12_0.zzava == null) {
                                        com.google.android.gms.internal.measurement.zzet v2_30 = new com.google.android.gms.internal.measurement.zzks[0];
                                        v12_0.zzava = v2_30;
                                    }
                                    int v6_11 = v12_0.zzava;
                                    int v7_6 = v6_11.length;
                                    int v5_12 = 0;
                                    while (v5_12 < v7_6) {
                                        com.google.android.gms.internal.measurement.zzet v2_85;
                                        com.google.android.gms.internal.measurement.zzet v3_49;
                                        com.google.android.gms.internal.measurement.zzet v2_84 = v6_11[v5_12];
                                        if (!"_c".equals(v2_84.name)) {
                                            if (!"_r".equals(v2_84.name)) {
                                                v2_85 = v3_18;
                                                v3_49 = v4_25;
                                            } else {
                                                v2_84.zzave = Long.valueOf(1);
                                                v2_85 = 1;
                                                v3_49 = v4_25;
                                            }
                                        } else {
                                            v2_84.zzave = Long.valueOf(1);
                                            v3_49 = 1;
                                            v2_85 = v3_18;
                                        }
                                        v5_12++;
                                        v4_25 = v3_49;
                                        v3_18 = v2_85;
                                    }
                                    if ((v4_25 == null) && (v19_1 != 0)) {
                                        this.zzacv.zzgi().zzjc().zzg("Marking event as conversion", this.zzacv.zzgf().zzbm(v12_0.name));
                                        com.google.android.gms.internal.measurement.zzet v2_37 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v12_0.zzava, (v12_0.zzava.length + 1)));
                                        String v4_31 = new com.google.android.gms.internal.measurement.zzks();
                                        v4_31.name = "_c";
                                        v4_31.zzave = Long.valueOf(1);
                                        v2_37[(v2_37.length - 1)] = v4_31;
                                        v12_0.zzava = v2_37;
                                    }
                                    if (v3_18 == null) {
                                        this.zzacv.zzgi().zzjc().zzg("Marking event as real-time", this.zzacv.zzgf().zzbm(v12_0.name));
                                        com.google.android.gms.internal.measurement.zzet v2_43 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v12_0.zzava, (v12_0.zzava.length + 1)));
                                        com.google.android.gms.internal.measurement.zzet v3_25 = new com.google.android.gms.internal.measurement.zzks();
                                        v3_25.name = "_r";
                                        v3_25.zzave = Long.valueOf(1);
                                        v2_43[(v2_43.length - 1)] = v3_25;
                                        v12_0.zzava = v2_43;
                                    }
                                    if (this.zzjh().zza(this.zzld(), v21.zzasp.zzth, 0, 0, 0, 0, 1).zzagx <= ((long) this.zzacv.zzgk().zzas(v21.zzasp.zzth))) {
                                        v17 = 1;
                                    } else {
                                        com.google.android.gms.internal.measurement.zzet v2_45 = 0;
                                        while (v2_45 < v12_0.zzava.length) {
                                            if (!"_r".equals(v12_0.zzava[v2_45].name)) {
                                                v2_45++;
                                            } else {
                                                com.google.android.gms.internal.measurement.zzet v3_39 = new com.google.android.gms.internal.measurement.zzks[(v12_0.zzava.length - 1)];
                                                if (v2_45 > null) {
                                                    System.arraycopy(v12_0.zzava, 0, v3_39, 0, v2_45);
                                                }
                                                if (v2_45 < v3_39.length) {
                                                    System.arraycopy(v12_0.zzava, (v2_45 + 1), v3_39, v2_45, (v3_39.length - v2_45));
                                                }
                                                v12_0.zzava = v3_39;
                                                break;
                                            }
                                        }
                                    }
                                    if ((!com.google.android.gms.internal.measurement.zzkd.zzcg(v12_0.name)) || ((v19_1 == 0) || (this.zzjh().zza(this.zzld(), v21.zzasp.zzth, 0, 0, 1, 0, 0).zzagv <= ((long) this.zzacv.zzgk().zzb(v21.zzasp.zzth, com.google.android.gms.internal.measurement.zzez.zzair))))) {
                                        v5_32 = v17;
                                    } else {
                                        this.zzacv.zzgi().zziy().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                        String v4_57 = 0;
                                        com.google.android.gms.internal.measurement.zzet v3_43 = 0;
                                        int v6_24 = v12_0.zzava;
                                        int v5_30 = 0;
                                        while (v5_30 < v6_24.length) {
                                            com.google.android.gms.internal.measurement.zzet v3_48;
                                            com.google.android.gms.internal.measurement.zzet v2_80 = v6_24[v5_30];
                                            if (!"_c".equals(v2_80.name)) {
                                                if (!"_err".equals(v2_80.name)) {
                                                    v2_80 = v3_43;
                                                    v3_48 = v4_57;
                                                } else {
                                                    v3_48 = 1;
                                                    v2_80 = v3_43;
                                                }
                                            } else {
                                                v3_48 = v4_57;
                                            }
                                            v5_30++;
                                            v4_57 = v3_48;
                                            v3_43 = v2_80;
                                        }
                                        if ((v4_57 == null) || (v3_43 == null)) {
                                            if (v3_43 == null) {
                                                this.zzacv.zzgi().zziv().zzg("Did not find conversion parameter. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                            } else {
                                                v3_43.name = "_err";
                                                v3_43.zzave = Long.valueOf(10);
                                                v5_32 = v17;
                                            }
                                        } else {
                                            com.google.android.gms.internal.measurement.zzet v2_61 = v12_0.zzava;
                                            String v4_65 = new com.google.android.gms.internal.measurement.zzks[1];
                                            v4_65[0] = v3_43;
                                            v12_0.zzava = ((com.google.android.gms.internal.measurement.zzks[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v2_61, v4_65));
                                            v5_32 = v17;
                                        }
                                    }
                                } else {
                                    this.zzjf();
                                    com.google.android.gms.internal.measurement.zzet v3_14 = v12_0.name;
                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_14);
                                    com.google.android.gms.internal.measurement.zzet v2_26 = -1;
                                    switch (v3_14.hashCode()) {
                                        case 94660:
                                            if (!v3_14.equals("_in")) {
                                            } else {
                                                v2_26 = 0;
                                            }
                                            break;
                                        case 95025:
                                            if (!v3_14.equals("_ug")) {
                                            } else {
                                                v2_26 = 2;
                                            }
                                            break;
                                        case 95027:
                                            if (!v3_14.equals("_ui")) {
                                            } else {
                                                v2_26 = 1;
                                            }
                                            break;
                                    }
                                    com.google.android.gms.internal.measurement.zzet v2_27;
                                    switch (v2_26) {
                                        case 0:
                                        case 1:
                                        case 2:
                                            v2_27 = 1;
                                            break;
                                        default:
                                            v2_27 = 0;
                                    }
                                    if (v2_27 == null) {
                                    }
                                }
                                if ((v18_1 == null) || (!"_e".equals(v12_0.name))) {
                                    v2_66 = v14_1;
                                } else {
                                    if ((v12_0.zzava != null) && (v12_0.zzava.length != 0)) {
                                        this.zzjf();
                                        com.google.android.gms.internal.measurement.zzet v2_72 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v12_0, "_et"));
                                        if (v2_72 != null) {
                                            v2_66 = (v14_1 + v2_72.longValue());
                                        } else {
                                            this.zzacv.zzgi().zziy().zzg("Engagement event does not include duration. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                            v2_66 = v14_1;
                                        }
                                    } else {
                                        this.zzacv.zzgi().zziy().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                        v2_66 = v14_1;
                                    }
                                }
                                v4_72 = (v13_1 + 1);
                                v22.zzavi[v13_1] = v12_0;
                            } else {
                                com.google.android.gms.internal.measurement.zzet v2_94;
                                this.zzacv.zzgi().zziy().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth), this.zzacv.zzgf().zzbm(v12_0.name));
                                if ((!this.zzky().zzcb(v21.zzasp.zzth)) && (!this.zzky().zzcc(v21.zzasp.zzth))) {
                                    v2_94 = 0;
                                } else {
                                    v2_94 = 1;
                                }
                                if ((v2_94 != null) || ("_err".equals(v12_0.name))) {
                                    v2_66 = v14_1;
                                    v4_72 = v13_1;
                                    v5_32 = v17;
                                } else {
                                    this.zzacv.zzgg().zza(v21.zzasp.zzth, 11, "_ev", v12_0.name, 0);
                                    v2_66 = v14_1;
                                    v4_72 = v13_1;
                                    v5_32 = v17;
                                }
                            }
                            v16_1++;
                            v14_1 = v2_66;
                            v13_1 = v4_72;
                            v17 = v5_32;
                        }
                        if (v13_1 < v21.zzasr.size()) {
                            v22.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v22.zzavi, v13_1));
                        }
                        if (v18_1 != null) {
                            String v4_96;
                            long v8_21 = this.zzjh().zzh(v22.zzth, "_lte");
                            if ((v8_21 != 0) && (v8_21.value != null)) {
                                v4_96 = new com.google.android.gms.internal.measurement.zzkc(v22.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf((((Long) v8_21.value).longValue() + v14_1)));
                            } else {
                                v4_96 = new com.google.android.gms.internal.measurement.zzkc(v22.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf(v14_1));
                            }
                            int v5_57 = new com.google.android.gms.internal.measurement.zzkx();
                            v5_57.name = "_lte";
                            v5_57.zzaws = Long.valueOf(this.zzacv.zzbt().currentTimeMillis());
                            v5_57.zzave = ((Long) v4_96.value);
                            com.google.android.gms.internal.measurement.zzet v2_153 = 0;
                            com.google.android.gms.internal.measurement.zzet v3_84 = 0;
                            while (v3_84 < v22.zzavj.length) {
                                if (!"_lte".equals(v22.zzavj[v3_84].name)) {
                                    v3_84++;
                                } else {
                                    v22.zzavj[v3_84] = v5_57;
                                    v2_153 = 1;
                                    break;
                                }
                            }
                            if (v2_153 == null) {
                                v22.zzavj = ((com.google.android.gms.internal.measurement.zzkx[]) java.util.Arrays.copyOf(v22.zzavj, (v22.zzavj.length + 1)));
                                v22.zzavj[(v21.zzasp.zzavj.length - 1)] = v5_57;
                            }
                            if (v14_1 > 0) {
                                this.zzjh().zza(v4_96);
                                this.zzacv.zzgi().zzjb().zzg("Updated lifetime engagement user property with value. Value", v4_96.value);
                            }
                        }
                        v22.zzawa = this.zza(v22.zzth, v22.zzavj, v22.zzavi);
                        if (this.zzacv.zzgk().zzav(v21.zzasp.zzth)) {
                            java.util.HashMap v23_1 = new java.util.HashMap();
                            java.util.HashMap v0_96 = new com.google.android.gms.internal.measurement.zzkr[v22.zzavi.length];
                            com.google.android.gms.internal.measurement.zzkr[] v24 = v0_96;
                            Boolean v18_0 = 0;
                            java.security.SecureRandom v25 = this.zzacv.zzgg().zzlo();
                            com.google.android.gms.internal.measurement.zzkr[] v26 = v22.zzavi;
                            int v27 = v26.length;
                            int v19_0 = 0;
                            while (v19_0 < v27) {
                                com.google.android.gms.internal.measurement.zzet v2_3;
                                com.google.android.gms.internal.measurement.zzkr v28 = v26[v19_0];
                                if (!v28.name.equals("_ep")) {
                                    com.google.android.gms.internal.measurement.zzet v3_119;
                                    int v5_75 = Long.valueOf(1);
                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v5_75 != 0)) {
                                        int v6_61 = v28.zzava;
                                        com.google.android.gms.internal.measurement.zzet v3_118 = 0;
                                        while (v3_118 < v6_61.length) {
                                            long v8_35 = v6_61[v3_118];
                                            if (!"_dbg".equals(v8_35.name)) {
                                                v3_118++;
                                            } else {
                                                if (((!(v5_75 instanceof Long)) || (!v5_75.equals(v8_35.zzave))) && (((!(v5_75 instanceof String)) || (!v5_75.equals(v8_35.zzale))) && ((!(v5_75 instanceof Double)) || (!v5_75.equals(v8_35.zzasw))))) {
                                                    v3_119 = 0;
                                                } else {
                                                    v3_119 = 1;
                                                }
                                            }
                                        }
                                        v3_119 = 0;
                                    } else {
                                        v3_119 = 0;
                                    }
                                    int v20;
                                    if (v3_119 != null) {
                                        v20 = 1;
                                    } else {
                                        v20 = this.zzky().zzp(v21.zzasp.zzth, v28.name);
                                    }
                                    if (v20 > 0) {
                                        com.google.android.gms.internal.measurement.zzet v3_0;
                                        com.google.android.gms.internal.measurement.zzet v2_245 = ((com.google.android.gms.internal.measurement.zzet) v23_1.get(v28.name));
                                        if (v2_245 != null) {
                                            v3_0 = v2_245;
                                        } else {
                                            v3_0 = this.zzjh().zzf(v21.zzasp.zzth, v28.name);
                                            if (v3_0 == null) {
                                                this.zzacv.zzgi().zziy().zze("Event being bundled has no eventAggregate. appId, eventName", v21.zzasp.zzth, v28.name);
                                                v3_0 = new com.google.android.gms.internal.measurement.zzet(v21.zzasp.zzth, v28.name, 1, 1, v28.zzavb.longValue(), 0, 0, 0, 0);
                                            }
                                        }
                                        String v4_130;
                                        this.zzjf();
                                        com.google.android.gms.internal.measurement.zzet v2_254 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v28, "_eid"));
                                        if (v2_254 == null) {
                                            v4_130 = 0;
                                        } else {
                                            v4_130 = 1;
                                        }
                                        String v4_131 = Boolean.valueOf(v4_130);
                                        if (v20 != 1) {
                                            if (v25.nextInt(v20) != 0) {
                                                if (Math.abs((v28.zzavb.longValue() - v3_0.zzahk)) < 86400000) {
                                                    if (!v4_131.booleanValue()) {
                                                        v2_3 = v18_0;
                                                    } else {
                                                        v23_1.put(v28.name, v3_0.zza(v2_254, 0, 0));
                                                    }
                                                } else {
                                                    this.zzjf();
                                                    v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_efs", Long.valueOf(1));
                                                    this.zzjf();
                                                    v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_sr", Long.valueOf(((long) v20)));
                                                    v2_3 = (v18_0 + 1);
                                                    v24[v18_0] = v28;
                                                    if (v4_131.booleanValue()) {
                                                        v3_0 = v3_0.zza(0, Long.valueOf(((long) v20)), Boolean.valueOf(1));
                                                    }
                                                    v23_1.put(v28.name, v3_0.zzai(v28.zzavb.longValue()));
                                                }
                                            } else {
                                                this.zzjf();
                                                v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_sr", Long.valueOf(((long) v20)));
                                                v2_3 = (v18_0 + 1);
                                                v24[v18_0] = v28;
                                                if (v4_131.booleanValue()) {
                                                    v3_0 = v3_0.zza(0, Long.valueOf(((long) v20)), 0);
                                                }
                                                v23_1.put(v28.name, v3_0.zzai(v28.zzavb.longValue()));
                                            }
                                        } else {
                                            v2_3 = (v18_0 + 1);
                                            v24[v18_0] = v28;
                                            if ((v4_131.booleanValue()) && ((v3_0.zzahl != null) || ((v3_0.zzahm != null) || (v3_0.zzahn != null)))) {
                                                v23_1.put(v28.name, v3_0.zza(0, 0, 0));
                                            }
                                        }
                                    } else {
                                        this.zzacv.zzgi().zziy().zze("Sample rate must be positive. event, rate", v28.name, Integer.valueOf(v20));
                                        v2_3 = (v18_0 + 1);
                                        v24[v18_0] = v28;
                                    }
                                } else {
                                    this.zzjf();
                                    com.google.android.gms.internal.measurement.zzet v2_10 = ((String) com.google.android.gms.internal.measurement.zzjz.zzb(v28, "_en"));
                                    com.google.android.gms.internal.measurement.zzet v3_6 = ((com.google.android.gms.internal.measurement.zzet) v23_1.get(v2_10));
                                    if (v3_6 == null) {
                                        v3_6 = this.zzjh().zzf(v21.zzasp.zzth, v2_10);
                                        v23_1.put(v2_10, v3_6);
                                    }
                                    if (v3_6.zzahl != null) {
                                    } else {
                                        if (v3_6.zzahm.longValue() > 1) {
                                            this.zzjf();
                                            v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_sr", v3_6.zzahm);
                                        }
                                        if ((v3_6.zzahn != null) && (v3_6.zzahn.booleanValue())) {
                                            this.zzjf();
                                            v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_efs", Long.valueOf(1));
                                        }
                                        v2_3 = (v18_0 + 1);
                                        v24[v18_0] = v28;
                                    }
                                }
                                v19_0++;
                                v18_0 = v2_3;
                            }
                            if (v18_0 < v22.zzavi.length) {
                                v22.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v24, v18_0));
                            }
                            com.google.android.gms.internal.measurement.zzet v3_96 = v23_1.entrySet().iterator();
                            while (v3_96.hasNext()) {
                                this.zzjh().zza(((com.google.android.gms.internal.measurement.zzet) ((java.util.Map$Entry) v3_96.next()).getValue()));
                            }
                        }
                        v22.zzavl = Long.valueOf(nan);
                        v22.zzavm = Long.valueOf(-0.0);
                        com.google.android.gms.internal.measurement.zzet v2_185 = 0;
                        while (v2_185 < v22.zzavi.length) {
                            com.google.android.gms.internal.measurement.zzet v3_114 = v22.zzavi[v2_185];
                            if (v3_114.zzavb.longValue() < v22.zzavl.longValue()) {
                                v22.zzavl = v3_114.zzavb;
                            }
                            if (v3_114.zzavb.longValue() > v22.zzavm.longValue()) {
                                v22.zzavm = v3_114.zzavb;
                            }
                            v2_185++;
                        }
                        int v6_54 = v21.zzasp.zzth;
                        int v7_31 = this.zzjh().zzbf(v6_54);
                        if (v7_31 != 0) {
                            if (v22.zzavi.length > 0) {
                                String v4_102;
                                com.google.android.gms.internal.measurement.zzet v2_190 = v7_31.zzgt();
                                if (v2_190 == 0) {
                                    v4_102 = 0;
                                } else {
                                    v4_102 = Long.valueOf(v2_190);
                                }
                                v22.zzavo = v4_102;
                                String v4_103 = v7_31.zzgs();
                                if (v4_103 != 0) {
                                    v2_190 = v4_103;
                                }
                                com.google.android.gms.internal.measurement.zzet v2_191;
                                if (v2_190 == 0) {
                                    v2_191 = 0;
                                } else {
                                    v2_191 = Long.valueOf(v2_190);
                                }
                                v22.zzavn = v2_191;
                                v7_31.zzhb();
                                v22.zzavy = Integer.valueOf(((int) v7_31.zzgy()));
                                v7_31.zzr(v22.zzavl.longValue());
                                v7_31.zzs(v22.zzavm.longValue());
                                v22.zzafy = v7_31.zzhj();
                                this.zzjh().zza(v7_31);
                            }
                        } else {
                            this.zzacv.zzgi().zziv().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                        }
                        if (v22.zzavi.length > 0) {
                            this.zzacv.zzgl();
                            com.google.android.gms.internal.measurement.zzet v2_208 = this.zzky().zzbx(v21.zzasp.zzth);
                            if ((v2_208 != null) && (v2_208.zzaum != null)) {
                                v22.zzawf = v2_208.zzaum;
                            } else {
                                if (!android.text.TextUtils.isEmpty(v21.zzasp.zzafa)) {
                                    this.zzacv.zzgi().zziy().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                } else {
                                    v22.zzawf = Long.valueOf(-1);
                                }
                            }
                            this.zzjh().zza(v22, v17);
                        }
                        String v4_112 = this.zzjh();
                        int v5_65 = v21.zzasq;
                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v5_65);
                        v4_112.zzab();
                        v4_112.zzch();
                        int v7_34 = new StringBuilder("rowid in (");
                        com.google.android.gms.internal.measurement.zzet v3_105 = 0;
                        while (v3_105 < v5_65.size()) {
                            if (v3_105 != null) {
                                v7_34.append(",");
                            }
                            v7_34.append(((Long) v5_65.get(v3_105)).longValue());
                            v3_105++;
                        }
                        v7_34.append(")");
                        com.google.android.gms.internal.measurement.zzet v2_224 = v4_112.getWritableDatabase().delete("raw_events", v7_34.toString(), 0);
                        if (v2_224 != v5_65.size()) {
                            v4_112.zzgi().zziv().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v2_224), Integer.valueOf(v5_65.size()));
                        }
                        com.google.android.gms.internal.measurement.zzet v3_110 = this.zzjh();
                        com.google.android.gms.internal.measurement.zzet v2_226 = v3_110.getWritableDatabase();
                        try {
                            int v5_70 = new String[2];
                            v5_70[0] = v6_54;
                            v5_70[1] = v6_54;
                            v2_226.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_70);
                        } catch (com.google.android.gms.internal.measurement.zzet v2_227) {
                            v3_110.zzgi().zziv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v6_54), v2_227);
                        }
                        this.zzjh().setTransactionSuccessful();
                        this.zzjh().endTransaction();
                        v2_125 = 1;
                    }
                    return v2_125;
                } else {
                    v3_64.close();
                }
            }
            if (!android.text.TextUtils.isEmpty(0)) {
                int v6_41;
                if (v16_0 == -1) {
                    int v5_48 = new String[1];
                    v5_48[0] = 0;
                    v6_41 = v5_48;
                } else {
                    int v5_53 = new String[2];
                    v5_53[0] = 0;
                    v5_53[1] = String.valueOf(v16_0);
                    v6_41 = v5_53;
                }
                int v5_59;
                if (v16_0 == -1) {
                    v5_59 = "";
                } else {
                    v5_59 = " and rowid <= ?";
                }
                com.google.android.gms.internal.measurement.zzet v3_100 = v2_101.rawQuery(new StringBuilder((String.valueOf(v5_59).length() + 84)).append("select metadata_fingerprint from raw_events where app_id = ?").append(v5_59).append(" order by rowid limit 1;").toString(), v6_41);
                if (v3_100.moveToFirst()) {
                    int v5_66 = v3_100.getString(0);
                    v3_100.close();
                    v13_0 = v5_66;
                    v12_1 = 0;
                } else {
                    if (v3_100 == null) {
                    } else {
                        v3_100.close();
                    }
                }
            } else {
                int v6_63;
                if (v16_0 == -1) {
                    int v5_74 = new String[1];
                    v5_74[0] = String.valueOf(p32);
                    v6_63 = v5_74;
                } else {
                    int v5_77 = new String[2];
                    v5_77[0] = String.valueOf(v16_0);
                    v5_77[1] = String.valueOf(p32);
                    v6_63 = v5_77;
                }
                int v5_4;
                if (v16_0 == -1) {
                    v5_4 = "";
                } else {
                    v5_4 = "rowid <= ? and ";
                }
                com.google.android.gms.internal.measurement.zzet v3_19 = v2_101.rawQuery(new StringBuilder((String.valueOf(v5_4).length() + 148)).append("select app_id, metadata_fingerprint from raw_events where ").append(v5_4).append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;").toString(), v6_63);
                if (v3_19.moveToFirst()) {
                    String v4_42 = v3_19.getString(0);
                    int v5_25 = v3_19.getString(1);
                    v3_19.close();
                    v13_0 = v5_25;
                    v12_1 = v4_42;
                } else {
                    if (v3_19 == null) {
                    } else {
                        v3_19.close();
                    }
                }
            }
            try {
                String v4_59 = new String[1];
                v4_59[0] = "metadata";
                int v6_27 = new String[2];
                v6_27[0] = v12_1;
                v6_27[1] = v13_0;
                int v11_2 = v2_101.query("raw_events_metadata", v4_59, "app_id = ? and metadata_fingerprint = ?", v6_27, 0, 0, "rowid", "2");
            } catch (com.google.android.gms.internal.measurement.zzet v2_102) {
                v3_64 = v11_2;
                if (v3_64 != null) {
                    v3_64.close();
                }
                throw v2_102;
            } catch (com.google.android.gms.internal.measurement.zzet v2_4) {
                v3_64 = v11_2;
                v4_0 = v12_1;
            }
            if (v11_2.moveToFirst()) {
                com.google.android.gms.internal.measurement.zzet v3_62 = v11_2.getBlob(0);
                com.google.android.gms.internal.measurement.zzet v3_63 = com.google.android.gms.internal.measurement.zzaca.zza(v3_62, 0, v3_62.length);
                String v4_82 = new com.google.android.gms.internal.measurement.zzku();
                try {
                    v4_82.zzb(v3_63);
                } catch (com.google.android.gms.internal.measurement.zzet v2_100) {
                    v14_2.zzgi().zziv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1), v2_100);
                    if (v11_2 == 0) {
                    } else {
                        v11_2.close();
                    }
                }
                if (v11_2.moveToNext()) {
                    v14_2.zzgi().zziy().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1));
                }
                int v6_33;
                int v5_42;
                v11_2.close();
                v21.zzb(v4_82);
                if (v16_0 == -1) {
                    v5_42 = "app_id = ? and metadata_fingerprint = ?";
                    v6_33 = new String[2];
                    v6_33[0] = v12_1;
                    v6_33[1] = v13_0;
                } else {
                    v5_42 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                    v6_33 = new String[3];
                    v6_33[0] = v12_1;
                    v6_33[1] = v13_0;
                    v6_33[2] = String.valueOf(v16_0);
                }
                String v4_87 = new String[4];
                v4_87[0] = "rowid";
                v4_87[1] = "name";
                v4_87[2] = "timestamp";
                v4_87[3] = "data";
                v3_64 = v2_101.query("raw_events", v4_87, v5_42, v6_33, 0, 0, "rowid", 0);
                try {
                    if (!v3_64.moveToFirst()) {
                        v14_2.zzgi().zziy().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1));
                        if (v3_64 == null) {
                        } else {
                            v3_64.close();
                        }
                    }
                } catch (com.google.android.gms.internal.measurement.zzet v2_4) {
                    v4_0 = v12_1;
                }
                do {
                    String v4_88 = v3_64.getLong(0);
                    com.google.android.gms.internal.measurement.zzet v2_106 = v3_64.getBlob(3);
                    com.google.android.gms.internal.measurement.zzet v2_107 = com.google.android.gms.internal.measurement.zzaca.zza(v2_106, 0, v2_106.length);
                    int v6_37 = new com.google.android.gms.internal.measurement.zzkr();
                    v6_37.zzb(v2_107);
                    v6_37.name = v3_64.getString(1);
                    v6_37.zzavb = Long.valueOf(v3_64.getLong(2));
                    if (v21.zza(v4_88, v6_37)) {
                    } else {
                        if (v3_64 == null) {
                        } else {
                            v3_64.close();
                        }
                    }
                } while(v3_64.moveToNext());
                if (v3_64 == null) {
                } else {
                    v3_64.close();
                }
            } else {
                v14_2.zzgi().zziv().zzg("Raw event metadata record is missing. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1));
                if (v11_2 == 0) {
                } else {
                    v11_2.close();
                }
            }
        } catch (com.google.android.gms.internal.measurement.zzet v2_97) {
            this.zzjh().endTransaction();
            throw v2_97;
        }
    }

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


    private final boolean zzd(String p31, long p32)
    {
        this.zzjh().beginTransaction();
        try {
            com.google.android.gms.internal.measurement.zzjt$zza v21 = new com.google.android.gms.internal.measurement.zzjt$zza;
            v21(this, 0);
            int v14_2 = this.zzjh();
            String v4_0 = 0;
            int v16_0 = this.zzasl;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v21);
            v14_2.zzab();
            v14_2.zzch();
            com.google.android.gms.internal.measurement.zzet v3_64 = 0;
            try {
                String v13_0;
                long v12_1;
                com.google.android.gms.internal.measurement.zzet v2_101 = v14_2.getWritableDatabase();
            } catch (com.google.android.gms.internal.measurement.zzet v2_4) {
                v14_2.zzgi().zziv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v4_0), v2_4);
                if (v3_64 == null) {
                    if ((v21.zzasr != null) && (!v21.zzasr.isEmpty())) {
                        com.google.android.gms.internal.measurement.zzet v2_122 = 0;
                    } else {
                        v2_122 = 1;
                    }
                    com.google.android.gms.internal.measurement.zzet v2_125;
                    if (v2_122 != null) {
                        this.zzjh().setTransactionSuccessful();
                        this.zzjh().endTransaction();
                        v2_125 = 0;
                    } else {
                        int v17 = 0;
                        com.google.android.gms.internal.measurement.zzku v22 = v21.zzasp;
                        com.google.android.gms.internal.measurement.zzet v2_128 = new com.google.android.gms.internal.measurement.zzkr[v21.zzasr.size()];
                        v22.zzavi = v2_128;
                        String v13_1 = 0;
                        int v14_1 = 0;
                        Boolean v18_1 = this.zzacv.zzgk().zzaw(v22.zzth);
                        int v16_1 = 0;
                        while (v16_1 < v21.zzasr.size()) {
                            int v5_32;
                            com.google.android.gms.internal.measurement.zzet v2_66;
                            String v4_72;
                            long v12_0 = ((com.google.android.gms.internal.measurement.zzkr) v21.zzasr.get(v16_1));
                            if (!this.zzky().zzn(v21.zzasp.zzth, v12_0.name)) {
                                int v19_1 = this.zzky().zzo(v21.zzasp.zzth, v12_0.name);
                                if (v19_1 != 0) {
                                    String v4_25 = 0;
                                    com.google.android.gms.internal.measurement.zzet v3_18 = 0;
                                    if (v12_0.zzava == null) {
                                        com.google.android.gms.internal.measurement.zzet v2_30 = new com.google.android.gms.internal.measurement.zzks[0];
                                        v12_0.zzava = v2_30;
                                    }
                                    int v6_11 = v12_0.zzava;
                                    int v7_6 = v6_11.length;
                                    int v5_12 = 0;
                                    while (v5_12 < v7_6) {
                                        com.google.android.gms.internal.measurement.zzet v2_85;
                                        com.google.android.gms.internal.measurement.zzet v3_49;
                                        com.google.android.gms.internal.measurement.zzet v2_84 = v6_11[v5_12];
                                        if (!"_c".equals(v2_84.name)) {
                                            if (!"_r".equals(v2_84.name)) {
                                                v2_85 = v3_18;
                                                v3_49 = v4_25;
                                            } else {
                                                v2_84.zzave = Long.valueOf(1);
                                                v2_85 = 1;
                                                v3_49 = v4_25;
                                            }
                                        } else {
                                            v2_84.zzave = Long.valueOf(1);
                                            v3_49 = 1;
                                            v2_85 = v3_18;
                                        }
                                        v5_12++;
                                        v4_25 = v3_49;
                                        v3_18 = v2_85;
                                    }
                                    if ((v4_25 == null) && (v19_1 != 0)) {
                                        this.zzacv.zzgi().zzjc().zzg("Marking event as conversion", this.zzacv.zzgf().zzbm(v12_0.name));
                                        com.google.android.gms.internal.measurement.zzet v2_37 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v12_0.zzava, (v12_0.zzava.length + 1)));
                                        String v4_31 = new com.google.android.gms.internal.measurement.zzks();
                                        v4_31.name = "_c";
                                        v4_31.zzave = Long.valueOf(1);
                                        v2_37[(v2_37.length - 1)] = v4_31;
                                        v12_0.zzava = v2_37;
                                    }
                                    if (v3_18 == null) {
                                        this.zzacv.zzgi().zzjc().zzg("Marking event as real-time", this.zzacv.zzgf().zzbm(v12_0.name));
                                        com.google.android.gms.internal.measurement.zzet v2_43 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v12_0.zzava, (v12_0.zzava.length + 1)));
                                        com.google.android.gms.internal.measurement.zzet v3_25 = new com.google.android.gms.internal.measurement.zzks();
                                        v3_25.name = "_r";
                                        v3_25.zzave = Long.valueOf(1);
                                        v2_43[(v2_43.length - 1)] = v3_25;
                                        v12_0.zzava = v2_43;
                                    }
                                    if (this.zzjh().zza(this.zzld(), v21.zzasp.zzth, 0, 0, 0, 0, 1).zzagx <= ((long) this.zzacv.zzgk().zzas(v21.zzasp.zzth))) {
                                        v17 = 1;
                                    } else {
                                        com.google.android.gms.internal.measurement.zzet v2_45 = 0;
                                        while (v2_45 < v12_0.zzava.length) {
                                            if (!"_r".equals(v12_0.zzava[v2_45].name)) {
                                                v2_45++;
                                            } else {
                                                com.google.android.gms.internal.measurement.zzet v3_39 = new com.google.android.gms.internal.measurement.zzks[(v12_0.zzava.length - 1)];
                                                if (v2_45 > null) {
                                                    System.arraycopy(v12_0.zzava, 0, v3_39, 0, v2_45);
                                                }
                                                if (v2_45 < v3_39.length) {
                                                    System.arraycopy(v12_0.zzava, (v2_45 + 1), v3_39, v2_45, (v3_39.length - v2_45));
                                                }
                                                v12_0.zzava = v3_39;
                                                break;
                                            }
                                        }
                                    }
                                    if ((!com.google.android.gms.internal.measurement.zzkd.zzcg(v12_0.name)) || ((v19_1 == 0) || (this.zzjh().zza(this.zzld(), v21.zzasp.zzth, 0, 0, 1, 0, 0).zzagv <= ((long) this.zzacv.zzgk().zzb(v21.zzasp.zzth, com.google.android.gms.internal.measurement.zzez.zzair))))) {
                                        v5_32 = v17;
                                    } else {
                                        this.zzacv.zzgi().zziy().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                        String v4_57 = 0;
                                        com.google.android.gms.internal.measurement.zzet v3_43 = 0;
                                        int v6_24 = v12_0.zzava;
                                        int v5_30 = 0;
                                        while (v5_30 < v6_24.length) {
                                            com.google.android.gms.internal.measurement.zzet v3_48;
                                            com.google.android.gms.internal.measurement.zzet v2_80 = v6_24[v5_30];
                                            if (!"_c".equals(v2_80.name)) {
                                                if (!"_err".equals(v2_80.name)) {
                                                    v2_80 = v3_43;
                                                    v3_48 = v4_57;
                                                } else {
                                                    v3_48 = 1;
                                                    v2_80 = v3_43;
                                                }
                                            } else {
                                                v3_48 = v4_57;
                                            }
                                            v5_30++;
                                            v4_57 = v3_48;
                                            v3_43 = v2_80;
                                        }
                                        if ((v4_57 == null) || (v3_43 == null)) {
                                            if (v3_43 == null) {
                                                this.zzacv.zzgi().zziv().zzg("Did not find conversion parameter. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                            } else {
                                                v3_43.name = "_err";
                                                v3_43.zzave = Long.valueOf(10);
                                                v5_32 = v17;
                                            }
                                        } else {
                                            com.google.android.gms.internal.measurement.zzet v2_61 = v12_0.zzava;
                                            String v4_65 = new com.google.android.gms.internal.measurement.zzks[1];
                                            v4_65[0] = v3_43;
                                            v12_0.zzava = ((com.google.android.gms.internal.measurement.zzks[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v2_61, v4_65));
                                            v5_32 = v17;
                                        }
                                    }
                                } else {
                                    this.zzjf();
                                    com.google.android.gms.internal.measurement.zzet v3_14 = v12_0.name;
                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_14);
                                    com.google.android.gms.internal.measurement.zzet v2_26 = -1;
                                    switch (v3_14.hashCode()) {
                                        case 94660:
                                            if (!v3_14.equals("_in")) {
                                            } else {
                                                v2_26 = 0;
                                            }
                                            break;
                                        case 95025:
                                            if (!v3_14.equals("_ug")) {
                                            } else {
                                                v2_26 = 2;
                                            }
                                            break;
                                        case 95027:
                                            if (!v3_14.equals("_ui")) {
                                            } else {
                                                v2_26 = 1;
                                            }
                                            break;
                                    }
                                    com.google.android.gms.internal.measurement.zzet v2_27;
                                    switch (v2_26) {
                                        case 0:
                                        case 1:
                                        case 2:
                                            v2_27 = 1;
                                            break;
                                        default:
                                            v2_27 = 0;
                                    }
                                    if (v2_27 == null) {
                                    }
                                }
                                if ((v18_1 == null) || (!"_e".equals(v12_0.name))) {
                                    v2_66 = v14_1;
                                } else {
                                    if ((v12_0.zzava != null) && (v12_0.zzava.length != 0)) {
                                        this.zzjf();
                                        com.google.android.gms.internal.measurement.zzet v2_72 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v12_0, "_et"));
                                        if (v2_72 != null) {
                                            v2_66 = (v14_1 + v2_72.longValue());
                                        } else {
                                            this.zzacv.zzgi().zziy().zzg("Engagement event does not include duration. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                            v2_66 = v14_1;
                                        }
                                    } else {
                                        this.zzacv.zzgi().zziy().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                        v2_66 = v14_1;
                                    }
                                }
                                v4_72 = (v13_1 + 1);
                                v22.zzavi[v13_1] = v12_0;
                            } else {
                                com.google.android.gms.internal.measurement.zzet v2_94;
                                this.zzacv.zzgi().zziy().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth), this.zzacv.zzgf().zzbm(v12_0.name));
                                if ((!this.zzky().zzcb(v21.zzasp.zzth)) && (!this.zzky().zzcc(v21.zzasp.zzth))) {
                                    v2_94 = 0;
                                } else {
                                    v2_94 = 1;
                                }
                                if ((v2_94 != null) || ("_err".equals(v12_0.name))) {
                                    v2_66 = v14_1;
                                    v4_72 = v13_1;
                                    v5_32 = v17;
                                } else {
                                    this.zzacv.zzgg().zza(v21.zzasp.zzth, 11, "_ev", v12_0.name, 0);
                                    v2_66 = v14_1;
                                    v4_72 = v13_1;
                                    v5_32 = v17;
                                }
                            }
                            v16_1++;
                            v14_1 = v2_66;
                            v13_1 = v4_72;
                            v17 = v5_32;
                        }
                        if (v13_1 < v21.zzasr.size()) {
                            v22.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v22.zzavi, v13_1));
                        }
                        if (v18_1 != null) {
                            String v4_96;
                            long v8_21 = this.zzjh().zzh(v22.zzth, "_lte");
                            if ((v8_21 != 0) && (v8_21.value != null)) {
                                v4_96 = new com.google.android.gms.internal.measurement.zzkc(v22.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf((((Long) v8_21.value).longValue() + v14_1)));
                            } else {
                                v4_96 = new com.google.android.gms.internal.measurement.zzkc(v22.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf(v14_1));
                            }
                            int v5_57 = new com.google.android.gms.internal.measurement.zzkx();
                            v5_57.name = "_lte";
                            v5_57.zzaws = Long.valueOf(this.zzacv.zzbt().currentTimeMillis());
                            v5_57.zzave = ((Long) v4_96.value);
                            com.google.android.gms.internal.measurement.zzet v2_153 = 0;
                            com.google.android.gms.internal.measurement.zzet v3_84 = 0;
                            while (v3_84 < v22.zzavj.length) {
                                if (!"_lte".equals(v22.zzavj[v3_84].name)) {
                                    v3_84++;
                                } else {
                                    v22.zzavj[v3_84] = v5_57;
                                    v2_153 = 1;
                                    break;
                                }
                            }
                            if (v2_153 == null) {
                                v22.zzavj = ((com.google.android.gms.internal.measurement.zzkx[]) java.util.Arrays.copyOf(v22.zzavj, (v22.zzavj.length + 1)));
                                v22.zzavj[(v21.zzasp.zzavj.length - 1)] = v5_57;
                            }
                            if (v14_1 > 0) {
                                this.zzjh().zza(v4_96);
                                this.zzacv.zzgi().zzjb().zzg("Updated lifetime engagement user property with value. Value", v4_96.value);
                            }
                        }
                        v22.zzawa = this.zza(v22.zzth, v22.zzavj, v22.zzavi);
                        if (this.zzacv.zzgk().zzav(v21.zzasp.zzth)) {
                            java.util.HashMap v23_1 = new java.util.HashMap();
                            java.util.HashMap v0_96 = new com.google.android.gms.internal.measurement.zzkr[v22.zzavi.length];
                            com.google.android.gms.internal.measurement.zzkr[] v24 = v0_96;
                            Boolean v18_0 = 0;
                            java.security.SecureRandom v25 = this.zzacv.zzgg().zzlo();
                            com.google.android.gms.internal.measurement.zzkr[] v26 = v22.zzavi;
                            int v27 = v26.length;
                            int v19_0 = 0;
                            while (v19_0 < v27) {
                                com.google.android.gms.internal.measurement.zzet v2_3;
                                com.google.android.gms.internal.measurement.zzkr v28 = v26[v19_0];
                                if (!v28.name.equals("_ep")) {
                                    com.google.android.gms.internal.measurement.zzet v3_119;
                                    int v5_75 = Long.valueOf(1);
                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v5_75 != 0)) {
                                        int v6_61 = v28.zzava;
                                        com.google.android.gms.internal.measurement.zzet v3_118 = 0;
                                        while (v3_118 < v6_61.length) {
                                            long v8_35 = v6_61[v3_118];
                                            if (!"_dbg".equals(v8_35.name)) {
                                                v3_118++;
                                            } else {
                                                if (((!(v5_75 instanceof Long)) || (!v5_75.equals(v8_35.zzave))) && (((!(v5_75 instanceof String)) || (!v5_75.equals(v8_35.zzale))) && ((!(v5_75 instanceof Double)) || (!v5_75.equals(v8_35.zzasw))))) {
                                                    v3_119 = 0;
                                                } else {
                                                    v3_119 = 1;
                                                }
                                            }
                                        }
                                        v3_119 = 0;
                                    } else {
                                        v3_119 = 0;
                                    }
                                    int v20;
                                    if (v3_119 != null) {
                                        v20 = 1;
                                    } else {
                                        v20 = this.zzky().zzp(v21.zzasp.zzth, v28.name);
                                    }
                                    if (v20 > 0) {
                                        com.google.android.gms.internal.measurement.zzet v3_0;
                                        com.google.android.gms.internal.measurement.zzet v2_245 = ((com.google.android.gms.internal.measurement.zzet) v23_1.get(v28.name));
                                        if (v2_245 != null) {
                                            v3_0 = v2_245;
                                        } else {
                                            v3_0 = this.zzjh().zzf(v21.zzasp.zzth, v28.name);
                                            if (v3_0 == null) {
                                                this.zzacv.zzgi().zziy().zze("Event being bundled has no eventAggregate. appId, eventName", v21.zzasp.zzth, v28.name);
                                                v3_0 = new com.google.android.gms.internal.measurement.zzet(v21.zzasp.zzth, v28.name, 1, 1, v28.zzavb.longValue(), 0, 0, 0, 0);
                                            }
                                        }
                                        String v4_130;
                                        this.zzjf();
                                        com.google.android.gms.internal.measurement.zzet v2_254 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v28, "_eid"));
                                        if (v2_254 == null) {
                                            v4_130 = 0;
                                        } else {
                                            v4_130 = 1;
                                        }
                                        String v4_131 = Boolean.valueOf(v4_130);
                                        if (v20 != 1) {
                                            if (v25.nextInt(v20) != 0) {
                                                if (Math.abs((v28.zzavb.longValue() - v3_0.zzahk)) < 86400000) {
                                                    if (!v4_131.booleanValue()) {
                                                        v2_3 = v18_0;
                                                    } else {
                                                        v23_1.put(v28.name, v3_0.zza(v2_254, 0, 0));
                                                    }
                                                } else {
                                                    this.zzjf();
                                                    v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_efs", Long.valueOf(1));
                                                    this.zzjf();
                                                    v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_sr", Long.valueOf(((long) v20)));
                                                    v2_3 = (v18_0 + 1);
                                                    v24[v18_0] = v28;
                                                    if (v4_131.booleanValue()) {
                                                        v3_0 = v3_0.zza(0, Long.valueOf(((long) v20)), Boolean.valueOf(1));
                                                    }
                                                    v23_1.put(v28.name, v3_0.zzai(v28.zzavb.longValue()));
                                                }
                                            } else {
                                                this.zzjf();
                                                v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_sr", Long.valueOf(((long) v20)));
                                                v2_3 = (v18_0 + 1);
                                                v24[v18_0] = v28;
                                                if (v4_131.booleanValue()) {
                                                    v3_0 = v3_0.zza(0, Long.valueOf(((long) v20)), 0);
                                                }
                                                v23_1.put(v28.name, v3_0.zzai(v28.zzavb.longValue()));
                                            }
                                        } else {
                                            v2_3 = (v18_0 + 1);
                                            v24[v18_0] = v28;
                                            if ((v4_131.booleanValue()) && ((v3_0.zzahl != null) || ((v3_0.zzahm != null) || (v3_0.zzahn != null)))) {
                                                v23_1.put(v28.name, v3_0.zza(0, 0, 0));
                                            }
                                        }
                                    } else {
                                        this.zzacv.zzgi().zziy().zze("Sample rate must be positive. event, rate", v28.name, Integer.valueOf(v20));
                                        v2_3 = (v18_0 + 1);
                                        v24[v18_0] = v28;
                                    }
                                } else {
                                    this.zzjf();
                                    com.google.android.gms.internal.measurement.zzet v2_10 = ((String) com.google.android.gms.internal.measurement.zzjz.zzb(v28, "_en"));
                                    com.google.android.gms.internal.measurement.zzet v3_6 = ((com.google.android.gms.internal.measurement.zzet) v23_1.get(v2_10));
                                    if (v3_6 == null) {
                                        v3_6 = this.zzjh().zzf(v21.zzasp.zzth, v2_10);
                                        v23_1.put(v2_10, v3_6);
                                    }
                                    if (v3_6.zzahl != null) {
                                    } else {
                                        if (v3_6.zzahm.longValue() > 1) {
                                            this.zzjf();
                                            v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_sr", v3_6.zzahm);
                                        }
                                        if ((v3_6.zzahn != null) && (v3_6.zzahn.booleanValue())) {
                                            this.zzjf();
                                            v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_efs", Long.valueOf(1));
                                        }
                                        v2_3 = (v18_0 + 1);
                                        v24[v18_0] = v28;
                                    }
                                }
                                v19_0++;
                                v18_0 = v2_3;
                            }
                            if (v18_0 < v22.zzavi.length) {
                                v22.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v24, v18_0));
                            }
                            com.google.android.gms.internal.measurement.zzet v3_96 = v23_1.entrySet().iterator();
                            while (v3_96.hasNext()) {
                                this.zzjh().zza(((com.google.android.gms.internal.measurement.zzet) ((java.util.Map$Entry) v3_96.next()).getValue()));
                            }
                        }
                        v22.zzavl = Long.valueOf(nan);
                        v22.zzavm = Long.valueOf(-0.0);
                        com.google.android.gms.internal.measurement.zzet v2_185 = 0;
                        while (v2_185 < v22.zzavi.length) {
                            com.google.android.gms.internal.measurement.zzet v3_114 = v22.zzavi[v2_185];
                            if (v3_114.zzavb.longValue() < v22.zzavl.longValue()) {
                                v22.zzavl = v3_114.zzavb;
                            }
                            if (v3_114.zzavb.longValue() > v22.zzavm.longValue()) {
                                v22.zzavm = v3_114.zzavb;
                            }
                            v2_185++;
                        }
                        int v6_54 = v21.zzasp.zzth;
                        int v7_31 = this.zzjh().zzbf(v6_54);
                        if (v7_31 != 0) {
                            if (v22.zzavi.length > 0) {
                                String v4_102;
                                com.google.android.gms.internal.measurement.zzet v2_190 = v7_31.zzgt();
                                if (v2_190 == 0) {
                                    v4_102 = 0;
                                } else {
                                    v4_102 = Long.valueOf(v2_190);
                                }
                                v22.zzavo = v4_102;
                                String v4_103 = v7_31.zzgs();
                                if (v4_103 != 0) {
                                    v2_190 = v4_103;
                                }
                                com.google.android.gms.internal.measurement.zzet v2_191;
                                if (v2_190 == 0) {
                                    v2_191 = 0;
                                } else {
                                    v2_191 = Long.valueOf(v2_190);
                                }
                                v22.zzavn = v2_191;
                                v7_31.zzhb();
                                v22.zzavy = Integer.valueOf(((int) v7_31.zzgy()));
                                v7_31.zzr(v22.zzavl.longValue());
                                v7_31.zzs(v22.zzavm.longValue());
                                v22.zzafy = v7_31.zzhj();
                                this.zzjh().zza(v7_31);
                            }
                        } else {
                            this.zzacv.zzgi().zziv().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                        }
                        if (v22.zzavi.length > 0) {
                            this.zzacv.zzgl();
                            com.google.android.gms.internal.measurement.zzet v2_208 = this.zzky().zzbx(v21.zzasp.zzth);
                            if ((v2_208 != null) && (v2_208.zzaum != null)) {
                                v22.zzawf = v2_208.zzaum;
                            } else {
                                if (!android.text.TextUtils.isEmpty(v21.zzasp.zzafa)) {
                                    this.zzacv.zzgi().zziy().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                } else {
                                    v22.zzawf = Long.valueOf(-1);
                                }
                            }
                            this.zzjh().zza(v22, v17);
                        }
                        String v4_112 = this.zzjh();
                        int v5_65 = v21.zzasq;
                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v5_65);
                        v4_112.zzab();
                        v4_112.zzch();
                        int v7_34 = new StringBuilder("rowid in (");
                        com.google.android.gms.internal.measurement.zzet v3_105 = 0;
                        while (v3_105 < v5_65.size()) {
                            if (v3_105 != null) {
                                v7_34.append(",");
                            }
                            v7_34.append(((Long) v5_65.get(v3_105)).longValue());
                            v3_105++;
                        }
                        v7_34.append(")");
                        com.google.android.gms.internal.measurement.zzet v2_224 = v4_112.getWritableDatabase().delete("raw_events", v7_34.toString(), 0);
                        if (v2_224 != v5_65.size()) {
                            v4_112.zzgi().zziv().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v2_224), Integer.valueOf(v5_65.size()));
                        }
                        com.google.android.gms.internal.measurement.zzet v3_110 = this.zzjh();
                        com.google.android.gms.internal.measurement.zzet v2_226 = v3_110.getWritableDatabase();
                        try {
                            int v5_70 = new String[2];
                            v5_70[0] = v6_54;
                            v5_70[1] = v6_54;
                            v2_226.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_70);
                        } catch (com.google.android.gms.internal.measurement.zzet v2_227) {
                            v3_110.zzgi().zziv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v6_54), v2_227);
                        }
                        this.zzjh().setTransactionSuccessful();
                        this.zzjh().endTransaction();
                        v2_125 = 1;
                    }
                    return v2_125;
                } else {
                    v3_64.close();
                }
            }
            if (!android.text.TextUtils.isEmpty(0)) {
                int v6_41;
                if (v16_0 == -1) {
                    int v5_48 = new String[1];
                    v5_48[0] = 0;
                    v6_41 = v5_48;
                } else {
                    int v5_53 = new String[2];
                    v5_53[0] = 0;
                    v5_53[1] = String.valueOf(v16_0);
                    v6_41 = v5_53;
                }
                int v5_59;
                if (v16_0 == -1) {
                    v5_59 = "";
                } else {
                    v5_59 = " and rowid <= ?";
                }
                com.google.android.gms.internal.measurement.zzet v3_100 = v2_101.rawQuery(new StringBuilder((String.valueOf(v5_59).length() + 84)).append("select metadata_fingerprint from raw_events where app_id = ?").append(v5_59).append(" order by rowid limit 1;").toString(), v6_41);
                if (v3_100.moveToFirst()) {
                    int v5_66 = v3_100.getString(0);
                    v3_100.close();
                    v13_0 = v5_66;
                    v12_1 = 0;
                } else {
                    if (v3_100 == null) {
                    } else {
                        v3_100.close();
                    }
                }
            } else {
                int v6_63;
                if (v16_0 == -1) {
                    int v5_74 = new String[1];
                    v5_74[0] = String.valueOf(p32);
                    v6_63 = v5_74;
                } else {
                    int v5_77 = new String[2];
                    v5_77[0] = String.valueOf(v16_0);
                    v5_77[1] = String.valueOf(p32);
                    v6_63 = v5_77;
                }
                int v5_4;
                if (v16_0 == -1) {
                    v5_4 = "";
                } else {
                    v5_4 = "rowid <= ? and ";
                }
                com.google.android.gms.internal.measurement.zzet v3_19 = v2_101.rawQuery(new StringBuilder((String.valueOf(v5_4).length() + 148)).append("select app_id, metadata_fingerprint from raw_events where ").append(v5_4).append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;").toString(), v6_63);
                if (v3_19.moveToFirst()) {
                    String v4_42 = v3_19.getString(0);
                    int v5_25 = v3_19.getString(1);
                    v3_19.close();
                    v13_0 = v5_25;
                    v12_1 = v4_42;
                } else {
                    if (v3_19 == null) {
                    } else {
                        v3_19.close();
                    }
                }
            }
            try {
                String v4_59 = new String[1];
                v4_59[0] = "metadata";
                int v6_27 = new String[2];
                v6_27[0] = v12_1;
                v6_27[1] = v13_0;
                int v11_2 = v2_101.query("raw_events_metadata", v4_59, "app_id = ? and metadata_fingerprint = ?", v6_27, 0, 0, "rowid", "2");
            } catch (com.google.android.gms.internal.measurement.zzet v2_102) {
                v3_64 = v11_2;
                if (v3_64 != null) {
                    v3_64.close();
                }
                throw v2_102;
            } catch (com.google.android.gms.internal.measurement.zzet v2_4) {
                v3_64 = v11_2;
                v4_0 = v12_1;
            }
            if (v11_2.moveToFirst()) {
                com.google.android.gms.internal.measurement.zzet v3_62 = v11_2.getBlob(0);
                com.google.android.gms.internal.measurement.zzet v3_63 = com.google.android.gms.internal.measurement.zzaca.zza(v3_62, 0, v3_62.length);
                String v4_82 = new com.google.android.gms.internal.measurement.zzku();
                try {
                    v4_82.zzb(v3_63);
                } catch (com.google.android.gms.internal.measurement.zzet v2_100) {
                    v14_2.zzgi().zziv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1), v2_100);
                    if (v11_2 == 0) {
                    } else {
                        v11_2.close();
                    }
                }
                if (v11_2.moveToNext()) {
                    v14_2.zzgi().zziy().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1));
                }
                int v5_42;
                int v6_33;
                v11_2.close();
                v21.zzb(v4_82);
                if (v16_0 == -1) {
                    v5_42 = "app_id = ? and metadata_fingerprint = ?";
                    v6_33 = new String[2];
                    v6_33[0] = v12_1;
                    v6_33[1] = v13_0;
                } else {
                    v5_42 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                    v6_33 = new String[3];
                    v6_33[0] = v12_1;
                    v6_33[1] = v13_0;
                    v6_33[2] = String.valueOf(v16_0);
                }
                String v4_87 = new String[4];
                v4_87[0] = "rowid";
                v4_87[1] = "name";
                v4_87[2] = "timestamp";
                v4_87[3] = "data";
                v3_64 = v2_101.query("raw_events", v4_87, v5_42, v6_33, 0, 0, "rowid", 0);
                try {
                    if (!v3_64.moveToFirst()) {
                        v14_2.zzgi().zziy().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1));
                        if (v3_64 == null) {
                        } else {
                            v3_64.close();
                        }
                    }
                } catch (com.google.android.gms.internal.measurement.zzet v2_4) {
                    v4_0 = v12_1;
                }
                do {
                    String v4_88 = v3_64.getLong(0);
                    com.google.android.gms.internal.measurement.zzet v2_106 = v3_64.getBlob(3);
                    com.google.android.gms.internal.measurement.zzet v2_107 = com.google.android.gms.internal.measurement.zzaca.zza(v2_106, 0, v2_106.length);
                    int v6_37 = new com.google.android.gms.internal.measurement.zzkr();
                    v6_37.zzb(v2_107);
                    v6_37.name = v3_64.getString(1);
                    v6_37.zzavb = Long.valueOf(v3_64.getLong(2));
                    if (v21.zza(v4_88, v6_37)) {
                    } else {
                        if (v3_64 == null) {
                        } else {
                            v3_64.close();
                        }
                    }
                } while(v3_64.moveToNext());
                if (v3_64 == null) {
                } else {
                    v3_64.close();
                }
            } else {
                v14_2.zzgi().zziv().zzg("Raw event metadata record is missing. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1));
                if (v11_2 == 0) {
                } else {
                    v11_2.close();
                }
            }
        } catch (com.google.android.gms.internal.measurement.zzet v2_97) {
            this.zzjh().endTransaction();
            throw v2_97;
        }
    }

Method io.sqlc.SQLiteAndroidDatabase.executeSqlStatementQuery() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private org.json.JSONObject executeSqlStatementQuery(android.database.sqlite.SQLiteDatabase p18, String p19, org.json.JSONArray p20)
    {
        org.json.JSONObject v13_1 = new org.json.JSONObject();
        String[] v10 = 0;
        try {
            v10 = new String[p20.length()];
            int v8 = 0;
        } catch (Exception v6) {
            v6.printStackTrace();
            android.util.Log.v("executeSqlBatch", new StringBuilder().append("SQLiteAndroidDatabase.executeSql[Batch](): Error=").append(v6.getMessage()).toString());
            throw v6;
        }
        while (v8 < p20.length()) {
            if (!p20.isNull(v8)) {
                v10[v8] = p20.getString(v8);
            } else {
                v10[v8] = "";
            }
            v8++;
        }
        android.database.Cursor v3 = p18.rawQuery(p19, v10);
        if ((v3 != null) && (v3.moveToFirst())) {
            org.json.JSONArray v12_1 = new org.json.JSONArray();
            int v2 = v3.getColumnCount();
            do {
                org.json.JSONObject v11_1 = new org.json.JSONObject();
                int v7 = 0;
                if (v7 >= v2) {
                    v12_1.put(v11_1);
                } else {
                    try {
                        String v9 = v3.getColumnName(v7);
                    } catch (org.json.JSONException v4_0) {
                        v4_0.printStackTrace();
                    }
                    if (!io.sqlc.SQLiteAndroidDatabase.isPostHoneycomb) {
                        this.bindPreHoneycomb(v11_1, v9, v3, v7);
                    } else {
                        try {
                            this.bindPostHoneycomb(v11_1, v9, v3, v7);
                        } catch (Exception v6) {
                            this.bindPreHoneycomb(v11_1, v9, v3, v7);
                        }
                    }
                    v7++;
                    while (v7 < v2) {
                    }
                }
            } while(v3.moveToNext());
            try {
                v13_1.put("rows", v12_1);
            } catch (org.json.JSONException v4_1) {
                v4_1.printStackTrace();
            }
        }
        if (v3 != null) {
            v3.close();
        }
        return v13_1;
    }

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p7)
    {
        android.database.sqlite.SQLiteDatabase v5 = 0;
        if (android.os.Build$VERSION.SDK_INT < 15) {
            try {
                android.database.sqlite.SQLiteDatabase v1_3 = p7.rawQuery("PRAGMA journal_mode=memory", 0);
                try {
                    v1_3.moveToFirst();
                } catch (Throwable v0_1) {
                    v5 = v1_3;
                    if (v5 != null) {
                        v5.close();
                    }
                    throw v0_1;
                }
                if (v1_3 != null) {
                    v1_3.close();
                }
            } catch (Throwable v0_1) {
            }
        }
        com.google.android.gms.internal.measurement.zzeo.zza(this.zzakh.zzgi(), 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.measurement.zzeo.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 io.sqlc.SQLiteAndroidDatabase.open() calling method android.database.sqlite.SQLiteDatabase.openOrCreateDatabase()


    void open(java.io.File p2)
    {
        this.dbFile = p2;
        this.mydb = android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(p2, 0);
        return;
    }

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


    private final boolean zza(int p14, byte[] p15)
    {
        int v0_4;
        this.zzfv();
        this.zzab();
        if (!this.zzakg) {
            android.content.ContentValues v7_1 = new android.content.ContentValues();
            v7_1.put("type", Integer.valueOf(p14));
            v7_1.put("entry", p15);
            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.measurement.zzfk v1_0) {
                    this.zzgi().zziv().zzg("Error writing entry to local database", v1_0);
                    this.zzakg = 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_4 = 1;
                } catch (com.google.android.gms.internal.measurement.zzfk v1) {
                    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;
                } catch (com.google.android.gms.internal.measurement.zzfk v1_20) {
                    if (v3 != null) {
                        if (v3.inTransaction()) {
                            v3.endTransaction();
                        }
                    }
                    this.zzgi().zziv().zzg("Error writing entry to local database", v1_20);
                    this.zzakg = 1;
                    if (v2 != null) {
                        v2.close();
                    }
                    if (v3 == null) {
                    } else {
                        v3.close();
                    }
                }
                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) {
                        this.zzgi().zziv().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) {
                            this.zzgi().zziv().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.zzakg = 1;
                    if (v3 != null) {
                        v3.close();
                    }
                    v0_4 = 0;
                }
            }
            this.zzgi().zziy().log("Failed to write entry to local database");
            v0_4 = 0;
        } else {
            v0_4 = 0;
        }
        return v0_4;
    }

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


    public final boolean zza(com.google.android.gms.internal.measurement.zzku p11, boolean p12)
    {
        String v2 = 0;
        this.zzab();
        this.zzch();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p11);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p11.zzth);
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p11.zzavm);
        this.zzhx();
        Object v4_3 = this.zzbt().currentTimeMillis();
        if ((p11.zzavm.longValue() < (v4_3 - com.google.android.gms.internal.measurement.zzeh.zzhq())) || (p11.zzavm.longValue() > (com.google.android.gms.internal.measurement.zzeh.zzhq() + v4_3))) {
            this.zzgi().zziy().zzd("Storing bundle outside of the max uploading time span. appId, now, timestamp", com.google.android.gms.internal.measurement.zzfi.zzbp(p11.zzth), Long.valueOf(v4_3), p11.zzavm);
        }
        try {
            com.google.android.gms.internal.measurement.zzfk v0_17;
            com.google.android.gms.internal.measurement.zzfk v0_12 = new byte[p11.zzwb()];
            Object v3_5 = com.google.android.gms.internal.measurement.zzacb.zzb(v0_12, 0, v0_12.length);
            p11.zza(v3_5);
            v3_5.zzvt();
            com.google.android.gms.internal.measurement.zzfk v0_14 = this.zzjf().zzb(v0_12);
            this.zzgi().zzjc().zzg("Saving bundle, size", Integer.valueOf(v0_14.length));
            Object v3_10 = new android.content.ContentValues();
            v3_10.put("app_id", p11.zzth);
            v3_10.put("bundle_end_timestamp", p11.zzavm);
            v3_10.put("data", v0_14);
        } catch (com.google.android.gms.internal.measurement.zzfk v0_16) {
            this.zzgi().zziv().zze("Data loss. Failed to serialize bundle. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p11.zzth), v0_16);
            return v2;
        }
        if (!p12) {
            v0_17 = 0;
        } else {
            v0_17 = 1;
        }
        v3_10.put("has_realtime", Integer.valueOf(v0_17));
        if (p11.zzawj != null) {
            v3_10.put("retry_count", p11.zzawj);
        }
        try {
            if (this.getWritableDatabase().insert("queue", 0, v3_10) != -1) {
                v2 = 1;
                return v2;
            } else {
                this.zzgi().zziv().zzg("Failed to insert bundle (got -1). appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p11.zzth));
                return v2;
            }
        } catch (com.google.android.gms.internal.measurement.zzfk v0_4) {
            this.zzgi().zziv().zze("Error storing bundle. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p11.zzth), v0_4);
            return v2;
        }
    }

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


    public final boolean zza(com.google.android.gms.internal.measurement.zzes p11, long p12, boolean p14)
    {
        Object v2 = 0;
        this.zzab();
        this.zzch();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p11);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p11.zzth);
        int v5_7 = new com.google.android.gms.internal.measurement.zzkr();
        v5_7.zzavc = Long.valueOf(p11.zzahf);
        com.google.android.gms.internal.measurement.zzfk v0_7 = new com.google.android.gms.internal.measurement.zzks[p11.zzahg.size()];
        v5_7.zzava = v0_7;
        long v6_0 = p11.zzahg.iterator();
        String v1_4 = 0;
        while (v6_0.hasNext()) {
            com.google.android.gms.internal.measurement.zzfk v0_3 = ((String) v6_0.next());
            com.google.android.gms.internal.measurement.zzks v7_1 = new com.google.android.gms.internal.measurement.zzks();
            Object v3_2 = (v1_4 + 1);
            v5_7.zzava[v1_4] = v7_1;
            v7_1.name = v0_3;
            this.zzjf().zza(v7_1, p11.zzahg.get(v0_3));
            v1_4 = v3_2;
        }
        try {
            com.google.android.gms.internal.measurement.zzfk v0_14;
            com.google.android.gms.internal.measurement.zzfk v0_11 = new byte[v5_7.zzwb()];
            String v1_6 = com.google.android.gms.internal.measurement.zzacb.zzb(v0_11, 0, v0_11.length);
            v5_7.zza(v1_6);
            v1_6.zzvt();
            this.zzgi().zzjc().zze("Saving event, name, data size", this.zzgf().zzbm(p11.name), Integer.valueOf(v0_11.length));
            String v1_10 = new android.content.ContentValues();
            v1_10.put("app_id", p11.zzth);
            v1_10.put("name", p11.name);
            v1_10.put("timestamp", Long.valueOf(p11.timestamp));
            v1_10.put("metadata_fingerprint", Long.valueOf(p12));
            v1_10.put("data", v0_11);
        } catch (com.google.android.gms.internal.measurement.zzfk v0_13) {
            this.zzgi().zziv().zze("Data loss. Failed to serialize event params/data. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p11.zzth), 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.zzgi().zziv().zzg("Failed to insert raw event (got -1). appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p11.zzth));
                return v2;
            }
        } catch (com.google.android.gms.internal.measurement.zzfk v0_0) {
            this.zzgi().zziv().zze("Error storing raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p11.zzth), v0_0);
            return v2;
        }
    }

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


    final void zzc(java.util.List p7)
    {
        this.zzab();
        this.zzch();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p7);
        com.google.android.gms.common.internal.Preconditions.checkNotZero(p7.size());
        if (this.zzid()) {
            android.database.sqlite.SQLiteException v0_0 = android.text.TextUtils.join(",", p7);
            android.database.sqlite.SQLiteException v0_3 = new StringBuilder((String.valueOf(v0_0).length() + 2)).append("(").append(v0_0).append(")").toString();
            if (this.zza(new StringBuilder((String.valueOf(v0_3).length() + 80)).append("SELECT COUNT(1) FROM queue WHERE rowid IN ").append(v0_3).append(" AND retry_count =  2147483647 LIMIT 1").toString(), 0) > 0) {
                this.zzgi().zziy().log("The number of upload retries exceeds the limit. Will remain unchanged.");
            }
            try {
                this.getWritableDatabase().execSQL(new StringBuilder((String.valueOf(v0_3).length() + 127)).append("UPDATE queue SET retry_count = IFNULL(retry_count, 0) + 1 WHERE rowid IN ").append(v0_3).append(" AND (retry_count IS NULL OR retry_count < 2147483647)").toString());
            } catch (android.database.sqlite.SQLiteException v0_9) {
                this.zzgi().zziv().zzg("Error incrementing retry count. error", v0_9);
            }
        }
        return;
    }

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


    final com.google.android.gms.internal.measurement.zzkp[] zza(String p36, com.google.android.gms.internal.measurement.zzkr[] p37, com.google.android.gms.internal.measurement.zzkx[] p38)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p36);
        java.util.HashSet v25_1 = new java.util.HashSet();
        android.support.v4.util.ArrayMap v26_1 = new android.support.v4.util.ArrayMap();
        android.support.v4.util.ArrayMap v27_1 = new android.support.v4.util.ArrayMap();
        android.support.v4.util.ArrayMap v28_1 = new android.support.v4.util.ArrayMap();
        android.support.v4.util.ArrayMap v29_0 = new android.support.v4.util.ArrayMap();
        boolean v30 = this.zzgk().zzd(p36, com.google.android.gms.internal.measurement.zzez.zzajx);
        long v8_7 = this.zzjh().zzbi(p36);
        if (v8_7 != 0) {
            Integer v9_5 = v8_7.keySet().iterator();
            while (v9_5.hasNext()) {
                Long v7_0;
                String v10_0 = ((Integer) v9_5.next()).intValue();
                int v2_22 = ((com.google.android.gms.internal.measurement.zzkv) v8_7.get(Integer.valueOf(v10_0)));
                Long v3_8 = ((java.util.BitSet) v27_1.get(Integer.valueOf(v10_0)));
                long v4_7 = ((java.util.BitSet) v28_1.get(Integer.valueOf(v10_0)));
                if (!v30) {
                    v7_0 = 0;
                } else {
                    Integer v5_6 = new android.support.v4.util.ArrayMap();
                    if ((v2_22 != 0) && (v2_22.zzawn != null)) {
                        Long v7_1 = v2_22.zzawn;
                        com.google.android.gms.internal.measurement.zzek v11_0 = v7_1.length;
                        long v6_1 = 0;
                        while (v6_1 < v11_0) {
                            int v12_0 = v7_1[v6_1];
                            if (v12_0.zzaux != null) {
                                v5_6.put(v12_0.zzaux, v12_0.zzauy);
                            }
                            v6_1++;
                        }
                    }
                    v29_0.put(Integer.valueOf(v10_0), v5_6);
                    v7_0 = v5_6;
                }
                if (v3_8 == null) {
                    v3_8 = new java.util.BitSet();
                    v27_1.put(Integer.valueOf(v10_0), v3_8);
                    v4_7 = new java.util.BitSet();
                    v28_1.put(Integer.valueOf(v10_0), v4_7);
                }
                Integer v5_8 = 0;
                while (v5_8 < (v2_22.zzawl.length << 6)) {
                    long v6_9 = 0;
                    if (com.google.android.gms.internal.measurement.zzjz.zza(v2_22.zzawl, v5_8)) {
                        this.zzgi().zzjc().zze("Filter already evaluated. audience ID, filter ID", Integer.valueOf(v10_0), Integer.valueOf(v5_8));
                        v4_7.set(v5_8);
                        if (com.google.android.gms.internal.measurement.zzjz.zza(v2_22.zzawm, v5_8)) {
                            v3_8.set(v5_8);
                            v6_9 = 1;
                        }
                    }
                    if ((v7_0 != null) && (v6_9 == 0)) {
                        v7_0.remove(Integer.valueOf(v5_8));
                    }
                    v5_8++;
                }
                Integer v5_10 = new com.google.android.gms.internal.measurement.zzkp();
                v26_1.put(Integer.valueOf(v10_0), v5_10);
                v5_10.zzauv = Boolean.valueOf(0);
                v5_10.zzauu = v2_22;
                v5_10.zzaut = new com.google.android.gms.internal.measurement.zzkv();
                v5_10.zzaut.zzawm = com.google.android.gms.internal.measurement.zzjz.zza(v3_8);
                v5_10.zzaut.zzawl = com.google.android.gms.internal.measurement.zzjz.zza(v4_7);
                if (v30) {
                    v5_10.zzaut.zzawn = com.google.android.gms.internal.measurement.zzed.zzd(v7_0);
                }
            }
        }
        if (p37 != null) {
            long v8_8 = 0;
            long v6_12 = 0;
            Long v3_33 = 0;
            android.support.v4.util.ArrayMap v31_1 = new android.support.v4.util.ArrayMap();
            int v32 = p37.length;
            int v24 = 0;
            while (v24 < v32) {
                long v20;
                Integer v18_3;
                boolean v17_4;
                Integer v22;
                com.google.android.gms.internal.measurement.zzek v19_1;
                com.google.android.gms.internal.measurement.zzkr v23 = p37[v24];
                Integer v9_13 = v23.name;
                String v10_5 = v23.zzava;
                if (!this.zzgk().zzd(p36, com.google.android.gms.internal.measurement.zzez.zzajr)) {
                    v17_4 = v10_5;
                    v18_3 = v9_13;
                    v19_1 = v3_33;
                    v20 = v6_12;
                    v22 = v8_8;
                    Long v3_54;
                    int v2_135 = this.zzjh().zzf(p36, v23.name);
                    if (v2_135 != 0) {
                        v3_54 = v2_135.zzim();
                    } else {
                        this.zzgi().zziy().zze("Event aggregate wasn\'t created during raw event logging. appId, event", com.google.android.gms.internal.measurement.zzfi.zzbp(p36), this.zzgf().zzbm(v18_3));
                        v3_54 = new com.google.android.gms.internal.measurement.zzet(p36, v23.name, 1, 1, v23.zzavb.longValue(), 0, 0, 0, 0);
                    }
                    long v8_30;
                    this.zzjh().zza(v3_54);
                    long v6_18 = v3_54.zzahh;
                    int v2_143 = ((java.util.Map) v31_1.get(v18_3));
                    if (v2_143 != 0) {
                        v8_30 = v2_143;
                    } else {
                        int v2_145 = this.zzjh().zzk(p36, v18_3);
                        if (v2_145 == 0) {
                            v2_145 = new android.support.v4.util.ArrayMap();
                        }
                        v31_1.put(v18_3, v2_145);
                        v8_30 = v2_145;
                    }
                    String v13_6 = v8_30.keySet().iterator();
                    while (v13_6.hasNext()) {
                        com.google.android.gms.internal.measurement.zzks v14_5 = ((Integer) v13_6.next()).intValue();
                        if (!v25_1.contains(Integer.valueOf(v14_5))) {
                            Integer v5_30 = 0;
                            if (v30) {
                                v5_30 = ((java.util.Map) v29_0.get(Integer.valueOf(v14_5)));
                            }
                            String v10_7;
                            Integer v9_16;
                            com.google.android.gms.internal.measurement.zzek v11_10;
                            if (((com.google.android.gms.internal.measurement.zzkp) v26_1.get(Integer.valueOf(v14_5))) != null) {
                                v9_16 = v5_30;
                                v10_7 = ((java.util.BitSet) v28_1.get(Integer.valueOf(v14_5)));
                                v11_10 = ((java.util.BitSet) v27_1.get(Integer.valueOf(v14_5)));
                            } else {
                                int v2_159 = new com.google.android.gms.internal.measurement.zzkp();
                                v26_1.put(Integer.valueOf(v14_5), v2_159);
                                v2_159.zzauv = Boolean.valueOf(1);
                                Long v3_64 = new java.util.BitSet();
                                v27_1.put(Integer.valueOf(v14_5), v3_64);
                                long v4_31 = new java.util.BitSet();
                                v28_1.put(Integer.valueOf(v14_5), v4_31);
                                if (!v30) {
                                    v9_16 = v5_30;
                                    v10_7 = v4_31;
                                    v11_10 = v3_64;
                                } else {
                                    int v2_164 = new android.support.v4.util.ArrayMap();
                                    v29_0.put(Integer.valueOf(v14_5), v2_164);
                                    v9_16 = v2_164;
                                    v10_7 = v4_31;
                                    v11_10 = v3_64;
                                }
                            }
                            java.util.Iterator v15_2 = ((java.util.List) v8_30.get(Integer.valueOf(v14_5))).iterator();
                            while (v15_2.hasNext()) {
                                Long v3_66 = ((com.google.android.gms.internal.measurement.zzkh) v15_2.next());
                                if (this.zzgi().isLoggable(2)) {
                                    this.zzgi().zzjc().zzd("Evaluating filter. audience, filter, event", Integer.valueOf(v14_5), v3_66.zzatk, this.zzgf().zzbm(v3_66.zzatl));
                                    this.zzgi().zzjc().zzg("Filter definition", this.zzjf().zza(v3_66));
                                }
                                if ((v3_66.zzatk != null) && (v3_66.zzatk.intValue() <= 256)) {
                                    if (!v30) {
                                        if (!v11_10.get(v3_66.zzatk.intValue())) {
                                            int v2_187;
                                            long v4_37 = this.zza(v3_66, v18_3, v17_4, v6_18);
                                            com.google.android.gms.internal.measurement.zzfk vtmp253 = this.zzgi().zzjc();
                                            if (v4_37 != 0) {
                                                v2_187 = v4_37;
                                            } else {
                                                v2_187 = "null";
                                            }
                                            vtmp253.zzg("Event filter result", v2_187);
                                            if (v4_37 != 0) {
                                                v10_7.set(v3_66.zzatk.intValue());
                                                if (v4_37.booleanValue()) {
                                                    v11_10.set(v3_66.zzatk.intValue());
                                                }
                                            } else {
                                                v25_1.add(Integer.valueOf(v14_5));
                                            }
                                        } else {
                                            this.zzgi().zzjc().zze("Event filter already evaluated true. audience ID, filter ID", Integer.valueOf(v14_5), v3_66.zzatk);
                                        }
                                    } else {
                                        if ((v3_66 == null) || ((v3_66.zzatm == null) || ((v3_66.zzatm.length <= 0) || ((v3_66.zzatm[0].zzatu == null) || (!v3_66.zzatm[0].zzatu.booleanValue()))))) {
                                            int v12_11 = 0;
                                        } else {
                                            v12_11 = 1;
                                        }
                                        if ((!v11_10.get(v3_66.zzatk.intValue())) || (v12_11 != 0)) {
                                            int v2_216;
                                            long v4_43 = this.zza(v3_66, v18_3, v17_4, v6_18);
                                            com.google.android.gms.internal.measurement.zzfk vtmp266 = this.zzgi().zzjc();
                                            if (v4_43 != 0) {
                                                v2_216 = v4_43;
                                            } else {
                                                v2_216 = "null";
                                            }
                                            vtmp266.zzg("Event filter result", v2_216);
                                            if (v4_43 != 0) {
                                                v10_7.set(v3_66.zzatk.intValue());
                                                if (v4_43.booleanValue()) {
                                                    v11_10.set(v3_66.zzatk.intValue());
                                                    if ((v12_11 != 0) && (v23.zzavb != null)) {
                                                        com.google.android.gms.internal.measurement.zzed.zza(v9_16, v3_66.zzatk.intValue(), v23.zzavb.longValue());
                                                    }
                                                }
                                            } else {
                                                v25_1.add(Integer.valueOf(v14_5));
                                            }
                                        } else {
                                            this.zzgi().zzjc().zze("Event filter already evaluated true and it is not associated with a dynamic audience. audience ID, filter ID", Integer.valueOf(v14_5), v3_66.zzatk);
                                        }
                                    }
                                } else {
                                    this.zzgi().zziy().zze("Invalid event filter ID. appId, id", com.google.android.gms.internal.measurement.zzfi.zzbp(p36), String.valueOf(v3_66.zzatk));
                                }
                            }
                        } else {
                            this.zzgi().zzjc().zzg("Skipping failed audience ID", Integer.valueOf(v14_5));
                        }
                    }
                    v3_33 = v19_1;
                    v6_12 = v20;
                    v8_8 = v22;
                } else {
                    long v4_17;
                    this.zzjf();
                    Integer v5_24 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v23, "_eid"));
                    if (v5_24 == null) {
                        v4_17 = 0;
                    } else {
                        v4_17 = 1;
                    }
                    if ((v4_17 == 0) || (!v9_13.equals("_ep"))) {
                        int v2_98 = 0;
                    } else {
                        v2_98 = 1;
                    }
                    if (v2_98 == 0) {
                        if (v4_17 == 0) {
                        } else {
                            this.zzjf();
                            int v2_100 = Long.valueOf(0);
                            Long v3_38 = com.google.android.gms.internal.measurement.zzjz.zzb(v23, "_epc");
                            if (v3_38 != null) {
                                v2_100 = v3_38;
                            }
                            long v6_15 = ((Long) v2_100).longValue();
                            if (v6_15 > 0) {
                                this.zzjh().zza(p36, v5_24, v6_15, v23);
                                v17_4 = v10_5;
                                v18_3 = v9_13;
                                v19_1 = v5_24;
                                v20 = v6_15;
                                v22 = v23;
                            } else {
                                this.zzgi().zziy().zzg("Complex event with zero extra param count. eventName", v9_13);
                                v17_4 = v10_5;
                                v18_3 = v9_13;
                                v19_1 = v5_24;
                                v20 = v6_15;
                                v22 = v23;
                            }
                        }
                    } else {
                        this.zzjf();
                        Integer v9_15 = ((String) com.google.android.gms.internal.measurement.zzjz.zzb(v23, "_en"));
                        if (!android.text.TextUtils.isEmpty(v9_15)) {
                            if ((v8_8 != 0) && ((v3_33 != null) && (v5_24.longValue() == v3_33.longValue()))) {
                                com.google.android.gms.internal.measurement.zzek v11_9 = v3_33;
                            } else {
                                long v4_19 = this.zzjh().zza(p36, v5_24);
                                if ((v4_19 != 0) && (v4_19.first != null)) {
                                    int v2_114 = ((com.google.android.gms.internal.measurement.zzkr) v4_19.first);
                                    v6_12 = ((Long) v4_19.second).longValue();
                                    this.zzjf();
                                    v11_9 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v2_114, "_eid"));
                                    v8_8 = v2_114;
                                } else {
                                    this.zzgi().zziv().zze("Extra parameter without existing main event. eventName, eventId", v9_15, v5_24);
                                    v24++;
                                }
                            }
                            long v6_16 = (v6_12 - 1);
                            if (v6_16 > 0) {
                                this.zzjh().zza(p36, v5_24, v6_16, v8_8);
                            } else {
                                Long v3_48 = this.zzjh();
                                v3_48.zzab();
                                v3_48.zzgi().zzjc().zzg("Clearing complex main event info. appId", p36);
                                try {
                                    int v2_121 = v3_48.getWritableDatabase();
                                    Integer v5_26 = new String[1];
                                    v5_26[0] = p36;
                                    v2_121.execSQL("delete from main_event_params where app_id=?", v5_26);
                                } catch (int v2_122) {
                                    v3_48.zzgi().zziv().zzg("Error clearing complex main event", v2_122);
                                }
                            }
                            long v4_24 = new com.google.android.gms.internal.measurement.zzks[(v8_8.zzava.length + v10_5.length)];
                            Long v3_4 = 0;
                            int v12_6 = v8_8.zzava;
                            String v13_5 = v12_6.length;
                            Integer v5_3 = 0;
                            while (v5_3 < v13_5) {
                                int v2_10;
                                com.google.android.gms.internal.measurement.zzks v14_0 = v12_6[v5_3];
                                this.zzjf();
                                if (com.google.android.gms.internal.measurement.zzjz.zza(v23, v14_0.name) != null) {
                                    v2_10 = v3_4;
                                } else {
                                    v2_10 = (v3_4 + 1);
                                    v4_24[v3_4] = v14_0;
                                }
                                v5_3++;
                                v3_4 = v2_10;
                            }
                            if (v3_4 <= null) {
                                this.zzgi().zziy().zzg("No unique parameters in main event. eventName", v9_15);
                                v17_4 = v10_5;
                                v18_3 = v9_15;
                                v19_1 = v11_9;
                                v20 = v6_16;
                                v22 = v8_8;
                            } else {
                                int v12_7 = v10_5.length;
                                int v2_6 = 0;
                                while (v2_6 < v12_7) {
                                    Integer v5_2 = (v3_4 + 1);
                                    v4_24[v3_4] = v10_5[v2_6];
                                    v2_6++;
                                    v3_4 = v5_2;
                                }
                                int v2_133;
                                if (v3_4 != v4_24.length) {
                                    v2_133 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v4_24, v3_4));
                                } else {
                                    v2_133 = v4_24;
                                }
                                v17_4 = v2_133;
                                v18_3 = v9_15;
                                v19_1 = v11_9;
                                v20 = v6_16;
                                v22 = v8_8;
                            }
                        } else {
                            this.zzgi().zziv().zzg("Extra parameter without an event name. eventId", v5_24);
                        }
                    }
                }
            }
        }
        if (p38 != null) {
            com.google.android.gms.internal.measurement.zzek v11_8 = new android.support.v4.util.ArrayMap();
            int v12_3 = p38.length;
            String v10_4 = 0;
            while (v10_4 < v12_3) {
                long v6_11;
                String v13_4 = p38[v10_4];
                int v2_48 = ((java.util.Map) v11_8.get(v13_4.name));
                if (v2_48 != 0) {
                    v6_11 = v2_48;
                } else {
                    int v2_50 = this.zzjh().zzl(p36, v13_4.name);
                    if (v2_50 == 0) {
                        v2_50 = new android.support.v4.util.ArrayMap();
                    }
                    v11_8.put(v13_4.name, v2_50);
                    v6_11 = v2_50;
                }
                com.google.android.gms.internal.measurement.zzks v14_2 = v6_11.keySet().iterator();
                while (v14_2.hasNext()) {
                    java.util.Iterator v15_0 = ((Integer) v14_2.next()).intValue();
                    if (!v25_1.contains(Integer.valueOf(v15_0))) {
                        long v4_12 = ((java.util.BitSet) v28_1.get(Integer.valueOf(v15_0)));
                        Integer v5_17 = 0;
                        if (v30) {
                            v5_17 = ((java.util.Map) v29_0.get(Integer.valueOf(v15_0)));
                        }
                        Long v3_27;
                        Integer v5_20;
                        if (((com.google.android.gms.internal.measurement.zzkp) v26_1.get(Integer.valueOf(v15_0))) != null) {
                            v5_20 = ((java.util.BitSet) v27_1.get(Integer.valueOf(v15_0)));
                            v3_27 = v5_17;
                        } else {
                            int v2_64 = new com.google.android.gms.internal.measurement.zzkp();
                            v26_1.put(Integer.valueOf(v15_0), v2_64);
                            v2_64.zzauv = Boolean.valueOf(1);
                            Long v3_32 = new java.util.BitSet();
                            v27_1.put(Integer.valueOf(v15_0), v3_32);
                            v4_12 = new java.util.BitSet();
                            v28_1.put(Integer.valueOf(v15_0), v4_12);
                            if (!v30) {
                                v5_20 = v3_32;
                                v3_27 = v5_17;
                            } else {
                                int v2_69 = new android.support.v4.util.ArrayMap();
                                v29_0.put(Integer.valueOf(v15_0), v2_69);
                                v5_20 = v3_32;
                                v3_27 = v2_69;
                            }
                        }
                        String v16_0 = ((java.util.List) v6_11.get(Integer.valueOf(v15_0))).iterator();
                        while (v16_0.hasNext()) {
                            int v2_75 = ((com.google.android.gms.internal.measurement.zzkk) v16_0.next());
                            if (this.zzgi().isLoggable(2)) {
                                this.zzgi().zzjc().zzd("Evaluating filter. audience, filter, property", Integer.valueOf(v15_0), v2_75.zzatk, this.zzgf().zzbo(v2_75.zzauc));
                                this.zzgi().zzjc().zzg("Filter definition", this.zzjf().zza(v2_75));
                            }
                            if ((v2_75.zzatk != null) && (v2_75.zzatk.intValue() <= 256)) {
                                if (!v30) {
                                    if (!v5_20.get(v2_75.zzatk.intValue())) {
                                        Long v7_15;
                                        long v8_13 = this.zza(v2_75, v13_4);
                                        Integer v9_9 = this.zzgi().zzjc();
                                        if (v8_13 != 0) {
                                            v7_15 = v8_13;
                                        } else {
                                            v7_15 = "null";
                                        }
                                        v9_9.zzg("Property filter result", v7_15);
                                        if (v8_13 != 0) {
                                            v4_12.set(v2_75.zzatk.intValue());
                                            if (v8_13.booleanValue()) {
                                                v5_20.set(v2_75.zzatk.intValue());
                                            }
                                        } else {
                                            v25_1.add(Integer.valueOf(v15_0));
                                        }
                                    } else {
                                        this.zzgi().zzjc().zze("Property filter already evaluated true. audience ID, filter ID", Integer.valueOf(v15_0), v2_75.zzatk);
                                    }
                                } else {
                                    if ((v2_75 == 0) || ((v2_75.zzaud == null) || ((v2_75.zzaud.zzatu == null) || (!v2_75.zzaud.zzatu.booleanValue())))) {
                                        Long v7_27 = 0;
                                    } else {
                                        v7_27 = 1;
                                    }
                                    if ((!v5_20.get(v2_75.zzatk.intValue())) || (v7_27 != null)) {
                                        long v8_19;
                                        Integer v9_11 = this.zza(v2_75, v13_4);
                                        boolean v17_2 = this.zzgi().zzjc();
                                        if (v9_11 != null) {
                                            v8_19 = v9_11;
                                        } else {
                                            v8_19 = "null";
                                        }
                                        v17_2.zzg("Property filter result", v8_19);
                                        if (v9_11 != null) {
                                            v4_12.set(v2_75.zzatk.intValue());
                                            v5_20.set(v2_75.zzatk.intValue(), v9_11.booleanValue());
                                            if ((v9_11.booleanValue()) && ((v7_27 != null) && (v13_4.zzaws != null))) {
                                                com.google.android.gms.internal.measurement.zzed.zza(v3_27, v2_75.zzatk.intValue(), v13_4.zzaws.longValue());
                                            }
                                        } else {
                                            v25_1.add(Integer.valueOf(v15_0));
                                        }
                                    } else {
                                        this.zzgi().zzjc().zze("Property filter already evaluated true and it is not associated with a dynamic audience. audience ID, filter ID", Integer.valueOf(v15_0), v2_75.zzatk);
                                    }
                                }
                            } else {
                                this.zzgi().zziy().zze("Invalid property filter ID. appId, id", com.google.android.gms.internal.measurement.zzfi.zzbp(p36), String.valueOf(v2_75.zzatk));
                                v25_1.add(Integer.valueOf(v15_0));
                                break;
                            }
                        }
                    } else {
                        this.zzgi().zzjc().zzg("Skipping failed audience ID", Integer.valueOf(v15_0));
                    }
                }
                v10_4++;
            }
        }
        long v6_14 = new com.google.android.gms.internal.measurement.zzkp[v27_1.size()];
        Long v7_32 = v27_1.keySet().iterator();
        Long v3_19 = 0;
        while (v7_32.hasNext()) {
            long v8_29 = ((Integer) v7_32.next()).intValue();
            if (!v25_1.contains(Integer.valueOf(v8_29))) {
                Integer v5_35;
                int v2_171 = ((com.google.android.gms.internal.measurement.zzkp) v26_1.get(Integer.valueOf(v8_29)));
                if (v2_171 != 0) {
                    v5_35 = v2_171;
                } else {
                    v5_35 = new com.google.android.gms.internal.measurement.zzkp();
                }
                long v4_38 = (v3_19 + 1);
                v6_14[v3_19] = v5_35;
                v5_35.zzate = Integer.valueOf(v8_29);
                v5_35.zzaut = new com.google.android.gms.internal.measurement.zzkv();
                v5_35.zzaut.zzawm = com.google.android.gms.internal.measurement.zzjz.zza(((java.util.BitSet) v27_1.get(Integer.valueOf(v8_29))));
                v5_35.zzaut.zzawl = com.google.android.gms.internal.measurement.zzjz.zza(((java.util.BitSet) v28_1.get(Integer.valueOf(v8_29))));
                if (v30) {
                    v5_35.zzaut.zzawn = com.google.android.gms.internal.measurement.zzed.zzd(((java.util.Map) v29_0.get(Integer.valueOf(v8_29))));
                }
                Long v3_16 = this.zzjh();
                int v2_37 = v5_35.zzaut;
                v3_16.zzch();
                v3_16.zzab();
                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p36);
                com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_37);
                try {
                    Integer v5_12 = new byte[v2_37.zzwb()];
                    Integer v9_1 = com.google.android.gms.internal.measurement.zzacb.zzb(v5_12, 0, v5_12.length);
                    v2_37.zza(v9_1);
                    v9_1.zzvt();
                    int v2_39 = new android.content.ContentValues();
                    v2_39.put("app_id", p36);
                    v2_39.put("audience_id", Integer.valueOf(v8_29));
                    v2_39.put("current_results", v5_12);
                    try {
                        if (v3_16.getWritableDatabase().insertWithOnConflict("audience_filter_values", 0, v2_39, 5) == -1) {
                            v3_16.zzgi().zziv().zzg("Failed to insert filter results (got -1). appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p36));
                        }
                        v3_19 = v4_38;
                    } catch (int v2_45) {
                        v3_16.zzgi().zziv().zze("Error storing filter results. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p36), v2_45);
                        v3_19 = v4_38;
                    }
                } catch (int v2_40) {
                    v3_16.zzgi().zziv().zze("Configuration loss. Failed to serialize filter results. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p36), v2_40);
                    v3_19 = v4_38;
                }
            }
        }
        return ((com.google.android.gms.internal.measurement.zzkp[]) java.util.Arrays.copyOf(v6_14, v3_19));
    }

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


    private final boolean zzd(String p31, long p32)
    {
        this.zzjh().beginTransaction();
        try {
            com.google.android.gms.internal.measurement.zzjt$zza v21 = new com.google.android.gms.internal.measurement.zzjt$zza;
            v21(this, 0);
            int v14_2 = this.zzjh();
            String v4_0 = 0;
            int v16_0 = this.zzasl;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v21);
            v14_2.zzab();
            v14_2.zzch();
            com.google.android.gms.internal.measurement.zzet v3_64 = 0;
            try {
                String v13_0;
                long v12_1;
                com.google.android.gms.internal.measurement.zzet v2_101 = v14_2.getWritableDatabase();
            } catch (com.google.android.gms.internal.measurement.zzet v2_4) {
                v14_2.zzgi().zziv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v4_0), v2_4);
                if (v3_64 == null) {
                    if ((v21.zzasr != null) && (!v21.zzasr.isEmpty())) {
                        com.google.android.gms.internal.measurement.zzet v2_122 = 0;
                    } else {
                        v2_122 = 1;
                    }
                    com.google.android.gms.internal.measurement.zzet v2_125;
                    if (v2_122 != null) {
                        this.zzjh().setTransactionSuccessful();
                        this.zzjh().endTransaction();
                        v2_125 = 0;
                    } else {
                        int v17 = 0;
                        com.google.android.gms.internal.measurement.zzku v22 = v21.zzasp;
                        com.google.android.gms.internal.measurement.zzet v2_128 = new com.google.android.gms.internal.measurement.zzkr[v21.zzasr.size()];
                        v22.zzavi = v2_128;
                        String v13_1 = 0;
                        int v14_1 = 0;
                        Boolean v18_1 = this.zzacv.zzgk().zzaw(v22.zzth);
                        int v16_1 = 0;
                        while (v16_1 < v21.zzasr.size()) {
                            String v4_72;
                            com.google.android.gms.internal.measurement.zzet v2_66;
                            int v5_32;
                            long v12_0 = ((com.google.android.gms.internal.measurement.zzkr) v21.zzasr.get(v16_1));
                            if (!this.zzky().zzn(v21.zzasp.zzth, v12_0.name)) {
                                int v19_1 = this.zzky().zzo(v21.zzasp.zzth, v12_0.name);
                                if (v19_1 != 0) {
                                    String v4_25 = 0;
                                    com.google.android.gms.internal.measurement.zzet v3_18 = 0;
                                    if (v12_0.zzava == null) {
                                        com.google.android.gms.internal.measurement.zzet v2_30 = new com.google.android.gms.internal.measurement.zzks[0];
                                        v12_0.zzava = v2_30;
                                    }
                                    int v6_11 = v12_0.zzava;
                                    int v7_6 = v6_11.length;
                                    int v5_12 = 0;
                                    while (v5_12 < v7_6) {
                                        com.google.android.gms.internal.measurement.zzet v3_49;
                                        com.google.android.gms.internal.measurement.zzet v2_85;
                                        com.google.android.gms.internal.measurement.zzet v2_84 = v6_11[v5_12];
                                        if (!"_c".equals(v2_84.name)) {
                                            if (!"_r".equals(v2_84.name)) {
                                                v2_85 = v3_18;
                                                v3_49 = v4_25;
                                            } else {
                                                v2_84.zzave = Long.valueOf(1);
                                                v2_85 = 1;
                                                v3_49 = v4_25;
                                            }
                                        } else {
                                            v2_84.zzave = Long.valueOf(1);
                                            v3_49 = 1;
                                            v2_85 = v3_18;
                                        }
                                        v5_12++;
                                        v4_25 = v3_49;
                                        v3_18 = v2_85;
                                    }
                                    if ((v4_25 == null) && (v19_1 != 0)) {
                                        this.zzacv.zzgi().zzjc().zzg("Marking event as conversion", this.zzacv.zzgf().zzbm(v12_0.name));
                                        com.google.android.gms.internal.measurement.zzet v2_37 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v12_0.zzava, (v12_0.zzava.length + 1)));
                                        String v4_31 = new com.google.android.gms.internal.measurement.zzks();
                                        v4_31.name = "_c";
                                        v4_31.zzave = Long.valueOf(1);
                                        v2_37[(v2_37.length - 1)] = v4_31;
                                        v12_0.zzava = v2_37;
                                    }
                                    if (v3_18 == null) {
                                        this.zzacv.zzgi().zzjc().zzg("Marking event as real-time", this.zzacv.zzgf().zzbm(v12_0.name));
                                        com.google.android.gms.internal.measurement.zzet v2_43 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v12_0.zzava, (v12_0.zzava.length + 1)));
                                        com.google.android.gms.internal.measurement.zzet v3_25 = new com.google.android.gms.internal.measurement.zzks();
                                        v3_25.name = "_r";
                                        v3_25.zzave = Long.valueOf(1);
                                        v2_43[(v2_43.length - 1)] = v3_25;
                                        v12_0.zzava = v2_43;
                                    }
                                    if (this.zzjh().zza(this.zzld(), v21.zzasp.zzth, 0, 0, 0, 0, 1).zzagx <= ((long) this.zzacv.zzgk().zzas(v21.zzasp.zzth))) {
                                        v17 = 1;
                                    } else {
                                        com.google.android.gms.internal.measurement.zzet v2_45 = 0;
                                        while (v2_45 < v12_0.zzava.length) {
                                            if (!"_r".equals(v12_0.zzava[v2_45].name)) {
                                                v2_45++;
                                            } else {
                                                com.google.android.gms.internal.measurement.zzet v3_39 = new com.google.android.gms.internal.measurement.zzks[(v12_0.zzava.length - 1)];
                                                if (v2_45 > null) {
                                                    System.arraycopy(v12_0.zzava, 0, v3_39, 0, v2_45);
                                                }
                                                if (v2_45 < v3_39.length) {
                                                    System.arraycopy(v12_0.zzava, (v2_45 + 1), v3_39, v2_45, (v3_39.length - v2_45));
                                                }
                                                v12_0.zzava = v3_39;
                                                break;
                                            }
                                        }
                                    }
                                    if ((!com.google.android.gms.internal.measurement.zzkd.zzcg(v12_0.name)) || ((v19_1 == 0) || (this.zzjh().zza(this.zzld(), v21.zzasp.zzth, 0, 0, 1, 0, 0).zzagv <= ((long) this.zzacv.zzgk().zzb(v21.zzasp.zzth, com.google.android.gms.internal.measurement.zzez.zzair))))) {
                                        v5_32 = v17;
                                    } else {
                                        this.zzacv.zzgi().zziy().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                        String v4_57 = 0;
                                        com.google.android.gms.internal.measurement.zzet v3_43 = 0;
                                        int v6_24 = v12_0.zzava;
                                        int v5_30 = 0;
                                        while (v5_30 < v6_24.length) {
                                            com.google.android.gms.internal.measurement.zzet v3_48;
                                            com.google.android.gms.internal.measurement.zzet v2_80 = v6_24[v5_30];
                                            if (!"_c".equals(v2_80.name)) {
                                                if (!"_err".equals(v2_80.name)) {
                                                    v2_80 = v3_43;
                                                    v3_48 = v4_57;
                                                } else {
                                                    v3_48 = 1;
                                                    v2_80 = v3_43;
                                                }
                                            } else {
                                                v3_48 = v4_57;
                                            }
                                            v5_30++;
                                            v4_57 = v3_48;
                                            v3_43 = v2_80;
                                        }
                                        if ((v4_57 == null) || (v3_43 == null)) {
                                            if (v3_43 == null) {
                                                this.zzacv.zzgi().zziv().zzg("Did not find conversion parameter. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                            } else {
                                                v3_43.name = "_err";
                                                v3_43.zzave = Long.valueOf(10);
                                                v5_32 = v17;
                                            }
                                        } else {
                                            com.google.android.gms.internal.measurement.zzet v2_61 = v12_0.zzava;
                                            String v4_65 = new com.google.android.gms.internal.measurement.zzks[1];
                                            v4_65[0] = v3_43;
                                            v12_0.zzava = ((com.google.android.gms.internal.measurement.zzks[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v2_61, v4_65));
                                            v5_32 = v17;
                                        }
                                    }
                                } else {
                                    this.zzjf();
                                    com.google.android.gms.internal.measurement.zzet v3_14 = v12_0.name;
                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_14);
                                    com.google.android.gms.internal.measurement.zzet v2_26 = -1;
                                    switch (v3_14.hashCode()) {
                                        case 94660:
                                            if (!v3_14.equals("_in")) {
                                            } else {
                                                v2_26 = 0;
                                            }
                                            break;
                                        case 95025:
                                            if (!v3_14.equals("_ug")) {
                                            } else {
                                                v2_26 = 2;
                                            }
                                            break;
                                        case 95027:
                                            if (!v3_14.equals("_ui")) {
                                            } else {
                                                v2_26 = 1;
                                            }
                                            break;
                                    }
                                    com.google.android.gms.internal.measurement.zzet v2_27;
                                    switch (v2_26) {
                                        case 0:
                                        case 1:
                                        case 2:
                                            v2_27 = 1;
                                            break;
                                        default:
                                            v2_27 = 0;
                                    }
                                    if (v2_27 == null) {
                                    }
                                }
                                if ((v18_1 == null) || (!"_e".equals(v12_0.name))) {
                                    v2_66 = v14_1;
                                } else {
                                    if ((v12_0.zzava != null) && (v12_0.zzava.length != 0)) {
                                        this.zzjf();
                                        com.google.android.gms.internal.measurement.zzet v2_72 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v12_0, "_et"));
                                        if (v2_72 != null) {
                                            v2_66 = (v14_1 + v2_72.longValue());
                                        } else {
                                            this.zzacv.zzgi().zziy().zzg("Engagement event does not include duration. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                            v2_66 = v14_1;
                                        }
                                    } else {
                                        this.zzacv.zzgi().zziy().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                        v2_66 = v14_1;
                                    }
                                }
                                v4_72 = (v13_1 + 1);
                                v22.zzavi[v13_1] = v12_0;
                            } else {
                                com.google.android.gms.internal.measurement.zzet v2_94;
                                this.zzacv.zzgi().zziy().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth), this.zzacv.zzgf().zzbm(v12_0.name));
                                if ((!this.zzky().zzcb(v21.zzasp.zzth)) && (!this.zzky().zzcc(v21.zzasp.zzth))) {
                                    v2_94 = 0;
                                } else {
                                    v2_94 = 1;
                                }
                                if ((v2_94 != null) || ("_err".equals(v12_0.name))) {
                                    v2_66 = v14_1;
                                    v4_72 = v13_1;
                                    v5_32 = v17;
                                } else {
                                    this.zzacv.zzgg().zza(v21.zzasp.zzth, 11, "_ev", v12_0.name, 0);
                                    v2_66 = v14_1;
                                    v4_72 = v13_1;
                                    v5_32 = v17;
                                }
                            }
                            v16_1++;
                            v14_1 = v2_66;
                            v13_1 = v4_72;
                            v17 = v5_32;
                        }
                        if (v13_1 < v21.zzasr.size()) {
                            v22.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v22.zzavi, v13_1));
                        }
                        if (v18_1 != null) {
                            String v4_96;
                            long v8_21 = this.zzjh().zzh(v22.zzth, "_lte");
                            if ((v8_21 != 0) && (v8_21.value != null)) {
                                v4_96 = new com.google.android.gms.internal.measurement.zzkc(v22.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf((((Long) v8_21.value).longValue() + v14_1)));
                            } else {
                                v4_96 = new com.google.android.gms.internal.measurement.zzkc(v22.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf(v14_1));
                            }
                            int v5_57 = new com.google.android.gms.internal.measurement.zzkx();
                            v5_57.name = "_lte";
                            v5_57.zzaws = Long.valueOf(this.zzacv.zzbt().currentTimeMillis());
                            v5_57.zzave = ((Long) v4_96.value);
                            com.google.android.gms.internal.measurement.zzet v2_153 = 0;
                            com.google.android.gms.internal.measurement.zzet v3_84 = 0;
                            while (v3_84 < v22.zzavj.length) {
                                if (!"_lte".equals(v22.zzavj[v3_84].name)) {
                                    v3_84++;
                                } else {
                                    v22.zzavj[v3_84] = v5_57;
                                    v2_153 = 1;
                                    break;
                                }
                            }
                            if (v2_153 == null) {
                                v22.zzavj = ((com.google.android.gms.internal.measurement.zzkx[]) java.util.Arrays.copyOf(v22.zzavj, (v22.zzavj.length + 1)));
                                v22.zzavj[(v21.zzasp.zzavj.length - 1)] = v5_57;
                            }
                            if (v14_1 > 0) {
                                this.zzjh().zza(v4_96);
                                this.zzacv.zzgi().zzjb().zzg("Updated lifetime engagement user property with value. Value", v4_96.value);
                            }
                        }
                        v22.zzawa = this.zza(v22.zzth, v22.zzavj, v22.zzavi);
                        if (this.zzacv.zzgk().zzav(v21.zzasp.zzth)) {
                            java.util.HashMap v23_1 = new java.util.HashMap();
                            java.util.HashMap v0_96 = new com.google.android.gms.internal.measurement.zzkr[v22.zzavi.length];
                            com.google.android.gms.internal.measurement.zzkr[] v24 = v0_96;
                            Boolean v18_0 = 0;
                            java.security.SecureRandom v25 = this.zzacv.zzgg().zzlo();
                            com.google.android.gms.internal.measurement.zzkr[] v26 = v22.zzavi;
                            int v27 = v26.length;
                            int v19_0 = 0;
                            while (v19_0 < v27) {
                                com.google.android.gms.internal.measurement.zzet v2_3;
                                com.google.android.gms.internal.measurement.zzkr v28 = v26[v19_0];
                                if (!v28.name.equals("_ep")) {
                                    com.google.android.gms.internal.measurement.zzet v3_119;
                                    int v5_75 = Long.valueOf(1);
                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v5_75 != 0)) {
                                        int v6_61 = v28.zzava;
                                        com.google.android.gms.internal.measurement.zzet v3_118 = 0;
                                        while (v3_118 < v6_61.length) {
                                            long v8_35 = v6_61[v3_118];
                                            if (!"_dbg".equals(v8_35.name)) {
                                                v3_118++;
                                            } else {
                                                if (((!(v5_75 instanceof Long)) || (!v5_75.equals(v8_35.zzave))) && (((!(v5_75 instanceof String)) || (!v5_75.equals(v8_35.zzale))) && ((!(v5_75 instanceof Double)) || (!v5_75.equals(v8_35.zzasw))))) {
                                                    v3_119 = 0;
                                                } else {
                                                    v3_119 = 1;
                                                }
                                            }
                                        }
                                        v3_119 = 0;
                                    } else {
                                        v3_119 = 0;
                                    }
                                    int v20;
                                    if (v3_119 != null) {
                                        v20 = 1;
                                    } else {
                                        v20 = this.zzky().zzp(v21.zzasp.zzth, v28.name);
                                    }
                                    if (v20 > 0) {
                                        com.google.android.gms.internal.measurement.zzet v3_0;
                                        com.google.android.gms.internal.measurement.zzet v2_245 = ((com.google.android.gms.internal.measurement.zzet) v23_1.get(v28.name));
                                        if (v2_245 != null) {
                                            v3_0 = v2_245;
                                        } else {
                                            v3_0 = this.zzjh().zzf(v21.zzasp.zzth, v28.name);
                                            if (v3_0 == null) {
                                                this.zzacv.zzgi().zziy().zze("Event being bundled has no eventAggregate. appId, eventName", v21.zzasp.zzth, v28.name);
                                                v3_0 = new com.google.android.gms.internal.measurement.zzet(v21.zzasp.zzth, v28.name, 1, 1, v28.zzavb.longValue(), 0, 0, 0, 0);
                                            }
                                        }
                                        String v4_130;
                                        this.zzjf();
                                        com.google.android.gms.internal.measurement.zzet v2_254 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v28, "_eid"));
                                        if (v2_254 == null) {
                                            v4_130 = 0;
                                        } else {
                                            v4_130 = 1;
                                        }
                                        String v4_131 = Boolean.valueOf(v4_130);
                                        if (v20 != 1) {
                                            if (v25.nextInt(v20) != 0) {
                                                if (Math.abs((v28.zzavb.longValue() - v3_0.zzahk)) < 86400000) {
                                                    if (!v4_131.booleanValue()) {
                                                        v2_3 = v18_0;
                                                    } else {
                                                        v23_1.put(v28.name, v3_0.zza(v2_254, 0, 0));
                                                    }
                                                } else {
                                                    this.zzjf();
                                                    v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_efs", Long.valueOf(1));
                                                    this.zzjf();
                                                    v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_sr", Long.valueOf(((long) v20)));
                                                    v2_3 = (v18_0 + 1);
                                                    v24[v18_0] = v28;
                                                    if (v4_131.booleanValue()) {
                                                        v3_0 = v3_0.zza(0, Long.valueOf(((long) v20)), Boolean.valueOf(1));
                                                    }
                                                    v23_1.put(v28.name, v3_0.zzai(v28.zzavb.longValue()));
                                                }
                                            } else {
                                                this.zzjf();
                                                v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_sr", Long.valueOf(((long) v20)));
                                                v2_3 = (v18_0 + 1);
                                                v24[v18_0] = v28;
                                                if (v4_131.booleanValue()) {
                                                    v3_0 = v3_0.zza(0, Long.valueOf(((long) v20)), 0);
                                                }
                                                v23_1.put(v28.name, v3_0.zzai(v28.zzavb.longValue()));
                                            }
                                        } else {
                                            v2_3 = (v18_0 + 1);
                                            v24[v18_0] = v28;
                                            if ((v4_131.booleanValue()) && ((v3_0.zzahl != null) || ((v3_0.zzahm != null) || (v3_0.zzahn != null)))) {
                                                v23_1.put(v28.name, v3_0.zza(0, 0, 0));
                                            }
                                        }
                                    } else {
                                        this.zzacv.zzgi().zziy().zze("Sample rate must be positive. event, rate", v28.name, Integer.valueOf(v20));
                                        v2_3 = (v18_0 + 1);
                                        v24[v18_0] = v28;
                                    }
                                } else {
                                    this.zzjf();
                                    com.google.android.gms.internal.measurement.zzet v2_10 = ((String) com.google.android.gms.internal.measurement.zzjz.zzb(v28, "_en"));
                                    com.google.android.gms.internal.measurement.zzet v3_6 = ((com.google.android.gms.internal.measurement.zzet) v23_1.get(v2_10));
                                    if (v3_6 == null) {
                                        v3_6 = this.zzjh().zzf(v21.zzasp.zzth, v2_10);
                                        v23_1.put(v2_10, v3_6);
                                    }
                                    if (v3_6.zzahl != null) {
                                    } else {
                                        if (v3_6.zzahm.longValue() > 1) {
                                            this.zzjf();
                                            v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_sr", v3_6.zzahm);
                                        }
                                        if ((v3_6.zzahn != null) && (v3_6.zzahn.booleanValue())) {
                                            this.zzjf();
                                            v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_efs", Long.valueOf(1));
                                        }
                                        v2_3 = (v18_0 + 1);
                                        v24[v18_0] = v28;
                                    }
                                }
                                v19_0++;
                                v18_0 = v2_3;
                            }
                            if (v18_0 < v22.zzavi.length) {
                                v22.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v24, v18_0));
                            }
                            com.google.android.gms.internal.measurement.zzet v3_96 = v23_1.entrySet().iterator();
                            while (v3_96.hasNext()) {
                                this.zzjh().zza(((com.google.android.gms.internal.measurement.zzet) ((java.util.Map$Entry) v3_96.next()).getValue()));
                            }
                        }
                        v22.zzavl = Long.valueOf(nan);
                        v22.zzavm = Long.valueOf(-0.0);
                        com.google.android.gms.internal.measurement.zzet v2_185 = 0;
                        while (v2_185 < v22.zzavi.length) {
                            com.google.android.gms.internal.measurement.zzet v3_114 = v22.zzavi[v2_185];
                            if (v3_114.zzavb.longValue() < v22.zzavl.longValue()) {
                                v22.zzavl = v3_114.zzavb;
                            }
                            if (v3_114.zzavb.longValue() > v22.zzavm.longValue()) {
                                v22.zzavm = v3_114.zzavb;
                            }
                            v2_185++;
                        }
                        int v6_54 = v21.zzasp.zzth;
                        int v7_31 = this.zzjh().zzbf(v6_54);
                        if (v7_31 != 0) {
                            if (v22.zzavi.length > 0) {
                                String v4_102;
                                com.google.android.gms.internal.measurement.zzet v2_190 = v7_31.zzgt();
                                if (v2_190 == 0) {
                                    v4_102 = 0;
                                } else {
                                    v4_102 = Long.valueOf(v2_190);
                                }
                                v22.zzavo = v4_102;
                                String v4_103 = v7_31.zzgs();
                                if (v4_103 != 0) {
                                    v2_190 = v4_103;
                                }
                                com.google.android.gms.internal.measurement.zzet v2_191;
                                if (v2_190 == 0) {
                                    v2_191 = 0;
                                } else {
                                    v2_191 = Long.valueOf(v2_190);
                                }
                                v22.zzavn = v2_191;
                                v7_31.zzhb();
                                v22.zzavy = Integer.valueOf(((int) v7_31.zzgy()));
                                v7_31.zzr(v22.zzavl.longValue());
                                v7_31.zzs(v22.zzavm.longValue());
                                v22.zzafy = v7_31.zzhj();
                                this.zzjh().zza(v7_31);
                            }
                        } else {
                            this.zzacv.zzgi().zziv().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                        }
                        if (v22.zzavi.length > 0) {
                            this.zzacv.zzgl();
                            com.google.android.gms.internal.measurement.zzet v2_208 = this.zzky().zzbx(v21.zzasp.zzth);
                            if ((v2_208 != null) && (v2_208.zzaum != null)) {
                                v22.zzawf = v2_208.zzaum;
                            } else {
                                if (!android.text.TextUtils.isEmpty(v21.zzasp.zzafa)) {
                                    this.zzacv.zzgi().zziy().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                } else {
                                    v22.zzawf = Long.valueOf(-1);
                                }
                            }
                            this.zzjh().zza(v22, v17);
                        }
                        String v4_112 = this.zzjh();
                        int v5_65 = v21.zzasq;
                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v5_65);
                        v4_112.zzab();
                        v4_112.zzch();
                        int v7_34 = new StringBuilder("rowid in (");
                        com.google.android.gms.internal.measurement.zzet v3_105 = 0;
                        while (v3_105 < v5_65.size()) {
                            if (v3_105 != null) {
                                v7_34.append(",");
                            }
                            v7_34.append(((Long) v5_65.get(v3_105)).longValue());
                            v3_105++;
                        }
                        v7_34.append(")");
                        com.google.android.gms.internal.measurement.zzet v2_224 = v4_112.getWritableDatabase().delete("raw_events", v7_34.toString(), 0);
                        if (v2_224 != v5_65.size()) {
                            v4_112.zzgi().zziv().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v2_224), Integer.valueOf(v5_65.size()));
                        }
                        com.google.android.gms.internal.measurement.zzet v3_110 = this.zzjh();
                        com.google.android.gms.internal.measurement.zzet v2_226 = v3_110.getWritableDatabase();
                        try {
                            int v5_70 = new String[2];
                            v5_70[0] = v6_54;
                            v5_70[1] = v6_54;
                            v2_226.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_70);
                        } catch (com.google.android.gms.internal.measurement.zzet v2_227) {
                            v3_110.zzgi().zziv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v6_54), v2_227);
                        }
                        this.zzjh().setTransactionSuccessful();
                        this.zzjh().endTransaction();
                        v2_125 = 1;
                    }
                    return v2_125;
                } else {
                    v3_64.close();
                }
            }
            if (!android.text.TextUtils.isEmpty(0)) {
                int v6_41;
                if (v16_0 == -1) {
                    int v5_48 = new String[1];
                    v5_48[0] = 0;
                    v6_41 = v5_48;
                } else {
                    int v5_53 = new String[2];
                    v5_53[0] = 0;
                    v5_53[1] = String.valueOf(v16_0);
                    v6_41 = v5_53;
                }
                int v5_59;
                if (v16_0 == -1) {
                    v5_59 = "";
                } else {
                    v5_59 = " and rowid <= ?";
                }
                com.google.android.gms.internal.measurement.zzet v3_100 = v2_101.rawQuery(new StringBuilder((String.valueOf(v5_59).length() + 84)).append("select metadata_fingerprint from raw_events where app_id = ?").append(v5_59).append(" order by rowid limit 1;").toString(), v6_41);
                if (v3_100.moveToFirst()) {
                    int v5_66 = v3_100.getString(0);
                    v3_100.close();
                    v13_0 = v5_66;
                    v12_1 = 0;
                } else {
                    if (v3_100 == null) {
                    } else {
                        v3_100.close();
                    }
                }
            } else {
                int v6_63;
                if (v16_0 == -1) {
                    int v5_74 = new String[1];
                    v5_74[0] = String.valueOf(p32);
                    v6_63 = v5_74;
                } else {
                    int v5_77 = new String[2];
                    v5_77[0] = String.valueOf(v16_0);
                    v5_77[1] = String.valueOf(p32);
                    v6_63 = v5_77;
                }
                int v5_4;
                if (v16_0 == -1) {
                    v5_4 = "";
                } else {
                    v5_4 = "rowid <= ? and ";
                }
                com.google.android.gms.internal.measurement.zzet v3_19 = v2_101.rawQuery(new StringBuilder((String.valueOf(v5_4).length() + 148)).append("select app_id, metadata_fingerprint from raw_events where ").append(v5_4).append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;").toString(), v6_63);
                if (v3_19.moveToFirst()) {
                    String v4_42 = v3_19.getString(0);
                    int v5_25 = v3_19.getString(1);
                    v3_19.close();
                    v13_0 = v5_25;
                    v12_1 = v4_42;
                } else {
                    if (v3_19 == null) {
                    } else {
                        v3_19.close();
                    }
                }
            }
            try {
                String v4_59 = new String[1];
                v4_59[0] = "metadata";
                int v6_27 = new String[2];
                v6_27[0] = v12_1;
                v6_27[1] = v13_0;
                int v11_2 = v2_101.query("raw_events_metadata", v4_59, "app_id = ? and metadata_fingerprint = ?", v6_27, 0, 0, "rowid", "2");
            } catch (com.google.android.gms.internal.measurement.zzet v2_102) {
                v3_64 = v11_2;
                if (v3_64 != null) {
                    v3_64.close();
                }
                throw v2_102;
            } catch (com.google.android.gms.internal.measurement.zzet v2_4) {
                v3_64 = v11_2;
                v4_0 = v12_1;
            }
            if (v11_2.moveToFirst()) {
                com.google.android.gms.internal.measurement.zzet v3_62 = v11_2.getBlob(0);
                com.google.android.gms.internal.measurement.zzet v3_63 = com.google.android.gms.internal.measurement.zzaca.zza(v3_62, 0, v3_62.length);
                String v4_82 = new com.google.android.gms.internal.measurement.zzku();
                try {
                    v4_82.zzb(v3_63);
                } catch (com.google.android.gms.internal.measurement.zzet v2_100) {
                    v14_2.zzgi().zziv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1), v2_100);
                    if (v11_2 == 0) {
                    } else {
                        v11_2.close();
                    }
                }
                if (v11_2.moveToNext()) {
                    v14_2.zzgi().zziy().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1));
                }
                int v5_42;
                int v6_33;
                v11_2.close();
                v21.zzb(v4_82);
                if (v16_0 == -1) {
                    v5_42 = "app_id = ? and metadata_fingerprint = ?";
                    v6_33 = new String[2];
                    v6_33[0] = v12_1;
                    v6_33[1] = v13_0;
                } else {
                    v5_42 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                    v6_33 = new String[3];
                    v6_33[0] = v12_1;
                    v6_33[1] = v13_0;
                    v6_33[2] = String.valueOf(v16_0);
                }
                String v4_87 = new String[4];
                v4_87[0] = "rowid";
                v4_87[1] = "name";
                v4_87[2] = "timestamp";
                v4_87[3] = "data";
                v3_64 = v2_101.query("raw_events", v4_87, v5_42, v6_33, 0, 0, "rowid", 0);
                try {
                    if (!v3_64.moveToFirst()) {
                        v14_2.zzgi().zziy().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1));
                        if (v3_64 == null) {
                        } else {
                            v3_64.close();
                        }
                    }
                } catch (com.google.android.gms.internal.measurement.zzet v2_4) {
                    v4_0 = v12_1;
                }
                do {
                    String v4_88 = v3_64.getLong(0);
                    com.google.android.gms.internal.measurement.zzet v2_106 = v3_64.getBlob(3);
                    com.google.android.gms.internal.measurement.zzet v2_107 = com.google.android.gms.internal.measurement.zzaca.zza(v2_106, 0, v2_106.length);
                    int v6_37 = new com.google.android.gms.internal.measurement.zzkr();
                    v6_37.zzb(v2_107);
                    v6_37.name = v3_64.getString(1);
                    v6_37.zzavb = Long.valueOf(v3_64.getLong(2));
                    if (v21.zza(v4_88, v6_37)) {
                    } else {
                        if (v3_64 == null) {
                        } else {
                            v3_64.close();
                        }
                    }
                } while(v3_64.moveToNext());
                if (v3_64 == null) {
                } else {
                    v3_64.close();
                }
            } else {
                v14_2.zzgi().zziv().zzg("Raw event metadata record is missing. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1));
                if (v11_2 == 0) {
                } else {
                    v11_2.close();
                }
            }
        } catch (com.google.android.gms.internal.measurement.zzet v2_97) {
            this.zzjh().endTransaction();
            throw v2_97;
        }
    }

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


    private final boolean zza(String p14, com.google.android.gms.internal.measurement.zzex p15)
    {
        com.google.android.gms.internal.measurement.zzkd v0_15;
        Long v6_3;
        int v2_9 = p15.zzahg.getString("currency");
        if (!"ecommerce_purchase".equals(p15.name)) {
            v6_3 = p15.zzahg.getLong("value").longValue();
            if (!android.text.TextUtils.isEmpty(v2_9)) {
                com.google.android.gms.internal.measurement.zzkd v0_29 = v2_9.toUpperCase(java.util.Locale.US);
                if (v0_29.matches("[A-Z]{3}")) {
                    int v3_7;
                    String v1_20 = String.valueOf("_ltv_");
                    com.google.android.gms.internal.measurement.zzkd v0_30 = String.valueOf(v0_29);
                    if (v0_30.length() == 0) {
                        v3_7 = new String(v1_20);
                    } else {
                        v3_7 = v1_20.concat(v0_30);
                    }
                    com.google.android.gms.internal.measurement.zzkd v0_0;
                    com.google.android.gms.internal.measurement.zzkd v0_33 = this.zzjh().zzh(p14, v3_7);
                    if ((v0_33 != null) && ((v0_33.value instanceof Long))) {
                        v0_0 = new com.google.android.gms.internal.measurement.zzkc(p14, p15.origin, v3_7, this.zzacv.zzbt().currentTimeMillis(), Long.valueOf((v6_3 + ((Long) v0_33.value).longValue())));
                    } else {
                        String v1_1 = this.zzjh();
                        com.google.android.gms.internal.measurement.zzkd v0_5 = (this.zzacv.zzgk().zzb(p14, com.google.android.gms.internal.measurement.zzez.zzaji) - 1);
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p14);
                        v1_1.zzab();
                        v1_1.zzch();
                        try {
                            int v2_1 = v1_1.getWritableDatabase();
                            int v5_1 = new String[3];
                            v5_1[0] = p14;
                            v5_1[1] = p14;
                            v5_1[2] = String.valueOf(v0_5);
                            v2_1.execSQL("delete from user_attributes where app_id=? and name in (select name from user_attributes where app_id=? and name like \'_ltv_%\' order by set_timestamp desc limit ?,10);", v5_1);
                        } catch (com.google.android.gms.internal.measurement.zzkd v0_8) {
                            v1_1.zzgi().zziv().zze("Error pruning currencies. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p14), v0_8);
                        }
                        v0_0 = new com.google.android.gms.internal.measurement.zzkc(p14, p15.origin, v3_7, this.zzacv.zzbt().currentTimeMillis(), Long.valueOf(v6_3));
                    }
                    if (!this.zzjh().zza(v0_0)) {
                        this.zzacv.zzgi().zziv().zzd("Too many unique user properties are set. Ignoring user property. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p14), this.zzacv.zzgf().zzbo(v0_0.name), v0_0.value);
                        this.zzacv.zzgg().zza(p14, 9, 0, 0, 0);
                    }
                }
            }
            v0_15 = 1;
        } else {
            com.google.android.gms.internal.measurement.zzkd v0_19 = (p15.zzahg.zzbk("value").doubleValue() * 1000000.0);
            if (v0_19 == 0) {
                v0_19 = (((double) p15.zzahg.getLong("value").longValue()) * 1000000.0);
            }
            if ((v0_19 > 9.223372036854776e+18) || (v0_19 < -9.223372036854776e+18)) {
                this.zzacv.zzgi().zziy().zze("Data lost. Currency value is too big. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p14), Double.valueOf(v0_19));
                v0_15 = 0;
            } else {
                v6_3 = Math.round(v0_19);
            }
        }
        return v0_15;
    }

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


    static void zza(com.google.android.gms.internal.measurement.zzfi p7, android.database.sqlite.SQLiteDatabase p8, String p9, String p10, String p11, String[] p12)
    {
        int v0_0 = 0;
        if (p7 != null) {
            if (!com.google.android.gms.internal.measurement.zzeo.zza(p7, p8, p9)) {
                p8.execSQL(p10);
            }
            try {
                if (p7 != null) {
                    String v2_7 = com.google.android.gms.internal.measurement.zzeo.zzb(p8, p9);
                    String v3_0 = p11.split(",");
                    String v1_0 = 0;
                    while (v1_0 < v3_0.length) {
                        String v5 = v3_0[v1_0];
                        if (v2_7.remove(v5)) {
                            v1_0++;
                        } else {
                            throw new android.database.sqlite.SQLiteException(new StringBuilder(((String.valueOf(p9).length() + 35) + String.valueOf(v5).length())).append("Table ").append(p9).append(" is missing required column: ").append(v5).toString());
                        }
                    }
                    if (p12 != null) {
                        while (v0_0 < p12.length) {
                            if (!v2_7.remove(p12[v0_0])) {
                                p8.execSQL(p12[(v0_0 + 1)]);
                            }
                            v0_0 += 2;
                        }
                    }
                    if (!v2_7.isEmpty()) {
                        p7.zziy().zze("Table has extra columns. table, columns", p9, android.text.TextUtils.join(", ", v2_7));
                    }
                    return;
                } else {
                    throw new IllegalArgumentException("Monitor must not be null");
                }
            } catch (int v0_7) {
                p7.zziv().zzg("Failed to verify columns on table that was just created", p9);
                throw v0_7;
            }
        } else {
            throw new IllegalArgumentException("Monitor must not be null");
        }
    }

Method com.google.android.gms.common.util.DbUtils.zza() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private static varargs void zza(android.database.sqlite.SQLiteDatabase p8, String p9, String[] p10)
    {
        Throwable v0_2;
        Throwable v5 = 0;
        if ((!"table".equals(p9)) && ((!"view".equals(p9)) && (!"trigger".equals(p9)))) {
            v0_2 = 0;
        } else {
            v0_2 = 1;
        }
        com.google.android.gms.common.internal.Preconditions.checkArgument(v0_2);
        android.database.Cursor v2_0 = new String[1];
        v2_0[0] = "name";
        String v4_1 = new String[1];
        v4_1[0] = p9;
        android.database.Cursor v2_1 = p8.query("SQLITE_MASTER", v2_0, "type == ?", v4_1, 0, 0, 0);
        try {
            Throwable v0_6 = com.google.android.gms.common.util.CollectionUtils.setOf(p10);
        } catch (Throwable v0_8) {
            if (v2_1 != null) {
                if (v5 == null) {
                    v2_1.close();
                } else {
                    try {
                        v2_1.close();
                    } catch (Throwable v1_5) {
                        com.google.android.gms.internal.stable.zzk.zza(v5, v1_5);
                    }
                }
            }
            throw v0_8;
        } catch (Throwable v0_7) {
            try {
                throw v0_7;
            } catch (Throwable v1_4) {
                v5 = v0_7;
                v0_8 = v1_4;
            }
        }
        while (v2_1.moveToNext()) {
            Throwable v1_3 = v2_1.getString(0);
            if (!v0_6.contains(v1_3)) {
                p8.execSQL(new StringBuilder(((String.valueOf(p9).length() + 8) + String.valueOf(v1_3).length())).append("DROP ").append(p9).append(" \'").append(v1_3).append("\'").toString());
            }
        }
        if (v2_1 != null) {
            v2_1.close();
        }
        return;
    }

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


    public final java.util.List zzp(int p15)
    {
        java.util.ArrayList v0_12;
        this.zzab();
        this.zzfv();
        if (!this.zzakg) {
            java.util.ArrayList v10_1 = new java.util.ArrayList();
            if (this.getContext().getDatabasePath("google_app_measurement_local.db").exists()) {
                Throwable 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_7 = -1;
                                try {
                                    while (v2_1.moveToNext()) {
                                        v4_7 = 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) {
                                                    this.zzgi().zziv().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.measurement.zzef) com.google.android.gms.internal.measurement.zzef.CREATOR.createFromParcel(v7_0));
                                                    } catch (String v1) {
                                                        this.zzgi().zziv().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.measurement.zzka) com.google.android.gms.internal.measurement.zzka.CREATOR.createFromParcel(v7_1));
                                                } catch (String v1) {
                                                    this.zzgi().zziv().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.measurement.zzex) com.google.android.gms.internal.measurement.zzex.CREATOR.createFromParcel(v3_5));
                                            } catch (String v1_25) {
                                                v3_5.recycle();
                                                throw v1_25;
                                            } catch (String v1) {
                                                this.zzgi().zziv().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_8 = v1_30;
                                    if (v2_1 != null) {
                                        v2_1.close();
                                    }
                                    if (v1_27 != null) {
                                        v1_27.close();
                                    }
                                    throw v0_8;
                                } catch (String v1_28) {
                                    String v1_29 = v2_1;
                                    Throwable v2_0 = v0_14;
                                    java.util.ArrayList v0_7 = v1_28;
                                    try {
                                        this.zzgi().zziv().zzg("Error reading entries from local database", v0_7);
                                        this.zzakg = 1;
                                    } catch (java.util.ArrayList v0_8) {
                                        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) {
                                    v1_27 = v0_14;
                                    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 (String v1_26) {
                                    v1_27 = v0_14;
                                    java.util.ArrayList v0_4 = v1_26;
                                    if (v1_27 != null) {
                                        if (v1_27.inTransaction()) {
                                            v1_27.endTransaction();
                                        }
                                    }
                                    this.zzgi().zziv().zzg("Error reading entries from local database", v0_4);
                                    this.zzakg = 1;
                                    if (v2_1 != null) {
                                        v2_1.close();
                                    }
                                    if (v1_27 == null) {
                                    } else {
                                        v1_27.close();
                                        v0_11 = v9;
                                    }
                                }
                                String v6_6 = new String[1];
                                v6_6[0] = Long.toString(v4_7);
                                if (v0_14.delete("messages", "rowid <= ?", v6_6) < v10_1.size()) {
                                    this.zzgi().zziv().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_12 = v10_1;
                            } else {
                                this.zzakg = 1;
                                if (v0_14 != null) {
                                    v0_14.close();
                                }
                                v0_12 = 0;
                            }
                        } catch (String v1_36) {
                            v2_1 = 0;
                            v1_27 = v0_14;
                            v0_8 = v1_36;
                        } catch (String v1_34) {
                            v2_0 = v0_14;
                            v0_7 = v1_34;
                            v1_29 = 0;
                        } catch (String v1) {
                            v2_1 = 0;
                            v1_27 = v0_14;
                        } catch (String v1_32) {
                            v2_1 = 0;
                            v1_27 = v0_14;
                            v0_4 = v1_32;
                        }
                    } catch (java.util.ArrayList v0_8) {
                        v2_1 = 0;
                    } catch (java.util.ArrayList v0_7) {
                        v2_0 = 0;
                        v1_29 = 0;
                    } catch (java.util.ArrayList v0) {
                        v2_1 = 0;
                    } catch (java.util.ArrayList v0_4) {
                        v2_1 = 0;
                    } catch (java.util.ArrayList v0_8) {
                    }
                }
                this.zzgi().zziy().log("Failed to read events from database in reasonable time");
                v0_12 = 0;
            } else {
                v0_12 = v10_1;
            }
        } else {
            v0_12 = 0;
        }
        return v0_12;
    }

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


    public final void resetAnalyticsData()
    {
        this.zzfv();
        this.zzab();
        try {
            Integer v0_4 = (this.getWritableDatabase().delete("messages", 0, 0) + 0);
        } catch (Integer v0_1) {
            this.zzgi().zziv().zzg("Error resetting local analytics data. error", v0_1);
            return;
        }
        if (v0_4 <= null) {
            return;
        } else {
            this.zzgi().zzjc().zzg("Reset local analytics data. records", Integer.valueOf(v0_4));
            return;
        }
    }

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


    private final boolean zza(int p14, byte[] p15)
    {
        int v0_4;
        this.zzfv();
        this.zzab();
        if (!this.zzakg) {
            android.content.ContentValues v7_1 = new android.content.ContentValues();
            v7_1.put("type", Integer.valueOf(p14));
            v7_1.put("entry", p15);
            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.measurement.zzfk v1_0) {
                    this.zzgi().zziv().zzg("Error writing entry to local database", v1_0);
                    this.zzakg = 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_4 = 1;
                } catch (com.google.android.gms.internal.measurement.zzfk v1) {
                    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;
                } catch (com.google.android.gms.internal.measurement.zzfk v1_20) {
                    if (v3 != null) {
                        if (v3.inTransaction()) {
                            v3.endTransaction();
                        }
                    }
                    this.zzgi().zziv().zzg("Error writing entry to local database", v1_20);
                    this.zzakg = 1;
                    if (v2 != null) {
                        v2.close();
                    }
                    if (v3 == null) {
                    } else {
                        v3.close();
                    }
                }
                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) {
                        this.zzgi().zziv().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) {
                            this.zzgi().zziv().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.zzakg = 1;
                    if (v3 != null) {
                        v3.close();
                    }
                    v0_4 = 0;
                }
            }
            this.zzgi().zziy().log("Failed to write entry to local database");
            v0_4 = 0;
        } else {
            v0_4 = 0;
        }
        return v0_4;
    }

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


    public final int zzj(String p7, String p8)
    {
        String vtmp1 = com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p7);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p8);
        this.zzab();
        this.zzch();
        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.zzgi().zziv().zzd("Error deleting conditional property", com.google.android.gms.internal.measurement.zzfi.zzbp(p7), this.zzgf().zzbo(p8), v1_0);
        }
        return v0;
    }

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


    final void zzhx()
    {
        this.zzab();
        this.zzch();
        if (this.zzid()) {
            Integer v0_15 = this.zzgj().zzalw.get();
            String v2_1 = this.zzbt().elapsedRealtime();
            if (Math.abs((v2_1 - v0_15)) > ((Long) com.google.android.gms.internal.measurement.zzez.zzajc.get()).longValue()) {
                this.zzgj().zzalw.set(v2_1);
                this.zzab();
                this.zzch();
                if (this.zzid()) {
                    Integer v0_10 = this.getWritableDatabase();
                    com.google.android.gms.internal.measurement.zzfk v1_1 = new String[2];
                    v1_1[0] = String.valueOf(this.zzbt().currentTimeMillis());
                    v1_1[1] = String.valueOf(com.google.android.gms.internal.measurement.zzeh.zzhq());
                    Integer v0_11 = v0_10.delete("queue", "abs(bundle_end_timestamp - ?) > cast(? as integer)", v1_1);
                    if (v0_11 > null) {
                        this.zzgi().zzjc().zzg("Deleted stale rows. rowsDeleted", Integer.valueOf(v0_11));
                    }
                }
            }
        }
        return;
    }

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


    public final void zzg(String p6, String p7)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p6);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p7);
        this.zzab();
        this.zzch();
        try {
            android.database.sqlite.SQLiteException v0_3 = this.getWritableDatabase();
            Object v3_2 = new String[2];
            v3_2[0] = p6;
            v3_2[1] = p7;
            this.zzgi().zzjc().zzg("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.zzgi().zziv().zzd("Error deleting user attribute. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p6), this.zzgf().zzbo(p7), v0_2);
        }
        return;
    }

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


    public final long zzbg(String p7)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p7);
        this.zzab();
        this.zzch();
        try {
            long v0_3 = this.getWritableDatabase();
            com.google.android.gms.internal.measurement.zzfk v1_2 = String.valueOf(Math.max(0, Math.min(1000000, this.zzgk().zzb(p7, com.google.android.gms.internal.measurement.zzez.zzait))));
            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.zzgi().zziv().zze("Error deleting over the limit events. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p7), v0_2);
            v0_1 = 0;
        }
        return v0_1;
    }

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


    final void zzb(String p13, com.google.android.gms.internal.measurement.zzkg[] p14)
    {
        int v0_0 = 0;
        this.zzch();
        this.zzab();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p14);
        android.database.sqlite.SQLiteDatabase v5 = this.getWritableDatabase();
        v5.beginTransaction();
        try {
            this.zzch();
            this.zzab();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(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.zzch();
            this.zzab();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_8);
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_8.zzatg);
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_8.zzatf);
            if (v3_8.zzate != null) {
                String v7_6 = v3_8.zzate.intValue();
                String v8_3 = v3_8.zzatg;
                int v2_3 = 0;
                while (v2_3 < v8_3.length) {
                    if (v8_3[v2_3].zzatk != null) {
                        v2_3++;
                    } else {
                        this.zzgi().zziy().zze("Event filter with no ID. Audience definition ignored. appId, audienceId", com.google.android.gms.internal.measurement.zzfi.zzbp(p13), v3_8.zzate);
                    }
                }
                String v8_4 = v3_8.zzatf;
                int v2_0 = 0;
                while (v2_0 < v8_4.length) {
                    if (v8_4[v2_0].zzatk != null) {
                        v2_0++;
                    } else {
                        this.zzgi().zziy().zze("Property filter with no ID. Audience definition ignored. appId, audienceId", com.google.android.gms.internal.measurement.zzfi.zzbp(p13), v3_8.zzate);
                    }
                }
                String v8_5 = v3_8.zzatg;
                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.zzatf;
                        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.zzch();
                        this.zzab();
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(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.zzgi().zziy().zzg("Audience with no ID. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(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].zzate);
            v0_0++;
        }
        this.zza(p13, v1_3);
        v5.setTransactionSuccessful();
        v5.endTransaction();
        return;
    }

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


    private final boolean zza(String p9, java.util.List p10)
    {
        String v2 = 0;
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p9);
        this.zzch();
        this.zzab();
        Object v4_1 = this.getWritableDatabase();
        try {
            int v1_11 = new String[1];
            v1_11[0] = p9;
            int v0_1 = this.zza("select count(1) from audience_filter_values where app_id=?", v1_11);
            String v5_4 = Math.max(0, Math.min(2000, this.zzgk().zzb(p9, com.google.android.gms.internal.measurement.zzez.zzajj)));
        } catch (int v0_3) {
            this.zzgi().zziv().zze("Database error querying filters. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p9), v0_3);
            return v2;
        }
        if (v0_1 > ((long) v5_4)) {
            String[] v6_4 = new java.util.ArrayList();
            int v1_0 = 0;
            while (v1_0 < p10.size()) {
                int v0_16 = ((Integer) p10.get(v1_0));
                if ((v0_16 == 0) || (!(v0_16 instanceof Integer))) {
                    return v2;
                } else {
                    v6_4.add(Integer.toString(v0_16.intValue()));
                    v1_0++;
                }
            }
            int v0_6 = android.text.TextUtils.join(",", v6_4);
            int v0_9 = new StringBuilder((String.valueOf(v0_6).length() + 2)).append("(").append(v0_6).append(")").toString();
            int v0_13 = new StringBuilder((String.valueOf(v0_9).length() + 140)).append("audience_id in (select audience_id from audience_filter_values where app_id=? and audience_id not in ").append(v0_9).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_13, v6_14) <= 0) {
                return v2;
            } else {
                v2 = 1;
                return v2;
            }
        } else {
            return v2;
        }
    }

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


    final void zzf(com.google.android.gms.internal.measurement.zzeb p11)
    {
        this.zzab();
        this.zzlc();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p11);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p11.packageName);
        if (!android.text.TextUtils.isEmpty(p11.zzafa)) {
            String v0_2 = this.zzjh().zzbf(p11.packageName);
            if ((v0_2 != null) && ((android.text.TextUtils.isEmpty(v0_2.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p11.zzafa)))) {
                v0_2.zzx(0);
                this.zzjh().zza(v0_2);
                this.zzky().zzca(p11.packageName);
            }
            if (p11.zzafk) {
                long v4 = p11.zzaga;
                if (v4 == 0) {
                    v4 = this.zzacv.zzbt().currentTimeMillis();
                }
                Long v6_13;
                String v0_74 = p11.zzagb;
                if ((v0_74 == null) || (v0_74 == 1)) {
                    v6_13 = v0_74;
                } else {
                    this.zzacv.zzgi().zziy().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.measurement.zzfi.zzbp(p11.packageName), Integer.valueOf(v0_74));
                    v6_13 = 0;
                }
                this.zzjh().beginTransaction();
                try {
                    String v0_7 = this.zzjh().zzbf(p11.packageName);
                } catch (String v0_80) {
                    this.zzjh().endTransaction();
                    throw v0_80;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p11.zzafa)))) {
                    this.zzacv.zzgi().zziy().zzg("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v0_7.zzah()));
                    String v1_48 = this.zzjh();
                    long v2_58 = v0_7.zzah();
                    v1_48.zzch();
                    v1_48.zzab();
                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v2_58);
                    try {
                        String v0_1 = v1_48.getWritableDatabase();
                        String v3_1 = new String[1];
                        v3_1[0] = v2_58;
                        String v0_4 = (v0_1.delete("audience_filter_values", "app_id=?", v3_1) + ((((((((v0_1.delete("events", "app_id=?", v3_1) + 0) + v0_1.delete("user_attributes", "app_id=?", v3_1)) + v0_1.delete("conditional_properties", "app_id=?", v3_1)) + v0_1.delete("apps", "app_id=?", v3_1)) + v0_1.delete("raw_events", "app_id=?", v3_1)) + v0_1.delete("raw_events_metadata", "app_id=?", v3_1)) + v0_1.delete("event_filters", "app_id=?", v3_1)) + v0_1.delete("property_filters", "app_id=?", v3_1)));
                    } catch (String v0_6) {
                        v1_48.zzgi().zziv().zze("Error deleting application data. appId, error", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_58), v0_6);
                        v0_7 = 0;
                    }
                    if (v0_4 <= null) {
                    } else {
                        v1_48.zzgi().zzjc().zze("Deleted application data. app, records", v2_58, Integer.valueOf(v0_4));
                    }
                }
                if (v0_7 != null) {
                    if (v0_7.zzgu() == -2147483648) {
                        if ((v0_7.zzag() != null) && (!v0_7.zzag().equals(p11.zztg))) {
                            String v3_6 = new android.os.Bundle();
                            v3_6.putString("_pv", v0_7.zzag());
                            this.zzb(new com.google.android.gms.internal.measurement.zzex("_au", new com.google.android.gms.internal.measurement.zzeu(v3_6), "auto", v4), p11);
                        }
                    } else {
                        if (v0_7.zzgu() != p11.zzafg) {
                            String v3_9 = new android.os.Bundle();
                            v3_9.putString("_pv", v0_7.zzag());
                            this.zzb(new com.google.android.gms.internal.measurement.zzex("_au", new com.google.android.gms.internal.measurement.zzeu(v3_9), "auto", v4), p11);
                        }
                    }
                }
                this.zzg(p11);
                String v0_14 = 0;
                if (v6_13 != null) {
                    if (v6_13 == 1) {
                        v0_14 = this.zzjh().zzf(p11.packageName, "_v");
                    }
                } else {
                    v0_14 = this.zzjh().zzf(p11.packageName, "_f");
                }
                if (v0_14 != null) {
                    if (p11.zzafz) {
                        this.zzb(new com.google.android.gms.internal.measurement.zzex("_cd", new com.google.android.gms.internal.measurement.zzeu(new android.os.Bundle()), "auto", v4), p11);
                    }
                } else {
                    String v0_22 = ((1 + (v4 / 3600000)) * 3600000);
                    if (v6_13 != null) {
                        if (v6_13 == 1) {
                            this.zzb(new com.google.android.gms.internal.measurement.zzka("_fvt", v4, Long.valueOf(v0_22), "auto"), p11);
                            this.zzab();
                            this.zzlc();
                            String v3_16 = new android.os.Bundle();
                            v3_16.putLong("_c", 1);
                            v3_16.putLong("_r", 1);
                            if ((this.zzacv.zzgk().zzbc(p11.packageName)) && (p11.zzagc)) {
                                v3_16.putLong("_dac", 1);
                            }
                            this.zzb(new com.google.android.gms.internal.measurement.zzex("_v", new com.google.android.gms.internal.measurement.zzeu(v3_16), "auto", v4), p11);
                        }
                    } else {
                        this.zzb(new com.google.android.gms.internal.measurement.zzka("_fot", v4, Long.valueOf(v0_22), "auto"), p11);
                        this.zzab();
                        this.zzlc();
                        android.os.Bundle v8_19 = new android.os.Bundle();
                        v8_19.putLong("_c", 1);
                        v8_19.putLong("_r", 1);
                        v8_19.putLong("_uwa", 0);
                        v8_19.putLong("_pfo", 0);
                        v8_19.putLong("_sys", 0);
                        v8_19.putLong("_sysu", 0);
                        if ((this.zzacv.zzgk().zzbc(p11.packageName)) && (p11.zzagc)) {
                            v8_19.putLong("_dac", 1);
                        }
                        if (this.zzacv.getContext().getPackageManager() != null) {
                            String v1_25 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzacv.getContext()).getPackageInfo(p11.packageName, 0);
                            if ((v1_25 != null) && (v1_25.firstInstallTime != 0)) {
                                String v0_56 = 0;
                                if (v1_25.firstInstallTime == v1_25.lastUpdateTime) {
                                    v0_56 = 1;
                                } else {
                                    v8_19.putLong("_uwa", 1);
                                }
                                String v0_58;
                                if (v0_56 == null) {
                                    v0_58 = 0;
                                } else {
                                    v0_58 = 1;
                                }
                                this.zzb(new com.google.android.gms.internal.measurement.zzka("_fi", v4, Long.valueOf(v0_58), "auto"), p11);
                            }
                            String v0_63 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzacv.getContext()).getApplicationInfo(p11.packageName, 0);
                            if (v0_63 != null) {
                                if ((v0_63.flags & 1) != 0) {
                                    v8_19.putLong("_sys", 1);
                                }
                                if ((v0_63.flags & 128) != 0) {
                                    v8_19.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.zzacv.zzgi().zziv().zzg("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p11.packageName));
                        }
                        String v0_72 = this.zzjh();
                        String v1_33 = p11.packageName;
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v1_33);
                        v0_72.zzab();
                        v0_72.zzch();
                        String v0_73 = v0_72.zzm(v1_33, "first_open_count");
                        if (v0_73 >= 0) {
                            v8_19.putLong("_pfo", v0_73);
                        }
                        this.zzb(new com.google.android.gms.internal.measurement.zzex("_f", new com.google.android.gms.internal.measurement.zzeu(v8_19), "auto", v4), p11);
                    }
                    String v3_26 = new android.os.Bundle();
                    v3_26.putLong("_et", 1);
                    this.zzb(new com.google.android.gms.internal.measurement.zzex("_e", new com.google.android.gms.internal.measurement.zzeu(v3_26), "auto", v4), p11);
                }
                this.zzjh().setTransactionSuccessful();
                this.zzjh().endTransaction();
            } else {
                this.zzg(p11);
            }
        }
        return;
    }

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


    final void zzd(com.google.android.gms.internal.measurement.zzeb p11)
    {
        if (this.zzasj != null) {
            this.zzask = new java.util.ArrayList();
            this.zzask.addAll(this.zzasj);
        }
        boolean v1_5 = this.zzjh();
        String v2_0 = p11.packageName;
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v2_0);
        v1_5.zzab();
        v1_5.zzch();
        try {
            com.google.android.gms.internal.measurement.zzeb v0_1 = v1_5.getWritableDatabase();
            String v3_1 = new String[1];
            v3_1[0] = v2_0;
            com.google.android.gms.internal.measurement.zzeb v0_6 = (v0_1.delete("main_event_params", "app_id=?", v3_1) + ((((((((v0_1.delete("apps", "app_id=?", v3_1) + 0) + v0_1.delete("events", "app_id=?", v3_1)) + v0_1.delete("user_attributes", "app_id=?", v3_1)) + v0_1.delete("conditional_properties", "app_id=?", v3_1)) + v0_1.delete("raw_events", "app_id=?", v3_1)) + v0_1.delete("raw_events_metadata", "app_id=?", v3_1)) + v0_1.delete("queue", "app_id=?", v3_1)) + v0_1.delete("audience_filter_values", "app_id=?", v3_1)));
        } catch (com.google.android.gms.internal.measurement.zzeb v0_8) {
            v1_5.zzgi().zziv().zze("Error resetting analytics data. appId, error", com.google.android.gms.internal.measurement.zzfi.zzbp(v2_0), v0_8);
            com.google.android.gms.internal.measurement.zzeb v0_10 = this.zza(this.zzacv.getContext(), p11.packageName, p11.zzafa, p11.zzafk, p11.zzafm, p11.zzafn, p11.zzaga);
            if ((!this.zzacv.zzgk().zzbc(p11.packageName)) || (p11.zzafk)) {
                this.zzf(v0_10);
            }
            return;
        }
        if (v0_6 <= null) {
        } else {
            v1_5.zzgi().zzjc().zze("Reset analytics data. app, records", v2_0, Integer.valueOf(v0_6));
        }
    }

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


    final void zza(int p11, Throwable p12, byte[] p13, String p14)
    {
        this.zzab();
        this.zzlc();
        try {
            if (p13 == null) {
                p13 = new byte[0];
            }
        } catch (long v0_23) {
            this.zzasf = 0;
            this.zzlh();
            throw v0_23;
        }
        android.database.sqlite.SQLiteException v1_11 = this.zzasj;
        this.zzasj = 0;
        if (((p11 != 200) && (p11 != 204)) || (p12 != null)) {
            long v0_29;
            this.zzacv.zzgi().zzjc().zze("Network upload failed. Will retry later. code, error", Integer.valueOf(p11), p12);
            this.zzacv.zzgj().zzalu.set(this.zzacv.zzbt().currentTimeMillis());
            if ((p11 != 503) && (p11 != 429)) {
                v0_29 = 0;
            } else {
                v0_29 = 1;
            }
            if (v0_29 != 0) {
                this.zzacv.zzgj().zzalv.set(this.zzacv.zzbt().currentTimeMillis());
            }
            if (this.zzacv.zzgk().zzay(p14)) {
                this.zzjh().zzc(v1_11);
            }
            this.zzlg();
        } else {
            try {
                this.zzacv.zzgj().zzalt.set(this.zzacv.zzbt().currentTimeMillis());
                this.zzacv.zzgj().zzalu.set(0);
                this.zzlg();
                this.zzacv.zzgi().zzjc().zze("Successful upload. Got network response. code, size", Integer.valueOf(p11), Integer.valueOf(p13.length));
                this.zzjh().beginTransaction();
                try {
                    long v4_11 = v1_11.iterator();
                } catch (long v0_13) {
                    this.zzjh().endTransaction();
                    throw v0_13;
                }
                while (v4_11.hasNext()) {
                    long v0_10 = ((Long) v4_11.next());
                    try {
                        com.google.android.gms.internal.measurement.zzfk v5_0 = this.zzjh();
                        String v6_0 = v0_10.longValue();
                        v5_0.zzab();
                        v5_0.zzch();
                        android.database.sqlite.SQLiteException v1_0 = v5_0.getWritableDatabase();
                        String[] v8_1 = new String[1];
                        v8_1[0] = String.valueOf(v6_0);
                        try {
                            if (v1_0.delete("queue", "rowid=?", v8_1) != 1) {
                                throw new android.database.sqlite.SQLiteException("Deleted fewer rows from queue than expected");
                            }
                        } catch (android.database.sqlite.SQLiteException v1_4) {
                            v5_0.zzgi().zziv().zzg("Failed to delete a bundle in a queue table", v1_4);
                            throw v1_4;
                        }
                    } catch (android.database.sqlite.SQLiteException v1_5) {
                        if (this.zzask != null) {
                            if (!this.zzask.contains(v0_10)) {
                            }
                        }
                        throw v1_5;
                    }
                }
                this.zzjh().setTransactionSuccessful();
                this.zzjh().endTransaction();
                this.zzask = 0;
                if ((!this.zzkz().zzex()) || (!this.zzlf())) {
                    this.zzasl = -1;
                    this.zzlg();
                } else {
                    this.zzle();
                }
                this.zzasa = 0;
            } catch (long v0_14) {
                this.zzacv.zzgi().zziv().zzg("Database error while trying to delete uploaded bundles", v0_14);
                this.zzasa = this.zzacv.zzbt().elapsedRealtime();
                this.zzacv.zzgi().zzjc().zzg("Disable upload, time", Long.valueOf(this.zzasa));
            }
        }
        this.zzasf = 0;
        this.zzlh();
        return;
    }

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


    private final boolean zzd(String p31, long p32)
    {
        this.zzjh().beginTransaction();
        try {
            com.google.android.gms.internal.measurement.zzjt$zza v21 = new com.google.android.gms.internal.measurement.zzjt$zza;
            v21(this, 0);
            int v14_2 = this.zzjh();
            String v4_0 = 0;
            int v16_0 = this.zzasl;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v21);
            v14_2.zzab();
            v14_2.zzch();
            com.google.android.gms.internal.measurement.zzet v3_64 = 0;
            try {
                long v12_1;
                String v13_0;
                com.google.android.gms.internal.measurement.zzet v2_101 = v14_2.getWritableDatabase();
            } catch (com.google.android.gms.internal.measurement.zzet v2_4) {
                v14_2.zzgi().zziv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v4_0), v2_4);
                if (v3_64 == null) {
                    if ((v21.zzasr != null) && (!v21.zzasr.isEmpty())) {
                        com.google.android.gms.internal.measurement.zzet v2_122 = 0;
                    } else {
                        v2_122 = 1;
                    }
                    com.google.android.gms.internal.measurement.zzet v2_125;
                    if (v2_122 != null) {
                        this.zzjh().setTransactionSuccessful();
                        this.zzjh().endTransaction();
                        v2_125 = 0;
                    } else {
                        int v17 = 0;
                        com.google.android.gms.internal.measurement.zzku v22 = v21.zzasp;
                        com.google.android.gms.internal.measurement.zzet v2_128 = new com.google.android.gms.internal.measurement.zzkr[v21.zzasr.size()];
                        v22.zzavi = v2_128;
                        String v13_1 = 0;
                        int v14_1 = 0;
                        Boolean v18_1 = this.zzacv.zzgk().zzaw(v22.zzth);
                        int v16_1 = 0;
                        while (v16_1 < v21.zzasr.size()) {
                            com.google.android.gms.internal.measurement.zzet v2_66;
                            int v5_32;
                            String v4_72;
                            long v12_0 = ((com.google.android.gms.internal.measurement.zzkr) v21.zzasr.get(v16_1));
                            if (!this.zzky().zzn(v21.zzasp.zzth, v12_0.name)) {
                                int v19_1 = this.zzky().zzo(v21.zzasp.zzth, v12_0.name);
                                if (v19_1 != 0) {
                                    String v4_25 = 0;
                                    com.google.android.gms.internal.measurement.zzet v3_18 = 0;
                                    if (v12_0.zzava == null) {
                                        com.google.android.gms.internal.measurement.zzet v2_30 = new com.google.android.gms.internal.measurement.zzks[0];
                                        v12_0.zzava = v2_30;
                                    }
                                    int v6_11 = v12_0.zzava;
                                    int v7_6 = v6_11.length;
                                    int v5_12 = 0;
                                    while (v5_12 < v7_6) {
                                        com.google.android.gms.internal.measurement.zzet v3_49;
                                        com.google.android.gms.internal.measurement.zzet v2_85;
                                        com.google.android.gms.internal.measurement.zzet v2_84 = v6_11[v5_12];
                                        if (!"_c".equals(v2_84.name)) {
                                            if (!"_r".equals(v2_84.name)) {
                                                v2_85 = v3_18;
                                                v3_49 = v4_25;
                                            } else {
                                                v2_84.zzave = Long.valueOf(1);
                                                v2_85 = 1;
                                                v3_49 = v4_25;
                                            }
                                        } else {
                                            v2_84.zzave = Long.valueOf(1);
                                            v3_49 = 1;
                                            v2_85 = v3_18;
                                        }
                                        v5_12++;
                                        v4_25 = v3_49;
                                        v3_18 = v2_85;
                                    }
                                    if ((v4_25 == null) && (v19_1 != 0)) {
                                        this.zzacv.zzgi().zzjc().zzg("Marking event as conversion", this.zzacv.zzgf().zzbm(v12_0.name));
                                        com.google.android.gms.internal.measurement.zzet v2_37 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v12_0.zzava, (v12_0.zzava.length + 1)));
                                        String v4_31 = new com.google.android.gms.internal.measurement.zzks();
                                        v4_31.name = "_c";
                                        v4_31.zzave = Long.valueOf(1);
                                        v2_37[(v2_37.length - 1)] = v4_31;
                                        v12_0.zzava = v2_37;
                                    }
                                    if (v3_18 == null) {
                                        this.zzacv.zzgi().zzjc().zzg("Marking event as real-time", this.zzacv.zzgf().zzbm(v12_0.name));
                                        com.google.android.gms.internal.measurement.zzet v2_43 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v12_0.zzava, (v12_0.zzava.length + 1)));
                                        com.google.android.gms.internal.measurement.zzet v3_25 = new com.google.android.gms.internal.measurement.zzks();
                                        v3_25.name = "_r";
                                        v3_25.zzave = Long.valueOf(1);
                                        v2_43[(v2_43.length - 1)] = v3_25;
                                        v12_0.zzava = v2_43;
                                    }
                                    if (this.zzjh().zza(this.zzld(), v21.zzasp.zzth, 0, 0, 0, 0, 1).zzagx <= ((long) this.zzacv.zzgk().zzas(v21.zzasp.zzth))) {
                                        v17 = 1;
                                    } else {
                                        com.google.android.gms.internal.measurement.zzet v2_45 = 0;
                                        while (v2_45 < v12_0.zzava.length) {
                                            if (!"_r".equals(v12_0.zzava[v2_45].name)) {
                                                v2_45++;
                                            } else {
                                                com.google.android.gms.internal.measurement.zzet v3_39 = new com.google.android.gms.internal.measurement.zzks[(v12_0.zzava.length - 1)];
                                                if (v2_45 > null) {
                                                    System.arraycopy(v12_0.zzava, 0, v3_39, 0, v2_45);
                                                }
                                                if (v2_45 < v3_39.length) {
                                                    System.arraycopy(v12_0.zzava, (v2_45 + 1), v3_39, v2_45, (v3_39.length - v2_45));
                                                }
                                                v12_0.zzava = v3_39;
                                                break;
                                            }
                                        }
                                    }
                                    if ((!com.google.android.gms.internal.measurement.zzkd.zzcg(v12_0.name)) || ((v19_1 == 0) || (this.zzjh().zza(this.zzld(), v21.zzasp.zzth, 0, 0, 1, 0, 0).zzagv <= ((long) this.zzacv.zzgk().zzb(v21.zzasp.zzth, com.google.android.gms.internal.measurement.zzez.zzair))))) {
                                        v5_32 = v17;
                                    } else {
                                        this.zzacv.zzgi().zziy().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                        String v4_57 = 0;
                                        com.google.android.gms.internal.measurement.zzet v3_43 = 0;
                                        int v6_24 = v12_0.zzava;
                                        int v5_30 = 0;
                                        while (v5_30 < v6_24.length) {
                                            com.google.android.gms.internal.measurement.zzet v3_48;
                                            com.google.android.gms.internal.measurement.zzet v2_80 = v6_24[v5_30];
                                            if (!"_c".equals(v2_80.name)) {
                                                if (!"_err".equals(v2_80.name)) {
                                                    v2_80 = v3_43;
                                                    v3_48 = v4_57;
                                                } else {
                                                    v3_48 = 1;
                                                    v2_80 = v3_43;
                                                }
                                            } else {
                                                v3_48 = v4_57;
                                            }
                                            v5_30++;
                                            v4_57 = v3_48;
                                            v3_43 = v2_80;
                                        }
                                        if ((v4_57 == null) || (v3_43 == null)) {
                                            if (v3_43 == null) {
                                                this.zzacv.zzgi().zziv().zzg("Did not find conversion parameter. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                            } else {
                                                v3_43.name = "_err";
                                                v3_43.zzave = Long.valueOf(10);
                                                v5_32 = v17;
                                            }
                                        } else {
                                            com.google.android.gms.internal.measurement.zzet v2_61 = v12_0.zzava;
                                            String v4_65 = new com.google.android.gms.internal.measurement.zzks[1];
                                            v4_65[0] = v3_43;
                                            v12_0.zzava = ((com.google.android.gms.internal.measurement.zzks[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v2_61, v4_65));
                                            v5_32 = v17;
                                        }
                                    }
                                } else {
                                    this.zzjf();
                                    com.google.android.gms.internal.measurement.zzet v3_14 = v12_0.name;
                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_14);
                                    com.google.android.gms.internal.measurement.zzet v2_26 = -1;
                                    switch (v3_14.hashCode()) {
                                        case 94660:
                                            if (!v3_14.equals("_in")) {
                                            } else {
                                                v2_26 = 0;
                                            }
                                            break;
                                        case 95025:
                                            if (!v3_14.equals("_ug")) {
                                            } else {
                                                v2_26 = 2;
                                            }
                                            break;
                                        case 95027:
                                            if (!v3_14.equals("_ui")) {
                                            } else {
                                                v2_26 = 1;
                                            }
                                            break;
                                    }
                                    com.google.android.gms.internal.measurement.zzet v2_27;
                                    switch (v2_26) {
                                        case 0:
                                        case 1:
                                        case 2:
                                            v2_27 = 1;
                                            break;
                                        default:
                                            v2_27 = 0;
                                    }
                                    if (v2_27 == null) {
                                    }
                                }
                                if ((v18_1 == null) || (!"_e".equals(v12_0.name))) {
                                    v2_66 = v14_1;
                                } else {
                                    if ((v12_0.zzava != null) && (v12_0.zzava.length != 0)) {
                                        this.zzjf();
                                        com.google.android.gms.internal.measurement.zzet v2_72 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v12_0, "_et"));
                                        if (v2_72 != null) {
                                            v2_66 = (v14_1 + v2_72.longValue());
                                        } else {
                                            this.zzacv.zzgi().zziy().zzg("Engagement event does not include duration. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                            v2_66 = v14_1;
                                        }
                                    } else {
                                        this.zzacv.zzgi().zziy().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                        v2_66 = v14_1;
                                    }
                                }
                                v4_72 = (v13_1 + 1);
                                v22.zzavi[v13_1] = v12_0;
                            } else {
                                com.google.android.gms.internal.measurement.zzet v2_94;
                                this.zzacv.zzgi().zziy().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth), this.zzacv.zzgf().zzbm(v12_0.name));
                                if ((!this.zzky().zzcb(v21.zzasp.zzth)) && (!this.zzky().zzcc(v21.zzasp.zzth))) {
                                    v2_94 = 0;
                                } else {
                                    v2_94 = 1;
                                }
                                if ((v2_94 != null) || ("_err".equals(v12_0.name))) {
                                    v2_66 = v14_1;
                                    v4_72 = v13_1;
                                    v5_32 = v17;
                                } else {
                                    this.zzacv.zzgg().zza(v21.zzasp.zzth, 11, "_ev", v12_0.name, 0);
                                    v2_66 = v14_1;
                                    v4_72 = v13_1;
                                    v5_32 = v17;
                                }
                            }
                            v16_1++;
                            v14_1 = v2_66;
                            v13_1 = v4_72;
                            v17 = v5_32;
                        }
                        if (v13_1 < v21.zzasr.size()) {
                            v22.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v22.zzavi, v13_1));
                        }
                        if (v18_1 != null) {
                            String v4_96;
                            long v8_21 = this.zzjh().zzh(v22.zzth, "_lte");
                            if ((v8_21 != 0) && (v8_21.value != null)) {
                                v4_96 = new com.google.android.gms.internal.measurement.zzkc(v22.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf((((Long) v8_21.value).longValue() + v14_1)));
                            } else {
                                v4_96 = new com.google.android.gms.internal.measurement.zzkc(v22.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf(v14_1));
                            }
                            int v5_57 = new com.google.android.gms.internal.measurement.zzkx();
                            v5_57.name = "_lte";
                            v5_57.zzaws = Long.valueOf(this.zzacv.zzbt().currentTimeMillis());
                            v5_57.zzave = ((Long) v4_96.value);
                            com.google.android.gms.internal.measurement.zzet v2_153 = 0;
                            com.google.android.gms.internal.measurement.zzet v3_84 = 0;
                            while (v3_84 < v22.zzavj.length) {
                                if (!"_lte".equals(v22.zzavj[v3_84].name)) {
                                    v3_84++;
                                } else {
                                    v22.zzavj[v3_84] = v5_57;
                                    v2_153 = 1;
                                    break;
                                }
                            }
                            if (v2_153 == null) {
                                v22.zzavj = ((com.google.android.gms.internal.measurement.zzkx[]) java.util.Arrays.copyOf(v22.zzavj, (v22.zzavj.length + 1)));
                                v22.zzavj[(v21.zzasp.zzavj.length - 1)] = v5_57;
                            }
                            if (v14_1 > 0) {
                                this.zzjh().zza(v4_96);
                                this.zzacv.zzgi().zzjb().zzg("Updated lifetime engagement user property with value. Value", v4_96.value);
                            }
                        }
                        v22.zzawa = this.zza(v22.zzth, v22.zzavj, v22.zzavi);
                        if (this.zzacv.zzgk().zzav(v21.zzasp.zzth)) {
                            java.util.HashMap v23_1 = new java.util.HashMap();
                            java.util.HashMap v0_96 = new com.google.android.gms.internal.measurement.zzkr[v22.zzavi.length];
                            com.google.android.gms.internal.measurement.zzkr[] v24 = v0_96;
                            Boolean v18_0 = 0;
                            java.security.SecureRandom v25 = this.zzacv.zzgg().zzlo();
                            com.google.android.gms.internal.measurement.zzkr[] v26 = v22.zzavi;
                            int v27 = v26.length;
                            int v19_0 = 0;
                            while (v19_0 < v27) {
                                com.google.android.gms.internal.measurement.zzet v2_3;
                                com.google.android.gms.internal.measurement.zzkr v28 = v26[v19_0];
                                if (!v28.name.equals("_ep")) {
                                    com.google.android.gms.internal.measurement.zzet v3_119;
                                    int v5_75 = Long.valueOf(1);
                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v5_75 != 0)) {
                                        int v6_61 = v28.zzava;
                                        com.google.android.gms.internal.measurement.zzet v3_118 = 0;
                                        while (v3_118 < v6_61.length) {
                                            long v8_35 = v6_61[v3_118];
                                            if (!"_dbg".equals(v8_35.name)) {
                                                v3_118++;
                                            } else {
                                                if (((!(v5_75 instanceof Long)) || (!v5_75.equals(v8_35.zzave))) && (((!(v5_75 instanceof String)) || (!v5_75.equals(v8_35.zzale))) && ((!(v5_75 instanceof Double)) || (!v5_75.equals(v8_35.zzasw))))) {
                                                    v3_119 = 0;
                                                } else {
                                                    v3_119 = 1;
                                                }
                                            }
                                        }
                                        v3_119 = 0;
                                    } else {
                                        v3_119 = 0;
                                    }
                                    int v20;
                                    if (v3_119 != null) {
                                        v20 = 1;
                                    } else {
                                        v20 = this.zzky().zzp(v21.zzasp.zzth, v28.name);
                                    }
                                    if (v20 > 0) {
                                        com.google.android.gms.internal.measurement.zzet v3_0;
                                        com.google.android.gms.internal.measurement.zzet v2_245 = ((com.google.android.gms.internal.measurement.zzet) v23_1.get(v28.name));
                                        if (v2_245 != null) {
                                            v3_0 = v2_245;
                                        } else {
                                            v3_0 = this.zzjh().zzf(v21.zzasp.zzth, v28.name);
                                            if (v3_0 == null) {
                                                this.zzacv.zzgi().zziy().zze("Event being bundled has no eventAggregate. appId, eventName", v21.zzasp.zzth, v28.name);
                                                v3_0 = new com.google.android.gms.internal.measurement.zzet(v21.zzasp.zzth, v28.name, 1, 1, v28.zzavb.longValue(), 0, 0, 0, 0);
                                            }
                                        }
                                        String v4_130;
                                        this.zzjf();
                                        com.google.android.gms.internal.measurement.zzet v2_254 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v28, "_eid"));
                                        if (v2_254 == null) {
                                            v4_130 = 0;
                                        } else {
                                            v4_130 = 1;
                                        }
                                        String v4_131 = Boolean.valueOf(v4_130);
                                        if (v20 != 1) {
                                            if (v25.nextInt(v20) != 0) {
                                                if (Math.abs((v28.zzavb.longValue() - v3_0.zzahk)) < 86400000) {
                                                    if (!v4_131.booleanValue()) {
                                                        v2_3 = v18_0;
                                                    } else {
                                                        v23_1.put(v28.name, v3_0.zza(v2_254, 0, 0));
                                                    }
                                                } else {
                                                    this.zzjf();
                                                    v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_efs", Long.valueOf(1));
                                                    this.zzjf();
                                                    v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_sr", Long.valueOf(((long) v20)));
                                                    v2_3 = (v18_0 + 1);
                                                    v24[v18_0] = v28;
                                                    if (v4_131.booleanValue()) {
                                                        v3_0 = v3_0.zza(0, Long.valueOf(((long) v20)), Boolean.valueOf(1));
                                                    }
                                                    v23_1.put(v28.name, v3_0.zzai(v28.zzavb.longValue()));
                                                }
                                            } else {
                                                this.zzjf();
                                                v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_sr", Long.valueOf(((long) v20)));
                                                v2_3 = (v18_0 + 1);
                                                v24[v18_0] = v28;
                                                if (v4_131.booleanValue()) {
                                                    v3_0 = v3_0.zza(0, Long.valueOf(((long) v20)), 0);
                                                }
                                                v23_1.put(v28.name, v3_0.zzai(v28.zzavb.longValue()));
                                            }
                                        } else {
                                            v2_3 = (v18_0 + 1);
                                            v24[v18_0] = v28;
                                            if ((v4_131.booleanValue()) && ((v3_0.zzahl != null) || ((v3_0.zzahm != null) || (v3_0.zzahn != null)))) {
                                                v23_1.put(v28.name, v3_0.zza(0, 0, 0));
                                            }
                                        }
                                    } else {
                                        this.zzacv.zzgi().zziy().zze("Sample rate must be positive. event, rate", v28.name, Integer.valueOf(v20));
                                        v2_3 = (v18_0 + 1);
                                        v24[v18_0] = v28;
                                    }
                                } else {
                                    this.zzjf();
                                    com.google.android.gms.internal.measurement.zzet v2_10 = ((String) com.google.android.gms.internal.measurement.zzjz.zzb(v28, "_en"));
                                    com.google.android.gms.internal.measurement.zzet v3_6 = ((com.google.android.gms.internal.measurement.zzet) v23_1.get(v2_10));
                                    if (v3_6 == null) {
                                        v3_6 = this.zzjh().zzf(v21.zzasp.zzth, v2_10);
                                        v23_1.put(v2_10, v3_6);
                                    }
                                    if (v3_6.zzahl != null) {
                                    } else {
                                        if (v3_6.zzahm.longValue() > 1) {
                                            this.zzjf();
                                            v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_sr", v3_6.zzahm);
                                        }
                                        if ((v3_6.zzahn != null) && (v3_6.zzahn.booleanValue())) {
                                            this.zzjf();
                                            v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_efs", Long.valueOf(1));
                                        }
                                        v2_3 = (v18_0 + 1);
                                        v24[v18_0] = v28;
                                    }
                                }
                                v19_0++;
                                v18_0 = v2_3;
                            }
                            if (v18_0 < v22.zzavi.length) {
                                v22.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v24, v18_0));
                            }
                            com.google.android.gms.internal.measurement.zzet v3_96 = v23_1.entrySet().iterator();
                            while (v3_96.hasNext()) {
                                this.zzjh().zza(((com.google.android.gms.internal.measurement.zzet) ((java.util.Map$Entry) v3_96.next()).getValue()));
                            }
                        }
                        v22.zzavl = Long.valueOf(nan);
                        v22.zzavm = Long.valueOf(-0.0);
                        com.google.android.gms.internal.measurement.zzet v2_185 = 0;
                        while (v2_185 < v22.zzavi.length) {
                            com.google.android.gms.internal.measurement.zzet v3_114 = v22.zzavi[v2_185];
                            if (v3_114.zzavb.longValue() < v22.zzavl.longValue()) {
                                v22.zzavl = v3_114.zzavb;
                            }
                            if (v3_114.zzavb.longValue() > v22.zzavm.longValue()) {
                                v22.zzavm = v3_114.zzavb;
                            }
                            v2_185++;
                        }
                        int v6_54 = v21.zzasp.zzth;
                        int v7_31 = this.zzjh().zzbf(v6_54);
                        if (v7_31 != 0) {
                            if (v22.zzavi.length > 0) {
                                String v4_102;
                                com.google.android.gms.internal.measurement.zzet v2_190 = v7_31.zzgt();
                                if (v2_190 == 0) {
                                    v4_102 = 0;
                                } else {
                                    v4_102 = Long.valueOf(v2_190);
                                }
                                v22.zzavo = v4_102;
                                String v4_103 = v7_31.zzgs();
                                if (v4_103 != 0) {
                                    v2_190 = v4_103;
                                }
                                com.google.android.gms.internal.measurement.zzet v2_191;
                                if (v2_190 == 0) {
                                    v2_191 = 0;
                                } else {
                                    v2_191 = Long.valueOf(v2_190);
                                }
                                v22.zzavn = v2_191;
                                v7_31.zzhb();
                                v22.zzavy = Integer.valueOf(((int) v7_31.zzgy()));
                                v7_31.zzr(v22.zzavl.longValue());
                                v7_31.zzs(v22.zzavm.longValue());
                                v22.zzafy = v7_31.zzhj();
                                this.zzjh().zza(v7_31);
                            }
                        } else {
                            this.zzacv.zzgi().zziv().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                        }
                        if (v22.zzavi.length > 0) {
                            this.zzacv.zzgl();
                            com.google.android.gms.internal.measurement.zzet v2_208 = this.zzky().zzbx(v21.zzasp.zzth);
                            if ((v2_208 != null) && (v2_208.zzaum != null)) {
                                v22.zzawf = v2_208.zzaum;
                            } else {
                                if (!android.text.TextUtils.isEmpty(v21.zzasp.zzafa)) {
                                    this.zzacv.zzgi().zziy().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                } else {
                                    v22.zzawf = Long.valueOf(-1);
                                }
                            }
                            this.zzjh().zza(v22, v17);
                        }
                        String v4_112 = this.zzjh();
                        int v5_65 = v21.zzasq;
                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v5_65);
                        v4_112.zzab();
                        v4_112.zzch();
                        int v7_34 = new StringBuilder("rowid in (");
                        com.google.android.gms.internal.measurement.zzet v3_105 = 0;
                        while (v3_105 < v5_65.size()) {
                            if (v3_105 != null) {
                                v7_34.append(",");
                            }
                            v7_34.append(((Long) v5_65.get(v3_105)).longValue());
                            v3_105++;
                        }
                        v7_34.append(")");
                        com.google.android.gms.internal.measurement.zzet v2_224 = v4_112.getWritableDatabase().delete("raw_events", v7_34.toString(), 0);
                        if (v2_224 != v5_65.size()) {
                            v4_112.zzgi().zziv().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v2_224), Integer.valueOf(v5_65.size()));
                        }
                        com.google.android.gms.internal.measurement.zzet v3_110 = this.zzjh();
                        com.google.android.gms.internal.measurement.zzet v2_226 = v3_110.getWritableDatabase();
                        try {
                            int v5_70 = new String[2];
                            v5_70[0] = v6_54;
                            v5_70[1] = v6_54;
                            v2_226.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_70);
                        } catch (com.google.android.gms.internal.measurement.zzet v2_227) {
                            v3_110.zzgi().zziv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v6_54), v2_227);
                        }
                        this.zzjh().setTransactionSuccessful();
                        this.zzjh().endTransaction();
                        v2_125 = 1;
                    }
                    return v2_125;
                } else {
                    v3_64.close();
                }
            }
            if (!android.text.TextUtils.isEmpty(0)) {
                int v6_41;
                if (v16_0 == -1) {
                    int v5_48 = new String[1];
                    v5_48[0] = 0;
                    v6_41 = v5_48;
                } else {
                    int v5_53 = new String[2];
                    v5_53[0] = 0;
                    v5_53[1] = String.valueOf(v16_0);
                    v6_41 = v5_53;
                }
                int v5_59;
                if (v16_0 == -1) {
                    v5_59 = "";
                } else {
                    v5_59 = " and rowid <= ?";
                }
                com.google.android.gms.internal.measurement.zzet v3_100 = v2_101.rawQuery(new StringBuilder((String.valueOf(v5_59).length() + 84)).append("select metadata_fingerprint from raw_events where app_id = ?").append(v5_59).append(" order by rowid limit 1;").toString(), v6_41);
                if (v3_100.moveToFirst()) {
                    int v5_66 = v3_100.getString(0);
                    v3_100.close();
                    v13_0 = v5_66;
                    v12_1 = 0;
                } else {
                    if (v3_100 == null) {
                    } else {
                        v3_100.close();
                    }
                }
            } else {
                int v6_63;
                if (v16_0 == -1) {
                    int v5_74 = new String[1];
                    v5_74[0] = String.valueOf(p32);
                    v6_63 = v5_74;
                } else {
                    int v5_77 = new String[2];
                    v5_77[0] = String.valueOf(v16_0);
                    v5_77[1] = String.valueOf(p32);
                    v6_63 = v5_77;
                }
                int v5_4;
                if (v16_0 == -1) {
                    v5_4 = "";
                } else {
                    v5_4 = "rowid <= ? and ";
                }
                com.google.android.gms.internal.measurement.zzet v3_19 = v2_101.rawQuery(new StringBuilder((String.valueOf(v5_4).length() + 148)).append("select app_id, metadata_fingerprint from raw_events where ").append(v5_4).append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;").toString(), v6_63);
                if (v3_19.moveToFirst()) {
                    String v4_42 = v3_19.getString(0);
                    int v5_25 = v3_19.getString(1);
                    v3_19.close();
                    v13_0 = v5_25;
                    v12_1 = v4_42;
                } else {
                    if (v3_19 == null) {
                    } else {
                        v3_19.close();
                    }
                }
            }
            try {
                String v4_59 = new String[1];
                v4_59[0] = "metadata";
                int v6_27 = new String[2];
                v6_27[0] = v12_1;
                v6_27[1] = v13_0;
                int v11_2 = v2_101.query("raw_events_metadata", v4_59, "app_id = ? and metadata_fingerprint = ?", v6_27, 0, 0, "rowid", "2");
            } catch (com.google.android.gms.internal.measurement.zzet v2_102) {
                v3_64 = v11_2;
                if (v3_64 != null) {
                    v3_64.close();
                }
                throw v2_102;
            } catch (com.google.android.gms.internal.measurement.zzet v2_4) {
                v3_64 = v11_2;
                v4_0 = v12_1;
            }
            if (v11_2.moveToFirst()) {
                com.google.android.gms.internal.measurement.zzet v3_62 = v11_2.getBlob(0);
                com.google.android.gms.internal.measurement.zzet v3_63 = com.google.android.gms.internal.measurement.zzaca.zza(v3_62, 0, v3_62.length);
                String v4_82 = new com.google.android.gms.internal.measurement.zzku();
                try {
                    v4_82.zzb(v3_63);
                } catch (com.google.android.gms.internal.measurement.zzet v2_100) {
                    v14_2.zzgi().zziv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1), v2_100);
                    if (v11_2 == 0) {
                    } else {
                        v11_2.close();
                    }
                }
                if (v11_2.moveToNext()) {
                    v14_2.zzgi().zziy().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1));
                }
                int v5_42;
                int v6_33;
                v11_2.close();
                v21.zzb(v4_82);
                if (v16_0 == -1) {
                    v5_42 = "app_id = ? and metadata_fingerprint = ?";
                    v6_33 = new String[2];
                    v6_33[0] = v12_1;
                    v6_33[1] = v13_0;
                } else {
                    v5_42 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                    v6_33 = new String[3];
                    v6_33[0] = v12_1;
                    v6_33[1] = v13_0;
                    v6_33[2] = String.valueOf(v16_0);
                }
                String v4_87 = new String[4];
                v4_87[0] = "rowid";
                v4_87[1] = "name";
                v4_87[2] = "timestamp";
                v4_87[3] = "data";
                v3_64 = v2_101.query("raw_events", v4_87, v5_42, v6_33, 0, 0, "rowid", 0);
                try {
                    if (!v3_64.moveToFirst()) {
                        v14_2.zzgi().zziy().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1));
                        if (v3_64 == null) {
                        } else {
                            v3_64.close();
                        }
                    }
                } catch (com.google.android.gms.internal.measurement.zzet v2_4) {
                    v4_0 = v12_1;
                }
                do {
                    String v4_88 = v3_64.getLong(0);
                    com.google.android.gms.internal.measurement.zzet v2_106 = v3_64.getBlob(3);
                    com.google.android.gms.internal.measurement.zzet v2_107 = com.google.android.gms.internal.measurement.zzaca.zza(v2_106, 0, v2_106.length);
                    int v6_37 = new com.google.android.gms.internal.measurement.zzkr();
                    v6_37.zzb(v2_107);
                    v6_37.name = v3_64.getString(1);
                    v6_37.zzavb = Long.valueOf(v3_64.getLong(2));
                    if (v21.zza(v4_88, v6_37)) {
                    } else {
                        if (v3_64 == null) {
                        } else {
                            v3_64.close();
                        }
                    }
                } while(v3_64.moveToNext());
                if (v3_64 == null) {
                } else {
                    v3_64.close();
                }
            } else {
                v14_2.zzgi().zziv().zzg("Raw event metadata record is missing. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1));
                if (v11_2 == 0) {
                } else {
                    v11_2.close();
                }
            }
        } catch (com.google.android.gms.internal.measurement.zzet v2_97) {
            this.zzjh().endTransaction();
            throw v2_97;
        }
    }

Method io.sqlc.SQLiteAndroidDatabase.executeSqlBatchStatement() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    private void executeSqlBatchStatement(String p23, org.json.JSONArray p24, org.json.JSONArray p25)
    {
        if (this.mydb != null) {
            int v18 = 0;
            int v12 = 0;
            org.json.JSONObject v13_0 = 0;
            String v6 = "unknown";
            int v4 = 0;
            int v11 = 1;
            try {
                org.json.JSONObject v14_0;
                io.sqlc.SQLiteAndroidDatabase$QueryType v15 = io.sqlc.SQLiteAndroidDatabase.getQueryType(p23);
                try {
                    if ((v15 != io.sqlc.SQLiteAndroidDatabase$QueryType.update) && (v15 != io.sqlc.SQLiteAndroidDatabase$QueryType.delete)) {
                        v14_0 = v13_0;
                    } else {
                        if (io.sqlc.SQLiteAndroidDatabase.isPostHoneycomb) {
                            android.database.sqlite.SQLiteStatement v10_1 = this.mydb.compileStatement(p23);
                            if (p24 != null) {
                                this.bindArgsToStatement(v10_1, p24);
                            }
                            try {
                                int v17 = v10_1.executeUpdateDelete();
                                v11 = 0;
                            } catch (android.database.sqlite.SQLiteException v7_11) {
                                v7_11.printStackTrace();
                                v6 = new StringBuilder().append("constraint failure: ").append(v7_11.getMessage()).toString();
                                v4 = 6;
                                android.util.Log.v("executeSqlBatch", new StringBuilder().append("SQLiteStatement.executeUpdateDelete(): Error=").append(v6).toString());
                                v11 = 0;
                            } catch (android.database.sqlite.SQLiteException v7_8) {
                                v7_8.printStackTrace();
                                android.util.Log.v("executeSqlBatch", new StringBuilder().append("SQLiteStatement.executeUpdateDelete(): runtime error (fallback to old API): ").append("unknown").toString());
                            }
                            v10_1.close();
                            if (v17 != -1) {
                                v14_0 = new org.json.JSONObject();
                                v14_0.put("rowsAffected", v17);
                                v13_0 = v14_0;
                            }
                        }
                        if (v11 == 0) {
                        } else {
                            v18 = this.countRowsAffectedCompat(v15, p23, p24, this.mydb);
                            v12 = 1;
                            v14_0 = v13_0;
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v7_4) {
                    v13_0 = v14_0;
                    v7_4.printStackTrace();
                    v6 = v7_4.getMessage();
                    android.util.Log.v("executeSqlBatch", new StringBuilder().append("SQLiteAndroidDatabase.executeSql[Batch](): Error=").append(v6).toString());
                    try {
                        if (v13_0 == null) {
                            org.json.JSONObject v16_1 = new org.json.JSONObject();
                            v16_1.put("type", "error");
                            org.json.JSONObject v5_1 = new org.json.JSONObject();
                            v5_1.put("message", v6);
                            v5_1.put("code", v4);
                            v16_1.put("result", v5_1);
                            p25.put(v16_1);
                        } else {
                            org.json.JSONObject v16_3 = new org.json.JSONObject();
                            v16_3.put("type", "success");
                            v16_3.put("result", v13_0);
                            p25.put(v16_3);
                        }
                    } catch (android.database.sqlite.SQLiteException v7_9) {
                        v7_9.printStackTrace();
                        android.util.Log.v("executeSqlBatch", new StringBuilder().append("SQLiteAndroidDatabase.executeSql[Batch](): Error=").append(v7_9.getMessage()).toString());
                    }
                }
                if ((v15 == io.sqlc.SQLiteAndroidDatabase$QueryType.insert) && (p24 != null)) {
                    v11 = 0;
                    android.database.sqlite.SQLiteStatement v10_0 = this.mydb.compileStatement(p23);
                    this.bindArgsToStatement(v10_0, p24);
                    try {
                        long v8 = v10_0.executeInsert();
                        v13_0 = new org.json.JSONObject();
                        try {
                            if (v8 == -1) {
                                v13_0.put("rowsAffected", 0);
                                v10_0.close();
                                v14_0 = v13_0;
                            } else {
                                v13_0.put("insertId", v8);
                                v13_0.put("rowsAffected", 1);
                            }
                        } catch (android.database.sqlite.SQLiteException v7_1) {
                            v7_1.printStackTrace();
                            v6 = new StringBuilder().append("constraint failure: ").append(v7_1.getMessage()).toString();
                            v4 = 6;
                            android.util.Log.v("executeSqlBatch", new StringBuilder().append("SQLiteDatabase.executeInsert(): Error=").append(v6).toString());
                        } catch (android.database.sqlite.SQLiteException v7_0) {
                            v7_0.printStackTrace();
                            v6 = v7_0.getMessage();
                            android.util.Log.v("executeSqlBatch", new StringBuilder().append("SQLiteDatabase.executeInsert(): Error=").append(v6).toString());
                        }
                    } catch (android.database.sqlite.SQLiteException v7_1) {
                        v13_0 = v14_0;
                    }
                }
                if (v15 == io.sqlc.SQLiteAndroidDatabase$QueryType.begin) {
                    v11 = 0;
                    this.mydb.beginTransaction();
                    v13_0 = new org.json.JSONObject();
                    try {
                        v13_0.put("rowsAffected", 0);
                        v14_0 = v13_0;
                    } catch (android.database.sqlite.SQLiteException v7_2) {
                        v7_2.printStackTrace();
                        v6 = v7_2.getMessage();
                        android.util.Log.v("executeSqlBatch", new StringBuilder().append("SQLiteDatabase.beginTransaction(): Error=").append(v6).toString());
                        v14_0 = v13_0;
                    }
                }
                if (v15 == io.sqlc.SQLiteAndroidDatabase$QueryType.commit) {
                    v11 = 0;
                    this.mydb.setTransactionSuccessful();
                    this.mydb.endTransaction();
                    v13_0 = new org.json.JSONObject();
                    try {
                        v13_0.put("rowsAffected", 0);
                        v14_0 = v13_0;
                    } catch (android.database.sqlite.SQLiteException v7_3) {
                        v7_3.printStackTrace();
                        v6 = v7_3.getMessage();
                        android.util.Log.v("executeSqlBatch", new StringBuilder().append("SQLiteDatabase.setTransactionSuccessful/endTransaction(): Error=").append(v6).toString());
                        v14_0 = v13_0;
                    }
                }
                if (v15 != io.sqlc.SQLiteAndroidDatabase$QueryType.rollback) {
                    v13_0 = v14_0;
                } else {
                    v11 = 0;
                    this.mydb.endTransaction();
                    v13_0 = new org.json.JSONObject();
                    try {
                        v13_0.put("rowsAffected", 0);
                    } catch (android.database.sqlite.SQLiteException v7_5) {
                        v7_5.printStackTrace();
                        v6 = v7_5.getMessage();
                        android.util.Log.v("executeSqlBatch", new StringBuilder().append("SQLiteDatabase.endTransaction(): Error=").append(v6).toString());
                    }
                }
                if (v11 == 0) {
                } else {
                    try {
                        v13_0 = this.executeSqlStatementQuery(this.mydb, p23, p24);
                    } catch (android.database.sqlite.SQLiteException v7_6) {
                        v7_6.printStackTrace();
                        v6 = v7_6.getMessage();
                        android.util.Log.v("executeSqlBatch", new StringBuilder().append("Raw query error=").append(v6).toString());
                    }
                    if (v12 == 0) {
                    } else {
                        v13_0.put("rowsAffected", v18);
                    }
                }
            } catch (android.database.sqlite.SQLiteException v7_4) {
            }
        }
        return;
    }

Method io.sqlc.SQLiteAndroidDatabase.countRowsAffectedCompat() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    private final int countRowsAffectedCompat(io.sqlc.SQLiteAndroidDatabase$QueryType p17, String p18, org.json.JSONArray p19, android.database.sqlite.SQLiteDatabase p20)
    {
        java.util.regex.Matcher v13 = io.sqlc.SQLiteAndroidDatabase.WHERE_CLAUSE.matcher(p18);
        String v12 = "";
        int v6 = 0;
        while (v13.find(v6)) {
            v12 = new StringBuilder().append(" WHERE ").append(v13.group(1)).toString();
            v6 = v13.start(1);
        }
        int v4 = 0;
        int v3_0 = 0;
        while (v3_0 < v12.length()) {
            if (v12.charAt(v3_0) == 63) {
                v4++;
            }
            v3_0++;
        }
        org.json.JSONArray v9_0 = 0;
        if (p19 != null) {
            v9_0 = new org.json.JSONArray();
            int v7 = (p19.length() - v4);
            int v3_1 = v7;
            while (v3_1 < p19.length()) {
                v9_0.put((v3_1 - v7), p19.get(v3_1));
                v3_1++;
            }
        }
        String v14_1;
        if (p17 != io.sqlc.SQLiteAndroidDatabase$QueryType.update) {
            java.util.regex.Matcher v11_0 = io.sqlc.SQLiteAndroidDatabase.DELETE_TABLE_NAME.matcher(p18);
            if (!v11_0.find()) {
                v14_1 = 0;
            } else {
                try {
                    android.database.sqlite.SQLiteStatement v8_0 = p20.compileStatement(new StringBuilder().append("SELECT count(*) FROM ").append(v11_0.group(1)).append(v12).toString());
                    this.bindArgsToStatement(v8_0, v9_0);
                    v14_1 = ((int) v8_0.simpleQueryForLong());
                } catch (Exception v2_0) {
                    android.util.Log.e(io.sqlc.SQLiteAndroidDatabase.getSimpleName(), "uncaught", v2_0);
                }
            }
        } else {
            java.util.regex.Matcher v11_1 = io.sqlc.SQLiteAndroidDatabase.UPDATE_TABLE_NAME.matcher(p18);
            if (!v11_1.find()) {
            } else {
                try {
                    android.database.sqlite.SQLiteStatement v8_1 = p20.compileStatement(new StringBuilder().append("SELECT count(*) FROM ").append(v11_1.group(1)).append(v12).toString());
                } catch (Exception v2_1) {
                    android.util.Log.e(io.sqlc.SQLiteAndroidDatabase.getSimpleName(), "uncaught", v2_1);
                }
                if (v9_0 != null) {
                    this.bindArgsToStatement(v8_1, v9_0);
                }
                v14_1 = ((int) v8_1.simpleQueryForLong());
            }
        }
        return v14_1;
    }

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


    public final java.util.List zzp(int p15)
    {
        java.util.ArrayList v0_12;
        this.zzab();
        this.zzfv();
        if (!this.zzakg) {
            java.util.ArrayList v10_1 = new java.util.ArrayList();
            if (this.getContext().getDatabasePath("google_app_measurement_local.db").exists()) {
                Throwable 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_7 = -1;
                                try {
                                    while (v2_1.moveToNext()) {
                                        v4_7 = 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) {
                                                    this.zzgi().zziv().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.measurement.zzef) com.google.android.gms.internal.measurement.zzef.CREATOR.createFromParcel(v7_0));
                                                    } catch (String v1) {
                                                        this.zzgi().zziv().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.measurement.zzka) com.google.android.gms.internal.measurement.zzka.CREATOR.createFromParcel(v7_1));
                                                } catch (String v1) {
                                                    this.zzgi().zziv().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.measurement.zzex) com.google.android.gms.internal.measurement.zzex.CREATOR.createFromParcel(v3_5));
                                            } catch (String v1_25) {
                                                v3_5.recycle();
                                                throw v1_25;
                                            } catch (String v1) {
                                                this.zzgi().zziv().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_8 = v1_30;
                                    if (v2_1 != null) {
                                        v2_1.close();
                                    }
                                    if (v1_27 != null) {
                                        v1_27.close();
                                    }
                                    throw v0_8;
                                } catch (String v1_28) {
                                    String v1_29 = v2_1;
                                    Throwable v2_0 = v0_14;
                                    java.util.ArrayList v0_7 = v1_28;
                                    try {
                                        this.zzgi().zziv().zzg("Error reading entries from local database", v0_7);
                                        this.zzakg = 1;
                                    } catch (java.util.ArrayList v0_8) {
                                        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) {
                                    v1_27 = v0_14;
                                    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 (String v1_26) {
                                    v1_27 = v0_14;
                                    java.util.ArrayList v0_4 = v1_26;
                                    if (v1_27 != null) {
                                        if (v1_27.inTransaction()) {
                                            v1_27.endTransaction();
                                        }
                                    }
                                    this.zzgi().zziv().zzg("Error reading entries from local database", v0_4);
                                    this.zzakg = 1;
                                    if (v2_1 != null) {
                                        v2_1.close();
                                    }
                                    if (v1_27 == null) {
                                    } else {
                                        v1_27.close();
                                        v0_11 = v9;
                                    }
                                }
                                String v6_6 = new String[1];
                                v6_6[0] = Long.toString(v4_7);
                                if (v0_14.delete("messages", "rowid <= ?", v6_6) < v10_1.size()) {
                                    this.zzgi().zziv().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_12 = v10_1;
                            } else {
                                this.zzakg = 1;
                                if (v0_14 != null) {
                                    v0_14.close();
                                }
                                v0_12 = 0;
                            }
                        } catch (String v1_36) {
                            v2_1 = 0;
                            v1_27 = v0_14;
                            v0_8 = v1_36;
                        } catch (String v1_34) {
                            v2_0 = v0_14;
                            v0_7 = v1_34;
                            v1_29 = 0;
                        } catch (String v1) {
                            v2_1 = 0;
                            v1_27 = v0_14;
                        } catch (String v1_32) {
                            v2_1 = 0;
                            v1_27 = v0_14;
                            v0_4 = v1_32;
                        }
                    } catch (java.util.ArrayList v0_8) {
                        v2_1 = 0;
                    } catch (java.util.ArrayList v0_7) {
                        v2_0 = 0;
                        v1_29 = 0;
                    } catch (java.util.ArrayList v0) {
                        v2_1 = 0;
                    } catch (java.util.ArrayList v0_4) {
                        v2_1 = 0;
                    } catch (java.util.ArrayList v0_8) {
                    }
                }
                this.zzgi().zziy().log("Failed to read events from database in reasonable time");
                v0_12 = 0;
            } else {
                v0_12 = v10_1;
            }
        } else {
            v0_12 = 0;
        }
        return v0_12;
    }

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


    final java.util.Map zzl(String p11, String p12)
    {
        this.zzch();
        this.zzab();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p11);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(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.measurement.zzfk 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.zzgi().zziv().zze("Database error querying filters. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(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.measurement.zzaca.zza(v0_4, 0, v0_4.length);
                com.google.android.gms.internal.measurement.zzfk v2_4 = new com.google.android.gms.internal.measurement.zzkk();
                v2_4.zzb(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.measurement.zzek.zzk() calling method android.database.sqlite.SQLiteDatabase.query()


    final java.util.Map zzk(String p11, String p12)
    {
        this.zzch();
        this.zzab();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p11);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(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.measurement.zzfk 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.zzgi().zziv().zze("Database error querying filters. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(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.measurement.zzaca.zza(v0_4, 0, v0_4.length);
                com.google.android.gms.internal.measurement.zzfk v2_4 = new com.google.android.gms.internal.measurement.zzkh();
                v2_4.zzb(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.measurement.zzek.zzi() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.measurement.zzef zzi(String p22, String p23)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p22);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p23);
        this.zzab();
        this.zzch();
        try {
            com.google.android.gms.internal.measurement.zzfk 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.measurement.zzef 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.measurement.zzef(p22, v7_5, new com.google.android.gms.internal.measurement.zzka(p23, v20.getLong(8), v6_17, v7_5), v20.getLong(6), v11, v20.getString(3), ((com.google.android.gms.internal.measurement.zzex) this.zzjf().zza(v20.getBlob(5), com.google.android.gms.internal.measurement.zzex.CREATOR)), v20.getLong(4), ((com.google.android.gms.internal.measurement.zzex) this.zzjf().zza(v20.getBlob(7), com.google.android.gms.internal.measurement.zzex.CREATOR)), v20.getLong(9), ((com.google.android.gms.internal.measurement.zzex) this.zzjf().zza(v20.getBlob(10), com.google.android.gms.internal.measurement.zzex.CREATOR)));
                    if (v20.moveToNext()) {
                        this.zzgi().zziv().zze("Got multiple records for conditional property, expected one", com.google.android.gms.internal.measurement.zzfi.zzbp(p22), this.zzgf().zzbo(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.measurement.zzfk v2_10) {
                if (v20 != 0) {
                    v20.close();
                }
                throw v2_10;
            } catch (com.google.android.gms.internal.measurement.zzfk v2_9) {
                String v3_6 = v20;
                try {
                    this.zzgi().zziv().zzd("Error querying conditional property", com.google.android.gms.internal.measurement.zzfi.zzbp(p22), this.zzgf().zzbo(p23), v2_9);
                } catch (com.google.android.gms.internal.measurement.zzfk v2_10) {
                    v20 = v3_6;
                }
                if (v3_6 != null) {
                    v3_6.close();
                }
                v5_3 = 0;
                return v5_3;
            }
        } catch (com.google.android.gms.internal.measurement.zzfk v2_10) {
            v20 = 0;
        } catch (com.google.android.gms.internal.measurement.zzfk v2_9) {
            v3_6 = 0;
        }
    }

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


    public final com.google.android.gms.internal.measurement.zzkc zzh(String p10, String p11)
    {
        android.database.Cursor v8 = 0;
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p10);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p11);
        this.zzab();
        this.zzch();
        try {
            com.google.android.gms.internal.measurement.zzkc 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.measurement.zzkc v0_7;
                if (v7_1.moveToFirst()) {
                    v0_7 = new com.google.android.gms.internal.measurement.zzkc(p10, v7_1.getString(2), p11, v7_1.getLong(0), this.zza(v7_1, 1));
                    if (v7_1.moveToNext()) {
                        this.zzgi().zziv().zzg("Got multiple records for user property, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(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.measurement.zzkc v0_1) {
                v8 = v7_1;
                if (v8 != null) {
                    v8.close();
                }
                throw v0_1;
            } catch (com.google.android.gms.internal.measurement.zzkc v0_0) {
                com.google.android.gms.internal.measurement.zzfk v1_0 = v7_1;
                try {
                    this.zzgi().zziv().zzd("Error querying user property. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p10), this.zzgf().zzbo(p11), v0_0);
                } catch (com.google.android.gms.internal.measurement.zzkc v0_1) {
                    v8 = v1_0;
                }
                if (v1_0 != null) {
                    v1_0.close();
                }
                v0_7 = 0;
                return v0_7;
            }
        } catch (com.google.android.gms.internal.measurement.zzkc v0_1) {
        } catch (com.google.android.gms.internal.measurement.zzkc v0_0) {
            v1_0 = 0;
        }
    }

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


    public final com.google.android.gms.internal.measurement.zzet zzf(String p19, String p20)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p19);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p20);
        this.zzab();
        this.zzch();
        try {
            com.google.android.gms.internal.measurement.zzfk v2_14 = this.getWritableDatabase();
            String v4_6 = new String[7];
            v4_6[0] = "lifetime_count";
            v4_6[1] = "current_bundle_count";
            v4_6[2] = "last_fire_timestamp";
            v4_6[3] = "last_bundled_timestamp";
            v4_6[4] = "last_sampled_complex_event_id";
            v4_6[5] = "last_sampling_rate";
            v4_6[6] = "last_exempt_from_sampling";
            long v6_9 = new String[2];
            v6_9[0] = p19;
            v6_9[1] = p20;
            int v17 = v2_14.query("events", v4_6, "app_id=? and name=?", v6_9, 0, 0, 0);
            try {
                com.google.android.gms.internal.measurement.zzet v3_1;
                if (v17.moveToFirst()) {
                    long v12;
                    long v6_10 = v17.getLong(0);
                    long v8_1 = v17.getLong(1);
                    long v10_1 = v17.getLong(2);
                    if (!v17.isNull(3)) {
                        v12 = v17.getLong(3);
                    } else {
                        v12 = 0;
                    }
                    Long v14;
                    if (!v17.isNull(4)) {
                        v14 = Long.valueOf(v17.getLong(4));
                    } else {
                        v14 = 0;
                    }
                    Long v15;
                    if (!v17.isNull(5)) {
                        v15 = Long.valueOf(v17.getLong(5));
                    } else {
                        v15 = 0;
                    }
                    Boolean v16 = 0;
                    if (!v17.isNull(6)) {
                        com.google.android.gms.internal.measurement.zzfk v2_4;
                        if (v17.getLong(6) != 1) {
                            v2_4 = 0;
                        } else {
                            v2_4 = 1;
                        }
                        v16 = Boolean.valueOf(v2_4);
                    }
                    v3_1 = new com.google.android.gms.internal.measurement.zzet(p19, p20, v6_10, v8_1, v10_1, v12, v14, v15, v16);
                    if (v17.moveToNext()) {
                        this.zzgi().zziv().zzg("Got multiple records for event aggregates, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p19));
                    }
                    if (v17 == 0) {
                        return v3_1;
                    } else {
                        v17.close();
                        return v3_1;
                    }
                } else {
                    if (v17 != 0) {
                        v17.close();
                    }
                    v3_1 = 0;
                    return v3_1;
                }
            } catch (com.google.android.gms.internal.measurement.zzfk v2_9) {
                if (v17 != 0) {
                    v17.close();
                }
                throw v2_9;
            } catch (com.google.android.gms.internal.measurement.zzfk v2_8) {
                com.google.android.gms.internal.measurement.zzet v3_2 = v17;
                try {
                    this.zzgi().zziv().zzd("Error querying events. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p19), this.zzgf().zzbm(p20), v2_8);
                } catch (com.google.android.gms.internal.measurement.zzfk v2_9) {
                    v17 = v3_2;
                }
                if (v3_2 != null) {
                    v3_2.close();
                }
                v3_1 = 0;
                return v3_1;
            }
        } catch (com.google.android.gms.internal.measurement.zzfk v2_9) {
            v17 = 0;
        } catch (com.google.android.gms.internal.measurement.zzfk v2_8) {
            v3_2 = 0;
        }
    }

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


    final java.util.Map zzbi(String p10)
    {
        this.zzch();
        this.zzab();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(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.measurement.zzfk 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.measurement.zzaca.zza(v3_3, 0, v3_3.length);
                        com.google.android.gms.internal.measurement.zzfk v4_6 = new com.google.android.gms.internal.measurement.zzkv();
                        v4_6.zzb(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.zzgi().zziv().zze("Database error querying filter results. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(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.measurement.zzek.zzbh() calling method android.database.sqlite.SQLiteDatabase.query()


    public final byte[] zzbh(String p10)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p10);
        this.zzab();
        this.zzch();
        try {
            byte[] v0_5 = this.getWritableDatabase();
            com.google.android.gms.internal.measurement.zzfk 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.zzgi().zziv().zzg("Got multiple records for app config, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(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.zzgi().zziv().zze("Error querying remote config. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(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.measurement.zzek.zzbf() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.measurement.zzea zzbf(String p12)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p12);
        this.zzab();
        this.zzch();
        try {
            int v0_5 = this.getWritableDatabase();
            com.google.android.gms.internal.measurement.zzfk v2_0 = new String[25];
            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";
            v2_0[23] = "adid_reporting_enabled";
            v2_0[24] = "ssaid_reporting_enabled";
            Object v4_28 = new String[1];
            v4_28[0] = p12;
            int v1_1 = v0_5.query("apps", v2_0, "app_id=?", v4_28, 0, 0, 0);
            try {
                int v0_2;
                if (v1_1.moveToFirst()) {
                    com.google.android.gms.internal.measurement.zzfk v2_27;
                    v0_2 = new com.google.android.gms.internal.measurement.zzea(this.zzalo.zzlm(), p12);
                    v0_2.zzam(v1_1.getString(0));
                    v0_2.zzan(v1_1.getString(1));
                    v0_2.zzao(v1_1.getString(2));
                    v0_2.zzw(v1_1.getLong(3));
                    v0_2.zzr(v1_1.getLong(4));
                    v0_2.zzs(v1_1.getLong(5));
                    v0_2.setAppVersion(v1_1.getString(6));
                    v0_2.zzaq(v1_1.getString(7));
                    v0_2.zzu(v1_1.getLong(8));
                    v0_2.zzv(v1_1.getLong(9));
                    if ((!v1_1.isNull(10)) && (v1_1.getInt(10) == 0)) {
                        v2_27 = 0;
                    } else {
                        v2_27 = 1;
                    }
                    com.google.android.gms.internal.measurement.zzfk v2_44;
                    v0_2.setMeasurementEnabled(v2_27);
                    v0_2.zzz(v1_1.getLong(11));
                    v0_2.zzaa(v1_1.getLong(12));
                    v0_2.zzab(v1_1.getLong(13));
                    v0_2.zzac(v1_1.getLong(14));
                    v0_2.zzx(v1_1.getLong(15));
                    v0_2.zzy(v1_1.getLong(16));
                    if (!v1_1.isNull(17)) {
                        v2_44 = ((long) v1_1.getInt(17));
                    } else {
                        v2_44 = -2147483648;
                    }
                    com.google.android.gms.internal.measurement.zzfk v2_56;
                    v0_2.zzt(v2_44);
                    v0_2.zzap(v1_1.getString(18));
                    v0_2.zzae(v1_1.getLong(19));
                    v0_2.zzad(v1_1.getLong(20));
                    v0_2.zzar(v1_1.getString(21));
                    if (!v1_1.isNull(22)) {
                        v2_56 = v1_1.getLong(22);
                    } else {
                        v2_56 = 0;
                    }
                    com.google.android.gms.internal.measurement.zzfk v2_61;
                    v0_2.zzaf(v2_56);
                    if ((!v1_1.isNull(23)) && (v1_1.getInt(23) == 0)) {
                        v2_61 = 0;
                    } else {
                        v2_61 = 1;
                    }
                    com.google.android.gms.internal.measurement.zzfk v2_66;
                    v0_2.zzd(v2_61);
                    if ((!v1_1.isNull(24)) && (v1_1.getInt(24) == 0)) {
                        v2_66 = 0;
                    } else {
                        v2_66 = 1;
                    }
                    v0_2.zze(v2_66);
                    v0_2.zzgp();
                    if (v1_1.moveToNext()) {
                        this.zzgi().zziv().zzg("Got multiple records for app, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p12));
                    }
                    if (v1_1 == 0) {
                        return v0_2;
                    } else {
                        v1_1.close();
                        return v0_2;
                    }
                } else {
                    if (v1_1 != 0) {
                        v1_1.close();
                    }
                    v0_2 = 0;
                    return v0_2;
                }
            } catch (int v0_3) {
                this.zzgi().zziv().zze("Error querying app. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p12), v0_3);
                if (v1_1 != 0) {
                    v1_1.close();
                }
                v0_2 = 0;
                return v0_2;
            }
        } catch (int v0_4) {
            v1_1 = 0;
            if (v1_1 != 0) {
                v1_1.close();
            }
            throw v0_4;
        } catch (int v0_3) {
            v1_1 = 0;
        } catch (int v0_4) {
        }
    }

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


    public final java.util.List zzbe(String p12)
    {
        android.database.Cursor v10 = 0;
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p12);
        this.zzab();
        this.zzch();
        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", "1000");
            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.zzgi().zziv().zze("Error querying user properties. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(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.measurement.zzkc(p12, v2_1, v3_5, v4_6, v6_1));
                } else {
                    this.zzgi().zziv().zzg("Read invalid user property value, ignoring it. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(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.measurement.zzek.zzb() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzb(String p24, String[] p25)
    {
        this.zzab();
        this.zzch();
        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";
            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.zzgi().zziv().zzg("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() < 1000) {
                int v11_1;
                com.google.android.gms.internal.measurement.zzka 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.measurement.zzef(v8_2, v7_1, new com.google.android.gms.internal.measurement.zzka(v3_4, v21.getLong(10), v6_15, v7_1), v21.getLong(8), v11_1, v21.getString(5), ((com.google.android.gms.internal.measurement.zzex) this.zzjf().zza(v21.getBlob(7), com.google.android.gms.internal.measurement.zzex.CREATOR)), v21.getLong(6), ((com.google.android.gms.internal.measurement.zzex) this.zzjf().zza(v21.getBlob(9), com.google.android.gms.internal.measurement.zzex.CREATOR)), v21.getLong(11), ((com.google.android.gms.internal.measurement.zzex) this.zzjf().zza(v21.getBlob(12), com.google.android.gms.internal.measurement.zzex.CREATOR))));
                if (!v21.moveToNext()) {
                }
            }
            this.zzgi().zziv().zzg("Read more than the max allowed conditional properties, ignoring extra", Integer.valueOf(1000));
        } catch (boolean v2_13) {
            v21 = 0;
        } catch (boolean v2_11) {
            v3_1 = 0;
        }
    }

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


    public final java.util.List zzb(String p12, String p13, String p14)
    {
        android.database.Cursor v10 = 0;
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p12);
        this.zzab();
        this.zzch();
        java.util.ArrayList v9_1 = new java.util.ArrayList();
        try {
            boolean v0_12 = new java.util.ArrayList(3);
            v0_12.add(p12);
            Object v3_2 = 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.zzgi().zziv().zzd("(2)Error querying user properties", com.google.android.gms.internal.measurement.zzfi.zzbp(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_2.append(" and origin=?");
        }
        if (!android.text.TextUtils.isEmpty(p14)) {
            v0_12.add(String.valueOf(p14).concat("*"));
            v3_2.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";
        android.database.Cursor v7_1 = v0_5.query("user_attributes", v2_6, v3_2.toString(), 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() < 1000) {
            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.measurement.zzkc(p12, v2_7, v3_4, v4_3, v6_5));
                } else {
                    this.zzgi().zziv().zzd("(2)Read invalid user property value, ignoring it", com.google.android.gms.internal.measurement.zzfi.zzbp(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.zzgi().zziv().zzg("Read more than the max allowed user properties, ignoring excess", Integer.valueOf(1000));
    }

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


    public final java.util.List zzb(String p12, int p13, int p14)
    {
        Throwable v0_6;
        int v1_0 = 1;
        this.zzab();
        this.zzch();
        if (p13 <= 0) {
            v0_6 = 0;
        } else {
            v0_6 = 1;
        }
        com.google.android.gms.common.internal.Preconditions.checkArgument(v0_6);
        if (p14 <= 0) {
            v1_0 = 0;
        }
        com.google.android.gms.common.internal.Preconditions.checkArgument(v1_0);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p12);
        try {
            Throwable v0_3 = this.getWritableDatabase();
            com.google.android.gms.internal.measurement.zzfk v2_4 = new String[3];
            v2_4[0] = "rowid";
            v2_4[1] = "data";
            v2_4[2] = "retry_count";
            com.google.android.gms.internal.measurement.zzfk v4_5 = new String[1];
            v4_5[0] = p12;
            com.google.android.gms.internal.measurement.zzfk v2_2 = v0_3.query("queue", v2_4, "app_id=?", v4_5, 0, 0, "rowid", String.valueOf(p13));
            try {
                Throwable v0_1;
                if (v2_2.moveToFirst()) {
                    v0_1 = new java.util.ArrayList();
                    android.util.Pair v3_4 = 0;
                    while(true) {
                        com.google.android.gms.internal.measurement.zzfk v4_6 = v2_2.getLong(0);
                        int v1_8 = this.zzjf().zza(v2_2.getBlob(1));
                        if ((!v0_1.isEmpty()) && ((v1_8.length + v3_4) > p14)) {
                            break;
                        }
                        Integer v6_8 = com.google.android.gms.internal.measurement.zzaca.zza(v1_8, 0, v1_8.length);
                        com.google.android.gms.internal.measurement.zzku v7_3 = new com.google.android.gms.internal.measurement.zzku();
                        try {
                            v7_3.zzb(v6_8);
                        } catch (int v1_10) {
                            this.zzgi().zziv().zze("Failed to merge queued bundle. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p12), v1_10);
                            int v1_2 = v3_4;
                        }
                        if (!v2_2.isNull(2)) {
                            v7_3.zzawj = Integer.valueOf(v2_2.getInt(2));
                        }
                        v1_2 = (v1_8.length + v3_4);
                        v0_1.add(android.util.Pair.create(v7_3, Long.valueOf(v4_6)));
                        if ((!v2_2.moveToNext()) || (v1_2 > p14)) {
                            break;
                        }
                        v3_4 = v1_2;
                    }
                    if (v2_2 == null) {
                        return v0_1;
                    } else {
                        v2_2.close();
                        return v0_1;
                    }
                } else {
                    v0_1 = java.util.Collections.emptyList();
                    if (v2_2 == null) {
                        return v0_1;
                    } else {
                        v2_2.close();
                        return v0_1;
                    }
                }
            } catch (Throwable v0_2) {
                if (v2_2 != null) {
                    v2_2.close();
                }
                throw v0_2;
            } catch (Throwable v0_0) {
                int v1_3 = v2_2;
                try {
                    this.zzgi().zziv().zze("Error querying bundles. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p12), v0_0);
                    v0_1 = java.util.Collections.emptyList();
                } catch (Throwable v0_2) {
                    v2_2 = v1_3;
                }
                if (v1_3 == 0) {
                    return v0_1;
                } else {
                    v1_3.close();
                    return v0_1;
                }
            }
        } catch (Throwable v0_2) {
            v2_2 = 0;
        } catch (Throwable v0_0) {
            v1_3 = 0;
        }
    }

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


    public final com.google.android.gms.internal.measurement.zzel zza(long p12, String p14, boolean p15, boolean p16, boolean p17, boolean p18, boolean p19)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p14);
        this.zzab();
        this.zzch();
        String[] v10 = new String[1];
        v10[0] = p14;
        com.google.android.gms.internal.measurement.zzel v8_1 = new com.google.android.gms.internal.measurement.zzel();
        try {
            com.google.android.gms.internal.measurement.zzel 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.measurement.zzel v0_2;
                if (v1_1.moveToFirst()) {
                    if (v1_1.getLong(0) == p12) {
                        v8_1.zzagu = v1_1.getLong(1);
                        v8_1.zzagt = v1_1.getLong(2);
                        v8_1.zzagv = v1_1.getLong(3);
                        v8_1.zzagw = v1_1.getLong(4);
                        v8_1.zzagx = v1_1.getLong(5);
                    }
                    if (p15) {
                        v8_1.zzagu = (v8_1.zzagu + 1);
                    }
                    if (p16) {
                        v8_1.zzagt = (v8_1.zzagt + 1);
                    }
                    if (p17) {
                        v8_1.zzagv = (v8_1.zzagv + 1);
                    }
                    if (p18) {
                        v8_1.zzagw = (v8_1.zzagw + 1);
                    }
                    if (p19) {
                        v8_1.zzagx = (v8_1.zzagx + 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.zzagt));
                    v2_3.put("daily_events_count", Long.valueOf(v8_1.zzagu));
                    v2_3.put("daily_conversions_count", Long.valueOf(v8_1.zzagv));
                    v2_3.put("daily_error_events_count", Long.valueOf(v8_1.zzagw));
                    v2_3.put("daily_realtime_events_count", Long.valueOf(v8_1.zzagx));
                    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.zzgi().zziy().zzg("Not updating daily counts, app is not known. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p14));
                    if (v1_1 != 0) {
                        v1_1.close();
                    }
                    v0_2 = v8_1;
                    return v0_2;
                }
            } catch (com.google.android.gms.internal.measurement.zzel v0_0) {
                this.zzgi().zziv().zze("Error updating daily counts. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p14), v0_0);
                if (v1_1 != 0) {
                    v1_1.close();
                }
                v0_2 = v8_1;
                return v0_2;
            }
        } catch (com.google.android.gms.internal.measurement.zzel v0_3) {
            v1_1 = 0;
            if (v1_1 != 0) {
                v1_1.close();
            }
            throw v0_3;
        } catch (com.google.android.gms.internal.measurement.zzel v0_0) {
            v1_1 = 0;
        } catch (com.google.android.gms.internal.measurement.zzel v0_3) {
        }
    }

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


    private final boolean zzd(String p31, long p32)
    {
        this.zzjh().beginTransaction();
        try {
            com.google.android.gms.internal.measurement.zzjt$zza v21 = new com.google.android.gms.internal.measurement.zzjt$zza;
            v21(this, 0);
            int v14_2 = this.zzjh();
            String v4_0 = 0;
            int v16_0 = this.zzasl;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v21);
            v14_2.zzab();
            v14_2.zzch();
            com.google.android.gms.internal.measurement.zzet v3_64 = 0;
            try {
                long v12_1;
                String v13_0;
                com.google.android.gms.internal.measurement.zzet v2_101 = v14_2.getWritableDatabase();
            } catch (com.google.android.gms.internal.measurement.zzet v2_4) {
                v14_2.zzgi().zziv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v4_0), v2_4);
                if (v3_64 == null) {
                    if ((v21.zzasr != null) && (!v21.zzasr.isEmpty())) {
                        com.google.android.gms.internal.measurement.zzet v2_122 = 0;
                    } else {
                        v2_122 = 1;
                    }
                    com.google.android.gms.internal.measurement.zzet v2_125;
                    if (v2_122 != null) {
                        this.zzjh().setTransactionSuccessful();
                        this.zzjh().endTransaction();
                        v2_125 = 0;
                    } else {
                        int v17 = 0;
                        com.google.android.gms.internal.measurement.zzku v22 = v21.zzasp;
                        com.google.android.gms.internal.measurement.zzet v2_128 = new com.google.android.gms.internal.measurement.zzkr[v21.zzasr.size()];
                        v22.zzavi = v2_128;
                        String v13_1 = 0;
                        int v14_1 = 0;
                        Boolean v18_1 = this.zzacv.zzgk().zzaw(v22.zzth);
                        int v16_1 = 0;
                        while (v16_1 < v21.zzasr.size()) {
                            String v4_72;
                            com.google.android.gms.internal.measurement.zzet v2_66;
                            int v5_32;
                            long v12_0 = ((com.google.android.gms.internal.measurement.zzkr) v21.zzasr.get(v16_1));
                            if (!this.zzky().zzn(v21.zzasp.zzth, v12_0.name)) {
                                int v19_1 = this.zzky().zzo(v21.zzasp.zzth, v12_0.name);
                                if (v19_1 != 0) {
                                    String v4_25 = 0;
                                    com.google.android.gms.internal.measurement.zzet v3_18 = 0;
                                    if (v12_0.zzava == null) {
                                        com.google.android.gms.internal.measurement.zzet v2_30 = new com.google.android.gms.internal.measurement.zzks[0];
                                        v12_0.zzava = v2_30;
                                    }
                                    int v6_11 = v12_0.zzava;
                                    int v7_6 = v6_11.length;
                                    int v5_12 = 0;
                                    while (v5_12 < v7_6) {
                                        com.google.android.gms.internal.measurement.zzet v3_49;
                                        com.google.android.gms.internal.measurement.zzet v2_85;
                                        com.google.android.gms.internal.measurement.zzet v2_84 = v6_11[v5_12];
                                        if (!"_c".equals(v2_84.name)) {
                                            if (!"_r".equals(v2_84.name)) {
                                                v2_85 = v3_18;
                                                v3_49 = v4_25;
                                            } else {
                                                v2_84.zzave = Long.valueOf(1);
                                                v2_85 = 1;
                                                v3_49 = v4_25;
                                            }
                                        } else {
                                            v2_84.zzave = Long.valueOf(1);
                                            v3_49 = 1;
                                            v2_85 = v3_18;
                                        }
                                        v5_12++;
                                        v4_25 = v3_49;
                                        v3_18 = v2_85;
                                    }
                                    if ((v4_25 == null) && (v19_1 != 0)) {
                                        this.zzacv.zzgi().zzjc().zzg("Marking event as conversion", this.zzacv.zzgf().zzbm(v12_0.name));
                                        com.google.android.gms.internal.measurement.zzet v2_37 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v12_0.zzava, (v12_0.zzava.length + 1)));
                                        String v4_31 = new com.google.android.gms.internal.measurement.zzks();
                                        v4_31.name = "_c";
                                        v4_31.zzave = Long.valueOf(1);
                                        v2_37[(v2_37.length - 1)] = v4_31;
                                        v12_0.zzava = v2_37;
                                    }
                                    if (v3_18 == null) {
                                        this.zzacv.zzgi().zzjc().zzg("Marking event as real-time", this.zzacv.zzgf().zzbm(v12_0.name));
                                        com.google.android.gms.internal.measurement.zzet v2_43 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v12_0.zzava, (v12_0.zzava.length + 1)));
                                        com.google.android.gms.internal.measurement.zzet v3_25 = new com.google.android.gms.internal.measurement.zzks();
                                        v3_25.name = "_r";
                                        v3_25.zzave = Long.valueOf(1);
                                        v2_43[(v2_43.length - 1)] = v3_25;
                                        v12_0.zzava = v2_43;
                                    }
                                    if (this.zzjh().zza(this.zzld(), v21.zzasp.zzth, 0, 0, 0, 0, 1).zzagx <= ((long) this.zzacv.zzgk().zzas(v21.zzasp.zzth))) {
                                        v17 = 1;
                                    } else {
                                        com.google.android.gms.internal.measurement.zzet v2_45 = 0;
                                        while (v2_45 < v12_0.zzava.length) {
                                            if (!"_r".equals(v12_0.zzava[v2_45].name)) {
                                                v2_45++;
                                            } else {
                                                com.google.android.gms.internal.measurement.zzet v3_39 = new com.google.android.gms.internal.measurement.zzks[(v12_0.zzava.length - 1)];
                                                if (v2_45 > null) {
                                                    System.arraycopy(v12_0.zzava, 0, v3_39, 0, v2_45);
                                                }
                                                if (v2_45 < v3_39.length) {
                                                    System.arraycopy(v12_0.zzava, (v2_45 + 1), v3_39, v2_45, (v3_39.length - v2_45));
                                                }
                                                v12_0.zzava = v3_39;
                                                break;
                                            }
                                        }
                                    }
                                    if ((!com.google.android.gms.internal.measurement.zzkd.zzcg(v12_0.name)) || ((v19_1 == 0) || (this.zzjh().zza(this.zzld(), v21.zzasp.zzth, 0, 0, 1, 0, 0).zzagv <= ((long) this.zzacv.zzgk().zzb(v21.zzasp.zzth, com.google.android.gms.internal.measurement.zzez.zzair))))) {
                                        v5_32 = v17;
                                    } else {
                                        this.zzacv.zzgi().zziy().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                        String v4_57 = 0;
                                        com.google.android.gms.internal.measurement.zzet v3_43 = 0;
                                        int v6_24 = v12_0.zzava;
                                        int v5_30 = 0;
                                        while (v5_30 < v6_24.length) {
                                            com.google.android.gms.internal.measurement.zzet v3_48;
                                            com.google.android.gms.internal.measurement.zzet v2_80 = v6_24[v5_30];
                                            if (!"_c".equals(v2_80.name)) {
                                                if (!"_err".equals(v2_80.name)) {
                                                    v2_80 = v3_43;
                                                    v3_48 = v4_57;
                                                } else {
                                                    v3_48 = 1;
                                                    v2_80 = v3_43;
                                                }
                                            } else {
                                                v3_48 = v4_57;
                                            }
                                            v5_30++;
                                            v4_57 = v3_48;
                                            v3_43 = v2_80;
                                        }
                                        if ((v4_57 == null) || (v3_43 == null)) {
                                            if (v3_43 == null) {
                                                this.zzacv.zzgi().zziv().zzg("Did not find conversion parameter. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                            } else {
                                                v3_43.name = "_err";
                                                v3_43.zzave = Long.valueOf(10);
                                                v5_32 = v17;
                                            }
                                        } else {
                                            com.google.android.gms.internal.measurement.zzet v2_61 = v12_0.zzava;
                                            String v4_65 = new com.google.android.gms.internal.measurement.zzks[1];
                                            v4_65[0] = v3_43;
                                            v12_0.zzava = ((com.google.android.gms.internal.measurement.zzks[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v2_61, v4_65));
                                            v5_32 = v17;
                                        }
                                    }
                                } else {
                                    this.zzjf();
                                    com.google.android.gms.internal.measurement.zzet v3_14 = v12_0.name;
                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_14);
                                    com.google.android.gms.internal.measurement.zzet v2_26 = -1;
                                    switch (v3_14.hashCode()) {
                                        case 94660:
                                            if (!v3_14.equals("_in")) {
                                            } else {
                                                v2_26 = 0;
                                            }
                                            break;
                                        case 95025:
                                            if (!v3_14.equals("_ug")) {
                                            } else {
                                                v2_26 = 2;
                                            }
                                            break;
                                        case 95027:
                                            if (!v3_14.equals("_ui")) {
                                            } else {
                                                v2_26 = 1;
                                            }
                                            break;
                                    }
                                    com.google.android.gms.internal.measurement.zzet v2_27;
                                    switch (v2_26) {
                                        case 0:
                                        case 1:
                                        case 2:
                                            v2_27 = 1;
                                            break;
                                        default:
                                            v2_27 = 0;
                                    }
                                    if (v2_27 == null) {
                                    }
                                }
                                if ((v18_1 == null) || (!"_e".equals(v12_0.name))) {
                                    v2_66 = v14_1;
                                } else {
                                    if ((v12_0.zzava != null) && (v12_0.zzava.length != 0)) {
                                        this.zzjf();
                                        com.google.android.gms.internal.measurement.zzet v2_72 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v12_0, "_et"));
                                        if (v2_72 != null) {
                                            v2_66 = (v14_1 + v2_72.longValue());
                                        } else {
                                            this.zzacv.zzgi().zziy().zzg("Engagement event does not include duration. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                            v2_66 = v14_1;
                                        }
                                    } else {
                                        this.zzacv.zzgi().zziy().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                        v2_66 = v14_1;
                                    }
                                }
                                v4_72 = (v13_1 + 1);
                                v22.zzavi[v13_1] = v12_0;
                            } else {
                                com.google.android.gms.internal.measurement.zzet v2_94;
                                this.zzacv.zzgi().zziy().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth), this.zzacv.zzgf().zzbm(v12_0.name));
                                if ((!this.zzky().zzcb(v21.zzasp.zzth)) && (!this.zzky().zzcc(v21.zzasp.zzth))) {
                                    v2_94 = 0;
                                } else {
                                    v2_94 = 1;
                                }
                                if ((v2_94 != null) || ("_err".equals(v12_0.name))) {
                                    v2_66 = v14_1;
                                    v4_72 = v13_1;
                                    v5_32 = v17;
                                } else {
                                    this.zzacv.zzgg().zza(v21.zzasp.zzth, 11, "_ev", v12_0.name, 0);
                                    v2_66 = v14_1;
                                    v4_72 = v13_1;
                                    v5_32 = v17;
                                }
                            }
                            v16_1++;
                            v14_1 = v2_66;
                            v13_1 = v4_72;
                            v17 = v5_32;
                        }
                        if (v13_1 < v21.zzasr.size()) {
                            v22.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v22.zzavi, v13_1));
                        }
                        if (v18_1 != null) {
                            String v4_96;
                            long v8_21 = this.zzjh().zzh(v22.zzth, "_lte");
                            if ((v8_21 != 0) && (v8_21.value != null)) {
                                v4_96 = new com.google.android.gms.internal.measurement.zzkc(v22.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf((((Long) v8_21.value).longValue() + v14_1)));
                            } else {
                                v4_96 = new com.google.android.gms.internal.measurement.zzkc(v22.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf(v14_1));
                            }
                            int v5_57 = new com.google.android.gms.internal.measurement.zzkx();
                            v5_57.name = "_lte";
                            v5_57.zzaws = Long.valueOf(this.zzacv.zzbt().currentTimeMillis());
                            v5_57.zzave = ((Long) v4_96.value);
                            com.google.android.gms.internal.measurement.zzet v2_153 = 0;
                            com.google.android.gms.internal.measurement.zzet v3_84 = 0;
                            while (v3_84 < v22.zzavj.length) {
                                if (!"_lte".equals(v22.zzavj[v3_84].name)) {
                                    v3_84++;
                                } else {
                                    v22.zzavj[v3_84] = v5_57;
                                    v2_153 = 1;
                                    break;
                                }
                            }
                            if (v2_153 == null) {
                                v22.zzavj = ((com.google.android.gms.internal.measurement.zzkx[]) java.util.Arrays.copyOf(v22.zzavj, (v22.zzavj.length + 1)));
                                v22.zzavj[(v21.zzasp.zzavj.length - 1)] = v5_57;
                            }
                            if (v14_1 > 0) {
                                this.zzjh().zza(v4_96);
                                this.zzacv.zzgi().zzjb().zzg("Updated lifetime engagement user property with value. Value", v4_96.value);
                            }
                        }
                        v22.zzawa = this.zza(v22.zzth, v22.zzavj, v22.zzavi);
                        if (this.zzacv.zzgk().zzav(v21.zzasp.zzth)) {
                            java.util.HashMap v23_1 = new java.util.HashMap();
                            java.util.HashMap v0_96 = new com.google.android.gms.internal.measurement.zzkr[v22.zzavi.length];
                            com.google.android.gms.internal.measurement.zzkr[] v24 = v0_96;
                            Boolean v18_0 = 0;
                            java.security.SecureRandom v25 = this.zzacv.zzgg().zzlo();
                            com.google.android.gms.internal.measurement.zzkr[] v26 = v22.zzavi;
                            int v27 = v26.length;
                            int v19_0 = 0;
                            while (v19_0 < v27) {
                                com.google.android.gms.internal.measurement.zzet v2_3;
                                com.google.android.gms.internal.measurement.zzkr v28 = v26[v19_0];
                                if (!v28.name.equals("_ep")) {
                                    com.google.android.gms.internal.measurement.zzet v3_119;
                                    int v5_75 = Long.valueOf(1);
                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v5_75 != 0)) {
                                        int v6_61 = v28.zzava;
                                        com.google.android.gms.internal.measurement.zzet v3_118 = 0;
                                        while (v3_118 < v6_61.length) {
                                            long v8_35 = v6_61[v3_118];
                                            if (!"_dbg".equals(v8_35.name)) {
                                                v3_118++;
                                            } else {
                                                if (((!(v5_75 instanceof Long)) || (!v5_75.equals(v8_35.zzave))) && (((!(v5_75 instanceof String)) || (!v5_75.equals(v8_35.zzale))) && ((!(v5_75 instanceof Double)) || (!v5_75.equals(v8_35.zzasw))))) {
                                                    v3_119 = 0;
                                                } else {
                                                    v3_119 = 1;
                                                }
                                            }
                                        }
                                        v3_119 = 0;
                                    } else {
                                        v3_119 = 0;
                                    }
                                    int v20;
                                    if (v3_119 != null) {
                                        v20 = 1;
                                    } else {
                                        v20 = this.zzky().zzp(v21.zzasp.zzth, v28.name);
                                    }
                                    if (v20 > 0) {
                                        com.google.android.gms.internal.measurement.zzet v3_0;
                                        com.google.android.gms.internal.measurement.zzet v2_245 = ((com.google.android.gms.internal.measurement.zzet) v23_1.get(v28.name));
                                        if (v2_245 != null) {
                                            v3_0 = v2_245;
                                        } else {
                                            v3_0 = this.zzjh().zzf(v21.zzasp.zzth, v28.name);
                                            if (v3_0 == null) {
                                                this.zzacv.zzgi().zziy().zze("Event being bundled has no eventAggregate. appId, eventName", v21.zzasp.zzth, v28.name);
                                                v3_0 = new com.google.android.gms.internal.measurement.zzet(v21.zzasp.zzth, v28.name, 1, 1, v28.zzavb.longValue(), 0, 0, 0, 0);
                                            }
                                        }
                                        String v4_130;
                                        this.zzjf();
                                        com.google.android.gms.internal.measurement.zzet v2_254 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v28, "_eid"));
                                        if (v2_254 == null) {
                                            v4_130 = 0;
                                        } else {
                                            v4_130 = 1;
                                        }
                                        String v4_131 = Boolean.valueOf(v4_130);
                                        if (v20 != 1) {
                                            if (v25.nextInt(v20) != 0) {
                                                if (Math.abs((v28.zzavb.longValue() - v3_0.zzahk)) < 86400000) {
                                                    if (!v4_131.booleanValue()) {
                                                        v2_3 = v18_0;
                                                    } else {
                                                        v23_1.put(v28.name, v3_0.zza(v2_254, 0, 0));
                                                    }
                                                } else {
                                                    this.zzjf();
                                                    v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_efs", Long.valueOf(1));
                                                    this.zzjf();
                                                    v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_sr", Long.valueOf(((long) v20)));
                                                    v2_3 = (v18_0 + 1);
                                                    v24[v18_0] = v28;
                                                    if (v4_131.booleanValue()) {
                                                        v3_0 = v3_0.zza(0, Long.valueOf(((long) v20)), Boolean.valueOf(1));
                                                    }
                                                    v23_1.put(v28.name, v3_0.zzai(v28.zzavb.longValue()));
                                                }
                                            } else {
                                                this.zzjf();
                                                v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_sr", Long.valueOf(((long) v20)));
                                                v2_3 = (v18_0 + 1);
                                                v24[v18_0] = v28;
                                                if (v4_131.booleanValue()) {
                                                    v3_0 = v3_0.zza(0, Long.valueOf(((long) v20)), 0);
                                                }
                                                v23_1.put(v28.name, v3_0.zzai(v28.zzavb.longValue()));
                                            }
                                        } else {
                                            v2_3 = (v18_0 + 1);
                                            v24[v18_0] = v28;
                                            if ((v4_131.booleanValue()) && ((v3_0.zzahl != null) || ((v3_0.zzahm != null) || (v3_0.zzahn != null)))) {
                                                v23_1.put(v28.name, v3_0.zza(0, 0, 0));
                                            }
                                        }
                                    } else {
                                        this.zzacv.zzgi().zziy().zze("Sample rate must be positive. event, rate", v28.name, Integer.valueOf(v20));
                                        v2_3 = (v18_0 + 1);
                                        v24[v18_0] = v28;
                                    }
                                } else {
                                    this.zzjf();
                                    com.google.android.gms.internal.measurement.zzet v2_10 = ((String) com.google.android.gms.internal.measurement.zzjz.zzb(v28, "_en"));
                                    com.google.android.gms.internal.measurement.zzet v3_6 = ((com.google.android.gms.internal.measurement.zzet) v23_1.get(v2_10));
                                    if (v3_6 == null) {
                                        v3_6 = this.zzjh().zzf(v21.zzasp.zzth, v2_10);
                                        v23_1.put(v2_10, v3_6);
                                    }
                                    if (v3_6.zzahl != null) {
                                    } else {
                                        if (v3_6.zzahm.longValue() > 1) {
                                            this.zzjf();
                                            v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_sr", v3_6.zzahm);
                                        }
                                        if ((v3_6.zzahn != null) && (v3_6.zzahn.booleanValue())) {
                                            this.zzjf();
                                            v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_efs", Long.valueOf(1));
                                        }
                                        v2_3 = (v18_0 + 1);
                                        v24[v18_0] = v28;
                                    }
                                }
                                v19_0++;
                                v18_0 = v2_3;
                            }
                            if (v18_0 < v22.zzavi.length) {
                                v22.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v24, v18_0));
                            }
                            com.google.android.gms.internal.measurement.zzet v3_96 = v23_1.entrySet().iterator();
                            while (v3_96.hasNext()) {
                                this.zzjh().zza(((com.google.android.gms.internal.measurement.zzet) ((java.util.Map$Entry) v3_96.next()).getValue()));
                            }
                        }
                        v22.zzavl = Long.valueOf(nan);
                        v22.zzavm = Long.valueOf(-0.0);
                        com.google.android.gms.internal.measurement.zzet v2_185 = 0;
                        while (v2_185 < v22.zzavi.length) {
                            com.google.android.gms.internal.measurement.zzet v3_114 = v22.zzavi[v2_185];
                            if (v3_114.zzavb.longValue() < v22.zzavl.longValue()) {
                                v22.zzavl = v3_114.zzavb;
                            }
                            if (v3_114.zzavb.longValue() > v22.zzavm.longValue()) {
                                v22.zzavm = v3_114.zzavb;
                            }
                            v2_185++;
                        }
                        int v6_54 = v21.zzasp.zzth;
                        int v7_31 = this.zzjh().zzbf(v6_54);
                        if (v7_31 != 0) {
                            if (v22.zzavi.length > 0) {
                                String v4_102;
                                com.google.android.gms.internal.measurement.zzet v2_190 = v7_31.zzgt();
                                if (v2_190 == 0) {
                                    v4_102 = 0;
                                } else {
                                    v4_102 = Long.valueOf(v2_190);
                                }
                                v22.zzavo = v4_102;
                                String v4_103 = v7_31.zzgs();
                                if (v4_103 != 0) {
                                    v2_190 = v4_103;
                                }
                                com.google.android.gms.internal.measurement.zzet v2_191;
                                if (v2_190 == 0) {
                                    v2_191 = 0;
                                } else {
                                    v2_191 = Long.valueOf(v2_190);
                                }
                                v22.zzavn = v2_191;
                                v7_31.zzhb();
                                v22.zzavy = Integer.valueOf(((int) v7_31.zzgy()));
                                v7_31.zzr(v22.zzavl.longValue());
                                v7_31.zzs(v22.zzavm.longValue());
                                v22.zzafy = v7_31.zzhj();
                                this.zzjh().zza(v7_31);
                            }
                        } else {
                            this.zzacv.zzgi().zziv().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                        }
                        if (v22.zzavi.length > 0) {
                            this.zzacv.zzgl();
                            com.google.android.gms.internal.measurement.zzet v2_208 = this.zzky().zzbx(v21.zzasp.zzth);
                            if ((v2_208 != null) && (v2_208.zzaum != null)) {
                                v22.zzawf = v2_208.zzaum;
                            } else {
                                if (!android.text.TextUtils.isEmpty(v21.zzasp.zzafa)) {
                                    this.zzacv.zzgi().zziy().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                } else {
                                    v22.zzawf = Long.valueOf(-1);
                                }
                            }
                            this.zzjh().zza(v22, v17);
                        }
                        String v4_112 = this.zzjh();
                        int v5_65 = v21.zzasq;
                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v5_65);
                        v4_112.zzab();
                        v4_112.zzch();
                        int v7_34 = new StringBuilder("rowid in (");
                        com.google.android.gms.internal.measurement.zzet v3_105 = 0;
                        while (v3_105 < v5_65.size()) {
                            if (v3_105 != null) {
                                v7_34.append(",");
                            }
                            v7_34.append(((Long) v5_65.get(v3_105)).longValue());
                            v3_105++;
                        }
                        v7_34.append(")");
                        com.google.android.gms.internal.measurement.zzet v2_224 = v4_112.getWritableDatabase().delete("raw_events", v7_34.toString(), 0);
                        if (v2_224 != v5_65.size()) {
                            v4_112.zzgi().zziv().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v2_224), Integer.valueOf(v5_65.size()));
                        }
                        com.google.android.gms.internal.measurement.zzet v3_110 = this.zzjh();
                        com.google.android.gms.internal.measurement.zzet v2_226 = v3_110.getWritableDatabase();
                        try {
                            int v5_70 = new String[2];
                            v5_70[0] = v6_54;
                            v5_70[1] = v6_54;
                            v2_226.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_70);
                        } catch (com.google.android.gms.internal.measurement.zzet v2_227) {
                            v3_110.zzgi().zziv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v6_54), v2_227);
                        }
                        this.zzjh().setTransactionSuccessful();
                        this.zzjh().endTransaction();
                        v2_125 = 1;
                    }
                    return v2_125;
                } else {
                    v3_64.close();
                }
            }
            if (!android.text.TextUtils.isEmpty(0)) {
                int v6_41;
                if (v16_0 == -1) {
                    int v5_48 = new String[1];
                    v5_48[0] = 0;
                    v6_41 = v5_48;
                } else {
                    int v5_53 = new String[2];
                    v5_53[0] = 0;
                    v5_53[1] = String.valueOf(v16_0);
                    v6_41 = v5_53;
                }
                int v5_59;
                if (v16_0 == -1) {
                    v5_59 = "";
                } else {
                    v5_59 = " and rowid <= ?";
                }
                com.google.android.gms.internal.measurement.zzet v3_100 = v2_101.rawQuery(new StringBuilder((String.valueOf(v5_59).length() + 84)).append("select metadata_fingerprint from raw_events where app_id = ?").append(v5_59).append(" order by rowid limit 1;").toString(), v6_41);
                if (v3_100.moveToFirst()) {
                    int v5_66 = v3_100.getString(0);
                    v3_100.close();
                    v13_0 = v5_66;
                    v12_1 = 0;
                } else {
                    if (v3_100 == null) {
                    } else {
                        v3_100.close();
                    }
                }
            } else {
                int v6_63;
                if (v16_0 == -1) {
                    int v5_74 = new String[1];
                    v5_74[0] = String.valueOf(p32);
                    v6_63 = v5_74;
                } else {
                    int v5_77 = new String[2];
                    v5_77[0] = String.valueOf(v16_0);
                    v5_77[1] = String.valueOf(p32);
                    v6_63 = v5_77;
                }
                int v5_4;
                if (v16_0 == -1) {
                    v5_4 = "";
                } else {
                    v5_4 = "rowid <= ? and ";
                }
                com.google.android.gms.internal.measurement.zzet v3_19 = v2_101.rawQuery(new StringBuilder((String.valueOf(v5_4).length() + 148)).append("select app_id, metadata_fingerprint from raw_events where ").append(v5_4).append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;").toString(), v6_63);
                if (v3_19.moveToFirst()) {
                    String v4_42 = v3_19.getString(0);
                    int v5_25 = v3_19.getString(1);
                    v3_19.close();
                    v13_0 = v5_25;
                    v12_1 = v4_42;
                } else {
                    if (v3_19 == null) {
                    } else {
                        v3_19.close();
                    }
                }
            }
            try {
                String v4_59 = new String[1];
                v4_59[0] = "metadata";
                int v6_27 = new String[2];
                v6_27[0] = v12_1;
                v6_27[1] = v13_0;
                int v11_2 = v2_101.query("raw_events_metadata", v4_59, "app_id = ? and metadata_fingerprint = ?", v6_27, 0, 0, "rowid", "2");
            } catch (com.google.android.gms.internal.measurement.zzet v2_102) {
                v3_64 = v11_2;
                if (v3_64 != null) {
                    v3_64.close();
                }
                throw v2_102;
            } catch (com.google.android.gms.internal.measurement.zzet v2_4) {
                v3_64 = v11_2;
                v4_0 = v12_1;
            }
            if (v11_2.moveToFirst()) {
                com.google.android.gms.internal.measurement.zzet v3_62 = v11_2.getBlob(0);
                com.google.android.gms.internal.measurement.zzet v3_63 = com.google.android.gms.internal.measurement.zzaca.zza(v3_62, 0, v3_62.length);
                String v4_82 = new com.google.android.gms.internal.measurement.zzku();
                try {
                    v4_82.zzb(v3_63);
                } catch (com.google.android.gms.internal.measurement.zzet v2_100) {
                    v14_2.zzgi().zziv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1), v2_100);
                    if (v11_2 == 0) {
                    } else {
                        v11_2.close();
                    }
                }
                if (v11_2.moveToNext()) {
                    v14_2.zzgi().zziy().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1));
                }
                int v6_33;
                int v5_42;
                v11_2.close();
                v21.zzb(v4_82);
                if (v16_0 == -1) {
                    v5_42 = "app_id = ? and metadata_fingerprint = ?";
                    v6_33 = new String[2];
                    v6_33[0] = v12_1;
                    v6_33[1] = v13_0;
                } else {
                    v5_42 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                    v6_33 = new String[3];
                    v6_33[0] = v12_1;
                    v6_33[1] = v13_0;
                    v6_33[2] = String.valueOf(v16_0);
                }
                String v4_87 = new String[4];
                v4_87[0] = "rowid";
                v4_87[1] = "name";
                v4_87[2] = "timestamp";
                v4_87[3] = "data";
                v3_64 = v2_101.query("raw_events", v4_87, v5_42, v6_33, 0, 0, "rowid", 0);
                try {
                    if (!v3_64.moveToFirst()) {
                        v14_2.zzgi().zziy().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1));
                        if (v3_64 == null) {
                        } else {
                            v3_64.close();
                        }
                    }
                } catch (com.google.android.gms.internal.measurement.zzet v2_4) {
                    v4_0 = v12_1;
                }
                do {
                    String v4_88 = v3_64.getLong(0);
                    com.google.android.gms.internal.measurement.zzet v2_106 = v3_64.getBlob(3);
                    com.google.android.gms.internal.measurement.zzet v2_107 = com.google.android.gms.internal.measurement.zzaca.zza(v2_106, 0, v2_106.length);
                    int v6_37 = new com.google.android.gms.internal.measurement.zzkr();
                    v6_37.zzb(v2_107);
                    v6_37.name = v3_64.getString(1);
                    v6_37.zzavb = Long.valueOf(v3_64.getLong(2));
                    if (v21.zza(v4_88, v6_37)) {
                    } else {
                        if (v3_64 == null) {
                        } else {
                            v3_64.close();
                        }
                    }
                } while(v3_64.moveToNext());
                if (v3_64 == null) {
                } else {
                    v3_64.close();
                }
            } else {
                v14_2.zzgi().zziv().zzg("Raw event metadata record is missing. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1));
                if (v11_2 == 0) {
                } else {
                    v11_2.close();
                }
            }
        } catch (com.google.android.gms.internal.measurement.zzet v2_97) {
            this.zzjh().endTransaction();
            throw v2_97;
        }
    }

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


    private final boolean zzd(String p31, long p32)
    {
        this.zzjh().beginTransaction();
        try {
            com.google.android.gms.internal.measurement.zzjt$zza v21 = new com.google.android.gms.internal.measurement.zzjt$zza;
            v21(this, 0);
            int v14_2 = this.zzjh();
            String v4_0 = 0;
            int v16_0 = this.zzasl;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v21);
            v14_2.zzab();
            v14_2.zzch();
            com.google.android.gms.internal.measurement.zzet v3_64 = 0;
            try {
                String v13_0;
                long v12_1;
                com.google.android.gms.internal.measurement.zzet v2_101 = v14_2.getWritableDatabase();
            } catch (com.google.android.gms.internal.measurement.zzet v2_4) {
                v14_2.zzgi().zziv().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v4_0), v2_4);
                if (v3_64 == null) {
                    if ((v21.zzasr != null) && (!v21.zzasr.isEmpty())) {
                        com.google.android.gms.internal.measurement.zzet v2_122 = 0;
                    } else {
                        v2_122 = 1;
                    }
                    com.google.android.gms.internal.measurement.zzet v2_125;
                    if (v2_122 != null) {
                        this.zzjh().setTransactionSuccessful();
                        this.zzjh().endTransaction();
                        v2_125 = 0;
                    } else {
                        int v17 = 0;
                        com.google.android.gms.internal.measurement.zzku v22 = v21.zzasp;
                        com.google.android.gms.internal.measurement.zzet v2_128 = new com.google.android.gms.internal.measurement.zzkr[v21.zzasr.size()];
                        v22.zzavi = v2_128;
                        String v13_1 = 0;
                        int v14_1 = 0;
                        Boolean v18_1 = this.zzacv.zzgk().zzaw(v22.zzth);
                        int v16_1 = 0;
                        while (v16_1 < v21.zzasr.size()) {
                            String v4_72;
                            com.google.android.gms.internal.measurement.zzet v2_66;
                            int v5_32;
                            long v12_0 = ((com.google.android.gms.internal.measurement.zzkr) v21.zzasr.get(v16_1));
                            if (!this.zzky().zzn(v21.zzasp.zzth, v12_0.name)) {
                                int v19_1 = this.zzky().zzo(v21.zzasp.zzth, v12_0.name);
                                if (v19_1 != 0) {
                                    String v4_25 = 0;
                                    com.google.android.gms.internal.measurement.zzet v3_18 = 0;
                                    if (v12_0.zzava == null) {
                                        com.google.android.gms.internal.measurement.zzet v2_30 = new com.google.android.gms.internal.measurement.zzks[0];
                                        v12_0.zzava = v2_30;
                                    }
                                    int v6_11 = v12_0.zzava;
                                    int v7_6 = v6_11.length;
                                    int v5_12 = 0;
                                    while (v5_12 < v7_6) {
                                        com.google.android.gms.internal.measurement.zzet v3_49;
                                        com.google.android.gms.internal.measurement.zzet v2_85;
                                        com.google.android.gms.internal.measurement.zzet v2_84 = v6_11[v5_12];
                                        if (!"_c".equals(v2_84.name)) {
                                            if (!"_r".equals(v2_84.name)) {
                                                v2_85 = v3_18;
                                                v3_49 = v4_25;
                                            } else {
                                                v2_84.zzave = Long.valueOf(1);
                                                v2_85 = 1;
                                                v3_49 = v4_25;
                                            }
                                        } else {
                                            v2_84.zzave = Long.valueOf(1);
                                            v3_49 = 1;
                                            v2_85 = v3_18;
                                        }
                                        v5_12++;
                                        v4_25 = v3_49;
                                        v3_18 = v2_85;
                                    }
                                    if ((v4_25 == null) && (v19_1 != 0)) {
                                        this.zzacv.zzgi().zzjc().zzg("Marking event as conversion", this.zzacv.zzgf().zzbm(v12_0.name));
                                        com.google.android.gms.internal.measurement.zzet v2_37 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v12_0.zzava, (v12_0.zzava.length + 1)));
                                        String v4_31 = new com.google.android.gms.internal.measurement.zzks();
                                        v4_31.name = "_c";
                                        v4_31.zzave = Long.valueOf(1);
                                        v2_37[(v2_37.length - 1)] = v4_31;
                                        v12_0.zzava = v2_37;
                                    }
                                    if (v3_18 == null) {
                                        this.zzacv.zzgi().zzjc().zzg("Marking event as real-time", this.zzacv.zzgf().zzbm(v12_0.name));
                                        com.google.android.gms.internal.measurement.zzet v2_43 = ((com.google.android.gms.internal.measurement.zzks[]) java.util.Arrays.copyOf(v12_0.zzava, (v12_0.zzava.length + 1)));
                                        com.google.android.gms.internal.measurement.zzet v3_25 = new com.google.android.gms.internal.measurement.zzks();
                                        v3_25.name = "_r";
                                        v3_25.zzave = Long.valueOf(1);
                                        v2_43[(v2_43.length - 1)] = v3_25;
                                        v12_0.zzava = v2_43;
                                    }
                                    if (this.zzjh().zza(this.zzld(), v21.zzasp.zzth, 0, 0, 0, 0, 1).zzagx <= ((long) this.zzacv.zzgk().zzas(v21.zzasp.zzth))) {
                                        v17 = 1;
                                    } else {
                                        com.google.android.gms.internal.measurement.zzet v2_45 = 0;
                                        while (v2_45 < v12_0.zzava.length) {
                                            if (!"_r".equals(v12_0.zzava[v2_45].name)) {
                                                v2_45++;
                                            } else {
                                                com.google.android.gms.internal.measurement.zzet v3_39 = new com.google.android.gms.internal.measurement.zzks[(v12_0.zzava.length - 1)];
                                                if (v2_45 > null) {
                                                    System.arraycopy(v12_0.zzava, 0, v3_39, 0, v2_45);
                                                }
                                                if (v2_45 < v3_39.length) {
                                                    System.arraycopy(v12_0.zzava, (v2_45 + 1), v3_39, v2_45, (v3_39.length - v2_45));
                                                }
                                                v12_0.zzava = v3_39;
                                                break;
                                            }
                                        }
                                    }
                                    if ((!com.google.android.gms.internal.measurement.zzkd.zzcg(v12_0.name)) || ((v19_1 == 0) || (this.zzjh().zza(this.zzld(), v21.zzasp.zzth, 0, 0, 1, 0, 0).zzagv <= ((long) this.zzacv.zzgk().zzb(v21.zzasp.zzth, com.google.android.gms.internal.measurement.zzez.zzair))))) {
                                        v5_32 = v17;
                                    } else {
                                        this.zzacv.zzgi().zziy().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                        String v4_57 = 0;
                                        com.google.android.gms.internal.measurement.zzet v3_43 = 0;
                                        int v6_24 = v12_0.zzava;
                                        int v5_30 = 0;
                                        while (v5_30 < v6_24.length) {
                                            com.google.android.gms.internal.measurement.zzet v3_48;
                                            com.google.android.gms.internal.measurement.zzet v2_80 = v6_24[v5_30];
                                            if (!"_c".equals(v2_80.name)) {
                                                if (!"_err".equals(v2_80.name)) {
                                                    v2_80 = v3_43;
                                                    v3_48 = v4_57;
                                                } else {
                                                    v3_48 = 1;
                                                    v2_80 = v3_43;
                                                }
                                            } else {
                                                v3_48 = v4_57;
                                            }
                                            v5_30++;
                                            v4_57 = v3_48;
                                            v3_43 = v2_80;
                                        }
                                        if ((v4_57 == null) || (v3_43 == null)) {
                                            if (v3_43 == null) {
                                                this.zzacv.zzgi().zziv().zzg("Did not find conversion parameter. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                            } else {
                                                v3_43.name = "_err";
                                                v3_43.zzave = Long.valueOf(10);
                                                v5_32 = v17;
                                            }
                                        } else {
                                            com.google.android.gms.internal.measurement.zzet v2_61 = v12_0.zzava;
                                            String v4_65 = new com.google.android.gms.internal.measurement.zzks[1];
                                            v4_65[0] = v3_43;
                                            v12_0.zzava = ((com.google.android.gms.internal.measurement.zzks[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v2_61, v4_65));
                                            v5_32 = v17;
                                        }
                                    }
                                } else {
                                    this.zzjf();
                                    com.google.android.gms.internal.measurement.zzet v3_14 = v12_0.name;
                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_14);
                                    com.google.android.gms.internal.measurement.zzet v2_26 = -1;
                                    switch (v3_14.hashCode()) {
                                        case 94660:
                                            if (!v3_14.equals("_in")) {
                                            } else {
                                                v2_26 = 0;
                                            }
                                            break;
                                        case 95025:
                                            if (!v3_14.equals("_ug")) {
                                            } else {
                                                v2_26 = 2;
                                            }
                                            break;
                                        case 95027:
                                            if (!v3_14.equals("_ui")) {
                                            } else {
                                                v2_26 = 1;
                                            }
                                            break;
                                    }
                                    com.google.android.gms.internal.measurement.zzet v2_27;
                                    switch (v2_26) {
                                        case 0:
                                        case 1:
                                        case 2:
                                            v2_27 = 1;
                                            break;
                                        default:
                                            v2_27 = 0;
                                    }
                                    if (v2_27 == null) {
                                    }
                                }
                                if ((v18_1 == null) || (!"_e".equals(v12_0.name))) {
                                    v2_66 = v14_1;
                                } else {
                                    if ((v12_0.zzava != null) && (v12_0.zzava.length != 0)) {
                                        this.zzjf();
                                        com.google.android.gms.internal.measurement.zzet v2_72 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v12_0, "_et"));
                                        if (v2_72 != null) {
                                            v2_66 = (v14_1 + v2_72.longValue());
                                        } else {
                                            this.zzacv.zzgi().zziy().zzg("Engagement event does not include duration. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                            v2_66 = v14_1;
                                        }
                                    } else {
                                        this.zzacv.zzgi().zziy().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                        v2_66 = v14_1;
                                    }
                                }
                                v4_72 = (v13_1 + 1);
                                v22.zzavi[v13_1] = v12_0;
                            } else {
                                com.google.android.gms.internal.measurement.zzet v2_94;
                                this.zzacv.zzgi().zziy().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth), this.zzacv.zzgf().zzbm(v12_0.name));
                                if ((!this.zzky().zzcb(v21.zzasp.zzth)) && (!this.zzky().zzcc(v21.zzasp.zzth))) {
                                    v2_94 = 0;
                                } else {
                                    v2_94 = 1;
                                }
                                if ((v2_94 != null) || ("_err".equals(v12_0.name))) {
                                    v2_66 = v14_1;
                                    v4_72 = v13_1;
                                    v5_32 = v17;
                                } else {
                                    this.zzacv.zzgg().zza(v21.zzasp.zzth, 11, "_ev", v12_0.name, 0);
                                    v2_66 = v14_1;
                                    v4_72 = v13_1;
                                    v5_32 = v17;
                                }
                            }
                            v16_1++;
                            v14_1 = v2_66;
                            v13_1 = v4_72;
                            v17 = v5_32;
                        }
                        if (v13_1 < v21.zzasr.size()) {
                            v22.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v22.zzavi, v13_1));
                        }
                        if (v18_1 != null) {
                            String v4_96;
                            long v8_21 = this.zzjh().zzh(v22.zzth, "_lte");
                            if ((v8_21 != 0) && (v8_21.value != null)) {
                                v4_96 = new com.google.android.gms.internal.measurement.zzkc(v22.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf((((Long) v8_21.value).longValue() + v14_1)));
                            } else {
                                v4_96 = new com.google.android.gms.internal.measurement.zzkc(v22.zzth, "auto", "_lte", this.zzacv.zzbt().currentTimeMillis(), Long.valueOf(v14_1));
                            }
                            int v5_57 = new com.google.android.gms.internal.measurement.zzkx();
                            v5_57.name = "_lte";
                            v5_57.zzaws = Long.valueOf(this.zzacv.zzbt().currentTimeMillis());
                            v5_57.zzave = ((Long) v4_96.value);
                            com.google.android.gms.internal.measurement.zzet v2_153 = 0;
                            com.google.android.gms.internal.measurement.zzet v3_84 = 0;
                            while (v3_84 < v22.zzavj.length) {
                                if (!"_lte".equals(v22.zzavj[v3_84].name)) {
                                    v3_84++;
                                } else {
                                    v22.zzavj[v3_84] = v5_57;
                                    v2_153 = 1;
                                    break;
                                }
                            }
                            if (v2_153 == null) {
                                v22.zzavj = ((com.google.android.gms.internal.measurement.zzkx[]) java.util.Arrays.copyOf(v22.zzavj, (v22.zzavj.length + 1)));
                                v22.zzavj[(v21.zzasp.zzavj.length - 1)] = v5_57;
                            }
                            if (v14_1 > 0) {
                                this.zzjh().zza(v4_96);
                                this.zzacv.zzgi().zzjb().zzg("Updated lifetime engagement user property with value. Value", v4_96.value);
                            }
                        }
                        v22.zzawa = this.zza(v22.zzth, v22.zzavj, v22.zzavi);
                        if (this.zzacv.zzgk().zzav(v21.zzasp.zzth)) {
                            java.util.HashMap v23_1 = new java.util.HashMap();
                            java.util.HashMap v0_96 = new com.google.android.gms.internal.measurement.zzkr[v22.zzavi.length];
                            com.google.android.gms.internal.measurement.zzkr[] v24 = v0_96;
                            Boolean v18_0 = 0;
                            java.security.SecureRandom v25 = this.zzacv.zzgg().zzlo();
                            com.google.android.gms.internal.measurement.zzkr[] v26 = v22.zzavi;
                            int v27 = v26.length;
                            int v19_0 = 0;
                            while (v19_0 < v27) {
                                com.google.android.gms.internal.measurement.zzet v2_3;
                                com.google.android.gms.internal.measurement.zzkr v28 = v26[v19_0];
                                if (!v28.name.equals("_ep")) {
                                    com.google.android.gms.internal.measurement.zzet v3_119;
                                    int v5_75 = Long.valueOf(1);
                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v5_75 != 0)) {
                                        int v6_61 = v28.zzava;
                                        com.google.android.gms.internal.measurement.zzet v3_118 = 0;
                                        while (v3_118 < v6_61.length) {
                                            long v8_35 = v6_61[v3_118];
                                            if (!"_dbg".equals(v8_35.name)) {
                                                v3_118++;
                                            } else {
                                                if (((!(v5_75 instanceof Long)) || (!v5_75.equals(v8_35.zzave))) && (((!(v5_75 instanceof String)) || (!v5_75.equals(v8_35.zzale))) && ((!(v5_75 instanceof Double)) || (!v5_75.equals(v8_35.zzasw))))) {
                                                    v3_119 = 0;
                                                } else {
                                                    v3_119 = 1;
                                                }
                                            }
                                        }
                                        v3_119 = 0;
                                    } else {
                                        v3_119 = 0;
                                    }
                                    int v20;
                                    if (v3_119 != null) {
                                        v20 = 1;
                                    } else {
                                        v20 = this.zzky().zzp(v21.zzasp.zzth, v28.name);
                                    }
                                    if (v20 > 0) {
                                        com.google.android.gms.internal.measurement.zzet v3_0;
                                        com.google.android.gms.internal.measurement.zzet v2_245 = ((com.google.android.gms.internal.measurement.zzet) v23_1.get(v28.name));
                                        if (v2_245 != null) {
                                            v3_0 = v2_245;
                                        } else {
                                            v3_0 = this.zzjh().zzf(v21.zzasp.zzth, v28.name);
                                            if (v3_0 == null) {
                                                this.zzacv.zzgi().zziy().zze("Event being bundled has no eventAggregate. appId, eventName", v21.zzasp.zzth, v28.name);
                                                v3_0 = new com.google.android.gms.internal.measurement.zzet(v21.zzasp.zzth, v28.name, 1, 1, v28.zzavb.longValue(), 0, 0, 0, 0);
                                            }
                                        }
                                        String v4_130;
                                        this.zzjf();
                                        com.google.android.gms.internal.measurement.zzet v2_254 = ((Long) com.google.android.gms.internal.measurement.zzjz.zzb(v28, "_eid"));
                                        if (v2_254 == null) {
                                            v4_130 = 0;
                                        } else {
                                            v4_130 = 1;
                                        }
                                        String v4_131 = Boolean.valueOf(v4_130);
                                        if (v20 != 1) {
                                            if (v25.nextInt(v20) != 0) {
                                                if (Math.abs((v28.zzavb.longValue() - v3_0.zzahk)) < 86400000) {
                                                    if (!v4_131.booleanValue()) {
                                                        v2_3 = v18_0;
                                                    } else {
                                                        v23_1.put(v28.name, v3_0.zza(v2_254, 0, 0));
                                                    }
                                                } else {
                                                    this.zzjf();
                                                    v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_efs", Long.valueOf(1));
                                                    this.zzjf();
                                                    v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_sr", Long.valueOf(((long) v20)));
                                                    v2_3 = (v18_0 + 1);
                                                    v24[v18_0] = v28;
                                                    if (v4_131.booleanValue()) {
                                                        v3_0 = v3_0.zza(0, Long.valueOf(((long) v20)), Boolean.valueOf(1));
                                                    }
                                                    v23_1.put(v28.name, v3_0.zzai(v28.zzavb.longValue()));
                                                }
                                            } else {
                                                this.zzjf();
                                                v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_sr", Long.valueOf(((long) v20)));
                                                v2_3 = (v18_0 + 1);
                                                v24[v18_0] = v28;
                                                if (v4_131.booleanValue()) {
                                                    v3_0 = v3_0.zza(0, Long.valueOf(((long) v20)), 0);
                                                }
                                                v23_1.put(v28.name, v3_0.zzai(v28.zzavb.longValue()));
                                            }
                                        } else {
                                            v2_3 = (v18_0 + 1);
                                            v24[v18_0] = v28;
                                            if ((v4_131.booleanValue()) && ((v3_0.zzahl != null) || ((v3_0.zzahm != null) || (v3_0.zzahn != null)))) {
                                                v23_1.put(v28.name, v3_0.zza(0, 0, 0));
                                            }
                                        }
                                    } else {
                                        this.zzacv.zzgi().zziy().zze("Sample rate must be positive. event, rate", v28.name, Integer.valueOf(v20));
                                        v2_3 = (v18_0 + 1);
                                        v24[v18_0] = v28;
                                    }
                                } else {
                                    this.zzjf();
                                    com.google.android.gms.internal.measurement.zzet v2_10 = ((String) com.google.android.gms.internal.measurement.zzjz.zzb(v28, "_en"));
                                    com.google.android.gms.internal.measurement.zzet v3_6 = ((com.google.android.gms.internal.measurement.zzet) v23_1.get(v2_10));
                                    if (v3_6 == null) {
                                        v3_6 = this.zzjh().zzf(v21.zzasp.zzth, v2_10);
                                        v23_1.put(v2_10, v3_6);
                                    }
                                    if (v3_6.zzahl != null) {
                                    } else {
                                        if (v3_6.zzahm.longValue() > 1) {
                                            this.zzjf();
                                            v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_sr", v3_6.zzahm);
                                        }
                                        if ((v3_6.zzahn != null) && (v3_6.zzahn.booleanValue())) {
                                            this.zzjf();
                                            v28.zzava = com.google.android.gms.internal.measurement.zzjz.zza(v28.zzava, "_efs", Long.valueOf(1));
                                        }
                                        v2_3 = (v18_0 + 1);
                                        v24[v18_0] = v28;
                                    }
                                }
                                v19_0++;
                                v18_0 = v2_3;
                            }
                            if (v18_0 < v22.zzavi.length) {
                                v22.zzavi = ((com.google.android.gms.internal.measurement.zzkr[]) java.util.Arrays.copyOf(v24, v18_0));
                            }
                            com.google.android.gms.internal.measurement.zzet v3_96 = v23_1.entrySet().iterator();
                            while (v3_96.hasNext()) {
                                this.zzjh().zza(((com.google.android.gms.internal.measurement.zzet) ((java.util.Map$Entry) v3_96.next()).getValue()));
                            }
                        }
                        v22.zzavl = Long.valueOf(nan);
                        v22.zzavm = Long.valueOf(-0.0);
                        com.google.android.gms.internal.measurement.zzet v2_185 = 0;
                        while (v2_185 < v22.zzavi.length) {
                            com.google.android.gms.internal.measurement.zzet v3_114 = v22.zzavi[v2_185];
                            if (v3_114.zzavb.longValue() < v22.zzavl.longValue()) {
                                v22.zzavl = v3_114.zzavb;
                            }
                            if (v3_114.zzavb.longValue() > v22.zzavm.longValue()) {
                                v22.zzavm = v3_114.zzavb;
                            }
                            v2_185++;
                        }
                        int v6_54 = v21.zzasp.zzth;
                        int v7_31 = this.zzjh().zzbf(v6_54);
                        if (v7_31 != 0) {
                            if (v22.zzavi.length > 0) {
                                String v4_102;
                                com.google.android.gms.internal.measurement.zzet v2_190 = v7_31.zzgt();
                                if (v2_190 == 0) {
                                    v4_102 = 0;
                                } else {
                                    v4_102 = Long.valueOf(v2_190);
                                }
                                v22.zzavo = v4_102;
                                String v4_103 = v7_31.zzgs();
                                if (v4_103 != 0) {
                                    v2_190 = v4_103;
                                }
                                com.google.android.gms.internal.measurement.zzet v2_191;
                                if (v2_190 == 0) {
                                    v2_191 = 0;
                                } else {
                                    v2_191 = Long.valueOf(v2_190);
                                }
                                v22.zzavn = v2_191;
                                v7_31.zzhb();
                                v22.zzavy = Integer.valueOf(((int) v7_31.zzgy()));
                                v7_31.zzr(v22.zzavl.longValue());
                                v7_31.zzs(v22.zzavm.longValue());
                                v22.zzafy = v7_31.zzhj();
                                this.zzjh().zza(v7_31);
                            }
                        } else {
                            this.zzacv.zzgi().zziv().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                        }
                        if (v22.zzavi.length > 0) {
                            this.zzacv.zzgl();
                            com.google.android.gms.internal.measurement.zzet v2_208 = this.zzky().zzbx(v21.zzasp.zzth);
                            if ((v2_208 != null) && (v2_208.zzaum != null)) {
                                v22.zzawf = v2_208.zzaum;
                            } else {
                                if (!android.text.TextUtils.isEmpty(v21.zzasp.zzafa)) {
                                    this.zzacv.zzgi().zziy().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v21.zzasp.zzth));
                                } else {
                                    v22.zzawf = Long.valueOf(-1);
                                }
                            }
                            this.zzjh().zza(v22, v17);
                        }
                        String v4_112 = this.zzjh();
                        int v5_65 = v21.zzasq;
                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v5_65);
                        v4_112.zzab();
                        v4_112.zzch();
                        int v7_34 = new StringBuilder("rowid in (");
                        com.google.android.gms.internal.measurement.zzet v3_105 = 0;
                        while (v3_105 < v5_65.size()) {
                            if (v3_105 != null) {
                                v7_34.append(",");
                            }
                            v7_34.append(((Long) v5_65.get(v3_105)).longValue());
                            v3_105++;
                        }
                        v7_34.append(")");
                        com.google.android.gms.internal.measurement.zzet v2_224 = v4_112.getWritableDatabase().delete("raw_events", v7_34.toString(), 0);
                        if (v2_224 != v5_65.size()) {
                            v4_112.zzgi().zziv().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v2_224), Integer.valueOf(v5_65.size()));
                        }
                        com.google.android.gms.internal.measurement.zzet v3_110 = this.zzjh();
                        com.google.android.gms.internal.measurement.zzet v2_226 = v3_110.getWritableDatabase();
                        try {
                            int v5_70 = new String[2];
                            v5_70[0] = v6_54;
                            v5_70[1] = v6_54;
                            v2_226.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_70);
                        } catch (com.google.android.gms.internal.measurement.zzet v2_227) {
                            v3_110.zzgi().zziv().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v6_54), v2_227);
                        }
                        this.zzjh().setTransactionSuccessful();
                        this.zzjh().endTransaction();
                        v2_125 = 1;
                    }
                    return v2_125;
                } else {
                    v3_64.close();
                }
            }
            if (!android.text.TextUtils.isEmpty(0)) {
                int v6_41;
                if (v16_0 == -1) {
                    int v5_48 = new String[1];
                    v5_48[0] = 0;
                    v6_41 = v5_48;
                } else {
                    int v5_53 = new String[2];
                    v5_53[0] = 0;
                    v5_53[1] = String.valueOf(v16_0);
                    v6_41 = v5_53;
                }
                int v5_59;
                if (v16_0 == -1) {
                    v5_59 = "";
                } else {
                    v5_59 = " and rowid <= ?";
                }
                com.google.android.gms.internal.measurement.zzet v3_100 = v2_101.rawQuery(new StringBuilder((String.valueOf(v5_59).length() + 84)).append("select metadata_fingerprint from raw_events where app_id = ?").append(v5_59).append(" order by rowid limit 1;").toString(), v6_41);
                if (v3_100.moveToFirst()) {
                    int v5_66 = v3_100.getString(0);
                    v3_100.close();
                    v13_0 = v5_66;
                    v12_1 = 0;
                } else {
                    if (v3_100 == null) {
                    } else {
                        v3_100.close();
                    }
                }
            } else {
                int v6_63;
                if (v16_0 == -1) {
                    int v5_74 = new String[1];
                    v5_74[0] = String.valueOf(p32);
                    v6_63 = v5_74;
                } else {
                    int v5_77 = new String[2];
                    v5_77[0] = String.valueOf(v16_0);
                    v5_77[1] = String.valueOf(p32);
                    v6_63 = v5_77;
                }
                int v5_4;
                if (v16_0 == -1) {
                    v5_4 = "";
                } else {
                    v5_4 = "rowid <= ? and ";
                }
                com.google.android.gms.internal.measurement.zzet v3_19 = v2_101.rawQuery(new StringBuilder((String.valueOf(v5_4).length() + 148)).append("select app_id, metadata_fingerprint from raw_events where ").append(v5_4).append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;").toString(), v6_63);
                if (v3_19.moveToFirst()) {
                    String v4_42 = v3_19.getString(0);
                    int v5_25 = v3_19.getString(1);
                    v3_19.close();
                    v13_0 = v5_25;
                    v12_1 = v4_42;
                } else {
                    if (v3_19 == null) {
                    } else {
                        v3_19.close();
                    }
                }
            }
            try {
                String v4_59 = new String[1];
                v4_59[0] = "metadata";
                int v6_27 = new String[2];
                v6_27[0] = v12_1;
                v6_27[1] = v13_0;
                int v11_2 = v2_101.query("raw_events_metadata", v4_59, "app_id = ? and metadata_fingerprint = ?", v6_27, 0, 0, "rowid", "2");
            } catch (com.google.android.gms.internal.measurement.zzet v2_102) {
                v3_64 = v11_2;
                if (v3_64 != null) {
                    v3_64.close();
                }
                throw v2_102;
            } catch (com.google.android.gms.internal.measurement.zzet v2_4) {
                v3_64 = v11_2;
                v4_0 = v12_1;
            }
            if (v11_2.moveToFirst()) {
                com.google.android.gms.internal.measurement.zzet v3_62 = v11_2.getBlob(0);
                com.google.android.gms.internal.measurement.zzet v3_63 = com.google.android.gms.internal.measurement.zzaca.zza(v3_62, 0, v3_62.length);
                String v4_82 = new com.google.android.gms.internal.measurement.zzku();
                try {
                    v4_82.zzb(v3_63);
                } catch (com.google.android.gms.internal.measurement.zzet v2_100) {
                    v14_2.zzgi().zziv().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1), v2_100);
                    if (v11_2 == 0) {
                    } else {
                        v11_2.close();
                    }
                }
                if (v11_2.moveToNext()) {
                    v14_2.zzgi().zziy().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1));
                }
                int v6_33;
                int v5_42;
                v11_2.close();
                v21.zzb(v4_82);
                if (v16_0 == -1) {
                    v5_42 = "app_id = ? and metadata_fingerprint = ?";
                    v6_33 = new String[2];
                    v6_33[0] = v12_1;
                    v6_33[1] = v13_0;
                } else {
                    v5_42 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                    v6_33 = new String[3];
                    v6_33[0] = v12_1;
                    v6_33[1] = v13_0;
                    v6_33[2] = String.valueOf(v16_0);
                }
                String v4_87 = new String[4];
                v4_87[0] = "rowid";
                v4_87[1] = "name";
                v4_87[2] = "timestamp";
                v4_87[3] = "data";
                v3_64 = v2_101.query("raw_events", v4_87, v5_42, v6_33, 0, 0, "rowid", 0);
                try {
                    if (!v3_64.moveToFirst()) {
                        v14_2.zzgi().zziy().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1));
                        if (v3_64 == null) {
                        } else {
                            v3_64.close();
                        }
                    }
                } catch (com.google.android.gms.internal.measurement.zzet v2_4) {
                    v4_0 = v12_1;
                }
                do {
                    String v4_88 = v3_64.getLong(0);
                    com.google.android.gms.internal.measurement.zzet v2_106 = v3_64.getBlob(3);
                    com.google.android.gms.internal.measurement.zzet v2_107 = com.google.android.gms.internal.measurement.zzaca.zza(v2_106, 0, v2_106.length);
                    int v6_37 = new com.google.android.gms.internal.measurement.zzkr();
                    v6_37.zzb(v2_107);
                    v6_37.name = v3_64.getString(1);
                    v6_37.zzavb = Long.valueOf(v3_64.getLong(2));
                    if (v21.zza(v4_88, v6_37)) {
                    } else {
                        if (v3_64 == null) {
                        } else {
                            v3_64.close();
                        }
                    }
                } while(v3_64.moveToNext());
                if (v3_64 == null) {
                } else {
                    v3_64.close();
                }
            } else {
                v14_2.zzgi().zziv().zzg("Raw event metadata record is missing. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v12_1));
                if (v11_2 == 0) {
                } else {
                    v11_2.close();
                }
            }
        } catch (com.google.android.gms.internal.measurement.zzet v2_97) {
            this.zzjh().endTransaction();
            throw v2_97;
        }
    }

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


    private static boolean zza(com.google.android.gms.internal.measurement.zzfi p10, android.database.sqlite.SQLiteDatabase p11, String p12)
    {
        int v9 = 0;
        if (p10 != null) {
            try {
                com.google.android.gms.internal.measurement.zzfk 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.zziy().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.common.util.DbUtils.zza() calling method android.database.sqlite.SQLiteDatabase.query()


    private static varargs void zza(android.database.sqlite.SQLiteDatabase p8, String p9, String[] p10)
    {
        Throwable v0_2;
        Throwable v5 = 0;
        if ((!"table".equals(p9)) && ((!"view".equals(p9)) && (!"trigger".equals(p9)))) {
            v0_2 = 0;
        } else {
            v0_2 = 1;
        }
        com.google.android.gms.common.internal.Preconditions.checkArgument(v0_2);
        android.database.Cursor v2_0 = new String[1];
        v2_0[0] = "name";
        String v4_1 = new String[1];
        v4_1[0] = p9;
        android.database.Cursor v2_1 = p8.query("SQLITE_MASTER", v2_0, "type == ?", v4_1, 0, 0, 0);
        try {
            Throwable v0_6 = com.google.android.gms.common.util.CollectionUtils.setOf(p10);
        } catch (Throwable v0_8) {
            if (v2_1 != null) {
                if (v5 == null) {
                    v2_1.close();
                } else {
                    try {
                        v2_1.close();
                    } catch (Throwable v1_5) {
                        com.google.android.gms.internal.stable.zzk.zza(v5, v1_5);
                    }
                }
            }
            throw v0_8;
        } catch (Throwable v0_7) {
            try {
                throw v0_7;
            } catch (Throwable v1_4) {
                v5 = v0_7;
                v0_8 = v1_4;
            }
        }
        while (v2_1.moveToNext()) {
            Throwable v1_3 = v2_1.getString(0);
            if (!v0_6.contains(v1_3)) {
                p8.execSQL(new StringBuilder(((String.valueOf(p9).length() + 8) + String.valueOf(v1_3).length())).append("DROP ").append(p9).append(" \'").append(v1_3).append("\'").toString());
            }
        }
        if (v2_1 != null) {
            v2_1.close();
        }
        return;
    }