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 android.arch.persistence.db.framework.FrameworkSQLiteDatabase$2.newCursor() calling method android.database.sqlite.SQLiteCursor.<init>()


    public android.database.Cursor newCursor(android.database.sqlite.SQLiteDatabase p2, android.database.sqlite.SQLiteCursorDriver p3, String p4, android.database.sqlite.SQLiteQuery p5)
    {
        this.val$supportQuery.bindTo(new android.arch.persistence.db.framework.FrameworkSQLiteProgram(p5));
        return new android.database.sqlite.SQLiteCursor(p3, p4, p5);
    }

Method android.arch.persistence.db.framework.FrameworkSQLiteDatabase$1.newCursor() calling method android.database.sqlite.SQLiteCursor.<init>()


    public android.database.Cursor newCursor(android.database.sqlite.SQLiteDatabase p2, android.database.sqlite.SQLiteCursorDriver p3, String p4, android.database.sqlite.SQLiteQuery p5)
    {
        this.val$supportQuery.bindTo(new android.arch.persistence.db.framework.FrameworkSQLiteProgram(p5));
        return new android.database.sqlite.SQLiteCursor(p3, p4, p5);
    }

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


    protected final long zzn(String p14, String p15)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p14);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p15);
        this.zzaf();
        this.zzcl();
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        v0.beginTransaction();
        try {
            String v4_2 = new StringBuilder((String.valueOf(p15).length() + 32));
            v4_2.append("select ");
            v4_2.append(p15);
            v4_2.append(" from app2 where app_id=?");
            Object v3_5 = v4_2.toString();
            Object v5_1 = new String[1];
            v5_1[0] = p14;
            com.google.android.gms.measurement.internal.zzau v9_0 = this.zza(v3_5, v5_1, -1);
        } catch (Object v14_2) {
            v0.endTransaction();
            throw v14_2;
        } catch (Object v3_10) {
            v9_0 = 0;
            this.zzgt().zzjg().zzd("Error inserting column. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p14), p15, v3_10);
            v0.endTransaction();
            return v9_0;
        }
        if (v9_0 == -1) {
            Object v3_8 = new android.content.ContentValues();
            v3_8.put("app_id", p14);
            v3_8.put("first_open_count", Integer.valueOf(0));
            v3_8.put("previous_install_count", Integer.valueOf(0));
            if (v0.insertWithOnConflict("app2", 0, v3_8, 5) != -1) {
                v9_0 = 0;
            } else {
                this.zzgt().zzjg().zze("Failed to insert column (got -1). appId", com.google.android.gms.measurement.internal.zzas.zzbw(p14), p15);
                v0.endTransaction();
                return -1;
            }
        }
        try {
            Object v3_12 = new android.content.ContentValues();
            v3_12.put("app_id", p14);
            v3_12.put(p15, Long.valueOf((1 + v9_0)));
            String v4_4 = new String[1];
            v4_4[0] = p14;
        } catch (Object v3_10) {
        }
        if (((long) v0.update("app2", v3_12, "app_id = ?", v4_4)) != 0) {
            v0.setTransactionSuccessful();
            v0.endTransaction();
            return v9_0;
        } else {
            this.zzgt().zzjg().zze("Failed to update column (got 0). appId", com.google.android.gms.measurement.internal.zzas.zzbw(p14), p15);
            v0.endTransaction();
            return -1;
        }
    }

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


    public final void zza(com.google.android.gms.measurement.internal.zzg p8)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p8);
        this.zzaf();
        this.zzcl();
        com.google.android.gms.measurement.internal.zzau v0_5 = new android.content.ContentValues();
        v0_5.put("app_id", p8.zzal());
        v0_5.put("app_instance_id", p8.getAppInstanceId());
        v0_5.put("gmp_app_id", p8.getGmpAppId());
        v0_5.put("resettable_device_id_hash", p8.zzhc());
        v0_5.put("last_bundle_index", Long.valueOf(p8.zzhj()));
        v0_5.put("last_bundle_start_timestamp", Long.valueOf(p8.zzhd()));
        v0_5.put("last_bundle_end_timestamp", Long.valueOf(p8.zzhe()));
        v0_5.put("app_version", p8.zzak());
        v0_5.put("app_store", p8.zzhg());
        v0_5.put("gmp_version", Long.valueOf(p8.zzhh()));
        v0_5.put("dev_cert_hash", Long.valueOf(p8.zzhi()));
        v0_5.put("measurement_enabled", Boolean.valueOf(p8.isMeasurementEnabled()));
        v0_5.put("day", Long.valueOf(p8.zzhn()));
        v0_5.put("daily_public_events_count", Long.valueOf(p8.zzho()));
        v0_5.put("daily_events_count", Long.valueOf(p8.zzhp()));
        v0_5.put("daily_conversions_count", Long.valueOf(p8.zzhq()));
        v0_5.put("config_fetched_time", Long.valueOf(p8.zzhk()));
        v0_5.put("failed_config_fetch_time", Long.valueOf(p8.zzhl()));
        v0_5.put("app_version_int", Long.valueOf(p8.zzhf()));
        v0_5.put("firebase_instance_id", p8.getFirebaseInstanceId());
        v0_5.put("daily_error_events_count", Long.valueOf(p8.zzhs()));
        v0_5.put("daily_realtime_events_count", Long.valueOf(p8.zzhr()));
        v0_5.put("health_monitor_sample", p8.zzht());
        v0_5.put("android_id", Long.valueOf(p8.zzhv()));
        v0_5.put("adid_reporting_enabled", Boolean.valueOf(p8.zzhw()));
        v0_5.put("ssaid_reporting_enabled", Boolean.valueOf(p8.zzhx()));
        v0_5.put("admob_app_id", p8.zzhb());
        try {
            String v1_10 = this.getWritableDatabase();
            long v4_1 = new String[1];
            v4_1[0] = p8.zzal();
        } catch (com.google.android.gms.measurement.internal.zzau v0_3) {
            this.zzgt().zzjg().zze("Error storing app. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p8.zzal()), v0_3);
            return;
        }
        if ((((long) v1_10.update("apps", v0_5, "app_id = ?", v4_1)) == 0) && (v1_10.insertWithOnConflict("apps", 0, v0_5, 5) == -1)) {
            this.zzgt().zzjg().zzg("Failed to insert/update app (got -1). appId", com.google.android.gms.measurement.internal.zzas.zzbw(p8.zzal()));
        }
        return;
    }

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


    public final com.google.android.gms.measurement.internal.zzu zza(long p15, String p17, boolean p18, boolean p19, boolean p20, boolean p21, boolean p22)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p17);
        this.zzaf();
        this.zzcl();
        com.google.android.gms.measurement.internal.zzau v1_1 = new String[1];
        v1_1[0] = p17;
        com.google.android.gms.measurement.internal.zzu v3_1 = new com.google.android.gms.measurement.internal.zzu();
        try {
            android.database.sqlite.SQLiteDatabase v13 = this.getWritableDatabase();
            String[] v9 = "daily_public_events_count";
            int v11 = "daily_error_events_count";
            v9 = new String[1];
            v9[0] = p17;
            android.database.Cursor v4 = v13.query("apps", new String[] {"day", "daily_realtime_events_count"}), "app_id=?", v9, 0, 0, 0);
        } catch (android.content.ContentValues v0_8) {
            if (v4 != null) {
                v4.close();
            }
            throw v0_8;
        } catch (android.content.ContentValues v0_7) {
            this.zzgt().zzjg().zze("Error updating daily counts. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p17), v0_7);
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        }
        if (v4.moveToFirst()) {
            if (v4.getLong(0) == p15) {
                v3_1.zzahi = v4.getLong(1);
                v3_1.zzahh = v4.getLong(2);
                v3_1.zzahj = v4.getLong(3);
                v3_1.zzahk = v4.getLong(4);
                v3_1.zzahl = v4.getLong(5);
            }
            if (p18) {
                v3_1.zzahi = (v3_1.zzahi + 1);
            }
            if (p19) {
                v3_1.zzahh = (v3_1.zzahh + 1);
            }
            if (p20) {
                v3_1.zzahj = (v3_1.zzahj + 1);
            }
            if (p21) {
                v3_1.zzahk = (v3_1.zzahk + 1);
            }
            if (p22) {
                v3_1.zzahl = (v3_1.zzahl + 1);
            }
            android.content.ContentValues v0_10 = new android.content.ContentValues();
            v0_10.put("day", Long.valueOf(p15));
            v0_10.put("daily_public_events_count", Long.valueOf(v3_1.zzahh));
            v0_10.put("daily_events_count", Long.valueOf(v3_1.zzahi));
            v0_10.put("daily_conversions_count", Long.valueOf(v3_1.zzahj));
            v0_10.put("daily_error_events_count", Long.valueOf(v3_1.zzahk));
            v0_10.put("daily_realtime_events_count", Long.valueOf(v3_1.zzahl));
            v13.update("apps", v0_10, "app_id=?", v1_1);
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        } else {
            this.zzgt().zzjj().zzg("Not updating daily counts, app is not known. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p17));
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        }
    }

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


    protected final boolean zza(String p17, byte[] p18, String p19)
    {
        this.zzcl();
        this.zzaf();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p17);
        com.google.android.gms.measurement.internal.zzau v0_3 = this.zza(p17, p18);
        if (v0_3 != null) {
            void v1_1 = this.zza(p17, v0_3);
            v1_1.zzaoq.put(p17, v0_3);
            v1_1.zzaos.put(p17, p19);
            v1_1.zzaon.put(p17, com.google.android.gms.measurement.internal.zzbq.zza(v0_3));
            com.google.android.gms.measurement.internal.zzau v4_3 = this.zzjs();
            String v5_2 = v0_3.zzawq;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v5_2);
            Object v6_0 = v5_2.length;
            int v7_0 = 0;
            while (v7_0 < v6_0) {
                String[] v8_1 = v5_2[v7_0];
                int v9_2 = v8_1.zzavi;
                int v10_1 = v9_2.length;
                int v11_2 = 0;
                while (v11_2 < v10_1) {
                    com.google.android.gms.internal.measurement.zzfk[] v12_0 = v9_2[v11_2];
                    int v13_1 = com.google.android.gms.measurement.internal.zzcu.zzco(v12_0.zzavn);
                    if (v13_1 != 0) {
                        v12_0.zzavn = v13_1;
                    }
                    com.google.android.gms.internal.measurement.zzfk[] v12_1 = v12_0.zzavo;
                    int v13_2 = v12_1.length;
                    int v14 = 0;
                    while (v14 < v13_2) {
                        com.google.android.gms.internal.measurement.zzfk v15 = v12_1[v14];
                        int v3_1 = com.google.android.gms.measurement.internal.zzcv.zzco(v15.zzavv);
                        if (v3_1 != 0) {
                            v15.zzavv = v3_1;
                        }
                        v14++;
                    }
                    v11_2++;
                }
                int v3_10 = v8_1.zzavh;
                String[] v8_2 = v3_10.length;
                int v9_0 = 0;
                while (v9_0 < v8_2) {
                    int v10_0 = v3_10[v9_0];
                    int v11_1 = com.google.android.gms.measurement.internal.zzcw.zzco(v10_0.zzawc);
                    if (v11_1 != 0) {
                        v10_0.zzawc = v11_1;
                    }
                    v9_0++;
                }
                v7_0++;
            }
            v4_3.zzjt().zza(p17, v5_2);
            try {
                v0_3.zzawq = 0;
                int v3_5 = new byte[v0_3.zzvx()];
                v0_3.zza(com.google.android.gms.internal.measurement.zzya.zzk(v3_5, 0, v3_5.length));
            } catch (com.google.android.gms.measurement.internal.zzau v0_0) {
                this.zzgt().zzjj().zze("Unable to serialize reduced-size config. Storing full config instead. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p17), v0_0);
                v3_5 = p18;
            }
            com.google.android.gms.measurement.internal.zzau v4_7 = this.zzjt();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p17);
            v4_7.zzaf();
            v4_7.zzcl();
            com.google.android.gms.measurement.internal.zzau v0_2 = new android.content.ContentValues();
            v0_2.put("remote_config", v3_5);
            try {
                String v5_6 = v4_7.getWritableDatabase();
                String[] v8_0 = new String[1];
                v8_0[0] = p17;
            } catch (com.google.android.gms.measurement.internal.zzau v0_6) {
                v4_7.zzgt().zzjg().zze("Error storing remote config. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p17), v0_6);
                return 1;
            }
            if (((long) v5_6.update("apps", v0_2, "app_id = ?", v8_0)) != 0) {
                return 1;
            } else {
                v4_7.zzgt().zzjg().zzg("Failed to update remote config (got 0). appId", com.google.android.gms.measurement.internal.zzas.zzbw(p17));
                return 1;
            }
        } else {
            return 0;
        }
    }

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


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

Method android.arch.persistence.db.framework.FrameworkSQLiteDatabase.query() calling method android.database.sqlite.SQLiteDatabase.rawQueryWithFactory()


    public android.database.Cursor query(android.arch.persistence.db.SupportSQLiteQuery p7, android.os.CancellationSignal p8)
    {
        return this.mDelegate.rawQueryWithFactory(new android.arch.persistence.db.framework.FrameworkSQLiteDatabase$2(this, p7), p7.getSql(), android.arch.persistence.db.framework.FrameworkSQLiteDatabase.EMPTY_STRING_ARRAY, 0, p8);
    }

Method android.arch.persistence.db.framework.FrameworkSQLiteDatabase.query() calling method android.database.sqlite.SQLiteDatabase.rawQueryWithFactory()


    public android.database.Cursor query(android.arch.persistence.db.SupportSQLiteQuery p5)
    {
        return this.mDelegate.rawQueryWithFactory(new android.arch.persistence.db.framework.FrameworkSQLiteDatabase$1(this, p5), p5.getSql(), android.arch.persistence.db.framework.FrameworkSQLiteDatabase.EMPTY_STRING_ARRAY, 0);
    }

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


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

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


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

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


    public final String zzad(long p5)
    {
        this.zzaf();
        this.zzcl();
        try {
            String v1_3 = this.getWritableDatabase();
            String[] v3_1 = new String[1];
            v3_1[0] = String.valueOf(p5);
            int v5_1 = v1_3.rawQuery("select app_id from apps where app_id in (select distinct app_id from raw_events) and config_fetched_time < ? order by failed_config_fetch_time limit 1;", v3_1);
            try {
                if (v5_1.moveToFirst()) {
                    String v6_3 = v5_1.getString(0);
                    if (v5_1 != 0) {
                        v5_1.close();
                    }
                    return v6_3;
                } else {
                    this.zzgt().zzjo().zzby("No expired configs for apps with pending events");
                    if (v5_1 != 0) {
                        v5_1.close();
                    }
                    return 0;
                }
            } catch (String v6_1) {
                this.zzgt().zzjg().zzg("Error selecting expired configs", v6_1);
                if (v5_1 != 0) {
                    v5_1.close();
                }
                return 0;
            }
        } catch (String v6_2) {
            v5_1 = 0;
            if (v5_1 != 0) {
                v5_1.close();
            }
            throw v6_2;
        } catch (String v6_1) {
            v5_1 = 0;
        } catch (String v6_2) {
        }
    }

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


    public final android.util.Pair zza(String p8, Long p9)
    {
        this.zzaf();
        this.zzcl();
        try {
            int v1_1 = this.getWritableDatabase();
            com.google.android.gms.measurement.internal.zzau v3_4 = new String[2];
            v3_4[0] = p8;
            v3_4[1] = String.valueOf(p9);
            int v1_0 = v1_1.rawQuery("select main_event, children_to_process from main_event_params where app_id=? and event_id=?", v3_4);
            try {
                if (v1_0.moveToFirst()) {
                    java.io.IOException v2_1 = v1_0.getBlob(0);
                    com.google.android.gms.measurement.internal.zzau v3_0 = Long.valueOf(v1_0.getLong(1));
                    java.io.IOException v2_2 = com.google.android.gms.internal.measurement.zzxz.zzj(v2_1, 0, v2_1.length);
                    String v4_1 = new com.google.android.gms.internal.measurement.zzft();
                    try {
                        v4_1.zza(v2_2);
                    } catch (java.io.IOException v2_3) {
                        this.zzgt().zzjg().zzd("Failed to merge main event. appId, eventId", com.google.android.gms.measurement.internal.zzas.zzbw(p8), p9, v2_3);
                        if (v1_0 != 0) {
                            v1_0.close();
                        }
                        return 0;
                    }
                    Object v8_4 = android.util.Pair.create(v4_1, v3_0);
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return v8_4;
                } else {
                    this.zzgt().zzjo().zzby("Main event not found");
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return 0;
                }
            } catch (Object v8_1) {
                this.zzgt().zzjg().zzg("Error selecting main event", v8_1);
                if (v1_0 != 0) {
                    v1_0.close();
                }
                return 0;
            }
        } catch (Object v8_2) {
            v1_0 = 0;
            if (v1_0 != 0) {
                v1_0.close();
            }
            throw v8_2;
        } catch (Object v8_1) {
            v1_0 = 0;
        } catch (Object v8_2) {
        }
    }

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


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

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


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

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


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

Method com.google.android.gms.tagmanager.zzeb.zzpj() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final int zzpj()
    {
        long v0_4 = this.zzdl("Error opening database for getNumStoredHits.");
        int v1 = 0;
        if (v0_4 != 0) {
            try {
                android.database.Cursor v2_1 = v0_4.rawQuery("SELECT COUNT(*) from gtm_hits", 0);
            } catch (long v0_3) {
                if (v2_1 != null) {
                    v2_1.close();
                }
                throw v0_3;
            }
            if (v2_1.moveToFirst()) {
                v1 = ((int) v2_1.getLong(0));
            }
            if (v2_1 == null) {
                return v1;
            } else {
                v2_1.close();
                return v1;
            }
        } else {
            return 0;
        }
    }

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


    private final int zzoj()
    {
        long v0_4 = this.zzdl("Error opening database for getNumStoredEntries.");
        int v1 = 0;
        if (v0_4 != 0) {
            try {
                android.database.Cursor v2_1 = v0_4.rawQuery("SELECT COUNT(*) from datalayer", 0);
            } catch (long v0_3) {
                if (v2_1 != null) {
                    v2_1.close();
                }
                throw v0_3;
            }
            if (v2_1.moveToFirst()) {
                v1 = ((int) v2_1.getLong(0));
            }
            if (v2_1 == null) {
                return v1;
            } else {
                v2_1.close();
                return v1;
            }
        } else {
            return 0;
        }
    }

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


    private final boolean zzd(String p46, long p47)
    {
        String v1_0 = this;
        this.zzjt().beginTransaction();
        try {
            com.google.android.gms.measurement.internal.zzac v3_10 = 0;
            int v2_1 = new com.google.android.gms.measurement.internal.zzfn$zza(this, 0);
            Object v4_28 = this.zzjt();
            String v5_61 = this.zzaue;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_1);
            v4_28.zzaf();
            v4_28.zzcl();
            try {
                int v7_2;
                String v23_1;
                Long v15_3 = v4_28.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        int v13_46;
                        com.google.android.gms.measurement.internal.zzac v3_79 = v5_61 cmp -1;
                        if (v3_79 == null) {
                            v13_46 = new String[] {0});
                        } else {
                            int v7_72 = new String[2];
                            v7_72[0] = 0;
                            v7_72[1] = String.valueOf(v5_61);
                            v13_46 = v7_72;
                        }
                        com.google.android.gms.measurement.internal.zzac v3_84;
                        if (v3_79 == null) {
                            v3_84 = "";
                        } else {
                            v3_84 = " and rowid <= ?";
                        }
                        boolean v14_16 = new StringBuilder((String.valueOf(v3_84).length() + 84));
                        v14_16.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_16.append(v3_84);
                        v14_16.append(" order by rowid limit 1;");
                        v3_10 = v15_3.rawQuery(v14_16.toString(), v13_46);
                        if (v3_10.moveToFirst()) {
                            int v13_51 = v3_10.getString(0);
                            v3_10.close();
                            v23_1 = v3_10;
                            v7_2 = v13_51;
                            v3_10 = 0;
                            try {
                                int v13_14 = new String[2];
                                v13_14[0] = v3_10;
                                v13_14[1] = v7_2;
                                String v25_2 = v15_3;
                                Long v15_2 = v15_3.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_14, 0, 0, "rowid", "2");
                                try {
                                    if (v15_2.moveToFirst()) {
                                        int v13_28 = v15_2.getBlob(0);
                                        int v13_29 = com.google.android.gms.internal.measurement.zzxz.zzj(v13_28, 0, v13_28.length);
                                        boolean v14_10 = new com.google.android.gms.internal.measurement.zzfw();
                                        try {
                                            v14_10.zza(v13_29);
                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                            long v6_3 = v15_2;
                                            v4_28.zzgt().zzjg().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10), v0_3);
                                            if (v6_3 == 0) {
                                                com.google.android.gms.measurement.internal.zzac v3_83;
                                                if (v2_1.zzauk == null) {
                                                    v3_83 = 1;
                                                } else {
                                                    if (!v2_1.zzauk.isEmpty()) {
                                                        v3_83 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_83 != null) {
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.measurement.internal.zzac v3_9 = v2_1.zzaui;
                                                    Object v4_4 = new com.google.android.gms.internal.measurement.zzft[v2_1.zzauk.size()];
                                                    v3_9.zzaxk = v4_4;
                                                    Object v4_7 = this.zzada.zzgv().zzau(v3_9.zztt);
                                                    String v5_13 = this.zzada.zzgv().zze(v2_1.zzaui.zztt, com.google.android.gms.measurement.internal.zzai.zzalc);
                                                    Boolean v8_14 = 0;
                                                    Object v9_7 = 0;
                                                    boolean v10_55 = 0;
                                                    Long v12_66 = 0;
                                                    int v13_34 = 0;
                                                    boolean v14_12 = 0;
                                                    while (v10_55 < v2_1.zzauk.size()) {
                                                        int v18_0;
                                                        String v23_2;
                                                        long v6_17 = ((com.google.android.gms.internal.measurement.zzft) v2_1.zzauk.get(v10_55));
                                                        boolean v21_0 = v12_66;
                                                        if (!this.zzls().zzo(v2_1.zzaui.zztt, v6_17.name)) {
                                                            int v26_1;
                                                            long v29_0;
                                                            v23_2 = v10_55;
                                                            String v25_1 = v13_34;
                                                            int v7_21 = this.zzls().zzp(v2_1.zzaui.zztt, v6_17.name);
                                                            if (v7_21 != 0) {
                                                                if (v6_17.zzaxc == null) {
                                                                    Long v12_20 = new com.google.android.gms.internal.measurement.zzfu[0];
                                                                    v6_17.zzaxc = v12_20;
                                                                }
                                                                int v11_12 = v6_17.zzaxc;
                                                                Long v12_21 = v11_12.length;
                                                                int v13_9 = 0;
                                                                int v26_2 = 0;
                                                                long v27_1 = 0;
                                                                while (v13_9 < v12_21) {
                                                                    boolean v10_46 = v11_12[v13_9];
                                                                    long v29_4 = v11_12;
                                                                    com.google.android.gms.measurement.internal.zzac v30_2 = v12_21;
                                                                    if (!"_c".equals(v10_46.name)) {
                                                                        if ("_r".equals(v10_46.name)) {
                                                                            v10_46.zzaxg = Long.valueOf(1);
                                                                            v27_1 = 1;
                                                                        }
                                                                    } else {
                                                                        v10_46.zzaxg = Long.valueOf(1);
                                                                        v26_2 = 1;
                                                                    }
                                                                    v13_9++;
                                                                    v11_12 = v29_4;
                                                                    v12_21 = v30_2;
                                                                }
                                                                if ((v26_2 == 0) && (v7_21 != 0)) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as conversion", this.zzada.zzgq().zzbt(v6_17.name));
                                                                    boolean v10_9 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_17.zzaxc, (v6_17.zzaxc.length + 1)));
                                                                    int v11_18 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v11_18.name = "_c";
                                                                    v11_18.zzaxg = Long.valueOf(1);
                                                                    v10_9[(v10_9.length - 1)] = v11_18;
                                                                    v6_17.zzaxc = v10_9;
                                                                }
                                                                if (v27_1 == 0) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as real-time", this.zzada.zzgq().zzbt(v6_17.name));
                                                                    boolean v10_15 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_17.zzaxc, (v6_17.zzaxc.length + 1)));
                                                                    int v11_24 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v11_24.name = "_r";
                                                                    v11_24.zzaxg = Long.valueOf(1);
                                                                    v10_15[(v10_15.length - 1)] = v11_24;
                                                                    v6_17.zzaxc = v10_15;
                                                                }
                                                                Long v12_42;
                                                                if (this.zzjt().zza(this.zzly(), v2_1.zzaui.zztt, 0, 0, 0, 0, 1).zzahl <= ((long) this.zzada.zzgv().zzaq(v2_1.zzaui.zztt))) {
                                                                    v26_1 = v3_9;
                                                                    v12_42 = 1;
                                                                } else {
                                                                    boolean v10_20 = 0;
                                                                    while (v10_20 < v6_17.zzaxc.length) {
                                                                        if (!"_r".equals(v6_17.zzaxc[v10_20].name)) {
                                                                            v10_20++;
                                                                        } else {
                                                                            int v11_32 = new com.google.android.gms.internal.measurement.zzfu[(v6_17.zzaxc.length - 1)];
                                                                            if (v10_20) {
                                                                                System.arraycopy(v6_17.zzaxc, 0, v11_32, 0, v10_20);
                                                                            }
                                                                            if (v10_20 >= v11_32.length) {
                                                                                v26_1 = v3_9;
                                                                            } else {
                                                                                v26_1 = v3_9;
                                                                                System.arraycopy(v6_17.zzaxc, (v10_20 + 1), v11_32, v10_20, (v11_32.length - v10_20));
                                                                            }
                                                                            v6_17.zzaxc = v11_32;
                                                                        }
                                                                        v12_42 = v21_0;
                                                                    }
                                                                    v26_1 = v3_9;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.zzfx.zzct(v6_17.name)) || (v7_21 == 0)) {
                                                                    v18_0 = v12_42;
                                                                    v29_0 = v14_12;
                                                                } else {
                                                                    v18_0 = v12_42;
                                                                    if (this.zzjt().zza(this.zzly(), v2_1.zzaui.zztt, 0, 0, 1, 0, 0).zzahj <= ((long) this.zzada.zzgv().zzb(v2_1.zzaui.zztt, com.google.android.gms.measurement.internal.zzai.zzajh))) {
                                                                        v29_0 = v14_12;
                                                                    } else {
                                                                        this.zzada.zzgt().zzjj().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                        com.google.android.gms.measurement.internal.zzac v3_25 = v6_17.zzaxc;
                                                                        boolean v10_24 = v3_25.length;
                                                                        int v11_36 = 0;
                                                                        Long v12_52 = 0;
                                                                        int v13_23 = 0;
                                                                        while (v11_36 < v10_24) {
                                                                            boolean v10_43 = v3_25[v11_36];
                                                                            if (!"_c".equals(v10_43.name)) {
                                                                                if ("_err".equals(v10_43.name)) {
                                                                                    v12_52 = 1;
                                                                                }
                                                                            } else {
                                                                                v13_23 = v10_43;
                                                                            }
                                                                            v11_36++;
                                                                        }
                                                                        v29_0 = v14_12;
                                                                        if ((v12_52 == null) || (v13_23 == 0)) {
                                                                            if (v13_23 == 0) {
                                                                                this.zzada.zzgt().zzjg().zzg("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                            } else {
                                                                                v13_23.name = "_err";
                                                                                v13_23.zzaxg = Long.valueOf(10);
                                                                            }
                                                                        } else {
                                                                            com.google.android.gms.measurement.internal.zzac v3_31 = v6_17.zzaxc;
                                                                            int v11_40 = new com.google.android.gms.internal.measurement.zzfu[1];
                                                                            v11_40[0] = v13_23;
                                                                            v6_17.zzaxc = ((com.google.android.gms.internal.measurement.zzfu[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v3_31, v11_40));
                                                                        }
                                                                    }
                                                                }
                                                            } else {
                                                                int v11_6;
                                                                this.zzjr();
                                                                int v11_4 = v6_17.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v11_4);
                                                                Long v12_16 = v11_4.hashCode();
                                                                if (v12_16 == 94660) {
                                                                    if (!v11_4.equals("_in")) {
                                                                        v11_6 = -1;
                                                                    } else {
                                                                        v11_6 = 0;
                                                                    }
                                                                } else {
                                                                    if (v12_16 == 95025) {
                                                                        if (!v11_4.equals("_ug")) {
                                                                        } else {
                                                                            v11_6 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v12_16 == 95027) {
                                                                            if (!v11_4.equals("_ui")) {
                                                                            } else {
                                                                                v11_6 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v11_9;
                                                                switch (v11_6) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v11_9 = 1;
                                                                    default:
                                                                        v11_9 = 0;
                                                                }
                                                                if (v11_9 == 0) {
                                                                    v26_1 = v3_9;
                                                                    v29_0 = v14_12;
                                                                    v18_0 = v21_0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzada.zzgv().zzbd(v2_1.zzaui.zztt)) || (v7_21 == 0)) {
                                                            } else {
                                                                com.google.android.gms.measurement.internal.zzac v3_37 = v6_17.zzaxc;
                                                                int v7_22 = 0;
                                                                boolean v10_31 = -1;
                                                                int v11_41 = -1;
                                                                while (v7_22 < v3_37.length) {
                                                                    if (!"value".equals(v3_37[v7_22].name)) {
                                                                        if ("currency".equals(v3_37[v7_22].name)) {
                                                                            v11_41 = v7_22;
                                                                        }
                                                                    } else {
                                                                        v10_31 = v7_22;
                                                                    }
                                                                    v7_22++;
                                                                }
                                                                if (v10_31 == -1) {
                                                                } else {
                                                                    if ((v3_37[v10_31].zzaxg != null) || (v3_37[v10_31].zzaup != null)) {
                                                                        int v7_31;
                                                                        if (v11_41 != -1) {
                                                                            int v7_30 = v3_37[v11_41].zzamn;
                                                                            if (v7_30 == 0) {
                                                                            } else {
                                                                                if (v7_30.length() == 3) {
                                                                                    int v11_44 = 0;
                                                                                    while (v11_44 < v7_30.length()) {
                                                                                        int v13_25 = v7_30.codePointAt(v11_44);
                                                                                        if (Character.isLetter(v13_25)) {
                                                                                            v11_44 += Character.charCount(v13_25);
                                                                                        } else {
                                                                                            v7_31 = 1;
                                                                                            if (v7_31 != 0) {
                                                                                                this.zzada.zzgt().zzjl().zzby("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                                v3_37 = com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(v3_37, v10_31), "_c"), 19, "currency");
                                                                                            }
                                                                                            v6_17.zzaxc = v3_37;
                                                                                            if (this.zzada.zzgv().zze(v2_1.zzaui.zztt, com.google.android.gms.measurement.internal.zzai.zzalb)) {
                                                                                                if (!"_e".equals(v6_17.name)) {
                                                                                                    if ("_vs".equals(v6_17.name)) {
                                                                                                        this.zzjr();
                                                                                                        if (com.google.android.gms.measurement.internal.zzft.zza(v6_17, "_et") == null) {
                                                                                                            if ((v8_14 == null) || ((Math.abs((v8_14.zzaxd.longValue() - v6_17.zzaxd.longValue())) > 1000) || (!this.zza(v8_14, v6_17)))) {
                                                                                                                v9_7 = v6_17;
                                                                                                            } else {
                                                                                                                v8_14 = 0;
                                                                                                                v9_7 = 0;
                                                                                                            }
                                                                                                        }
                                                                                                    }
                                                                                                } else {
                                                                                                    this.zzjr();
                                                                                                    if (com.google.android.gms.measurement.internal.zzft.zza(v6_17, "_fr") == null) {
                                                                                                        if ((v9_7 == null) || ((Math.abs((v9_7.zzaxd.longValue() - v6_17.zzaxd.longValue())) > 1000) || (!this.zza(v6_17, v9_7)))) {
                                                                                                            v8_14 = v6_17;
                                                                                                        } else {
                                                                                                            v8_14 = 0;
                                                                                                            v9_7 = 0;
                                                                                                        }
                                                                                                    }
                                                                                                }
                                                                                            }
                                                                                            if ((v4_7 == null) || ((v5_13 != null) || (!"_e".equals(v6_17.name)))) {
                                                                                                v3_9 = v26_1;
                                                                                            } else {
                                                                                                if (v6_17.zzaxc != null) {
                                                                                                    if (v6_17.zzaxc.length != 0) {
                                                                                                        this.zzjr();
                                                                                                        com.google.android.gms.measurement.internal.zzac v3_68 = ((Long) com.google.android.gms.measurement.internal.zzft.zzb(v6_17, "_et"));
                                                                                                        if (v3_68 != null) {
                                                                                                            v29_0 += v3_68.longValue();
                                                                                                            v3_9 = v26_1;
                                                                                                            v13_34 = (v25_1 + 1);
                                                                                                            v3_9.zzaxk[v25_1] = v6_17;
                                                                                                            v14_12 = v29_0;
                                                                                                            v10_55 = (v23_2 + 1);
                                                                                                            v12_66 = v18_0;
                                                                                                        } else {
                                                                                                            this.zzada.zzgt().zzjj().zzg("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                                                        }
                                                                                                    } else {
                                                                                                    }
                                                                                                }
                                                                                                this.zzada.zzgt().zzjj().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                    v7_31 = 0;
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v7_31 = 1;
                                                                        } else {
                                                                            v7_31 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzada.zzgt().zzjl().zzby("Value must be specified with a numeric type.");
                                                                        v3_37 = com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(v3_37, v10_31), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            int v7_62;
                                                            v23_2 = v10_55;
                                                            String v25_3 = v13_34;
                                                            this.zzada.zzgt().zzjj().zze("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt), this.zzada.zzgq().zzbt(v6_17.name));
                                                            if (this.zzls().zzcl(v2_1.zzaui.zztt)) {
                                                                v7_62 = 1;
                                                            } else {
                                                                if (!this.zzls().zzcm(v2_1.zzaui.zztt)) {
                                                                    v7_62 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v7_62 == 0) && (!"_err".equals(v6_17.name))) {
                                                                this.zzada.zzgr().zza(v2_1.zzaui.zztt, 11, "_ev", v6_17.name, 0);
                                                            }
                                                            v18_0 = v21_0;
                                                            v13_34 = v25_3;
                                                        }
                                                    }
                                                    int v13_5;
                                                    boolean v21_4 = v12_66;
                                                    String v25_4 = v13_34;
                                                    long v29_6 = v14_12;
                                                    if (v5_13 == null) {
                                                        v13_5 = v25_4;
                                                    } else {
                                                        v13_5 = v25_4;
                                                        boolean v14_5 = v29_6;
                                                        String v5_0 = 0;
                                                        while (v5_0 < v13_5) {
                                                            long v6_12;
                                                            long v6_9 = v3_9.zzaxk[v5_0];
                                                            if (!"_e".equals(v6_9.name)) {
                                                                if (v4_7 != null) {
                                                                    this.zzjr();
                                                                    long v6_10 = com.google.android.gms.measurement.internal.zzft.zza(v6_9, "_et");
                                                                    if (v6_10 != 0) {
                                                                        long v6_11 = v6_10.zzaxg;
                                                                        if ((v6_11 != 0) && (v6_11.longValue() > 0)) {
                                                                            v14_5 += v6_11.longValue();
                                                                            v6_12 = 1;
                                                                            v5_0 += v6_12;
                                                                        }
                                                                    }
                                                                }
                                                                v6_12 = 1;
                                                            } else {
                                                                this.zzjr();
                                                                if (com.google.android.gms.measurement.internal.zzft.zza(v6_9, "_fr") == null) {
                                                                } else {
                                                                    System.arraycopy(v3_9.zzaxk, (v5_0 + 1), v3_9.zzaxk, v5_0, ((v13_5 - v5_0) - 1));
                                                                    v13_5--;
                                                                    v5_0--;
                                                                    v6_12 = 1;
                                                                }
                                                            }
                                                        }
                                                        v29_6 = v14_5;
                                                    }
                                                    if (v13_5 < v2_1.zzauk.size()) {
                                                        v3_9.zzaxk = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v3_9.zzaxk, v13_5));
                                                    }
                                                    if (v4_7 != null) {
                                                        Object v4_12;
                                                        Object v4_9 = this.zzjt().zzi(v3_9.zztt, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.measurement.internal.zzfw;
                                                            v4_12(v3_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf(v29_6));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                String v5_21 = new com.google.android.gms.measurement.internal.zzfw;
                                                                v5_21(v3_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v29_6)));
                                                                v4_12 = v5_21;
                                                            } else {
                                                            }
                                                        }
                                                        String v5_24 = new com.google.android.gms.internal.measurement.zzfz();
                                                        v5_24.name = "_lte";
                                                        v5_24.zzayw = Long.valueOf(this.zzada.zzbx().currentTimeMillis());
                                                        v5_24.zzaxg = ((Long) v4_12.value);
                                                        long v6_48 = 0;
                                                        while (v6_48 < v3_9.zzaxl.length) {
                                                            if (!"_lte".equals(v3_9.zzaxl[v6_48].name)) {
                                                                v6_48++;
                                                            } else {
                                                                v3_9.zzaxl[v6_48] = v5_24;
                                                                long v6_49 = 1;
                                                            }
                                                            String v5_25;
                                                            if (v6_49 != 0) {
                                                                v5_25 = 0;
                                                            } else {
                                                                v3_9.zzaxl = ((com.google.android.gms.internal.measurement.zzfz[]) java.util.Arrays.copyOf(v3_9.zzaxl, (v3_9.zzaxl.length + 1)));
                                                                v3_9.zzaxl[(v2_1.zzaui.zzaxl.length - 1)] = v5_24;
                                                                v5_25 = 0;
                                                            }
                                                            if (v29_6 > v5_25) {
                                                                this.zzjt().zza(v4_12);
                                                                this.zzada.zzgt().zzjn().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_49 = 0;
                                                    }
                                                    Object v9_9;
                                                    String v1_7;
                                                    Object v4_14 = v3_9.zztt;
                                                    String v5_30 = v3_9.zzaxl;
                                                    long v6_55 = v3_9.zzaxk;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v4_14);
                                                    v3_9.zzayc = this.zzjs().zza(v4_14, v6_55, v5_30);
                                                    try {
                                                        if (!this.zzada.zzgv().zzat(v2_1.zzaui.zztt)) {
                                                            v9_9 = v2_1;
                                                            v1_7 = v3_9;
                                                        } else {
                                                            Object v4_20 = new java.util.HashMap();
                                                            String v5_35 = new com.google.android.gms.internal.measurement.zzft[v3_9.zzaxk.length];
                                                            long v6_7 = this.zzada.zzgr().zzmk();
                                                            int v7_10 = v3_9.zzaxk;
                                                            Boolean v8_10 = v7_10.length;
                                                            Object v9_3 = 0;
                                                            boolean v10_0 = 0;
                                                            while (v9_3 < v8_10) {
                                                                Object v9_1;
                                                                long v27_0;
                                                                int v26_0;
                                                                String v23_0;
                                                                String v25_0;
                                                                int v11_55 = v7_10[v9_3];
                                                                if (!v11_55.name.equals("_ep")) {
                                                                    long v28_1;
                                                                    com.google.android.gms.measurement.internal.zzac v3_122;
                                                                    Long v12_81 = this.zzls().zzck(v2_1.zzaui.zztt);
                                                                    v1_0.zzada.zzgr();
                                                                    boolean v14_21 = com.google.android.gms.measurement.internal.zzfx.zzc(v11_55.zzaxd.longValue(), v12_81);
                                                                    v23_0 = v7_10;
                                                                    v25_0 = v8_10;
                                                                    Boolean v8_24 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v8_24 != null)) {
                                                                        v26_0 = v3_9;
                                                                        com.google.android.gms.measurement.internal.zzac v3_121 = v11_55.zzaxc;
                                                                        v27_0 = v9_3;
                                                                        Object v9_10 = v3_121.length;
                                                                        v28_1 = v12_81;
                                                                        Long v12_82 = 0;
                                                                        while (v12_82 < v9_10) {
                                                                            int v13_57 = v3_121[v12_82];
                                                                            if (!"_dbg".equals(v13_57.name)) {
                                                                                v12_82++;
                                                                            } else {
                                                                                if (((!(v8_24 instanceof Long)) || (!v8_24.equals(v13_57.zzaxg))) && (((!(v8_24 instanceof String)) || (!v8_24.equals(v13_57.zzamn))) && ((!(v8_24 instanceof Double)) || (!v8_24.equals(v13_57.zzaup))))) {
                                                                                    v3_122 = 0;
                                                                                } else {
                                                                                    v3_122 = 1;
                                                                                }
                                                                            }
                                                                        }
                                                                        v3_122 = 0;
                                                                    } else {
                                                                        v26_0 = v3_9;
                                                                        v27_0 = v9_3;
                                                                        v28_1 = v12_81;
                                                                        v3_122 = 0;
                                                                    }
                                                                    Long v12_83;
                                                                    if (v3_122 != null) {
                                                                        v12_83 = 1;
                                                                    } else {
                                                                        v12_83 = this.zzls().zzq(v2_1.zzaui.zztt, v11_55.name);
                                                                    }
                                                                    if (v12_83 > null) {
                                                                        com.google.android.gms.measurement.internal.zzac v3_1 = ((com.google.android.gms.measurement.internal.zzac) v4_20.get(v11_55.name));
                                                                        if (v3_1 == null) {
                                                                            v3_1 = this.zzjt().zzg(v2_1.zzaui.zztt, v11_55.name);
                                                                            if (v3_1 == null) {
                                                                                v1_0.zzada.zzgt().zzjj().zze("Event being bundled has no eventAggregate. appId, eventName", v2_1.zzaui.zztt, v11_55.name);
                                                                                v3_1 = new com.google.android.gms.measurement.internal.zzac;
                                                                                v3_1(v2_1.zzaui.zztt, v11_55.name, 1, 1, v11_55.zzaxd.longValue(), 0, 0, 0, 0, 0);
                                                                            }
                                                                        }
                                                                        Boolean v8_30;
                                                                        this.zzjr();
                                                                        int v7_122 = ((Long) com.google.android.gms.measurement.internal.zzft.zzb(v11_55, "_eid"));
                                                                        if (v7_122 == 0) {
                                                                            v8_30 = 0;
                                                                        } else {
                                                                            v8_30 = 1;
                                                                        }
                                                                        Boolean v8_31 = Boolean.valueOf(v8_30);
                                                                        if (v12_83 != 1) {
                                                                            if (v6_7.nextInt(v12_83) != 0) {
                                                                                p46 = v6_7;
                                                                                String v1_19;
                                                                                int v13_58;
                                                                                if (!v1_0.zzada.zzgv().zzbf(v2_1.zzaui.zztt)) {
                                                                                    v9_1 = v2_1;
                                                                                    v13_58 = v7_122;
                                                                                    if (Math.abs((v11_55.zzaxd.longValue() - v3_1.zzahy)) < 86400000) {
                                                                                        v1_19 = 0;
                                                                                    } else {
                                                                                        v1_19 = 1;
                                                                                    }
                                                                                } else {
                                                                                    long v28_3;
                                                                                    if (v3_1.zzahz == null) {
                                                                                        v1_0.zzada.zzgr();
                                                                                        v9_1 = v2_1;
                                                                                        v13_58 = v7_122;
                                                                                        v28_3 = com.google.android.gms.measurement.internal.zzfx.zzc(v11_55.zzaxe.longValue(), v28_1);
                                                                                    } else {
                                                                                        v28_3 = v3_1.zzahz.longValue();
                                                                                        v9_1 = v2_1;
                                                                                        v13_58 = v7_122;
                                                                                    }
                                                                                    if (v28_3 == v14_21) {
                                                                                        v1_19 = 0;
                                                                                    } else {
                                                                                        v1_19 = 1;
                                                                                    }
                                                                                }
                                                                                if (v1_19 == null) {
                                                                                    if (v8_31.booleanValue()) {
                                                                                        v4_20.put(v11_55.name, v3_1.zza(v13_58, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzjr();
                                                                                    v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_efs", Long.valueOf(1));
                                                                                    this.zzjr();
                                                                                    long v6_90 = ((long) v12_83);
                                                                                    v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_sr", Long.valueOf(v6_90));
                                                                                    String v1_28 = (v10_0 + 1);
                                                                                    v5_35[v10_0] = v11_55;
                                                                                    if (v8_31.booleanValue()) {
                                                                                        v3_1 = v3_1.zza(0, Long.valueOf(v6_90), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_20.put(v11_55.name, v3_1.zza(v11_55.zzaxd.longValue(), v14_21));
                                                                                    v10_0 = v1_28;
                                                                                }
                                                                            } else {
                                                                                this.zzjr();
                                                                                Long v12_0 = ((long) v12_83);
                                                                                p46 = v6_7;
                                                                                v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_sr", Long.valueOf(v12_0));
                                                                                long v6_6 = (v10_0 + 1);
                                                                                v5_35[v10_0] = v11_55;
                                                                                if (v8_31.booleanValue()) {
                                                                                    v3_1 = v3_1.zza(0, Long.valueOf(v12_0), 0);
                                                                                }
                                                                                v4_20.put(v11_55.name, v3_1.zza(v11_55.zzaxd.longValue(), v14_21));
                                                                                v9_1 = v2_1;
                                                                                v10_0 = v6_6;
                                                                            }
                                                                        } else {
                                                                            int v7_6 = (v10_0 + 1);
                                                                            v5_35[v10_0] = v11_55;
                                                                            if ((v8_31.booleanValue()) && ((v3_1.zzaia != null) || ((v3_1.zzaib != null) || (v3_1.zzaic != null)))) {
                                                                                v4_20.put(v11_55.name, v3_1.zza(0, 0, 0));
                                                                            }
                                                                            v9_1 = v2_1;
                                                                            p46 = v6_7;
                                                                            v10_0 = v7_6;
                                                                        }
                                                                    } else {
                                                                        v1_0.zzada.zzgt().zzjj().zze("Sample rate must be positive. event, rate", v11_55.name, Integer.valueOf(v12_83));
                                                                        com.google.android.gms.measurement.internal.zzac v3_8 = (v10_0 + 1);
                                                                        v5_35[v10_0] = v11_55;
                                                                        v9_1 = v2_1;
                                                                        v10_0 = v3_8;
                                                                        p46 = v6_7;
                                                                    }
                                                                } else {
                                                                    this.zzjr();
                                                                    Long v12_3 = ((String) com.google.android.gms.measurement.internal.zzft.zzb(v11_55, "_en"));
                                                                    int v13_1 = ((com.google.android.gms.measurement.internal.zzac) v4_20.get(v12_3));
                                                                    if (v13_1 == 0) {
                                                                        v13_1 = this.zzjt().zzg(v2_1.zzaui.zztt, v12_3);
                                                                        v4_20.put(v12_3, v13_1);
                                                                    }
                                                                    if (v13_1.zzaia != null) {
                                                                        v26_0 = v3_9;
                                                                        p46 = v6_7;
                                                                        v23_0 = v7_10;
                                                                        v25_0 = v8_10;
                                                                        v27_0 = v9_3;
                                                                        v9_1 = v2_1;
                                                                    } else {
                                                                        if (v13_1.zzaib.longValue() > 1) {
                                                                            this.zzjr();
                                                                            v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_sr", v13_1.zzaib);
                                                                        }
                                                                        if ((v13_1.zzaic != null) && (v13_1.zzaic.booleanValue())) {
                                                                            this.zzjr();
                                                                            v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_efs", Long.valueOf(1));
                                                                        }
                                                                        Long v12_14 = (v10_0 + 1);
                                                                        v5_35[v10_0] = v11_55;
                                                                        v26_0 = v3_9;
                                                                        p46 = v6_7;
                                                                        v23_0 = v7_10;
                                                                        v25_0 = v8_10;
                                                                        v27_0 = v9_3;
                                                                        v10_0 = v12_14;
                                                                        v9_1 = v2_1;
                                                                    }
                                                                }
                                                                v6_7 = p46;
                                                                v2_1 = v9_1;
                                                                v7_10 = v23_0;
                                                                v8_10 = v25_0;
                                                                v3_9 = v26_0;
                                                                v9_3 = (v27_0 + 1);
                                                                v1_0 = this;
                                                            }
                                                            v9_9 = v2_1;
                                                            v1_7 = v3_9;
                                                            if (v10_0 < v1_7.zzaxk.length) {
                                                                v1_7.zzaxk = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v5_35, v10_0));
                                                            }
                                                            int v2_10 = v4_20.entrySet().iterator();
                                                            while (v2_10.hasNext()) {
                                                                this.zzjt().zza(((com.google.android.gms.measurement.internal.zzac) ((java.util.Map$Entry) v2_10.next()).getValue()));
                                                            }
                                                        }
                                                        try {
                                                            v1_7.zzaxn = Long.valueOf(nan);
                                                            v1_7.zzaxo = Long.valueOf(-0.0);
                                                            int v2_15 = 0;
                                                        } catch (android.database.sqlite.SQLiteException v0_4) {
                                                            String v1_2 = v0_4;
                                                            this.zzjt().endTransaction();
                                                            throw v1_2;
                                                        }
                                                        while (v2_15 < v1_7.zzaxk.length) {
                                                            com.google.android.gms.measurement.internal.zzac v3_115 = v1_7.zzaxk[v2_15];
                                                            if (v3_115.zzaxd.longValue() < v1_7.zzaxn.longValue()) {
                                                                v1_7.zzaxn = v3_115.zzaxd;
                                                            }
                                                            if (v3_115.zzaxd.longValue() > v1_7.zzaxo.longValue()) {
                                                                v1_7.zzaxo = v3_115.zzaxd;
                                                            }
                                                            v2_15++;
                                                        }
                                                        Object v4_21;
                                                        int v2_17 = v9_9.zzaui.zztt;
                                                        com.google.android.gms.measurement.internal.zzac v3_91 = this.zzjt().zzbm(v2_17);
                                                        if (v3_91 != null) {
                                                            v4_21 = this;
                                                            if (v1_7.zzaxk.length > 0) {
                                                                int v7_98;
                                                                String v5_38 = v3_91.zzhe();
                                                                if (v5_38 == 0) {
                                                                    v7_98 = 0;
                                                                } else {
                                                                    v7_98 = Long.valueOf(v5_38);
                                                                }
                                                                v1_7.zzaxq = v7_98;
                                                                int v7_99 = v3_91.zzhd();
                                                                if (v7_99 != 0) {
                                                                    v5_38 = v7_99;
                                                                } else {
                                                                }
                                                                String v5_39;
                                                                if (v5_38 == 0) {
                                                                    v5_39 = 0;
                                                                } else {
                                                                    v5_39 = Long.valueOf(v5_38);
                                                                }
                                                                v1_7.zzaxp = v5_39;
                                                                v3_91.zzhm();
                                                                v1_7.zzaya = Integer.valueOf(((int) v3_91.zzhj()));
                                                                v3_91.zzo(v1_7.zzaxn.longValue());
                                                                v3_91.zzp(v1_7.zzaxo.longValue());
                                                                v1_7.zzagm = v3_91.zzhu();
                                                                this.zzjt().zza(v3_91);
                                                            }
                                                        } else {
                                                            v4_21 = this;
                                                            this.zzada.zzgt().zzjg().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v9_9.zzaui.zztt));
                                                        }
                                                        if (v1_7.zzaxk.length > 0) {
                                                            v4_21.zzada.zzgw();
                                                            com.google.android.gms.measurement.internal.zzac v3_99 = this.zzls().zzcg(v9_9.zzaui.zztt);
                                                            if (v3_99 == null) {
                                                                if (!android.text.TextUtils.isEmpty(v9_9.zzaui.zzafi)) {
                                                                    v4_21.zzada.zzgt().zzjj().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v9_9.zzaui.zztt));
                                                                } else {
                                                                    v1_7.zzayh = Long.valueOf(-1);
                                                                }
                                                            } else {
                                                                if (v3_99.zzawm != null) {
                                                                    v1_7.zzayh = v3_99.zzawm;
                                                                } else {
                                                                }
                                                            }
                                                            this.zzjt().zza(v1_7, v21_4);
                                                        }
                                                        String v1_8 = this.zzjt();
                                                        com.google.android.gms.measurement.internal.zzac v3_109 = v9_9.zzauj;
                                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_109);
                                                        v1_8.zzaf();
                                                        v1_8.zzcl();
                                                        String v5_55 = new StringBuilder("rowid in (");
                                                        long v6_66 = 0;
                                                        while (v6_66 < v3_109.size()) {
                                                            if (v6_66 != 0) {
                                                                v5_55.append(",");
                                                            }
                                                            v5_55.append(((Long) v3_109.get(v6_66)).longValue());
                                                            v6_66++;
                                                        }
                                                        v5_55.append(")");
                                                        String v5_57 = v1_8.getWritableDatabase().delete("raw_events", v5_55.toString(), 0);
                                                        if (v5_57 != v3_109.size()) {
                                                            v1_8.zzgt().zzjg().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_57), Integer.valueOf(v3_109.size()));
                                                        }
                                                        String v1_11 = this.zzjt();
                                                        com.google.android.gms.measurement.internal.zzac v3_112 = v1_11.getWritableDatabase();
                                                        try {
                                                            long v6_72 = new String[2];
                                                            v6_72[0] = v2_17;
                                                            v6_72[1] = v2_17;
                                                            v3_112.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v6_72);
                                                        } catch (android.database.sqlite.SQLiteException v0_7) {
                                                            v1_11.zzgt().zzjg().zze("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_17), v0_7);
                                                        }
                                                        this.zzjt().setTransactionSuccessful();
                                                        this.zzjt().endTransaction();
                                                        return 1;
                                                    } catch (android.database.sqlite.SQLiteException v0_2) {
                                                        v1_2 = v0_2;
                                                    }
                                                }
                                            } else {
                                                v6_3.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v7_2 = v3_10;
                                            com.google.android.gms.measurement.internal.zzac v3_0 = v0_1;
                                            try {
                                                v4_28.zzgt().zzjg().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_2), v3_0);
                                            } catch (android.database.sqlite.SQLiteException v0_6) {
                                                String v1_3 = v0_6;
                                                int v22 = v6_3;
                                                if (v22 != 0) {
                                                    v22.close();
                                                }
                                                throw v1_3;
                                            }
                                            if (v6_3 == 0) {
                                            } else {
                                                v6_3.close();
                                            }
                                        }
                                        if (v15_2.moveToNext()) {
                                            v4_28.zzgt().zzjj().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10));
                                        }
                                        String[] v17_2;
                                        String v16_2;
                                        v15_2.close();
                                        v2_1.zzb(v14_10);
                                        if (v5_61 == -1) {
                                            boolean v10_58 = new String[2];
                                            v10_58[0] = v3_10;
                                            v10_58[1] = v7_2;
                                            v16_2 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_2 = v10_58;
                                        } else {
                                            int v13_44 = new String[3];
                                            v13_44[0] = v3_10;
                                            v13_44[1] = v7_2;
                                            v13_44[2] = String.valueOf(v5_61);
                                            v16_2 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_2 = v13_44;
                                        }
                                        v6_3 = v15_2;
                                        String v5_6 = v25_2.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_2, v17_2, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_6.moveToFirst()) {
                                                v4_28.zzgt().zzjj().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10));
                                                if (v5_6 == null) {
                                                } else {
                                                    v5_6.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v22 = v5_6;
                                            v1_3 = v0_0;
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v7_2 = v3_10;
                                            v6_3 = v5_6;
                                        }
                                        do {
                                            long v6_24 = v5_6.getLong(0);
                                            Long v12_70 = v5_6.getBlob(3);
                                            boolean v10_63 = com.google.android.gms.internal.measurement.zzxz.zzj(v12_70, 0, v12_70.length);
                                            Long v12_72 = new com.google.android.gms.internal.measurement.zzft();
                                            v12_72.zza(v10_63);
                                            v12_72.name = v5_6.getString(1);
                                            v12_72.zzaxd = Long.valueOf(v5_6.getLong(2));
                                            if (v2_1.zza(v6_24, v12_72)) {
                                            } else {
                                                if (v5_6 == null) {
                                                } else {
                                                    v5_6.close();
                                                }
                                            }
                                        } while(v5_6.moveToNext());
                                        if (v5_6 == null) {
                                        } else {
                                            v5_6.close();
                                        }
                                    } else {
                                        v4_28.zzgt().zzjg().zzg("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10));
                                        if (v15_2 == null) {
                                        } else {
                                            v15_2.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_3 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v6_3 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v22 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v7_2 = v3_10;
                                    v6_3 = v15_2;
                                }
                                v22 = v6_3;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v22 = v23_1;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v7_2 = v3_10;
                                v6_3 = v23_1;
                            }
                        } else {
                            if (v3_10 == null) {
                            } else {
                                v3_10.close();
                            }
                        }
                    } else {
                        boolean v14_17;
                        int v13_52 = v5_61 cmp -1;
                        try {
                            if (v13_52 == 0) {
                                v14_17 = new String[1];
                                v14_17[0] = String.valueOf(p47);
                            } else {
                                v14_17 = new String[2];
                                v14_17[0] = String.valueOf(v5_61);
                                v14_17[1] = String.valueOf(p47);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            v6_3 = 0;
                            v7_2 = 0;
                        }
                        int v13_53;
                        if (v13_52 == 0) {
                            v13_53 = "";
                        } else {
                            v13_53 = "rowid <= ? and ";
                        }
                        com.google.android.gms.measurement.internal.zzac v3_142 = new StringBuilder((String.valueOf(v13_53).length() + 148));
                        v3_142.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_142.append(v13_53);
                        v3_142.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_10 = v15_3.rawQuery(v3_142.toString(), v14_17);
                        if (v3_10.moveToFirst()) {
                            int v7_9 = v3_10.getString(0);
                            try {
                                int v13_4 = v3_10.getString(1);
                                v3_10.close();
                                v23_1 = v3_10;
                                v3_10 = v7_9;
                                v7_2 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v6_3 = v3_10;
                            }
                        } else {
                            if (v3_10 == null) {
                            } else {
                                v3_10.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v22 = v3_10;
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v6_3 = v3_10;
                    v7_2 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v22 = 0;
            } catch (android.database.sqlite.SQLiteException v0_8) {
                v3_0 = v0_8;
                v6_3 = 0;
                v7_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_4) {
            }
        } catch (android.database.sqlite.SQLiteException v0_4) {
        }
    }

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


    private final boolean zzd(String p46, long p47)
    {
        String v1_0 = this;
        this.zzjt().beginTransaction();
        try {
            com.google.android.gms.measurement.internal.zzac v3_10 = 0;
            int v2_1 = new com.google.android.gms.measurement.internal.zzfn$zza(this, 0);
            Object v4_28 = this.zzjt();
            String v5_61 = this.zzaue;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_1);
            v4_28.zzaf();
            v4_28.zzcl();
            try {
                String v23_1;
                int v7_2;
                Long v15_3 = v4_28.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        int v13_46;
                        com.google.android.gms.measurement.internal.zzac v3_79 = v5_61 cmp -1;
                        if (v3_79 == null) {
                            v13_46 = new String[] {0});
                        } else {
                            int v7_72 = new String[2];
                            v7_72[0] = 0;
                            v7_72[1] = String.valueOf(v5_61);
                            v13_46 = v7_72;
                        }
                        com.google.android.gms.measurement.internal.zzac v3_84;
                        if (v3_79 == null) {
                            v3_84 = "";
                        } else {
                            v3_84 = " and rowid <= ?";
                        }
                        boolean v14_16 = new StringBuilder((String.valueOf(v3_84).length() + 84));
                        v14_16.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_16.append(v3_84);
                        v14_16.append(" order by rowid limit 1;");
                        v3_10 = v15_3.rawQuery(v14_16.toString(), v13_46);
                        if (v3_10.moveToFirst()) {
                            int v13_51 = v3_10.getString(0);
                            v3_10.close();
                            v23_1 = v3_10;
                            v7_2 = v13_51;
                            v3_10 = 0;
                            try {
                                int v13_14 = new String[2];
                                v13_14[0] = v3_10;
                                v13_14[1] = v7_2;
                                String v25_2 = v15_3;
                                Long v15_2 = v15_3.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_14, 0, 0, "rowid", "2");
                                try {
                                    if (v15_2.moveToFirst()) {
                                        int v13_28 = v15_2.getBlob(0);
                                        int v13_29 = com.google.android.gms.internal.measurement.zzxz.zzj(v13_28, 0, v13_28.length);
                                        boolean v14_10 = new com.google.android.gms.internal.measurement.zzfw();
                                        try {
                                            v14_10.zza(v13_29);
                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                            long v6_3 = v15_2;
                                            v4_28.zzgt().zzjg().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10), v0_3);
                                            if (v6_3 == 0) {
                                                com.google.android.gms.measurement.internal.zzac v3_83;
                                                if (v2_1.zzauk == null) {
                                                    v3_83 = 1;
                                                } else {
                                                    if (!v2_1.zzauk.isEmpty()) {
                                                        v3_83 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_83 != null) {
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.measurement.internal.zzac v3_9 = v2_1.zzaui;
                                                    Object v4_4 = new com.google.android.gms.internal.measurement.zzft[v2_1.zzauk.size()];
                                                    v3_9.zzaxk = v4_4;
                                                    Object v4_7 = this.zzada.zzgv().zzau(v3_9.zztt);
                                                    String v5_13 = this.zzada.zzgv().zze(v2_1.zzaui.zztt, com.google.android.gms.measurement.internal.zzai.zzalc);
                                                    Boolean v8_14 = 0;
                                                    Object v9_7 = 0;
                                                    boolean v10_55 = 0;
                                                    Long v12_66 = 0;
                                                    int v13_34 = 0;
                                                    boolean v14_12 = 0;
                                                    while (v10_55 < v2_1.zzauk.size()) {
                                                        int v18_0;
                                                        String v23_2;
                                                        long v6_17 = ((com.google.android.gms.internal.measurement.zzft) v2_1.zzauk.get(v10_55));
                                                        boolean v21_0 = v12_66;
                                                        if (!this.zzls().zzo(v2_1.zzaui.zztt, v6_17.name)) {
                                                            int v26_1;
                                                            long v29_0;
                                                            v23_2 = v10_55;
                                                            String v25_1 = v13_34;
                                                            int v7_21 = this.zzls().zzp(v2_1.zzaui.zztt, v6_17.name);
                                                            if (v7_21 != 0) {
                                                                if (v6_17.zzaxc == null) {
                                                                    Long v12_20 = new com.google.android.gms.internal.measurement.zzfu[0];
                                                                    v6_17.zzaxc = v12_20;
                                                                }
                                                                int v11_12 = v6_17.zzaxc;
                                                                Long v12_21 = v11_12.length;
                                                                int v13_9 = 0;
                                                                int v26_2 = 0;
                                                                long v27_1 = 0;
                                                                while (v13_9 < v12_21) {
                                                                    boolean v10_46 = v11_12[v13_9];
                                                                    long v29_4 = v11_12;
                                                                    com.google.android.gms.measurement.internal.zzac v30_2 = v12_21;
                                                                    if (!"_c".equals(v10_46.name)) {
                                                                        if ("_r".equals(v10_46.name)) {
                                                                            v10_46.zzaxg = Long.valueOf(1);
                                                                            v27_1 = 1;
                                                                        }
                                                                    } else {
                                                                        v10_46.zzaxg = Long.valueOf(1);
                                                                        v26_2 = 1;
                                                                    }
                                                                    v13_9++;
                                                                    v11_12 = v29_4;
                                                                    v12_21 = v30_2;
                                                                }
                                                                if ((v26_2 == 0) && (v7_21 != 0)) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as conversion", this.zzada.zzgq().zzbt(v6_17.name));
                                                                    boolean v10_9 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_17.zzaxc, (v6_17.zzaxc.length + 1)));
                                                                    int v11_18 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v11_18.name = "_c";
                                                                    v11_18.zzaxg = Long.valueOf(1);
                                                                    v10_9[(v10_9.length - 1)] = v11_18;
                                                                    v6_17.zzaxc = v10_9;
                                                                }
                                                                if (v27_1 == 0) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as real-time", this.zzada.zzgq().zzbt(v6_17.name));
                                                                    boolean v10_15 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_17.zzaxc, (v6_17.zzaxc.length + 1)));
                                                                    int v11_24 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v11_24.name = "_r";
                                                                    v11_24.zzaxg = Long.valueOf(1);
                                                                    v10_15[(v10_15.length - 1)] = v11_24;
                                                                    v6_17.zzaxc = v10_15;
                                                                }
                                                                Long v12_42;
                                                                if (this.zzjt().zza(this.zzly(), v2_1.zzaui.zztt, 0, 0, 0, 0, 1).zzahl <= ((long) this.zzada.zzgv().zzaq(v2_1.zzaui.zztt))) {
                                                                    v26_1 = v3_9;
                                                                    v12_42 = 1;
                                                                } else {
                                                                    boolean v10_20 = 0;
                                                                    while (v10_20 < v6_17.zzaxc.length) {
                                                                        if (!"_r".equals(v6_17.zzaxc[v10_20].name)) {
                                                                            v10_20++;
                                                                        } else {
                                                                            int v11_32 = new com.google.android.gms.internal.measurement.zzfu[(v6_17.zzaxc.length - 1)];
                                                                            if (v10_20) {
                                                                                System.arraycopy(v6_17.zzaxc, 0, v11_32, 0, v10_20);
                                                                            }
                                                                            if (v10_20 >= v11_32.length) {
                                                                                v26_1 = v3_9;
                                                                            } else {
                                                                                v26_1 = v3_9;
                                                                                System.arraycopy(v6_17.zzaxc, (v10_20 + 1), v11_32, v10_20, (v11_32.length - v10_20));
                                                                            }
                                                                            v6_17.zzaxc = v11_32;
                                                                        }
                                                                        v12_42 = v21_0;
                                                                    }
                                                                    v26_1 = v3_9;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.zzfx.zzct(v6_17.name)) || (v7_21 == 0)) {
                                                                    v18_0 = v12_42;
                                                                    v29_0 = v14_12;
                                                                } else {
                                                                    v18_0 = v12_42;
                                                                    if (this.zzjt().zza(this.zzly(), v2_1.zzaui.zztt, 0, 0, 1, 0, 0).zzahj <= ((long) this.zzada.zzgv().zzb(v2_1.zzaui.zztt, com.google.android.gms.measurement.internal.zzai.zzajh))) {
                                                                        v29_0 = v14_12;
                                                                    } else {
                                                                        this.zzada.zzgt().zzjj().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                        com.google.android.gms.measurement.internal.zzac v3_25 = v6_17.zzaxc;
                                                                        boolean v10_24 = v3_25.length;
                                                                        int v11_36 = 0;
                                                                        Long v12_52 = 0;
                                                                        int v13_23 = 0;
                                                                        while (v11_36 < v10_24) {
                                                                            boolean v10_43 = v3_25[v11_36];
                                                                            if (!"_c".equals(v10_43.name)) {
                                                                                if ("_err".equals(v10_43.name)) {
                                                                                    v12_52 = 1;
                                                                                }
                                                                            } else {
                                                                                v13_23 = v10_43;
                                                                            }
                                                                            v11_36++;
                                                                        }
                                                                        v29_0 = v14_12;
                                                                        if ((v12_52 == null) || (v13_23 == 0)) {
                                                                            if (v13_23 == 0) {
                                                                                this.zzada.zzgt().zzjg().zzg("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                            } else {
                                                                                v13_23.name = "_err";
                                                                                v13_23.zzaxg = Long.valueOf(10);
                                                                            }
                                                                        } else {
                                                                            com.google.android.gms.measurement.internal.zzac v3_31 = v6_17.zzaxc;
                                                                            int v11_40 = new com.google.android.gms.internal.measurement.zzfu[1];
                                                                            v11_40[0] = v13_23;
                                                                            v6_17.zzaxc = ((com.google.android.gms.internal.measurement.zzfu[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v3_31, v11_40));
                                                                        }
                                                                    }
                                                                }
                                                            } else {
                                                                int v11_6;
                                                                this.zzjr();
                                                                int v11_4 = v6_17.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v11_4);
                                                                Long v12_16 = v11_4.hashCode();
                                                                if (v12_16 == 94660) {
                                                                    if (!v11_4.equals("_in")) {
                                                                        v11_6 = -1;
                                                                    } else {
                                                                        v11_6 = 0;
                                                                    }
                                                                } else {
                                                                    if (v12_16 == 95025) {
                                                                        if (!v11_4.equals("_ug")) {
                                                                        } else {
                                                                            v11_6 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v12_16 == 95027) {
                                                                            if (!v11_4.equals("_ui")) {
                                                                            } else {
                                                                                v11_6 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v11_9;
                                                                switch (v11_6) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v11_9 = 1;
                                                                    default:
                                                                        v11_9 = 0;
                                                                }
                                                                if (v11_9 == 0) {
                                                                    v26_1 = v3_9;
                                                                    v29_0 = v14_12;
                                                                    v18_0 = v21_0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzada.zzgv().zzbd(v2_1.zzaui.zztt)) || (v7_21 == 0)) {
                                                            } else {
                                                                com.google.android.gms.measurement.internal.zzac v3_37 = v6_17.zzaxc;
                                                                int v7_22 = 0;
                                                                boolean v10_31 = -1;
                                                                int v11_41 = -1;
                                                                while (v7_22 < v3_37.length) {
                                                                    if (!"value".equals(v3_37[v7_22].name)) {
                                                                        if ("currency".equals(v3_37[v7_22].name)) {
                                                                            v11_41 = v7_22;
                                                                        }
                                                                    } else {
                                                                        v10_31 = v7_22;
                                                                    }
                                                                    v7_22++;
                                                                }
                                                                if (v10_31 == -1) {
                                                                } else {
                                                                    if ((v3_37[v10_31].zzaxg != null) || (v3_37[v10_31].zzaup != null)) {
                                                                        int v7_31;
                                                                        if (v11_41 != -1) {
                                                                            int v7_30 = v3_37[v11_41].zzamn;
                                                                            if (v7_30 == 0) {
                                                                            } else {
                                                                                if (v7_30.length() == 3) {
                                                                                    int v11_44 = 0;
                                                                                    while (v11_44 < v7_30.length()) {
                                                                                        int v13_25 = v7_30.codePointAt(v11_44);
                                                                                        if (Character.isLetter(v13_25)) {
                                                                                            v11_44 += Character.charCount(v13_25);
                                                                                        } else {
                                                                                            v7_31 = 1;
                                                                                            if (v7_31 != 0) {
                                                                                                this.zzada.zzgt().zzjl().zzby("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                                v3_37 = com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(v3_37, v10_31), "_c"), 19, "currency");
                                                                                            }
                                                                                            v6_17.zzaxc = v3_37;
                                                                                            if (this.zzada.zzgv().zze(v2_1.zzaui.zztt, com.google.android.gms.measurement.internal.zzai.zzalb)) {
                                                                                                if (!"_e".equals(v6_17.name)) {
                                                                                                    if ("_vs".equals(v6_17.name)) {
                                                                                                        this.zzjr();
                                                                                                        if (com.google.android.gms.measurement.internal.zzft.zza(v6_17, "_et") == null) {
                                                                                                            if ((v8_14 == null) || ((Math.abs((v8_14.zzaxd.longValue() - v6_17.zzaxd.longValue())) > 1000) || (!this.zza(v8_14, v6_17)))) {
                                                                                                                v9_7 = v6_17;
                                                                                                            } else {
                                                                                                                v8_14 = 0;
                                                                                                                v9_7 = 0;
                                                                                                            }
                                                                                                        }
                                                                                                    }
                                                                                                } else {
                                                                                                    this.zzjr();
                                                                                                    if (com.google.android.gms.measurement.internal.zzft.zza(v6_17, "_fr") == null) {
                                                                                                        if ((v9_7 == null) || ((Math.abs((v9_7.zzaxd.longValue() - v6_17.zzaxd.longValue())) > 1000) || (!this.zza(v6_17, v9_7)))) {
                                                                                                            v8_14 = v6_17;
                                                                                                        } else {
                                                                                                            v8_14 = 0;
                                                                                                            v9_7 = 0;
                                                                                                        }
                                                                                                    }
                                                                                                }
                                                                                            }
                                                                                            if ((v4_7 == null) || ((v5_13 != null) || (!"_e".equals(v6_17.name)))) {
                                                                                                v3_9 = v26_1;
                                                                                            } else {
                                                                                                if (v6_17.zzaxc != null) {
                                                                                                    if (v6_17.zzaxc.length != 0) {
                                                                                                        this.zzjr();
                                                                                                        com.google.android.gms.measurement.internal.zzac v3_68 = ((Long) com.google.android.gms.measurement.internal.zzft.zzb(v6_17, "_et"));
                                                                                                        if (v3_68 != null) {
                                                                                                            v29_0 += v3_68.longValue();
                                                                                                            v3_9 = v26_1;
                                                                                                            v13_34 = (v25_1 + 1);
                                                                                                            v3_9.zzaxk[v25_1] = v6_17;
                                                                                                            v14_12 = v29_0;
                                                                                                            v10_55 = (v23_2 + 1);
                                                                                                            v12_66 = v18_0;
                                                                                                        } else {
                                                                                                            this.zzada.zzgt().zzjj().zzg("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                                                        }
                                                                                                    } else {
                                                                                                    }
                                                                                                }
                                                                                                this.zzada.zzgt().zzjj().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                    v7_31 = 0;
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v7_31 = 1;
                                                                        } else {
                                                                            v7_31 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzada.zzgt().zzjl().zzby("Value must be specified with a numeric type.");
                                                                        v3_37 = com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(v3_37, v10_31), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            int v7_62;
                                                            v23_2 = v10_55;
                                                            String v25_3 = v13_34;
                                                            this.zzada.zzgt().zzjj().zze("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt), this.zzada.zzgq().zzbt(v6_17.name));
                                                            if (this.zzls().zzcl(v2_1.zzaui.zztt)) {
                                                                v7_62 = 1;
                                                            } else {
                                                                if (!this.zzls().zzcm(v2_1.zzaui.zztt)) {
                                                                    v7_62 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v7_62 == 0) && (!"_err".equals(v6_17.name))) {
                                                                this.zzada.zzgr().zza(v2_1.zzaui.zztt, 11, "_ev", v6_17.name, 0);
                                                            }
                                                            v18_0 = v21_0;
                                                            v13_34 = v25_3;
                                                        }
                                                    }
                                                    int v13_5;
                                                    boolean v21_4 = v12_66;
                                                    String v25_4 = v13_34;
                                                    long v29_6 = v14_12;
                                                    if (v5_13 == null) {
                                                        v13_5 = v25_4;
                                                    } else {
                                                        v13_5 = v25_4;
                                                        boolean v14_5 = v29_6;
                                                        String v5_0 = 0;
                                                        while (v5_0 < v13_5) {
                                                            long v6_12;
                                                            long v6_9 = v3_9.zzaxk[v5_0];
                                                            if (!"_e".equals(v6_9.name)) {
                                                                if (v4_7 != null) {
                                                                    this.zzjr();
                                                                    long v6_10 = com.google.android.gms.measurement.internal.zzft.zza(v6_9, "_et");
                                                                    if (v6_10 != 0) {
                                                                        long v6_11 = v6_10.zzaxg;
                                                                        if ((v6_11 != 0) && (v6_11.longValue() > 0)) {
                                                                            v14_5 += v6_11.longValue();
                                                                            v6_12 = 1;
                                                                            v5_0 += v6_12;
                                                                        }
                                                                    }
                                                                }
                                                                v6_12 = 1;
                                                            } else {
                                                                this.zzjr();
                                                                if (com.google.android.gms.measurement.internal.zzft.zza(v6_9, "_fr") == null) {
                                                                } else {
                                                                    System.arraycopy(v3_9.zzaxk, (v5_0 + 1), v3_9.zzaxk, v5_0, ((v13_5 - v5_0) - 1));
                                                                    v13_5--;
                                                                    v5_0--;
                                                                    v6_12 = 1;
                                                                }
                                                            }
                                                        }
                                                        v29_6 = v14_5;
                                                    }
                                                    if (v13_5 < v2_1.zzauk.size()) {
                                                        v3_9.zzaxk = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v3_9.zzaxk, v13_5));
                                                    }
                                                    if (v4_7 != null) {
                                                        Object v4_12;
                                                        Object v4_9 = this.zzjt().zzi(v3_9.zztt, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.measurement.internal.zzfw;
                                                            v4_12(v3_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf(v29_6));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                String v5_21 = new com.google.android.gms.measurement.internal.zzfw;
                                                                v5_21(v3_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v29_6)));
                                                                v4_12 = v5_21;
                                                            } else {
                                                            }
                                                        }
                                                        String v5_24 = new com.google.android.gms.internal.measurement.zzfz();
                                                        v5_24.name = "_lte";
                                                        v5_24.zzayw = Long.valueOf(this.zzada.zzbx().currentTimeMillis());
                                                        v5_24.zzaxg = ((Long) v4_12.value);
                                                        long v6_48 = 0;
                                                        while (v6_48 < v3_9.zzaxl.length) {
                                                            if (!"_lte".equals(v3_9.zzaxl[v6_48].name)) {
                                                                v6_48++;
                                                            } else {
                                                                v3_9.zzaxl[v6_48] = v5_24;
                                                                long v6_49 = 1;
                                                            }
                                                            String v5_25;
                                                            if (v6_49 != 0) {
                                                                v5_25 = 0;
                                                            } else {
                                                                v3_9.zzaxl = ((com.google.android.gms.internal.measurement.zzfz[]) java.util.Arrays.copyOf(v3_9.zzaxl, (v3_9.zzaxl.length + 1)));
                                                                v3_9.zzaxl[(v2_1.zzaui.zzaxl.length - 1)] = v5_24;
                                                                v5_25 = 0;
                                                            }
                                                            if (v29_6 > v5_25) {
                                                                this.zzjt().zza(v4_12);
                                                                this.zzada.zzgt().zzjn().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_49 = 0;
                                                    }
                                                    Object v9_9;
                                                    String v1_7;
                                                    Object v4_14 = v3_9.zztt;
                                                    String v5_30 = v3_9.zzaxl;
                                                    long v6_55 = v3_9.zzaxk;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v4_14);
                                                    v3_9.zzayc = this.zzjs().zza(v4_14, v6_55, v5_30);
                                                    try {
                                                        if (!this.zzada.zzgv().zzat(v2_1.zzaui.zztt)) {
                                                            v9_9 = v2_1;
                                                            v1_7 = v3_9;
                                                        } else {
                                                            Object v4_20 = new java.util.HashMap();
                                                            String v5_35 = new com.google.android.gms.internal.measurement.zzft[v3_9.zzaxk.length];
                                                            long v6_7 = this.zzada.zzgr().zzmk();
                                                            int v7_10 = v3_9.zzaxk;
                                                            Boolean v8_10 = v7_10.length;
                                                            Object v9_3 = 0;
                                                            boolean v10_0 = 0;
                                                            while (v9_3 < v8_10) {
                                                                int v26_0;
                                                                Object v9_1;
                                                                String v25_0;
                                                                long v27_0;
                                                                String v23_0;
                                                                int v11_55 = v7_10[v9_3];
                                                                if (!v11_55.name.equals("_ep")) {
                                                                    long v28_1;
                                                                    com.google.android.gms.measurement.internal.zzac v3_122;
                                                                    Long v12_81 = this.zzls().zzck(v2_1.zzaui.zztt);
                                                                    v1_0.zzada.zzgr();
                                                                    boolean v14_21 = com.google.android.gms.measurement.internal.zzfx.zzc(v11_55.zzaxd.longValue(), v12_81);
                                                                    v23_0 = v7_10;
                                                                    v25_0 = v8_10;
                                                                    Boolean v8_24 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v8_24 != null)) {
                                                                        v26_0 = v3_9;
                                                                        com.google.android.gms.measurement.internal.zzac v3_121 = v11_55.zzaxc;
                                                                        v27_0 = v9_3;
                                                                        Object v9_10 = v3_121.length;
                                                                        v28_1 = v12_81;
                                                                        Long v12_82 = 0;
                                                                        while (v12_82 < v9_10) {
                                                                            int v13_57 = v3_121[v12_82];
                                                                            if (!"_dbg".equals(v13_57.name)) {
                                                                                v12_82++;
                                                                            } else {
                                                                                if (((!(v8_24 instanceof Long)) || (!v8_24.equals(v13_57.zzaxg))) && (((!(v8_24 instanceof String)) || (!v8_24.equals(v13_57.zzamn))) && ((!(v8_24 instanceof Double)) || (!v8_24.equals(v13_57.zzaup))))) {
                                                                                    v3_122 = 0;
                                                                                } else {
                                                                                    v3_122 = 1;
                                                                                }
                                                                            }
                                                                        }
                                                                        v3_122 = 0;
                                                                    } else {
                                                                        v26_0 = v3_9;
                                                                        v27_0 = v9_3;
                                                                        v28_1 = v12_81;
                                                                        v3_122 = 0;
                                                                    }
                                                                    Long v12_83;
                                                                    if (v3_122 != null) {
                                                                        v12_83 = 1;
                                                                    } else {
                                                                        v12_83 = this.zzls().zzq(v2_1.zzaui.zztt, v11_55.name);
                                                                    }
                                                                    if (v12_83 > null) {
                                                                        com.google.android.gms.measurement.internal.zzac v3_1 = ((com.google.android.gms.measurement.internal.zzac) v4_20.get(v11_55.name));
                                                                        if (v3_1 == null) {
                                                                            v3_1 = this.zzjt().zzg(v2_1.zzaui.zztt, v11_55.name);
                                                                            if (v3_1 == null) {
                                                                                v1_0.zzada.zzgt().zzjj().zze("Event being bundled has no eventAggregate. appId, eventName", v2_1.zzaui.zztt, v11_55.name);
                                                                                v3_1 = new com.google.android.gms.measurement.internal.zzac;
                                                                                v3_1(v2_1.zzaui.zztt, v11_55.name, 1, 1, v11_55.zzaxd.longValue(), 0, 0, 0, 0, 0);
                                                                            }
                                                                        }
                                                                        Boolean v8_30;
                                                                        this.zzjr();
                                                                        int v7_122 = ((Long) com.google.android.gms.measurement.internal.zzft.zzb(v11_55, "_eid"));
                                                                        if (v7_122 == 0) {
                                                                            v8_30 = 0;
                                                                        } else {
                                                                            v8_30 = 1;
                                                                        }
                                                                        Boolean v8_31 = Boolean.valueOf(v8_30);
                                                                        if (v12_83 != 1) {
                                                                            if (v6_7.nextInt(v12_83) != 0) {
                                                                                p46 = v6_7;
                                                                                int v13_58;
                                                                                String v1_19;
                                                                                if (!v1_0.zzada.zzgv().zzbf(v2_1.zzaui.zztt)) {
                                                                                    v9_1 = v2_1;
                                                                                    v13_58 = v7_122;
                                                                                    if (Math.abs((v11_55.zzaxd.longValue() - v3_1.zzahy)) < 86400000) {
                                                                                        v1_19 = 0;
                                                                                    } else {
                                                                                        v1_19 = 1;
                                                                                    }
                                                                                } else {
                                                                                    long v28_3;
                                                                                    if (v3_1.zzahz == null) {
                                                                                        v1_0.zzada.zzgr();
                                                                                        v9_1 = v2_1;
                                                                                        v13_58 = v7_122;
                                                                                        v28_3 = com.google.android.gms.measurement.internal.zzfx.zzc(v11_55.zzaxe.longValue(), v28_1);
                                                                                    } else {
                                                                                        v28_3 = v3_1.zzahz.longValue();
                                                                                        v9_1 = v2_1;
                                                                                        v13_58 = v7_122;
                                                                                    }
                                                                                    if (v28_3 == v14_21) {
                                                                                        v1_19 = 0;
                                                                                    } else {
                                                                                        v1_19 = 1;
                                                                                    }
                                                                                }
                                                                                if (v1_19 == null) {
                                                                                    if (v8_31.booleanValue()) {
                                                                                        v4_20.put(v11_55.name, v3_1.zza(v13_58, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzjr();
                                                                                    v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_efs", Long.valueOf(1));
                                                                                    this.zzjr();
                                                                                    long v6_90 = ((long) v12_83);
                                                                                    v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_sr", Long.valueOf(v6_90));
                                                                                    String v1_28 = (v10_0 + 1);
                                                                                    v5_35[v10_0] = v11_55;
                                                                                    if (v8_31.booleanValue()) {
                                                                                        v3_1 = v3_1.zza(0, Long.valueOf(v6_90), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_20.put(v11_55.name, v3_1.zza(v11_55.zzaxd.longValue(), v14_21));
                                                                                    v10_0 = v1_28;
                                                                                }
                                                                            } else {
                                                                                this.zzjr();
                                                                                Long v12_0 = ((long) v12_83);
                                                                                p46 = v6_7;
                                                                                v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_sr", Long.valueOf(v12_0));
                                                                                long v6_6 = (v10_0 + 1);
                                                                                v5_35[v10_0] = v11_55;
                                                                                if (v8_31.booleanValue()) {
                                                                                    v3_1 = v3_1.zza(0, Long.valueOf(v12_0), 0);
                                                                                }
                                                                                v4_20.put(v11_55.name, v3_1.zza(v11_55.zzaxd.longValue(), v14_21));
                                                                                v9_1 = v2_1;
                                                                                v10_0 = v6_6;
                                                                            }
                                                                        } else {
                                                                            int v7_6 = (v10_0 + 1);
                                                                            v5_35[v10_0] = v11_55;
                                                                            if ((v8_31.booleanValue()) && ((v3_1.zzaia != null) || ((v3_1.zzaib != null) || (v3_1.zzaic != null)))) {
                                                                                v4_20.put(v11_55.name, v3_1.zza(0, 0, 0));
                                                                            }
                                                                            v9_1 = v2_1;
                                                                            p46 = v6_7;
                                                                            v10_0 = v7_6;
                                                                        }
                                                                    } else {
                                                                        v1_0.zzada.zzgt().zzjj().zze("Sample rate must be positive. event, rate", v11_55.name, Integer.valueOf(v12_83));
                                                                        com.google.android.gms.measurement.internal.zzac v3_8 = (v10_0 + 1);
                                                                        v5_35[v10_0] = v11_55;
                                                                        v9_1 = v2_1;
                                                                        v10_0 = v3_8;
                                                                        p46 = v6_7;
                                                                    }
                                                                } else {
                                                                    this.zzjr();
                                                                    Long v12_3 = ((String) com.google.android.gms.measurement.internal.zzft.zzb(v11_55, "_en"));
                                                                    int v13_1 = ((com.google.android.gms.measurement.internal.zzac) v4_20.get(v12_3));
                                                                    if (v13_1 == 0) {
                                                                        v13_1 = this.zzjt().zzg(v2_1.zzaui.zztt, v12_3);
                                                                        v4_20.put(v12_3, v13_1);
                                                                    }
                                                                    if (v13_1.zzaia != null) {
                                                                        v26_0 = v3_9;
                                                                        p46 = v6_7;
                                                                        v23_0 = v7_10;
                                                                        v25_0 = v8_10;
                                                                        v27_0 = v9_3;
                                                                        v9_1 = v2_1;
                                                                    } else {
                                                                        if (v13_1.zzaib.longValue() > 1) {
                                                                            this.zzjr();
                                                                            v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_sr", v13_1.zzaib);
                                                                        }
                                                                        if ((v13_1.zzaic != null) && (v13_1.zzaic.booleanValue())) {
                                                                            this.zzjr();
                                                                            v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_efs", Long.valueOf(1));
                                                                        }
                                                                        Long v12_14 = (v10_0 + 1);
                                                                        v5_35[v10_0] = v11_55;
                                                                        v26_0 = v3_9;
                                                                        p46 = v6_7;
                                                                        v23_0 = v7_10;
                                                                        v25_0 = v8_10;
                                                                        v27_0 = v9_3;
                                                                        v10_0 = v12_14;
                                                                        v9_1 = v2_1;
                                                                    }
                                                                }
                                                                v6_7 = p46;
                                                                v2_1 = v9_1;
                                                                v7_10 = v23_0;
                                                                v8_10 = v25_0;
                                                                v3_9 = v26_0;
                                                                v9_3 = (v27_0 + 1);
                                                                v1_0 = this;
                                                            }
                                                            v9_9 = v2_1;
                                                            v1_7 = v3_9;
                                                            if (v10_0 < v1_7.zzaxk.length) {
                                                                v1_7.zzaxk = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v5_35, v10_0));
                                                            }
                                                            int v2_10 = v4_20.entrySet().iterator();
                                                            while (v2_10.hasNext()) {
                                                                this.zzjt().zza(((com.google.android.gms.measurement.internal.zzac) ((java.util.Map$Entry) v2_10.next()).getValue()));
                                                            }
                                                        }
                                                        try {
                                                            v1_7.zzaxn = Long.valueOf(nan);
                                                            v1_7.zzaxo = Long.valueOf(-0.0);
                                                            int v2_15 = 0;
                                                        } catch (android.database.sqlite.SQLiteException v0_4) {
                                                            String v1_2 = v0_4;
                                                            this.zzjt().endTransaction();
                                                            throw v1_2;
                                                        }
                                                        while (v2_15 < v1_7.zzaxk.length) {
                                                            com.google.android.gms.measurement.internal.zzac v3_115 = v1_7.zzaxk[v2_15];
                                                            if (v3_115.zzaxd.longValue() < v1_7.zzaxn.longValue()) {
                                                                v1_7.zzaxn = v3_115.zzaxd;
                                                            }
                                                            if (v3_115.zzaxd.longValue() > v1_7.zzaxo.longValue()) {
                                                                v1_7.zzaxo = v3_115.zzaxd;
                                                            }
                                                            v2_15++;
                                                        }
                                                        Object v4_21;
                                                        int v2_17 = v9_9.zzaui.zztt;
                                                        com.google.android.gms.measurement.internal.zzac v3_91 = this.zzjt().zzbm(v2_17);
                                                        if (v3_91 != null) {
                                                            v4_21 = this;
                                                            if (v1_7.zzaxk.length > 0) {
                                                                int v7_98;
                                                                String v5_38 = v3_91.zzhe();
                                                                if (v5_38 == 0) {
                                                                    v7_98 = 0;
                                                                } else {
                                                                    v7_98 = Long.valueOf(v5_38);
                                                                }
                                                                v1_7.zzaxq = v7_98;
                                                                int v7_99 = v3_91.zzhd();
                                                                if (v7_99 != 0) {
                                                                    v5_38 = v7_99;
                                                                } else {
                                                                }
                                                                String v5_39;
                                                                if (v5_38 == 0) {
                                                                    v5_39 = 0;
                                                                } else {
                                                                    v5_39 = Long.valueOf(v5_38);
                                                                }
                                                                v1_7.zzaxp = v5_39;
                                                                v3_91.zzhm();
                                                                v1_7.zzaya = Integer.valueOf(((int) v3_91.zzhj()));
                                                                v3_91.zzo(v1_7.zzaxn.longValue());
                                                                v3_91.zzp(v1_7.zzaxo.longValue());
                                                                v1_7.zzagm = v3_91.zzhu();
                                                                this.zzjt().zza(v3_91);
                                                            }
                                                        } else {
                                                            v4_21 = this;
                                                            this.zzada.zzgt().zzjg().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v9_9.zzaui.zztt));
                                                        }
                                                        if (v1_7.zzaxk.length > 0) {
                                                            v4_21.zzada.zzgw();
                                                            com.google.android.gms.measurement.internal.zzac v3_99 = this.zzls().zzcg(v9_9.zzaui.zztt);
                                                            if (v3_99 == null) {
                                                                if (!android.text.TextUtils.isEmpty(v9_9.zzaui.zzafi)) {
                                                                    v4_21.zzada.zzgt().zzjj().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v9_9.zzaui.zztt));
                                                                } else {
                                                                    v1_7.zzayh = Long.valueOf(-1);
                                                                }
                                                            } else {
                                                                if (v3_99.zzawm != null) {
                                                                    v1_7.zzayh = v3_99.zzawm;
                                                                } else {
                                                                }
                                                            }
                                                            this.zzjt().zza(v1_7, v21_4);
                                                        }
                                                        String v1_8 = this.zzjt();
                                                        com.google.android.gms.measurement.internal.zzac v3_109 = v9_9.zzauj;
                                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_109);
                                                        v1_8.zzaf();
                                                        v1_8.zzcl();
                                                        String v5_55 = new StringBuilder("rowid in (");
                                                        long v6_66 = 0;
                                                        while (v6_66 < v3_109.size()) {
                                                            if (v6_66 != 0) {
                                                                v5_55.append(",");
                                                            }
                                                            v5_55.append(((Long) v3_109.get(v6_66)).longValue());
                                                            v6_66++;
                                                        }
                                                        v5_55.append(")");
                                                        String v5_57 = v1_8.getWritableDatabase().delete("raw_events", v5_55.toString(), 0);
                                                        if (v5_57 != v3_109.size()) {
                                                            v1_8.zzgt().zzjg().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_57), Integer.valueOf(v3_109.size()));
                                                        }
                                                        String v1_11 = this.zzjt();
                                                        com.google.android.gms.measurement.internal.zzac v3_112 = v1_11.getWritableDatabase();
                                                        try {
                                                            long v6_72 = new String[2];
                                                            v6_72[0] = v2_17;
                                                            v6_72[1] = v2_17;
                                                            v3_112.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v6_72);
                                                        } catch (android.database.sqlite.SQLiteException v0_7) {
                                                            v1_11.zzgt().zzjg().zze("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_17), v0_7);
                                                        }
                                                        this.zzjt().setTransactionSuccessful();
                                                        this.zzjt().endTransaction();
                                                        return 1;
                                                    } catch (android.database.sqlite.SQLiteException v0_2) {
                                                        v1_2 = v0_2;
                                                    }
                                                }
                                            } else {
                                                v6_3.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v7_2 = v3_10;
                                            com.google.android.gms.measurement.internal.zzac v3_0 = v0_1;
                                            try {
                                                v4_28.zzgt().zzjg().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_2), v3_0);
                                            } catch (android.database.sqlite.SQLiteException v0_6) {
                                                String v1_3 = v0_6;
                                                int v22 = v6_3;
                                                if (v22 != 0) {
                                                    v22.close();
                                                }
                                                throw v1_3;
                                            }
                                            if (v6_3 == 0) {
                                            } else {
                                                v6_3.close();
                                            }
                                        }
                                        if (v15_2.moveToNext()) {
                                            v4_28.zzgt().zzjj().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10));
                                        }
                                        String[] v17_2;
                                        String v16_2;
                                        v15_2.close();
                                        v2_1.zzb(v14_10);
                                        if (v5_61 == -1) {
                                            boolean v10_58 = new String[2];
                                            v10_58[0] = v3_10;
                                            v10_58[1] = v7_2;
                                            v16_2 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_2 = v10_58;
                                        } else {
                                            int v13_44 = new String[3];
                                            v13_44[0] = v3_10;
                                            v13_44[1] = v7_2;
                                            v13_44[2] = String.valueOf(v5_61);
                                            v16_2 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_2 = v13_44;
                                        }
                                        v6_3 = v15_2;
                                        String v5_6 = v25_2.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_2, v17_2, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_6.moveToFirst()) {
                                                v4_28.zzgt().zzjj().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10));
                                                if (v5_6 == null) {
                                                } else {
                                                    v5_6.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v22 = v5_6;
                                            v1_3 = v0_0;
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v7_2 = v3_10;
                                            v6_3 = v5_6;
                                        }
                                        do {
                                            long v6_24 = v5_6.getLong(0);
                                            Long v12_70 = v5_6.getBlob(3);
                                            boolean v10_63 = com.google.android.gms.internal.measurement.zzxz.zzj(v12_70, 0, v12_70.length);
                                            Long v12_72 = new com.google.android.gms.internal.measurement.zzft();
                                            v12_72.zza(v10_63);
                                            v12_72.name = v5_6.getString(1);
                                            v12_72.zzaxd = Long.valueOf(v5_6.getLong(2));
                                            if (v2_1.zza(v6_24, v12_72)) {
                                            } else {
                                                if (v5_6 == null) {
                                                } else {
                                                    v5_6.close();
                                                }
                                            }
                                        } while(v5_6.moveToNext());
                                        if (v5_6 == null) {
                                        } else {
                                            v5_6.close();
                                        }
                                    } else {
                                        v4_28.zzgt().zzjg().zzg("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10));
                                        if (v15_2 == null) {
                                        } else {
                                            v15_2.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_3 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v6_3 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v22 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v7_2 = v3_10;
                                    v6_3 = v15_2;
                                }
                                v22 = v6_3;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v22 = v23_1;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v7_2 = v3_10;
                                v6_3 = v23_1;
                            }
                        } else {
                            if (v3_10 == null) {
                            } else {
                                v3_10.close();
                            }
                        }
                    } else {
                        boolean v14_17;
                        int v13_52 = v5_61 cmp -1;
                        try {
                            if (v13_52 == 0) {
                                v14_17 = new String[1];
                                v14_17[0] = String.valueOf(p47);
                            } else {
                                v14_17 = new String[2];
                                v14_17[0] = String.valueOf(v5_61);
                                v14_17[1] = String.valueOf(p47);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            v6_3 = 0;
                            v7_2 = 0;
                        }
                        int v13_53;
                        if (v13_52 == 0) {
                            v13_53 = "";
                        } else {
                            v13_53 = "rowid <= ? and ";
                        }
                        com.google.android.gms.measurement.internal.zzac v3_142 = new StringBuilder((String.valueOf(v13_53).length() + 148));
                        v3_142.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_142.append(v13_53);
                        v3_142.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_10 = v15_3.rawQuery(v3_142.toString(), v14_17);
                        if (v3_10.moveToFirst()) {
                            int v7_9 = v3_10.getString(0);
                            try {
                                int v13_4 = v3_10.getString(1);
                                v3_10.close();
                                v23_1 = v3_10;
                                v3_10 = v7_9;
                                v7_2 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v6_3 = v3_10;
                            }
                        } else {
                            if (v3_10 == null) {
                            } else {
                                v3_10.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v22 = v3_10;
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v6_3 = v3_10;
                    v7_2 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v22 = 0;
            } catch (android.database.sqlite.SQLiteException v0_8) {
                v3_0 = v0_8;
                v6_3 = 0;
                v7_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_4) {
            }
        } catch (android.database.sqlite.SQLiteException v0_4) {
        }
    }

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


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

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


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

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


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

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


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

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


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

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


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

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p9)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_13 = p9.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_13.moveToFirst();
                v0_13.close();
            } catch (android.database.sqlite.SQLiteException v9_10) {
                v0_13.close();
                throw v9_10;
            }
        }
        String v1_3 = 0;
        if (this.zza(p9, "hits2")) {
            String v0_6 = com.google.android.gms.internal.measurement.zzbg.zzb(p9, "hits2");
            boolean v3_1 = 0;
            while (v3_1 < 4) {
                String v4_2 = new String[] {"hit_id", "hit_string", "hit_time", "hit_url"})[v3_1];
                if (v0_6.remove(v4_2)) {
                    v3_1++;
                } else {
                    String v0_12;
                    String v1_5 = String.valueOf(v4_2);
                    if (v1_5.length() == 0) {
                        v0_12 = new String("Database hits2 is missing required column: ");
                    } else {
                        v0_12 = "Database hits2 is missing required column: ".concat(v1_5);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_12);
                }
            }
            int v2_5 = (v0_6.remove("hit_app_id") ^ 1);
            if (!v0_6.isEmpty()) {
                throw new android.database.sqlite.SQLiteException("Database hits2 has extra columns");
            } else {
                if (v2_5 != 0) {
                    p9.execSQL("ALTER TABLE hits2 ADD COLUMN hit_app_id INTEGER");
                }
            }
        } else {
            p9.execSQL(com.google.android.gms.internal.measurement.zzbf.zzde());
        }
        if (this.zza(p9, "properties")) {
            android.database.sqlite.SQLiteException v9_6 = com.google.android.gms.internal.measurement.zzbg.zzb(p9, "properties");
            String v4 = "tid";
            String v6 = "adid";
            while (v1_3 < 6) {
                int v2_9 = new String[] {"app_uid", "hits_count"})[v1_3];
                if (v9_6.remove(v2_9)) {
                    v1_3++;
                } else {
                    String v0_1;
                    String v1_8 = String.valueOf(v2_9);
                    if (v1_8.length() == 0) {
                        v0_1 = new String("Database properties is missing required column: ");
                    } else {
                        v0_1 = "Database properties is missing required column: ".concat(v1_8);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_1);
                }
            }
            if (!v9_6.isEmpty()) {
                throw new android.database.sqlite.SQLiteException("Database properties table has extra columns");
            } else {
                return;
            }
        } else {
            p9.execSQL("CREATE TABLE IF NOT EXISTS properties ( app_uid INTEGER NOT NULL, cid TEXT NOT NULL, tid TEXT NOT NULL, params TEXT NOT NULL, adid INTEGER NOT NULL, hits_count INTEGER NOT NULL, PRIMARY KEY (app_uid, cid, tid)) ;");
            return;
        }
    }

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


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

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


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

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


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

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


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

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


    public final boolean zza(com.google.android.gms.measurement.internal.zzab p9, long p10, boolean p12)
    {
        this.zzaf();
        this.zzcl();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p9);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p9.zztt);
        long v0_6 = new com.google.android.gms.internal.measurement.zzft();
        v0_6.zzaxe = Long.valueOf(p9.zzaht);
        byte[] v1_2 = new com.google.android.gms.internal.measurement.zzfu[p9.zzahu.size()];
        v0_6.zzaxc = v1_2;
        byte[] v1_4 = p9.zzahu.iterator();
        String v3_2 = 0;
        while (v1_4.hasNext()) {
            Long v4_1 = ((String) v1_4.next());
            Integer v5_1 = new com.google.android.gms.internal.measurement.zzfu();
            int v7 = (v3_2 + 1);
            v0_6.zzaxc[v3_2] = v5_1;
            v5_1.name = v4_1;
            this.zzjr().zza(v5_1, p9.zzahu.get(v4_1));
            v3_2 = v7;
        }
        try {
            byte[] v1_6 = new byte[v0_6.zzvx()];
            String v3_4 = com.google.android.gms.internal.measurement.zzya.zzk(v1_6, 0, v1_6.length);
            v0_6.zza(v3_4);
            v3_4.zzza();
            this.zzgt().zzjo().zze("Saving event, name, data size", this.zzgq().zzbt(p9.name), Integer.valueOf(v1_6.length));
            long v0_4 = new android.content.ContentValues();
            v0_4.put("app_id", p9.zztt);
            v0_4.put("name", p9.name);
            v0_4.put("timestamp", Long.valueOf(p9.timestamp));
            v0_4.put("metadata_fingerprint", Long.valueOf(p10));
            v0_4.put("data", v1_6);
            v0_4.put("realtime", Integer.valueOf(p12));
            try {
                if (this.getWritableDatabase().insert("raw_events", 0, v0_4) != -1) {
                    return 1;
                } else {
                    this.zzgt().zzjg().zzg("Failed to insert raw event (got -1). appId", com.google.android.gms.measurement.internal.zzas.zzbw(p9.zztt));
                    return 0;
                }
            } catch (com.google.android.gms.measurement.internal.zzau v10_9) {
                this.zzgt().zzjg().zze("Error storing raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p9.zztt), v10_9);
                return 0;
            }
        } catch (com.google.android.gms.measurement.internal.zzau v10_6) {
            this.zzgt().zzjg().zze("Data loss. Failed to serialize event params/data. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p9.zztt), v10_6);
            return 0;
        }
    }

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


    public final boolean zza(com.google.android.gms.internal.measurement.zzfw p8, boolean p9)
    {
        this.zzaf();
        this.zzcl();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p8);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p8.zztt);
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p8.zzaxo);
        this.zzij();
        int v0_0 = this.zzbx().currentTimeMillis();
        if ((p8.zzaxo.longValue() < (v0_0 - com.google.android.gms.measurement.internal.zzq.zzib())) || (p8.zzaxo.longValue() > (com.google.android.gms.measurement.internal.zzq.zzib() + v0_0))) {
            this.zzgt().zzjj().zzd("Storing bundle outside of the max uploading time span. appId, now, timestamp", com.google.android.gms.measurement.internal.zzas.zzbw(p8.zztt), Long.valueOf(v0_0), p8.zzaxo);
        }
        try {
            String v1_5 = new byte[p8.zzvx()];
            Object v2_10 = com.google.android.gms.internal.measurement.zzya.zzk(v1_5, 0, v1_5.length);
            p8.zza(v2_10);
            v2_10.zzza();
            String v1_6 = this.zzjr().zzb(v1_5);
            this.zzgt().zzjo().zzg("Saving bundle, size", Integer.valueOf(v1_6.length));
            Object v2_15 = new android.content.ContentValues();
            v2_15.put("app_id", p8.zztt);
            v2_15.put("bundle_end_timestamp", p8.zzaxo);
            v2_15.put("data", v1_6);
            v2_15.put("has_realtime", Integer.valueOf(p9));
        } catch (com.google.android.gms.measurement.internal.zzau v9_6) {
            this.zzgt().zzjg().zze("Data loss. Failed to serialize bundle. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p8.zztt), v9_6);
            return 0;
        }
        if (p8.zzayl != null) {
            v2_15.put("retry_count", p8.zzayl);
        }
        try {
            if (this.getWritableDatabase().insert("queue", 0, v2_15) != -1) {
                return 1;
            } else {
                this.zzgt().zzjg().zzg("Failed to insert bundle (got -1). appId", com.google.android.gms.measurement.internal.zzas.zzbw(p8.zztt));
                return 0;
            }
        } catch (com.google.android.gms.measurement.internal.zzau v9_1) {
            this.zzgt().zzjg().zze("Error storing bundle. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p8.zztt), v9_1);
            return 0;
        }
    }

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


    public final void zzb(long p9, String p11)
    {
        android.database.sqlite.SQLiteDatabase v0_3 = this.zzrz.currentTimeMillis();
        if (v0_3 > (this.zzbdv + 86400000)) {
            this.zzbdv = v0_3;
            android.database.sqlite.SQLiteDatabase v0_2 = this.zzdl("Error opening database for deleteStaleHits.");
            if (v0_2 != null) {
                android.content.ContentValues v1_5;
                String[] v7 = new String[1];
                v7[0] = Long.toString((this.zzrz.currentTimeMillis() - 1.280618154e-314));
                v0_2.delete("gtm_hits", "HIT_TIME < ?", v7);
                if (this.zzpj() != 0) {
                    v1_5 = 0;
                } else {
                    v1_5 = 1;
                }
                this.zzbdt.zzo(v1_5);
            }
        }
        android.database.sqlite.SQLiteDatabase v0_7 = ((this.zzpj() - this.zzbdw) + 1);
        if (v0_7 > null) {
            android.database.sqlite.SQLiteDatabase v0_8 = this.zzab(v0_7);
            android.content.ContentValues v1_7 = v0_8.size();
            StringBuilder v3_2 = new StringBuilder(51);
            v3_2.append("Store full, deleting ");
            v3_2.append(v1_7);
            v3_2.append(" hits to make room.");
            com.google.android.gms.tagmanager.zzdi.v(v3_2.toString());
            android.content.ContentValues v1_10 = new String[0];
            this.zza(((String[]) v0_8.toArray(v1_10)));
        }
        android.database.sqlite.SQLiteDatabase v0_12 = this.zzdl("Error opening database for putHit");
        if (v0_12 != null) {
            android.content.ContentValues v1_12 = new android.content.ContentValues();
            v1_12.put("hit_time", Long.valueOf(p9));
            v1_12.put("hit_url", p11);
            v1_12.put("hit_first_send_time", Integer.valueOf(0));
            try {
                v0_12.insert("gtm_hits", 0, v1_12);
                this.zzbdt.zzo(0);
                return;
            } catch (android.database.sqlite.SQLiteException) {
                com.google.android.gms.tagmanager.zzdi.zzab("Error storing hit");
            }
        }
        return;
    }

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


    private final declared_synchronized void zzb(java.util.List p11, long p12)
    {
        try {
            long v0_1 = this.zzrz.currentTimeMillis();
            this.zzap(v0_1);
            String v3_0 = ((this.zzoj() - this.zzbbo) + p11.size());
        } catch (Throwable v11_2) {
            this.zzok();
            throw v11_2;
        } catch (Throwable v11_3) {
            throw v11_3;
        }
        if (v3_0 > null) {
            String v2_0 = this.zzw(v3_0);
            String v3_2 = v2_0.size();
            String v5_1 = new StringBuilder(64);
            v5_1.append("DataLayer store full, deleting ");
            v5_1.append(v3_2);
            v5_1.append(" entries to make room.");
            com.google.android.gms.tagmanager.zzdi.zzdm(v5_1.toString());
            int v4_2 = new String[0];
            String v2_2 = ((String[]) v2_0.toArray(v4_2));
            if (v2_2 != null) {
                if (v2_2.length != 0) {
                    int v4_5 = this.zzdl("Error opening database for deleteEntries.");
                    if (v4_5 != 0) {
                        Object[] v6_1 = new Object[2];
                        v6_1[0] = "ID";
                        v6_1[1] = android.text.TextUtils.join(",", java.util.Collections.nCopies(v2_2.length, "?"));
                        v4_5.delete("datalayer", String.format("%s in (%s)", v6_1), v2_2);
                    }
                } else {
                }
            }
        }
        long v0_2 = (v0_1 + p12);
        android.database.sqlite.SQLiteDatabase v12_2 = this.zzdl("Error opening database for writeEntryToDatabase.");
        if (v12_2 != null) {
            Throwable v11_1 = p11.iterator();
            while (v11_1.hasNext()) {
                String v13_4 = ((com.google.android.gms.tagmanager.zzay) v11_1.next());
                String v2_9 = new android.content.ContentValues();
                v2_9.put("expires", Long.valueOf(v0_2));
                v2_9.put("key", v13_4.zzoj);
                v2_9.put("value", v13_4.zzbbu);
                v12_2.insert("datalayer", 0, v2_9);
            }
        }
        this.zzok();
        return;
    }

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


    public final void zzc(com.google.android.gms.internal.measurement.zzck p8)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p8);
        com.google.android.gms.analytics.zzk.zzaf();
        this.zzcl();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p8);
        Long v0_3 = new android.net.Uri$Builder();
        android.database.sqlite.SQLiteDatabase v1_0 = p8.zzcw().entrySet().iterator();
        while (v1_0.hasNext()) {
            String v2_1 = ((java.util.Map$Entry) v1_0.next());
            int v3_1 = ((String) v2_1.getKey());
            if ((!"ht".equals(v3_1)) && ((!"qt".equals(v3_1)) && (!"AppUID".equals(v3_1)))) {
                v0_3.appendQueryParameter(v3_1, ((String) v2_1.getValue()));
            }
        }
        Long v0_1 = v0_3.build().getEncodedQuery();
        if (v0_1 == null) {
            v0_1 = "";
        }
        if (v0_1.length() <= 8192) {
            android.database.sqlite.SQLiteDatabase v1_5 = ((Integer) com.google.android.gms.internal.measurement.zzcf.zzza.get()).intValue();
            String v2_6 = this.zzcv();
            if (v2_6 > ((long) (v1_5 - 1))) {
                android.database.sqlite.SQLiteDatabase v1_6 = this.zzc(((v2_6 - ((long) v1_5)) + 1));
                this.zzd("Store full, deleting hits to make room, count", Integer.valueOf(v1_6.size()));
                this.zza(v1_6);
            }
            int v3_10;
            android.database.sqlite.SQLiteDatabase v1_7 = this.getWritableDatabase();
            String v2_11 = new android.content.ContentValues();
            v2_11.put("hit_string", v0_1);
            v2_11.put("hit_time", Long.valueOf(p8.zzer()));
            v2_11.put("hit_app_id", Integer.valueOf(p8.zzep()));
            if (!p8.zzet()) {
                v3_10 = com.google.android.gms.internal.measurement.zzbx.zzee();
            } else {
                v3_10 = com.google.android.gms.internal.measurement.zzbx.zzed();
            }
            v2_11.put("hit_url", v3_10);
            try {
                Long v0_8 = v1_7.insert("hits2", 0, v2_11);
            } catch (String v8_2) {
                this.zze("Error storing a hit", v8_2);
                return;
            }
            if (v0_8 != -1) {
                this.zzb("Hit saved to database. db-id, hit", Long.valueOf(v0_8), p8);
                return;
            } else {
                this.zzu("Failed to insert a hit (got -1)");
                return;
            }
        } else {
            this.zzby().zza(p8, "Hit length exceeds the maximum allowed size");
            return;
        }
    }

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


    final void zzc(java.util.List p6)
    {
        this.zzaf();
        this.zzcl();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p6);
        com.google.android.gms.common.internal.Preconditions.checkNotZero(p6.size());
        if (this.zzip()) {
            android.database.sqlite.SQLiteException v6_1 = android.text.TextUtils.join(",", p6);
            String v1_1 = new StringBuilder((String.valueOf(v6_1).length() + 2));
            v1_1.append("(");
            v1_1.append(v6_1);
            v1_1.append(")");
            android.database.sqlite.SQLiteException v6_3 = v1_1.toString();
            String v1_3 = new StringBuilder((String.valueOf(v6_3).length() + 80));
            v1_3.append("SELECT COUNT(1) FROM queue WHERE rowid IN ");
            v1_3.append(v6_3);
            v1_3.append(" AND retry_count =  2147483647 LIMIT 1");
            if (this.zza(v1_3.toString(), 0) > 0) {
                this.zzgt().zzjj().zzby("The number of upload retries exceeds the limit. Will remain unchanged.");
            }
            try {
                com.google.android.gms.measurement.internal.zzau v0_14 = this.getWritableDatabase();
                StringBuilder v2_2 = new StringBuilder((String.valueOf(v6_3).length() + 127));
                v2_2.append("UPDATE queue SET retry_count = IFNULL(retry_count, 0) + 1 WHERE rowid IN ");
                v2_2.append(v6_3);
                v2_2.append(" AND (retry_count IS NULL OR retry_count < 2147483647)");
                v0_14.execSQL(v2_2.toString());
                return;
            } catch (android.database.sqlite.SQLiteException v6_6) {
                this.zzgt().zzjg().zzg("Error incrementing retry count. error", v6_6);
                return;
            }
        } else {
            return;
        }
    }

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


    final com.google.android.gms.internal.measurement.zzfr[] zza(String p66, com.google.android.gms.internal.measurement.zzft[] p67, com.google.android.gms.internal.measurement.zzfz[] p68)
    {
        int v22_2;
        java.util.BitSet v21_2;
        android.support.v4.util.ArrayMap v25_0;
        Integer v24_0;
        boolean v15_0 = p66;
        long[] v13_1 = p67;
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p66);
        java.util.BitSet v11_12 = new java.util.HashSet();
        String v12_8 = new android.support.v4.util.ArrayMap();
        Integer v10_0 = new android.support.v4.util.ArrayMap();
        android.support.v4.util.ArrayMap v9_1 = new android.support.v4.util.ArrayMap();
        Integer v8_9 = new android.support.v4.util.ArrayMap();
        String v6_8 = new android.support.v4.util.ArrayMap();
        boolean v23 = this.zzgv().zzbb(p66);
        boolean v0_20 = this.zzjt().zzbp(p66);
        if (!v0_20) {
            v21_2 = v8_9;
            v24_0 = v9_1;
            v25_0 = v10_0;
            v22_2 = v11_12;
        } else {
            long v1_69 = v0_20.keySet().iterator();
            while (v1_69.hasNext()) {
                String v20_4;
                int v22_3;
                java.util.BitSet v21_3;
                boolean v0_16;
                java.util.Iterator v19_4;
                java.util.BitSet v2_55 = ((Integer) v1_69.next()).intValue();
                Integer v4_25 = ((com.google.android.gms.internal.measurement.zzfx) v0_20.get(Integer.valueOf(v2_55)));
                String v5_11 = ((java.util.BitSet) v10_0.get(Integer.valueOf(v2_55)));
                com.google.android.gms.internal.measurement.zzfz[] v3_20 = ((java.util.BitSet) v9_1.get(Integer.valueOf(v2_55)));
                if (!v23) {
                    v19_4 = v0_20;
                    v20_4 = v1_69;
                    v21_3 = v3_20;
                    v22_3 = v11_12;
                    v0_16 = 0;
                } else {
                    v19_4 = v0_20;
                    v0_16 = new android.support.v4.util.ArrayMap();
                    if (v4_25 == null) {
                        v20_4 = v1_69;
                        v21_3 = v3_20;
                        v22_3 = v11_12;
                    } else {
                        v20_4 = v1_69;
                        if (v4_25.zzayr != null) {
                            long v1_57 = v4_25.zzayr;
                            v21_3 = v3_20;
                            com.google.android.gms.internal.measurement.zzfz[] v3_21 = v1_57.length;
                            v22_3 = v11_12;
                            java.util.BitSet v11_8 = 0;
                            while (v11_8 < v3_21) {
                                Integer v24_1 = v3_21;
                                com.google.android.gms.internal.measurement.zzfz[] v3_22 = v1_57[v11_8];
                                android.support.v4.util.ArrayMap v25_1 = v1_57;
                                if (v3_22.zzawz != null) {
                                    v0_16.put(v3_22.zzawz, v3_22.zzaxa);
                                }
                                v11_8++;
                                v3_21 = v24_1;
                                v1_57 = v25_1;
                            }
                        }
                    }
                    v8_9.put(Integer.valueOf(v2_55), v0_16);
                }
                com.google.android.gms.internal.measurement.zzfz[] v3_24;
                if (v5_11 != null) {
                    v3_24 = v21_3;
                } else {
                    v5_11 = new java.util.BitSet();
                    v10_0.put(Integer.valueOf(v2_55), v5_11);
                    v3_24 = new java.util.BitSet();
                    v9_1.put(Integer.valueOf(v2_55), v3_24);
                }
                long v1_63 = 0;
                while (v1_63 < (v4_25.zzayp.length << 6)) {
                    Integer v8_24;
                    Integer v24_3;
                    android.support.v4.util.ArrayMap v25_3;
                    java.util.BitSet v21_5;
                    if (!com.google.android.gms.measurement.internal.zzft.zza(v4_25.zzayp, v1_63)) {
                        v21_5 = v8_9;
                        v24_3 = v9_1;
                        v25_3 = v10_0;
                        v8_24 = 0;
                    } else {
                        v21_5 = v8_9;
                        v24_3 = v9_1;
                        v25_3 = v10_0;
                        this.zzgt().zzjo().zze("Filter already evaluated. audience ID, filter ID", Integer.valueOf(v2_55), Integer.valueOf(v1_63));
                        v3_24.set(v1_63);
                        if (!com.google.android.gms.measurement.internal.zzft.zza(v4_25.zzayq, v1_63)) {
                        } else {
                            v5_11.set(v1_63);
                            v8_24 = 1;
                        }
                    }
                    if ((v0_16) && (v8_24 == null)) {
                        v0_16.remove(Integer.valueOf(v1_63));
                    }
                    v1_63++;
                    v8_9 = v21_5;
                    v9_1 = v24_3;
                    v10_0 = v25_3;
                }
                java.util.BitSet v21_4 = v8_9;
                Integer v24_2 = v9_1;
                android.support.v4.util.ArrayMap v25_2 = v10_0;
                long v1_65 = new com.google.android.gms.internal.measurement.zzfr();
                v12_8.put(Integer.valueOf(v2_55), v1_65);
                v1_65.zzawx = Boolean.valueOf(0);
                v1_65.zzaww = v4_25;
                v1_65.zzawv = new com.google.android.gms.internal.measurement.zzfx();
                v1_65.zzawv.zzayq = com.google.android.gms.measurement.internal.zzft.zza(v5_11);
                v1_65.zzawv.zzayp = com.google.android.gms.measurement.internal.zzft.zza(v3_24);
                if (v23) {
                    v1_65.zzawv.zzayr = com.google.android.gms.measurement.internal.zzm.zzb(v0_16);
                    v6_8.put(Integer.valueOf(v2_55), new android.support.v4.util.ArrayMap());
                }
                v0_20 = v19_4;
                v1_69 = v20_4;
                v8_9 = v21_4;
                v11_12 = v22_3;
                v9_1 = v24_2;
                v10_0 = v25_2;
            }
            v21_2 = v8_9;
            v24_0 = v9_1;
            v25_0 = v10_0;
            v22_2 = v11_12;
        }
        java.util.Iterator v37_1;
        boolean v46_3;
        String v47_2;
        com.google.android.gms.internal.measurement.zzfz[] v14_3;
        long v1_71;
        Integer v42_4;
        String v63_4;
        int v34_0;
        if (p67 == null) {
            v37_1 = v6_8;
            v46_3 = v12_8;
            v47_2 = v21_2;
            v14_3 = v22_2;
            v42_4 = v24_0;
            v63_4 = v25_0;
            v34_0 = 1;
            v1_71 = p68;
        } else {
            android.support.v4.util.ArrayMap v9_3 = new android.support.v4.util.ArrayMap();
            Integer v8_14 = p67.length;
            java.util.BitSet v2_0 = 0;
            boolean v0_0 = 0;
            long v1_7 = 0;
            Integer v4_22 = 0;
            while (v4_22 < v8_14) {
                String v63_0;
                java.util.Iterator v37_0;
                String v47_0;
                long[] v13_13;
                Integer v43_0;
                boolean v0_4;
                int v34_1;
                com.google.android.gms.internal.measurement.zzfu[] v29;
                boolean v32;
                Integer v42_0;
                com.google.android.gms.internal.measurement.zzfu v35_0;
                com.google.android.gms.internal.measurement.zzfu v28_1;
                Integer v41;
                boolean v46_0;
                com.google.android.gms.internal.measurement.zzft v33_0;
                com.google.android.gms.internal.measurement.zzfz[] v14_0;
                String v5_47 = v13_1[v4_22];
                Integer v10_16 = v5_47.name;
                java.util.BitSet v11_24 = v5_47.zzaxc;
                com.google.android.gms.internal.measurement.zzfu v28_0 = v2_0;
                if (!this.zzgv().zzd(v15_0, com.google.android.gms.measurement.internal.zzai.zzaki)) {
                    v32 = v4_22;
                    v13_13 = v5_47;
                    v37_0 = v6_8;
                    v34_1 = 1;
                    v33_0 = v1_7;
                    v35_0 = v28_0;
                    v28_1 = v0_0;
                    v0_4 = v10_16;
                    v29 = v11_24;
                    String v44_0;
                    long v1_118;
                    String v5_48;
                    Integer v43_2;
                    java.util.BitSet v2_15;
                    com.google.android.gms.internal.measurement.zzfz[] v45;
                    long v1_116 = this.zzjt().zzg(v15_0, v13_13.name);
                    if (v1_116 != 0) {
                        v41 = v8_14;
                        v43_2 = v9_3;
                        v46_0 = v12_8;
                        v2_15 = v13_13;
                        v5_48 = v15_0;
                        v47_0 = v21_2;
                        v45 = v22_2;
                        v42_0 = v24_0;
                        v44_0 = v25_0;
                        Integer v4_48 = new com.google.android.gms.measurement.internal.zzac;
                        v4_48(v1_116.zztt, v1_116.name, (v1_116.zzahv + 1), (v1_116.zzahw + 1), v1_116.zzahx, v1_116.zzahy, v1_116.zzahz, v1_116.zzaia, v1_116.zzaib, v1_116.zzaic);
                        v1_118 = v4_48;
                    } else {
                        this.zzgt().zzjj().zze("Event aggregate wasn\'t created during raw event logging. appId, event", com.google.android.gms.measurement.internal.zzas.zzbw(p66), this.zzgq().zzbt(v0_4));
                        v1_118 = new com.google.android.gms.measurement.internal.zzac;
                        v41 = v8_14;
                        v43_2 = v9_3;
                        v42_0 = v24_0;
                        v44_0 = v25_0;
                        v47_0 = v21_2;
                        v46_0 = v12_8;
                        v45 = v22_2;
                        v2_15 = v13_13;
                        v5_48 = v15_0;
                        v1_118(p66, v13_13.name, 1, 1, v13_13.zzaxd.longValue(), 0, 0, 0, 0, 0);
                    }
                    java.util.BitSet v11_0;
                    this.zzjt().zza(v1_118);
                    Integer v8_0 = v1_118.zzahv;
                    Integer v10_1 = v43_2;
                    long v1_1 = ((java.util.Map) v10_1.get(v0_4));
                    if (v1_1 != 0) {
                        v11_0 = v1_1;
                    } else {
                        long v1_3 = this.zzjt().zzl(v5_48, v0_4);
                        if (v1_3 == 0) {
                            v1_3 = new android.support.v4.util.ArrayMap();
                        }
                        v10_1.put(v0_4, v1_3);
                        v11_0 = v1_3;
                    }
                    String v12_0 = v11_0.keySet().iterator();
                    while (v12_0.hasNext()) {
                        long[] v13_0 = ((Integer) v12_0.next()).intValue();
                        com.google.android.gms.internal.measurement.zzfz[] v14_1 = v45;
                        if (!v14_1.contains(Integer.valueOf(v13_0))) {
                            java.util.BitSet v2_4;
                            java.util.Iterator v19_1;
                            boolean v17_0;
                            int v18_0;
                            String v7_0;
                            String v12_1;
                            boolean v15_1 = v46_0;
                            String v6_0 = v44_0;
                            Integer v4_5 = ((java.util.BitSet) v6_0.get(Integer.valueOf(v13_0)));
                            boolean v16_0 = v2_15;
                            Integer v43_1 = v10_1;
                            Integer v10_2 = v42_0;
                            java.util.BitSet v2_3 = ((java.util.BitSet) v10_2.get(Integer.valueOf(v13_0)));
                            if (!v23) {
                                v17_0 = v2_3;
                                v18_0 = v12_0;
                                v7_0 = v37_0;
                                v12_1 = v47_0;
                                v2_4 = 0;
                                v19_1 = 0;
                            } else {
                                v17_0 = v2_3;
                                v18_0 = v12_0;
                                v12_1 = v47_0;
                                v19_1 = ((java.util.Map) v12_1.get(Integer.valueOf(v13_0)));
                                v7_0 = v37_0;
                                v2_4 = ((java.util.Map) v7_0.get(Integer.valueOf(v13_0)));
                            }
                            boolean v17_1;
                            String v7_1;
                            java.util.BitSet v2_10;
                            if (((com.google.android.gms.internal.measurement.zzfr) v15_1.get(Integer.valueOf(v13_0))) != null) {
                                v37_0 = v7_0;
                                v2_10 = v17_0;
                                v17_1 = v19_1;
                                v7_1 = v2_4;
                            } else {
                                long v1_16 = new com.google.android.gms.internal.measurement.zzfr();
                                v15_1.put(Integer.valueOf(v13_0), v1_16);
                                v1_16.zzawx = Boolean.valueOf(v34_1);
                                v4_5 = new java.util.BitSet();
                                v6_0.put(Integer.valueOf(v13_0), v4_5);
                                long v1_19 = new java.util.BitSet();
                                String v20_2 = v2_4;
                                v10_2.put(Integer.valueOf(v13_0), v1_19);
                                if (!v23) {
                                    v37_0 = v7_0;
                                    v2_10 = v1_19;
                                    v17_1 = v19_1;
                                    v7_1 = v20_2;
                                } else {
                                    java.util.BitSet v2_13 = new android.support.v4.util.ArrayMap();
                                    boolean v17_3 = v1_19;
                                    v12_1.put(Integer.valueOf(v13_0), v2_13);
                                    long v1_22 = new android.support.v4.util.ArrayMap();
                                    java.util.Iterator v19_2 = v2_13;
                                    v7_0.put(Integer.valueOf(v13_0), v1_22);
                                    v37_0 = v7_0;
                                    v2_10 = v17_3;
                                    v17_1 = v19_2;
                                    v7_1 = v1_22;
                                }
                            }
                            java.util.Iterator v19_3 = ((java.util.List) v11_0.get(Integer.valueOf(v13_0))).iterator();
                            while (v19_3.hasNext()) {
                                String v47_1;
                                String v44_1;
                                long v1_28 = ((com.google.android.gms.internal.measurement.zzfj) v19_3.next());
                                String v20_3 = v2_10;
                                java.util.BitSet v21_1 = v11_0;
                                if (!this.zzgt().isLoggable(2)) {
                                    v44_1 = v6_0;
                                    v47_1 = v12_1;
                                } else {
                                    v44_1 = v6_0;
                                    v47_1 = v12_1;
                                    this.zzgt().zzjo().zzd("Evaluating filter. audience, filter, event", Integer.valueOf(v13_0), v1_28.zzavm, this.zzgq().zzbt(v1_28.zzavn));
                                    this.zzgt().zzjo().zzg("Filter definition", this.zzjr().zza(v1_28));
                                }
                                if ((v1_28.zzavm != null) && (v1_28.zzavm.intValue() <= 256)) {
                                    if (!v23) {
                                        Integer v42_1 = v10_2;
                                        boolean v46_1 = v15_1;
                                        boolean v15_3 = v16_0;
                                        String v12_3 = v17_1;
                                        java.util.BitSet v11_4 = v20_3;
                                        String v63_1 = v44_1;
                                        boolean v16_1 = v0_4;
                                        boolean v0_1 = v1_28;
                                        Integer v10_3 = v4_5;
                                        if (!v10_3.get(v0_1.zzavm.intValue())) {
                                            Integer v4_14;
                                            long v1_33 = this.zza(v0_1, v16_1, v29, v8_0);
                                            com.google.android.gms.measurement.internal.zzau vtmp270 = this.zzgt().zzjo();
                                            if (v1_33 != 0) {
                                                v4_14 = v1_33;
                                            } else {
                                                v4_14 = "null";
                                            }
                                            vtmp270.zzg("Event filter result", v4_14);
                                            if (v1_33 != 0) {
                                                v11_4.set(v0_1.zzavm.intValue());
                                                if (v1_33.booleanValue()) {
                                                    v10_3.set(v0_1.zzavm.intValue());
                                                }
                                                v4_5 = v10_3;
                                                v2_10 = v11_4;
                                                v17_1 = v12_3;
                                                v0_4 = v16_1;
                                                v11_0 = v21_1;
                                                v10_2 = v42_1;
                                                v12_1 = v47_1;
                                                v6_0 = v63_1;
                                                String v5 = p66;
                                                v16_0 = v15_3;
                                                v15_1 = v46_1;
                                            } else {
                                                v14_1.add(Integer.valueOf(v13_0));
                                                v4_5 = v10_3;
                                                v2_10 = v11_4;
                                                v17_1 = v12_3;
                                                v0_4 = v16_1;
                                                v11_0 = v21_1;
                                                v10_2 = v42_1;
                                                v12_1 = v47_1;
                                                v6_0 = v63_1;
                                                v5 = p66;
                                                v16_0 = v15_3;
                                                v15_1 = v46_1;
                                            }
                                        } else {
                                            this.zzgt().zzjo().zze("Event filter already evaluated true. audience ID, filter ID", Integer.valueOf(v13_0), v0_1.zzavm);
                                            v4_5 = v10_3;
                                            v2_10 = v11_4;
                                            v17_1 = v12_3;
                                            v0_4 = v16_1;
                                            v11_0 = v21_1;
                                            v10_2 = v42_1;
                                            v12_1 = v47_1;
                                            v6_0 = v63_1;
                                            v5 = p66;
                                            v16_0 = v15_3;
                                            v15_1 = v46_1;
                                        }
                                    } else {
                                        if ((v1_28 == 0) || ((v1_28.zzavj == null) || (!v1_28.zzavj.booleanValue()))) {
                                            String v12_4 = 0;
                                        } else {
                                            v12_4 = 1;
                                        }
                                        if ((v1_28 == 0) || ((v1_28.zzavk == null) || (!v1_28.zzavk.booleanValue()))) {
                                            int v22_1 = 0;
                                        } else {
                                            v22_1 = 1;
                                        }
                                        if ((!v4_5.get(v1_28.zzavm.intValue())) || ((v12_4 != null) || (v22_1 != 0))) {
                                            Integer v4_16;
                                            String v5_5 = v1_28;
                                            java.util.BitSet v11_5 = v20_3;
                                            Integer v42_2 = v10_2;
                                            boolean v46_2 = v15_1;
                                            boolean v15_4 = v16_0;
                                            Integer v10_4 = v4_5;
                                            boolean v16_2 = v0_4;
                                            boolean v0_7 = v5_5;
                                            boolean v64 = v17_1;
                                            String v63_2 = v44_1;
                                            long v1_38 = this.zza(v5_5, v0_4, v29, v8_0);
                                            com.google.android.gms.measurement.internal.zzau vtmp295 = this.zzgt().zzjo();
                                            if (v1_38 != 0) {
                                                v4_16 = v1_38;
                                            } else {
                                                v4_16 = "null";
                                            }
                                            vtmp295.zzg("Event filter result", v4_16);
                                            if (v1_38 != 0) {
                                                v11_5.set(v0_7.zzavm.intValue());
                                                if (!v1_38.booleanValue()) {
                                                    v4_5 = v10_4;
                                                    v2_10 = v11_5;
                                                    v0_4 = v16_2;
                                                    v11_0 = v21_1;
                                                    v10_2 = v42_2;
                                                    v12_1 = v47_1;
                                                    v6_0 = v63_2;
                                                    v17_1 = v64;
                                                    v5 = p66;
                                                    v16_0 = v15_4;
                                                    v15_1 = v46_2;
                                                } else {
                                                    v10_4.set(v0_7.zzavm.intValue());
                                                    if (((v12_4 == null) && (v22_1 == 0)) || (v15_4.zzaxd == null)) {
                                                        v4_5 = v10_4;
                                                        v2_10 = v11_5;
                                                        v0_4 = v16_2;
                                                        v11_0 = v21_1;
                                                        v10_2 = v42_2;
                                                        v12_1 = v47_1;
                                                        v6_0 = v63_2;
                                                        v17_1 = v64;
                                                        v5 = p66;
                                                        v16_0 = v15_4;
                                                        v15_1 = v46_2;
                                                    } else {
                                                        if (v22_1 == 0) {
                                                            String v12_5 = v64;
                                                            com.google.android.gms.measurement.internal.zzm.zza(v12_5, v0_7.zzavm.intValue(), v15_4.zzaxd.longValue());
                                                            v4_5 = v10_4;
                                                            v2_10 = v11_5;
                                                            v17_1 = v12_5;
                                                            v0_4 = v16_2;
                                                            v11_0 = v21_1;
                                                            v10_2 = v42_2;
                                                            v12_1 = v47_1;
                                                            v6_0 = v63_2;
                                                            v5 = p66;
                                                            v16_0 = v15_4;
                                                            v15_1 = v46_2;
                                                        } else {
                                                            com.google.android.gms.measurement.internal.zzm.zzb(v7_1, v0_7.zzavm.intValue(), v15_4.zzaxd.longValue());
                                                            v4_5 = v10_4;
                                                            v2_10 = v11_5;
                                                            v0_4 = v16_2;
                                                            v11_0 = v21_1;
                                                            v10_2 = v42_2;
                                                            v12_1 = v47_1;
                                                            v6_0 = v63_2;
                                                            v17_1 = v64;
                                                            v5 = p66;
                                                            v16_0 = v15_4;
                                                            v15_1 = v46_2;
                                                        }
                                                    }
                                                }
                                            } else {
                                                v14_1.add(Integer.valueOf(v13_0));
                                                v4_5 = v10_4;
                                                v2_10 = v11_5;
                                                v0_4 = v16_2;
                                                v11_0 = v21_1;
                                                v10_2 = v42_2;
                                                v12_1 = v47_1;
                                                v6_0 = v63_2;
                                                v17_1 = v64;
                                                v5 = p66;
                                                v16_0 = v15_4;
                                                v15_1 = v46_2;
                                            }
                                        } else {
                                            this.zzgt().zzjo().zze("Event filter already evaluated true and it is not associated with a dynamic audience. audience ID, filter ID", Integer.valueOf(v13_0), v1_28.zzavm);
                                            v2_10 = v20_3;
                                            v11_0 = v21_1;
                                            v6_0 = v44_1;
                                            v12_1 = v47_1;
                                            v5 = p66;
                                        }
                                    }
                                } else {
                                    Integer v42_3 = v10_2;
                                    boolean v46_4 = v15_1;
                                    boolean v15_5 = v16_0;
                                    String v12_7 = v17_1;
                                    java.util.BitSet v11_7 = v20_3;
                                    String v63_3 = v44_1;
                                    boolean v16_3 = v0_4;
                                    Integer v10_6 = v4_5;
                                    this.zzgt().zzjj().zze("Invalid event filter ID. appId, id", com.google.android.gms.measurement.internal.zzas.zzbw(p66), String.valueOf(v1_28.zzavm));
                                    v4_5 = v10_6;
                                    v2_10 = v11_7;
                                    v17_1 = v12_7;
                                    v0_4 = v16_3;
                                    v11_0 = v21_1;
                                    v10_2 = v42_3;
                                    v12_1 = v47_1;
                                    v6_0 = v63_3;
                                    v5 = p66;
                                    v16_0 = v15_5;
                                    v15_1 = v46_4;
                                }
                            }
                            v46_0 = v15_1;
                            v44_0 = v6_0;
                            v42_0 = v10_2;
                            v47_0 = v12_1;
                            v45 = v14_1;
                            v2_15 = v16_0;
                            v12_0 = v18_0;
                            v10_1 = v43_1;
                            v5 = p66;
                        } else {
                            this.zzgt().zzjo().zzg("Skipping failed audience ID", Integer.valueOf(v13_0));
                            v45 = v14_1;
                        }
                    }
                    v43_0 = v10_1;
                    v63_0 = v44_0;
                    v14_0 = v45;
                    v0_0 = v28_1;
                    v1_7 = v33_0;
                    v2_0 = v35_0;
                } else {
                    java.util.BitSet v2_83;
                    this.zzjr();
                    com.google.android.gms.internal.measurement.zzfz[] v3_38 = ((Long) com.google.android.gms.measurement.internal.zzft.zzb(v5_47, "_eid"));
                    if (v3_38 == null) {
                        v2_83 = 0;
                    } else {
                        v2_83 = 1;
                    }
                    Integer v4_39;
                    if (v2_83 == null) {
                        v32 = v4_22;
                        v4_39 = 0;
                    } else {
                        v32 = v4_22;
                        if (!v10_16.equals("_ep")) {
                        } else {
                            v4_39 = 1;
                        }
                    }
                    if (v4_39 == null) {
                        v13_13 = v5_47;
                        v37_0 = v6_8;
                        v34_1 = 1;
                        if (v2_83 == null) {
                        } else {
                            this.zzjr();
                            long v1_102 = Long.valueOf(0);
                            boolean v0_47 = com.google.android.gms.measurement.internal.zzft.zzb(v13_13, "_epc");
                            if (!v0_47) {
                                v0_47 = v1_102;
                            }
                            boolean v0_50;
                            boolean v16_12 = ((Long) v0_47).longValue();
                            if (v16_12 > 0) {
                                v0_50 = v3_38;
                                this.zzjt().zza(p66, v3_38, v16_12, v13_13);
                            } else {
                                this.zzgt().zzjj().zzg("Complex event with zero extra param count. eventName", v10_16);
                                v0_50 = v3_38;
                            }
                            v33_0 = v0_50;
                            v0_4 = v10_16;
                            v29 = v11_24;
                            v28_1 = v13_13;
                            v35_0 = v16_12;
                        }
                    } else {
                        this.zzjr();
                        Integer v10_18 = ((String) com.google.android.gms.measurement.internal.zzft.zzb(v5_47, "_en"));
                        if (!android.text.TextUtils.isEmpty(v10_18)) {
                            if ((v0_0) && ((v1_7 != 0) && (v3_38.longValue() == v1_7.longValue()))) {
                                Integer v4_41 = v0_0;
                                v33_0 = v1_7;
                            } else {
                                java.util.BitSet v2_90 = this.zzjt().zza(v15_0, v3_38);
                                if ((v2_90 != null) && (v2_90.first != null)) {
                                    boolean v0_55 = ((com.google.android.gms.internal.measurement.zzft) v2_90.first);
                                    long v1_108 = ((Long) v2_90.second).longValue();
                                    this.zzjr();
                                    v28_0 = v1_108;
                                    v33_0 = ((Long) com.google.android.gms.measurement.internal.zzft.zzb(v0_55, "_eid"));
                                    v4_41 = v0_55;
                                } else {
                                    v37_0 = v6_8;
                                    this.zzgt().zzjg().zze("Extra parameter without existing main event. eventName, eventId", v10_18, v3_38);
                                    v41 = v8_14;
                                    v43_0 = v9_3;
                                    v46_0 = v12_8;
                                    v47_0 = v21_2;
                                    v14_0 = v22_2;
                                    v42_0 = v24_0;
                                    v63_0 = v25_0;
                                    v2_0 = v28_0;
                                    v4_22 = (v32 + 1);
                                    v13_1 = p67;
                                    v22_2 = v14_0;
                                    v6_8 = v37_0;
                                    v8_14 = v41;
                                    v24_0 = v42_0;
                                    v9_3 = v43_0;
                                    v12_8 = v46_0;
                                    v21_2 = v47_0;
                                    v25_0 = v63_0;
                                    v15_0 = p66;
                                }
                            }
                            long v1_55;
                            com.google.android.gms.internal.measurement.zzfu v28_2 = (v28_0 - 1);
                            if (v28_2 > 0) {
                                boolean v17_7 = v4_41;
                                int v18 = 0;
                                v13_13 = v5_47;
                                v34_1 = 1;
                                v37_0 = v6_8;
                                this.zzjt().zza(p66, v3_38, v28_2, v17_7);
                                v1_55 = v17_7;
                            } else {
                                v1_55 = this.zzjt();
                                v1_55.zzaf();
                                v1_55.zzgt().zzjo().zzg("Clearing complex main event info. appId", v15_0);
                                try {
                                    boolean v0_60 = v1_55.getWritableDatabase();
                                    boolean v17_8 = v4_41;
                                    try {
                                        Integer v4_47 = new String[1];
                                        try {
                                            v4_47[0] = v15_0;
                                            v0_60.execSQL("delete from main_event_params where app_id=?", v4_47);
                                            v13_13 = v5_47;
                                            v37_0 = v6_8;
                                            v1_55 = v17_8;
                                            v34_1 = 1;
                                        } catch (boolean v0_61) {
                                            v1_55.zzgt().zzjg().zzg("Error clearing complex main event", v0_61);
                                            v13_13 = v5_47;
                                            v37_0 = v6_8;
                                            v1_55 = v17_8;
                                            v34_1 = 1;
                                        }
                                    } catch (boolean v0_61) {
                                    }
                                } catch (boolean v0_61) {
                                    v17_8 = v4_41;
                                }
                            }
                            boolean v0_66 = new com.google.android.gms.internal.measurement.zzfu[(v1_55.zzaxc.length + v11_24.length)];
                            java.util.BitSet v2_96 = v1_55.zzaxc;
                            com.google.android.gms.internal.measurement.zzfz[] v3_40 = v2_96.length;
                            Integer v4_19 = 0;
                            String v5_8 = 0;
                            while (v4_19 < v3_40) {
                                String v6_7 = v2_96[v4_19];
                                this.zzjr();
                                boolean v17_4 = v1_55;
                                if (com.google.android.gms.measurement.internal.zzft.zza(v13_13, v6_7.name) == null) {
                                    long v1_54 = (v5_8 + 1);
                                    v0_66[v5_8] = v6_7;
                                    v5_8 = v1_54;
                                }
                                v4_19++;
                                v1_55 = v17_4;
                            }
                            boolean v17_9 = v1_55;
                            if (v5_8 <= null) {
                                this.zzgt().zzjj().zzg("No unique parameters in main event. eventName", v10_18);
                                v0_4 = v10_18;
                                v35_0 = v28_2;
                                v29 = v11_24;
                                v28_1 = v17_9;
                            } else {
                                long v1_113 = v11_24.length;
                                java.util.BitSet v2_48 = 0;
                                while (v2_48 < v1_113) {
                                    Integer v4_18 = (v5_8 + 1);
                                    v0_66[v5_8] = v11_24[v2_48];
                                    v2_48++;
                                    v5_8 = v4_18;
                                }
                                if (v5_8 != v0_66.length) {
                                    v0_66 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v0_66, v5_8));
                                }
                                v35_0 = v28_2;
                                v29 = v0_66;
                                v0_4 = v10_18;
                                v28_1 = v17_9;
                            }
                        } else {
                            this.zzgt().zzjg().zzg("Extra parameter without an event name. eventId", v3_38);
                            v37_0 = v6_8;
                        }
                    }
                }
            }
            v37_1 = v6_8;
            v46_3 = v12_8;
            v47_2 = v21_2;
            v14_3 = v22_2;
            v42_4 = v24_0;
            v63_4 = v25_0;
            v34_0 = 1;
            v1_71 = p68;
        }
        java.util.BitSet v21_7;
        String v44_2;
        if (v1_71 == 0) {
            v21_7 = v47_2;
            v44_2 = v63_4;
        } else {
            boolean v0_41 = new android.support.v4.util.ArrayMap();
            java.util.BitSet v2_70 = v1_71.length;
            com.google.android.gms.internal.measurement.zzfz[] v3_35 = 0;
            while (v3_35 < v2_70) {
                Integer v4_36 = v1_71[v3_35];
                String v5_24 = ((java.util.Map) v0_41.get(v4_36.name));
                if (v5_24 == null) {
                    v5_24 = this.zzjt().zzm(p66, v4_36.name);
                    if (v5_24 == null) {
                        v5_24 = new android.support.v4.util.ArrayMap();
                    }
                    v0_41.put(v4_36.name, v5_24);
                }
                String v6_12 = v5_24.keySet().iterator();
                while (v6_12.hasNext()) {
                    Integer v8_31 = ((Integer) v6_12.next()).intValue();
                    if (!v14_3.contains(Integer.valueOf(v8_31))) {
                        boolean v0_31;
                        java.util.BitSet v2_65;
                        com.google.android.gms.internal.measurement.zzfy v67_3;
                        boolean v17_6;
                        boolean v16_7;
                        long v1_72;
                        Integer v10_8 = v46_3;
                        String v12_9 = v63_4;
                        java.util.BitSet v11_19 = ((java.util.BitSet) v12_9.get(Integer.valueOf(v8_31)));
                        boolean v15_9 = v42_4;
                        long[] v13_11 = ((java.util.BitSet) v15_9.get(Integer.valueOf(v8_31)));
                        if (!v23) {
                            v67_3 = v0_41;
                            v17_6 = v2_70;
                            v2_65 = v37_1;
                            v1_72 = v47_2;
                            v0_31 = 0;
                            v16_7 = 0;
                        } else {
                            v67_3 = v0_41;
                            v1_72 = v47_2;
                            v16_7 = ((java.util.Map) v1_72.get(Integer.valueOf(v8_31)));
                            v17_6 = v2_70;
                            v2_65 = v37_1;
                            v0_31 = ((java.util.Map) v2_65.get(Integer.valueOf(v8_31)));
                        }
                        android.support.v4.util.ArrayMap v9_11;
                        boolean v0_37;
                        if (((com.google.android.gms.internal.measurement.zzfr) v10_8.get(Integer.valueOf(v8_31))) != null) {
                            v9_11 = v0_31;
                            v37_1 = v2_65;
                            v0_37 = v16_7;
                        } else {
                            android.support.v4.util.ArrayMap v9_13 = new com.google.android.gms.internal.measurement.zzfr();
                            v10_8.put(Integer.valueOf(v8_31), v9_13);
                            v9_13.zzawx = Boolean.valueOf(v34_0);
                            v11_19 = new java.util.BitSet();
                            v12_9.put(Integer.valueOf(v8_31), v11_19);
                            v13_11 = new java.util.BitSet();
                            v15_9.put(Integer.valueOf(v8_31), v13_11);
                            if (!v23) {
                                v9_11 = v0_31;
                                v37_1 = v2_65;
                                v0_37 = v16_7;
                            } else {
                                boolean v0_39 = new android.support.v4.util.ArrayMap();
                                v1_72.put(Integer.valueOf(v8_31), v0_39);
                                v9_11 = new android.support.v4.util.ArrayMap();
                                boolean v16_8 = v0_39;
                                v2_65.put(Integer.valueOf(v8_31), v9_11);
                                v37_1 = v2_65;
                                v0_37 = v16_8;
                            }
                        }
                        java.util.BitSet v2_69 = ((java.util.List) v5_24.get(Integer.valueOf(v8_31))).iterator();
                        while (v2_69.hasNext()) {
                            java.util.BitSet v21_8;
                            int v18_4 = v2_69;
                            java.util.BitSet v2_72 = ((com.google.android.gms.internal.measurement.zzfm) v2_69.next());
                            boolean v16_11 = v5_24;
                            java.util.Iterator v19_8 = v6_12;
                            if (!this.zzgt().isLoggable(2)) {
                                v21_8 = v1_72;
                                v46_3 = v10_8;
                                v42_4 = v15_9;
                            } else {
                                v21_8 = v1_72;
                                v42_4 = v15_9;
                                v46_3 = v10_8;
                                this.zzgt().zzjo().zzd("Evaluating filter. audience, filter, property", Integer.valueOf(v8_31), v2_72.zzavm, this.zzgq().zzbv(v2_72.zzawc));
                                this.zzgt().zzjo().zzg("Filter definition", this.zzjr().zza(v2_72));
                            }
                            if ((v2_72.zzavm != null) && (v2_72.zzavm.intValue() <= 256)) {
                                if (!v23) {
                                    String v44_3 = v12_9;
                                    if (!v11_19.get(v2_72.zzavm.intValue())) {
                                        Integer v10_11;
                                        long v1_82 = this.zza(v2_72, v4_36);
                                        String v5_34 = this.zzgt().zzjo();
                                        if (v1_82 != 0) {
                                            v10_11 = v1_82;
                                        } else {
                                            v10_11 = "null";
                                        }
                                        v5_34.zzg("Property filter result", v10_11);
                                        if (v1_82 != 0) {
                                            v13_11.set(v2_72.zzavm.intValue());
                                            if (v1_82.booleanValue()) {
                                                v11_19.set(v2_72.zzavm.intValue());
                                            }
                                            v5_24 = v16_11;
                                            v2_69 = v18_4;
                                            v6_12 = v19_8;
                                            v1_72 = v21_8;
                                            v15_9 = v42_4;
                                            v12_9 = v44_3;
                                            v10_8 = v46_3;
                                        } else {
                                            v14_3.add(Integer.valueOf(v8_31));
                                            v5_24 = v16_11;
                                            v2_69 = v18_4;
                                            v6_12 = v19_8;
                                            v1_72 = v21_8;
                                            v15_9 = v42_4;
                                            v12_9 = v44_3;
                                            v10_8 = v46_3;
                                        }
                                    } else {
                                        this.zzgt().zzjo().zze("Property filter already evaluated true. audience ID, filter ID", Integer.valueOf(v8_31), v2_72.zzavm);
                                        v5_24 = v16_11;
                                        v2_69 = v18_4;
                                        v6_12 = v19_8;
                                        v1_72 = v21_8;
                                        v15_9 = v42_4;
                                        v12_9 = v44_3;
                                        v10_8 = v46_3;
                                    }
                                } else {
                                    if ((v2_72 == null) || ((v2_72.zzavj == null) || (!v2_72.zzavj.booleanValue()))) {
                                        long v1_92 = 0;
                                    } else {
                                        v1_92 = 1;
                                    }
                                    if ((v2_72 == null) || ((v2_72.zzavk == null) || (!v2_72.zzavk.booleanValue()))) {
                                        String v6_22 = 0;
                                    } else {
                                        v6_22 = 1;
                                    }
                                    if ((!v11_19.get(v2_72.zzavm.intValue())) || ((v1_92 != 0) || (v6_22 != null))) {
                                        String v44_4;
                                        String v12_10;
                                        Integer v10_12 = v37_1;
                                        boolean v15_11 = this.zza(v2_72, v4_36);
                                        String v5_38 = this.zzgt().zzjo();
                                        v37_1 = v10_12;
                                        if (v15_11) {
                                            v44_4 = v12_9;
                                            v12_10 = v15_11;
                                        } else {
                                            v44_4 = v12_9;
                                            v12_10 = "null";
                                        }
                                        v5_38.zzg("Property filter result", v12_10);
                                        if (v15_11) {
                                            v13_11.set(v2_72.zzavm.intValue());
                                            v11_19.set(v2_72.zzavm.intValue(), v15_11.booleanValue());
                                            if (((!v15_11.booleanValue()) || ((v1_92 == 0) && (v6_22 == null))) || (v4_36.zzayw == null)) {
                                                v5_24 = v16_11;
                                                v2_69 = v18_4;
                                                v6_12 = v19_8;
                                                v1_72 = v21_8;
                                                v15_9 = v42_4;
                                                v12_9 = v44_4;
                                                v10_8 = v46_3;
                                            } else {
                                                if (v6_22 == null) {
                                                    com.google.android.gms.measurement.internal.zzm.zza(v0_37, v2_72.zzavm.intValue(), v4_36.zzayw.longValue());
                                                    v5_24 = v16_11;
                                                    v2_69 = v18_4;
                                                    v6_12 = v19_8;
                                                    v1_72 = v21_8;
                                                    v15_9 = v42_4;
                                                    v12_9 = v44_4;
                                                    v10_8 = v46_3;
                                                } else {
                                                    com.google.android.gms.measurement.internal.zzm.zzb(v9_11, v2_72.zzavm.intValue(), v4_36.zzayw.longValue());
                                                    v5_24 = v16_11;
                                                    v2_69 = v18_4;
                                                    v6_12 = v19_8;
                                                    v1_72 = v21_8;
                                                    v15_9 = v42_4;
                                                    v12_9 = v44_4;
                                                    v10_8 = v46_3;
                                                }
                                            }
                                        } else {
                                            v14_3.add(Integer.valueOf(v8_31));
                                            v5_24 = v16_11;
                                            v2_69 = v18_4;
                                            v6_12 = v19_8;
                                            v1_72 = v21_8;
                                            v15_9 = v42_4;
                                            v12_9 = v44_4;
                                            v10_8 = v46_3;
                                        }
                                    } else {
                                        this.zzgt().zzjo().zze("Property filter already evaluated true and it is not associated with a dynamic audience. audience ID, filter ID", Integer.valueOf(v8_31), v2_72.zzavm);
                                        v5_24 = v16_11;
                                        v2_69 = v18_4;
                                        v6_12 = v19_8;
                                        v1_72 = v21_8;
                                        v15_9 = v42_4;
                                        v10_8 = v46_3;
                                    }
                                }
                            } else {
                                String v44_5 = v12_9;
                                this.zzgt().zzjj().zze("Invalid property filter ID. appId, id", com.google.android.gms.measurement.internal.zzas.zzbw(p66), String.valueOf(v2_72.zzavm));
                                v14_3.add(Integer.valueOf(v8_31));
                                v0_41 = v67_3;
                                v5_24 = v16_11;
                                v2_70 = v17_6;
                                v6_12 = v19_8;
                                v47_2 = v21_8;
                                v63_4 = v44_5;
                                String v7 = p66;
                            }
                        }
                        v0_41 = v67_3;
                        v47_2 = v1_72;
                        v46_3 = v10_8;
                        v63_4 = v12_9;
                        v42_4 = v15_9;
                        v2_70 = v17_6;
                        v7 = p66;
                    } else {
                        this.zzgt().zzjo().zzg("Skipping failed audience ID", Integer.valueOf(v8_31));
                    }
                }
                boolean v17 = v2_70;
                String v44 = v63_4;
                v3_35++;
                v1_71 = p68;
            }
            v21_7 = v47_2;
            v44_2 = v63_4;
        }
        long v1_105 = new com.google.android.gms.internal.measurement.zzfr[v44_2.size()];
        java.util.BitSet v2_58 = v44_2.keySet().iterator();
        com.google.android.gms.internal.measurement.zzfz[] v3_34 = 0;
        while (v2_58.hasNext()) {
            boolean v0_74 = ((Integer) v2_58.next()).intValue();
            if (!v14_3.contains(Integer.valueOf(v0_74))) {
                String v5_0 = v46_3;
                Integer v4_9 = ((com.google.android.gms.internal.measurement.zzfr) v5_0.get(Integer.valueOf(v0_74)));
                if (v4_9 == null) {
                    v4_9 = new com.google.android.gms.internal.measurement.zzfr();
                }
                java.util.BitSet v11_6;
                String v12_6;
                com.google.android.gms.internal.measurement.zzfy v67_1;
                String v6_1 = (v3_34 + 1);
                v1_105[v3_34] = v4_9;
                v4_9.zzavg = Integer.valueOf(v0_74);
                v4_9.zzawv = new com.google.android.gms.internal.measurement.zzfx();
                android.support.v4.util.ArrayMap v9_2 = v44_2;
                v4_9.zzawv.zzayq = com.google.android.gms.measurement.internal.zzft.zza(((java.util.BitSet) v9_2.get(Integer.valueOf(v0_74))));
                Integer v10_5 = v42_4;
                v4_9.zzawv.zzayp = com.google.android.gms.measurement.internal.zzft.zza(((java.util.BitSet) v10_5.get(Integer.valueOf(v0_74))));
                if (!v23) {
                    v67_1 = v2_58;
                    v46_3 = v5_0;
                    v11_6 = v21_7;
                    v12_6 = v37_1;
                } else {
                    boolean v15_7;
                    v11_6 = v21_7;
                    v4_9.zzawv.zzayr = com.google.android.gms.measurement.internal.zzm.zzb(((java.util.Map) v11_6.get(Integer.valueOf(v0_74))));
                    com.google.android.gms.internal.measurement.zzfz[] v3_17 = v4_9.zzawv;
                    v12_6 = v37_1;
                    Integer v8_18 = ((java.util.Map) v12_6.get(Integer.valueOf(v0_74)));
                    if (v8_18 != null) {
                        v15_7 = new com.google.android.gms.internal.measurement.zzfy[v8_18.size()];
                        boolean v16_5 = v8_18.keySet().iterator();
                        boolean v17_5 = 0;
                        while (v16_5.hasNext()) {
                            boolean v46_5;
                            long[] v13_3 = ((Integer) v16_5.next());
                            com.google.android.gms.internal.measurement.zzfy v67_2 = v2_58;
                            java.util.BitSet v2_57 = new com.google.android.gms.internal.measurement.zzfy();
                            v2_57.zzawz = v13_3;
                            long[] v13_5 = ((java.util.List) v8_18.get(v13_3));
                            if (v13_5 == null) {
                                v46_5 = v5_0;
                            } else {
                                java.util.Collections.sort(v13_5);
                                v46_5 = v5_0;
                                String v5_15 = new long[v13_5.size()];
                                long[] v13_6 = v13_5.iterator();
                                int v18_3 = 0;
                                while (v13_6.hasNext()) {
                                    String v20_5 = (v18_3 + 1);
                                    v5_15[v18_3] = ((Long) v13_6.next()).longValue();
                                    v18_3 = v20_5;
                                }
                                v2_57.zzayu = v5_15;
                            }
                            String v5_16 = (v17_5 + 1);
                            v15_7[v17_5] = v2_57;
                            v2_58 = v67_2;
                            v17_5 = v5_16;
                            v5_0 = v46_5;
                        }
                        v67_1 = v2_58;
                        v46_3 = v5_0;
                    } else {
                        Integer v8_26 = new com.google.android.gms.internal.measurement.zzfy[0];
                        v67_1 = v2_58;
                        v46_3 = v5_0;
                        v15_7 = v8_26;
                    }
                    v3_17.zzays = v15_7;
                }
                java.util.BitSet v2_59 = this.zzjt();
                com.google.android.gms.internal.measurement.zzfz[] v3_27 = v4_9.zzawv;
                v2_59.zzcl();
                v2_59.zzaf();
                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p66);
                com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_27);
                try {
                    Integer v4_31 = new byte[v3_27.zzvx()];
                    try {
                        String v5_18 = com.google.android.gms.internal.measurement.zzya.zzk(v4_31, 0, v4_31.length);
                        v3_27.zza(v5_18);
                        v5_18.zzza();
                        com.google.android.gms.internal.measurement.zzfz[] v3_29 = new android.content.ContentValues();
                        v3_29.put("app_id", p66);
                        v3_29.put("audience_id", Integer.valueOf(v0_74));
                        v3_29.put("current_results", v4_31);
                        try {
                            try {
                                if (v2_59.getWritableDatabase().insertWithOnConflict("audience_filter_values", 0, v3_29, 5) != -1) {
                                    v2_58 = v67_1;
                                    v3_34 = v6_1;
                                    v44_2 = v9_2;
                                    v42_4 = v10_5;
                                    v21_7 = v11_6;
                                    v37_1 = v12_6;
                                } else {
                                    v2_59.zzgt().zzjg().zzg("Failed to insert filter results (got -1). appId", com.google.android.gms.measurement.internal.zzas.zzbw(p66));
                                }
                            } catch (boolean v0_27) {
                                v2_59.zzgt().zzjg().zze("Error storing filter results. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p66), v0_27);
                            }
                        } catch (boolean v0_27) {
                        }
                    } catch (boolean v0_23) {
                        boolean v15 = 0;
                        v2_59.zzgt().zzjg().zze("Configuration loss. Failed to serialize filter results. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p66), v0_23);
                    }
                } catch (boolean v0_23) {
                }
            }
        }
        return ((com.google.android.gms.internal.measurement.zzfr[]) java.util.Arrays.copyOf(v1_105, v3_34));
    }

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


    private final boolean zzd(String p46, long p47)
    {
        String v1_0 = this;
        this.zzjt().beginTransaction();
        try {
            com.google.android.gms.measurement.internal.zzac v3_10 = 0;
            int v2_1 = new com.google.android.gms.measurement.internal.zzfn$zza(this, 0);
            Object v4_28 = this.zzjt();
            String v5_61 = this.zzaue;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_1);
            v4_28.zzaf();
            v4_28.zzcl();
            try {
                int v7_2;
                String v23_1;
                Long v15_3 = v4_28.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        int v13_46;
                        com.google.android.gms.measurement.internal.zzac v3_79 = v5_61 cmp -1;
                        if (v3_79 == null) {
                            v13_46 = new String[] {0});
                        } else {
                            int v7_72 = new String[2];
                            v7_72[0] = 0;
                            v7_72[1] = String.valueOf(v5_61);
                            v13_46 = v7_72;
                        }
                        com.google.android.gms.measurement.internal.zzac v3_84;
                        if (v3_79 == null) {
                            v3_84 = "";
                        } else {
                            v3_84 = " and rowid <= ?";
                        }
                        boolean v14_16 = new StringBuilder((String.valueOf(v3_84).length() + 84));
                        v14_16.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_16.append(v3_84);
                        v14_16.append(" order by rowid limit 1;");
                        v3_10 = v15_3.rawQuery(v14_16.toString(), v13_46);
                        if (v3_10.moveToFirst()) {
                            int v13_51 = v3_10.getString(0);
                            v3_10.close();
                            v23_1 = v3_10;
                            v7_2 = v13_51;
                            v3_10 = 0;
                            try {
                                int v13_14 = new String[2];
                                v13_14[0] = v3_10;
                                v13_14[1] = v7_2;
                                String v25_2 = v15_3;
                                Long v15_2 = v15_3.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_14, 0, 0, "rowid", "2");
                                try {
                                    if (v15_2.moveToFirst()) {
                                        int v13_28 = v15_2.getBlob(0);
                                        int v13_29 = com.google.android.gms.internal.measurement.zzxz.zzj(v13_28, 0, v13_28.length);
                                        boolean v14_10 = new com.google.android.gms.internal.measurement.zzfw();
                                        try {
                                            v14_10.zza(v13_29);
                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                            long v6_3 = v15_2;
                                            v4_28.zzgt().zzjg().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10), v0_3);
                                            if (v6_3 == 0) {
                                                com.google.android.gms.measurement.internal.zzac v3_83;
                                                if (v2_1.zzauk == null) {
                                                    v3_83 = 1;
                                                } else {
                                                    if (!v2_1.zzauk.isEmpty()) {
                                                        v3_83 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_83 != null) {
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.measurement.internal.zzac v3_9 = v2_1.zzaui;
                                                    Object v4_4 = new com.google.android.gms.internal.measurement.zzft[v2_1.zzauk.size()];
                                                    v3_9.zzaxk = v4_4;
                                                    Object v4_7 = this.zzada.zzgv().zzau(v3_9.zztt);
                                                    String v5_13 = this.zzada.zzgv().zze(v2_1.zzaui.zztt, com.google.android.gms.measurement.internal.zzai.zzalc);
                                                    Boolean v8_14 = 0;
                                                    Object v9_7 = 0;
                                                    boolean v10_55 = 0;
                                                    Long v12_66 = 0;
                                                    int v13_34 = 0;
                                                    boolean v14_12 = 0;
                                                    while (v10_55 < v2_1.zzauk.size()) {
                                                        int v18_0;
                                                        String v23_2;
                                                        long v6_17 = ((com.google.android.gms.internal.measurement.zzft) v2_1.zzauk.get(v10_55));
                                                        boolean v21_0 = v12_66;
                                                        if (!this.zzls().zzo(v2_1.zzaui.zztt, v6_17.name)) {
                                                            int v26_1;
                                                            long v29_0;
                                                            v23_2 = v10_55;
                                                            String v25_1 = v13_34;
                                                            int v7_21 = this.zzls().zzp(v2_1.zzaui.zztt, v6_17.name);
                                                            if (v7_21 != 0) {
                                                                if (v6_17.zzaxc == null) {
                                                                    Long v12_20 = new com.google.android.gms.internal.measurement.zzfu[0];
                                                                    v6_17.zzaxc = v12_20;
                                                                }
                                                                int v11_12 = v6_17.zzaxc;
                                                                Long v12_21 = v11_12.length;
                                                                int v13_9 = 0;
                                                                int v26_2 = 0;
                                                                long v27_1 = 0;
                                                                while (v13_9 < v12_21) {
                                                                    boolean v10_46 = v11_12[v13_9];
                                                                    long v29_4 = v11_12;
                                                                    com.google.android.gms.measurement.internal.zzac v30_2 = v12_21;
                                                                    if (!"_c".equals(v10_46.name)) {
                                                                        if ("_r".equals(v10_46.name)) {
                                                                            v10_46.zzaxg = Long.valueOf(1);
                                                                            v27_1 = 1;
                                                                        }
                                                                    } else {
                                                                        v10_46.zzaxg = Long.valueOf(1);
                                                                        v26_2 = 1;
                                                                    }
                                                                    v13_9++;
                                                                    v11_12 = v29_4;
                                                                    v12_21 = v30_2;
                                                                }
                                                                if ((v26_2 == 0) && (v7_21 != 0)) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as conversion", this.zzada.zzgq().zzbt(v6_17.name));
                                                                    boolean v10_9 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_17.zzaxc, (v6_17.zzaxc.length + 1)));
                                                                    int v11_18 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v11_18.name = "_c";
                                                                    v11_18.zzaxg = Long.valueOf(1);
                                                                    v10_9[(v10_9.length - 1)] = v11_18;
                                                                    v6_17.zzaxc = v10_9;
                                                                }
                                                                if (v27_1 == 0) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as real-time", this.zzada.zzgq().zzbt(v6_17.name));
                                                                    boolean v10_15 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_17.zzaxc, (v6_17.zzaxc.length + 1)));
                                                                    int v11_24 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v11_24.name = "_r";
                                                                    v11_24.zzaxg = Long.valueOf(1);
                                                                    v10_15[(v10_15.length - 1)] = v11_24;
                                                                    v6_17.zzaxc = v10_15;
                                                                }
                                                                Long v12_42;
                                                                if (this.zzjt().zza(this.zzly(), v2_1.zzaui.zztt, 0, 0, 0, 0, 1).zzahl <= ((long) this.zzada.zzgv().zzaq(v2_1.zzaui.zztt))) {
                                                                    v26_1 = v3_9;
                                                                    v12_42 = 1;
                                                                } else {
                                                                    boolean v10_20 = 0;
                                                                    while (v10_20 < v6_17.zzaxc.length) {
                                                                        if (!"_r".equals(v6_17.zzaxc[v10_20].name)) {
                                                                            v10_20++;
                                                                        } else {
                                                                            int v11_32 = new com.google.android.gms.internal.measurement.zzfu[(v6_17.zzaxc.length - 1)];
                                                                            if (v10_20) {
                                                                                System.arraycopy(v6_17.zzaxc, 0, v11_32, 0, v10_20);
                                                                            }
                                                                            if (v10_20 >= v11_32.length) {
                                                                                v26_1 = v3_9;
                                                                            } else {
                                                                                v26_1 = v3_9;
                                                                                System.arraycopy(v6_17.zzaxc, (v10_20 + 1), v11_32, v10_20, (v11_32.length - v10_20));
                                                                            }
                                                                            v6_17.zzaxc = v11_32;
                                                                        }
                                                                        v12_42 = v21_0;
                                                                    }
                                                                    v26_1 = v3_9;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.zzfx.zzct(v6_17.name)) || (v7_21 == 0)) {
                                                                    v18_0 = v12_42;
                                                                    v29_0 = v14_12;
                                                                } else {
                                                                    v18_0 = v12_42;
                                                                    if (this.zzjt().zza(this.zzly(), v2_1.zzaui.zztt, 0, 0, 1, 0, 0).zzahj <= ((long) this.zzada.zzgv().zzb(v2_1.zzaui.zztt, com.google.android.gms.measurement.internal.zzai.zzajh))) {
                                                                        v29_0 = v14_12;
                                                                    } else {
                                                                        this.zzada.zzgt().zzjj().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                        com.google.android.gms.measurement.internal.zzac v3_25 = v6_17.zzaxc;
                                                                        boolean v10_24 = v3_25.length;
                                                                        int v11_36 = 0;
                                                                        Long v12_52 = 0;
                                                                        int v13_23 = 0;
                                                                        while (v11_36 < v10_24) {
                                                                            boolean v10_43 = v3_25[v11_36];
                                                                            if (!"_c".equals(v10_43.name)) {
                                                                                if ("_err".equals(v10_43.name)) {
                                                                                    v12_52 = 1;
                                                                                }
                                                                            } else {
                                                                                v13_23 = v10_43;
                                                                            }
                                                                            v11_36++;
                                                                        }
                                                                        v29_0 = v14_12;
                                                                        if ((v12_52 == null) || (v13_23 == 0)) {
                                                                            if (v13_23 == 0) {
                                                                                this.zzada.zzgt().zzjg().zzg("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                            } else {
                                                                                v13_23.name = "_err";
                                                                                v13_23.zzaxg = Long.valueOf(10);
                                                                            }
                                                                        } else {
                                                                            com.google.android.gms.measurement.internal.zzac v3_31 = v6_17.zzaxc;
                                                                            int v11_40 = new com.google.android.gms.internal.measurement.zzfu[1];
                                                                            v11_40[0] = v13_23;
                                                                            v6_17.zzaxc = ((com.google.android.gms.internal.measurement.zzfu[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v3_31, v11_40));
                                                                        }
                                                                    }
                                                                }
                                                            } else {
                                                                int v11_6;
                                                                this.zzjr();
                                                                int v11_4 = v6_17.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v11_4);
                                                                Long v12_16 = v11_4.hashCode();
                                                                if (v12_16 == 94660) {
                                                                    if (!v11_4.equals("_in")) {
                                                                        v11_6 = -1;
                                                                    } else {
                                                                        v11_6 = 0;
                                                                    }
                                                                } else {
                                                                    if (v12_16 == 95025) {
                                                                        if (!v11_4.equals("_ug")) {
                                                                        } else {
                                                                            v11_6 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v12_16 == 95027) {
                                                                            if (!v11_4.equals("_ui")) {
                                                                            } else {
                                                                                v11_6 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v11_9;
                                                                switch (v11_6) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v11_9 = 1;
                                                                    default:
                                                                        v11_9 = 0;
                                                                }
                                                                if (v11_9 == 0) {
                                                                    v26_1 = v3_9;
                                                                    v29_0 = v14_12;
                                                                    v18_0 = v21_0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzada.zzgv().zzbd(v2_1.zzaui.zztt)) || (v7_21 == 0)) {
                                                            } else {
                                                                com.google.android.gms.measurement.internal.zzac v3_37 = v6_17.zzaxc;
                                                                int v7_22 = 0;
                                                                boolean v10_31 = -1;
                                                                int v11_41 = -1;
                                                                while (v7_22 < v3_37.length) {
                                                                    if (!"value".equals(v3_37[v7_22].name)) {
                                                                        if ("currency".equals(v3_37[v7_22].name)) {
                                                                            v11_41 = v7_22;
                                                                        }
                                                                    } else {
                                                                        v10_31 = v7_22;
                                                                    }
                                                                    v7_22++;
                                                                }
                                                                if (v10_31 == -1) {
                                                                } else {
                                                                    if ((v3_37[v10_31].zzaxg != null) || (v3_37[v10_31].zzaup != null)) {
                                                                        int v7_31;
                                                                        if (v11_41 != -1) {
                                                                            int v7_30 = v3_37[v11_41].zzamn;
                                                                            if (v7_30 == 0) {
                                                                            } else {
                                                                                if (v7_30.length() == 3) {
                                                                                    int v11_44 = 0;
                                                                                    while (v11_44 < v7_30.length()) {
                                                                                        int v13_25 = v7_30.codePointAt(v11_44);
                                                                                        if (Character.isLetter(v13_25)) {
                                                                                            v11_44 += Character.charCount(v13_25);
                                                                                        } else {
                                                                                            v7_31 = 1;
                                                                                            if (v7_31 != 0) {
                                                                                                this.zzada.zzgt().zzjl().zzby("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                                v3_37 = com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(v3_37, v10_31), "_c"), 19, "currency");
                                                                                            }
                                                                                            v6_17.zzaxc = v3_37;
                                                                                            if (this.zzada.zzgv().zze(v2_1.zzaui.zztt, com.google.android.gms.measurement.internal.zzai.zzalb)) {
                                                                                                if (!"_e".equals(v6_17.name)) {
                                                                                                    if ("_vs".equals(v6_17.name)) {
                                                                                                        this.zzjr();
                                                                                                        if (com.google.android.gms.measurement.internal.zzft.zza(v6_17, "_et") == null) {
                                                                                                            if ((v8_14 == null) || ((Math.abs((v8_14.zzaxd.longValue() - v6_17.zzaxd.longValue())) > 1000) || (!this.zza(v8_14, v6_17)))) {
                                                                                                                v9_7 = v6_17;
                                                                                                            } else {
                                                                                                                v8_14 = 0;
                                                                                                                v9_7 = 0;
                                                                                                            }
                                                                                                        }
                                                                                                    }
                                                                                                } else {
                                                                                                    this.zzjr();
                                                                                                    if (com.google.android.gms.measurement.internal.zzft.zza(v6_17, "_fr") == null) {
                                                                                                        if ((v9_7 == null) || ((Math.abs((v9_7.zzaxd.longValue() - v6_17.zzaxd.longValue())) > 1000) || (!this.zza(v6_17, v9_7)))) {
                                                                                                            v8_14 = v6_17;
                                                                                                        } else {
                                                                                                            v8_14 = 0;
                                                                                                            v9_7 = 0;
                                                                                                        }
                                                                                                    }
                                                                                                }
                                                                                            }
                                                                                            if ((v4_7 == null) || ((v5_13 != null) || (!"_e".equals(v6_17.name)))) {
                                                                                                v3_9 = v26_1;
                                                                                            } else {
                                                                                                if (v6_17.zzaxc != null) {
                                                                                                    if (v6_17.zzaxc.length != 0) {
                                                                                                        this.zzjr();
                                                                                                        com.google.android.gms.measurement.internal.zzac v3_68 = ((Long) com.google.android.gms.measurement.internal.zzft.zzb(v6_17, "_et"));
                                                                                                        if (v3_68 != null) {
                                                                                                            v29_0 += v3_68.longValue();
                                                                                                            v3_9 = v26_1;
                                                                                                            v13_34 = (v25_1 + 1);
                                                                                                            v3_9.zzaxk[v25_1] = v6_17;
                                                                                                            v14_12 = v29_0;
                                                                                                            v10_55 = (v23_2 + 1);
                                                                                                            v12_66 = v18_0;
                                                                                                        } else {
                                                                                                            this.zzada.zzgt().zzjj().zzg("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                                                        }
                                                                                                    } else {
                                                                                                    }
                                                                                                }
                                                                                                this.zzada.zzgt().zzjj().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                    v7_31 = 0;
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v7_31 = 1;
                                                                        } else {
                                                                            v7_31 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzada.zzgt().zzjl().zzby("Value must be specified with a numeric type.");
                                                                        v3_37 = com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(v3_37, v10_31), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            int v7_62;
                                                            v23_2 = v10_55;
                                                            String v25_3 = v13_34;
                                                            this.zzada.zzgt().zzjj().zze("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt), this.zzada.zzgq().zzbt(v6_17.name));
                                                            if (this.zzls().zzcl(v2_1.zzaui.zztt)) {
                                                                v7_62 = 1;
                                                            } else {
                                                                if (!this.zzls().zzcm(v2_1.zzaui.zztt)) {
                                                                    v7_62 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v7_62 == 0) && (!"_err".equals(v6_17.name))) {
                                                                this.zzada.zzgr().zza(v2_1.zzaui.zztt, 11, "_ev", v6_17.name, 0);
                                                            }
                                                            v18_0 = v21_0;
                                                            v13_34 = v25_3;
                                                        }
                                                    }
                                                    int v13_5;
                                                    boolean v21_4 = v12_66;
                                                    String v25_4 = v13_34;
                                                    long v29_6 = v14_12;
                                                    if (v5_13 == null) {
                                                        v13_5 = v25_4;
                                                    } else {
                                                        v13_5 = v25_4;
                                                        boolean v14_5 = v29_6;
                                                        String v5_0 = 0;
                                                        while (v5_0 < v13_5) {
                                                            long v6_12;
                                                            long v6_9 = v3_9.zzaxk[v5_0];
                                                            if (!"_e".equals(v6_9.name)) {
                                                                if (v4_7 != null) {
                                                                    this.zzjr();
                                                                    long v6_10 = com.google.android.gms.measurement.internal.zzft.zza(v6_9, "_et");
                                                                    if (v6_10 != 0) {
                                                                        long v6_11 = v6_10.zzaxg;
                                                                        if ((v6_11 != 0) && (v6_11.longValue() > 0)) {
                                                                            v14_5 += v6_11.longValue();
                                                                            v6_12 = 1;
                                                                            v5_0 += v6_12;
                                                                        }
                                                                    }
                                                                }
                                                                v6_12 = 1;
                                                            } else {
                                                                this.zzjr();
                                                                if (com.google.android.gms.measurement.internal.zzft.zza(v6_9, "_fr") == null) {
                                                                } else {
                                                                    System.arraycopy(v3_9.zzaxk, (v5_0 + 1), v3_9.zzaxk, v5_0, ((v13_5 - v5_0) - 1));
                                                                    v13_5--;
                                                                    v5_0--;
                                                                    v6_12 = 1;
                                                                }
                                                            }
                                                        }
                                                        v29_6 = v14_5;
                                                    }
                                                    if (v13_5 < v2_1.zzauk.size()) {
                                                        v3_9.zzaxk = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v3_9.zzaxk, v13_5));
                                                    }
                                                    if (v4_7 != null) {
                                                        Object v4_12;
                                                        Object v4_9 = this.zzjt().zzi(v3_9.zztt, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.measurement.internal.zzfw;
                                                            v4_12(v3_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf(v29_6));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                String v5_21 = new com.google.android.gms.measurement.internal.zzfw;
                                                                v5_21(v3_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v29_6)));
                                                                v4_12 = v5_21;
                                                            } else {
                                                            }
                                                        }
                                                        String v5_24 = new com.google.android.gms.internal.measurement.zzfz();
                                                        v5_24.name = "_lte";
                                                        v5_24.zzayw = Long.valueOf(this.zzada.zzbx().currentTimeMillis());
                                                        v5_24.zzaxg = ((Long) v4_12.value);
                                                        long v6_48 = 0;
                                                        while (v6_48 < v3_9.zzaxl.length) {
                                                            if (!"_lte".equals(v3_9.zzaxl[v6_48].name)) {
                                                                v6_48++;
                                                            } else {
                                                                v3_9.zzaxl[v6_48] = v5_24;
                                                                long v6_49 = 1;
                                                            }
                                                            String v5_25;
                                                            if (v6_49 != 0) {
                                                                v5_25 = 0;
                                                            } else {
                                                                v3_9.zzaxl = ((com.google.android.gms.internal.measurement.zzfz[]) java.util.Arrays.copyOf(v3_9.zzaxl, (v3_9.zzaxl.length + 1)));
                                                                v3_9.zzaxl[(v2_1.zzaui.zzaxl.length - 1)] = v5_24;
                                                                v5_25 = 0;
                                                            }
                                                            if (v29_6 > v5_25) {
                                                                this.zzjt().zza(v4_12);
                                                                this.zzada.zzgt().zzjn().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_49 = 0;
                                                    }
                                                    String v1_7;
                                                    Object v9_9;
                                                    Object v4_14 = v3_9.zztt;
                                                    String v5_30 = v3_9.zzaxl;
                                                    long v6_55 = v3_9.zzaxk;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v4_14);
                                                    v3_9.zzayc = this.zzjs().zza(v4_14, v6_55, v5_30);
                                                    try {
                                                        if (!this.zzada.zzgv().zzat(v2_1.zzaui.zztt)) {
                                                            v9_9 = v2_1;
                                                            v1_7 = v3_9;
                                                        } else {
                                                            Object v4_20 = new java.util.HashMap();
                                                            String v5_35 = new com.google.android.gms.internal.measurement.zzft[v3_9.zzaxk.length];
                                                            long v6_7 = this.zzada.zzgr().zzmk();
                                                            int v7_10 = v3_9.zzaxk;
                                                            Boolean v8_10 = v7_10.length;
                                                            Object v9_3 = 0;
                                                            boolean v10_0 = 0;
                                                            while (v9_3 < v8_10) {
                                                                String v25_0;
                                                                String v23_0;
                                                                int v26_0;
                                                                Object v9_1;
                                                                long v27_0;
                                                                int v11_55 = v7_10[v9_3];
                                                                if (!v11_55.name.equals("_ep")) {
                                                                    com.google.android.gms.measurement.internal.zzac v3_122;
                                                                    long v28_1;
                                                                    Long v12_81 = this.zzls().zzck(v2_1.zzaui.zztt);
                                                                    v1_0.zzada.zzgr();
                                                                    boolean v14_21 = com.google.android.gms.measurement.internal.zzfx.zzc(v11_55.zzaxd.longValue(), v12_81);
                                                                    v23_0 = v7_10;
                                                                    v25_0 = v8_10;
                                                                    Boolean v8_24 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v8_24 != null)) {
                                                                        v26_0 = v3_9;
                                                                        com.google.android.gms.measurement.internal.zzac v3_121 = v11_55.zzaxc;
                                                                        v27_0 = v9_3;
                                                                        Object v9_10 = v3_121.length;
                                                                        v28_1 = v12_81;
                                                                        Long v12_82 = 0;
                                                                        while (v12_82 < v9_10) {
                                                                            int v13_57 = v3_121[v12_82];
                                                                            if (!"_dbg".equals(v13_57.name)) {
                                                                                v12_82++;
                                                                            } else {
                                                                                if (((!(v8_24 instanceof Long)) || (!v8_24.equals(v13_57.zzaxg))) && (((!(v8_24 instanceof String)) || (!v8_24.equals(v13_57.zzamn))) && ((!(v8_24 instanceof Double)) || (!v8_24.equals(v13_57.zzaup))))) {
                                                                                    v3_122 = 0;
                                                                                } else {
                                                                                    v3_122 = 1;
                                                                                }
                                                                            }
                                                                        }
                                                                        v3_122 = 0;
                                                                    } else {
                                                                        v26_0 = v3_9;
                                                                        v27_0 = v9_3;
                                                                        v28_1 = v12_81;
                                                                        v3_122 = 0;
                                                                    }
                                                                    Long v12_83;
                                                                    if (v3_122 != null) {
                                                                        v12_83 = 1;
                                                                    } else {
                                                                        v12_83 = this.zzls().zzq(v2_1.zzaui.zztt, v11_55.name);
                                                                    }
                                                                    if (v12_83 > null) {
                                                                        com.google.android.gms.measurement.internal.zzac v3_1 = ((com.google.android.gms.measurement.internal.zzac) v4_20.get(v11_55.name));
                                                                        if (v3_1 == null) {
                                                                            v3_1 = this.zzjt().zzg(v2_1.zzaui.zztt, v11_55.name);
                                                                            if (v3_1 == null) {
                                                                                v1_0.zzada.zzgt().zzjj().zze("Event being bundled has no eventAggregate. appId, eventName", v2_1.zzaui.zztt, v11_55.name);
                                                                                v3_1 = new com.google.android.gms.measurement.internal.zzac;
                                                                                v3_1(v2_1.zzaui.zztt, v11_55.name, 1, 1, v11_55.zzaxd.longValue(), 0, 0, 0, 0, 0);
                                                                            }
                                                                        }
                                                                        Boolean v8_30;
                                                                        this.zzjr();
                                                                        int v7_122 = ((Long) com.google.android.gms.measurement.internal.zzft.zzb(v11_55, "_eid"));
                                                                        if (v7_122 == 0) {
                                                                            v8_30 = 0;
                                                                        } else {
                                                                            v8_30 = 1;
                                                                        }
                                                                        Boolean v8_31 = Boolean.valueOf(v8_30);
                                                                        if (v12_83 != 1) {
                                                                            if (v6_7.nextInt(v12_83) != 0) {
                                                                                p46 = v6_7;
                                                                                int v13_58;
                                                                                String v1_19;
                                                                                if (!v1_0.zzada.zzgv().zzbf(v2_1.zzaui.zztt)) {
                                                                                    v9_1 = v2_1;
                                                                                    v13_58 = v7_122;
                                                                                    if (Math.abs((v11_55.zzaxd.longValue() - v3_1.zzahy)) < 86400000) {
                                                                                        v1_19 = 0;
                                                                                    } else {
                                                                                        v1_19 = 1;
                                                                                    }
                                                                                } else {
                                                                                    long v28_3;
                                                                                    if (v3_1.zzahz == null) {
                                                                                        v1_0.zzada.zzgr();
                                                                                        v9_1 = v2_1;
                                                                                        v13_58 = v7_122;
                                                                                        v28_3 = com.google.android.gms.measurement.internal.zzfx.zzc(v11_55.zzaxe.longValue(), v28_1);
                                                                                    } else {
                                                                                        v28_3 = v3_1.zzahz.longValue();
                                                                                        v9_1 = v2_1;
                                                                                        v13_58 = v7_122;
                                                                                    }
                                                                                    if (v28_3 == v14_21) {
                                                                                        v1_19 = 0;
                                                                                    } else {
                                                                                        v1_19 = 1;
                                                                                    }
                                                                                }
                                                                                if (v1_19 == null) {
                                                                                    if (v8_31.booleanValue()) {
                                                                                        v4_20.put(v11_55.name, v3_1.zza(v13_58, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzjr();
                                                                                    v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_efs", Long.valueOf(1));
                                                                                    this.zzjr();
                                                                                    long v6_90 = ((long) v12_83);
                                                                                    v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_sr", Long.valueOf(v6_90));
                                                                                    String v1_28 = (v10_0 + 1);
                                                                                    v5_35[v10_0] = v11_55;
                                                                                    if (v8_31.booleanValue()) {
                                                                                        v3_1 = v3_1.zza(0, Long.valueOf(v6_90), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_20.put(v11_55.name, v3_1.zza(v11_55.zzaxd.longValue(), v14_21));
                                                                                    v10_0 = v1_28;
                                                                                }
                                                                            } else {
                                                                                this.zzjr();
                                                                                Long v12_0 = ((long) v12_83);
                                                                                p46 = v6_7;
                                                                                v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_sr", Long.valueOf(v12_0));
                                                                                long v6_6 = (v10_0 + 1);
                                                                                v5_35[v10_0] = v11_55;
                                                                                if (v8_31.booleanValue()) {
                                                                                    v3_1 = v3_1.zza(0, Long.valueOf(v12_0), 0);
                                                                                }
                                                                                v4_20.put(v11_55.name, v3_1.zza(v11_55.zzaxd.longValue(), v14_21));
                                                                                v9_1 = v2_1;
                                                                                v10_0 = v6_6;
                                                                            }
                                                                        } else {
                                                                            int v7_6 = (v10_0 + 1);
                                                                            v5_35[v10_0] = v11_55;
                                                                            if ((v8_31.booleanValue()) && ((v3_1.zzaia != null) || ((v3_1.zzaib != null) || (v3_1.zzaic != null)))) {
                                                                                v4_20.put(v11_55.name, v3_1.zza(0, 0, 0));
                                                                            }
                                                                            v9_1 = v2_1;
                                                                            p46 = v6_7;
                                                                            v10_0 = v7_6;
                                                                        }
                                                                    } else {
                                                                        v1_0.zzada.zzgt().zzjj().zze("Sample rate must be positive. event, rate", v11_55.name, Integer.valueOf(v12_83));
                                                                        com.google.android.gms.measurement.internal.zzac v3_8 = (v10_0 + 1);
                                                                        v5_35[v10_0] = v11_55;
                                                                        v9_1 = v2_1;
                                                                        v10_0 = v3_8;
                                                                        p46 = v6_7;
                                                                    }
                                                                } else {
                                                                    this.zzjr();
                                                                    Long v12_3 = ((String) com.google.android.gms.measurement.internal.zzft.zzb(v11_55, "_en"));
                                                                    int v13_1 = ((com.google.android.gms.measurement.internal.zzac) v4_20.get(v12_3));
                                                                    if (v13_1 == 0) {
                                                                        v13_1 = this.zzjt().zzg(v2_1.zzaui.zztt, v12_3);
                                                                        v4_20.put(v12_3, v13_1);
                                                                    }
                                                                    if (v13_1.zzaia != null) {
                                                                        v26_0 = v3_9;
                                                                        p46 = v6_7;
                                                                        v23_0 = v7_10;
                                                                        v25_0 = v8_10;
                                                                        v27_0 = v9_3;
                                                                        v9_1 = v2_1;
                                                                    } else {
                                                                        if (v13_1.zzaib.longValue() > 1) {
                                                                            this.zzjr();
                                                                            v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_sr", v13_1.zzaib);
                                                                        }
                                                                        if ((v13_1.zzaic != null) && (v13_1.zzaic.booleanValue())) {
                                                                            this.zzjr();
                                                                            v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_efs", Long.valueOf(1));
                                                                        }
                                                                        Long v12_14 = (v10_0 + 1);
                                                                        v5_35[v10_0] = v11_55;
                                                                        v26_0 = v3_9;
                                                                        p46 = v6_7;
                                                                        v23_0 = v7_10;
                                                                        v25_0 = v8_10;
                                                                        v27_0 = v9_3;
                                                                        v10_0 = v12_14;
                                                                        v9_1 = v2_1;
                                                                    }
                                                                }
                                                                v6_7 = p46;
                                                                v2_1 = v9_1;
                                                                v7_10 = v23_0;
                                                                v8_10 = v25_0;
                                                                v3_9 = v26_0;
                                                                v9_3 = (v27_0 + 1);
                                                                v1_0 = this;
                                                            }
                                                            v9_9 = v2_1;
                                                            v1_7 = v3_9;
                                                            if (v10_0 < v1_7.zzaxk.length) {
                                                                v1_7.zzaxk = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v5_35, v10_0));
                                                            }
                                                            int v2_10 = v4_20.entrySet().iterator();
                                                            while (v2_10.hasNext()) {
                                                                this.zzjt().zza(((com.google.android.gms.measurement.internal.zzac) ((java.util.Map$Entry) v2_10.next()).getValue()));
                                                            }
                                                        }
                                                        try {
                                                            v1_7.zzaxn = Long.valueOf(nan);
                                                            v1_7.zzaxo = Long.valueOf(-0.0);
                                                            int v2_15 = 0;
                                                        } catch (android.database.sqlite.SQLiteException v0_4) {
                                                            String v1_2 = v0_4;
                                                            this.zzjt().endTransaction();
                                                            throw v1_2;
                                                        }
                                                        while (v2_15 < v1_7.zzaxk.length) {
                                                            com.google.android.gms.measurement.internal.zzac v3_115 = v1_7.zzaxk[v2_15];
                                                            if (v3_115.zzaxd.longValue() < v1_7.zzaxn.longValue()) {
                                                                v1_7.zzaxn = v3_115.zzaxd;
                                                            }
                                                            if (v3_115.zzaxd.longValue() > v1_7.zzaxo.longValue()) {
                                                                v1_7.zzaxo = v3_115.zzaxd;
                                                            }
                                                            v2_15++;
                                                        }
                                                        Object v4_21;
                                                        int v2_17 = v9_9.zzaui.zztt;
                                                        com.google.android.gms.measurement.internal.zzac v3_91 = this.zzjt().zzbm(v2_17);
                                                        if (v3_91 != null) {
                                                            v4_21 = this;
                                                            if (v1_7.zzaxk.length > 0) {
                                                                int v7_98;
                                                                String v5_38 = v3_91.zzhe();
                                                                if (v5_38 == 0) {
                                                                    v7_98 = 0;
                                                                } else {
                                                                    v7_98 = Long.valueOf(v5_38);
                                                                }
                                                                v1_7.zzaxq = v7_98;
                                                                int v7_99 = v3_91.zzhd();
                                                                if (v7_99 != 0) {
                                                                    v5_38 = v7_99;
                                                                } else {
                                                                }
                                                                String v5_39;
                                                                if (v5_38 == 0) {
                                                                    v5_39 = 0;
                                                                } else {
                                                                    v5_39 = Long.valueOf(v5_38);
                                                                }
                                                                v1_7.zzaxp = v5_39;
                                                                v3_91.zzhm();
                                                                v1_7.zzaya = Integer.valueOf(((int) v3_91.zzhj()));
                                                                v3_91.zzo(v1_7.zzaxn.longValue());
                                                                v3_91.zzp(v1_7.zzaxo.longValue());
                                                                v1_7.zzagm = v3_91.zzhu();
                                                                this.zzjt().zza(v3_91);
                                                            }
                                                        } else {
                                                            v4_21 = this;
                                                            this.zzada.zzgt().zzjg().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v9_9.zzaui.zztt));
                                                        }
                                                        if (v1_7.zzaxk.length > 0) {
                                                            v4_21.zzada.zzgw();
                                                            com.google.android.gms.measurement.internal.zzac v3_99 = this.zzls().zzcg(v9_9.zzaui.zztt);
                                                            if (v3_99 == null) {
                                                                if (!android.text.TextUtils.isEmpty(v9_9.zzaui.zzafi)) {
                                                                    v4_21.zzada.zzgt().zzjj().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v9_9.zzaui.zztt));
                                                                } else {
                                                                    v1_7.zzayh = Long.valueOf(-1);
                                                                }
                                                            } else {
                                                                if (v3_99.zzawm != null) {
                                                                    v1_7.zzayh = v3_99.zzawm;
                                                                } else {
                                                                }
                                                            }
                                                            this.zzjt().zza(v1_7, v21_4);
                                                        }
                                                        String v1_8 = this.zzjt();
                                                        com.google.android.gms.measurement.internal.zzac v3_109 = v9_9.zzauj;
                                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_109);
                                                        v1_8.zzaf();
                                                        v1_8.zzcl();
                                                        String v5_55 = new StringBuilder("rowid in (");
                                                        long v6_66 = 0;
                                                        while (v6_66 < v3_109.size()) {
                                                            if (v6_66 != 0) {
                                                                v5_55.append(",");
                                                            }
                                                            v5_55.append(((Long) v3_109.get(v6_66)).longValue());
                                                            v6_66++;
                                                        }
                                                        v5_55.append(")");
                                                        String v5_57 = v1_8.getWritableDatabase().delete("raw_events", v5_55.toString(), 0);
                                                        if (v5_57 != v3_109.size()) {
                                                            v1_8.zzgt().zzjg().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_57), Integer.valueOf(v3_109.size()));
                                                        }
                                                        String v1_11 = this.zzjt();
                                                        com.google.android.gms.measurement.internal.zzac v3_112 = v1_11.getWritableDatabase();
                                                        try {
                                                            long v6_72 = new String[2];
                                                            v6_72[0] = v2_17;
                                                            v6_72[1] = v2_17;
                                                            v3_112.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v6_72);
                                                        } catch (android.database.sqlite.SQLiteException v0_7) {
                                                            v1_11.zzgt().zzjg().zze("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_17), v0_7);
                                                        }
                                                        this.zzjt().setTransactionSuccessful();
                                                        this.zzjt().endTransaction();
                                                        return 1;
                                                    } catch (android.database.sqlite.SQLiteException v0_2) {
                                                        v1_2 = v0_2;
                                                    }
                                                }
                                            } else {
                                                v6_3.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v7_2 = v3_10;
                                            com.google.android.gms.measurement.internal.zzac v3_0 = v0_1;
                                            try {
                                                v4_28.zzgt().zzjg().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_2), v3_0);
                                            } catch (android.database.sqlite.SQLiteException v0_6) {
                                                String v1_3 = v0_6;
                                                int v22 = v6_3;
                                                if (v22 != 0) {
                                                    v22.close();
                                                }
                                                throw v1_3;
                                            }
                                            if (v6_3 == 0) {
                                            } else {
                                                v6_3.close();
                                            }
                                        }
                                        if (v15_2.moveToNext()) {
                                            v4_28.zzgt().zzjj().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10));
                                        }
                                        String[] v17_2;
                                        String v16_2;
                                        v15_2.close();
                                        v2_1.zzb(v14_10);
                                        if (v5_61 == -1) {
                                            boolean v10_58 = new String[2];
                                            v10_58[0] = v3_10;
                                            v10_58[1] = v7_2;
                                            v16_2 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_2 = v10_58;
                                        } else {
                                            int v13_44 = new String[3];
                                            v13_44[0] = v3_10;
                                            v13_44[1] = v7_2;
                                            v13_44[2] = String.valueOf(v5_61);
                                            v16_2 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_2 = v13_44;
                                        }
                                        v6_3 = v15_2;
                                        String v5_6 = v25_2.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_2, v17_2, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_6.moveToFirst()) {
                                                v4_28.zzgt().zzjj().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10));
                                                if (v5_6 == null) {
                                                } else {
                                                    v5_6.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v22 = v5_6;
                                            v1_3 = v0_0;
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v7_2 = v3_10;
                                            v6_3 = v5_6;
                                        }
                                        do {
                                            long v6_24 = v5_6.getLong(0);
                                            Long v12_70 = v5_6.getBlob(3);
                                            boolean v10_63 = com.google.android.gms.internal.measurement.zzxz.zzj(v12_70, 0, v12_70.length);
                                            Long v12_72 = new com.google.android.gms.internal.measurement.zzft();
                                            v12_72.zza(v10_63);
                                            v12_72.name = v5_6.getString(1);
                                            v12_72.zzaxd = Long.valueOf(v5_6.getLong(2));
                                            if (v2_1.zza(v6_24, v12_72)) {
                                            } else {
                                                if (v5_6 == null) {
                                                } else {
                                                    v5_6.close();
                                                }
                                            }
                                        } while(v5_6.moveToNext());
                                        if (v5_6 == null) {
                                        } else {
                                            v5_6.close();
                                        }
                                    } else {
                                        v4_28.zzgt().zzjg().zzg("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10));
                                        if (v15_2 == null) {
                                        } else {
                                            v15_2.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_3 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v6_3 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v22 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v7_2 = v3_10;
                                    v6_3 = v15_2;
                                }
                                v22 = v6_3;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v22 = v23_1;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v7_2 = v3_10;
                                v6_3 = v23_1;
                            }
                        } else {
                            if (v3_10 == null) {
                            } else {
                                v3_10.close();
                            }
                        }
                    } else {
                        boolean v14_17;
                        int v13_52 = v5_61 cmp -1;
                        try {
                            if (v13_52 == 0) {
                                v14_17 = new String[1];
                                v14_17[0] = String.valueOf(p47);
                            } else {
                                v14_17 = new String[2];
                                v14_17[0] = String.valueOf(v5_61);
                                v14_17[1] = String.valueOf(p47);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            v6_3 = 0;
                            v7_2 = 0;
                        }
                        int v13_53;
                        if (v13_52 == 0) {
                            v13_53 = "";
                        } else {
                            v13_53 = "rowid <= ? and ";
                        }
                        com.google.android.gms.measurement.internal.zzac v3_142 = new StringBuilder((String.valueOf(v13_53).length() + 148));
                        v3_142.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_142.append(v13_53);
                        v3_142.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_10 = v15_3.rawQuery(v3_142.toString(), v14_17);
                        if (v3_10.moveToFirst()) {
                            int v7_9 = v3_10.getString(0);
                            try {
                                int v13_4 = v3_10.getString(1);
                                v3_10.close();
                                v23_1 = v3_10;
                                v3_10 = v7_9;
                                v7_2 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v6_3 = v3_10;
                            }
                        } else {
                            if (v3_10 == null) {
                            } else {
                                v3_10.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v22 = v3_10;
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v6_3 = v3_10;
                    v7_2 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v22 = 0;
            } catch (android.database.sqlite.SQLiteException v0_8) {
                v3_0 = v0_8;
                v6_3 = 0;
                v7_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_4) {
            }
        } catch (android.database.sqlite.SQLiteException v0_4) {
        }
    }

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


    private final void zzd(com.google.android.gms.measurement.internal.zzag p25, com.google.android.gms.measurement.internal.zzk p26)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p26);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p26.packageName);
        int v4_81 = System.nanoTime();
        void v24_1 = this.zzaf();
        v24_1.zzlx();
        int v15_0 = p26.packageName;
        if (v24_1.zzjr().zze(p25, p26)) {
            if (p26.zzafr) {
                int v14_0 = 0;
                if (!v24_1.zzls().zzo(v15_0, p25.name)) {
                    if (this.zzada.zzgt().isLoggable(2)) {
                        this.zzada.zzgt().zzjo().zzg("Logging event", this.zzada.zzgq().zzb(p25));
                    }
                    v24_1.zzjt().beginTransaction();
                    try {
                        this.zzg(p26);
                    } catch (boolean v0_95) {
                        v24_1.zzjt().endTransaction();
                        throw v0_95;
                    }
                    if (("_iap".equals(p25.name)) || ("ecommerce_purchase".equals(p25.name))) {
                        boolean v0_2;
                        long v6_1;
                        boolean v0_54 = p25.zzahu.getString("currency");
                        if (!"ecommerce_purchase".equals(p25.name)) {
                            v6_1 = p25.zzahu.getLong("value").longValue();
                            if (!android.text.TextUtils.isEmpty(v0_54)) {
                                boolean v0_3 = v0_54.toUpperCase(java.util.Locale.US);
                                if (v0_3.matches("[A-Z]{3}")) {
                                    boolean v0_7;
                                    long v8_6 = String.valueOf("_ltv_");
                                    boolean v0_5 = String.valueOf(v0_3);
                                    if (v0_5.length() == 0) {
                                        v0_7 = new String(v8_6);
                                    } else {
                                        v0_7 = v8_6.concat(v0_5);
                                    }
                                    boolean v0_13;
                                    int v9_2 = v0_7;
                                    boolean v0_9 = v24_1.zzjt().zzi(v15_0, v9_2);
                                    if (!v0_9) {
                                        long v8_10 = v24_1.zzjt();
                                        boolean v0_18 = (this.zzada.zzgv().zzb(v15_0, com.google.android.gms.measurement.internal.zzai.zzajy) - 1);
                                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v15_0);
                                        v8_10.zzaf();
                                        v8_10.zzcl();
                                        try {
                                            long v10_4 = v8_10.getWritableDatabase();
                                            Long v12_4 = new String[3];
                                            v12_4[0] = v15_0;
                                            v12_4[1] = v15_0;
                                            v12_4[2] = String.valueOf(v0_18);
                                            v10_4.execSQL("delete from user_attributes where app_id=? and name in (select name from user_attributes where app_id=? and name like \'_ltv_%\' order by set_timestamp desc limit ?,10);", v12_4);
                                        } catch (boolean v0_20) {
                                            v8_10.zzgt().zzjg().zze("Error pruning currencies. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v15_0), v0_20);
                                        }
                                        v0_13 = new com.google.android.gms.measurement.internal.zzfw;
                                        v0_13(v15_0, p25.origin, v9_2, this.zzada.zzbx().currentTimeMillis(), Long.valueOf(v6_1));
                                    } else {
                                        if ((v0_9.value instanceof Long)) {
                                            v0_13 = new com.google.android.gms.measurement.internal.zzfw;
                                            v0_13(v15_0, p25.origin, v9_2, this.zzada.zzbx().currentTimeMillis(), Long.valueOf((((Long) v0_9.value).longValue() + v6_1)));
                                        } else {
                                        }
                                    }
                                    if (!v24_1.zzjt().zza(v0_13)) {
                                        this.zzada.zzgt().zzjg().zzd("Too many unique user properties are set. Ignoring user property. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v15_0), this.zzada.zzgq().zzbv(v0_13.name), v0_13.value);
                                        this.zzada.zzgr().zza(v15_0, 9, 0, 0, 0);
                                    }
                                }
                            }
                            v0_2 = 1;
                        } else {
                            long v6_91 = (p25.zzahu.zzbr("value").doubleValue() * 1000000.0);
                            if (v6_91 == 0) {
                                v6_91 = (((double) p25.zzahu.getLong("value").longValue()) * 1000000.0);
                            }
                            if ((v6_91 > 9.223372036854776e+18) || (v6_91 < -9.223372036854776e+18)) {
                                this.zzada.zzgt().zzjj().zze("Data lost. Currency value is too big. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v15_0), Double.valueOf(v6_91));
                                v0_2 = 0;
                            } else {
                                v6_1 = Math.round(v6_91);
                            }
                        }
                        if (!v0_2) {
                            v24_1.zzjt().setTransactionSuccessful();
                            v24_1.zzjt().endTransaction();
                            return;
                        }
                    }
                    boolean v0_26 = com.google.android.gms.measurement.internal.zzfx.zzct(p25.name);
                    int v16_1 = "_err".equals(p25.name);
                    Object v22 = v4_81;
                    long v5_0 = v24_1.zzjt().zza(v24_1.zzly(), v15_0, 1, v0_26, 0, v16_1, 0);
                    long v6_14 = (v5_0.zzahi - ((long) ((Integer) com.google.android.gms.measurement.internal.zzai.zzaje.get()).intValue()));
                    if (v6_14 <= 0) {
                        if (v0_26) {
                            int v17_1 = v5_0;
                            long v6_16 = (v5_0.zzahh - ((long) ((Integer) com.google.android.gms.measurement.internal.zzai.zzajg.get()).intValue()));
                            if (v6_16 <= 0) {
                                v5_0 = v17_1;
                            } else {
                                if ((v6_16 % 1000) == 1) {
                                    this.zzada.zzgt().zzjg().zze("Data loss. Too many public events logged. appId, count", com.google.android.gms.measurement.internal.zzas.zzbw(v15_0), Long.valueOf(v17_1.zzahh));
                                }
                                this.zzada.zzgr().zza(v15_0, 16, "_ev", p25.name, 0);
                                v24_1.zzjt().setTransactionSuccessful();
                                v24_1.zzjt().endTransaction();
                                return;
                            }
                        }
                        if (v16_1 != 0) {
                            long v6_18 = (v5_0.zzahk - ((long) Math.max(0, Math.min(1000000, this.zzada.zzgv().zzb(p26.packageName, com.google.android.gms.measurement.internal.zzai.zzajf)))));
                            if (v6_18 > 0) {
                                if (v6_18 == 1) {
                                    this.zzada.zzgt().zzjg().zze("Too many error events logged. appId, count", com.google.android.gms.measurement.internal.zzas.zzbw(v15_0), Long.valueOf(v5_0.zzahk));
                                }
                                v24_1.zzjt().setTransactionSuccessful();
                                v24_1.zzjt().endTransaction();
                                return;
                            }
                        }
                        int v4_9 = p25.zzahu.zziy();
                        this.zzada.zzgr().zza(v4_9, "_o", p25.origin);
                        if (this.zzada.zzgr().zzcz(v15_0)) {
                            this.zzada.zzgr().zza(v4_9, "_dbg", Long.valueOf(1));
                            this.zzada.zzgr().zza(v4_9, "_r", Long.valueOf(1));
                        }
                        if ((this.zzada.zzgv().zzbh(p26.packageName)) && ("_s".equals(p25.name))) {
                            long v5_16 = v24_1.zzjt().zzi(p26.packageName, "_sno");
                            if ((v5_16 != 0) && ((v5_16.value instanceof Long))) {
                                this.zzada.zzgr().zza(v4_9, "_sno", v5_16.value);
                            }
                        }
                        long v5_19 = v24_1.zzjt().zzbn(v15_0);
                        if (v5_19 > 0) {
                            this.zzada.zzgt().zzjj().zze("Data lost. Too many events stored on disk, deleted. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v15_0), Long.valueOf(v5_19));
                        }
                        boolean v0_35;
                        long v5_21 = new com.google.android.gms.measurement.internal.zzab;
                        String v2_1 = v15_0;
                        v5_21(this.zzada, p25.origin, v15_0, p25.name, p25.zzaig, 0, v4_9);
                        int v4_11 = v24_1.zzjt().zzg(v2_1, v5_21.name);
                        if (v4_11 != 0) {
                            v5_21 = v5_21.zza(this.zzada, v4_11.zzahx);
                            v0_35 = v4_11.zzae(v5_21.timestamp);
                        } else {
                            if ((v24_1.zzjt().zzbq(v2_1) < 500) || (!v0_26)) {
                                v0_35 = new com.google.android.gms.measurement.internal.zzac;
                                v0_35(v2_1, v5_21.name, 0, 0, v5_21.timestamp, 0, 0, 0, 0, 0);
                            } else {
                                this.zzada.zzgt().zzjg().zzd("Too many event names used, ignoring event. appId, name, supported count", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1), this.zzada.zzgq().zzbt(v5_21.name), Integer.valueOf(500));
                                this.zzada.zzgr().zza(v2_1, 8, 0, 0, 0);
                                v24_1.zzjt().endTransaction();
                                return;
                            }
                        }
                        int v4_16;
                        v24_1.zzjt().zza(v0_35);
                        v24_1 = v24_1.zzaf();
                        v24_1.zzlx();
                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v5_21);
                        com.google.android.gms.common.internal.Preconditions.checkNotNull(p26);
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v5_21.zztt);
                        com.google.android.gms.common.internal.Preconditions.checkArgument(v5_21.zztt.equals(p26.packageName));
                        String v2_5 = new com.google.android.gms.internal.measurement.zzfw();
                        v2_5.zzaxj = Integer.valueOf(1);
                        v2_5.zzaxr = "android";
                        v2_5.zztt = p26.packageName;
                        v2_5.zzafp = p26.zzafp;
                        v2_5.zzts = p26.zzts;
                        if (p26.zzafo != -2147483648) {
                            v4_16 = Integer.valueOf(((int) p26.zzafo));
                        } else {
                            v4_16 = 0;
                        }
                        int v4_21;
                        v2_5.zzayd = v4_16;
                        v2_5.zzaxv = Long.valueOf(p26.zzade);
                        v2_5.zzafi = p26.zzafi;
                        v2_5.zzawr = p26.zzafv;
                        if (p26.zzafq != 0) {
                            v4_21 = Long.valueOf(p26.zzafq);
                        } else {
                            v4_21 = 0;
                        }
                        v2_5.zzaxz = v4_21;
                        if (this.zzada.zzgv().zze(p26.packageName, com.google.android.gms.measurement.internal.zzai.zzalg)) {
                            v2_5.zzayn = v24_1.zzjr().zzmi();
                        }
                        int v4_29 = this.zzada.zzgu().zzbz(p26.packageName);
                        if ((v4_29 == 0) || (android.text.TextUtils.isEmpty(((CharSequence) v4_29.first)))) {
                            if ((!this.zzada.zzgp().zzl(this.zzada.getContext())) && (p26.zzafu)) {
                                int v4_37 = android.provider.Settings$Secure.getString(this.zzada.getContext().getContentResolver(), "android_id");
                                if (v4_37 != 0) {
                                    if (v4_37.isEmpty()) {
                                        this.zzada.zzgt().zzjj().zzg("empty secure ID. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_5.zztt));
                                    }
                                } else {
                                    this.zzada.zzgt().zzjj().zzg("null secure ID. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_5.zztt));
                                    v4_37 = "null";
                                }
                                v2_5.zzayg = v4_37;
                            }
                        } else {
                            if (p26.zzaft) {
                                v2_5.zzaxx = ((String) v4_29.first);
                                v2_5.zzaxy = ((Boolean) v4_29.second);
                            }
                        }
                        this.zzada.zzgp().zzcl();
                        v2_5.zzaxt = android.os.Build.MODEL;
                        this.zzada.zzgp().zzcl();
                        v2_5.zzaxs = android.os.Build$VERSION.RELEASE;
                        v2_5.zzaxu = Integer.valueOf(((int) this.zzada.zzgp().zziw()));
                        v2_5.zzahr = this.zzada.zzgp().zzix();
                        v2_5.zzaxw = 0;
                        v2_5.zzaxm = 0;
                        v2_5.zzaxn = 0;
                        v2_5.zzaxo = 0;
                        v2_5.zzayi = Long.valueOf(p26.zzafs);
                        if ((this.zzada.isEnabled()) && (com.google.android.gms.measurement.internal.zzq.zzie())) {
                            v2_5.zzayj = 0;
                        }
                        boolean v0_52 = v24_1.zzjt().zzbm(p26.packageName);
                        if (!v0_52) {
                            v0_52 = new com.google.android.gms.measurement.internal.zzg(this.zzada, p26.packageName);
                            v0_52.zzaj(this.zzada.zzgr().zzmm());
                            v0_52.zzan(p26.zzafk);
                            v0_52.zzak(p26.zzafi);
                            v0_52.zzam(this.zzada.zzgu().zzca(p26.packageName));
                            v0_52.zzt(0);
                            v0_52.zzo(0);
                            v0_52.zzp(0);
                            v0_52.setAppVersion(p26.zzts);
                            v0_52.zzq(p26.zzafo);
                            v0_52.zzao(p26.zzafp);
                            v0_52.zzr(p26.zzade);
                            v0_52.zzs(p26.zzafq);
                            v0_52.setMeasurementEnabled(p26.zzafr);
                            v0_52.zzac(p26.zzafs);
                            v24_1.zzjt().zza(v0_52);
                        }
                        v2_5.zzafh = v0_52.getAppInstanceId();
                        v2_5.zzafk = v0_52.getFirebaseInstanceId();
                        boolean v0_57 = v24_1.zzjt().zzbl(p26.packageName);
                        Long v3_3 = new com.google.android.gms.internal.measurement.zzfz[v0_57.size()];
                        v2_5.zzaxl = v3_3;
                        Long v3_4 = 0;
                        while (v3_4 < v0_57.size()) {
                            int v4_89 = new com.google.android.gms.internal.measurement.zzfz();
                            v2_5.zzaxl[v3_4] = v4_89;
                            v4_89.name = ((com.google.android.gms.measurement.internal.zzfw) v0_57.get(v3_4)).name;
                            v4_89.zzayw = Long.valueOf(((com.google.android.gms.measurement.internal.zzfw) v0_57.get(v3_4)).zzaum);
                            v24_1.zzjr().zza(v4_89, ((com.google.android.gms.measurement.internal.zzfw) v0_57.get(v3_4)).value);
                            v3_4++;
                        }
                        String v2_6 = v24_1.zzjt().zza(v2_5);
                        int v4_87;
                        boolean v0_60 = v24_1.zzjt();
                        if (v5_21.zzahu == null) {
                            v4_87 = 0;
                        } else {
                            int v4_79 = v5_21.zzahu.iterator();
                            while (v4_79.hasNext()) {
                                if ("_r".equals(((String) v4_79.next()))) {
                                    v4_87 = 1;
                                }
                            }
                            int v4_82 = v24_1.zzls().zzp(v5_21.zztt, v5_21.name);
                            com.google.android.gms.measurement.internal.zzu vtmp241 = v24_1.zzjt().zza(v24_1.zzly(), v5_21.zztt, 0, 0, 0, 0, 0);
                            if ((v4_82 == 0) || (vtmp241.zzahl >= ((long) this.zzada.zzgv().zzaq(v5_21.zztt)))) {
                            } else {
                                v4_87 = 1;
                            }
                        }
                        if (!v0_60.zza(v5_21, v2_6, v4_87)) {
                            v24_1.zzjt().setTransactionSuccessful();
                            if (this.zzada.zzgt().isLoggable(2)) {
                                this.zzada.zzgt().zzjo().zzg("Event recorded", this.zzada.zzgq().zza(v5_21));
                            }
                            v24_1.zzjt().endTransaction();
                            v24_1.zzmb();
                            this.zzada.zzgt().zzjo().zzg("Background event processing time, ms", Long.valueOf((((System.nanoTime() - v22) + 500000) / 1000000)));
                            return;
                        } else {
                            this.zzatt = 0;
                        }
                    } else {
                        if ((v6_14 % 1000) == 1) {
                            this.zzada.zzgt().zzjg().zze("Data loss. Too many events logged. appId, count", com.google.android.gms.measurement.internal.zzas.zzbw(v15_0), Long.valueOf(v5_0.zzahi));
                        }
                        v24_1.zzjt().setTransactionSuccessful();
                        v24_1.zzjt().endTransaction();
                        return;
                    }
                } else {
                    this.zzada.zzgt().zzjj().zze("Dropping blacklisted event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v15_0), this.zzada.zzgq().zzbt(p25.name));
                    if ((v24_1.zzls().zzcl(v15_0)) || (v24_1.zzls().zzcm(v15_0))) {
                        v14_0 = 1;
                    }
                    if ((v14_0 == 0) && (!"_err".equals(p25.name))) {
                        this.zzada.zzgr().zza(v15_0, 11, "_ev", p25.name, 0);
                    }
                    if (v14_0 != 0) {
                        boolean v0_111 = v24_1.zzjt().zzbm(v15_0);
                        if ((v0_111) && (Math.abs((this.zzada.zzbx().currentTimeMillis() - Math.max(v0_111.zzhl(), v0_111.zzhk()))) > ((Long) com.google.android.gms.measurement.internal.zzai.zzajt.get()).longValue())) {
                            this.zzada.zzgt().zzjn().zzby("Fetching config for blacklisted app");
                            this.zzb(v0_111);
                        }
                    }
                    return;
                }
            } else {
                this.zzg(p26);
                return;
            }
        } else {
            return;
        }
    }

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


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

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


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

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


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

Method android.arch.persistence.db.framework.FrameworkSQLiteDatabase.execSQL() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void execSQL(String p2, Object[] p3)
    {
        this.mDelegate.execSQL(p2, p3);
        return;
    }

Method android.arch.persistence.db.framework.FrameworkSQLiteDatabase.execSQL() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void execSQL(String p2)
    {
        this.mDelegate.execSQL(p2);
        return;
    }

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p9)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_13 = p9.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_13.moveToFirst();
                v0_13.close();
            } catch (android.database.sqlite.SQLiteException v9_10) {
                v0_13.close();
                throw v9_10;
            }
        }
        String v1_3 = 0;
        if (this.zza(p9, "hits2")) {
            String v0_6 = com.google.android.gms.internal.measurement.zzbg.zzb(p9, "hits2");
            boolean v3_1 = 0;
            while (v3_1 < 4) {
                String v4_2 = new String[] {"hit_id", "hit_string", "hit_time", "hit_url"})[v3_1];
                if (v0_6.remove(v4_2)) {
                    v3_1++;
                } else {
                    String v0_12;
                    String v1_5 = String.valueOf(v4_2);
                    if (v1_5.length() == 0) {
                        v0_12 = new String("Database hits2 is missing required column: ");
                    } else {
                        v0_12 = "Database hits2 is missing required column: ".concat(v1_5);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_12);
                }
            }
            int v2_5 = (v0_6.remove("hit_app_id") ^ 1);
            if (!v0_6.isEmpty()) {
                throw new android.database.sqlite.SQLiteException("Database hits2 has extra columns");
            } else {
                if (v2_5 != 0) {
                    p9.execSQL("ALTER TABLE hits2 ADD COLUMN hit_app_id INTEGER");
                }
            }
        } else {
            p9.execSQL(com.google.android.gms.internal.measurement.zzbf.zzde());
        }
        if (this.zza(p9, "properties")) {
            android.database.sqlite.SQLiteException v9_6 = com.google.android.gms.internal.measurement.zzbg.zzb(p9, "properties");
            String v4 = "tid";
            String v6 = "adid";
            while (v1_3 < 6) {
                int v2_9 = new String[] {"app_uid", "hits_count"})[v1_3];
                if (v9_6.remove(v2_9)) {
                    v1_3++;
                } else {
                    String v0_1;
                    String v1_8 = String.valueOf(v2_9);
                    if (v1_8.length() == 0) {
                        v0_1 = new String("Database properties is missing required column: ");
                    } else {
                        v0_1 = "Database properties is missing required column: ".concat(v1_8);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_1);
                }
            }
            if (!v9_6.isEmpty()) {
                throw new android.database.sqlite.SQLiteException("Database properties table has extra columns");
            } else {
                return;
            }
        } else {
            p9.execSQL("CREATE TABLE IF NOT EXISTS properties ( app_uid INTEGER NOT NULL, cid TEXT NOT NULL, tid TEXT NOT NULL, params TEXT NOT NULL, adid INTEGER NOT NULL, hits_count INTEGER NOT NULL, PRIMARY KEY (app_uid, cid, tid)) ;");
            return;
        }
    }

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


    public final int zzk(String p7, String p8)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p7);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p8);
        this.zzaf();
        this.zzcl();
        try {
            android.database.sqlite.SQLiteException v1_1 = this.getWritableDatabase();
            com.google.android.gms.measurement.internal.zzaq v4_0 = new String[2];
            v4_0[0] = p7;
            v4_0[1] = p8;
            Object v7_1 = v1_1.delete("conditional_properties", "app_id=? and name=?", v4_0);
            return v7_1;
        } catch (android.database.sqlite.SQLiteException v1_0) {
            this.zzgt().zzjg().zzd("Error deleting conditional property", com.google.android.gms.measurement.internal.zzas.zzbw(v7_1), this.zzgq().zzbv(p8), v1_0);
            return 0;
        }
    }

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


    final void zzij()
    {
        this.zzaf();
        this.zzcl();
        if (this.zzip()) {
            Integer v0_11 = this.zzgu().zzanf.get();
            String v2_1 = this.zzbx().elapsedRealtime();
            if (Math.abs((v2_1 - v0_11)) > ((Long) com.google.android.gms.measurement.internal.zzai.zzajs.get()).longValue()) {
                this.zzgu().zzanf.set(v2_1);
                this.zzaf();
                this.zzcl();
                if (this.zzip()) {
                    Integer v0_6 = this.getWritableDatabase();
                    com.google.android.gms.measurement.internal.zzau v1_1 = new String[2];
                    v1_1[0] = String.valueOf(this.zzbx().currentTimeMillis());
                    v1_1[1] = String.valueOf(com.google.android.gms.measurement.internal.zzq.zzib());
                    Integer v0_7 = v0_6.delete("queue", "abs(bundle_end_timestamp - ?) > cast(? as integer)", v1_1);
                    if (v0_7 > null) {
                        this.zzgt().zzjo().zzg("Deleted stale rows. rowsDeleted", Integer.valueOf(v0_7));
                    }
                }
            }
            return;
        } else {
            return;
        }
    }

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


    public final void zzh(String p6, String p7)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p6);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p7);
        this.zzaf();
        this.zzcl();
        try {
            android.database.sqlite.SQLiteException v0_3 = this.getWritableDatabase();
            com.google.android.gms.measurement.internal.zzaq v3_2 = new String[2];
            v3_2[0] = p6;
            v3_2[1] = p7;
            this.zzgt().zzjo().zzg("Deleted user attribute rows", Integer.valueOf(v0_3.delete("user_attributes", "app_id=? and name=?", v3_2)));
            return;
        } catch (android.database.sqlite.SQLiteException v0_2) {
            this.zzgt().zzjg().zzd("Error deleting user attribute. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p6), this.zzgq().zzbv(p7), v0_2);
            return;
        }
    }

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


    public final long zzbn(String p7)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p7);
        this.zzaf();
        this.zzcl();
        try {
            long v0_3 = this.getWritableDatabase();
            com.google.android.gms.measurement.internal.zzau v1_2 = String.valueOf(Math.max(0, Math.min(1000000, this.zzgv().zzb(p7, com.google.android.gms.measurement.internal.zzai.zzajj))));
            String[] v5_1 = new String[2];
            v5_1[0] = p7;
            v5_1[1] = v1_2;
            Object v7_1 = v0_3.delete("raw_events", "rowid in (select rowid from raw_events where app_id=? order by rowid desc limit -1 offset ?)", v5_1);
            return ((long) v7_1);
        } catch (long v0_1) {
            this.zzgt().zzjg().zze("Error deleting over the limit events. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_1), v0_1);
            return 0;
        }
    }

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


    final void zza(String p13, com.google.android.gms.internal.measurement.zzfi[] p14)
    {
        this.zzcl();
        this.zzaf();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p14);
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        v0.beginTransaction();
        try {
            this.zzcl();
            this.zzaf();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
            java.util.ArrayList v1_0 = this.getWritableDatabase();
            String v5_6 = new String[1];
            int v6 = 0;
            v5_6[0] = p13;
            v1_0.delete("property_filters", "app_id=?", v5_6);
            String v5_7 = new String[1];
            v5_7[0] = p13;
            v1_0.delete("event_filters", "app_id=?", v5_7);
            java.util.ArrayList v1_1 = p14.length;
            int v2_1 = 0;
        } catch (Throwable v13_1) {
            v0.endTransaction();
            throw v13_1;
        }
        while (v2_1 < v1_1) {
            android.database.sqlite.SQLiteDatabase v3_8 = p14[v2_1];
            this.zzcl();
            this.zzaf();
            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.zzavi);
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_8.zzavh);
            if (v3_8.zzavg != null) {
                String v5_12 = v3_8.zzavg.intValue();
                int v7_3 = v3_8.zzavi;
                int v9_2 = 0;
                while (v9_2 < v7_3.length) {
                    if (v7_3[v9_2].zzavm != null) {
                        v9_2++;
                    } else {
                        this.zzgt().zzjj().zze("Event filter with no ID. Audience definition ignored. appId, audienceId", com.google.android.gms.measurement.internal.zzas.zzbw(p13), v3_8.zzavg);
                    }
                }
                int v7_4 = v3_8.zzavh;
                int v9_1 = 0;
                while (v9_1 < v7_4.length) {
                    if (v7_4[v9_1].zzavm != null) {
                        v9_1++;
                    } else {
                        this.zzgt().zzjj().zze("Property filter with no ID. Audience definition ignored. appId, audienceId", com.google.android.gms.measurement.internal.zzas.zzbw(p13), v3_8.zzavg);
                    }
                }
                int v7_5 = v3_8.zzavi;
                int v9_3 = 0;
                while (v9_3 < v7_5.length) {
                    if (this.zza(p13, v5_12, v7_5[v9_3])) {
                        v9_3++;
                    } else {
                        int v7_6 = 0;
                    }
                    if (v7_6 != 0) {
                        android.database.sqlite.SQLiteDatabase v3_9 = v3_8.zzavh;
                        int v9_4 = 0;
                        while (v9_4 < v3_9.length) {
                            if (this.zza(p13, v5_12, v3_9[v9_4])) {
                                v9_4++;
                            } else {
                                v7_6 = 0;
                                break;
                            }
                        }
                    }
                    if (v7_6 == 0) {
                        this.zzcl();
                        this.zzaf();
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
                        android.database.sqlite.SQLiteDatabase v3_10 = this.getWritableDatabase();
                        boolean v10_8 = new String[2];
                        v10_8[0] = p13;
                        v10_8[1] = String.valueOf(v5_12);
                        v3_10.delete("property_filters", "app_id=? and audience_id=?", v10_8);
                        int v9_0 = new String[2];
                        v9_0[0] = p13;
                        v9_0[1] = String.valueOf(v5_12);
                        v3_10.delete("event_filters", "app_id=? and audience_id=?", v9_0);
                    }
                }
                v7_6 = 1;
            } else {
                this.zzgt().zzjj().zzg("Audience with no ID. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p13));
            }
            v2_1++;
        }
        java.util.ArrayList v1_3 = new java.util.ArrayList();
        int v2_3 = p14.length;
        while (v6 < v2_3) {
            v1_3.add(p14[v6].zzavg);
            v6++;
        }
        this.zza(p13, v1_3);
        v0.setTransactionSuccessful();
        v0.endTransaction();
        return;
    }

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


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

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

Couldn't retrieve source code

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


    public final void resetAnalyticsData()
    {
        this.zzgg();
        this.zzaf();
        try {
            Integer v0_4 = (this.getWritableDatabase().delete("messages", 0, 0) + 0);
        } catch (Integer v0_1) {
            this.zzgt().zzjg().zzg("Error resetting local analytics data. error", v0_1);
            return;
        }
        if (v0_4 > null) {
            this.zzgt().zzjo().zzg("Reset local analytics data. records", Integer.valueOf(v0_4));
        }
        return;
    }

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


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

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


    public final void zzb(long p9, String p11)
    {
        android.database.sqlite.SQLiteDatabase v0_3 = this.zzrz.currentTimeMillis();
        if (v0_3 > (this.zzbdv + 86400000)) {
            this.zzbdv = v0_3;
            android.database.sqlite.SQLiteDatabase v0_2 = this.zzdl("Error opening database for deleteStaleHits.");
            if (v0_2 != null) {
                android.content.ContentValues v1_5;
                String[] v7 = new String[1];
                v7[0] = Long.toString((this.zzrz.currentTimeMillis() - 1.280618154e-314));
                v0_2.delete("gtm_hits", "HIT_TIME < ?", v7);
                if (this.zzpj() != 0) {
                    v1_5 = 0;
                } else {
                    v1_5 = 1;
                }
                this.zzbdt.zzo(v1_5);
            }
        }
        android.database.sqlite.SQLiteDatabase v0_7 = ((this.zzpj() - this.zzbdw) + 1);
        if (v0_7 > null) {
            android.database.sqlite.SQLiteDatabase v0_8 = this.zzab(v0_7);
            android.content.ContentValues v1_7 = v0_8.size();
            StringBuilder v3_2 = new StringBuilder(51);
            v3_2.append("Store full, deleting ");
            v3_2.append(v1_7);
            v3_2.append(" hits to make room.");
            com.google.android.gms.tagmanager.zzdi.v(v3_2.toString());
            android.content.ContentValues v1_10 = new String[0];
            this.zza(((String[]) v0_8.toArray(v1_10)));
        }
        android.database.sqlite.SQLiteDatabase v0_12 = this.zzdl("Error opening database for putHit");
        if (v0_12 != null) {
            android.content.ContentValues v1_12 = new android.content.ContentValues();
            v1_12.put("hit_time", Long.valueOf(p9));
            v1_12.put("hit_url", p11);
            v1_12.put("hit_first_send_time", Integer.valueOf(0));
            try {
                v0_12.insert("gtm_hits", 0, v1_12);
                this.zzbdt.zzo(0);
                return;
            } catch (android.database.sqlite.SQLiteException) {
                com.google.android.gms.tagmanager.zzdi.zzab("Error storing hit");
            }
        }
        return;
    }

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


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

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


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

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


    private final declared_synchronized void zzb(java.util.List p11, long p12)
    {
        try {
            long v0_1 = this.zzrz.currentTimeMillis();
            this.zzap(v0_1);
            String v3_0 = ((this.zzoj() - this.zzbbo) + p11.size());
        } catch (Throwable v11_2) {
            this.zzok();
            throw v11_2;
        } catch (Throwable v11_3) {
            throw v11_3;
        }
        if (v3_0 > null) {
            String v2_0 = this.zzw(v3_0);
            String v3_2 = v2_0.size();
            String v5_1 = new StringBuilder(64);
            v5_1.append("DataLayer store full, deleting ");
            v5_1.append(v3_2);
            v5_1.append(" entries to make room.");
            com.google.android.gms.tagmanager.zzdi.zzdm(v5_1.toString());
            int v4_2 = new String[0];
            String v2_2 = ((String[]) v2_0.toArray(v4_2));
            if (v2_2 != null) {
                if (v2_2.length != 0) {
                    int v4_5 = this.zzdl("Error opening database for deleteEntries.");
                    if (v4_5 != 0) {
                        Object[] v6_1 = new Object[2];
                        v6_1[0] = "ID";
                        v6_1[1] = android.text.TextUtils.join(",", java.util.Collections.nCopies(v2_2.length, "?"));
                        v4_5.delete("datalayer", String.format("%s in (%s)", v6_1), v2_2);
                    }
                } else {
                }
            }
        }
        long v0_2 = (v0_1 + p12);
        android.database.sqlite.SQLiteDatabase v12_2 = this.zzdl("Error opening database for writeEntryToDatabase.");
        if (v12_2 != null) {
            Throwable v11_1 = p11.iterator();
            while (v11_1.hasNext()) {
                String v13_4 = ((com.google.android.gms.tagmanager.zzay) v11_1.next());
                String v2_9 = new android.content.ContentValues();
                v2_9.put("expires", Long.valueOf(v0_2));
                v2_9.put("key", v13_4.zzoj);
                v2_9.put("value", v13_4.zzbbu);
                v12_2.insert("datalayer", 0, v2_9);
            }
        }
        this.zzok();
        return;
    }

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


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

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


    final void zzf(com.google.android.gms.measurement.internal.zzk p19)
    {
        void v18_1 = this.zzaf();
        v18_1.zzlx();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p19);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p19.packageName);
        if ((!android.text.TextUtils.isEmpty(p19.zzafi)) || (!android.text.TextUtils.isEmpty(p19.zzafv))) {
            String v0_9 = v18_1.zzjt().zzbm(p19.packageName);
            if ((v0_9 != null) && ((android.text.TextUtils.isEmpty(v0_9.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzafi)))) {
                v0_9.zzu(0);
                v18_1.zzjt().zza(v0_9);
                v18_1.zzls().zzcj(p19.packageName);
            }
            if (p19.zzafr) {
                long v5_6 = p19.zzago;
                if (v5_6 == 0) {
                    v5_6 = this.zzada.zzbx().currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_76 = p19.zzagp;
                if ((v0_76 == null) || (v0_76 == 1)) {
                    v15_3 = v0_76;
                } else {
                    this.zzada.zzgt().zzjj().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.measurement.internal.zzas.zzbw(p19.packageName), Integer.valueOf(v0_76));
                    v15_3 = 0;
                }
                v18_1.zzjt().beginTransaction();
                try {
                    String v0_8 = v18_1.zzjt().zzbm(p19.packageName);
                } catch (String v0_83) {
                    v18_1.zzjt().endTransaction();
                    throw v0_83;
                }
                if (v0_8 != null) {
                    this.zzada.zzgr();
                    if (com.google.android.gms.measurement.internal.zzfx.zza(p19.zzafi, v0_8.getGmpAppId(), p19.zzafv, v0_8.zzhb())) {
                        this.zzada.zzgt().zzjj().zzg("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v0_8.zzal()));
                        com.google.android.gms.measurement.internal.zzfu v7_0 = v18_1.zzjt();
                        String v8_0 = v0_8.zzal();
                        v7_0.zzcl();
                        v7_0.zzaf();
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v8_0);
                        try {
                            String v0_0 = v7_0.getWritableDatabase();
                            long v9_0 = new String[1];
                            v9_0[0] = v8_0;
                            String v10_10 = (((((((((v0_0.delete("events", "app_id=?", v9_0) + 0) + v0_0.delete("user_attributes", "app_id=?", v9_0)) + v0_0.delete("conditional_properties", "app_id=?", v9_0)) + v0_0.delete("apps", "app_id=?", v9_0)) + v0_0.delete("raw_events", "app_id=?", v9_0)) + v0_0.delete("raw_events_metadata", "app_id=?", v9_0)) + v0_0.delete("event_filters", "app_id=?", v9_0)) + v0_0.delete("property_filters", "app_id=?", v9_0)) + v0_0.delete("audience_filter_values", "app_id=?", v9_0));
                        } catch (String v0_4) {
                            v7_0.zzgt().zzjg().zze("Error deleting application data. appId, error", com.google.android.gms.measurement.internal.zzas.zzbw(v8_0), v0_4);
                            v0_8 = 0;
                        }
                        if (v10_10 <= null) {
                        } else {
                            v7_0.zzgt().zzjo().zze("Deleted application data. app, records", v8_0, Integer.valueOf(v10_10));
                        }
                    }
                }
                if (v0_8 != null) {
                    if (v0_8.zzhf() == -2147483648) {
                        if ((v0_8.zzak() != null) && (!v0_8.zzak().equals(p19.zzts))) {
                            com.google.android.gms.measurement.internal.zzfu v7_8 = new android.os.Bundle();
                            v7_8.putString("_pv", v0_8.zzak());
                            String v0_11 = new com.google.android.gms.measurement.internal.zzag;
                            v0_11("_au", new com.google.android.gms.measurement.internal.zzad(v7_8), "auto", v5_6);
                            this.zzc(v0_11, p19);
                        }
                    } else {
                        if (v0_8.zzhf() != p19.zzafo) {
                            com.google.android.gms.measurement.internal.zzfu v7_12 = new android.os.Bundle();
                            v7_12.putString("_pv", v0_8.zzak());
                            String v0_13 = new com.google.android.gms.measurement.internal.zzag;
                            v0_13("_au", new com.google.android.gms.measurement.internal.zzad(v7_12), "auto", v5_6);
                            this.zzc(v0_13, p19);
                        }
                    }
                }
                String v0_14;
                v18_1.zzg(p19);
                if (v15_3 != null) {
                    if (v15_3 != 1) {
                        v0_14 = 0;
                    } else {
                        v0_14 = v18_1.zzjt().zzg(p19.packageName, "_v");
                    }
                } else {
                    v0_14 = v18_1.zzjt().zzg(p19.packageName, "_f");
                }
                if (v0_14 != null) {
                    if (p19.zzagn) {
                        com.google.android.gms.measurement.internal.zzfu v3_2 = new com.google.android.gms.measurement.internal.zzag;
                        v3_2("_cd", new com.google.android.gms.measurement.internal.zzad(new android.os.Bundle()), "auto", v5_6);
                        this.zzc(v3_2, p19);
                    }
                } else {
                    Long v13_0;
                    long v9_13 = (((v5_6 / 3600000) + 1) * 3600000);
                    if (v15_3 != null) {
                        v13_0 = 1;
                        if (v15_3 == 1) {
                            String v0_20 = new com.google.android.gms.measurement.internal.zzfu;
                            v0_20("_fvt", v5_6, Long.valueOf(v9_13), "auto");
                            this.zzb(v0_20, p19);
                            v18_1 = v18_1.zzaf();
                            v18_1.zzlx();
                            String v0_22 = new android.os.Bundle();
                            v0_22.putLong("_c", 1);
                            v0_22.putLong("_r", 1);
                            if (this.zzada.zzgv().zzbk(p19.packageName)) {
                                v0_22.putLong("_et", 1);
                            }
                            if ((this.zzada.zzgv().zzba(p19.packageName)) && (p19.zzagq)) {
                                v0_22.putLong("_dac", 1);
                            }
                            com.google.android.gms.measurement.internal.zzfu v3_15 = new com.google.android.gms.measurement.internal.zzag;
                            v3_15("_v", new com.google.android.gms.measurement.internal.zzad(v0_22), "auto", v5_6);
                            this.zzc(v3_15, p19);
                        }
                    } else {
                        String v0_23 = new com.google.android.gms.measurement.internal.zzfu;
                        v13_0 = 1;
                        v0_23("_fot", v5_6, Long.valueOf(v9_13), "auto");
                        this.zzb(v0_23, p19);
                        if (this.zzada.zzgv().zzbe(p19.zzafi)) {
                            v18_1 = v18_1.zzaf();
                            this.zzada.zzkk().zzce(p19.packageName);
                        }
                        v18_1 = v18_1.zzaf();
                        v18_1.zzlx();
                        android.os.Bundle v15_2 = new android.os.Bundle();
                        v15_2.putLong("_c", 1);
                        v15_2.putLong("_r", 1);
                        v15_2.putLong("_uwa", 0);
                        v15_2.putLong("_pfo", 0);
                        v15_2.putLong("_sys", 0);
                        v15_2.putLong("_sysu", 0);
                        if (this.zzada.zzgv().zzbk(p19.packageName)) {
                            v15_2.putLong("_et", 1);
                        }
                        if ((this.zzada.zzgv().zzba(p19.packageName)) && (p19.zzagq)) {
                            v15_2.putLong("_dac", 1);
                        }
                        if (this.zzada.getContext().getPackageManager() != null) {
                            try {
                                String v0_51 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzada.getContext()).getPackageInfo(p19.packageName, 0);
                            } catch (String v0_52) {
                                this.zzada.zzgt().zzjg().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p19.packageName), v0_52);
                                v0_51 = 0;
                            }
                            if ((v0_51 != null) && (v0_51.firstInstallTime != 0)) {
                                String v0_55;
                                if (v0_51.firstInstallTime == v0_51.lastUpdateTime) {
                                    v0_55 = 1;
                                } else {
                                    v15_2.putLong("_uwa", 1);
                                    v0_55 = 0;
                                }
                                long v9_22;
                                String v12_10 = new com.google.android.gms.measurement.internal.zzfu;
                                if (v0_55 == null) {
                                    v9_22 = 0;
                                } else {
                                    v9_22 = 1;
                                }
                                com.google.android.gms.measurement.internal.zzfu v3_16 = v12_10;
                                v12_10("_fi", v5_6, Long.valueOf(v9_22), "auto");
                                this.zzb(v3_16, p19);
                            }
                            try {
                                android.content.pm.ApplicationInfo v16_0 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzada.getContext()).getApplicationInfo(p19.packageName, 0);
                                String v0_62 = v16_0;
                            } catch (String v0_63) {
                                this.zzada.zzgt().zzjg().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p19.packageName), v0_63);
                                v0_62 = v16_0;
                            }
                            if (v0_62 != null) {
                                if ((v0_62.flags & 1) != 0) {
                                    v15_2.putLong("_sys", 1);
                                }
                                if ((v0_62.flags & 128) != 0) {
                                    v15_2.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.zzada.zzgt().zzjg().zzg("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p19.packageName));
                        }
                        String v0_72 = v18_1.zzjt();
                        com.google.android.gms.measurement.internal.zzfu v3_24 = p19.packageName;
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_24);
                        v0_72.zzaf();
                        v0_72.zzcl();
                        com.google.android.gms.measurement.internal.zzfu v3_25 = v0_72.zzn(v3_24, "first_open_count");
                        if (v3_25 >= 0) {
                            v15_2.putLong("_pfo", v3_25);
                        }
                        String v0_75 = new com.google.android.gms.measurement.internal.zzag;
                        v0_75("_f", new com.google.android.gms.measurement.internal.zzad(v15_2), "auto", v5_6);
                        this.zzc(v0_75, p19);
                    }
                    if (!this.zzada.zzgv().zze(p19.packageName, com.google.android.gms.measurement.internal.zzai.zzalc)) {
                        String v0_82 = new android.os.Bundle();
                        v0_82.putLong("_et", v13_0);
                        if (this.zzada.zzgv().zzbk(p19.packageName)) {
                            v0_82.putLong("_fr", v13_0);
                        }
                        com.google.android.gms.measurement.internal.zzfu v3_32 = new com.google.android.gms.measurement.internal.zzag;
                        v3_32("_e", new com.google.android.gms.measurement.internal.zzad(v0_82), "auto", v5_6);
                        this.zzc(v3_32, p19);
                    }
                }
                v18_1.zzjt().setTransactionSuccessful();
                v18_1.zzjt().endTransaction();
                return;
            } else {
                v18_1.zzg(p19);
                return;
            }
        } else {
            return;
        }
    }

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


    final void zzd(com.google.android.gms.measurement.internal.zzk p12)
    {
        if (this.zzauc != null) {
            this.zzaud = new java.util.ArrayList();
            this.zzaud.addAll(this.zzauc);
        }
        com.google.android.gms.measurement.internal.zzk v0_7 = this.zzjt();
        boolean v1_0 = p12.packageName;
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v1_0);
        v0_7.zzaf();
        v0_7.zzcl();
        try {
            String v2_0 = v0_7.getWritableDatabase();
            String v3_1 = new String[1];
            v3_1[0] = v1_0;
            boolean v5_10 = (((((((((v2_0.delete("apps", "app_id=?", v3_1) + 0) + v2_0.delete("events", "app_id=?", v3_1)) + v2_0.delete("user_attributes", "app_id=?", v3_1)) + v2_0.delete("conditional_properties", "app_id=?", v3_1)) + v2_0.delete("raw_events", "app_id=?", v3_1)) + v2_0.delete("raw_events_metadata", "app_id=?", v3_1)) + v2_0.delete("queue", "app_id=?", v3_1)) + v2_0.delete("audience_filter_values", "app_id=?", v3_1)) + v2_0.delete("main_event_params", "app_id=?", v3_1));
        } catch (String v2_2) {
            v0_7.zzgt().zzjg().zze("Error resetting analytics data. appId, error", com.google.android.gms.measurement.internal.zzas.zzbw(v1_0), v2_2);
            com.google.android.gms.measurement.internal.zzk v0_8 = this.zza(this.zzada.getContext(), p12.packageName, p12.zzafi, p12.zzafr, p12.zzaft, p12.zzafu, p12.zzago, p12.zzafv);
            if ((!this.zzada.zzgv().zzba(p12.packageName)) || (p12.zzafr)) {
                this.zzf(v0_8);
            }
            return;
        }
        if (v5_10) {
        } else {
            v0_7.zzgt().zzjo().zze("Reset analytics data. app, records", v1_0, Integer.valueOf(v5_10));
        }
    }

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


    final void zza(int p10, Throwable p11, byte[] p12, String p13)
    {
        this.zzaf();
        this.zzlx();
        try {
            if (p12 == null) {
                p12 = new byte[0];
            }
        } catch (long v10_14) {
            this.zzaty = 0;
            this.zzmc();
            throw v10_14;
        }
        String v1_3 = this.zzauc;
        this.zzauc = 0;
        int v4 = 1;
        if (((p10 != 200) && (p10 != 204)) || (p11)) {
            this.zzada.zzgt().zzjo().zze("Network upload failed. Will retry later. code, error", Integer.valueOf(p10), p11);
            this.zzada.zzgu().zzand.set(this.zzada.zzbx().currentTimeMillis());
            if (p10 != 503) {
                if (p10 != 429) {
                    v4 = 0;
                } else {
                }
            }
            if (v4 != 0) {
                this.zzada.zzgu().zzane.set(this.zzada.zzbx().currentTimeMillis());
            }
            if (this.zzada.zzgv().zzaw(p13)) {
                this.zzjt().zzc(v1_3);
            }
            this.zzmb();
        } else {
            try {
                this.zzada.zzgu().zzanc.set(this.zzada.zzbx().currentTimeMillis());
                this.zzada.zzgu().zzand.set(0);
                this.zzmb();
                this.zzada.zzgt().zzjo().zze("Successful upload. Got network response. code, size", Integer.valueOf(p10), Integer.valueOf(p12.length));
                this.zzjt().beginTransaction();
            } catch (long v10_7) {
                this.zzada.zzgt().zzjg().zzg("Database error while trying to delete uploaded bundles", v10_7);
                this.zzatt = this.zzada.zzbx().elapsedRealtime();
                this.zzada.zzgt().zzjo().zzg("Disable upload, time", Long.valueOf(this.zzatt));
            }
            long v10_24 = v1_3.iterator();
            while (v10_24.hasNext()) {
                boolean v11_2 = ((Long) v10_24.next());
                try {
                    com.google.android.gms.measurement.internal.zzau v12_1 = this.zzjt();
                    String v7_0 = v11_2.longValue();
                    v12_1.zzaf();
                    v12_1.zzcl();
                    java.util.List v13_1 = v12_1.getWritableDatabase();
                    String v1_0 = new String[1];
                    v1_0[0] = String.valueOf(v7_0);
                    try {
                        if (v13_1.delete("queue", "rowid=?", v1_0) != 1) {
                            throw new android.database.sqlite.SQLiteException("Deleted fewer rows from queue than expected");
                        } else {
                        }
                    } catch (java.util.List v13_5) {
                        v12_1.zzgt().zzjg().zzg("Failed to delete a bundle in a queue table", v13_5);
                        throw v13_5;
                    }
                } catch (com.google.android.gms.measurement.internal.zzau v12_5) {
                    if (this.zzaud != null) {
                        if (this.zzaud.contains(v11_2)) {
                        }
                    }
                    throw v12_5;
                }
            }
            this.zzjt().setTransactionSuccessful();
            this.zzjt().endTransaction();
            this.zzaud = 0;
            if ((!this.zzlt().zzfb()) || (!this.zzma())) {
                this.zzaue = -1;
                this.zzmb();
            } else {
                this.zzlz();
            }
            this.zzatt = 0;
        }
        this.zzaty = 0;
        this.zzmc();
        return;
    }

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


    private final boolean zzd(String p46, long p47)
    {
        String v1_0 = this;
        this.zzjt().beginTransaction();
        try {
            com.google.android.gms.measurement.internal.zzac v3_10 = 0;
            int v2_1 = new com.google.android.gms.measurement.internal.zzfn$zza(this, 0);
            Object v4_28 = this.zzjt();
            String v5_61 = this.zzaue;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_1);
            v4_28.zzaf();
            v4_28.zzcl();
            try {
                int v7_2;
                String v23_1;
                Long v15_3 = v4_28.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        int v13_46;
                        com.google.android.gms.measurement.internal.zzac v3_79 = v5_61 cmp -1;
                        if (v3_79 == null) {
                            v13_46 = new String[] {0});
                        } else {
                            int v7_72 = new String[2];
                            v7_72[0] = 0;
                            v7_72[1] = String.valueOf(v5_61);
                            v13_46 = v7_72;
                        }
                        com.google.android.gms.measurement.internal.zzac v3_84;
                        if (v3_79 == null) {
                            v3_84 = "";
                        } else {
                            v3_84 = " and rowid <= ?";
                        }
                        boolean v14_16 = new StringBuilder((String.valueOf(v3_84).length() + 84));
                        v14_16.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_16.append(v3_84);
                        v14_16.append(" order by rowid limit 1;");
                        v3_10 = v15_3.rawQuery(v14_16.toString(), v13_46);
                        if (v3_10.moveToFirst()) {
                            int v13_51 = v3_10.getString(0);
                            v3_10.close();
                            v23_1 = v3_10;
                            v7_2 = v13_51;
                            v3_10 = 0;
                            try {
                                int v13_14 = new String[2];
                                v13_14[0] = v3_10;
                                v13_14[1] = v7_2;
                                String v25_2 = v15_3;
                                Long v15_2 = v15_3.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_14, 0, 0, "rowid", "2");
                                try {
                                    if (v15_2.moveToFirst()) {
                                        int v13_28 = v15_2.getBlob(0);
                                        int v13_29 = com.google.android.gms.internal.measurement.zzxz.zzj(v13_28, 0, v13_28.length);
                                        boolean v14_10 = new com.google.android.gms.internal.measurement.zzfw();
                                        try {
                                            v14_10.zza(v13_29);
                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                            long v6_3 = v15_2;
                                            v4_28.zzgt().zzjg().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10), v0_3);
                                            if (v6_3 == 0) {
                                                com.google.android.gms.measurement.internal.zzac v3_83;
                                                if (v2_1.zzauk == null) {
                                                    v3_83 = 1;
                                                } else {
                                                    if (!v2_1.zzauk.isEmpty()) {
                                                        v3_83 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_83 != null) {
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.measurement.internal.zzac v3_9 = v2_1.zzaui;
                                                    Object v4_4 = new com.google.android.gms.internal.measurement.zzft[v2_1.zzauk.size()];
                                                    v3_9.zzaxk = v4_4;
                                                    Object v4_7 = this.zzada.zzgv().zzau(v3_9.zztt);
                                                    String v5_13 = this.zzada.zzgv().zze(v2_1.zzaui.zztt, com.google.android.gms.measurement.internal.zzai.zzalc);
                                                    Boolean v8_14 = 0;
                                                    Object v9_7 = 0;
                                                    boolean v10_55 = 0;
                                                    Long v12_66 = 0;
                                                    int v13_34 = 0;
                                                    boolean v14_12 = 0;
                                                    while (v10_55 < v2_1.zzauk.size()) {
                                                        int v18_0;
                                                        String v23_2;
                                                        long v6_17 = ((com.google.android.gms.internal.measurement.zzft) v2_1.zzauk.get(v10_55));
                                                        boolean v21_0 = v12_66;
                                                        if (!this.zzls().zzo(v2_1.zzaui.zztt, v6_17.name)) {
                                                            long v29_0;
                                                            int v26_1;
                                                            v23_2 = v10_55;
                                                            String v25_1 = v13_34;
                                                            int v7_21 = this.zzls().zzp(v2_1.zzaui.zztt, v6_17.name);
                                                            if (v7_21 != 0) {
                                                                if (v6_17.zzaxc == null) {
                                                                    Long v12_20 = new com.google.android.gms.internal.measurement.zzfu[0];
                                                                    v6_17.zzaxc = v12_20;
                                                                }
                                                                int v11_12 = v6_17.zzaxc;
                                                                Long v12_21 = v11_12.length;
                                                                int v13_9 = 0;
                                                                int v26_2 = 0;
                                                                long v27_1 = 0;
                                                                while (v13_9 < v12_21) {
                                                                    boolean v10_46 = v11_12[v13_9];
                                                                    long v29_4 = v11_12;
                                                                    com.google.android.gms.measurement.internal.zzac v30_2 = v12_21;
                                                                    if (!"_c".equals(v10_46.name)) {
                                                                        if ("_r".equals(v10_46.name)) {
                                                                            v10_46.zzaxg = Long.valueOf(1);
                                                                            v27_1 = 1;
                                                                        }
                                                                    } else {
                                                                        v10_46.zzaxg = Long.valueOf(1);
                                                                        v26_2 = 1;
                                                                    }
                                                                    v13_9++;
                                                                    v11_12 = v29_4;
                                                                    v12_21 = v30_2;
                                                                }
                                                                if ((v26_2 == 0) && (v7_21 != 0)) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as conversion", this.zzada.zzgq().zzbt(v6_17.name));
                                                                    boolean v10_9 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_17.zzaxc, (v6_17.zzaxc.length + 1)));
                                                                    int v11_18 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v11_18.name = "_c";
                                                                    v11_18.zzaxg = Long.valueOf(1);
                                                                    v10_9[(v10_9.length - 1)] = v11_18;
                                                                    v6_17.zzaxc = v10_9;
                                                                }
                                                                if (v27_1 == 0) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as real-time", this.zzada.zzgq().zzbt(v6_17.name));
                                                                    boolean v10_15 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_17.zzaxc, (v6_17.zzaxc.length + 1)));
                                                                    int v11_24 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v11_24.name = "_r";
                                                                    v11_24.zzaxg = Long.valueOf(1);
                                                                    v10_15[(v10_15.length - 1)] = v11_24;
                                                                    v6_17.zzaxc = v10_15;
                                                                }
                                                                Long v12_42;
                                                                if (this.zzjt().zza(this.zzly(), v2_1.zzaui.zztt, 0, 0, 0, 0, 1).zzahl <= ((long) this.zzada.zzgv().zzaq(v2_1.zzaui.zztt))) {
                                                                    v26_1 = v3_9;
                                                                    v12_42 = 1;
                                                                } else {
                                                                    boolean v10_20 = 0;
                                                                    while (v10_20 < v6_17.zzaxc.length) {
                                                                        if (!"_r".equals(v6_17.zzaxc[v10_20].name)) {
                                                                            v10_20++;
                                                                        } else {
                                                                            int v11_32 = new com.google.android.gms.internal.measurement.zzfu[(v6_17.zzaxc.length - 1)];
                                                                            if (v10_20) {
                                                                                System.arraycopy(v6_17.zzaxc, 0, v11_32, 0, v10_20);
                                                                            }
                                                                            if (v10_20 >= v11_32.length) {
                                                                                v26_1 = v3_9;
                                                                            } else {
                                                                                v26_1 = v3_9;
                                                                                System.arraycopy(v6_17.zzaxc, (v10_20 + 1), v11_32, v10_20, (v11_32.length - v10_20));
                                                                            }
                                                                            v6_17.zzaxc = v11_32;
                                                                        }
                                                                        v12_42 = v21_0;
                                                                    }
                                                                    v26_1 = v3_9;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.zzfx.zzct(v6_17.name)) || (v7_21 == 0)) {
                                                                    v18_0 = v12_42;
                                                                    v29_0 = v14_12;
                                                                } else {
                                                                    v18_0 = v12_42;
                                                                    if (this.zzjt().zza(this.zzly(), v2_1.zzaui.zztt, 0, 0, 1, 0, 0).zzahj <= ((long) this.zzada.zzgv().zzb(v2_1.zzaui.zztt, com.google.android.gms.measurement.internal.zzai.zzajh))) {
                                                                        v29_0 = v14_12;
                                                                    } else {
                                                                        this.zzada.zzgt().zzjj().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                        com.google.android.gms.measurement.internal.zzac v3_25 = v6_17.zzaxc;
                                                                        boolean v10_24 = v3_25.length;
                                                                        int v11_36 = 0;
                                                                        Long v12_52 = 0;
                                                                        int v13_23 = 0;
                                                                        while (v11_36 < v10_24) {
                                                                            boolean v10_43 = v3_25[v11_36];
                                                                            if (!"_c".equals(v10_43.name)) {
                                                                                if ("_err".equals(v10_43.name)) {
                                                                                    v12_52 = 1;
                                                                                }
                                                                            } else {
                                                                                v13_23 = v10_43;
                                                                            }
                                                                            v11_36++;
                                                                        }
                                                                        v29_0 = v14_12;
                                                                        if ((v12_52 == null) || (v13_23 == 0)) {
                                                                            if (v13_23 == 0) {
                                                                                this.zzada.zzgt().zzjg().zzg("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                            } else {
                                                                                v13_23.name = "_err";
                                                                                v13_23.zzaxg = Long.valueOf(10);
                                                                            }
                                                                        } else {
                                                                            com.google.android.gms.measurement.internal.zzac v3_31 = v6_17.zzaxc;
                                                                            int v11_40 = new com.google.android.gms.internal.measurement.zzfu[1];
                                                                            v11_40[0] = v13_23;
                                                                            v6_17.zzaxc = ((com.google.android.gms.internal.measurement.zzfu[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v3_31, v11_40));
                                                                        }
                                                                    }
                                                                }
                                                            } else {
                                                                int v11_6;
                                                                this.zzjr();
                                                                int v11_4 = v6_17.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v11_4);
                                                                Long v12_16 = v11_4.hashCode();
                                                                if (v12_16 == 94660) {
                                                                    if (!v11_4.equals("_in")) {
                                                                        v11_6 = -1;
                                                                    } else {
                                                                        v11_6 = 0;
                                                                    }
                                                                } else {
                                                                    if (v12_16 == 95025) {
                                                                        if (!v11_4.equals("_ug")) {
                                                                        } else {
                                                                            v11_6 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v12_16 == 95027) {
                                                                            if (!v11_4.equals("_ui")) {
                                                                            } else {
                                                                                v11_6 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v11_9;
                                                                switch (v11_6) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v11_9 = 1;
                                                                    default:
                                                                        v11_9 = 0;
                                                                }
                                                                if (v11_9 == 0) {
                                                                    v26_1 = v3_9;
                                                                    v29_0 = v14_12;
                                                                    v18_0 = v21_0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzada.zzgv().zzbd(v2_1.zzaui.zztt)) || (v7_21 == 0)) {
                                                            } else {
                                                                com.google.android.gms.measurement.internal.zzac v3_37 = v6_17.zzaxc;
                                                                int v7_22 = 0;
                                                                boolean v10_31 = -1;
                                                                int v11_41 = -1;
                                                                while (v7_22 < v3_37.length) {
                                                                    if (!"value".equals(v3_37[v7_22].name)) {
                                                                        if ("currency".equals(v3_37[v7_22].name)) {
                                                                            v11_41 = v7_22;
                                                                        }
                                                                    } else {
                                                                        v10_31 = v7_22;
                                                                    }
                                                                    v7_22++;
                                                                }
                                                                if (v10_31 == -1) {
                                                                } else {
                                                                    if ((v3_37[v10_31].zzaxg != null) || (v3_37[v10_31].zzaup != null)) {
                                                                        int v7_31;
                                                                        if (v11_41 != -1) {
                                                                            int v7_30 = v3_37[v11_41].zzamn;
                                                                            if (v7_30 == 0) {
                                                                            } else {
                                                                                if (v7_30.length() == 3) {
                                                                                    int v11_44 = 0;
                                                                                    while (v11_44 < v7_30.length()) {
                                                                                        int v13_25 = v7_30.codePointAt(v11_44);
                                                                                        if (Character.isLetter(v13_25)) {
                                                                                            v11_44 += Character.charCount(v13_25);
                                                                                        } else {
                                                                                            v7_31 = 1;
                                                                                            if (v7_31 != 0) {
                                                                                                this.zzada.zzgt().zzjl().zzby("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                                v3_37 = com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(v3_37, v10_31), "_c"), 19, "currency");
                                                                                            }
                                                                                            v6_17.zzaxc = v3_37;
                                                                                            if (this.zzada.zzgv().zze(v2_1.zzaui.zztt, com.google.android.gms.measurement.internal.zzai.zzalb)) {
                                                                                                if (!"_e".equals(v6_17.name)) {
                                                                                                    if ("_vs".equals(v6_17.name)) {
                                                                                                        this.zzjr();
                                                                                                        if (com.google.android.gms.measurement.internal.zzft.zza(v6_17, "_et") == null) {
                                                                                                            if ((v8_14 == null) || ((Math.abs((v8_14.zzaxd.longValue() - v6_17.zzaxd.longValue())) > 1000) || (!this.zza(v8_14, v6_17)))) {
                                                                                                                v9_7 = v6_17;
                                                                                                            } else {
                                                                                                                v8_14 = 0;
                                                                                                                v9_7 = 0;
                                                                                                            }
                                                                                                        }
                                                                                                    }
                                                                                                } else {
                                                                                                    this.zzjr();
                                                                                                    if (com.google.android.gms.measurement.internal.zzft.zza(v6_17, "_fr") == null) {
                                                                                                        if ((v9_7 == null) || ((Math.abs((v9_7.zzaxd.longValue() - v6_17.zzaxd.longValue())) > 1000) || (!this.zza(v6_17, v9_7)))) {
                                                                                                            v8_14 = v6_17;
                                                                                                        } else {
                                                                                                            v8_14 = 0;
                                                                                                            v9_7 = 0;
                                                                                                        }
                                                                                                    }
                                                                                                }
                                                                                            }
                                                                                            if ((v4_7 == null) || ((v5_13 != null) || (!"_e".equals(v6_17.name)))) {
                                                                                                v3_9 = v26_1;
                                                                                            } else {
                                                                                                if (v6_17.zzaxc != null) {
                                                                                                    if (v6_17.zzaxc.length != 0) {
                                                                                                        this.zzjr();
                                                                                                        com.google.android.gms.measurement.internal.zzac v3_68 = ((Long) com.google.android.gms.measurement.internal.zzft.zzb(v6_17, "_et"));
                                                                                                        if (v3_68 != null) {
                                                                                                            v29_0 += v3_68.longValue();
                                                                                                            v3_9 = v26_1;
                                                                                                            v13_34 = (v25_1 + 1);
                                                                                                            v3_9.zzaxk[v25_1] = v6_17;
                                                                                                            v14_12 = v29_0;
                                                                                                            v10_55 = (v23_2 + 1);
                                                                                                            v12_66 = v18_0;
                                                                                                        } else {
                                                                                                            this.zzada.zzgt().zzjj().zzg("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                                                        }
                                                                                                    } else {
                                                                                                    }
                                                                                                }
                                                                                                this.zzada.zzgt().zzjj().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                    v7_31 = 0;
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v7_31 = 1;
                                                                        } else {
                                                                            v7_31 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzada.zzgt().zzjl().zzby("Value must be specified with a numeric type.");
                                                                        v3_37 = com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(v3_37, v10_31), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            int v7_62;
                                                            v23_2 = v10_55;
                                                            String v25_3 = v13_34;
                                                            this.zzada.zzgt().zzjj().zze("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt), this.zzada.zzgq().zzbt(v6_17.name));
                                                            if (this.zzls().zzcl(v2_1.zzaui.zztt)) {
                                                                v7_62 = 1;
                                                            } else {
                                                                if (!this.zzls().zzcm(v2_1.zzaui.zztt)) {
                                                                    v7_62 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v7_62 == 0) && (!"_err".equals(v6_17.name))) {
                                                                this.zzada.zzgr().zza(v2_1.zzaui.zztt, 11, "_ev", v6_17.name, 0);
                                                            }
                                                            v18_0 = v21_0;
                                                            v13_34 = v25_3;
                                                        }
                                                    }
                                                    int v13_5;
                                                    boolean v21_4 = v12_66;
                                                    String v25_4 = v13_34;
                                                    long v29_6 = v14_12;
                                                    if (v5_13 == null) {
                                                        v13_5 = v25_4;
                                                    } else {
                                                        v13_5 = v25_4;
                                                        boolean v14_5 = v29_6;
                                                        String v5_0 = 0;
                                                        while (v5_0 < v13_5) {
                                                            long v6_12;
                                                            long v6_9 = v3_9.zzaxk[v5_0];
                                                            if (!"_e".equals(v6_9.name)) {
                                                                if (v4_7 != null) {
                                                                    this.zzjr();
                                                                    long v6_10 = com.google.android.gms.measurement.internal.zzft.zza(v6_9, "_et");
                                                                    if (v6_10 != 0) {
                                                                        long v6_11 = v6_10.zzaxg;
                                                                        if ((v6_11 != 0) && (v6_11.longValue() > 0)) {
                                                                            v14_5 += v6_11.longValue();
                                                                            v6_12 = 1;
                                                                            v5_0 += v6_12;
                                                                        }
                                                                    }
                                                                }
                                                                v6_12 = 1;
                                                            } else {
                                                                this.zzjr();
                                                                if (com.google.android.gms.measurement.internal.zzft.zza(v6_9, "_fr") == null) {
                                                                } else {
                                                                    System.arraycopy(v3_9.zzaxk, (v5_0 + 1), v3_9.zzaxk, v5_0, ((v13_5 - v5_0) - 1));
                                                                    v13_5--;
                                                                    v5_0--;
                                                                    v6_12 = 1;
                                                                }
                                                            }
                                                        }
                                                        v29_6 = v14_5;
                                                    }
                                                    if (v13_5 < v2_1.zzauk.size()) {
                                                        v3_9.zzaxk = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v3_9.zzaxk, v13_5));
                                                    }
                                                    if (v4_7 != null) {
                                                        Object v4_12;
                                                        Object v4_9 = this.zzjt().zzi(v3_9.zztt, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.measurement.internal.zzfw;
                                                            v4_12(v3_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf(v29_6));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                String v5_21 = new com.google.android.gms.measurement.internal.zzfw;
                                                                v5_21(v3_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v29_6)));
                                                                v4_12 = v5_21;
                                                            } else {
                                                            }
                                                        }
                                                        String v5_24 = new com.google.android.gms.internal.measurement.zzfz();
                                                        v5_24.name = "_lte";
                                                        v5_24.zzayw = Long.valueOf(this.zzada.zzbx().currentTimeMillis());
                                                        v5_24.zzaxg = ((Long) v4_12.value);
                                                        long v6_48 = 0;
                                                        while (v6_48 < v3_9.zzaxl.length) {
                                                            if (!"_lte".equals(v3_9.zzaxl[v6_48].name)) {
                                                                v6_48++;
                                                            } else {
                                                                v3_9.zzaxl[v6_48] = v5_24;
                                                                long v6_49 = 1;
                                                            }
                                                            String v5_25;
                                                            if (v6_49 != 0) {
                                                                v5_25 = 0;
                                                            } else {
                                                                v3_9.zzaxl = ((com.google.android.gms.internal.measurement.zzfz[]) java.util.Arrays.copyOf(v3_9.zzaxl, (v3_9.zzaxl.length + 1)));
                                                                v3_9.zzaxl[(v2_1.zzaui.zzaxl.length - 1)] = v5_24;
                                                                v5_25 = 0;
                                                            }
                                                            if (v29_6 > v5_25) {
                                                                this.zzjt().zza(v4_12);
                                                                this.zzada.zzgt().zzjn().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_49 = 0;
                                                    }
                                                    String v1_7;
                                                    Object v9_9;
                                                    Object v4_14 = v3_9.zztt;
                                                    String v5_30 = v3_9.zzaxl;
                                                    long v6_55 = v3_9.zzaxk;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v4_14);
                                                    v3_9.zzayc = this.zzjs().zza(v4_14, v6_55, v5_30);
                                                    try {
                                                        if (!this.zzada.zzgv().zzat(v2_1.zzaui.zztt)) {
                                                            v9_9 = v2_1;
                                                            v1_7 = v3_9;
                                                        } else {
                                                            Object v4_20 = new java.util.HashMap();
                                                            String v5_35 = new com.google.android.gms.internal.measurement.zzft[v3_9.zzaxk.length];
                                                            long v6_7 = this.zzada.zzgr().zzmk();
                                                            int v7_10 = v3_9.zzaxk;
                                                            Boolean v8_10 = v7_10.length;
                                                            Object v9_3 = 0;
                                                            boolean v10_0 = 0;
                                                            while (v9_3 < v8_10) {
                                                                int v26_0;
                                                                Object v9_1;
                                                                long v27_0;
                                                                String v25_0;
                                                                String v23_0;
                                                                int v11_55 = v7_10[v9_3];
                                                                if (!v11_55.name.equals("_ep")) {
                                                                    long v28_1;
                                                                    com.google.android.gms.measurement.internal.zzac v3_122;
                                                                    Long v12_81 = this.zzls().zzck(v2_1.zzaui.zztt);
                                                                    v1_0.zzada.zzgr();
                                                                    boolean v14_21 = com.google.android.gms.measurement.internal.zzfx.zzc(v11_55.zzaxd.longValue(), v12_81);
                                                                    v23_0 = v7_10;
                                                                    v25_0 = v8_10;
                                                                    Boolean v8_24 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v8_24 != null)) {
                                                                        v26_0 = v3_9;
                                                                        com.google.android.gms.measurement.internal.zzac v3_121 = v11_55.zzaxc;
                                                                        v27_0 = v9_3;
                                                                        Object v9_10 = v3_121.length;
                                                                        v28_1 = v12_81;
                                                                        Long v12_82 = 0;
                                                                        while (v12_82 < v9_10) {
                                                                            int v13_57 = v3_121[v12_82];
                                                                            if (!"_dbg".equals(v13_57.name)) {
                                                                                v12_82++;
                                                                            } else {
                                                                                if (((!(v8_24 instanceof Long)) || (!v8_24.equals(v13_57.zzaxg))) && (((!(v8_24 instanceof String)) || (!v8_24.equals(v13_57.zzamn))) && ((!(v8_24 instanceof Double)) || (!v8_24.equals(v13_57.zzaup))))) {
                                                                                    v3_122 = 0;
                                                                                } else {
                                                                                    v3_122 = 1;
                                                                                }
                                                                            }
                                                                        }
                                                                        v3_122 = 0;
                                                                    } else {
                                                                        v26_0 = v3_9;
                                                                        v27_0 = v9_3;
                                                                        v28_1 = v12_81;
                                                                        v3_122 = 0;
                                                                    }
                                                                    Long v12_83;
                                                                    if (v3_122 != null) {
                                                                        v12_83 = 1;
                                                                    } else {
                                                                        v12_83 = this.zzls().zzq(v2_1.zzaui.zztt, v11_55.name);
                                                                    }
                                                                    if (v12_83 > null) {
                                                                        com.google.android.gms.measurement.internal.zzac v3_1 = ((com.google.android.gms.measurement.internal.zzac) v4_20.get(v11_55.name));
                                                                        if (v3_1 == null) {
                                                                            v3_1 = this.zzjt().zzg(v2_1.zzaui.zztt, v11_55.name);
                                                                            if (v3_1 == null) {
                                                                                v1_0.zzada.zzgt().zzjj().zze("Event being bundled has no eventAggregate. appId, eventName", v2_1.zzaui.zztt, v11_55.name);
                                                                                v3_1 = new com.google.android.gms.measurement.internal.zzac;
                                                                                v3_1(v2_1.zzaui.zztt, v11_55.name, 1, 1, v11_55.zzaxd.longValue(), 0, 0, 0, 0, 0);
                                                                            }
                                                                        }
                                                                        Boolean v8_30;
                                                                        this.zzjr();
                                                                        int v7_122 = ((Long) com.google.android.gms.measurement.internal.zzft.zzb(v11_55, "_eid"));
                                                                        if (v7_122 == 0) {
                                                                            v8_30 = 0;
                                                                        } else {
                                                                            v8_30 = 1;
                                                                        }
                                                                        Boolean v8_31 = Boolean.valueOf(v8_30);
                                                                        if (v12_83 != 1) {
                                                                            if (v6_7.nextInt(v12_83) != 0) {
                                                                                p46 = v6_7;
                                                                                int v13_58;
                                                                                String v1_19;
                                                                                if (!v1_0.zzada.zzgv().zzbf(v2_1.zzaui.zztt)) {
                                                                                    v9_1 = v2_1;
                                                                                    v13_58 = v7_122;
                                                                                    if (Math.abs((v11_55.zzaxd.longValue() - v3_1.zzahy)) < 86400000) {
                                                                                        v1_19 = 0;
                                                                                    } else {
                                                                                        v1_19 = 1;
                                                                                    }
                                                                                } else {
                                                                                    long v28_3;
                                                                                    if (v3_1.zzahz == null) {
                                                                                        v1_0.zzada.zzgr();
                                                                                        v9_1 = v2_1;
                                                                                        v13_58 = v7_122;
                                                                                        v28_3 = com.google.android.gms.measurement.internal.zzfx.zzc(v11_55.zzaxe.longValue(), v28_1);
                                                                                    } else {
                                                                                        v28_3 = v3_1.zzahz.longValue();
                                                                                        v9_1 = v2_1;
                                                                                        v13_58 = v7_122;
                                                                                    }
                                                                                    if (v28_3 == v14_21) {
                                                                                        v1_19 = 0;
                                                                                    } else {
                                                                                        v1_19 = 1;
                                                                                    }
                                                                                }
                                                                                if (v1_19 == null) {
                                                                                    if (v8_31.booleanValue()) {
                                                                                        v4_20.put(v11_55.name, v3_1.zza(v13_58, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzjr();
                                                                                    v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_efs", Long.valueOf(1));
                                                                                    this.zzjr();
                                                                                    long v6_90 = ((long) v12_83);
                                                                                    v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_sr", Long.valueOf(v6_90));
                                                                                    String v1_28 = (v10_0 + 1);
                                                                                    v5_35[v10_0] = v11_55;
                                                                                    if (v8_31.booleanValue()) {
                                                                                        v3_1 = v3_1.zza(0, Long.valueOf(v6_90), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_20.put(v11_55.name, v3_1.zza(v11_55.zzaxd.longValue(), v14_21));
                                                                                    v10_0 = v1_28;
                                                                                }
                                                                            } else {
                                                                                this.zzjr();
                                                                                Long v12_0 = ((long) v12_83);
                                                                                p46 = v6_7;
                                                                                v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_sr", Long.valueOf(v12_0));
                                                                                long v6_6 = (v10_0 + 1);
                                                                                v5_35[v10_0] = v11_55;
                                                                                if (v8_31.booleanValue()) {
                                                                                    v3_1 = v3_1.zza(0, Long.valueOf(v12_0), 0);
                                                                                }
                                                                                v4_20.put(v11_55.name, v3_1.zza(v11_55.zzaxd.longValue(), v14_21));
                                                                                v9_1 = v2_1;
                                                                                v10_0 = v6_6;
                                                                            }
                                                                        } else {
                                                                            int v7_6 = (v10_0 + 1);
                                                                            v5_35[v10_0] = v11_55;
                                                                            if ((v8_31.booleanValue()) && ((v3_1.zzaia != null) || ((v3_1.zzaib != null) || (v3_1.zzaic != null)))) {
                                                                                v4_20.put(v11_55.name, v3_1.zza(0, 0, 0));
                                                                            }
                                                                            v9_1 = v2_1;
                                                                            p46 = v6_7;
                                                                            v10_0 = v7_6;
                                                                        }
                                                                    } else {
                                                                        v1_0.zzada.zzgt().zzjj().zze("Sample rate must be positive. event, rate", v11_55.name, Integer.valueOf(v12_83));
                                                                        com.google.android.gms.measurement.internal.zzac v3_8 = (v10_0 + 1);
                                                                        v5_35[v10_0] = v11_55;
                                                                        v9_1 = v2_1;
                                                                        v10_0 = v3_8;
                                                                        p46 = v6_7;
                                                                    }
                                                                } else {
                                                                    this.zzjr();
                                                                    Long v12_3 = ((String) com.google.android.gms.measurement.internal.zzft.zzb(v11_55, "_en"));
                                                                    int v13_1 = ((com.google.android.gms.measurement.internal.zzac) v4_20.get(v12_3));
                                                                    if (v13_1 == 0) {
                                                                        v13_1 = this.zzjt().zzg(v2_1.zzaui.zztt, v12_3);
                                                                        v4_20.put(v12_3, v13_1);
                                                                    }
                                                                    if (v13_1.zzaia != null) {
                                                                        v26_0 = v3_9;
                                                                        p46 = v6_7;
                                                                        v23_0 = v7_10;
                                                                        v25_0 = v8_10;
                                                                        v27_0 = v9_3;
                                                                        v9_1 = v2_1;
                                                                    } else {
                                                                        if (v13_1.zzaib.longValue() > 1) {
                                                                            this.zzjr();
                                                                            v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_sr", v13_1.zzaib);
                                                                        }
                                                                        if ((v13_1.zzaic != null) && (v13_1.zzaic.booleanValue())) {
                                                                            this.zzjr();
                                                                            v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_efs", Long.valueOf(1));
                                                                        }
                                                                        Long v12_14 = (v10_0 + 1);
                                                                        v5_35[v10_0] = v11_55;
                                                                        v26_0 = v3_9;
                                                                        p46 = v6_7;
                                                                        v23_0 = v7_10;
                                                                        v25_0 = v8_10;
                                                                        v27_0 = v9_3;
                                                                        v10_0 = v12_14;
                                                                        v9_1 = v2_1;
                                                                    }
                                                                }
                                                                v6_7 = p46;
                                                                v2_1 = v9_1;
                                                                v7_10 = v23_0;
                                                                v8_10 = v25_0;
                                                                v3_9 = v26_0;
                                                                v9_3 = (v27_0 + 1);
                                                                v1_0 = this;
                                                            }
                                                            v9_9 = v2_1;
                                                            v1_7 = v3_9;
                                                            if (v10_0 < v1_7.zzaxk.length) {
                                                                v1_7.zzaxk = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v5_35, v10_0));
                                                            }
                                                            int v2_10 = v4_20.entrySet().iterator();
                                                            while (v2_10.hasNext()) {
                                                                this.zzjt().zza(((com.google.android.gms.measurement.internal.zzac) ((java.util.Map$Entry) v2_10.next()).getValue()));
                                                            }
                                                        }
                                                        try {
                                                            v1_7.zzaxn = Long.valueOf(nan);
                                                            v1_7.zzaxo = Long.valueOf(-0.0);
                                                            int v2_15 = 0;
                                                        } catch (android.database.sqlite.SQLiteException v0_4) {
                                                            String v1_2 = v0_4;
                                                            this.zzjt().endTransaction();
                                                            throw v1_2;
                                                        }
                                                        while (v2_15 < v1_7.zzaxk.length) {
                                                            com.google.android.gms.measurement.internal.zzac v3_115 = v1_7.zzaxk[v2_15];
                                                            if (v3_115.zzaxd.longValue() < v1_7.zzaxn.longValue()) {
                                                                v1_7.zzaxn = v3_115.zzaxd;
                                                            }
                                                            if (v3_115.zzaxd.longValue() > v1_7.zzaxo.longValue()) {
                                                                v1_7.zzaxo = v3_115.zzaxd;
                                                            }
                                                            v2_15++;
                                                        }
                                                        Object v4_21;
                                                        int v2_17 = v9_9.zzaui.zztt;
                                                        com.google.android.gms.measurement.internal.zzac v3_91 = this.zzjt().zzbm(v2_17);
                                                        if (v3_91 != null) {
                                                            v4_21 = this;
                                                            if (v1_7.zzaxk.length > 0) {
                                                                int v7_98;
                                                                String v5_38 = v3_91.zzhe();
                                                                if (v5_38 == 0) {
                                                                    v7_98 = 0;
                                                                } else {
                                                                    v7_98 = Long.valueOf(v5_38);
                                                                }
                                                                v1_7.zzaxq = v7_98;
                                                                int v7_99 = v3_91.zzhd();
                                                                if (v7_99 != 0) {
                                                                    v5_38 = v7_99;
                                                                } else {
                                                                }
                                                                String v5_39;
                                                                if (v5_38 == 0) {
                                                                    v5_39 = 0;
                                                                } else {
                                                                    v5_39 = Long.valueOf(v5_38);
                                                                }
                                                                v1_7.zzaxp = v5_39;
                                                                v3_91.zzhm();
                                                                v1_7.zzaya = Integer.valueOf(((int) v3_91.zzhj()));
                                                                v3_91.zzo(v1_7.zzaxn.longValue());
                                                                v3_91.zzp(v1_7.zzaxo.longValue());
                                                                v1_7.zzagm = v3_91.zzhu();
                                                                this.zzjt().zza(v3_91);
                                                            }
                                                        } else {
                                                            v4_21 = this;
                                                            this.zzada.zzgt().zzjg().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v9_9.zzaui.zztt));
                                                        }
                                                        if (v1_7.zzaxk.length > 0) {
                                                            v4_21.zzada.zzgw();
                                                            com.google.android.gms.measurement.internal.zzac v3_99 = this.zzls().zzcg(v9_9.zzaui.zztt);
                                                            if (v3_99 == null) {
                                                                if (!android.text.TextUtils.isEmpty(v9_9.zzaui.zzafi)) {
                                                                    v4_21.zzada.zzgt().zzjj().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v9_9.zzaui.zztt));
                                                                } else {
                                                                    v1_7.zzayh = Long.valueOf(-1);
                                                                }
                                                            } else {
                                                                if (v3_99.zzawm != null) {
                                                                    v1_7.zzayh = v3_99.zzawm;
                                                                } else {
                                                                }
                                                            }
                                                            this.zzjt().zza(v1_7, v21_4);
                                                        }
                                                        String v1_8 = this.zzjt();
                                                        com.google.android.gms.measurement.internal.zzac v3_109 = v9_9.zzauj;
                                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_109);
                                                        v1_8.zzaf();
                                                        v1_8.zzcl();
                                                        String v5_55 = new StringBuilder("rowid in (");
                                                        long v6_66 = 0;
                                                        while (v6_66 < v3_109.size()) {
                                                            if (v6_66 != 0) {
                                                                v5_55.append(",");
                                                            }
                                                            v5_55.append(((Long) v3_109.get(v6_66)).longValue());
                                                            v6_66++;
                                                        }
                                                        v5_55.append(")");
                                                        String v5_57 = v1_8.getWritableDatabase().delete("raw_events", v5_55.toString(), 0);
                                                        if (v5_57 != v3_109.size()) {
                                                            v1_8.zzgt().zzjg().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_57), Integer.valueOf(v3_109.size()));
                                                        }
                                                        String v1_11 = this.zzjt();
                                                        com.google.android.gms.measurement.internal.zzac v3_112 = v1_11.getWritableDatabase();
                                                        try {
                                                            long v6_72 = new String[2];
                                                            v6_72[0] = v2_17;
                                                            v6_72[1] = v2_17;
                                                            v3_112.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v6_72);
                                                        } catch (android.database.sqlite.SQLiteException v0_7) {
                                                            v1_11.zzgt().zzjg().zze("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_17), v0_7);
                                                        }
                                                        this.zzjt().setTransactionSuccessful();
                                                        this.zzjt().endTransaction();
                                                        return 1;
                                                    } catch (android.database.sqlite.SQLiteException v0_2) {
                                                        v1_2 = v0_2;
                                                    }
                                                }
                                            } else {
                                                v6_3.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v7_2 = v3_10;
                                            com.google.android.gms.measurement.internal.zzac v3_0 = v0_1;
                                            try {
                                                v4_28.zzgt().zzjg().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_2), v3_0);
                                            } catch (android.database.sqlite.SQLiteException v0_6) {
                                                String v1_3 = v0_6;
                                                int v22 = v6_3;
                                                if (v22 != 0) {
                                                    v22.close();
                                                }
                                                throw v1_3;
                                            }
                                            if (v6_3 == 0) {
                                            } else {
                                                v6_3.close();
                                            }
                                        }
                                        if (v15_2.moveToNext()) {
                                            v4_28.zzgt().zzjj().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10));
                                        }
                                        String[] v17_2;
                                        String v16_2;
                                        v15_2.close();
                                        v2_1.zzb(v14_10);
                                        if (v5_61 == -1) {
                                            boolean v10_58 = new String[2];
                                            v10_58[0] = v3_10;
                                            v10_58[1] = v7_2;
                                            v16_2 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_2 = v10_58;
                                        } else {
                                            int v13_44 = new String[3];
                                            v13_44[0] = v3_10;
                                            v13_44[1] = v7_2;
                                            v13_44[2] = String.valueOf(v5_61);
                                            v16_2 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_2 = v13_44;
                                        }
                                        v6_3 = v15_2;
                                        String v5_6 = v25_2.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_2, v17_2, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_6.moveToFirst()) {
                                                v4_28.zzgt().zzjj().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10));
                                                if (v5_6 == null) {
                                                } else {
                                                    v5_6.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v22 = v5_6;
                                            v1_3 = v0_0;
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v7_2 = v3_10;
                                            v6_3 = v5_6;
                                        }
                                        do {
                                            long v6_24 = v5_6.getLong(0);
                                            Long v12_70 = v5_6.getBlob(3);
                                            boolean v10_63 = com.google.android.gms.internal.measurement.zzxz.zzj(v12_70, 0, v12_70.length);
                                            Long v12_72 = new com.google.android.gms.internal.measurement.zzft();
                                            v12_72.zza(v10_63);
                                            v12_72.name = v5_6.getString(1);
                                            v12_72.zzaxd = Long.valueOf(v5_6.getLong(2));
                                            if (v2_1.zza(v6_24, v12_72)) {
                                            } else {
                                                if (v5_6 == null) {
                                                } else {
                                                    v5_6.close();
                                                }
                                            }
                                        } while(v5_6.moveToNext());
                                        if (v5_6 == null) {
                                        } else {
                                            v5_6.close();
                                        }
                                    } else {
                                        v4_28.zzgt().zzjg().zzg("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10));
                                        if (v15_2 == null) {
                                        } else {
                                            v15_2.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_3 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v6_3 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v22 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v7_2 = v3_10;
                                    v6_3 = v15_2;
                                }
                                v22 = v6_3;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v22 = v23_1;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v7_2 = v3_10;
                                v6_3 = v23_1;
                            }
                        } else {
                            if (v3_10 == null) {
                            } else {
                                v3_10.close();
                            }
                        }
                    } else {
                        boolean v14_17;
                        int v13_52 = v5_61 cmp -1;
                        try {
                            if (v13_52 == 0) {
                                v14_17 = new String[1];
                                v14_17[0] = String.valueOf(p47);
                            } else {
                                v14_17 = new String[2];
                                v14_17[0] = String.valueOf(v5_61);
                                v14_17[1] = String.valueOf(p47);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            v6_3 = 0;
                            v7_2 = 0;
                        }
                        int v13_53;
                        if (v13_52 == 0) {
                            v13_53 = "";
                        } else {
                            v13_53 = "rowid <= ? and ";
                        }
                        com.google.android.gms.measurement.internal.zzac v3_142 = new StringBuilder((String.valueOf(v13_53).length() + 148));
                        v3_142.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_142.append(v13_53);
                        v3_142.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_10 = v15_3.rawQuery(v3_142.toString(), v14_17);
                        if (v3_10.moveToFirst()) {
                            int v7_9 = v3_10.getString(0);
                            try {
                                int v13_4 = v3_10.getString(1);
                                v3_10.close();
                                v23_1 = v3_10;
                                v3_10 = v7_9;
                                v7_2 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v6_3 = v3_10;
                            }
                        } else {
                            if (v3_10 == null) {
                            } else {
                                v3_10.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v22 = v3_10;
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v6_3 = v3_10;
                    v7_2 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v22 = 0;
            } catch (android.database.sqlite.SQLiteException v0_8) {
                v3_0 = v0_8;
                v6_3 = 0;
                v7_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_4) {
            }
        } catch (android.database.sqlite.SQLiteException v0_4) {
        }
    }

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


    public final void zzbr()
    {
        com.google.android.gms.analytics.zzk.zzaf();
        this.zzcl();
        this.zzq("Delete all hits from local store");
        try {
            String v0_7 = this.zzxl;
            com.google.android.gms.analytics.zzk.zzaf();
            v0_7.zzcl();
            v0_7.getWritableDatabase().delete("hits2", 0, 0);
            String v0_0 = this.zzxl;
            com.google.android.gms.analytics.zzk.zzaf();
            v0_0.zzcl();
            v0_0.getWritableDatabase().delete("properties", 0, 0);
            this.zzdm();
        } catch (String v0_3) {
            this.zzd("Failed to delete hits from store", v0_3);
        }
        this.zzdj();
        if (this.zzxo.zzcx()) {
            this.zzq("Device service unavailable. Can\'t clear hits stored on the device service.");
        }
        return;
    }

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


    public final long zza(com.google.android.gms.internal.measurement.zzaz p13, boolean p14)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p13);
        this.zzcl();
        com.google.android.gms.analytics.zzk.zzaf();
        try {
            this.zzxl.beginTransaction();
            String v14_8 = this.zzxl;
            String v2_5 = p13.zzcs();
            long v4_0 = p13.zzbd();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v4_0);
            v14_8.zzcl();
            com.google.android.gms.analytics.zzk.zzaf();
            String v5_0 = v14_8.getWritableDatabase();
            android.content.ContentValues v8_1 = new String[2];
            v8_1[0] = String.valueOf(v2_5);
            String v2_4 = 1;
            v8_1[1] = v4_0;
            long v4_1 = v5_0.delete("properties", "app_uid=? AND cid<>?", v8_1);
        } catch (android.database.sqlite.SQLiteException v13_11) {
            try {
                this.zzxl.endTransaction();
            } catch (String v14_4) {
                this.zze("Failed to end transaction", v14_4);
            }
            throw v13_11;
        } catch (android.database.sqlite.SQLiteException v13_8) {
            this.zze("Failed to update Analytics property", v13_8);
            try {
                this.zzxl.endTransaction();
            } catch (android.database.sqlite.SQLiteException v13_10) {
                this.zze("Failed to end transaction", v13_10);
            }
            return -1;
        }
        if (v4_1 > 0) {
            v14_8.zza("Deleted property records", Integer.valueOf(v4_1));
        }
        long v4_4 = this.zzxl.zza(p13.zzcs(), p13.zzbd(), p13.zzct());
        p13.zzb((1 + v4_4));
        String v14_7 = this.zzxl;
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p13);
        v14_7.zzcl();
        com.google.android.gms.analytics.zzk.zzaf();
        android.database.sqlite.SQLiteDatabase v6_4 = v14_7.getWritableDatabase();
        String v7_2 = p13.zzcw();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(v7_2);
        android.content.ContentValues v8_3 = new android.net.Uri$Builder();
        String v7_4 = v7_2.entrySet().iterator();
        while (v7_4.hasNext()) {
            long v9_1 = ((java.util.Map$Entry) v7_4.next());
            v8_3.appendQueryParameter(((String) v9_1.getKey()), ((String) v9_1.getValue()));
        }
        String v7_6 = v8_3.build().getEncodedQuery();
        if (v7_6 == null) {
            v7_6 = "";
        }
        android.content.ContentValues v8_5 = new android.content.ContentValues();
        v8_5.put("app_uid", Long.valueOf(p13.zzcs()));
        v8_5.put("cid", p13.zzbd());
        v8_5.put("tid", p13.zzct());
        if (!p13.zzcu()) {
            v2_4 = 0;
        } else {
        }
        v8_5.put("adid", Integer.valueOf(v2_4));
        v8_5.put("hits_count", Long.valueOf(p13.zzcv()));
        v8_5.put("params", v7_6);
        try {
            if (v6_4.insertWithOnConflict("properties", 0, v8_5, 5) == -1) {
                v14_7.zzu("Failed to insert/update a property (got -1)");
            }
        } catch (android.database.sqlite.SQLiteException v13_3) {
            v14_7.zze("Error storing a property", v13_3);
        }
        this.zzxl.setTransactionSuccessful();
        try {
            this.zzxl.endTransaction();
        } catch (android.database.sqlite.SQLiteException v13_7) {
            this.zze("Failed to end transaction", v13_7);
        }
        return v4_4;
    }

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


    public final int zzdb()
    {
        com.google.android.gms.analytics.zzk.zzaf();
        this.zzcl();
        if (this.zzxi.zzj(86400000)) {
            this.zzxi.start();
            this.zzq("Deleting stale hits (if any)");
            int v0_1 = this.getWritableDatabase();
            String[] v6_1 = new String[1];
            v6_1[0] = Long.toString((this.zzbx().currentTimeMillis() - 1.280618154e-314));
            int v0_3 = v0_1.delete("hits2", "hit_time < ?", v6_1);
            this.zza("Deleted stale hits, count", Integer.valueOf(v0_3));
            return v0_3;
        } else {
            return 0;
        }
    }

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


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

Method android.arch.persistence.db.framework.FrameworkSQLiteDatabase.compileStatement() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public android.arch.persistence.db.SupportSQLiteStatement compileStatement(String p3)
    {
        return new android.arch.persistence.db.framework.FrameworkSQLiteStatement(this.mDelegate.compileStatement(p3));
    }

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


    final java.util.Map zzm(String p13, String p14)
    {
        this.zzcl();
        this.zzaf();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p14);
        android.database.sqlite.SQLiteException v0_2 = new android.support.v4.util.ArrayMap();
        Integer v1_8 = this.getWritableDatabase();
        try {
            String[] v5_1 = new String[2];
            v5_1[0] = p13;
            v5_1[1] = p14;
            int v14_1 = v1_8.query("property_filters", new String[] {"audience_id", "data"}), "app_id=? AND property_name=?", v5_1, 0, 0, 0);
            try {
                if (!v14_1.moveToFirst()) {
                    java.util.Map v13_3 = java.util.Collections.emptyMap();
                    if (v14_1 != 0) {
                        v14_1.close();
                    }
                    return v13_3;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                this.zzgt().zzjg().zze("Database error querying filters. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p13), v0_0);
                if (v14_1 != 0) {
                    v14_1.close();
                }
                return 0;
            }
            do {
                Integer v1_1 = v14_1.getBlob(1);
                Integer v1_2 = com.google.android.gms.internal.measurement.zzxz.zzj(v1_1, 0, v1_1.length);
                com.google.android.gms.measurement.internal.zzau v2_2 = new com.google.android.gms.internal.measurement.zzfm();
                v2_2.zza(v1_2);
                Integer v1_4 = v14_1.getInt(0);
                java.util.ArrayList v3_5 = ((java.util.List) v0_2.get(Integer.valueOf(v1_4)));
                if (v3_5 == null) {
                    v3_5 = new java.util.ArrayList();
                    v0_2.put(Integer.valueOf(v1_4), v3_5);
                }
                v3_5.add(v2_2);
            } while(v14_1.moveToNext());
            if (v14_1 != 0) {
                v14_1.close();
            }
            return v0_2;
        } catch (java.util.Map v13_1) {
            v14_1 = 0;
            if (v14_1 != 0) {
                v14_1.close();
            }
            throw v13_1;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v14_1 = 0;
        } catch (java.util.Map v13_1) {
        }
    }

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


    final java.util.Map zzl(String p13, String p14)
    {
        this.zzcl();
        this.zzaf();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p14);
        android.database.sqlite.SQLiteException v0_2 = new android.support.v4.util.ArrayMap();
        Integer v1_8 = this.getWritableDatabase();
        try {
            String[] v5_1 = new String[2];
            v5_1[0] = p13;
            v5_1[1] = p14;
            int v14_1 = v1_8.query("event_filters", new String[] {"audience_id", "data"}), "app_id=? AND event_name=?", v5_1, 0, 0, 0);
            try {
                if (!v14_1.moveToFirst()) {
                    java.util.Map v13_3 = java.util.Collections.emptyMap();
                    if (v14_1 != 0) {
                        v14_1.close();
                    }
                    return v13_3;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                this.zzgt().zzjg().zze("Database error querying filters. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p13), v0_0);
                if (v14_1 != 0) {
                    v14_1.close();
                }
                return 0;
            }
            do {
                Integer v1_1 = v14_1.getBlob(1);
                Integer v1_2 = com.google.android.gms.internal.measurement.zzxz.zzj(v1_1, 0, v1_1.length);
                com.google.android.gms.measurement.internal.zzau v2_2 = new com.google.android.gms.internal.measurement.zzfj();
                v2_2.zza(v1_2);
                Integer v1_4 = v14_1.getInt(0);
                java.util.ArrayList v3_5 = ((java.util.List) v0_2.get(Integer.valueOf(v1_4)));
                if (v3_5 == null) {
                    v3_5 = new java.util.ArrayList();
                    v0_2.put(Integer.valueOf(v1_4), v3_5);
                }
                v3_5.add(v2_2);
            } while(v14_1.moveToNext());
            if (v14_1 != 0) {
                v14_1.close();
            }
            return v0_2;
        } catch (java.util.Map v13_1) {
            v14_1 = 0;
            if (v14_1 != 0) {
                v14_1.close();
            }
            throw v13_1;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v14_1 = 0;
        } catch (java.util.Map v13_1) {
        }
    }

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


    public final com.google.android.gms.measurement.internal.zzo zzj(String p30, String p31)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p30);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p31);
        this.zzaf();
        this.zzcl();
        try {
            int v9_1 = this.getWritableDatabase();
            String[] v13 = "active";
            String v15 = "trigger_timeout";
            com.google.android.gms.measurement.internal.zzfu v17 = "creation_timestamp";
            String v19 = "triggered_timestamp";
            v13 = new String[2];
            v13[0] = p30;
            v13[1] = p31;
            int v9_0 = v9_1.query("conditional_properties", new String[] {"origin", "expired_event"}), "app_id=? and name=?", v13, 0, 0, 0);
            try {
                if (v9_0.moveToFirst()) {
                    String v16_1 = v9_0.getString(0);
                    try {
                        int v20;
                        Object v5 = this.zza(v9_0, 1);
                    } catch (com.google.android.gms.measurement.internal.zzo v0_1) {
                        this.zzgt().zzjg().zzd("Error querying conditional property", com.google.android.gms.measurement.internal.zzas.zzbw(p30), this.zzgq().zzbv(p31), v0_1);
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        return 0;
                    }
                    if (v9_0.getInt(2) == 0) {
                        v20 = 0;
                    } else {
                        v20 = 1;
                    }
                    String v21_1 = v9_0.getString(3);
                    long v23 = v9_0.getLong(4);
                    com.google.android.gms.measurement.internal.zzag v22_1 = ((com.google.android.gms.measurement.internal.zzag) this.zzjr().zza(v9_0.getBlob(5), com.google.android.gms.measurement.internal.zzag.CREATOR));
                    long v18 = v9_0.getLong(6);
                    com.google.android.gms.measurement.internal.zzag v25_1 = ((com.google.android.gms.measurement.internal.zzag) this.zzjr().zza(v9_0.getBlob(7), com.google.android.gms.measurement.internal.zzag.CREATOR));
                    Object v3_3 = v9_0.getLong(8);
                    long v26 = v9_0.getLong(9);
                    com.google.android.gms.measurement.internal.zzag v28_1 = ((com.google.android.gms.measurement.internal.zzag) this.zzjr().zza(v9_0.getBlob(10), com.google.android.gms.measurement.internal.zzag.CREATOR));
                    v17 = new com.google.android.gms.measurement.internal.zzfu;
                    v17(p31, v3_3, v5, v16_1);
                    com.google.android.gms.measurement.internal.zzo v0_0 = new com.google.android.gms.measurement.internal.zzo;
                    v0_0(p30, v16_1, v17, v18, v20, v21_1, v22_1, v23, v25_1, v26, v28_1);
                    if (v9_0.moveToNext()) {
                        this.zzgt().zzjg().zze("Got multiple records for conditional property, expected one", com.google.android.gms.measurement.internal.zzas.zzbw(p30), this.zzgq().zzbv(p31));
                    }
                    if (v9_0 != 0) {
                        v9_0.close();
                    }
                    return v0_0;
                } else {
                    if (v9_0 != 0) {
                        v9_0.close();
                    }
                    return 0;
                }
            } catch (com.google.android.gms.measurement.internal.zzo v0_2) {
                if (v9_0 != 0) {
                    v9_0.close();
                }
                throw v0_2;
            } catch (com.google.android.gms.measurement.internal.zzo v0_1) {
            }
        } catch (com.google.android.gms.measurement.internal.zzo v0_2) {
            v9_0 = 0;
        } catch (com.google.android.gms.measurement.internal.zzo v0_1) {
            v9_0 = 0;
        } catch (com.google.android.gms.measurement.internal.zzo v0_2) {
        }
    }

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


    public final com.google.android.gms.measurement.internal.zzfw zzi(String p19, String p20)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p19);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p20);
        this.zzaf();
        this.zzcl();
        try {
            int v10_1 = this.getWritableDatabase();
            String[] v14 = new String[2];
            v14[0] = p19;
            v14[1] = p20;
            int v10_0 = v10_1.query("user_attributes", new String[] {"set_timestamp", "value", "origin"}), "app_id=? and name=?", v14, 0, 0, 0);
            try {
                if (v10_0.moveToFirst()) {
                    try {
                        android.database.sqlite.SQLiteException v0_3 = new com.google.android.gms.measurement.internal.zzfw;
                        v0_3(p19, v10_0.getString(2), p20, v10_0.getLong(0), this.zza(v10_0, 1));
                    } catch (android.database.sqlite.SQLiteException v0_1) {
                        this.zzgt().zzjg().zzd("Error querying user property. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p19), this.zzgq().zzbv(p20), v0_1);
                        if (v10_0 != 0) {
                            v10_0.close();
                        }
                        return 0;
                    }
                    if (v10_0.moveToNext()) {
                        this.zzgt().zzjg().zzg("Got multiple records for user property, expected one. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p19));
                    }
                    if (v10_0 != 0) {
                        v10_0.close();
                    }
                    return v0_3;
                } else {
                    if (v10_0 != 0) {
                        v10_0.close();
                    }
                    return 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_2) {
                if (v10_0 != 0) {
                    v10_0.close();
                }
                throw v0_2;
            } catch (android.database.sqlite.SQLiteException v0_1) {
            }
        } catch (android.database.sqlite.SQLiteException v0_2) {
            v10_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_1) {
            v10_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_2) {
        }
    }

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


    public final com.google.android.gms.measurement.internal.zzac zzg(String p23, String p24)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p23);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p24);
        this.zzaf();
        this.zzcl();
        try {
            String v1_10 = this.getWritableDatabase();
            String v5 = "last_fire_timestamp";
            int v7 = "last_bundled_day";
            int v9 = "last_sampling_rate";
            String v5_1 = new String[2];
            v9 = 0;
            v5_1[0] = p23;
            v5_1[1] = p24;
            Long v14_1 = v1_10.query("events", new String[] {"lifetime_count", "last_exempt_from_sampling"}), "app_id=? and name=?", v5_1, 0, 0, 0);
            try {
                if (v14_1.moveToFirst()) {
                    com.google.android.gms.measurement.internal.zzau v0_7;
                    long v4_3 = v14_1.getLong(0);
                    long v6_1 = v14_1.getLong(1);
                    long v11 = v14_1.getLong(2);
                    if (!v14_1.isNull(3)) {
                        v0_7 = v14_1.getLong(3);
                    } else {
                        v0_7 = 0;
                    }
                    com.google.android.gms.measurement.internal.zzau v0_10;
                    android.database.Cursor v17_1 = v0_7;
                    if (!v14_1.isNull(4)) {
                        v0_10 = Long.valueOf(v14_1.getLong(4));
                    } else {
                        v0_10 = 0;
                    }
                    Long v13;
                    if (!v14_1.isNull(5)) {
                        v13 = Long.valueOf(v14_1.getLong(5));
                    } else {
                        v13 = 0;
                    }
                    Long v19;
                    if (!v14_1.isNull(6)) {
                        v19 = Long.valueOf(v14_1.getLong(6));
                    } else {
                        v19 = 0;
                    }
                    Boolean v20_0;
                    if (v14_1.isNull(7)) {
                        v20_0 = 0;
                    } else {
                        if (v14_1.getLong(7) == 1) {
                            v9 = 1;
                        }
                        v20_0 = Boolean.valueOf(v9);
                    }
                    com.google.android.gms.measurement.internal.zzac v21 = new com.google.android.gms.measurement.internal.zzac;
                    android.database.Cursor v17_0 = v14_1;
                    try {
                        v21(p23, p24, v4_3, v6_1, v11, v17_1, v0_10, v13, v19, v20_0);
                    } catch (com.google.android.gms.measurement.internal.zzau v0_3) {
                        this.zzgt().zzjg().zzd("Error querying events. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p23), this.zzgq().zzbt(p24), v0_3);
                        if (v17_0 != null) {
                            v17_0.close();
                        }
                        return 0;
                    }
                    if (v17_0.moveToNext()) {
                        this.zzgt().zzjg().zzg("Got multiple records for event aggregates, expected one. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p23));
                    }
                    if (v17_0 != null) {
                        v17_0.close();
                    }
                    return v21;
                } else {
                    if (v14_1 != null) {
                        v14_1.close();
                    }
                    return 0;
                }
            } catch (com.google.android.gms.measurement.internal.zzau v0_4) {
                v17_0 = v14_1;
                if (v17_0 != null) {
                    v17_0.close();
                }
                throw v0_4;
            } catch (com.google.android.gms.measurement.internal.zzau v0_3) {
                v17_0 = v14_1;
            }
        } catch (com.google.android.gms.measurement.internal.zzau v0_4) {
            v17_0 = 0;
        } catch (com.google.android.gms.measurement.internal.zzau v0_3) {
            v17_0 = 0;
        } catch (com.google.android.gms.measurement.internal.zzau v0_4) {
        }
    }

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


    final java.util.Map zzbp(String p12)
    {
        this.zzcl();
        this.zzaf();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p12);
        int v0_1 = this.getWritableDatabase();
        try {
            com.google.android.gms.measurement.internal.zzau v4_0 = new String[1];
            v4_0[0] = p12;
            int v0_0 = v0_1.query("audience_filter_values", new String[] {"audience_id", "current_results"}), "app_id=?", v4_0, 0, 0, 0);
            try {
                if (v0_0.moveToFirst()) {
                    android.support.v4.util.ArrayMap v1_3 = new android.support.v4.util.ArrayMap();
                    do {
                        boolean v2_1 = v0_0.getInt(0);
                        java.io.IOException v3_1 = v0_0.getBlob(1);
                        java.io.IOException v3_2 = com.google.android.gms.internal.measurement.zzxz.zzj(v3_1, 0, v3_1.length);
                        com.google.android.gms.measurement.internal.zzau v4_3 = new com.google.android.gms.internal.measurement.zzfx();
                        v4_3.zza(v3_2);
                        v1_3.put(Integer.valueOf(v2_1), v4_3);
                    } while(v0_0.moveToNext());
                    if (v0_0 != 0) {
                        v0_0.close();
                    }
                    return v1_3;
                } else {
                    if (v0_0 != 0) {
                        v0_0.close();
                    }
                    return 0;
                }
            } catch (android.support.v4.util.ArrayMap v1_0) {
                this.zzgt().zzjg().zze("Database error querying filter results. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p12), v1_0);
                if (v0_0 != 0) {
                    v0_0.close();
                }
                return 0;
            }
        } catch (Throwable v12_1) {
            v0_0 = 0;
            if (v0_0 != 0) {
                v0_0.close();
            }
            throw v12_1;
        } catch (android.support.v4.util.ArrayMap v1_0) {
            v0_0 = 0;
        } catch (Throwable v12_1) {
        }
    }

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


    public final byte[] zzbo(String p11)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p11);
        this.zzaf();
        this.zzcl();
        try {
            int v1_1 = this.getWritableDatabase();
            Object v5_1 = new String[1];
            v5_1[0] = p11;
            int v1_0 = v1_1.query("apps", new String[] {"remote_config"}), "app_id=?", v5_1, 0, 0, 0);
            try {
                if (v1_0.moveToFirst()) {
                    byte[] v2_2 = v1_0.getBlob(0);
                    if (v1_0.moveToNext()) {
                        this.zzgt().zzjg().zzg("Got multiple records for app config, expected one. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p11));
                    }
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return v2_2;
                } else {
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return 0;
                }
            } catch (byte[] v2_0) {
                this.zzgt().zzjg().zze("Error querying remote config. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p11), v2_0);
                if (v1_0 != 0) {
                    v1_0.close();
                }
                return 0;
            }
        } catch (Throwable v11_1) {
            v1_0 = 0;
            if (v1_0 != 0) {
                v1_0.close();
            }
            throw v11_1;
        } catch (byte[] v2_0) {
            v1_0 = 0;
        } catch (Throwable v11_1) {
        }
    }

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


    public final com.google.android.gms.measurement.internal.zzg zzbm(String p32)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p32);
        this.zzaf();
        this.zzcl();
        try {
            int v3_1 = this.getWritableDatabase();
            Object v7 = "resettable_device_id_hash";
            int v9 = "last_bundle_start_timestamp";
            int v11 = "app_version";
            String v13 = "gmp_version";
            String v15 = "measurement_enabled";
            String v17 = "daily_public_events_count";
            String v19 = "daily_conversions_count";
            String v21 = "failed_config_fetch_time";
            String v23 = "firebase_instance_id";
            String v25 = "daily_realtime_events_count";
            String v27 = "android_id";
            String v29 = "ssaid_reporting_enabled";
            com.google.android.gms.measurement.internal.zzau v0_0 = 1;
            Object v7_6 = new String[1];
            v7_6[0] = p32;
            int v3_0 = v3_1.query("apps", new String[] {"app_instance_id", "admob_app_id"}), "app_id=?", v7_6, 0, 0, 0);
            try {
                if (v3_0.moveToFirst()) {
                    try {
                        String v6_3;
                        com.google.android.gms.measurement.internal.zzg v4_4 = new com.google.android.gms.measurement.internal.zzg(this.zzamx.zzmh(), p32);
                        v4_4.zzaj(v3_0.getString(0));
                        v4_4.zzak(v3_0.getString(1));
                        v4_4.zzam(v3_0.getString(2));
                        v4_4.zzt(v3_0.getLong(3));
                        v4_4.zzo(v3_0.getLong(4));
                        v4_4.zzp(v3_0.getLong(5));
                        v4_4.setAppVersion(v3_0.getString(6));
                        v4_4.zzao(v3_0.getString(7));
                        v4_4.zzr(v3_0.getLong(8));
                        v4_4.zzs(v3_0.getLong(9));
                    } catch (com.google.android.gms.measurement.internal.zzau v0_6) {
                        this.zzgt().zzjg().zze("Error querying app. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p32), v0_6);
                        if (v3_0 != 0) {
                            v3_0.close();
                        }
                        return 0;
                    }
                    if (v3_0.isNull(10)) {
                        v6_3 = 1;
                    } else {
                        if (v3_0.getInt(10) == 0) {
                            v6_3 = 0;
                        } else {
                        }
                    }
                    String v6_18;
                    v4_4.setMeasurementEnabled(v6_3);
                    v4_4.zzw(v3_0.getLong(11));
                    v4_4.zzx(v3_0.getLong(12));
                    v4_4.zzy(v3_0.getLong(13));
                    v4_4.zzz(v3_0.getLong(14));
                    v4_4.zzu(v3_0.getLong(15));
                    v4_4.zzv(v3_0.getLong(16));
                    if (!v3_0.isNull(17)) {
                        v6_18 = ((long) v3_0.getInt(17));
                    } else {
                        v6_18 = -2147483648;
                    }
                    String v6_28;
                    v4_4.zzq(v6_18);
                    v4_4.zzan(v3_0.getString(18));
                    v4_4.zzab(v3_0.getLong(19));
                    v4_4.zzaa(v3_0.getLong(20));
                    v4_4.zzap(v3_0.getString(21));
                    if (!v3_0.isNull(22)) {
                        v6_28 = v3_0.getLong(22);
                    } else {
                        v6_28 = 0;
                    }
                    String v6_31;
                    v4_4.zzac(v6_28);
                    if (v3_0.isNull(23)) {
                        v6_31 = 1;
                    } else {
                        if (v3_0.getInt(23) == 0) {
                            v6_31 = 0;
                        } else {
                        }
                    }
                    v4_4.zze(v6_31);
                    if (!v3_0.isNull(24)) {
                        if (v3_0.getInt(24) == 0) {
                            v0_0 = 0;
                        } else {
                        }
                    }
                    v4_4.zzf(v0_0);
                    v4_4.zzal(v3_0.getString(25));
                    v4_4.zzha();
                    if (v3_0.moveToNext()) {
                        this.zzgt().zzjg().zzg("Got multiple records for app, expected one. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p32));
                    }
                    if (v3_0 != 0) {
                        v3_0.close();
                    }
                    return v4_4;
                } else {
                    if (v3_0 != 0) {
                        v3_0.close();
                    }
                    return 0;
                }
            } catch (com.google.android.gms.measurement.internal.zzau v0_7) {
                if (v3_0 != 0) {
                    v3_0.close();
                }
                throw v0_7;
            } catch (com.google.android.gms.measurement.internal.zzau v0_6) {
            }
        } catch (com.google.android.gms.measurement.internal.zzau v0_7) {
            v3_0 = 0;
        } catch (com.google.android.gms.measurement.internal.zzau v0_6) {
            v3_0 = 0;
        } catch (com.google.android.gms.measurement.internal.zzau v0_7) {
        }
    }

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


    public final java.util.List zzbl(String p14)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p14);
        this.zzaf();
        this.zzcl();
        android.database.sqlite.SQLiteException v0_2 = new java.util.ArrayList();
        try {
            int v2_1 = this.getWritableDatabase();
            String v6_1 = new String[1];
            v6_1[0] = p14;
            int v2_0 = v2_1.query("user_attributes", new String[] {"name", "origin", "set_timestamp", "value"}), "app_id=?", v6_1, 0, 0, "rowid", "1000");
            try {
                if (!v2_0.moveToFirst()) {
                    if (v2_0 != 0) {
                        v2_0.close();
                    }
                    return v0_2;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                this.zzgt().zzjg().zze("Error querying user properties. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p14), v0_0);
                if (v2_0 != 0) {
                    v2_0.close();
                }
                return 0;
            }
            do {
                String v6_2;
                String v7_2 = v2_0.getString(0);
                boolean v3_1 = v2_0.getString(1);
                if (v3_1) {
                    v6_2 = v3_1;
                } else {
                    v6_2 = "";
                }
                long v8_1 = v2_0.getLong(2);
                Object v10_1 = this.zza(v2_0, 3);
                if (v10_1 != null) {
                    boolean v3_5 = new com.google.android.gms.measurement.internal.zzfw;
                    v3_5(p14, v6_2, v7_2, v8_1, v10_1);
                    v0_2.add(v3_5);
                } else {
                    this.zzgt().zzjg().zzg("Read invalid user property value, ignoring it. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p14));
                }
            } while(v2_0.moveToNext());
            if (v2_0 != 0) {
                v2_0.close();
            }
            return v0_2;
        } catch (Throwable v14_1) {
            v2_0 = 0;
            if (v2_0 != 0) {
                v2_0.close();
            }
            throw v14_1;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v2_0 = 0;
        } catch (Throwable v14_1) {
        }
    }

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


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

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


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

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


    public final java.util.List zzb(String p13, int p14, int p15)
    {
        android.database.Cursor v2_2;
        this.zzaf();
        this.zzcl();
        if (p14 <= null) {
            v2_2 = 0;
        } else {
            v2_2 = 1;
        }
        android.database.Cursor v2_0;
        com.google.android.gms.common.internal.Preconditions.checkArgument(v2_2);
        if (p15 <= null) {
            v2_0 = 0;
        } else {
            v2_0 = 1;
        }
        com.google.android.gms.common.internal.Preconditions.checkArgument(v2_0);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
        try {
            int v3_0 = this.getWritableDatabase();
            Integer v7_1 = new String[1];
            v7_1[0] = p13;
            android.database.Cursor v2_1 = v3_0.query("queue", new String[] {"rowid", "data", "retry_count"}), "app_id=?", v7_1, 0, 0, "rowid", String.valueOf(p14));
        } catch (java.util.List v13_2) {
            if (v2_1 != null) {
                v2_1.close();
            }
            throw v13_2;
        } catch (java.util.ArrayList v14_4) {
            this.zzgt().zzjg().zze("Error querying bundles. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p13), v14_4);
            java.util.List v13_1 = java.util.Collections.emptyList();
            if (v2_1 != null) {
                v2_1.close();
            }
            return v13_1;
        }
        if (v2_1.moveToFirst()) {
            java.util.ArrayList v14_3 = new java.util.ArrayList();
            int v3_1 = 0;
            do {
                android.util.Pair v4_2 = v2_1.getLong(0);
                int v6_3 = this.zzjr().zza(v2_1.getBlob(1));
                if ((!v14_3.isEmpty()) && ((v6_3.length + v3_1) > p15)) {
                    break;
                }
                Integer v7_8 = com.google.android.gms.internal.measurement.zzxz.zzj(v6_3, 0, v6_3.length);
                com.google.android.gms.internal.measurement.zzfw v8_2 = new com.google.android.gms.internal.measurement.zzfw();
                v8_2.zza(v7_8);
                if (!v2_1.isNull(2)) {
                    v8_2.zzayl = Integer.valueOf(v2_1.getInt(2));
                }
                v3_1 += v6_3.length;
                v14_3.add(android.util.Pair.create(v8_2, Long.valueOf(v4_2)));
            } while((v2_1.moveToNext()) && (v3_1 <= p15));
            if (v2_1 != null) {
                v2_1.close();
            }
            return v14_3;
        } else {
            java.util.List v13_3 = java.util.Collections.emptyList();
            if (v2_1 != null) {
                v2_1.close();
            }
            return v13_3;
        }
    }

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


    public final com.google.android.gms.measurement.internal.zzu zza(long p15, String p17, boolean p18, boolean p19, boolean p20, boolean p21, boolean p22)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p17);
        this.zzaf();
        this.zzcl();
        com.google.android.gms.measurement.internal.zzau v1_1 = new String[1];
        v1_1[0] = p17;
        com.google.android.gms.measurement.internal.zzu v3_1 = new com.google.android.gms.measurement.internal.zzu();
        try {
            android.database.sqlite.SQLiteDatabase v13 = this.getWritableDatabase();
            String[] v9 = "daily_public_events_count";
            int v11 = "daily_error_events_count";
            v9 = new String[1];
            v9[0] = p17;
            android.database.Cursor v4 = v13.query("apps", new String[] {"day", "daily_realtime_events_count"}), "app_id=?", v9, 0, 0, 0);
        } catch (android.content.ContentValues v0_8) {
            if (v4 != null) {
                v4.close();
            }
            throw v0_8;
        } catch (android.content.ContentValues v0_7) {
            this.zzgt().zzjg().zze("Error updating daily counts. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p17), v0_7);
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        }
        if (v4.moveToFirst()) {
            if (v4.getLong(0) == p15) {
                v3_1.zzahi = v4.getLong(1);
                v3_1.zzahh = v4.getLong(2);
                v3_1.zzahj = v4.getLong(3);
                v3_1.zzahk = v4.getLong(4);
                v3_1.zzahl = v4.getLong(5);
            }
            if (p18) {
                v3_1.zzahi = (v3_1.zzahi + 1);
            }
            if (p19) {
                v3_1.zzahh = (v3_1.zzahh + 1);
            }
            if (p20) {
                v3_1.zzahj = (v3_1.zzahj + 1);
            }
            if (p21) {
                v3_1.zzahk = (v3_1.zzahk + 1);
            }
            if (p22) {
                v3_1.zzahl = (v3_1.zzahl + 1);
            }
            android.content.ContentValues v0_10 = new android.content.ContentValues();
            v0_10.put("day", Long.valueOf(p15));
            v0_10.put("daily_public_events_count", Long.valueOf(v3_1.zzahh));
            v0_10.put("daily_events_count", Long.valueOf(v3_1.zzahi));
            v0_10.put("daily_conversions_count", Long.valueOf(v3_1.zzahj));
            v0_10.put("daily_error_events_count", Long.valueOf(v3_1.zzahk));
            v0_10.put("daily_realtime_events_count", Long.valueOf(v3_1.zzahl));
            v13.update("apps", v0_10, "app_id=?", v1_1);
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        } else {
            this.zzgt().zzjj().zzg("Not updating daily counts, app is not known. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p17));
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        }
    }

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

Couldn't retrieve source code

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


    private final int zzpk()
    {
        String v1_0 = this.zzdl("Error opening database for getNumStoredHits.");
        if (v1_0 != null) {
            try {
                android.database.Cursor v9 = v1_0.query("gtm_hits", new String[] {"hit_id", "hit_first_send_time"}), "hit_first_send_time=0", 0, 0, 0, 0);
                Throwable v0_1 = v9.getCount();
            } catch (Throwable v0_2) {
                if (v9 != null) {
                    v9.close();
                }
                throw v0_2;
            }
            if (v9 == null) {
                return v0_1;
            } else {
                v9.close();
                return v0_1;
            }
        } else {
            return 0;
        }
    }

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


    private final java.util.List zzac(int p17)
    {
        boolean v1_1 = new java.util.ArrayList();
        int v0_12 = this.zzdl("Error opening database for peekHits");
        if (v0_12 != 0) {
            try {
                String v10_0 = new Object[1];
                int v14 = 0;
                v10_0[0] = "hit_id";
                android.database.Cursor v12 = v0_12.query("gtm_hits", new String[] {"hit_id", "hit_time", "hit_first_send_time"}), 0, 0, 0, 0, String.format("%s ASC", v10_0), Integer.toString(40));
                java.util.ArrayList v11_5 = new java.util.ArrayList();
                try {
                    if (v12.moveToFirst()) {
                        try {
                            do {
                                boolean v1_14 = new com.google.android.gms.tagmanager.zzbw;
                                v1_14(v12.getLong(0), v12.getLong(1), v12.getLong(2));
                                v11_5.add(v1_14);
                            } while(v12.moveToNext());
                        } catch (int v0_11) {
                            v1_1 = v11_5;
                            int v0_14 = String.valueOf(v0_11.getMessage());
                            if (v0_14.length() == 0) {
                                int v0_16 = new String("Error in peekHits fetching hitIds: ");
                            } else {
                                v0_16 = "Error in peekHits fetching hitIds: ".concat(v0_14);
                            }
                            com.google.android.gms.tagmanager.zzdi.zzab(v0_16);
                            if (v12 != null) {
                                v12.close();
                            }
                            return v1_1;
                        }
                        if (!v12.moveToNext()) {
                        }
                    }
                } catch (int v0_11) {
                    v1_1 = v11_5;
                }
                if (v12 != null) {
                    v12.close();
                }
                try {
                    int v3_10 = new Object[1];
                    v3_10[0] = "hit_id";
                    String v15_0 = v11_5;
                    java.util.ArrayList v11_6 = Integer.toString(40);
                    try {
                        v12 = v0_12.query("gtm_hits", new String[] {"hit_id", "hit_url"}), 0, 0, 0, 0, String.format("%s ASC", v3_10), v11_6);
                    } catch (int v0_2) {
                        int v0_4 = String.valueOf(v0_2.getMessage());
                        if (v0_4.length() == 0) {
                            int v0_6 = new String("Error in peekHits fetching hit url: ");
                        } else {
                            v0_6 = "Error in peekHits fetching hit url: ".concat(v0_4);
                        }
                        com.google.android.gms.tagmanager.zzdi.zzab(v0_6);
                        int v0_8 = new java.util.ArrayList();
                        java.util.ArrayList v11_1 = ((java.util.ArrayList) v15_0);
                        boolean v1_11 = v11_1.size();
                        int v3_3 = 0;
                    }
                    if (v12.moveToFirst()) {
                        int v0_1 = 0;
                        do {
                            if (((android.database.sqlite.SQLiteCursor) v12).getWindow().getNumRows() <= 0) {
                                int v3_0 = new Object[1];
                                v3_0[0] = Long.valueOf(((com.google.android.gms.tagmanager.zzbw) v15_0.get(v0_1)).zzov());
                                com.google.android.gms.tagmanager.zzdi.zzab(String.format("HitString for hitId %d too large.  Hit will be deleted.", v3_0));
                            } else {
                                ((com.google.android.gms.tagmanager.zzbw) v15_0.get(v0_1)).zzds(v12.getString(1));
                            }
                            v0_1++;
                        } while(v12.moveToNext());
                    }
                    if (v12 != null) {
                        v12.close();
                    }
                    return v15_0;
                } catch (int v0_9) {
                    if (v12 != null) {
                        v12.close();
                    }
                    throw v0_9;
                } catch (int v0_2) {
                    v15_0 = v11_6;
                }
            } catch (int v0_17) {
                if (v12 != null) {
                    v12.close();
                }
                throw v0_17;
            } catch (int v0_11) {
            }
        } else {
            return v1_1;
        }
    }

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


    private final java.util.List zzab(int p14)
    {
        java.util.ArrayList v0_1 = new java.util.ArrayList();
        if (p14 > null) {
            String v2_1 = this.zzdl("Error opening database for peekHitIds.");
            if (v2_1 != null) {
                try {
                    String v10_1 = new Object[1];
                    v10_1[0] = "hit_id";
                    android.database.Cursor v1_0 = v2_1.query("gtm_hits", new String[] {"hit_id"}), 0, 0, 0, 0, String.format("%s ASC", v10_1), Integer.toString(p14));
                } catch (String v14_7) {
                    if (v1_0 != null) {
                        v1_0.close();
                    }
                    throw v14_7;
                } catch (String v14_2) {
                    String v14_4 = String.valueOf(v14_2.getMessage());
                    if (v14_4.length() == 0) {
                        String v14_6 = new String("Error in peekHits fetching hitIds: ");
                    } else {
                        v14_6 = "Error in peekHits fetching hitIds: ".concat(v14_4);
                    }
                    com.google.android.gms.tagmanager.zzdi.zzab(v14_6);
                    if (v1_0 == null) {
                        return v0_1;
                    } else {
                        v1_0.close();
                        return v0_1;
                    }
                }
                if (v1_0.moveToFirst()) {
                    do {
                        v0_1.add(String.valueOf(v1_0.getLong(0)));
                    } while(v1_0.moveToNext());
                }
                if (v1_0 == null) {
                    return v0_1;
                } else {
                    v1_0.close();
                    return v0_1;
                }
            } else {
                return v0_1;
            }
        } else {
            com.google.android.gms.tagmanager.zzdi.zzab("Invalid maxHits specified. Skipping");
            return v0_1;
        }
    }

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


    private final java.util.List zzw(int p14)
    {
        java.util.ArrayList v0_1 = new java.util.ArrayList();
        if (p14 > null) {
            String v2_1 = this.zzdl("Error opening database for peekEntryIds.");
            if (v2_1 != null) {
                try {
                    String v10_1 = new Object[1];
                    v10_1[0] = "ID";
                    android.database.Cursor v1_0 = v2_1.query("datalayer", new String[] {"ID"}), 0, 0, 0, 0, String.format("%s ASC", v10_1), Integer.toString(p14));
                } catch (String v14_7) {
                    if (v1_0 != null) {
                        v1_0.close();
                    }
                    throw v14_7;
                } catch (String v14_2) {
                    String v14_4 = String.valueOf(v14_2.getMessage());
                    if (v14_4.length() == 0) {
                        String v14_6 = new String("Error in peekEntries fetching entryIds: ");
                    } else {
                        v14_6 = "Error in peekEntries fetching entryIds: ".concat(v14_4);
                    }
                    com.google.android.gms.tagmanager.zzdi.zzab(v14_6);
                    if (v1_0 == null) {
                        return v0_1;
                    } else {
                        v1_0.close();
                        return v0_1;
                    }
                }
                if (v1_0.moveToFirst()) {
                    do {
                        v0_1.add(String.valueOf(v1_0.getLong(0)));
                    } while(v1_0.moveToNext());
                }
                if (v1_0 == null) {
                    return v0_1;
                } else {
                    v1_0.close();
                    return v0_1;
                }
            } else {
                return v0_1;
            }
        } else {
            com.google.android.gms.tagmanager.zzdi.zzab("Invalid maxEntries specified. Skipping.");
            return v0_1;
        }
    }

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


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

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


    private final boolean zzd(String p46, long p47)
    {
        String v1_0 = this;
        this.zzjt().beginTransaction();
        try {
            com.google.android.gms.measurement.internal.zzac v3_10 = 0;
            int v2_1 = new com.google.android.gms.measurement.internal.zzfn$zza(this, 0);
            Object v4_28 = this.zzjt();
            String v5_61 = this.zzaue;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_1);
            v4_28.zzaf();
            v4_28.zzcl();
            try {
                int v7_2;
                String v23_1;
                Long v15_3 = v4_28.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        int v13_46;
                        com.google.android.gms.measurement.internal.zzac v3_79 = v5_61 cmp -1;
                        if (v3_79 == null) {
                            v13_46 = new String[] {0});
                        } else {
                            int v7_72 = new String[2];
                            v7_72[0] = 0;
                            v7_72[1] = String.valueOf(v5_61);
                            v13_46 = v7_72;
                        }
                        com.google.android.gms.measurement.internal.zzac v3_84;
                        if (v3_79 == null) {
                            v3_84 = "";
                        } else {
                            v3_84 = " and rowid <= ?";
                        }
                        boolean v14_16 = new StringBuilder((String.valueOf(v3_84).length() + 84));
                        v14_16.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_16.append(v3_84);
                        v14_16.append(" order by rowid limit 1;");
                        v3_10 = v15_3.rawQuery(v14_16.toString(), v13_46);
                        if (v3_10.moveToFirst()) {
                            int v13_51 = v3_10.getString(0);
                            v3_10.close();
                            v23_1 = v3_10;
                            v7_2 = v13_51;
                            v3_10 = 0;
                            try {
                                int v13_14 = new String[2];
                                v13_14[0] = v3_10;
                                v13_14[1] = v7_2;
                                String v25_2 = v15_3;
                                Long v15_2 = v15_3.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_14, 0, 0, "rowid", "2");
                                try {
                                    if (v15_2.moveToFirst()) {
                                        int v13_28 = v15_2.getBlob(0);
                                        int v13_29 = com.google.android.gms.internal.measurement.zzxz.zzj(v13_28, 0, v13_28.length);
                                        boolean v14_10 = new com.google.android.gms.internal.measurement.zzfw();
                                        try {
                                            v14_10.zza(v13_29);
                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                            long v6_3 = v15_2;
                                            v4_28.zzgt().zzjg().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10), v0_3);
                                            if (v6_3 == 0) {
                                                com.google.android.gms.measurement.internal.zzac v3_83;
                                                if (v2_1.zzauk == null) {
                                                    v3_83 = 1;
                                                } else {
                                                    if (!v2_1.zzauk.isEmpty()) {
                                                        v3_83 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_83 != null) {
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.measurement.internal.zzac v3_9 = v2_1.zzaui;
                                                    Object v4_4 = new com.google.android.gms.internal.measurement.zzft[v2_1.zzauk.size()];
                                                    v3_9.zzaxk = v4_4;
                                                    Object v4_7 = this.zzada.zzgv().zzau(v3_9.zztt);
                                                    String v5_13 = this.zzada.zzgv().zze(v2_1.zzaui.zztt, com.google.android.gms.measurement.internal.zzai.zzalc);
                                                    Boolean v8_14 = 0;
                                                    Object v9_7 = 0;
                                                    boolean v10_55 = 0;
                                                    Long v12_66 = 0;
                                                    int v13_34 = 0;
                                                    boolean v14_12 = 0;
                                                    while (v10_55 < v2_1.zzauk.size()) {
                                                        String v23_2;
                                                        int v18_0;
                                                        long v6_17 = ((com.google.android.gms.internal.measurement.zzft) v2_1.zzauk.get(v10_55));
                                                        boolean v21_0 = v12_66;
                                                        if (!this.zzls().zzo(v2_1.zzaui.zztt, v6_17.name)) {
                                                            long v29_0;
                                                            int v26_1;
                                                            v23_2 = v10_55;
                                                            String v25_1 = v13_34;
                                                            int v7_21 = this.zzls().zzp(v2_1.zzaui.zztt, v6_17.name);
                                                            if (v7_21 != 0) {
                                                                if (v6_17.zzaxc == null) {
                                                                    Long v12_20 = new com.google.android.gms.internal.measurement.zzfu[0];
                                                                    v6_17.zzaxc = v12_20;
                                                                }
                                                                int v11_12 = v6_17.zzaxc;
                                                                Long v12_21 = v11_12.length;
                                                                int v13_9 = 0;
                                                                int v26_2 = 0;
                                                                long v27_1 = 0;
                                                                while (v13_9 < v12_21) {
                                                                    boolean v10_46 = v11_12[v13_9];
                                                                    long v29_4 = v11_12;
                                                                    com.google.android.gms.measurement.internal.zzac v30_2 = v12_21;
                                                                    if (!"_c".equals(v10_46.name)) {
                                                                        if ("_r".equals(v10_46.name)) {
                                                                            v10_46.zzaxg = Long.valueOf(1);
                                                                            v27_1 = 1;
                                                                        }
                                                                    } else {
                                                                        v10_46.zzaxg = Long.valueOf(1);
                                                                        v26_2 = 1;
                                                                    }
                                                                    v13_9++;
                                                                    v11_12 = v29_4;
                                                                    v12_21 = v30_2;
                                                                }
                                                                if ((v26_2 == 0) && (v7_21 != 0)) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as conversion", this.zzada.zzgq().zzbt(v6_17.name));
                                                                    boolean v10_9 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_17.zzaxc, (v6_17.zzaxc.length + 1)));
                                                                    int v11_18 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v11_18.name = "_c";
                                                                    v11_18.zzaxg = Long.valueOf(1);
                                                                    v10_9[(v10_9.length - 1)] = v11_18;
                                                                    v6_17.zzaxc = v10_9;
                                                                }
                                                                if (v27_1 == 0) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as real-time", this.zzada.zzgq().zzbt(v6_17.name));
                                                                    boolean v10_15 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_17.zzaxc, (v6_17.zzaxc.length + 1)));
                                                                    int v11_24 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v11_24.name = "_r";
                                                                    v11_24.zzaxg = Long.valueOf(1);
                                                                    v10_15[(v10_15.length - 1)] = v11_24;
                                                                    v6_17.zzaxc = v10_15;
                                                                }
                                                                Long v12_42;
                                                                if (this.zzjt().zza(this.zzly(), v2_1.zzaui.zztt, 0, 0, 0, 0, 1).zzahl <= ((long) this.zzada.zzgv().zzaq(v2_1.zzaui.zztt))) {
                                                                    v26_1 = v3_9;
                                                                    v12_42 = 1;
                                                                } else {
                                                                    boolean v10_20 = 0;
                                                                    while (v10_20 < v6_17.zzaxc.length) {
                                                                        if (!"_r".equals(v6_17.zzaxc[v10_20].name)) {
                                                                            v10_20++;
                                                                        } else {
                                                                            int v11_32 = new com.google.android.gms.internal.measurement.zzfu[(v6_17.zzaxc.length - 1)];
                                                                            if (v10_20) {
                                                                                System.arraycopy(v6_17.zzaxc, 0, v11_32, 0, v10_20);
                                                                            }
                                                                            if (v10_20 >= v11_32.length) {
                                                                                v26_1 = v3_9;
                                                                            } else {
                                                                                v26_1 = v3_9;
                                                                                System.arraycopy(v6_17.zzaxc, (v10_20 + 1), v11_32, v10_20, (v11_32.length - v10_20));
                                                                            }
                                                                            v6_17.zzaxc = v11_32;
                                                                        }
                                                                        v12_42 = v21_0;
                                                                    }
                                                                    v26_1 = v3_9;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.zzfx.zzct(v6_17.name)) || (v7_21 == 0)) {
                                                                    v18_0 = v12_42;
                                                                    v29_0 = v14_12;
                                                                } else {
                                                                    v18_0 = v12_42;
                                                                    if (this.zzjt().zza(this.zzly(), v2_1.zzaui.zztt, 0, 0, 1, 0, 0).zzahj <= ((long) this.zzada.zzgv().zzb(v2_1.zzaui.zztt, com.google.android.gms.measurement.internal.zzai.zzajh))) {
                                                                        v29_0 = v14_12;
                                                                    } else {
                                                                        this.zzada.zzgt().zzjj().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                        com.google.android.gms.measurement.internal.zzac v3_25 = v6_17.zzaxc;
                                                                        boolean v10_24 = v3_25.length;
                                                                        int v11_36 = 0;
                                                                        Long v12_52 = 0;
                                                                        int v13_23 = 0;
                                                                        while (v11_36 < v10_24) {
                                                                            boolean v10_43 = v3_25[v11_36];
                                                                            if (!"_c".equals(v10_43.name)) {
                                                                                if ("_err".equals(v10_43.name)) {
                                                                                    v12_52 = 1;
                                                                                }
                                                                            } else {
                                                                                v13_23 = v10_43;
                                                                            }
                                                                            v11_36++;
                                                                        }
                                                                        v29_0 = v14_12;
                                                                        if ((v12_52 == null) || (v13_23 == 0)) {
                                                                            if (v13_23 == 0) {
                                                                                this.zzada.zzgt().zzjg().zzg("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                            } else {
                                                                                v13_23.name = "_err";
                                                                                v13_23.zzaxg = Long.valueOf(10);
                                                                            }
                                                                        } else {
                                                                            com.google.android.gms.measurement.internal.zzac v3_31 = v6_17.zzaxc;
                                                                            int v11_40 = new com.google.android.gms.internal.measurement.zzfu[1];
                                                                            v11_40[0] = v13_23;
                                                                            v6_17.zzaxc = ((com.google.android.gms.internal.measurement.zzfu[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v3_31, v11_40));
                                                                        }
                                                                    }
                                                                }
                                                            } else {
                                                                int v11_6;
                                                                this.zzjr();
                                                                int v11_4 = v6_17.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v11_4);
                                                                Long v12_16 = v11_4.hashCode();
                                                                if (v12_16 == 94660) {
                                                                    if (!v11_4.equals("_in")) {
                                                                        v11_6 = -1;
                                                                    } else {
                                                                        v11_6 = 0;
                                                                    }
                                                                } else {
                                                                    if (v12_16 == 95025) {
                                                                        if (!v11_4.equals("_ug")) {
                                                                        } else {
                                                                            v11_6 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v12_16 == 95027) {
                                                                            if (!v11_4.equals("_ui")) {
                                                                            } else {
                                                                                v11_6 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v11_9;
                                                                switch (v11_6) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v11_9 = 1;
                                                                    default:
                                                                        v11_9 = 0;
                                                                }
                                                                if (v11_9 == 0) {
                                                                    v26_1 = v3_9;
                                                                    v29_0 = v14_12;
                                                                    v18_0 = v21_0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzada.zzgv().zzbd(v2_1.zzaui.zztt)) || (v7_21 == 0)) {
                                                            } else {
                                                                com.google.android.gms.measurement.internal.zzac v3_37 = v6_17.zzaxc;
                                                                int v7_22 = 0;
                                                                boolean v10_31 = -1;
                                                                int v11_41 = -1;
                                                                while (v7_22 < v3_37.length) {
                                                                    if (!"value".equals(v3_37[v7_22].name)) {
                                                                        if ("currency".equals(v3_37[v7_22].name)) {
                                                                            v11_41 = v7_22;
                                                                        }
                                                                    } else {
                                                                        v10_31 = v7_22;
                                                                    }
                                                                    v7_22++;
                                                                }
                                                                if (v10_31 == -1) {
                                                                } else {
                                                                    if ((v3_37[v10_31].zzaxg != null) || (v3_37[v10_31].zzaup != null)) {
                                                                        int v7_31;
                                                                        if (v11_41 != -1) {
                                                                            int v7_30 = v3_37[v11_41].zzamn;
                                                                            if (v7_30 == 0) {
                                                                            } else {
                                                                                if (v7_30.length() == 3) {
                                                                                    int v11_44 = 0;
                                                                                    while (v11_44 < v7_30.length()) {
                                                                                        int v13_25 = v7_30.codePointAt(v11_44);
                                                                                        if (Character.isLetter(v13_25)) {
                                                                                            v11_44 += Character.charCount(v13_25);
                                                                                        } else {
                                                                                            v7_31 = 1;
                                                                                            if (v7_31 != 0) {
                                                                                                this.zzada.zzgt().zzjl().zzby("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                                v3_37 = com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(v3_37, v10_31), "_c"), 19, "currency");
                                                                                            }
                                                                                            v6_17.zzaxc = v3_37;
                                                                                            if (this.zzada.zzgv().zze(v2_1.zzaui.zztt, com.google.android.gms.measurement.internal.zzai.zzalb)) {
                                                                                                if (!"_e".equals(v6_17.name)) {
                                                                                                    if ("_vs".equals(v6_17.name)) {
                                                                                                        this.zzjr();
                                                                                                        if (com.google.android.gms.measurement.internal.zzft.zza(v6_17, "_et") == null) {
                                                                                                            if ((v8_14 == null) || ((Math.abs((v8_14.zzaxd.longValue() - v6_17.zzaxd.longValue())) > 1000) || (!this.zza(v8_14, v6_17)))) {
                                                                                                                v9_7 = v6_17;
                                                                                                            } else {
                                                                                                                v8_14 = 0;
                                                                                                                v9_7 = 0;
                                                                                                            }
                                                                                                        }
                                                                                                    }
                                                                                                } else {
                                                                                                    this.zzjr();
                                                                                                    if (com.google.android.gms.measurement.internal.zzft.zza(v6_17, "_fr") == null) {
                                                                                                        if ((v9_7 == null) || ((Math.abs((v9_7.zzaxd.longValue() - v6_17.zzaxd.longValue())) > 1000) || (!this.zza(v6_17, v9_7)))) {
                                                                                                            v8_14 = v6_17;
                                                                                                        } else {
                                                                                                            v8_14 = 0;
                                                                                                            v9_7 = 0;
                                                                                                        }
                                                                                                    }
                                                                                                }
                                                                                            }
                                                                                            if ((v4_7 == null) || ((v5_13 != null) || (!"_e".equals(v6_17.name)))) {
                                                                                                v3_9 = v26_1;
                                                                                            } else {
                                                                                                if (v6_17.zzaxc != null) {
                                                                                                    if (v6_17.zzaxc.length != 0) {
                                                                                                        this.zzjr();
                                                                                                        com.google.android.gms.measurement.internal.zzac v3_68 = ((Long) com.google.android.gms.measurement.internal.zzft.zzb(v6_17, "_et"));
                                                                                                        if (v3_68 != null) {
                                                                                                            v29_0 += v3_68.longValue();
                                                                                                            v3_9 = v26_1;
                                                                                                            v13_34 = (v25_1 + 1);
                                                                                                            v3_9.zzaxk[v25_1] = v6_17;
                                                                                                            v14_12 = v29_0;
                                                                                                            v10_55 = (v23_2 + 1);
                                                                                                            v12_66 = v18_0;
                                                                                                        } else {
                                                                                                            this.zzada.zzgt().zzjj().zzg("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                                                        }
                                                                                                    } else {
                                                                                                    }
                                                                                                }
                                                                                                this.zzada.zzgt().zzjj().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                    v7_31 = 0;
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v7_31 = 1;
                                                                        } else {
                                                                            v7_31 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzada.zzgt().zzjl().zzby("Value must be specified with a numeric type.");
                                                                        v3_37 = com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(v3_37, v10_31), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            int v7_62;
                                                            v23_2 = v10_55;
                                                            String v25_3 = v13_34;
                                                            this.zzada.zzgt().zzjj().zze("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt), this.zzada.zzgq().zzbt(v6_17.name));
                                                            if (this.zzls().zzcl(v2_1.zzaui.zztt)) {
                                                                v7_62 = 1;
                                                            } else {
                                                                if (!this.zzls().zzcm(v2_1.zzaui.zztt)) {
                                                                    v7_62 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v7_62 == 0) && (!"_err".equals(v6_17.name))) {
                                                                this.zzada.zzgr().zza(v2_1.zzaui.zztt, 11, "_ev", v6_17.name, 0);
                                                            }
                                                            v18_0 = v21_0;
                                                            v13_34 = v25_3;
                                                        }
                                                    }
                                                    int v13_5;
                                                    boolean v21_4 = v12_66;
                                                    String v25_4 = v13_34;
                                                    long v29_6 = v14_12;
                                                    if (v5_13 == null) {
                                                        v13_5 = v25_4;
                                                    } else {
                                                        v13_5 = v25_4;
                                                        boolean v14_5 = v29_6;
                                                        String v5_0 = 0;
                                                        while (v5_0 < v13_5) {
                                                            long v6_12;
                                                            long v6_9 = v3_9.zzaxk[v5_0];
                                                            if (!"_e".equals(v6_9.name)) {
                                                                if (v4_7 != null) {
                                                                    this.zzjr();
                                                                    long v6_10 = com.google.android.gms.measurement.internal.zzft.zza(v6_9, "_et");
                                                                    if (v6_10 != 0) {
                                                                        long v6_11 = v6_10.zzaxg;
                                                                        if ((v6_11 != 0) && (v6_11.longValue() > 0)) {
                                                                            v14_5 += v6_11.longValue();
                                                                            v6_12 = 1;
                                                                            v5_0 += v6_12;
                                                                        }
                                                                    }
                                                                }
                                                                v6_12 = 1;
                                                            } else {
                                                                this.zzjr();
                                                                if (com.google.android.gms.measurement.internal.zzft.zza(v6_9, "_fr") == null) {
                                                                } else {
                                                                    System.arraycopy(v3_9.zzaxk, (v5_0 + 1), v3_9.zzaxk, v5_0, ((v13_5 - v5_0) - 1));
                                                                    v13_5--;
                                                                    v5_0--;
                                                                    v6_12 = 1;
                                                                }
                                                            }
                                                        }
                                                        v29_6 = v14_5;
                                                    }
                                                    if (v13_5 < v2_1.zzauk.size()) {
                                                        v3_9.zzaxk = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v3_9.zzaxk, v13_5));
                                                    }
                                                    if (v4_7 != null) {
                                                        Object v4_12;
                                                        Object v4_9 = this.zzjt().zzi(v3_9.zztt, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.measurement.internal.zzfw;
                                                            v4_12(v3_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf(v29_6));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                String v5_21 = new com.google.android.gms.measurement.internal.zzfw;
                                                                v5_21(v3_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v29_6)));
                                                                v4_12 = v5_21;
                                                            } else {
                                                            }
                                                        }
                                                        String v5_24 = new com.google.android.gms.internal.measurement.zzfz();
                                                        v5_24.name = "_lte";
                                                        v5_24.zzayw = Long.valueOf(this.zzada.zzbx().currentTimeMillis());
                                                        v5_24.zzaxg = ((Long) v4_12.value);
                                                        long v6_48 = 0;
                                                        while (v6_48 < v3_9.zzaxl.length) {
                                                            if (!"_lte".equals(v3_9.zzaxl[v6_48].name)) {
                                                                v6_48++;
                                                            } else {
                                                                v3_9.zzaxl[v6_48] = v5_24;
                                                                long v6_49 = 1;
                                                            }
                                                            String v5_25;
                                                            if (v6_49 != 0) {
                                                                v5_25 = 0;
                                                            } else {
                                                                v3_9.zzaxl = ((com.google.android.gms.internal.measurement.zzfz[]) java.util.Arrays.copyOf(v3_9.zzaxl, (v3_9.zzaxl.length + 1)));
                                                                v3_9.zzaxl[(v2_1.zzaui.zzaxl.length - 1)] = v5_24;
                                                                v5_25 = 0;
                                                            }
                                                            if (v29_6 > v5_25) {
                                                                this.zzjt().zza(v4_12);
                                                                this.zzada.zzgt().zzjn().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_49 = 0;
                                                    }
                                                    String v1_7;
                                                    Object v9_9;
                                                    Object v4_14 = v3_9.zztt;
                                                    String v5_30 = v3_9.zzaxl;
                                                    long v6_55 = v3_9.zzaxk;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v4_14);
                                                    v3_9.zzayc = this.zzjs().zza(v4_14, v6_55, v5_30);
                                                    try {
                                                        if (!this.zzada.zzgv().zzat(v2_1.zzaui.zztt)) {
                                                            v9_9 = v2_1;
                                                            v1_7 = v3_9;
                                                        } else {
                                                            Object v4_20 = new java.util.HashMap();
                                                            String v5_35 = new com.google.android.gms.internal.measurement.zzft[v3_9.zzaxk.length];
                                                            long v6_7 = this.zzada.zzgr().zzmk();
                                                            int v7_10 = v3_9.zzaxk;
                                                            Boolean v8_10 = v7_10.length;
                                                            Object v9_3 = 0;
                                                            boolean v10_0 = 0;
                                                            while (v9_3 < v8_10) {
                                                                int v26_0;
                                                                Object v9_1;
                                                                long v27_0;
                                                                String v25_0;
                                                                String v23_0;
                                                                int v11_55 = v7_10[v9_3];
                                                                if (!v11_55.name.equals("_ep")) {
                                                                    com.google.android.gms.measurement.internal.zzac v3_122;
                                                                    long v28_1;
                                                                    Long v12_81 = this.zzls().zzck(v2_1.zzaui.zztt);
                                                                    v1_0.zzada.zzgr();
                                                                    boolean v14_21 = com.google.android.gms.measurement.internal.zzfx.zzc(v11_55.zzaxd.longValue(), v12_81);
                                                                    v23_0 = v7_10;
                                                                    v25_0 = v8_10;
                                                                    Boolean v8_24 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v8_24 != null)) {
                                                                        v26_0 = v3_9;
                                                                        com.google.android.gms.measurement.internal.zzac v3_121 = v11_55.zzaxc;
                                                                        v27_0 = v9_3;
                                                                        Object v9_10 = v3_121.length;
                                                                        v28_1 = v12_81;
                                                                        Long v12_82 = 0;
                                                                        while (v12_82 < v9_10) {
                                                                            int v13_57 = v3_121[v12_82];
                                                                            if (!"_dbg".equals(v13_57.name)) {
                                                                                v12_82++;
                                                                            } else {
                                                                                if (((!(v8_24 instanceof Long)) || (!v8_24.equals(v13_57.zzaxg))) && (((!(v8_24 instanceof String)) || (!v8_24.equals(v13_57.zzamn))) && ((!(v8_24 instanceof Double)) || (!v8_24.equals(v13_57.zzaup))))) {
                                                                                    v3_122 = 0;
                                                                                } else {
                                                                                    v3_122 = 1;
                                                                                }
                                                                            }
                                                                        }
                                                                        v3_122 = 0;
                                                                    } else {
                                                                        v26_0 = v3_9;
                                                                        v27_0 = v9_3;
                                                                        v28_1 = v12_81;
                                                                        v3_122 = 0;
                                                                    }
                                                                    Long v12_83;
                                                                    if (v3_122 != null) {
                                                                        v12_83 = 1;
                                                                    } else {
                                                                        v12_83 = this.zzls().zzq(v2_1.zzaui.zztt, v11_55.name);
                                                                    }
                                                                    if (v12_83 > null) {
                                                                        com.google.android.gms.measurement.internal.zzac v3_1 = ((com.google.android.gms.measurement.internal.zzac) v4_20.get(v11_55.name));
                                                                        if (v3_1 == null) {
                                                                            v3_1 = this.zzjt().zzg(v2_1.zzaui.zztt, v11_55.name);
                                                                            if (v3_1 == null) {
                                                                                v1_0.zzada.zzgt().zzjj().zze("Event being bundled has no eventAggregate. appId, eventName", v2_1.zzaui.zztt, v11_55.name);
                                                                                v3_1 = new com.google.android.gms.measurement.internal.zzac;
                                                                                v3_1(v2_1.zzaui.zztt, v11_55.name, 1, 1, v11_55.zzaxd.longValue(), 0, 0, 0, 0, 0);
                                                                            }
                                                                        }
                                                                        Boolean v8_30;
                                                                        this.zzjr();
                                                                        int v7_122 = ((Long) com.google.android.gms.measurement.internal.zzft.zzb(v11_55, "_eid"));
                                                                        if (v7_122 == 0) {
                                                                            v8_30 = 0;
                                                                        } else {
                                                                            v8_30 = 1;
                                                                        }
                                                                        Boolean v8_31 = Boolean.valueOf(v8_30);
                                                                        if (v12_83 != 1) {
                                                                            if (v6_7.nextInt(v12_83) != 0) {
                                                                                p46 = v6_7;
                                                                                int v13_58;
                                                                                String v1_19;
                                                                                if (!v1_0.zzada.zzgv().zzbf(v2_1.zzaui.zztt)) {
                                                                                    v9_1 = v2_1;
                                                                                    v13_58 = v7_122;
                                                                                    if (Math.abs((v11_55.zzaxd.longValue() - v3_1.zzahy)) < 86400000) {
                                                                                        v1_19 = 0;
                                                                                    } else {
                                                                                        v1_19 = 1;
                                                                                    }
                                                                                } else {
                                                                                    long v28_3;
                                                                                    if (v3_1.zzahz == null) {
                                                                                        v1_0.zzada.zzgr();
                                                                                        v9_1 = v2_1;
                                                                                        v13_58 = v7_122;
                                                                                        v28_3 = com.google.android.gms.measurement.internal.zzfx.zzc(v11_55.zzaxe.longValue(), v28_1);
                                                                                    } else {
                                                                                        v28_3 = v3_1.zzahz.longValue();
                                                                                        v9_1 = v2_1;
                                                                                        v13_58 = v7_122;
                                                                                    }
                                                                                    if (v28_3 == v14_21) {
                                                                                        v1_19 = 0;
                                                                                    } else {
                                                                                        v1_19 = 1;
                                                                                    }
                                                                                }
                                                                                if (v1_19 == null) {
                                                                                    if (v8_31.booleanValue()) {
                                                                                        v4_20.put(v11_55.name, v3_1.zza(v13_58, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzjr();
                                                                                    v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_efs", Long.valueOf(1));
                                                                                    this.zzjr();
                                                                                    long v6_90 = ((long) v12_83);
                                                                                    v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_sr", Long.valueOf(v6_90));
                                                                                    String v1_28 = (v10_0 + 1);
                                                                                    v5_35[v10_0] = v11_55;
                                                                                    if (v8_31.booleanValue()) {
                                                                                        v3_1 = v3_1.zza(0, Long.valueOf(v6_90), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_20.put(v11_55.name, v3_1.zza(v11_55.zzaxd.longValue(), v14_21));
                                                                                    v10_0 = v1_28;
                                                                                }
                                                                            } else {
                                                                                this.zzjr();
                                                                                Long v12_0 = ((long) v12_83);
                                                                                p46 = v6_7;
                                                                                v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_sr", Long.valueOf(v12_0));
                                                                                long v6_6 = (v10_0 + 1);
                                                                                v5_35[v10_0] = v11_55;
                                                                                if (v8_31.booleanValue()) {
                                                                                    v3_1 = v3_1.zza(0, Long.valueOf(v12_0), 0);
                                                                                }
                                                                                v4_20.put(v11_55.name, v3_1.zza(v11_55.zzaxd.longValue(), v14_21));
                                                                                v9_1 = v2_1;
                                                                                v10_0 = v6_6;
                                                                            }
                                                                        } else {
                                                                            int v7_6 = (v10_0 + 1);
                                                                            v5_35[v10_0] = v11_55;
                                                                            if ((v8_31.booleanValue()) && ((v3_1.zzaia != null) || ((v3_1.zzaib != null) || (v3_1.zzaic != null)))) {
                                                                                v4_20.put(v11_55.name, v3_1.zza(0, 0, 0));
                                                                            }
                                                                            v9_1 = v2_1;
                                                                            p46 = v6_7;
                                                                            v10_0 = v7_6;
                                                                        }
                                                                    } else {
                                                                        v1_0.zzada.zzgt().zzjj().zze("Sample rate must be positive. event, rate", v11_55.name, Integer.valueOf(v12_83));
                                                                        com.google.android.gms.measurement.internal.zzac v3_8 = (v10_0 + 1);
                                                                        v5_35[v10_0] = v11_55;
                                                                        v9_1 = v2_1;
                                                                        v10_0 = v3_8;
                                                                        p46 = v6_7;
                                                                    }
                                                                } else {
                                                                    this.zzjr();
                                                                    Long v12_3 = ((String) com.google.android.gms.measurement.internal.zzft.zzb(v11_55, "_en"));
                                                                    int v13_1 = ((com.google.android.gms.measurement.internal.zzac) v4_20.get(v12_3));
                                                                    if (v13_1 == 0) {
                                                                        v13_1 = this.zzjt().zzg(v2_1.zzaui.zztt, v12_3);
                                                                        v4_20.put(v12_3, v13_1);
                                                                    }
                                                                    if (v13_1.zzaia != null) {
                                                                        v26_0 = v3_9;
                                                                        p46 = v6_7;
                                                                        v23_0 = v7_10;
                                                                        v25_0 = v8_10;
                                                                        v27_0 = v9_3;
                                                                        v9_1 = v2_1;
                                                                    } else {
                                                                        if (v13_1.zzaib.longValue() > 1) {
                                                                            this.zzjr();
                                                                            v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_sr", v13_1.zzaib);
                                                                        }
                                                                        if ((v13_1.zzaic != null) && (v13_1.zzaic.booleanValue())) {
                                                                            this.zzjr();
                                                                            v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_efs", Long.valueOf(1));
                                                                        }
                                                                        Long v12_14 = (v10_0 + 1);
                                                                        v5_35[v10_0] = v11_55;
                                                                        v26_0 = v3_9;
                                                                        p46 = v6_7;
                                                                        v23_0 = v7_10;
                                                                        v25_0 = v8_10;
                                                                        v27_0 = v9_3;
                                                                        v10_0 = v12_14;
                                                                        v9_1 = v2_1;
                                                                    }
                                                                }
                                                                v6_7 = p46;
                                                                v2_1 = v9_1;
                                                                v7_10 = v23_0;
                                                                v8_10 = v25_0;
                                                                v3_9 = v26_0;
                                                                v9_3 = (v27_0 + 1);
                                                                v1_0 = this;
                                                            }
                                                            v9_9 = v2_1;
                                                            v1_7 = v3_9;
                                                            if (v10_0 < v1_7.zzaxk.length) {
                                                                v1_7.zzaxk = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v5_35, v10_0));
                                                            }
                                                            int v2_10 = v4_20.entrySet().iterator();
                                                            while (v2_10.hasNext()) {
                                                                this.zzjt().zza(((com.google.android.gms.measurement.internal.zzac) ((java.util.Map$Entry) v2_10.next()).getValue()));
                                                            }
                                                        }
                                                        try {
                                                            v1_7.zzaxn = Long.valueOf(nan);
                                                            v1_7.zzaxo = Long.valueOf(-0.0);
                                                            int v2_15 = 0;
                                                        } catch (android.database.sqlite.SQLiteException v0_4) {
                                                            String v1_2 = v0_4;
                                                            this.zzjt().endTransaction();
                                                            throw v1_2;
                                                        }
                                                        while (v2_15 < v1_7.zzaxk.length) {
                                                            com.google.android.gms.measurement.internal.zzac v3_115 = v1_7.zzaxk[v2_15];
                                                            if (v3_115.zzaxd.longValue() < v1_7.zzaxn.longValue()) {
                                                                v1_7.zzaxn = v3_115.zzaxd;
                                                            }
                                                            if (v3_115.zzaxd.longValue() > v1_7.zzaxo.longValue()) {
                                                                v1_7.zzaxo = v3_115.zzaxd;
                                                            }
                                                            v2_15++;
                                                        }
                                                        Object v4_21;
                                                        int v2_17 = v9_9.zzaui.zztt;
                                                        com.google.android.gms.measurement.internal.zzac v3_91 = this.zzjt().zzbm(v2_17);
                                                        if (v3_91 != null) {
                                                            v4_21 = this;
                                                            if (v1_7.zzaxk.length > 0) {
                                                                int v7_98;
                                                                String v5_38 = v3_91.zzhe();
                                                                if (v5_38 == 0) {
                                                                    v7_98 = 0;
                                                                } else {
                                                                    v7_98 = Long.valueOf(v5_38);
                                                                }
                                                                v1_7.zzaxq = v7_98;
                                                                int v7_99 = v3_91.zzhd();
                                                                if (v7_99 != 0) {
                                                                    v5_38 = v7_99;
                                                                } else {
                                                                }
                                                                String v5_39;
                                                                if (v5_38 == 0) {
                                                                    v5_39 = 0;
                                                                } else {
                                                                    v5_39 = Long.valueOf(v5_38);
                                                                }
                                                                v1_7.zzaxp = v5_39;
                                                                v3_91.zzhm();
                                                                v1_7.zzaya = Integer.valueOf(((int) v3_91.zzhj()));
                                                                v3_91.zzo(v1_7.zzaxn.longValue());
                                                                v3_91.zzp(v1_7.zzaxo.longValue());
                                                                v1_7.zzagm = v3_91.zzhu();
                                                                this.zzjt().zza(v3_91);
                                                            }
                                                        } else {
                                                            v4_21 = this;
                                                            this.zzada.zzgt().zzjg().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v9_9.zzaui.zztt));
                                                        }
                                                        if (v1_7.zzaxk.length > 0) {
                                                            v4_21.zzada.zzgw();
                                                            com.google.android.gms.measurement.internal.zzac v3_99 = this.zzls().zzcg(v9_9.zzaui.zztt);
                                                            if (v3_99 == null) {
                                                                if (!android.text.TextUtils.isEmpty(v9_9.zzaui.zzafi)) {
                                                                    v4_21.zzada.zzgt().zzjj().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v9_9.zzaui.zztt));
                                                                } else {
                                                                    v1_7.zzayh = Long.valueOf(-1);
                                                                }
                                                            } else {
                                                                if (v3_99.zzawm != null) {
                                                                    v1_7.zzayh = v3_99.zzawm;
                                                                } else {
                                                                }
                                                            }
                                                            this.zzjt().zza(v1_7, v21_4);
                                                        }
                                                        String v1_8 = this.zzjt();
                                                        com.google.android.gms.measurement.internal.zzac v3_109 = v9_9.zzauj;
                                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_109);
                                                        v1_8.zzaf();
                                                        v1_8.zzcl();
                                                        String v5_55 = new StringBuilder("rowid in (");
                                                        long v6_66 = 0;
                                                        while (v6_66 < v3_109.size()) {
                                                            if (v6_66 != 0) {
                                                                v5_55.append(",");
                                                            }
                                                            v5_55.append(((Long) v3_109.get(v6_66)).longValue());
                                                            v6_66++;
                                                        }
                                                        v5_55.append(")");
                                                        String v5_57 = v1_8.getWritableDatabase().delete("raw_events", v5_55.toString(), 0);
                                                        if (v5_57 != v3_109.size()) {
                                                            v1_8.zzgt().zzjg().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_57), Integer.valueOf(v3_109.size()));
                                                        }
                                                        String v1_11 = this.zzjt();
                                                        com.google.android.gms.measurement.internal.zzac v3_112 = v1_11.getWritableDatabase();
                                                        try {
                                                            long v6_72 = new String[2];
                                                            v6_72[0] = v2_17;
                                                            v6_72[1] = v2_17;
                                                            v3_112.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v6_72);
                                                        } catch (android.database.sqlite.SQLiteException v0_7) {
                                                            v1_11.zzgt().zzjg().zze("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_17), v0_7);
                                                        }
                                                        this.zzjt().setTransactionSuccessful();
                                                        this.zzjt().endTransaction();
                                                        return 1;
                                                    } catch (android.database.sqlite.SQLiteException v0_2) {
                                                        v1_2 = v0_2;
                                                    }
                                                }
                                            } else {
                                                v6_3.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v7_2 = v3_10;
                                            com.google.android.gms.measurement.internal.zzac v3_0 = v0_1;
                                            try {
                                                v4_28.zzgt().zzjg().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_2), v3_0);
                                            } catch (android.database.sqlite.SQLiteException v0_6) {
                                                String v1_3 = v0_6;
                                                int v22 = v6_3;
                                                if (v22 != 0) {
                                                    v22.close();
                                                }
                                                throw v1_3;
                                            }
                                            if (v6_3 == 0) {
                                            } else {
                                                v6_3.close();
                                            }
                                        }
                                        if (v15_2.moveToNext()) {
                                            v4_28.zzgt().zzjj().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10));
                                        }
                                        String v16_2;
                                        String[] v17_2;
                                        v15_2.close();
                                        v2_1.zzb(v14_10);
                                        if (v5_61 == -1) {
                                            boolean v10_58 = new String[2];
                                            v10_58[0] = v3_10;
                                            v10_58[1] = v7_2;
                                            v16_2 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_2 = v10_58;
                                        } else {
                                            int v13_44 = new String[3];
                                            v13_44[0] = v3_10;
                                            v13_44[1] = v7_2;
                                            v13_44[2] = String.valueOf(v5_61);
                                            v16_2 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_2 = v13_44;
                                        }
                                        v6_3 = v15_2;
                                        String v5_6 = v25_2.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_2, v17_2, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_6.moveToFirst()) {
                                                v4_28.zzgt().zzjj().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10));
                                                if (v5_6 == null) {
                                                } else {
                                                    v5_6.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v22 = v5_6;
                                            v1_3 = v0_0;
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v7_2 = v3_10;
                                            v6_3 = v5_6;
                                        }
                                        do {
                                            long v6_24 = v5_6.getLong(0);
                                            Long v12_70 = v5_6.getBlob(3);
                                            boolean v10_63 = com.google.android.gms.internal.measurement.zzxz.zzj(v12_70, 0, v12_70.length);
                                            Long v12_72 = new com.google.android.gms.internal.measurement.zzft();
                                            v12_72.zza(v10_63);
                                            v12_72.name = v5_6.getString(1);
                                            v12_72.zzaxd = Long.valueOf(v5_6.getLong(2));
                                            if (v2_1.zza(v6_24, v12_72)) {
                                            } else {
                                                if (v5_6 == null) {
                                                } else {
                                                    v5_6.close();
                                                }
                                            }
                                        } while(v5_6.moveToNext());
                                        if (v5_6 == null) {
                                        } else {
                                            v5_6.close();
                                        }
                                    } else {
                                        v4_28.zzgt().zzjg().zzg("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10));
                                        if (v15_2 == null) {
                                        } else {
                                            v15_2.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_3 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v6_3 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v22 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v7_2 = v3_10;
                                    v6_3 = v15_2;
                                }
                                v22 = v6_3;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v22 = v23_1;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v7_2 = v3_10;
                                v6_3 = v23_1;
                            }
                        } else {
                            if (v3_10 == null) {
                            } else {
                                v3_10.close();
                            }
                        }
                    } else {
                        boolean v14_17;
                        int v13_52 = v5_61 cmp -1;
                        try {
                            if (v13_52 == 0) {
                                v14_17 = new String[1];
                                v14_17[0] = String.valueOf(p47);
                            } else {
                                v14_17 = new String[2];
                                v14_17[0] = String.valueOf(v5_61);
                                v14_17[1] = String.valueOf(p47);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            v6_3 = 0;
                            v7_2 = 0;
                        }
                        int v13_53;
                        if (v13_52 == 0) {
                            v13_53 = "";
                        } else {
                            v13_53 = "rowid <= ? and ";
                        }
                        com.google.android.gms.measurement.internal.zzac v3_142 = new StringBuilder((String.valueOf(v13_53).length() + 148));
                        v3_142.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_142.append(v13_53);
                        v3_142.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_10 = v15_3.rawQuery(v3_142.toString(), v14_17);
                        if (v3_10.moveToFirst()) {
                            int v7_9 = v3_10.getString(0);
                            try {
                                int v13_4 = v3_10.getString(1);
                                v3_10.close();
                                v23_1 = v3_10;
                                v3_10 = v7_9;
                                v7_2 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v6_3 = v3_10;
                            }
                        } else {
                            if (v3_10 == null) {
                            } else {
                                v3_10.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v22 = v3_10;
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v6_3 = v3_10;
                    v7_2 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v22 = 0;
            } catch (android.database.sqlite.SQLiteException v0_8) {
                v3_0 = v0_8;
                v6_3 = 0;
                v7_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_4) {
            }
        } catch (android.database.sqlite.SQLiteException v0_4) {
        }
    }

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


    private final boolean zzd(String p46, long p47)
    {
        String v1_0 = this;
        this.zzjt().beginTransaction();
        try {
            com.google.android.gms.measurement.internal.zzac v3_10 = 0;
            int v2_1 = new com.google.android.gms.measurement.internal.zzfn$zza(this, 0);
            Object v4_28 = this.zzjt();
            String v5_61 = this.zzaue;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_1);
            v4_28.zzaf();
            v4_28.zzcl();
            try {
                int v7_2;
                String v23_1;
                Long v15_3 = v4_28.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        int v13_46;
                        com.google.android.gms.measurement.internal.zzac v3_79 = v5_61 cmp -1;
                        if (v3_79 == null) {
                            v13_46 = new String[] {0});
                        } else {
                            int v7_72 = new String[2];
                            v7_72[0] = 0;
                            v7_72[1] = String.valueOf(v5_61);
                            v13_46 = v7_72;
                        }
                        com.google.android.gms.measurement.internal.zzac v3_84;
                        if (v3_79 == null) {
                            v3_84 = "";
                        } else {
                            v3_84 = " and rowid <= ?";
                        }
                        boolean v14_16 = new StringBuilder((String.valueOf(v3_84).length() + 84));
                        v14_16.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_16.append(v3_84);
                        v14_16.append(" order by rowid limit 1;");
                        v3_10 = v15_3.rawQuery(v14_16.toString(), v13_46);
                        if (v3_10.moveToFirst()) {
                            int v13_51 = v3_10.getString(0);
                            v3_10.close();
                            v23_1 = v3_10;
                            v7_2 = v13_51;
                            v3_10 = 0;
                            try {
                                int v13_14 = new String[2];
                                v13_14[0] = v3_10;
                                v13_14[1] = v7_2;
                                String v25_2 = v15_3;
                                Long v15_2 = v15_3.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_14, 0, 0, "rowid", "2");
                                try {
                                    if (v15_2.moveToFirst()) {
                                        int v13_28 = v15_2.getBlob(0);
                                        int v13_29 = com.google.android.gms.internal.measurement.zzxz.zzj(v13_28, 0, v13_28.length);
                                        boolean v14_10 = new com.google.android.gms.internal.measurement.zzfw();
                                        try {
                                            v14_10.zza(v13_29);
                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                            long v6_3 = v15_2;
                                            v4_28.zzgt().zzjg().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10), v0_3);
                                            if (v6_3 == 0) {
                                                com.google.android.gms.measurement.internal.zzac v3_83;
                                                if (v2_1.zzauk == null) {
                                                    v3_83 = 1;
                                                } else {
                                                    if (!v2_1.zzauk.isEmpty()) {
                                                        v3_83 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_83 != null) {
                                                    this.zzjt().setTransactionSuccessful();
                                                    this.zzjt().endTransaction();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.measurement.internal.zzac v3_9 = v2_1.zzaui;
                                                    Object v4_4 = new com.google.android.gms.internal.measurement.zzft[v2_1.zzauk.size()];
                                                    v3_9.zzaxk = v4_4;
                                                    Object v4_7 = this.zzada.zzgv().zzau(v3_9.zztt);
                                                    String v5_13 = this.zzada.zzgv().zze(v2_1.zzaui.zztt, com.google.android.gms.measurement.internal.zzai.zzalc);
                                                    Boolean v8_14 = 0;
                                                    Object v9_7 = 0;
                                                    boolean v10_55 = 0;
                                                    Long v12_66 = 0;
                                                    int v13_34 = 0;
                                                    boolean v14_12 = 0;
                                                    while (v10_55 < v2_1.zzauk.size()) {
                                                        int v18_0;
                                                        String v23_2;
                                                        long v6_17 = ((com.google.android.gms.internal.measurement.zzft) v2_1.zzauk.get(v10_55));
                                                        boolean v21_0 = v12_66;
                                                        if (!this.zzls().zzo(v2_1.zzaui.zztt, v6_17.name)) {
                                                            long v29_0;
                                                            int v26_1;
                                                            v23_2 = v10_55;
                                                            String v25_1 = v13_34;
                                                            int v7_21 = this.zzls().zzp(v2_1.zzaui.zztt, v6_17.name);
                                                            if (v7_21 != 0) {
                                                                if (v6_17.zzaxc == null) {
                                                                    Long v12_20 = new com.google.android.gms.internal.measurement.zzfu[0];
                                                                    v6_17.zzaxc = v12_20;
                                                                }
                                                                int v11_12 = v6_17.zzaxc;
                                                                Long v12_21 = v11_12.length;
                                                                int v13_9 = 0;
                                                                int v26_2 = 0;
                                                                long v27_1 = 0;
                                                                while (v13_9 < v12_21) {
                                                                    boolean v10_46 = v11_12[v13_9];
                                                                    long v29_4 = v11_12;
                                                                    com.google.android.gms.measurement.internal.zzac v30_2 = v12_21;
                                                                    if (!"_c".equals(v10_46.name)) {
                                                                        if ("_r".equals(v10_46.name)) {
                                                                            v10_46.zzaxg = Long.valueOf(1);
                                                                            v27_1 = 1;
                                                                        }
                                                                    } else {
                                                                        v10_46.zzaxg = Long.valueOf(1);
                                                                        v26_2 = 1;
                                                                    }
                                                                    v13_9++;
                                                                    v11_12 = v29_4;
                                                                    v12_21 = v30_2;
                                                                }
                                                                if ((v26_2 == 0) && (v7_21 != 0)) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as conversion", this.zzada.zzgq().zzbt(v6_17.name));
                                                                    boolean v10_9 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_17.zzaxc, (v6_17.zzaxc.length + 1)));
                                                                    int v11_18 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v11_18.name = "_c";
                                                                    v11_18.zzaxg = Long.valueOf(1);
                                                                    v10_9[(v10_9.length - 1)] = v11_18;
                                                                    v6_17.zzaxc = v10_9;
                                                                }
                                                                if (v27_1 == 0) {
                                                                    this.zzada.zzgt().zzjo().zzg("Marking event as real-time", this.zzada.zzgq().zzbt(v6_17.name));
                                                                    boolean v10_15 = ((com.google.android.gms.internal.measurement.zzfu[]) java.util.Arrays.copyOf(v6_17.zzaxc, (v6_17.zzaxc.length + 1)));
                                                                    int v11_24 = new com.google.android.gms.internal.measurement.zzfu();
                                                                    v11_24.name = "_r";
                                                                    v11_24.zzaxg = Long.valueOf(1);
                                                                    v10_15[(v10_15.length - 1)] = v11_24;
                                                                    v6_17.zzaxc = v10_15;
                                                                }
                                                                Long v12_42;
                                                                if (this.zzjt().zza(this.zzly(), v2_1.zzaui.zztt, 0, 0, 0, 0, 1).zzahl <= ((long) this.zzada.zzgv().zzaq(v2_1.zzaui.zztt))) {
                                                                    v26_1 = v3_9;
                                                                    v12_42 = 1;
                                                                } else {
                                                                    boolean v10_20 = 0;
                                                                    while (v10_20 < v6_17.zzaxc.length) {
                                                                        if (!"_r".equals(v6_17.zzaxc[v10_20].name)) {
                                                                            v10_20++;
                                                                        } else {
                                                                            int v11_32 = new com.google.android.gms.internal.measurement.zzfu[(v6_17.zzaxc.length - 1)];
                                                                            if (v10_20) {
                                                                                System.arraycopy(v6_17.zzaxc, 0, v11_32, 0, v10_20);
                                                                            }
                                                                            if (v10_20 >= v11_32.length) {
                                                                                v26_1 = v3_9;
                                                                            } else {
                                                                                v26_1 = v3_9;
                                                                                System.arraycopy(v6_17.zzaxc, (v10_20 + 1), v11_32, v10_20, (v11_32.length - v10_20));
                                                                            }
                                                                            v6_17.zzaxc = v11_32;
                                                                        }
                                                                        v12_42 = v21_0;
                                                                    }
                                                                    v26_1 = v3_9;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.zzfx.zzct(v6_17.name)) || (v7_21 == 0)) {
                                                                    v18_0 = v12_42;
                                                                    v29_0 = v14_12;
                                                                } else {
                                                                    v18_0 = v12_42;
                                                                    if (this.zzjt().zza(this.zzly(), v2_1.zzaui.zztt, 0, 0, 1, 0, 0).zzahj <= ((long) this.zzada.zzgv().zzb(v2_1.zzaui.zztt, com.google.android.gms.measurement.internal.zzai.zzajh))) {
                                                                        v29_0 = v14_12;
                                                                    } else {
                                                                        this.zzada.zzgt().zzjj().zzg("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                        com.google.android.gms.measurement.internal.zzac v3_25 = v6_17.zzaxc;
                                                                        boolean v10_24 = v3_25.length;
                                                                        int v11_36 = 0;
                                                                        Long v12_52 = 0;
                                                                        int v13_23 = 0;
                                                                        while (v11_36 < v10_24) {
                                                                            boolean v10_43 = v3_25[v11_36];
                                                                            if (!"_c".equals(v10_43.name)) {
                                                                                if ("_err".equals(v10_43.name)) {
                                                                                    v12_52 = 1;
                                                                                }
                                                                            } else {
                                                                                v13_23 = v10_43;
                                                                            }
                                                                            v11_36++;
                                                                        }
                                                                        v29_0 = v14_12;
                                                                        if ((v12_52 == null) || (v13_23 == 0)) {
                                                                            if (v13_23 == 0) {
                                                                                this.zzada.zzgt().zzjg().zzg("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                            } else {
                                                                                v13_23.name = "_err";
                                                                                v13_23.zzaxg = Long.valueOf(10);
                                                                            }
                                                                        } else {
                                                                            com.google.android.gms.measurement.internal.zzac v3_31 = v6_17.zzaxc;
                                                                            int v11_40 = new com.google.android.gms.internal.measurement.zzfu[1];
                                                                            v11_40[0] = v13_23;
                                                                            v6_17.zzaxc = ((com.google.android.gms.internal.measurement.zzfu[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v3_31, v11_40));
                                                                        }
                                                                    }
                                                                }
                                                            } else {
                                                                int v11_6;
                                                                this.zzjr();
                                                                int v11_4 = v6_17.name;
                                                                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v11_4);
                                                                Long v12_16 = v11_4.hashCode();
                                                                if (v12_16 == 94660) {
                                                                    if (!v11_4.equals("_in")) {
                                                                        v11_6 = -1;
                                                                    } else {
                                                                        v11_6 = 0;
                                                                    }
                                                                } else {
                                                                    if (v12_16 == 95025) {
                                                                        if (!v11_4.equals("_ug")) {
                                                                        } else {
                                                                            v11_6 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v12_16 == 95027) {
                                                                            if (!v11_4.equals("_ui")) {
                                                                            } else {
                                                                                v11_6 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v11_9;
                                                                switch (v11_6) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v11_9 = 1;
                                                                    default:
                                                                        v11_9 = 0;
                                                                }
                                                                if (v11_9 == 0) {
                                                                    v26_1 = v3_9;
                                                                    v29_0 = v14_12;
                                                                    v18_0 = v21_0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.zzada.zzgv().zzbd(v2_1.zzaui.zztt)) || (v7_21 == 0)) {
                                                            } else {
                                                                com.google.android.gms.measurement.internal.zzac v3_37 = v6_17.zzaxc;
                                                                int v7_22 = 0;
                                                                boolean v10_31 = -1;
                                                                int v11_41 = -1;
                                                                while (v7_22 < v3_37.length) {
                                                                    if (!"value".equals(v3_37[v7_22].name)) {
                                                                        if ("currency".equals(v3_37[v7_22].name)) {
                                                                            v11_41 = v7_22;
                                                                        }
                                                                    } else {
                                                                        v10_31 = v7_22;
                                                                    }
                                                                    v7_22++;
                                                                }
                                                                if (v10_31 == -1) {
                                                                } else {
                                                                    if ((v3_37[v10_31].zzaxg != null) || (v3_37[v10_31].zzaup != null)) {
                                                                        int v7_31;
                                                                        if (v11_41 != -1) {
                                                                            int v7_30 = v3_37[v11_41].zzamn;
                                                                            if (v7_30 == 0) {
                                                                            } else {
                                                                                if (v7_30.length() == 3) {
                                                                                    int v11_44 = 0;
                                                                                    while (v11_44 < v7_30.length()) {
                                                                                        int v13_25 = v7_30.codePointAt(v11_44);
                                                                                        if (Character.isLetter(v13_25)) {
                                                                                            v11_44 += Character.charCount(v13_25);
                                                                                        } else {
                                                                                            v7_31 = 1;
                                                                                            if (v7_31 != 0) {
                                                                                                this.zzada.zzgt().zzjl().zzby("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                                v3_37 = com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(v3_37, v10_31), "_c"), 19, "currency");
                                                                                            }
                                                                                            v6_17.zzaxc = v3_37;
                                                                                            if (this.zzada.zzgv().zze(v2_1.zzaui.zztt, com.google.android.gms.measurement.internal.zzai.zzalb)) {
                                                                                                if (!"_e".equals(v6_17.name)) {
                                                                                                    if ("_vs".equals(v6_17.name)) {
                                                                                                        this.zzjr();
                                                                                                        if (com.google.android.gms.measurement.internal.zzft.zza(v6_17, "_et") == null) {
                                                                                                            if ((v8_14 == null) || ((Math.abs((v8_14.zzaxd.longValue() - v6_17.zzaxd.longValue())) > 1000) || (!this.zza(v8_14, v6_17)))) {
                                                                                                                v9_7 = v6_17;
                                                                                                            } else {
                                                                                                                v8_14 = 0;
                                                                                                                v9_7 = 0;
                                                                                                            }
                                                                                                        }
                                                                                                    }
                                                                                                } else {
                                                                                                    this.zzjr();
                                                                                                    if (com.google.android.gms.measurement.internal.zzft.zza(v6_17, "_fr") == null) {
                                                                                                        if ((v9_7 == null) || ((Math.abs((v9_7.zzaxd.longValue() - v6_17.zzaxd.longValue())) > 1000) || (!this.zza(v6_17, v9_7)))) {
                                                                                                            v8_14 = v6_17;
                                                                                                        } else {
                                                                                                            v8_14 = 0;
                                                                                                            v9_7 = 0;
                                                                                                        }
                                                                                                    }
                                                                                                }
                                                                                            }
                                                                                            if ((v4_7 == null) || ((v5_13 != null) || (!"_e".equals(v6_17.name)))) {
                                                                                                v3_9 = v26_1;
                                                                                            } else {
                                                                                                if (v6_17.zzaxc != null) {
                                                                                                    if (v6_17.zzaxc.length != 0) {
                                                                                                        this.zzjr();
                                                                                                        com.google.android.gms.measurement.internal.zzac v3_68 = ((Long) com.google.android.gms.measurement.internal.zzft.zzb(v6_17, "_et"));
                                                                                                        if (v3_68 != null) {
                                                                                                            v29_0 += v3_68.longValue();
                                                                                                            v3_9 = v26_1;
                                                                                                            v13_34 = (v25_1 + 1);
                                                                                                            v3_9.zzaxk[v25_1] = v6_17;
                                                                                                            v14_12 = v29_0;
                                                                                                            v10_55 = (v23_2 + 1);
                                                                                                            v12_66 = v18_0;
                                                                                                        } else {
                                                                                                            this.zzada.zzgt().zzjj().zzg("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                                                        }
                                                                                                    } else {
                                                                                                    }
                                                                                                }
                                                                                                this.zzada.zzgt().zzjj().zzg("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt));
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                    v7_31 = 0;
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v7_31 = 1;
                                                                        } else {
                                                                            v7_31 = 1;
                                                                        }
                                                                    } else {
                                                                        this.zzada.zzgt().zzjl().zzby("Value must be specified with a numeric type.");
                                                                        v3_37 = com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(com.google.android.gms.measurement.internal.zzfn.zza(v3_37, v10_31), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            int v7_62;
                                                            v23_2 = v10_55;
                                                            String v25_3 = v13_34;
                                                            this.zzada.zzgt().zzjj().zze("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_1.zzaui.zztt), this.zzada.zzgq().zzbt(v6_17.name));
                                                            if (this.zzls().zzcl(v2_1.zzaui.zztt)) {
                                                                v7_62 = 1;
                                                            } else {
                                                                if (!this.zzls().zzcm(v2_1.zzaui.zztt)) {
                                                                    v7_62 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v7_62 == 0) && (!"_err".equals(v6_17.name))) {
                                                                this.zzada.zzgr().zza(v2_1.zzaui.zztt, 11, "_ev", v6_17.name, 0);
                                                            }
                                                            v18_0 = v21_0;
                                                            v13_34 = v25_3;
                                                        }
                                                    }
                                                    int v13_5;
                                                    boolean v21_4 = v12_66;
                                                    String v25_4 = v13_34;
                                                    long v29_6 = v14_12;
                                                    if (v5_13 == null) {
                                                        v13_5 = v25_4;
                                                    } else {
                                                        v13_5 = v25_4;
                                                        boolean v14_5 = v29_6;
                                                        String v5_0 = 0;
                                                        while (v5_0 < v13_5) {
                                                            long v6_12;
                                                            long v6_9 = v3_9.zzaxk[v5_0];
                                                            if (!"_e".equals(v6_9.name)) {
                                                                if (v4_7 != null) {
                                                                    this.zzjr();
                                                                    long v6_10 = com.google.android.gms.measurement.internal.zzft.zza(v6_9, "_et");
                                                                    if (v6_10 != 0) {
                                                                        long v6_11 = v6_10.zzaxg;
                                                                        if ((v6_11 != 0) && (v6_11.longValue() > 0)) {
                                                                            v14_5 += v6_11.longValue();
                                                                            v6_12 = 1;
                                                                            v5_0 += v6_12;
                                                                        }
                                                                    }
                                                                }
                                                                v6_12 = 1;
                                                            } else {
                                                                this.zzjr();
                                                                if (com.google.android.gms.measurement.internal.zzft.zza(v6_9, "_fr") == null) {
                                                                } else {
                                                                    System.arraycopy(v3_9.zzaxk, (v5_0 + 1), v3_9.zzaxk, v5_0, ((v13_5 - v5_0) - 1));
                                                                    v13_5--;
                                                                    v5_0--;
                                                                    v6_12 = 1;
                                                                }
                                                            }
                                                        }
                                                        v29_6 = v14_5;
                                                    }
                                                    if (v13_5 < v2_1.zzauk.size()) {
                                                        v3_9.zzaxk = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v3_9.zzaxk, v13_5));
                                                    }
                                                    if (v4_7 != null) {
                                                        Object v4_12;
                                                        Object v4_9 = this.zzjt().zzi(v3_9.zztt, "_lte");
                                                        if (v4_9 == null) {
                                                            v4_12 = new com.google.android.gms.measurement.internal.zzfw;
                                                            v4_12(v3_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf(v29_6));
                                                        } else {
                                                            if (v4_9.value != null) {
                                                                String v5_21 = new com.google.android.gms.measurement.internal.zzfw;
                                                                v5_21(v3_9.zztt, "auto", "_lte", this.zzada.zzbx().currentTimeMillis(), Long.valueOf((((Long) v4_9.value).longValue() + v29_6)));
                                                                v4_12 = v5_21;
                                                            } else {
                                                            }
                                                        }
                                                        String v5_24 = new com.google.android.gms.internal.measurement.zzfz();
                                                        v5_24.name = "_lte";
                                                        v5_24.zzayw = Long.valueOf(this.zzada.zzbx().currentTimeMillis());
                                                        v5_24.zzaxg = ((Long) v4_12.value);
                                                        long v6_48 = 0;
                                                        while (v6_48 < v3_9.zzaxl.length) {
                                                            if (!"_lte".equals(v3_9.zzaxl[v6_48].name)) {
                                                                v6_48++;
                                                            } else {
                                                                v3_9.zzaxl[v6_48] = v5_24;
                                                                long v6_49 = 1;
                                                            }
                                                            String v5_25;
                                                            if (v6_49 != 0) {
                                                                v5_25 = 0;
                                                            } else {
                                                                v3_9.zzaxl = ((com.google.android.gms.internal.measurement.zzfz[]) java.util.Arrays.copyOf(v3_9.zzaxl, (v3_9.zzaxl.length + 1)));
                                                                v3_9.zzaxl[(v2_1.zzaui.zzaxl.length - 1)] = v5_24;
                                                                v5_25 = 0;
                                                            }
                                                            if (v29_6 > v5_25) {
                                                                this.zzjt().zza(v4_12);
                                                                this.zzada.zzgt().zzjn().zzg("Updated lifetime engagement user property with value. Value", v4_12.value);
                                                            }
                                                        }
                                                        v6_49 = 0;
                                                    }
                                                    String v1_7;
                                                    Object v9_9;
                                                    Object v4_14 = v3_9.zztt;
                                                    String v5_30 = v3_9.zzaxl;
                                                    long v6_55 = v3_9.zzaxk;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v4_14);
                                                    v3_9.zzayc = this.zzjs().zza(v4_14, v6_55, v5_30);
                                                    try {
                                                        if (!this.zzada.zzgv().zzat(v2_1.zzaui.zztt)) {
                                                            v9_9 = v2_1;
                                                            v1_7 = v3_9;
                                                        } else {
                                                            Object v4_20 = new java.util.HashMap();
                                                            String v5_35 = new com.google.android.gms.internal.measurement.zzft[v3_9.zzaxk.length];
                                                            long v6_7 = this.zzada.zzgr().zzmk();
                                                            int v7_10 = v3_9.zzaxk;
                                                            Boolean v8_10 = v7_10.length;
                                                            Object v9_3 = 0;
                                                            boolean v10_0 = 0;
                                                            while (v9_3 < v8_10) {
                                                                long v27_0;
                                                                String v25_0;
                                                                String v23_0;
                                                                int v26_0;
                                                                Object v9_1;
                                                                int v11_55 = v7_10[v9_3];
                                                                if (!v11_55.name.equals("_ep")) {
                                                                    long v28_1;
                                                                    com.google.android.gms.measurement.internal.zzac v3_122;
                                                                    Long v12_81 = this.zzls().zzck(v2_1.zzaui.zztt);
                                                                    v1_0.zzada.zzgr();
                                                                    boolean v14_21 = com.google.android.gms.measurement.internal.zzfx.zzc(v11_55.zzaxd.longValue(), v12_81);
                                                                    v23_0 = v7_10;
                                                                    v25_0 = v8_10;
                                                                    Boolean v8_24 = Long.valueOf(1);
                                                                    if ((!android.text.TextUtils.isEmpty("_dbg")) && (v8_24 != null)) {
                                                                        v26_0 = v3_9;
                                                                        com.google.android.gms.measurement.internal.zzac v3_121 = v11_55.zzaxc;
                                                                        v27_0 = v9_3;
                                                                        Object v9_10 = v3_121.length;
                                                                        v28_1 = v12_81;
                                                                        Long v12_82 = 0;
                                                                        while (v12_82 < v9_10) {
                                                                            int v13_57 = v3_121[v12_82];
                                                                            if (!"_dbg".equals(v13_57.name)) {
                                                                                v12_82++;
                                                                            } else {
                                                                                if (((!(v8_24 instanceof Long)) || (!v8_24.equals(v13_57.zzaxg))) && (((!(v8_24 instanceof String)) || (!v8_24.equals(v13_57.zzamn))) && ((!(v8_24 instanceof Double)) || (!v8_24.equals(v13_57.zzaup))))) {
                                                                                    v3_122 = 0;
                                                                                } else {
                                                                                    v3_122 = 1;
                                                                                }
                                                                            }
                                                                        }
                                                                        v3_122 = 0;
                                                                    } else {
                                                                        v26_0 = v3_9;
                                                                        v27_0 = v9_3;
                                                                        v28_1 = v12_81;
                                                                        v3_122 = 0;
                                                                    }
                                                                    Long v12_83;
                                                                    if (v3_122 != null) {
                                                                        v12_83 = 1;
                                                                    } else {
                                                                        v12_83 = this.zzls().zzq(v2_1.zzaui.zztt, v11_55.name);
                                                                    }
                                                                    if (v12_83 > null) {
                                                                        com.google.android.gms.measurement.internal.zzac v3_1 = ((com.google.android.gms.measurement.internal.zzac) v4_20.get(v11_55.name));
                                                                        if (v3_1 == null) {
                                                                            v3_1 = this.zzjt().zzg(v2_1.zzaui.zztt, v11_55.name);
                                                                            if (v3_1 == null) {
                                                                                v1_0.zzada.zzgt().zzjj().zze("Event being bundled has no eventAggregate. appId, eventName", v2_1.zzaui.zztt, v11_55.name);
                                                                                v3_1 = new com.google.android.gms.measurement.internal.zzac;
                                                                                v3_1(v2_1.zzaui.zztt, v11_55.name, 1, 1, v11_55.zzaxd.longValue(), 0, 0, 0, 0, 0);
                                                                            }
                                                                        }
                                                                        Boolean v8_30;
                                                                        this.zzjr();
                                                                        int v7_122 = ((Long) com.google.android.gms.measurement.internal.zzft.zzb(v11_55, "_eid"));
                                                                        if (v7_122 == 0) {
                                                                            v8_30 = 0;
                                                                        } else {
                                                                            v8_30 = 1;
                                                                        }
                                                                        Boolean v8_31 = Boolean.valueOf(v8_30);
                                                                        if (v12_83 != 1) {
                                                                            if (v6_7.nextInt(v12_83) != 0) {
                                                                                p46 = v6_7;
                                                                                int v13_58;
                                                                                String v1_19;
                                                                                if (!v1_0.zzada.zzgv().zzbf(v2_1.zzaui.zztt)) {
                                                                                    v9_1 = v2_1;
                                                                                    v13_58 = v7_122;
                                                                                    if (Math.abs((v11_55.zzaxd.longValue() - v3_1.zzahy)) < 86400000) {
                                                                                        v1_19 = 0;
                                                                                    } else {
                                                                                        v1_19 = 1;
                                                                                    }
                                                                                } else {
                                                                                    long v28_3;
                                                                                    if (v3_1.zzahz == null) {
                                                                                        v1_0.zzada.zzgr();
                                                                                        v9_1 = v2_1;
                                                                                        v13_58 = v7_122;
                                                                                        v28_3 = com.google.android.gms.measurement.internal.zzfx.zzc(v11_55.zzaxe.longValue(), v28_1);
                                                                                    } else {
                                                                                        v28_3 = v3_1.zzahz.longValue();
                                                                                        v9_1 = v2_1;
                                                                                        v13_58 = v7_122;
                                                                                    }
                                                                                    if (v28_3 == v14_21) {
                                                                                        v1_19 = 0;
                                                                                    } else {
                                                                                        v1_19 = 1;
                                                                                    }
                                                                                }
                                                                                if (v1_19 == null) {
                                                                                    if (v8_31.booleanValue()) {
                                                                                        v4_20.put(v11_55.name, v3_1.zza(v13_58, 0, 0));
                                                                                    }
                                                                                } else {
                                                                                    this.zzjr();
                                                                                    v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_efs", Long.valueOf(1));
                                                                                    this.zzjr();
                                                                                    long v6_90 = ((long) v12_83);
                                                                                    v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_sr", Long.valueOf(v6_90));
                                                                                    String v1_28 = (v10_0 + 1);
                                                                                    v5_35[v10_0] = v11_55;
                                                                                    if (v8_31.booleanValue()) {
                                                                                        v3_1 = v3_1.zza(0, Long.valueOf(v6_90), Boolean.valueOf(1));
                                                                                    }
                                                                                    v4_20.put(v11_55.name, v3_1.zza(v11_55.zzaxd.longValue(), v14_21));
                                                                                    v10_0 = v1_28;
                                                                                }
                                                                            } else {
                                                                                this.zzjr();
                                                                                Long v12_0 = ((long) v12_83);
                                                                                p46 = v6_7;
                                                                                v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_sr", Long.valueOf(v12_0));
                                                                                long v6_6 = (v10_0 + 1);
                                                                                v5_35[v10_0] = v11_55;
                                                                                if (v8_31.booleanValue()) {
                                                                                    v3_1 = v3_1.zza(0, Long.valueOf(v12_0), 0);
                                                                                }
                                                                                v4_20.put(v11_55.name, v3_1.zza(v11_55.zzaxd.longValue(), v14_21));
                                                                                v9_1 = v2_1;
                                                                                v10_0 = v6_6;
                                                                            }
                                                                        } else {
                                                                            int v7_6 = (v10_0 + 1);
                                                                            v5_35[v10_0] = v11_55;
                                                                            if ((v8_31.booleanValue()) && ((v3_1.zzaia != null) || ((v3_1.zzaib != null) || (v3_1.zzaic != null)))) {
                                                                                v4_20.put(v11_55.name, v3_1.zza(0, 0, 0));
                                                                            }
                                                                            v9_1 = v2_1;
                                                                            p46 = v6_7;
                                                                            v10_0 = v7_6;
                                                                        }
                                                                    } else {
                                                                        v1_0.zzada.zzgt().zzjj().zze("Sample rate must be positive. event, rate", v11_55.name, Integer.valueOf(v12_83));
                                                                        com.google.android.gms.measurement.internal.zzac v3_8 = (v10_0 + 1);
                                                                        v5_35[v10_0] = v11_55;
                                                                        v9_1 = v2_1;
                                                                        v10_0 = v3_8;
                                                                        p46 = v6_7;
                                                                    }
                                                                } else {
                                                                    this.zzjr();
                                                                    Long v12_3 = ((String) com.google.android.gms.measurement.internal.zzft.zzb(v11_55, "_en"));
                                                                    int v13_1 = ((com.google.android.gms.measurement.internal.zzac) v4_20.get(v12_3));
                                                                    if (v13_1 == 0) {
                                                                        v13_1 = this.zzjt().zzg(v2_1.zzaui.zztt, v12_3);
                                                                        v4_20.put(v12_3, v13_1);
                                                                    }
                                                                    if (v13_1.zzaia != null) {
                                                                        v26_0 = v3_9;
                                                                        p46 = v6_7;
                                                                        v23_0 = v7_10;
                                                                        v25_0 = v8_10;
                                                                        v27_0 = v9_3;
                                                                        v9_1 = v2_1;
                                                                    } else {
                                                                        if (v13_1.zzaib.longValue() > 1) {
                                                                            this.zzjr();
                                                                            v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_sr", v13_1.zzaib);
                                                                        }
                                                                        if ((v13_1.zzaic != null) && (v13_1.zzaic.booleanValue())) {
                                                                            this.zzjr();
                                                                            v11_55.zzaxc = com.google.android.gms.measurement.internal.zzft.zza(v11_55.zzaxc, "_efs", Long.valueOf(1));
                                                                        }
                                                                        Long v12_14 = (v10_0 + 1);
                                                                        v5_35[v10_0] = v11_55;
                                                                        v26_0 = v3_9;
                                                                        p46 = v6_7;
                                                                        v23_0 = v7_10;
                                                                        v25_0 = v8_10;
                                                                        v27_0 = v9_3;
                                                                        v10_0 = v12_14;
                                                                        v9_1 = v2_1;
                                                                    }
                                                                }
                                                                v6_7 = p46;
                                                                v2_1 = v9_1;
                                                                v7_10 = v23_0;
                                                                v8_10 = v25_0;
                                                                v3_9 = v26_0;
                                                                v9_3 = (v27_0 + 1);
                                                                v1_0 = this;
                                                            }
                                                            v9_9 = v2_1;
                                                            v1_7 = v3_9;
                                                            if (v10_0 < v1_7.zzaxk.length) {
                                                                v1_7.zzaxk = ((com.google.android.gms.internal.measurement.zzft[]) java.util.Arrays.copyOf(v5_35, v10_0));
                                                            }
                                                            int v2_10 = v4_20.entrySet().iterator();
                                                            while (v2_10.hasNext()) {
                                                                this.zzjt().zza(((com.google.android.gms.measurement.internal.zzac) ((java.util.Map$Entry) v2_10.next()).getValue()));
                                                            }
                                                        }
                                                        try {
                                                            v1_7.zzaxn = Long.valueOf(nan);
                                                            v1_7.zzaxo = Long.valueOf(-0.0);
                                                            int v2_15 = 0;
                                                        } catch (android.database.sqlite.SQLiteException v0_4) {
                                                            String v1_2 = v0_4;
                                                            this.zzjt().endTransaction();
                                                            throw v1_2;
                                                        }
                                                        while (v2_15 < v1_7.zzaxk.length) {
                                                            com.google.android.gms.measurement.internal.zzac v3_115 = v1_7.zzaxk[v2_15];
                                                            if (v3_115.zzaxd.longValue() < v1_7.zzaxn.longValue()) {
                                                                v1_7.zzaxn = v3_115.zzaxd;
                                                            }
                                                            if (v3_115.zzaxd.longValue() > v1_7.zzaxo.longValue()) {
                                                                v1_7.zzaxo = v3_115.zzaxd;
                                                            }
                                                            v2_15++;
                                                        }
                                                        Object v4_21;
                                                        int v2_17 = v9_9.zzaui.zztt;
                                                        com.google.android.gms.measurement.internal.zzac v3_91 = this.zzjt().zzbm(v2_17);
                                                        if (v3_91 != null) {
                                                            v4_21 = this;
                                                            if (v1_7.zzaxk.length > 0) {
                                                                int v7_98;
                                                                String v5_38 = v3_91.zzhe();
                                                                if (v5_38 == 0) {
                                                                    v7_98 = 0;
                                                                } else {
                                                                    v7_98 = Long.valueOf(v5_38);
                                                                }
                                                                v1_7.zzaxq = v7_98;
                                                                int v7_99 = v3_91.zzhd();
                                                                if (v7_99 != 0) {
                                                                    v5_38 = v7_99;
                                                                } else {
                                                                }
                                                                String v5_39;
                                                                if (v5_38 == 0) {
                                                                    v5_39 = 0;
                                                                } else {
                                                                    v5_39 = Long.valueOf(v5_38);
                                                                }
                                                                v1_7.zzaxp = v5_39;
                                                                v3_91.zzhm();
                                                                v1_7.zzaya = Integer.valueOf(((int) v3_91.zzhj()));
                                                                v3_91.zzo(v1_7.zzaxn.longValue());
                                                                v3_91.zzp(v1_7.zzaxo.longValue());
                                                                v1_7.zzagm = v3_91.zzhu();
                                                                this.zzjt().zza(v3_91);
                                                            }
                                                        } else {
                                                            v4_21 = this;
                                                            this.zzada.zzgt().zzjg().zzg("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v9_9.zzaui.zztt));
                                                        }
                                                        if (v1_7.zzaxk.length > 0) {
                                                            v4_21.zzada.zzgw();
                                                            com.google.android.gms.measurement.internal.zzac v3_99 = this.zzls().zzcg(v9_9.zzaui.zztt);
                                                            if (v3_99 == null) {
                                                                if (!android.text.TextUtils.isEmpty(v9_9.zzaui.zzafi)) {
                                                                    v4_21.zzada.zzgt().zzjj().zzg("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v9_9.zzaui.zztt));
                                                                } else {
                                                                    v1_7.zzayh = Long.valueOf(-1);
                                                                }
                                                            } else {
                                                                if (v3_99.zzawm != null) {
                                                                    v1_7.zzayh = v3_99.zzawm;
                                                                } else {
                                                                }
                                                            }
                                                            this.zzjt().zza(v1_7, v21_4);
                                                        }
                                                        String v1_8 = this.zzjt();
                                                        com.google.android.gms.measurement.internal.zzac v3_109 = v9_9.zzauj;
                                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_109);
                                                        v1_8.zzaf();
                                                        v1_8.zzcl();
                                                        String v5_55 = new StringBuilder("rowid in (");
                                                        long v6_66 = 0;
                                                        while (v6_66 < v3_109.size()) {
                                                            if (v6_66 != 0) {
                                                                v5_55.append(",");
                                                            }
                                                            v5_55.append(((Long) v3_109.get(v6_66)).longValue());
                                                            v6_66++;
                                                        }
                                                        v5_55.append(")");
                                                        String v5_57 = v1_8.getWritableDatabase().delete("raw_events", v5_55.toString(), 0);
                                                        if (v5_57 != v3_109.size()) {
                                                            v1_8.zzgt().zzjg().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_57), Integer.valueOf(v3_109.size()));
                                                        }
                                                        String v1_11 = this.zzjt();
                                                        com.google.android.gms.measurement.internal.zzac v3_112 = v1_11.getWritableDatabase();
                                                        try {
                                                            long v6_72 = new String[2];
                                                            v6_72[0] = v2_17;
                                                            v6_72[1] = v2_17;
                                                            v3_112.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v6_72);
                                                        } catch (android.database.sqlite.SQLiteException v0_7) {
                                                            v1_11.zzgt().zzjg().zze("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v2_17), v0_7);
                                                        }
                                                        this.zzjt().setTransactionSuccessful();
                                                        this.zzjt().endTransaction();
                                                        return 1;
                                                    } catch (android.database.sqlite.SQLiteException v0_2) {
                                                        v1_2 = v0_2;
                                                    }
                                                }
                                            } else {
                                                v6_3.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v7_2 = v3_10;
                                            com.google.android.gms.measurement.internal.zzac v3_0 = v0_1;
                                            try {
                                                v4_28.zzgt().zzjg().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v7_2), v3_0);
                                            } catch (android.database.sqlite.SQLiteException v0_6) {
                                                String v1_3 = v0_6;
                                                int v22 = v6_3;
                                                if (v22 != 0) {
                                                    v22.close();
                                                }
                                                throw v1_3;
                                            }
                                            if (v6_3 == 0) {
                                            } else {
                                                v6_3.close();
                                            }
                                        }
                                        if (v15_2.moveToNext()) {
                                            v4_28.zzgt().zzjj().zzg("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10));
                                        }
                                        String[] v17_2;
                                        String v16_2;
                                        v15_2.close();
                                        v2_1.zzb(v14_10);
                                        if (v5_61 == -1) {
                                            boolean v10_58 = new String[2];
                                            v10_58[0] = v3_10;
                                            v10_58[1] = v7_2;
                                            v16_2 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_2 = v10_58;
                                        } else {
                                            int v13_44 = new String[3];
                                            v13_44[0] = v3_10;
                                            v13_44[1] = v7_2;
                                            v13_44[2] = String.valueOf(v5_61);
                                            v16_2 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_2 = v13_44;
                                        }
                                        v6_3 = v15_2;
                                        String v5_6 = v25_2.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_2, v17_2, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_6.moveToFirst()) {
                                                v4_28.zzgt().zzjj().zzg("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10));
                                                if (v5_6 == null) {
                                                } else {
                                                    v5_6.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v22 = v5_6;
                                            v1_3 = v0_0;
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v7_2 = v3_10;
                                            v6_3 = v5_6;
                                        }
                                        do {
                                            long v6_24 = v5_6.getLong(0);
                                            Long v12_70 = v5_6.getBlob(3);
                                            boolean v10_63 = com.google.android.gms.internal.measurement.zzxz.zzj(v12_70, 0, v12_70.length);
                                            Long v12_72 = new com.google.android.gms.internal.measurement.zzft();
                                            v12_72.zza(v10_63);
                                            v12_72.name = v5_6.getString(1);
                                            v12_72.zzaxd = Long.valueOf(v5_6.getLong(2));
                                            if (v2_1.zza(v6_24, v12_72)) {
                                            } else {
                                                if (v5_6 == null) {
                                                } else {
                                                    v5_6.close();
                                                }
                                            }
                                        } while(v5_6.moveToNext());
                                        if (v5_6 == null) {
                                        } else {
                                            v5_6.close();
                                        }
                                    } else {
                                        v4_28.zzgt().zzjg().zzg("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzas.zzbw(v3_10));
                                        if (v15_2 == null) {
                                        } else {
                                            v15_2.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_3 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v6_3 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v22 = v15_2;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v7_2 = v3_10;
                                    v6_3 = v15_2;
                                }
                                v22 = v6_3;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v22 = v23_1;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v7_2 = v3_10;
                                v6_3 = v23_1;
                            }
                        } else {
                            if (v3_10 == null) {
                            } else {
                                v3_10.close();
                            }
                        }
                    } else {
                        boolean v14_17;
                        int v13_52 = v5_61 cmp -1;
                        try {
                            if (v13_52 == 0) {
                                v14_17 = new String[1];
                                v14_17[0] = String.valueOf(p47);
                            } else {
                                v14_17 = new String[2];
                                v14_17[0] = String.valueOf(v5_61);
                                v14_17[1] = String.valueOf(p47);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            v6_3 = 0;
                            v7_2 = 0;
                        }
                        int v13_53;
                        if (v13_52 == 0) {
                            v13_53 = "";
                        } else {
                            v13_53 = "rowid <= ? and ";
                        }
                        com.google.android.gms.measurement.internal.zzac v3_142 = new StringBuilder((String.valueOf(v13_53).length() + 148));
                        v3_142.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_142.append(v13_53);
                        v3_142.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_10 = v15_3.rawQuery(v3_142.toString(), v14_17);
                        if (v3_10.moveToFirst()) {
                            int v7_9 = v3_10.getString(0);
                            try {
                                int v13_4 = v3_10.getString(1);
                                v3_10.close();
                                v23_1 = v3_10;
                                v3_10 = v7_9;
                                v7_2 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v6_3 = v3_10;
                            }
                        } else {
                            if (v3_10 == null) {
                            } else {
                                v3_10.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v22 = v3_10;
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v6_3 = v3_10;
                    v7_2 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v22 = 0;
            } catch (android.database.sqlite.SQLiteException v0_8) {
                v3_0 = v0_8;
                v6_3 = 0;
                v7_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_4) {
            }
        } catch (android.database.sqlite.SQLiteException v0_4) {
        }
    }

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


    private static boolean zza(String p10, android.database.sqlite.SQLiteDatabase p11)
    {
        try {
            String[] v6 = new String[1];
            v6[0] = p10;
            android.database.Cursor v1 = p11.query("SQLITE_MASTER", new String[] {"name"}), "name=?", v6, 0, 0, 0);
            String v10_1 = v1.moveToFirst();
        } catch (String v10_5) {
            if (v1 != null) {
                v1.close();
            }
            throw v10_5;
        }
        if (v1 != null) {
            v1.close();
        }
        return v10_1;
    }

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


    private static boolean zza(String p10, android.database.sqlite.SQLiteDatabase p11)
    {
        try {
            String[] v6 = new String[1];
            v6[0] = p10;
            android.database.Cursor v1 = p11.query("SQLITE_MASTER", new String[] {"name"}), "name=?", v6, 0, 0, 0);
            String v10_1 = v1.moveToFirst();
        } catch (String v10_5) {
            if (v1 != null) {
                v1.close();
            }
            throw v10_5;
        }
        if (v1 != null) {
            v1.close();
        }
        return v10_1;
    }

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


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

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


    public final java.util.List zzf(long p12)
    {
        this.zzcl();
        com.google.android.gms.analytics.zzk.zzaf();
        String v0_0 = this.getWritableDatabase();
        try {
            String v13_3 = ((Integer) com.google.android.gms.internal.measurement.zzcf.zzzc.get()).intValue();
            p12 = v0_0.query("properties", new String[] {"cid", "tid", "adid", "hits_count", "params"}), "app_uid=?", new String[] {"0"}), 0, 0, 0, String.valueOf(v13_3));
            String v0_2 = new java.util.ArrayList();
        } catch (String v13_7) {
            if (p12 != null) {
                p12.close();
            }
            throw v13_7;
        } catch (String v13_6) {
            this.zze("Error loading hits from the database", v13_6);
            throw v13_6;
        }
        if (p12.moveToFirst()) {
            do {
                int v7_1;
                String v5_1 = p12.getString(0);
                String v6_1 = p12.getString(1);
                if (p12.getInt(2) == 0) {
                    v7_1 = 0;
                } else {
                    v7_1 = 1;
                }
                long v8_1 = ((long) p12.getInt(3));
                java.util.Map vtmp15 = this.zzw(p12.getString(4));
                if (android.text.TextUtils.isEmpty(v5_1)) {
                    this.zzc("Read property with empty client id or tracker id", v5_1, v6_1);
                } else {
                    if (!android.text.TextUtils.isEmpty(v6_1)) {
                        boolean v1_11 = new com.google.android.gms.internal.measurement.zzaz;
                        v1_11(0, v5_1, v6_1, v7_1, v8_1, vtmp15);
                        v0_2.add(v1_11);
                    } else {
                    }
                }
            } while(p12.moveToNext());
        }
        if (v0_2.size() >= v13_3) {
            this.zzt("Sending hits to too many properties. Campaign report might be incorrect");
        }
        if (p12 != null) {
            p12.close();
        }
        return v0_2;
    }

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


    public final java.util.List zzd(long p14)
    {
        android.database.Cursor v2_2;
        if (p14 < 0) {
            v2_2 = 0;
        } else {
            v2_2 = 1;
        }
        com.google.android.gms.common.internal.Preconditions.checkArgument(v2_2);
        com.google.android.gms.analytics.zzk.zzaf();
        this.zzcl();
        com.google.android.gms.internal.measurement.zzck v3_0 = this.getWritableDatabase();
        try {
            int v11_0 = new Object[1];
            v11_0[0] = "hit_id";
            android.database.Cursor v2_1 = v3_0.query("hits2", new String[] {"hit_id", "hit_time", "hit_string", "hit_url", "hit_app_id"}), 0, 0, 0, 0, String.format("%s ASC", v11_0), Long.toString(p14));
            android.database.sqlite.SQLiteException v14_2 = new java.util.ArrayList();
        } catch (android.database.sqlite.SQLiteException v14_4) {
            if (v2_1 != null) {
                v2_1.close();
            }
            throw v14_4;
        } catch (android.database.sqlite.SQLiteException v14_3) {
            this.zze("Error loading hits from the database", v14_3);
            throw v14_3;
        }
        if (v2_1.moveToFirst()) {
            do {
                String v15_4 = new com.google.android.gms.internal.measurement.zzck;
                v15_4(this, this.zzv(v2_1.getString(2)), v2_1.getLong(1), com.google.android.gms.internal.measurement.zzdg.zzai(v2_1.getString(3)), v2_1.getLong(0), v2_1.getInt(4));
                v14_2.add(v15_4);
            } while(v2_1.moveToNext());
        }
        if (v2_1 != null) {
            v2_1.close();
        }
        return v14_2;
    }

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


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

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


    private final boolean zza(android.database.sqlite.SQLiteDatabase p11, String p12)
    {
        try {
            String[] v6 = new String[1];
            v6[0] = p12;
            android.database.Cursor v1 = p11.query("SQLITE_MASTER", new String[] {"name"}), "name=?", v6, 0, 0, 0);
            android.database.sqlite.SQLiteException v11_1 = v1.moveToFirst();
        } catch (android.database.sqlite.SQLiteException v11_3) {
            if (v1 != null) {
                v1.close();
            }
            throw v11_3;
        } catch (android.database.sqlite.SQLiteException v11_2) {
            this.zzxk.zzc("Error querying for table", p12, v11_2);
            if (v1 != null) {
                v1.close();
            }
            return 0;
        }
        if (v1 != null) {
            v1.close();
        }
        return v11_1;
    }