Info Call to SQLite query API

Description

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

Recommendation

This entry is informative, no recommendations applicable.

Technical details

Method com.evernote.android.job.i.a() calling method android.database.sqlite.SQLiteDatabase.query()


    private com.evernote.android.job.JobRequest a(int p13, boolean p14)
    {
        android.database.Cursor v1 = 0;
        if (!this.c(p13)) {
            try {
                android.database.Cursor v3_1 = "_id=?";
            } catch (Throwable v13_1) {
                Exception v14_1 = 0;
                ark>com.evernote.android.job.iark>.a(v1);
                ark>com.evernote.android.job.iark>.b(v14_1);
                throw v13_1;
            } catch (Exception v14_2) {
                android.database.Cursor v3_2 = 0;
                com.evernote.android.job.JobRequest v4_0 = 0;
                try {
                    Object[] v2_1 = new Object[1];
                    v2_1[0] = Integer.valueOf(p13);
                    ark>com.evernote.android.job.iark>.B.c(v14_2, "could not load id %d", v2_1);
                    ark>com.evernote.android.job.iark>.a(v3_2);
                    ark>com.evernote.android.job.iark>.b(v4_0);
                } catch (Throwable v13_1) {
                    v1 = v3_2;
                    v14_1 = v4_0;
                }
                return 0;
            }
            if (p14 == null) {
                Exception v14_4 = new StringBuilder();
                v14_4.append("_id=?");
                v14_4.append(" AND started<=0");
                v3_1 = v14_4.toString();
            }
            String v6_0 = v3_1;
            v14_1 = this.b();
            try {
                String[] v7 = new String[1];
                v7[0] = String.valueOf(p13);
                v3_2 = v14_1.query("jobs", 0, v6_0, v7, 0, 0, 0);
                try {
                    if ((v3_2 == null) || (!v3_2.moveToFirst())) {
                        ark>com.evernote.android.job.iark>.a(v3_2);
                        ark>com.evernote.android.job.iark>.b(v14_1);
                        return 0;
                    } else {
                        com.evernote.android.job.JobRequest v4_4 = com.evernote.android.job.JobRequest.a(v3_2);
                        ark>com.evernote.android.job.iark>.a(v3_2);
                        ark>com.evernote.android.job.iark>.b(v14_1);
                        return v4_4;
                    }
                } catch (Throwable v13_1) {
                    v1 = v3_2;
                } catch (com.evernote.android.job.JobRequest v4_3) {
                    v4_0 = v14_1;
                    v14_2 = v4_3;
                }
            } catch (Throwable v13_1) {
            } catch (android.database.Cursor v3_5) {
                v4_0 = v14_1;
                v14_2 = v3_5;
                v3_2 = 0;
            }
        } else {
            return 0;
        }
    }

Method com.evernote.android.job.i.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    private boolean a(com.evernote.android.job.JobRequest p10, int p11)
    {
        this.N.writeLock().lock();
        try {
            this.I.remove(Integer.valueOf(p11));
            int v3_0 = this.b();
            try {
                String v5_0 = new String[1];
                v5_0[0] = String.valueOf(p11);
                v3_0.delete("jobs", "_id=?", v5_0);
                ark>com.evernote.android.job.iark>.b(v3_0);
                p10 = this.N.writeLock();
                p10.unlock();
                return 1;
            } catch (Exception v2_0) {
                Object[] v6_2 = new Object[2];
                v6_2[0] = Integer.valueOf(p11);
                v6_2[1] = p10;
                ark>com.evernote.android.job.iark>.B.c(v2_0, "could not delete %d %s", v6_2);
                this.b(p11);
                ark>com.evernote.android.job.iark>.b(v3_0);
                this.N.writeLock().unlock();
                return 0;
            }
        } catch (Throwable v10_1) {
            v3_0 = 0;
            ark>com.evernote.android.job.iark>.b(v3_0);
            this.N.writeLock().unlock();
            throw v10_1;
        } catch (int v3_1) {
            v3_0 = 0;
            v2_0 = v3_1;
            v6_2 = new Object[2];
            v6_2[0] = Integer.valueOf(p11);
            v6_2[1] = p10;
            ark>com.evernote.android.job.iark>.B.c(v2_0, "could not delete %d %s", v6_2);
            this.b(p11);
            ark>com.evernote.android.job.iark>.b(v3_0);
            this.N.writeLock().unlock();
            return 0;
        } catch (Throwable v10_1) {
        }
        v5_0 = new String[1];
        v5_0[0] = String.valueOf(p11);
        v3_0.delete("jobs", "_id=?", v5_0);
        ark>com.evernote.android.job.iark>.b(v3_0);
        p10 = this.N.writeLock();
        p10.unlock();
        return 1;
    }

Method com.artfulbits.aiCharts.Base.l.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public final void a(android.database.sqlite.SQLiteDatabase p9, String p10, String[] p11)
    {
        android.database.Cursor v9_1 = p9.query(p10, p11, 0, 0, 0, 0, 0);
        int[] v10_2 = new int[p11.length];
        int v0_0 = 0;
        while (v0_0 < v10_2.length) {
            v10_2[v0_0] = v9_1.getColumnIndex(p11[v0_0]);
            v0_0++;
        }
        this.a(v9_1, -1, v10_2);
        v9_1.close();
        return;
    }

Method com.evernote.android.job.i$b.f() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void f(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("alter table jobs add column requiresBatteryNotLow integer;");
        p2.execSQL("alter table jobs add column requiresStorageNotLow integer;");
        return;
    }

Method com.evernote.android.job.i.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.Set a(String p14, boolean p15)
    {
        Throwable v0_1 = new java.util.HashSet();
        this.N.readLock().lock();
        try {
            String[] v8;
            String v7;
            if (!android.text.TextUtils.isEmpty(p14)) {
                Exception v15_1;
                if (p15 == null) {
                    v15_1 = "ifnull(started, 0)<=0 AND ";
                } else {
                    v15_1 = "";
                }
                com.evernote.android.job.JobRequest v3_1 = new StringBuilder();
                v3_1.append(v15_1);
                v3_1.append("tag=?");
                Exception v15_3 = v3_1.toString();
                com.evernote.android.job.JobRequest v3_3 = new String[1];
                v3_3[0] = p14;
                v7 = v15_3;
                v8 = v3_3;
                android.database.sqlite.SQLiteDatabase v14_4 = this.b();
                try {
                    Exception v15_4 = v14_4.query("jobs", 0, v7, v8, 0, 0, 0);
                    try {
                        Exception v2_2 = new java.util.HashMap(this.I.snapshot());
                    } catch (Exception v2_0) {
                        Object[] v1_3 = new Object[0];
                        ark>com.evernote.android.job.iark>.B.c(v2_0, "could not load all jobs", v1_3);
                        ark>com.evernote.android.job.iark>.a(v15_4);
                        ark>com.evernote.android.job.iark>.b(v14_4);
                        this.N.readLock().unlock();
                        return v0_1;
                    }
                    while ((v15_4 != null) && (v15_4.moveToNext())) {
                        com.evernote.android.job.JobRequest v3_10 = Integer.valueOf(v15_4.getInt(v15_4.getColumnIndex("_id")));
                        if (!this.c(v3_10.intValue())) {
                            if (!v2_2.containsKey(v3_10)) {
                                v0_1.add(com.evernote.android.job.JobRequest.a(v15_4));
                            } else {
                                v0_1.add(v2_2.get(v3_10));
                            }
                        }
                    }
                    ark>com.evernote.android.job.iark>.a(v15_4);
                    ark>com.evernote.android.job.iark>.b(v14_4);
                    this.N.readLock().unlock();
                    return v0_1;
                } catch (Exception v15_6) {
                    Throwable v0_2 = v15_6;
                    v15_4 = 0;
                } catch (Exception v15_5) {
                    v2_0 = v15_5;
                    v15_4 = 0;
                }
            } else {
                android.database.sqlite.SQLiteDatabase v14_3;
                if (p15 == null) {
                    v14_3 = "ifnull(started, 0)<=0";
                } else {
                    v14_3 = 0;
                }
                v7 = v14_3;
                v8 = 0;
            }
        } catch (android.database.sqlite.SQLiteDatabase v14_6) {
            v0_2 = v14_6;
            v14_4 = 0;
            v15_4 = 0;
        } catch (android.database.sqlite.SQLiteDatabase v14_5) {
            v15_4 = 0;
            v2_0 = v14_5;
            v14_4 = 0;
        } catch (Throwable v0_2) {
        }
        ark>com.evernote.android.job.iark>.a(v15_4);
        ark>com.evernote.android.job.iark>.b(v14_4);
        this.N.readLock().unlock();
        throw v0_2;
    }

Method org.greenrobot.greendao.c.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public static void a(android.database.sqlite.SQLiteDatabase p8, String p9)
    {
        android.database.Cursor v8_1 = p8.query(p9, 0, 0, 0, 0, 0, 0);
        try {
            org.greenrobot.greendao.b.b(android.database.DatabaseUtils.dumpCursorToString(v8_1));
            v8_1.close();
            return;
        } catch (Throwable v9_2) {
            v8_1.close();
            throw v9_2;
        }
    }

Method org.jetbrains.anko.db.a.a() calling method android.database.sqlite.SQLiteDatabase.query()


    protected android.database.Cursor a(boolean p12, String p13, String[] p14, String p15, String[] p16, String p17, String p18, String p19, String p20)
    {
        kotlin.jvm.internal.ae.f(p13, "tableName");
        kotlin.jvm.internal.ae.f(p14, "columns");
        kotlin.jvm.internal.ae.f(p17, "groupBy");
        kotlin.jvm.internal.ae.f(p19, "orderBy");
        android.database.Cursor v1_1 = this.a.query(p12, p13, p14, p15, p16, p17, p18, p19, p20);
        kotlin.jvm.internal.ae.b(v1_1, "db.query(distinct, table\u2026, having, orderBy, limit)");
        return v1_1;
    }

Method com.fitbit.runtrack.data.d.loadInBackground() calling method android.database.sqlite.SQLiteDatabase.query()


    public android.database.Cursor loadInBackground()
    {
        return this.a.query(this.b, this.getProjection(), this.getSelection(), this.getSelectionArgs(), this.c, this.d, this.getSortOrder(), this.e);
    }

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


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

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


    private final boolean a(String p55, long p56)
    {
        this.d().f();
        try {
            com.google.android.gms.measurement.internal.fg v3_9 = 0;
            Object v2_24 = new ark>com.google.android.gms.measurement.internal.edark>$a(this, 0);
            java.util.List v4_13 = this.d();
            String v5_118 = this.w;
            com.google.android.gms.common.internal.ab.a(v2_24);
            v4_13.d();
            v4_13.k();
            try {
                long v7_3;
                int v22;
                Long v15_6 = v4_13.y();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        long v13_19;
                        com.google.android.gms.measurement.internal.fg v3_10 = v5_118 cmp -1;
                        if (v3_10 == null) {
                            v13_19 = new String[] {0});
                        } else {
                            long v7_33 = new String[2];
                            v7_33[0] = 0;
                            v7_33[1] = String.valueOf(v5_118);
                            v13_19 = v7_33;
                        }
                        com.google.android.gms.measurement.internal.fg v3_15;
                        if (v3_10 == null) {
                            v3_15 = "";
                        } else {
                            v3_15 = " and rowid <= ?";
                        }
                        long v14_11 = new StringBuilder((String.valueOf(v3_15).length() + 84));
                        v14_11.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_11.append(v3_15);
                        v14_11.append(" order by rowid limit 1;");
                        v3_9 = v15_6.rawQuery(v14_11.toString(), v13_19);
                        if (v3_9.moveToFirst()) {
                            long v13_23 = v3_9.getString(0);
                            v3_9.close();
                            v22 = v3_9;
                            v7_3 = v13_23;
                            v3_9 = 0;
                            try {
                                long v13_6 = new String[2];
                                v13_6[0] = v3_9;
                                v13_6[1] = v7_3;
                                com.google.android.gms.internal.measurement.q v24 = v15_6;
                                Long v15_5 = v15_6.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_6, 0, 0, "rowid", "2");
                                try {
                                    if (v15_5.moveToFirst()) {
                                        long v13_10 = v15_5.getBlob(0);
                                        long v13_11 = com.google.android.gms.internal.measurement.fi.a(v13_10, 0, v13_10.length);
                                        long v14_8 = new com.google.android.gms.internal.measurement.t();
                                        try {
                                            v14_8.a(v13_11);
                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                            long v6_0 = v15_5;
                                            v4_13.r().an_().a("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.o.a(v3_9), v0_3);
                                            if (v6_0 == 0) {
                                                com.google.android.gms.measurement.internal.fg v3_14;
                                                if (v2_24.c == null) {
                                                    v3_14 = 1;
                                                } else {
                                                    if (!v2_24.c.isEmpty()) {
                                                        v3_14 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_14 != null) {
                                                    this.d().w();
                                                    this.d().x();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.measurement.internal.fg v3_8 = v2_24.a;
                                                    java.util.List v4_4 = new com.google.android.gms.internal.measurement.q[v2_24.c.size()];
                                                    v3_8.b = v4_4;
                                                    java.util.List v4_7 = this.i.b().e(v3_8.o);
                                                    long v7_28 = 0;
                                                    boolean v10_2 = 0;
                                                    long v12_17 = 0;
                                                    long v13_8 = 0;
                                                    while (v7_28 < v2_24.c.size()) {
                                                        int v40_0;
                                                        Long v15_3 = ((com.google.android.gms.internal.measurement.q) v2_24.c.get(v7_28));
                                                        if (!this.p().b(v2_24.a.o, v15_3.b)) {
                                                            String v5_6 = this.p().c(v2_24.a.o, v15_3.b);
                                                            if (v5_6 != null) {
                                                                if (v15_3.a == null) {
                                                                    int v9_6 = new com.google.android.gms.internal.measurement.r[0];
                                                                    v15_3.a = v9_6;
                                                                }
                                                                int v8_21 = v15_3.a;
                                                                int v9_7 = v8_21.length;
                                                                int v11_3 = 0;
                                                                long v16_1 = 0;
                                                                int v17_0 = 0;
                                                                while (v11_3 < v9_7) {
                                                                    Long v27_1;
                                                                    long v6_79 = v8_21[v11_3];
                                                                    com.google.android.gms.measurement.internal.ex v25_1 = v8_21;
                                                                    long v26_1 = v9_7;
                                                                    if (!"_c".equals(v6_79.a)) {
                                                                        v27_1 = v12_17;
                                                                        if ("_r".equals(v6_79.a)) {
                                                                            v6_79.c = Long.valueOf(1);
                                                                            v17_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v27_1 = v12_17;
                                                                        v6_79.c = Long.valueOf(1);
                                                                        v16_1 = 1;
                                                                    }
                                                                    v11_3++;
                                                                    v8_21 = v25_1;
                                                                    v9_7 = v26_1;
                                                                    v12_17 = v27_1;
                                                                }
                                                                Long v27_0 = v12_17;
                                                                if ((v16_1 == 0) && (v5_6 != null)) {
                                                                    this.i.r().x().a("Marking event as conversion", this.i.k().a(v15_3.b));
                                                                    long v6_11 = ((com.google.android.gms.internal.measurement.r[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                                    int v8_27 = new com.google.android.gms.internal.measurement.r();
                                                                    v8_27.a = "_c";
                                                                    v8_27.c = Long.valueOf(1);
                                                                    v6_11[(v6_11.length - 1)] = v8_27;
                                                                    v15_3.a = v6_11;
                                                                }
                                                                if (v17_0 == 0) {
                                                                    this.i.r().x().a("Marking event as real-time", this.i.k().a(v15_3.b));
                                                                    long v6_17 = ((com.google.android.gms.internal.measurement.r[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                                    int v8_33 = new com.google.android.gms.internal.measurement.r();
                                                                    v8_33.a = "_r";
                                                                    v8_33.c = Long.valueOf(1);
                                                                    v6_17[(v6_17.length - 1)] = v8_33;
                                                                    v15_3.a = v6_17;
                                                                }
                                                                long v12_12;
                                                                if (this.d().a(this.w(), v2_24.a.o, 0, 0, 0, 0, 1).e <= ((long) this.i.b().a(v2_24.a.o))) {
                                                                    v12_12 = 1;
                                                                } else {
                                                                    long v6_25 = 0;
                                                                    while (v6_25 < v15_3.a.length) {
                                                                        if (!"_r".equals(v15_3.a[v6_25].a)) {
                                                                            v6_25++;
                                                                        } else {
                                                                            int v8_42 = new com.google.android.gms.internal.measurement.r[(v15_3.a.length - 1)];
                                                                            if (v6_25 > 0) {
                                                                                System.arraycopy(v15_3.a, 0, v8_42, 0, v6_25);
                                                                            }
                                                                            if (v6_25 < v8_42.length) {
                                                                                System.arraycopy(v15_3.a, (v6_25 + 1), v8_42, v6_25, (v8_42.length - v6_25));
                                                                            }
                                                                            v15_3.a = v8_42;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_12 = v27_0;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.em.a(v15_3.b)) || (v5_6 == null)) {
                                                                    v40_0 = v7_28;
                                                                    long v37_0 = v12_12;
                                                                } else {
                                                                    v37_0 = v12_12;
                                                                    if (this.d().a(this.w(), v2_24.a.o, 0, 0, 1, 0, 0).c <= ((long) this.i.b().b(v2_24.a.o, com.google.android.gms.measurement.internal.e.v))) {
                                                                        v40_0 = v7_28;
                                                                    } else {
                                                                        this.i.r().i().a("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                        long v6_38 = v15_3.a;
                                                                        int v8_46 = v6_38.length;
                                                                        int v9_34 = 0;
                                                                        int v11_18 = 0;
                                                                        long v12_16 = 0;
                                                                        while (v9_34 < v8_46) {
                                                                            int v8_56 = v6_38[v9_34];
                                                                            if (!"_c".equals(v8_56.a)) {
                                                                                if ("_err".equals(v8_56.a)) {
                                                                                    v11_18 = 1;
                                                                                }
                                                                            } else {
                                                                                v12_16 = v8_56;
                                                                            }
                                                                            v9_34++;
                                                                        }
                                                                        v40_0 = v7_28;
                                                                        if ((v11_18 == 0) || (v12_16 == 0)) {
                                                                            if (v12_16 == 0) {
                                                                                this.i.r().an_().a("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                            } else {
                                                                                v12_16.a = "_err";
                                                                                v12_16.c = Long.valueOf(10);
                                                                            }
                                                                        } else {
                                                                            long v6_45 = v15_3.a;
                                                                            int v8_50 = new com.google.android.gms.internal.measurement.r[1];
                                                                            v8_50[0] = v12_16;
                                                                            v15_3.a = ((com.google.android.gms.internal.measurement.r[]) com.google.android.gms.common.util.b.a(v6_45, v8_50));
                                                                        }
                                                                    }
                                                                }
                                                                v12_17 = v37_0;
                                                            } else {
                                                                int v8_15;
                                                                this.f();
                                                                int v8_13 = v15_3.b;
                                                                com.google.android.gms.common.internal.ab.a(v8_13);
                                                                int v9_2 = v8_13.hashCode();
                                                                if (v9_2 == 94660) {
                                                                    if (!v8_13.equals("_in")) {
                                                                        v8_15 = -1;
                                                                    } else {
                                                                        v8_15 = 0;
                                                                    }
                                                                } else {
                                                                    if (v9_2 == 95025) {
                                                                        if (!v8_13.equals("_ug")) {
                                                                        } else {
                                                                            v8_15 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v9_2 == 95027) {
                                                                            if (!v8_13.equals("_ui")) {
                                                                            } else {
                                                                                v8_15 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v8_18;
                                                                switch (v8_15) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v8_18 = 1;
                                                                    default:
                                                                        v8_18 = 0;
                                                                }
                                                                if (v8_18 == 0) {
                                                                    v40_0 = v7_28;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.i.b().m(v2_24.a.o)) || (v5_6 == null)) {
                                                            } else {
                                                                String v5_7 = v15_3.a;
                                                                long v6_51 = 0;
                                                                long v7_17 = -1;
                                                                int v8_51 = -1;
                                                                while (v6_51 < v5_7.length) {
                                                                    if (!"value".equals(v5_7[v6_51].a)) {
                                                                        if ("currency".equals(v5_7[v6_51].a)) {
                                                                            v8_51 = v6_51;
                                                                        }
                                                                    } else {
                                                                        v7_17 = v6_51;
                                                                    }
                                                                    v6_51++;
                                                                }
                                                                if (v7_17 == -1) {
                                                                } else {
                                                                    if ((v5_7[v7_17].c != null) || (v5_7[v7_17].d != null)) {
                                                                        long v6_60;
                                                                        if (v8_51 != -1) {
                                                                            long v6_59 = v5_7[v8_51].b;
                                                                            if (v6_59 == 0) {
                                                                            } else {
                                                                                if (v6_59.length() == 3) {
                                                                                    int v8_53 = 0;
                                                                                    while (v8_53 < v6_59.length()) {
                                                                                        int v11_20 = v6_59.codePointAt(v8_53);
                                                                                        if (Character.isLetter(v11_20)) {
                                                                                            v8_53 += Character.charCount(v11_20);
                                                                                        } else {
                                                                                        }
                                                                                    }
                                                                                    v6_60 = 0;
                                                                                    if (v6_60 != 0) {
                                                                                        this.i.r().k().a("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                        v5_7 = ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(v5_7, v7_17), "_c"), 19, "currency");
                                                                                    }
                                                                                    v15_3.a = v5_7;
                                                                                    if ((v4_7 != null) && ("_e".equals(v15_3.b))) {
                                                                                        if (v15_3.a != null) {
                                                                                            if (v15_3.a.length != 0) {
                                                                                                this.f();
                                                                                                String v5_19 = ((Long) com.google.android.gms.measurement.internal.ej.b(v15_3, "_et"));
                                                                                                if (v5_19 != null) {
                                                                                                    v13_8 += v5_19.longValue();
                                                                                                    long v6_74 = (v10_2 + 1);
                                                                                                    v3_8.b[v10_2] = v15_3;
                                                                                                    v10_2 = v6_74;
                                                                                                    v7_28 = (v40_0 + 1);
                                                                                                    int v11 = 0;
                                                                                                } else {
                                                                                                    this.i.r().i().a("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                                                }
                                                                                            } else {
                                                                                            }
                                                                                        }
                                                                                        this.i.r().i().a("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                                    }
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v6_60 = 1;
                                                                        } else {
                                                                            v6_60 = 1;
                                                                        }
                                                                    } else {
                                                                        this.i.r().k().a("Value must be specified with a numeric type.");
                                                                        v5_7 = ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(v5_7, v7_17), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            String v5_35;
                                                            this.i.r().i().a("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o), this.i.k().a(v15_3.b));
                                                            if (this.p().f(v2_24.a.o)) {
                                                                v5_35 = 1;
                                                            } else {
                                                                if (!this.p().g(v2_24.a.o)) {
                                                                    v5_35 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_35 == null) && (!"_err".equals(v15_3.b))) {
                                                                this.i.j().a(v2_24.a.o, 11, "_ev", v15_3.b, 0);
                                                            }
                                                            v40_0 = v7_28;
                                                        }
                                                    }
                                                    Long v27_2 = v12_17;
                                                    if (v10_2 < v2_24.c.size()) {
                                                        v3_8.b = ((com.google.android.gms.internal.measurement.q[]) java.util.Arrays.copyOf(v3_8.b, v10_2));
                                                    }
                                                    java.util.List v4_8;
                                                    long v6_1;
                                                    if (v4_7 == null) {
                                                        v4_8 = this;
                                                        v6_1 = v2_24;
                                                    } else {
                                                        com.google.android.gms.measurement.internal.q v1_7;
                                                        int v42_0;
                                                        java.util.List v4_10 = this.d().c(v3_8.o, "_lte");
                                                        if (v4_10 == null) {
                                                            v42_0 = v2_24;
                                                            v1_7 = new com.google.android.gms.measurement.internal.el;
                                                            v4_8 = this;
                                                            v1_7(v3_8.o, "auto", "_lte", this.i.m().a(), Long.valueOf(v13_8));
                                                        } else {
                                                            if (v4_10.e != null) {
                                                                String v5_59 = new com.google.android.gms.measurement.internal.el;
                                                                v42_0 = v2_24;
                                                                try {
                                                                    v5_59(v3_8.o, "auto", "_lte", this.i.m().a(), Long.valueOf((((Long) v4_10.e).longValue() + v13_8)));
                                                                    v1_7 = v5_59;
                                                                    v4_8 = this;
                                                                } catch (android.database.sqlite.SQLiteException v0_5) {
                                                                    com.google.android.gms.measurement.internal.q v1_1 = v0_5;
                                                                    this.d().x();
                                                                    throw v1_1;
                                                                }
                                                            } else {
                                                            }
                                                        }
                                                        Object v2_5 = new com.google.android.gms.internal.measurement.w();
                                                        v2_5.b = "_lte";
                                                        v2_5.a = Long.valueOf(v4_8.i.m().a());
                                                        v2_5.d = ((Long) v1_7.e);
                                                        String v5_69 = 0;
                                                        while (v5_69 < v3_8.c.length) {
                                                            if (!"_lte".equals(v3_8.c[v5_69].b)) {
                                                                v5_69++;
                                                            } else {
                                                                v3_8.c[v5_69] = v2_5;
                                                                String v5_70 = 1;
                                                            }
                                                            if (v5_70 != null) {
                                                                v6_1 = v42_0;
                                                            } else {
                                                                v3_8.c = ((com.google.android.gms.internal.measurement.w[]) java.util.Arrays.copyOf(v3_8.c, (v3_8.c.length + 1)));
                                                                v6_1 = v42_0;
                                                                v3_8.c[(v6_1.a.c.length - 1)] = v2_5;
                                                            }
                                                            if (v13_8 > 0) {
                                                                this.d().a(v1_7);
                                                                v4_8.i.r().w().a("Updated lifetime engagement user property with value. Value", v1_7.e);
                                                            }
                                                        }
                                                        v5_70 = 0;
                                                    }
                                                    int v51_1;
                                                    v3_8.A = v4_8.a(v3_8.o, v3_8.c, v3_8.b);
                                                    if (!v4_8.i.b().d(v6_1.a.o)) {
                                                        v51_1 = v6_1;
                                                    } else {
                                                        com.google.android.gms.measurement.internal.q v1_15 = new java.util.HashMap();
                                                        Object v2_16 = new com.google.android.gms.internal.measurement.q[v3_8.b.length];
                                                        String v5_2 = v4_8.i.j().h();
                                                        long v7_11 = v3_8.b;
                                                        int v8_10 = v7_11.length;
                                                        int v9_1 = 0;
                                                        boolean v10_0 = 0;
                                                        while (v9_1 < v8_10) {
                                                            int v51_0;
                                                            int v50;
                                                            com.google.android.gms.measurement.internal.an v46;
                                                            int v44;
                                                            int v43;
                                                            String v45;
                                                            int v11_29 = v7_11[v9_1];
                                                            if (!v11_29.b.equals("_ep")) {
                                                                long v47;
                                                                com.google.android.gms.measurement.internal.fg v3_25;
                                                                v43 = v7_11;
                                                                long v12_33 = this.p().e(v6_1.a.o);
                                                                v4_8.i.j();
                                                                long v14_14 = com.google.android.gms.measurement.internal.em.a(v11_29.c.longValue(), v12_33);
                                                                v46 = v3_8;
                                                                v44 = v8_10;
                                                                v45 = v9_1;
                                                                com.google.android.gms.measurement.internal.fg v3_23 = Long.valueOf(1);
                                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                                    v47 = v12_33;
                                                                    v3_25 = 0;
                                                                } else {
                                                                    if (v3_23 != null) {
                                                                        int v8_75 = v11_29.a;
                                                                        int v9_47 = v8_75.length;
                                                                        v47 = v12_33;
                                                                        long v12_34 = 0;
                                                                        while (v12_34 < v9_47) {
                                                                            long v13_27 = v8_75[v12_34];
                                                                            if (!"_dbg".equals(v13_27.a)) {
                                                                                v12_34++;
                                                                            } else {
                                                                                if (((!(v3_23 instanceof Long)) || (!v3_23.equals(v13_27.c))) && (((!(v3_23 instanceof String)) || (!v3_23.equals(v13_27.b))) && ((!(v3_23 instanceof Double)) || (!v3_23.equals(v13_27.d))))) {
                                                                                    break;
                                                                                }
                                                                                v3_25 = 1;
                                                                            }
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                long v12_35;
                                                                if (v3_25 != null) {
                                                                    v12_35 = 1;
                                                                } else {
                                                                    v12_35 = this.p().d(v6_1.a.o, v11_29.b);
                                                                }
                                                                if (v12_35 > 0) {
                                                                    com.google.android.gms.measurement.internal.fg v3_1 = ((com.google.android.gms.measurement.internal.fg) v1_15.get(v11_29.b));
                                                                    if (v3_1 == null) {
                                                                        v3_1 = this.d().a(v6_1.a.o, v11_29.b);
                                                                        if (v3_1 == null) {
                                                                            v4_8.i.r().i().a("Event being bundled has no eventAggregate. appId, eventName", v6_1.a.o, v11_29.b);
                                                                            v3_1 = new com.google.android.gms.measurement.internal.fg;
                                                                            v3_1(v6_1.a.o, v11_29.b, 1, 1, v11_29.c.longValue(), 0, 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    int v8_83;
                                                                    this.f();
                                                                    long v7_94 = ((Long) com.google.android.gms.measurement.internal.ej.b(v11_29, "_eid"));
                                                                    if (v7_94 == 0) {
                                                                        v8_83 = 0;
                                                                    } else {
                                                                        v8_83 = 1;
                                                                    }
                                                                    int v8_84 = Boolean.valueOf(v8_83);
                                                                    if (v12_35 != 1) {
                                                                        if (v5_2.nextInt(v12_35) != 0) {
                                                                            Boolean v53;
                                                                            long v52;
                                                                            String v5_129;
                                                                            v50 = v5_2;
                                                                            if (!v4_8.i.b().o(v6_1.a.o)) {
                                                                                v51_0 = v6_1;
                                                                                v52 = v7_94;
                                                                                v53 = v8_84;
                                                                                if (Math.abs((v11_29.c.longValue() - v3_1.f)) < 86400000) {
                                                                                    v5_129 = 0;
                                                                                } else {
                                                                                    v5_129 = 1;
                                                                                }
                                                                            } else {
                                                                                long v16_11;
                                                                                if (v3_1.g == null) {
                                                                                    v4_8.i.j();
                                                                                    v51_0 = v6_1;
                                                                                    v52 = v7_94;
                                                                                    v53 = v8_84;
                                                                                    v16_11 = com.google.android.gms.measurement.internal.em.a(v11_29.d.longValue(), v47);
                                                                                } else {
                                                                                    v16_11 = v3_1.g.longValue();
                                                                                    v51_0 = v6_1;
                                                                                    v52 = v7_94;
                                                                                    v53 = v8_84;
                                                                                }
                                                                                if (v16_11 == v14_14) {
                                                                                }
                                                                            }
                                                                            if (v5_129 == null) {
                                                                                if (!v53.booleanValue()) {
                                                                                    v9_1 = (v45 + 1);
                                                                                    v7_11 = v43;
                                                                                    v8_10 = v44;
                                                                                    v3_8 = v46;
                                                                                    v5_2 = v50;
                                                                                    v6_1 = v51_0;
                                                                                } else {
                                                                                    v1_15.put(v11_29.b, v3_1.a(v52, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.f();
                                                                                v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_efs", Long.valueOf(1));
                                                                                this.f();
                                                                                long v12_36 = ((long) v12_35);
                                                                                v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_sr", Long.valueOf(v12_36));
                                                                                String v5_136 = (v10_0 + 1);
                                                                                v2_16[v10_0] = v11_29;
                                                                                if (v53.booleanValue()) {
                                                                                    v3_1 = v3_1.a(0, Long.valueOf(v12_36), Boolean.valueOf(1));
                                                                                }
                                                                                v1_15.put(v11_29.b, v3_1.a(v11_29.c.longValue(), v14_14));
                                                                                v10_0 = v5_136;
                                                                            }
                                                                        } else {
                                                                            this.f();
                                                                            long v12_37 = ((long) v12_35);
                                                                            v50 = v5_2;
                                                                            v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_sr", Long.valueOf(v12_37));
                                                                            String v5_1 = (v10_0 + 1);
                                                                            v2_16[v10_0] = v11_29;
                                                                            if (v8_84.booleanValue()) {
                                                                                v3_1 = v3_1.a(0, Long.valueOf(v12_37), 0);
                                                                            }
                                                                            v1_15.put(v11_29.b, v3_1.a(v11_29.c.longValue(), v14_14));
                                                                            v10_0 = v5_1;
                                                                        }
                                                                    } else {
                                                                        long v7_4 = (v10_0 + 1);
                                                                        v2_16[v10_0] = v11_29;
                                                                        if ((v8_84.booleanValue()) && ((v3_1.h != null) || ((v3_1.i != null) || (v3_1.j != null)))) {
                                                                            v1_15.put(v11_29.b, v3_1.a(0, 0, 0));
                                                                        }
                                                                        v50 = v5_2;
                                                                        v51_0 = v6_1;
                                                                        v10_0 = v7_4;
                                                                    }
                                                                } else {
                                                                    v4_8.i.r().i().a("Sample rate must be positive. event, rate", v11_29.b, Integer.valueOf(v12_35));
                                                                    com.google.android.gms.measurement.internal.fg v3_7 = (v10_0 + 1);
                                                                    v2_16[v10_0] = v11_29;
                                                                    v10_0 = v3_7;
                                                                    v50 = v5_2;
                                                                }
                                                                v51_0 = v6_1;
                                                            } else {
                                                                this.f();
                                                                long v12_2 = ((String) com.google.android.gms.measurement.internal.ej.b(v11_29, "_en"));
                                                                long v13_1 = ((com.google.android.gms.measurement.internal.fg) v1_15.get(v12_2));
                                                                if (v13_1 == 0) {
                                                                    v13_1 = this.d().a(v6_1.a.o, v12_2);
                                                                    v1_15.put(v12_2, v13_1);
                                                                }
                                                                if (v13_1.h != null) {
                                                                    v43 = v7_11;
                                                                    v46 = v3_8;
                                                                    v50 = v5_2;
                                                                    v51_0 = v6_1;
                                                                } else {
                                                                    if (v13_1.i.longValue() > 1) {
                                                                        this.f();
                                                                        v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_sr", v13_1.i);
                                                                    }
                                                                    if ((v13_1.j == null) || (!v13_1.j.booleanValue())) {
                                                                        v43 = v7_11;
                                                                    } else {
                                                                        this.f();
                                                                        v43 = v7_11;
                                                                        v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_efs", Long.valueOf(1));
                                                                    }
                                                                    long v7_10 = (v10_0 + 1);
                                                                    v2_16[v10_0] = v11_29;
                                                                    v46 = v3_8;
                                                                    v50 = v5_2;
                                                                    v51_0 = v6_1;
                                                                    v10_0 = v7_10;
                                                                }
                                                                v44 = v8_10;
                                                                v45 = v9_1;
                                                            }
                                                        }
                                                        v51_1 = v6_1;
                                                        if (v10_0 < v3_8.b.length) {
                                                            v3_8.b = ((com.google.android.gms.internal.measurement.q[]) java.util.Arrays.copyOf(v2_16, v10_0));
                                                        }
                                                        com.google.android.gms.measurement.internal.q v1_17 = v1_15.entrySet().iterator();
                                                        while (v1_17.hasNext()) {
                                                            this.d().a(((com.google.android.gms.measurement.internal.fg) ((java.util.Map$Entry) v1_17.next()).getValue()));
                                                        }
                                                    }
                                                    v3_8.e = Long.valueOf(nan);
                                                    v3_8.f = Long.valueOf(-0.0);
                                                    com.google.android.gms.measurement.internal.q v1_22 = 0;
                                                    while (v1_22 < v3_8.b.length) {
                                                        Object v2_27 = v3_8.b[v1_22];
                                                        if (v2_27.c.longValue() < v3_8.e.longValue()) {
                                                            v3_8.e = v2_27.c;
                                                        }
                                                        if (v2_27.c.longValue() > v3_8.f.longValue()) {
                                                            v3_8.f = v2_27.c;
                                                        }
                                                        v1_22++;
                                                    }
                                                    com.google.android.gms.measurement.internal.q v1_23 = v51_1;
                                                    Object v2_23 = v1_23.a.o;
                                                    String v5_82 = this.d().b(v2_23);
                                                    if (v5_82 != null) {
                                                        if (v3_8.b.length > 0) {
                                                            int v8_69;
                                                            long v6_114 = v5_82.i();
                                                            if (v6_114 == 0) {
                                                                v8_69 = 0;
                                                            } else {
                                                                v8_69 = Long.valueOf(v6_114);
                                                            }
                                                            v3_8.h = v8_69;
                                                            int v8_70 = v5_82.h();
                                                            if (v8_70 != 0) {
                                                                v6_114 = v8_70;
                                                            } else {
                                                            }
                                                            long v6_115;
                                                            if (v6_114 == 0) {
                                                                v6_115 = 0;
                                                            } else {
                                                                v6_115 = Long.valueOf(v6_114);
                                                            }
                                                            v3_8.g = v6_115;
                                                            v5_82.s();
                                                            v3_8.w = Integer.valueOf(((int) v5_82.p()));
                                                            v5_82.a(v3_8.e.longValue());
                                                            v5_82.b(v3_8.f.longValue());
                                                            v3_8.x = v5_82.A();
                                                            this.d().a(v5_82);
                                                        }
                                                    } else {
                                                        v4_8.i.r().an_().a("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.o.a(v1_23.a.o));
                                                    }
                                                    if (v3_8.b.length > 0) {
                                                        v4_8.i.u();
                                                        String v5_90 = this.p().a(v1_23.a.o);
                                                        if (v5_90 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v1_23.a.y)) {
                                                                v4_8.i.r().i().a("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.o.a(v1_23.a.o));
                                                            } else {
                                                                v3_8.E = Long.valueOf(-1);
                                                            }
                                                        } else {
                                                            if (v5_90.a != null) {
                                                                v3_8.E = v5_90.a;
                                                            } else {
                                                            }
                                                        }
                                                        this.d().a(v3_8, v27_2);
                                                    }
                                                    com.google.android.gms.measurement.internal.fg v3_18 = this.d();
                                                    com.google.android.gms.measurement.internal.q v1_24 = v1_23.b;
                                                    com.google.android.gms.common.internal.ab.a(v1_24);
                                                    v3_18.d();
                                                    v3_18.k();
                                                    String v5_102 = new StringBuilder("rowid in (");
                                                    long v6_131 = 0;
                                                    while (v6_131 < v1_24.size()) {
                                                        if (v6_131 != 0) {
                                                            v5_102.append(",");
                                                        }
                                                        v5_102.append(((Long) v1_24.get(v6_131)).longValue());
                                                        v6_131++;
                                                    }
                                                    v5_102.append(")");
                                                    String v5_104 = v3_18.y().delete("raw_events", v5_102.toString(), 0);
                                                    if (v5_104 != v1_24.size()) {
                                                        v3_18.r().an_().a("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_104), Integer.valueOf(v1_24.size()));
                                                    }
                                                    com.google.android.gms.measurement.internal.q v1_27 = this.d();
                                                    com.google.android.gms.measurement.internal.fg v3_21 = v1_27.y();
                                                    try {
                                                        long v6_137 = new String[2];
                                                        v6_137[0] = v2_23;
                                                        v6_137[1] = v2_23;
                                                        v3_21.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_137);
                                                    } catch (android.database.sqlite.SQLiteException v0_6) {
                                                        v1_27.r().an_().a("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.o.a(v2_23), v0_6);
                                                    }
                                                    this.d().w();
                                                    this.d().x();
                                                    return 1;
                                                }
                                            } else {
                                                v6_0.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                        }
                                        if (v15_5.moveToNext()) {
                                            v4_13.r().i().a("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.o.a(v3_9));
                                        }
                                        int v17_4;
                                        long v16_6;
                                        v15_5.close();
                                        v2_24.a(v14_8);
                                        if (v5_118 == -1) {
                                            boolean v10_6 = new String[2];
                                            v10_6[0] = v3_9;
                                            v10_6[1] = v7_3;
                                            v16_6 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_4 = v10_6;
                                        } else {
                                            long v13_16 = new String[3];
                                            v13_16[0] = v3_9;
                                            v13_16[1] = v7_3;
                                            v13_16[2] = String.valueOf(v5_118);
                                            v16_6 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_4 = v13_16;
                                        }
                                        v6_0 = v15_5;
                                        String v5_47 = v24.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_6, v17_4, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_47.moveToFirst()) {
                                                v4_13.r().i().a("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.o.a(v3_9));
                                                if (v5_47 == null) {
                                                } else {
                                                    v5_47.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v6_0 = v5_47;
                                            com.google.android.gms.measurement.internal.q v1_2 = v0_0;
                                            if (v6_0 != 0) {
                                                v6_0.close();
                                            }
                                            throw v1_2;
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v7_3 = v3_9;
                                            v6_0 = v5_47;
                                            com.google.android.gms.measurement.internal.fg v3_0 = v0_1;
                                            v4_13.r().an_().a("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.o.a(v7_3), v3_0);
                                            if (v6_0 == 0) {
                                            } else {
                                                v6_0.close();
                                            }
                                        }
                                        do {
                                            long v6_92 = v5_47.getLong(0);
                                            long v12_24 = v5_47.getBlob(3);
                                            boolean v10_11 = com.google.android.gms.internal.measurement.fi.a(v12_24, 0, v12_24.length);
                                            long v12_26 = new com.google.android.gms.internal.measurement.q();
                                            v12_26.a(v10_11);
                                            v12_26.b = v5_47.getString(1);
                                            v12_26.c = Long.valueOf(v5_47.getLong(2));
                                            if (v2_24.a(v6_92, v12_26)) {
                                            } else {
                                                if (v5_47 == null) {
                                                } else {
                                                    v5_47.close();
                                                }
                                            }
                                        } while(v5_47.moveToNext());
                                        if (v5_47 == null) {
                                        } else {
                                            v5_47.close();
                                        }
                                    } else {
                                        v4_13.r().an_().a("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.o.a(v3_9));
                                        if (v15_5 == null) {
                                        } else {
                                            v15_5.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_5;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v6_0 = v15_5;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_5;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v7_3 = v3_9;
                                    v6_0 = v15_5;
                                }
                                v7_3 = v3_9;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v6_0 = v22;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v7_3 = v3_9;
                                v6_0 = v22;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    } else {
                        long v14_12;
                        long v13_24 = v5_118 cmp -1;
                        try {
                            if (v13_24 == 0) {
                                v14_12 = new String[1];
                                v14_12[0] = String.valueOf(p56);
                            } else {
                                v14_12 = new String[2];
                                v14_12[0] = String.valueOf(v5_118);
                                v14_12[1] = String.valueOf(p56);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            v6_0 = 0;
                            v7_3 = 0;
                        }
                        long v13_26;
                        if (v13_24 == 0) {
                            v13_26 = "";
                        } else {
                            v13_26 = "rowid <= ? and ";
                        }
                        com.google.android.gms.measurement.internal.fg v3_34 = new StringBuilder((String.valueOf(v13_26).length() + 148));
                        v3_34.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_34.append(v13_26);
                        v3_34.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_9 = v15_6.rawQuery(v3_34.toString(), v14_12);
                        if (v3_9.moveToFirst()) {
                            long v7_7 = v3_9.getString(0);
                            try {
                                long v13_4 = v3_9.getString(1);
                                v3_9.close();
                                v22 = v3_9;
                                v3_9 = v7_7;
                                v7_3 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v6_0 = v3_9;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v6_0 = v3_9;
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v6_0 = v3_9;
                    v7_3 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v6_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
                v3_0 = v0_7;
                v6_0 = 0;
                v7_3 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
            }
        } catch (android.database.sqlite.SQLiteException v0_2) {
            v1_1 = v0_2;
        }
    }

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


    private final boolean a(String p55, long p56)
    {
        this.d().f();
        try {
            com.google.android.gms.measurement.internal.fg v3_9 = 0;
            Object v2_24 = new ark>com.google.android.gms.measurement.internal.edark>$a(this, 0);
            java.util.List v4_13 = this.d();
            String v5_118 = this.w;
            com.google.android.gms.common.internal.ab.a(v2_24);
            v4_13.d();
            v4_13.k();
            try {
                long v7_3;
                int v22;
                Long v15_6 = v4_13.y();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        long v13_19;
                        com.google.android.gms.measurement.internal.fg v3_10 = v5_118 cmp -1;
                        if (v3_10 == null) {
                            v13_19 = new String[] {0});
                        } else {
                            long v7_33 = new String[2];
                            v7_33[0] = 0;
                            v7_33[1] = String.valueOf(v5_118);
                            v13_19 = v7_33;
                        }
                        com.google.android.gms.measurement.internal.fg v3_15;
                        if (v3_10 == null) {
                            v3_15 = "";
                        } else {
                            v3_15 = " and rowid <= ?";
                        }
                        long v14_11 = new StringBuilder((String.valueOf(v3_15).length() + 84));
                        v14_11.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_11.append(v3_15);
                        v14_11.append(" order by rowid limit 1;");
                        v3_9 = v15_6.rawQuery(v14_11.toString(), v13_19);
                        if (v3_9.moveToFirst()) {
                            long v13_23 = v3_9.getString(0);
                            v3_9.close();
                            v22 = v3_9;
                            v7_3 = v13_23;
                            v3_9 = 0;
                            try {
                                long v13_6 = new String[2];
                                v13_6[0] = v3_9;
                                v13_6[1] = v7_3;
                                com.google.android.gms.internal.measurement.q v24 = v15_6;
                                Long v15_5 = v15_6.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_6, 0, 0, "rowid", "2");
                                try {
                                    if (v15_5.moveToFirst()) {
                                        long v13_10 = v15_5.getBlob(0);
                                        long v13_11 = com.google.android.gms.internal.measurement.fi.a(v13_10, 0, v13_10.length);
                                        long v14_8 = new com.google.android.gms.internal.measurement.t();
                                        try {
                                            v14_8.a(v13_11);
                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                            long v6_0 = v15_5;
                                            v4_13.r().an_().a("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.o.a(v3_9), v0_3);
                                            if (v6_0 == 0) {
                                                com.google.android.gms.measurement.internal.fg v3_14;
                                                if (v2_24.c == null) {
                                                    v3_14 = 1;
                                                } else {
                                                    if (!v2_24.c.isEmpty()) {
                                                        v3_14 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_14 != null) {
                                                    this.d().w();
                                                    this.d().x();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.measurement.internal.fg v3_8 = v2_24.a;
                                                    java.util.List v4_4 = new com.google.android.gms.internal.measurement.q[v2_24.c.size()];
                                                    v3_8.b = v4_4;
                                                    java.util.List v4_7 = this.i.b().e(v3_8.o);
                                                    long v7_28 = 0;
                                                    boolean v10_2 = 0;
                                                    long v12_17 = 0;
                                                    long v13_8 = 0;
                                                    while (v7_28 < v2_24.c.size()) {
                                                        int v40_0;
                                                        Long v15_3 = ((com.google.android.gms.internal.measurement.q) v2_24.c.get(v7_28));
                                                        if (!this.p().b(v2_24.a.o, v15_3.b)) {
                                                            String v5_6 = this.p().c(v2_24.a.o, v15_3.b);
                                                            if (v5_6 != null) {
                                                                if (v15_3.a == null) {
                                                                    int v9_6 = new com.google.android.gms.internal.measurement.r[0];
                                                                    v15_3.a = v9_6;
                                                                }
                                                                int v8_21 = v15_3.a;
                                                                int v9_7 = v8_21.length;
                                                                int v11_3 = 0;
                                                                long v16_1 = 0;
                                                                int v17_0 = 0;
                                                                while (v11_3 < v9_7) {
                                                                    Long v27_1;
                                                                    long v6_79 = v8_21[v11_3];
                                                                    com.google.android.gms.measurement.internal.ex v25_1 = v8_21;
                                                                    long v26_1 = v9_7;
                                                                    if (!"_c".equals(v6_79.a)) {
                                                                        v27_1 = v12_17;
                                                                        if ("_r".equals(v6_79.a)) {
                                                                            v6_79.c = Long.valueOf(1);
                                                                            v17_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v27_1 = v12_17;
                                                                        v6_79.c = Long.valueOf(1);
                                                                        v16_1 = 1;
                                                                    }
                                                                    v11_3++;
                                                                    v8_21 = v25_1;
                                                                    v9_7 = v26_1;
                                                                    v12_17 = v27_1;
                                                                }
                                                                Long v27_0 = v12_17;
                                                                if ((v16_1 == 0) && (v5_6 != null)) {
                                                                    this.i.r().x().a("Marking event as conversion", this.i.k().a(v15_3.b));
                                                                    long v6_11 = ((com.google.android.gms.internal.measurement.r[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                                    int v8_27 = new com.google.android.gms.internal.measurement.r();
                                                                    v8_27.a = "_c";
                                                                    v8_27.c = Long.valueOf(1);
                                                                    v6_11[(v6_11.length - 1)] = v8_27;
                                                                    v15_3.a = v6_11;
                                                                }
                                                                if (v17_0 == 0) {
                                                                    this.i.r().x().a("Marking event as real-time", this.i.k().a(v15_3.b));
                                                                    long v6_17 = ((com.google.android.gms.internal.measurement.r[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                                    int v8_33 = new com.google.android.gms.internal.measurement.r();
                                                                    v8_33.a = "_r";
                                                                    v8_33.c = Long.valueOf(1);
                                                                    v6_17[(v6_17.length - 1)] = v8_33;
                                                                    v15_3.a = v6_17;
                                                                }
                                                                long v12_12;
                                                                if (this.d().a(this.w(), v2_24.a.o, 0, 0, 0, 0, 1).e <= ((long) this.i.b().a(v2_24.a.o))) {
                                                                    v12_12 = 1;
                                                                } else {
                                                                    long v6_25 = 0;
                                                                    while (v6_25 < v15_3.a.length) {
                                                                        if (!"_r".equals(v15_3.a[v6_25].a)) {
                                                                            v6_25++;
                                                                        } else {
                                                                            int v8_42 = new com.google.android.gms.internal.measurement.r[(v15_3.a.length - 1)];
                                                                            if (v6_25 > 0) {
                                                                                System.arraycopy(v15_3.a, 0, v8_42, 0, v6_25);
                                                                            }
                                                                            if (v6_25 < v8_42.length) {
                                                                                System.arraycopy(v15_3.a, (v6_25 + 1), v8_42, v6_25, (v8_42.length - v6_25));
                                                                            }
                                                                            v15_3.a = v8_42;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_12 = v27_0;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.em.a(v15_3.b)) || (v5_6 == null)) {
                                                                    v40_0 = v7_28;
                                                                    long v37_0 = v12_12;
                                                                } else {
                                                                    v37_0 = v12_12;
                                                                    if (this.d().a(this.w(), v2_24.a.o, 0, 0, 1, 0, 0).c <= ((long) this.i.b().b(v2_24.a.o, com.google.android.gms.measurement.internal.e.v))) {
                                                                        v40_0 = v7_28;
                                                                    } else {
                                                                        this.i.r().i().a("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                        long v6_38 = v15_3.a;
                                                                        int v8_46 = v6_38.length;
                                                                        int v9_34 = 0;
                                                                        int v11_18 = 0;
                                                                        long v12_16 = 0;
                                                                        while (v9_34 < v8_46) {
                                                                            int v8_56 = v6_38[v9_34];
                                                                            if (!"_c".equals(v8_56.a)) {
                                                                                if ("_err".equals(v8_56.a)) {
                                                                                    v11_18 = 1;
                                                                                }
                                                                            } else {
                                                                                v12_16 = v8_56;
                                                                            }
                                                                            v9_34++;
                                                                        }
                                                                        v40_0 = v7_28;
                                                                        if ((v11_18 == 0) || (v12_16 == 0)) {
                                                                            if (v12_16 == 0) {
                                                                                this.i.r().an_().a("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                            } else {
                                                                                v12_16.a = "_err";
                                                                                v12_16.c = Long.valueOf(10);
                                                                            }
                                                                        } else {
                                                                            long v6_45 = v15_3.a;
                                                                            int v8_50 = new com.google.android.gms.internal.measurement.r[1];
                                                                            v8_50[0] = v12_16;
                                                                            v15_3.a = ((com.google.android.gms.internal.measurement.r[]) com.google.android.gms.common.util.b.a(v6_45, v8_50));
                                                                        }
                                                                    }
                                                                }
                                                                v12_17 = v37_0;
                                                            } else {
                                                                int v8_15;
                                                                this.f();
                                                                int v8_13 = v15_3.b;
                                                                com.google.android.gms.common.internal.ab.a(v8_13);
                                                                int v9_2 = v8_13.hashCode();
                                                                if (v9_2 == 94660) {
                                                                    if (!v8_13.equals("_in")) {
                                                                        v8_15 = -1;
                                                                    } else {
                                                                        v8_15 = 0;
                                                                    }
                                                                } else {
                                                                    if (v9_2 == 95025) {
                                                                        if (!v8_13.equals("_ug")) {
                                                                        } else {
                                                                            v8_15 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v9_2 == 95027) {
                                                                            if (!v8_13.equals("_ui")) {
                                                                            } else {
                                                                                v8_15 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v8_18;
                                                                switch (v8_15) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v8_18 = 1;
                                                                    default:
                                                                        v8_18 = 0;
                                                                }
                                                                if (v8_18 == 0) {
                                                                    v40_0 = v7_28;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.i.b().m(v2_24.a.o)) || (v5_6 == null)) {
                                                            } else {
                                                                String v5_7 = v15_3.a;
                                                                long v6_51 = 0;
                                                                long v7_17 = -1;
                                                                int v8_51 = -1;
                                                                while (v6_51 < v5_7.length) {
                                                                    if (!"value".equals(v5_7[v6_51].a)) {
                                                                        if ("currency".equals(v5_7[v6_51].a)) {
                                                                            v8_51 = v6_51;
                                                                        }
                                                                    } else {
                                                                        v7_17 = v6_51;
                                                                    }
                                                                    v6_51++;
                                                                }
                                                                if (v7_17 == -1) {
                                                                } else {
                                                                    if ((v5_7[v7_17].c != null) || (v5_7[v7_17].d != null)) {
                                                                        long v6_60;
                                                                        if (v8_51 != -1) {
                                                                            long v6_59 = v5_7[v8_51].b;
                                                                            if (v6_59 == 0) {
                                                                            } else {
                                                                                if (v6_59.length() == 3) {
                                                                                    int v8_53 = 0;
                                                                                    while (v8_53 < v6_59.length()) {
                                                                                        int v11_20 = v6_59.codePointAt(v8_53);
                                                                                        if (Character.isLetter(v11_20)) {
                                                                                            v8_53 += Character.charCount(v11_20);
                                                                                        } else {
                                                                                        }
                                                                                    }
                                                                                    v6_60 = 0;
                                                                                    if (v6_60 != 0) {
                                                                                        this.i.r().k().a("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                        v5_7 = ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(v5_7, v7_17), "_c"), 19, "currency");
                                                                                    }
                                                                                    v15_3.a = v5_7;
                                                                                    if ((v4_7 != null) && ("_e".equals(v15_3.b))) {
                                                                                        if (v15_3.a != null) {
                                                                                            if (v15_3.a.length != 0) {
                                                                                                this.f();
                                                                                                String v5_19 = ((Long) com.google.android.gms.measurement.internal.ej.b(v15_3, "_et"));
                                                                                                if (v5_19 != null) {
                                                                                                    v13_8 += v5_19.longValue();
                                                                                                    long v6_74 = (v10_2 + 1);
                                                                                                    v3_8.b[v10_2] = v15_3;
                                                                                                    v10_2 = v6_74;
                                                                                                    v7_28 = (v40_0 + 1);
                                                                                                    int v11 = 0;
                                                                                                } else {
                                                                                                    this.i.r().i().a("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                                                }
                                                                                            } else {
                                                                                            }
                                                                                        }
                                                                                        this.i.r().i().a("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                                    }
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v6_60 = 1;
                                                                        } else {
                                                                            v6_60 = 1;
                                                                        }
                                                                    } else {
                                                                        this.i.r().k().a("Value must be specified with a numeric type.");
                                                                        v5_7 = ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(v5_7, v7_17), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            String v5_35;
                                                            this.i.r().i().a("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o), this.i.k().a(v15_3.b));
                                                            if (this.p().f(v2_24.a.o)) {
                                                                v5_35 = 1;
                                                            } else {
                                                                if (!this.p().g(v2_24.a.o)) {
                                                                    v5_35 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_35 == null) && (!"_err".equals(v15_3.b))) {
                                                                this.i.j().a(v2_24.a.o, 11, "_ev", v15_3.b, 0);
                                                            }
                                                            v40_0 = v7_28;
                                                        }
                                                    }
                                                    Long v27_2 = v12_17;
                                                    if (v10_2 < v2_24.c.size()) {
                                                        v3_8.b = ((com.google.android.gms.internal.measurement.q[]) java.util.Arrays.copyOf(v3_8.b, v10_2));
                                                    }
                                                    java.util.List v4_8;
                                                    long v6_1;
                                                    if (v4_7 == null) {
                                                        v4_8 = this;
                                                        v6_1 = v2_24;
                                                    } else {
                                                        int v42_0;
                                                        com.google.android.gms.measurement.internal.q v1_7;
                                                        java.util.List v4_10 = this.d().c(v3_8.o, "_lte");
                                                        if (v4_10 == null) {
                                                            v42_0 = v2_24;
                                                            v1_7 = new com.google.android.gms.measurement.internal.el;
                                                            v4_8 = this;
                                                            v1_7(v3_8.o, "auto", "_lte", this.i.m().a(), Long.valueOf(v13_8));
                                                        } else {
                                                            if (v4_10.e != null) {
                                                                String v5_59 = new com.google.android.gms.measurement.internal.el;
                                                                v42_0 = v2_24;
                                                                try {
                                                                    v5_59(v3_8.o, "auto", "_lte", this.i.m().a(), Long.valueOf((((Long) v4_10.e).longValue() + v13_8)));
                                                                    v1_7 = v5_59;
                                                                    v4_8 = this;
                                                                } catch (android.database.sqlite.SQLiteException v0_5) {
                                                                    com.google.android.gms.measurement.internal.q v1_1 = v0_5;
                                                                    this.d().x();
                                                                    throw v1_1;
                                                                }
                                                            } else {
                                                            }
                                                        }
                                                        Object v2_5 = new com.google.android.gms.internal.measurement.w();
                                                        v2_5.b = "_lte";
                                                        v2_5.a = Long.valueOf(v4_8.i.m().a());
                                                        v2_5.d = ((Long) v1_7.e);
                                                        String v5_69 = 0;
                                                        while (v5_69 < v3_8.c.length) {
                                                            if (!"_lte".equals(v3_8.c[v5_69].b)) {
                                                                v5_69++;
                                                            } else {
                                                                v3_8.c[v5_69] = v2_5;
                                                                String v5_70 = 1;
                                                            }
                                                            if (v5_70 != null) {
                                                                v6_1 = v42_0;
                                                            } else {
                                                                v3_8.c = ((com.google.android.gms.internal.measurement.w[]) java.util.Arrays.copyOf(v3_8.c, (v3_8.c.length + 1)));
                                                                v6_1 = v42_0;
                                                                v3_8.c[(v6_1.a.c.length - 1)] = v2_5;
                                                            }
                                                            if (v13_8 > 0) {
                                                                this.d().a(v1_7);
                                                                v4_8.i.r().w().a("Updated lifetime engagement user property with value. Value", v1_7.e);
                                                            }
                                                        }
                                                        v5_70 = 0;
                                                    }
                                                    int v51_1;
                                                    v3_8.A = v4_8.a(v3_8.o, v3_8.c, v3_8.b);
                                                    if (!v4_8.i.b().d(v6_1.a.o)) {
                                                        v51_1 = v6_1;
                                                    } else {
                                                        com.google.android.gms.measurement.internal.q v1_15 = new java.util.HashMap();
                                                        Object v2_16 = new com.google.android.gms.internal.measurement.q[v3_8.b.length];
                                                        String v5_2 = v4_8.i.j().h();
                                                        long v7_11 = v3_8.b;
                                                        int v8_10 = v7_11.length;
                                                        int v9_1 = 0;
                                                        boolean v10_0 = 0;
                                                        while (v9_1 < v8_10) {
                                                            int v50;
                                                            com.google.android.gms.measurement.internal.an v46;
                                                            int v51_0;
                                                            int v44;
                                                            String v45;
                                                            int v43;
                                                            int v11_29 = v7_11[v9_1];
                                                            if (!v11_29.b.equals("_ep")) {
                                                                long v47;
                                                                com.google.android.gms.measurement.internal.fg v3_25;
                                                                v43 = v7_11;
                                                                long v12_33 = this.p().e(v6_1.a.o);
                                                                v4_8.i.j();
                                                                long v14_14 = com.google.android.gms.measurement.internal.em.a(v11_29.c.longValue(), v12_33);
                                                                v46 = v3_8;
                                                                v44 = v8_10;
                                                                v45 = v9_1;
                                                                com.google.android.gms.measurement.internal.fg v3_23 = Long.valueOf(1);
                                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                                    v47 = v12_33;
                                                                    v3_25 = 0;
                                                                } else {
                                                                    if (v3_23 != null) {
                                                                        int v8_75 = v11_29.a;
                                                                        int v9_47 = v8_75.length;
                                                                        v47 = v12_33;
                                                                        long v12_34 = 0;
                                                                        while (v12_34 < v9_47) {
                                                                            long v13_27 = v8_75[v12_34];
                                                                            if (!"_dbg".equals(v13_27.a)) {
                                                                                v12_34++;
                                                                            } else {
                                                                                if (((!(v3_23 instanceof Long)) || (!v3_23.equals(v13_27.c))) && (((!(v3_23 instanceof String)) || (!v3_23.equals(v13_27.b))) && ((!(v3_23 instanceof Double)) || (!v3_23.equals(v13_27.d))))) {
                                                                                    break;
                                                                                }
                                                                                v3_25 = 1;
                                                                            }
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                long v12_35;
                                                                if (v3_25 != null) {
                                                                    v12_35 = 1;
                                                                } else {
                                                                    v12_35 = this.p().d(v6_1.a.o, v11_29.b);
                                                                }
                                                                if (v12_35 > 0) {
                                                                    com.google.android.gms.measurement.internal.fg v3_1 = ((com.google.android.gms.measurement.internal.fg) v1_15.get(v11_29.b));
                                                                    if (v3_1 == null) {
                                                                        v3_1 = this.d().a(v6_1.a.o, v11_29.b);
                                                                        if (v3_1 == null) {
                                                                            v4_8.i.r().i().a("Event being bundled has no eventAggregate. appId, eventName", v6_1.a.o, v11_29.b);
                                                                            v3_1 = new com.google.android.gms.measurement.internal.fg;
                                                                            v3_1(v6_1.a.o, v11_29.b, 1, 1, v11_29.c.longValue(), 0, 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    int v8_83;
                                                                    this.f();
                                                                    long v7_94 = ((Long) com.google.android.gms.measurement.internal.ej.b(v11_29, "_eid"));
                                                                    if (v7_94 == 0) {
                                                                        v8_83 = 0;
                                                                    } else {
                                                                        v8_83 = 1;
                                                                    }
                                                                    int v8_84 = Boolean.valueOf(v8_83);
                                                                    if (v12_35 != 1) {
                                                                        if (v5_2.nextInt(v12_35) != 0) {
                                                                            long v52;
                                                                            Boolean v53;
                                                                            String v5_129;
                                                                            v50 = v5_2;
                                                                            if (!v4_8.i.b().o(v6_1.a.o)) {
                                                                                v51_0 = v6_1;
                                                                                v52 = v7_94;
                                                                                v53 = v8_84;
                                                                                if (Math.abs((v11_29.c.longValue() - v3_1.f)) < 86400000) {
                                                                                    v5_129 = 0;
                                                                                } else {
                                                                                    v5_129 = 1;
                                                                                }
                                                                            } else {
                                                                                long v16_11;
                                                                                if (v3_1.g == null) {
                                                                                    v4_8.i.j();
                                                                                    v51_0 = v6_1;
                                                                                    v52 = v7_94;
                                                                                    v53 = v8_84;
                                                                                    v16_11 = com.google.android.gms.measurement.internal.em.a(v11_29.d.longValue(), v47);
                                                                                } else {
                                                                                    v16_11 = v3_1.g.longValue();
                                                                                    v51_0 = v6_1;
                                                                                    v52 = v7_94;
                                                                                    v53 = v8_84;
                                                                                }
                                                                                if (v16_11 == v14_14) {
                                                                                }
                                                                            }
                                                                            if (v5_129 == null) {
                                                                                if (!v53.booleanValue()) {
                                                                                    v9_1 = (v45 + 1);
                                                                                    v7_11 = v43;
                                                                                    v8_10 = v44;
                                                                                    v3_8 = v46;
                                                                                    v5_2 = v50;
                                                                                    v6_1 = v51_0;
                                                                                } else {
                                                                                    v1_15.put(v11_29.b, v3_1.a(v52, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.f();
                                                                                v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_efs", Long.valueOf(1));
                                                                                this.f();
                                                                                long v12_36 = ((long) v12_35);
                                                                                v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_sr", Long.valueOf(v12_36));
                                                                                String v5_136 = (v10_0 + 1);
                                                                                v2_16[v10_0] = v11_29;
                                                                                if (v53.booleanValue()) {
                                                                                    v3_1 = v3_1.a(0, Long.valueOf(v12_36), Boolean.valueOf(1));
                                                                                }
                                                                                v1_15.put(v11_29.b, v3_1.a(v11_29.c.longValue(), v14_14));
                                                                                v10_0 = v5_136;
                                                                            }
                                                                        } else {
                                                                            this.f();
                                                                            long v12_37 = ((long) v12_35);
                                                                            v50 = v5_2;
                                                                            v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_sr", Long.valueOf(v12_37));
                                                                            String v5_1 = (v10_0 + 1);
                                                                            v2_16[v10_0] = v11_29;
                                                                            if (v8_84.booleanValue()) {
                                                                                v3_1 = v3_1.a(0, Long.valueOf(v12_37), 0);
                                                                            }
                                                                            v1_15.put(v11_29.b, v3_1.a(v11_29.c.longValue(), v14_14));
                                                                            v10_0 = v5_1;
                                                                        }
                                                                    } else {
                                                                        long v7_4 = (v10_0 + 1);
                                                                        v2_16[v10_0] = v11_29;
                                                                        if ((v8_84.booleanValue()) && ((v3_1.h != null) || ((v3_1.i != null) || (v3_1.j != null)))) {
                                                                            v1_15.put(v11_29.b, v3_1.a(0, 0, 0));
                                                                        }
                                                                        v50 = v5_2;
                                                                        v51_0 = v6_1;
                                                                        v10_0 = v7_4;
                                                                    }
                                                                } else {
                                                                    v4_8.i.r().i().a("Sample rate must be positive. event, rate", v11_29.b, Integer.valueOf(v12_35));
                                                                    com.google.android.gms.measurement.internal.fg v3_7 = (v10_0 + 1);
                                                                    v2_16[v10_0] = v11_29;
                                                                    v10_0 = v3_7;
                                                                    v50 = v5_2;
                                                                }
                                                                v51_0 = v6_1;
                                                            } else {
                                                                this.f();
                                                                long v12_2 = ((String) com.google.android.gms.measurement.internal.ej.b(v11_29, "_en"));
                                                                long v13_1 = ((com.google.android.gms.measurement.internal.fg) v1_15.get(v12_2));
                                                                if (v13_1 == 0) {
                                                                    v13_1 = this.d().a(v6_1.a.o, v12_2);
                                                                    v1_15.put(v12_2, v13_1);
                                                                }
                                                                if (v13_1.h != null) {
                                                                    v43 = v7_11;
                                                                    v46 = v3_8;
                                                                    v50 = v5_2;
                                                                    v51_0 = v6_1;
                                                                } else {
                                                                    if (v13_1.i.longValue() > 1) {
                                                                        this.f();
                                                                        v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_sr", v13_1.i);
                                                                    }
                                                                    if ((v13_1.j == null) || (!v13_1.j.booleanValue())) {
                                                                        v43 = v7_11;
                                                                    } else {
                                                                        this.f();
                                                                        v43 = v7_11;
                                                                        v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_efs", Long.valueOf(1));
                                                                    }
                                                                    long v7_10 = (v10_0 + 1);
                                                                    v2_16[v10_0] = v11_29;
                                                                    v46 = v3_8;
                                                                    v50 = v5_2;
                                                                    v51_0 = v6_1;
                                                                    v10_0 = v7_10;
                                                                }
                                                                v44 = v8_10;
                                                                v45 = v9_1;
                                                            }
                                                        }
                                                        v51_1 = v6_1;
                                                        if (v10_0 < v3_8.b.length) {
                                                            v3_8.b = ((com.google.android.gms.internal.measurement.q[]) java.util.Arrays.copyOf(v2_16, v10_0));
                                                        }
                                                        com.google.android.gms.measurement.internal.q v1_17 = v1_15.entrySet().iterator();
                                                        while (v1_17.hasNext()) {
                                                            this.d().a(((com.google.android.gms.measurement.internal.fg) ((java.util.Map$Entry) v1_17.next()).getValue()));
                                                        }
                                                    }
                                                    v3_8.e = Long.valueOf(nan);
                                                    v3_8.f = Long.valueOf(-0.0);
                                                    com.google.android.gms.measurement.internal.q v1_22 = 0;
                                                    while (v1_22 < v3_8.b.length) {
                                                        Object v2_27 = v3_8.b[v1_22];
                                                        if (v2_27.c.longValue() < v3_8.e.longValue()) {
                                                            v3_8.e = v2_27.c;
                                                        }
                                                        if (v2_27.c.longValue() > v3_8.f.longValue()) {
                                                            v3_8.f = v2_27.c;
                                                        }
                                                        v1_22++;
                                                    }
                                                    com.google.android.gms.measurement.internal.q v1_23 = v51_1;
                                                    Object v2_23 = v1_23.a.o;
                                                    String v5_82 = this.d().b(v2_23);
                                                    if (v5_82 != null) {
                                                        if (v3_8.b.length > 0) {
                                                            int v8_69;
                                                            long v6_114 = v5_82.i();
                                                            if (v6_114 == 0) {
                                                                v8_69 = 0;
                                                            } else {
                                                                v8_69 = Long.valueOf(v6_114);
                                                            }
                                                            v3_8.h = v8_69;
                                                            int v8_70 = v5_82.h();
                                                            if (v8_70 != 0) {
                                                                v6_114 = v8_70;
                                                            } else {
                                                            }
                                                            long v6_115;
                                                            if (v6_114 == 0) {
                                                                v6_115 = 0;
                                                            } else {
                                                                v6_115 = Long.valueOf(v6_114);
                                                            }
                                                            v3_8.g = v6_115;
                                                            v5_82.s();
                                                            v3_8.w = Integer.valueOf(((int) v5_82.p()));
                                                            v5_82.a(v3_8.e.longValue());
                                                            v5_82.b(v3_8.f.longValue());
                                                            v3_8.x = v5_82.A();
                                                            this.d().a(v5_82);
                                                        }
                                                    } else {
                                                        v4_8.i.r().an_().a("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.o.a(v1_23.a.o));
                                                    }
                                                    if (v3_8.b.length > 0) {
                                                        v4_8.i.u();
                                                        String v5_90 = this.p().a(v1_23.a.o);
                                                        if (v5_90 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v1_23.a.y)) {
                                                                v4_8.i.r().i().a("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.o.a(v1_23.a.o));
                                                            } else {
                                                                v3_8.E = Long.valueOf(-1);
                                                            }
                                                        } else {
                                                            if (v5_90.a != null) {
                                                                v3_8.E = v5_90.a;
                                                            } else {
                                                            }
                                                        }
                                                        this.d().a(v3_8, v27_2);
                                                    }
                                                    com.google.android.gms.measurement.internal.fg v3_18 = this.d();
                                                    com.google.android.gms.measurement.internal.q v1_24 = v1_23.b;
                                                    com.google.android.gms.common.internal.ab.a(v1_24);
                                                    v3_18.d();
                                                    v3_18.k();
                                                    String v5_102 = new StringBuilder("rowid in (");
                                                    long v6_131 = 0;
                                                    while (v6_131 < v1_24.size()) {
                                                        if (v6_131 != 0) {
                                                            v5_102.append(",");
                                                        }
                                                        v5_102.append(((Long) v1_24.get(v6_131)).longValue());
                                                        v6_131++;
                                                    }
                                                    v5_102.append(")");
                                                    String v5_104 = v3_18.y().delete("raw_events", v5_102.toString(), 0);
                                                    if (v5_104 != v1_24.size()) {
                                                        v3_18.r().an_().a("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_104), Integer.valueOf(v1_24.size()));
                                                    }
                                                    com.google.android.gms.measurement.internal.q v1_27 = this.d();
                                                    com.google.android.gms.measurement.internal.fg v3_21 = v1_27.y();
                                                    try {
                                                        long v6_137 = new String[2];
                                                        v6_137[0] = v2_23;
                                                        v6_137[1] = v2_23;
                                                        v3_21.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_137);
                                                    } catch (android.database.sqlite.SQLiteException v0_6) {
                                                        v1_27.r().an_().a("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.o.a(v2_23), v0_6);
                                                    }
                                                    this.d().w();
                                                    this.d().x();
                                                    return 1;
                                                }
                                            } else {
                                                v6_0.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                        }
                                        if (v15_5.moveToNext()) {
                                            v4_13.r().i().a("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.o.a(v3_9));
                                        }
                                        long v16_6;
                                        int v17_4;
                                        v15_5.close();
                                        v2_24.a(v14_8);
                                        if (v5_118 == -1) {
                                            boolean v10_6 = new String[2];
                                            v10_6[0] = v3_9;
                                            v10_6[1] = v7_3;
                                            v16_6 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_4 = v10_6;
                                        } else {
                                            long v13_16 = new String[3];
                                            v13_16[0] = v3_9;
                                            v13_16[1] = v7_3;
                                            v13_16[2] = String.valueOf(v5_118);
                                            v16_6 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_4 = v13_16;
                                        }
                                        v6_0 = v15_5;
                                        String v5_47 = v24.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_6, v17_4, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_47.moveToFirst()) {
                                                v4_13.r().i().a("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.o.a(v3_9));
                                                if (v5_47 == null) {
                                                } else {
                                                    v5_47.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v6_0 = v5_47;
                                            com.google.android.gms.measurement.internal.q v1_2 = v0_0;
                                            if (v6_0 != 0) {
                                                v6_0.close();
                                            }
                                            throw v1_2;
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v7_3 = v3_9;
                                            v6_0 = v5_47;
                                            com.google.android.gms.measurement.internal.fg v3_0 = v0_1;
                                            v4_13.r().an_().a("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.o.a(v7_3), v3_0);
                                            if (v6_0 == 0) {
                                            } else {
                                                v6_0.close();
                                            }
                                        }
                                        do {
                                            long v6_92 = v5_47.getLong(0);
                                            long v12_24 = v5_47.getBlob(3);
                                            boolean v10_11 = com.google.android.gms.internal.measurement.fi.a(v12_24, 0, v12_24.length);
                                            long v12_26 = new com.google.android.gms.internal.measurement.q();
                                            v12_26.a(v10_11);
                                            v12_26.b = v5_47.getString(1);
                                            v12_26.c = Long.valueOf(v5_47.getLong(2));
                                            if (v2_24.a(v6_92, v12_26)) {
                                            } else {
                                                if (v5_47 == null) {
                                                } else {
                                                    v5_47.close();
                                                }
                                            }
                                        } while(v5_47.moveToNext());
                                        if (v5_47 == null) {
                                        } else {
                                            v5_47.close();
                                        }
                                    } else {
                                        v4_13.r().an_().a("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.o.a(v3_9));
                                        if (v15_5 == null) {
                                        } else {
                                            v15_5.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_5;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v6_0 = v15_5;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_5;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v7_3 = v3_9;
                                    v6_0 = v15_5;
                                }
                                v7_3 = v3_9;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v6_0 = v22;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v7_3 = v3_9;
                                v6_0 = v22;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    } else {
                        long v14_12;
                        long v13_24 = v5_118 cmp -1;
                        try {
                            if (v13_24 == 0) {
                                v14_12 = new String[1];
                                v14_12[0] = String.valueOf(p56);
                            } else {
                                v14_12 = new String[2];
                                v14_12[0] = String.valueOf(v5_118);
                                v14_12[1] = String.valueOf(p56);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            v6_0 = 0;
                            v7_3 = 0;
                        }
                        long v13_26;
                        if (v13_24 == 0) {
                            v13_26 = "";
                        } else {
                            v13_26 = "rowid <= ? and ";
                        }
                        com.google.android.gms.measurement.internal.fg v3_34 = new StringBuilder((String.valueOf(v13_26).length() + 148));
                        v3_34.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_34.append(v13_26);
                        v3_34.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_9 = v15_6.rawQuery(v3_34.toString(), v14_12);
                        if (v3_9.moveToFirst()) {
                            long v7_7 = v3_9.getString(0);
                            try {
                                long v13_4 = v3_9.getString(1);
                                v3_9.close();
                                v22 = v3_9;
                                v3_9 = v7_7;
                                v7_3 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v6_0 = v3_9;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v6_0 = v3_9;
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v6_0 = v3_9;
                    v7_3 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v6_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
                v3_0 = v0_7;
                v6_0 = 0;
                v7_3 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
            }
        } catch (android.database.sqlite.SQLiteException v0_2) {
            v1_1 = v0_2;
        }
    }

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


    public final com.google.android.gms.measurement.internal.ey a(long p17, String p19, boolean p20, boolean p21, boolean p22, boolean p23, boolean p24)
    {
        com.google.android.gms.common.internal.ab.a(p19);
        this.d();
        this.k();
        String v3_1 = new String[1];
        v3_1[0] = p19;
        com.google.android.gms.measurement.internal.ey v5_1 = new com.google.android.gms.measurement.internal.ey();
        String v6_8 = 0;
        try {
            android.database.sqlite.SQLiteDatabase v15 = this.y();
            String[] v11 = "daily_public_events_count";
            int v13 = "daily_error_events_count";
            v11 = new String[1];
            v11[0] = p19;
            int v7_1 = v15.query("apps", new String[] {"day", "daily_realtime_events_count"}), "app_id=?", v11, 0, 0, 0);
            try {
                if (v7_1.moveToFirst()) {
                    if (v7_1.getLong(0) == p17) {
                        v5_1.b = v7_1.getLong(1);
                        v5_1.a = v7_1.getLong(2);
                        v5_1.c = v7_1.getLong(3);
                        v5_1.d = v7_1.getLong(4);
                        v5_1.e = v7_1.getLong(5);
                    }
                    if (p20) {
                        v5_1.b = (v5_1.b + 1);
                    }
                    if (p21) {
                        v5_1.a = (v5_1.a + 1);
                    }
                    if (p22) {
                        v5_1.c = (v5_1.c + 1);
                    }
                    if (p23) {
                        v5_1.d = (v5_1.d + 1);
                    }
                    if (p24) {
                        v5_1.e = (v5_1.e + 1);
                    }
                    android.content.ContentValues v2_1 = new android.content.ContentValues();
                    v2_1.put("day", Long.valueOf(p17));
                    v2_1.put("daily_public_events_count", Long.valueOf(v5_1.a));
                    v2_1.put("daily_events_count", Long.valueOf(v5_1.b));
                    v2_1.put("daily_conversions_count", Long.valueOf(v5_1.c));
                    v2_1.put("daily_error_events_count", Long.valueOf(v5_1.d));
                    v2_1.put("daily_realtime_events_count", Long.valueOf(v5_1.e));
                    v15.update("apps", v2_1, "app_id=?", v3_1);
                    if (v7_1 != 0) {
                        v7_1.close();
                    }
                    return v5_1;
                } else {
                    this.r().i().a("Not updating daily counts, app is not known. appId", com.google.android.gms.measurement.internal.o.a(p19));
                    if (v7_1 != 0) {
                        v7_1.close();
                    }
                    return v5_1;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                Throwable v1_0 = v0_0;
                if (v7_1 != 0) {
                    v7_1.close();
                }
                throw v1_0;
            } catch (android.database.sqlite.SQLiteException v0_2) {
                android.content.ContentValues v2_5 = v0_2;
                v6_8 = v7_1;
                this.r().an_().a("Error updating daily counts. appId", com.google.android.gms.measurement.internal.o.a(p19), v2_5);
                if (v6_8 != null) {
                    v6_8.close();
                }
                return v5_1;
            }
        } catch (android.database.sqlite.SQLiteException v0_3) {
            v1_0 = v0_3;
            v7_1 = v6_8;
        } catch (android.database.sqlite.SQLiteException v0_1) {
            v2_5 = v0_1;
        }
    }

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


    public final com.google.android.gms.measurement.internal.fg a(String p25, String p26)
    {
        com.google.android.gms.common.internal.ab.a(p25);
        com.google.android.gms.common.internal.ab.a(p26);
        this.d();
        this.k();
        try {
            int v1_12 = this.y();
            String v5 = "last_fire_timestamp";
            int v7 = "last_bundled_day";
            int v9 = "last_sampling_rate";
            String v5_2 = new String[2];
            v5_2[0] = p25;
            int v11 = 1;
            v5_2[1] = p26;
            int v14 = v1_12.query("events", new String[] {"lifetime_count", "last_exempt_from_sampling"}), "app_id=? and name=?", v5_2, 0, 0, 0);
            try {
                if (v14.moveToFirst()) {
                    int v1_6;
                    Object v4_3 = v14.getLong(0);
                    long v6_2 = v14.getLong(1);
                    long v8_1 = v14.getLong(2);
                    if (!v14.isNull(3)) {
                        v1_6 = v14.getLong(3);
                    } else {
                        v1_6 = 0;
                    }
                    Long v17;
                    if (!v14.isNull(4)) {
                        v17 = Long.valueOf(v14.getLong(4));
                    } else {
                        v17 = 0;
                    }
                    Long v18;
                    if (!v14.isNull(5)) {
                        v18 = Long.valueOf(v14.getLong(5));
                    } else {
                        v18 = 0;
                    }
                    Long v19;
                    if (!v14.isNull(6)) {
                        v19 = Long.valueOf(v14.getLong(6));
                    } else {
                        v19 = 0;
                    }
                    Boolean v20_0;
                    if (v14.isNull(7)) {
                        v20_0 = 0;
                    } else {
                        try {
                            if (v14.getLong(7) != 1) {
                                v11 = 0;
                            } else {
                            }
                        } catch (android.database.sqlite.SQLiteException v0_0) {
                            int v1_2 = v0_0;
                            this.r().an_().a("Error querying events. appId", com.google.android.gms.measurement.internal.o.a(p25), this.o().a(p26), v1_2);
                            if (v14 != 0) {
                                v14.close();
                            }
                            return 0;
                        }
                        v20_0 = Boolean.valueOf(v11);
                    }
                    com.google.android.gms.measurement.internal.fg v21 = new com.google.android.gms.measurement.internal.fg;
                    int v22 = v14;
                    v14 = v19;
                    try {
                        v21(p25, p26, v4_3, v6_2, v8_1, v1_6, v17, v18, v14, v20_0);
                        int v1_1 = v22;
                        try {
                            if (v1_1.moveToNext()) {
                                this.r().an_().a("Got multiple records for event aggregates, expected one. appId", com.google.android.gms.measurement.internal.o.a(p25));
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            v14 = v1_1;
                            int v1_3 = v0_1;
                            if (v14 != 0) {
                                v14.close();
                            }
                            throw v1_3;
                        } catch (android.database.sqlite.SQLiteException v0_0) {
                            v14 = v1_1;
                        }
                        if (v1_1 != 0) {
                            v1_1.close();
                        }
                        return v21;
                    } catch (android.database.sqlite.SQLiteException v0_1) {
                        v1_1 = v22;
                    } catch (android.database.sqlite.SQLiteException v0_0) {
                        v1_1 = v22;
                    }
                } else {
                    if (v14 != 0) {
                        v14.close();
                    }
                    return 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
            } catch (android.database.sqlite.SQLiteException v0_0) {
            }
        } catch (android.database.sqlite.SQLiteException v0_3) {
            v1_3 = v0_3;
            v14 = 0;
        } catch (android.database.sqlite.SQLiteException v0_2) {
            v1_2 = v0_2;
            v14 = 0;
        } catch (android.database.sqlite.SQLiteException v0_1) {
        }
    }

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


    public final java.util.List a(String p14)
    {
        com.google.android.gms.common.internal.ab.a(p14);
        this.d();
        this.k();
        android.database.sqlite.SQLiteException v0_2 = new java.util.ArrayList();
        try {
            int v2_1 = this.y();
            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.r().an_().a("Error querying user properties. appId", com.google.android.gms.measurement.internal.o.a(p14), v0_0);
                if (v2_0 != 0) {
                    v2_0.close();
                }
                return 0;
            }
            do {
                String v7_2 = v2_0.getString(0);
                boolean v3_1 = v2_0.getString(1);
                if (!v3_1) {
                    v3_1 = "";
                }
                String v6_2 = v3_1;
                long v8_1 = v2_0.getLong(2);
                Object v10_1 = this.a(v2_0, 3);
                if (v10_1 != null) {
                    boolean v3_4 = new com.google.android.gms.measurement.internal.el;
                    v3_4(p14, v6_2, v7_2, v8_1, v10_1);
                    v0_2.add(v3_4);
                } else {
                    this.r().an_().a("Read invalid user property value, ignoring it. appId", com.google.android.gms.measurement.internal.o.a(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.ex.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List a(String p13, int p14, int p15)
    {
        java.util.ArrayList v2_5;
        this.d();
        this.k();
        if (p14 <= null) {
            v2_5 = 0;
        } else {
            v2_5 = 1;
        }
        java.util.ArrayList v2_0;
        com.google.android.gms.common.internal.ab.b(v2_5);
        if (p15 <= null) {
            v2_0 = 0;
        } else {
            v2_0 = 1;
        }
        com.google.android.gms.common.internal.ab.b(v2_0);
        com.google.android.gms.common.internal.ab.a(p13);
        java.util.ArrayList v2_1 = 0;
        try {
            int v3_0 = this.y();
            Integer v7_1 = new String[1];
            v7_1[0] = p13;
            com.google.android.gms.measurement.internal.q v14_1 = v3_0.query("queue", new String[] {"rowid", "data", "retry_count"}), "app_id=?", v7_1, 0, 0, "rowid", String.valueOf(p14));
            try {
                if (v14_1.moveToFirst()) {
                    java.util.ArrayList v2_4 = new java.util.ArrayList();
                    int v3_1 = 0;
                    do {
                        android.util.Pair v4_2 = v14_1.getLong(0);
                        int v6_3 = this.g().a(v14_1.getBlob(1));
                        if ((!v2_4.isEmpty()) && ((v6_3.length + v3_1) > p15)) {
                            break;
                        }
                        Integer v7_8 = com.google.android.gms.internal.measurement.fi.a(v6_3, 0, v6_3.length);
                        com.google.android.gms.internal.measurement.t v8_2 = new com.google.android.gms.internal.measurement.t();
                        v8_2.a(v7_8);
                        if (!v14_1.isNull(2)) {
                            v8_2.H = Integer.valueOf(v14_1.getInt(2));
                        }
                        v3_1 += v6_3.length;
                        v2_4.add(android.util.Pair.create(v8_2, Long.valueOf(v4_2)));
                    } while((v14_1.moveToNext()) && (v3_1 <= p15));
                    if (v14_1 != null) {
                        v14_1.close();
                    }
                    return v2_4;
                } else {
                    java.util.List v15_1 = java.util.Collections.emptyList();
                    if (v14_1 != null) {
                        v14_1.close();
                    }
                    return v15_1;
                }
            } catch (Throwable v13_3) {
                if (v14_1 != null) {
                    v14_1.close();
                }
                throw v13_3;
            } catch (java.util.List v15_2) {
                v2_1 = v14_1;
                this.r().an_().a("Error querying bundles. appId", com.google.android.gms.measurement.internal.o.a(p13), v15_2);
                Throwable v13_2 = java.util.Collections.emptyList();
                if (v2_1 != null) {
                    v2_1.close();
                }
                return v13_2;
            }
        } catch (Throwable v13_3) {
            v14_1 = v2_1;
        } catch (java.util.List v15_2) {
        }
    }

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


    public final java.util.List a(String p24, String p25, String p26)
    {
        com.google.android.gms.common.internal.ab.a(p24);
        this.d();
        this.k();
        android.database.sqlite.SQLiteException v1_3 = new java.util.ArrayList();
        android.database.Cursor v2 = 0;
        try {
            int v4_1 = 3;
            android.database.Cursor v3_4 = new java.util.ArrayList(3);
            try {
                String v6_1;
                v3_4.add(p24);
                com.google.android.gms.measurement.internal.el v5_5 = new StringBuilder("app_id=?");
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v6_1 = p25;
                android.database.sqlite.SQLiteException v1_0 = v0_0;
                android.database.Cursor v3_3 = 0;
                this.r().an_().a("(2)Error querying user properties", com.google.android.gms.measurement.internal.o.a(p24), v6_1, v1_0);
                if (v3_3 != null) {
                    v3_3.close();
                }
                return 0;
            }
            if (android.text.TextUtils.isEmpty(p25)) {
                v6_1 = p25;
            } else {
                v6_1 = p25;
                v3_4.add(p25);
                v5_5.append(" and origin=?");
            }
            if (!android.text.TextUtils.isEmpty(p26)) {
                v3_4.add(String.valueOf(p26).concat("*"));
                v5_5.append(" and name glob ?");
            }
            String v7_9 = new String[v3_4.size()];
            v3_3 = this.y().query("user_attributes", new String[] {"name", "set_timestamp", "value", "origin"}), v5_5.toString(), ((String[]) v3_4.toArray(v7_9)), 0, 0, "rowid", "1001");
            try {
                if (v3_3.moveToFirst()) {
                    while (v1_3.size() < 1000) {
                        String v8_2 = v3_3.getString(0);
                        long v9_1 = v3_3.getLong(1);
                        try {
                            Object v11 = this.a(v3_3, 2);
                            String v14_1 = v3_3.getString(v4_1);
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                        }
                        if (v11 != null) {
                            String v7_12 = new com.google.android.gms.measurement.internal.el;
                            int v4_6 = v7_12;
                            v7_12(p24, v14_1, v8_2, v9_1, v11);
                            v1_3.add(v4_6);
                        } else {
                            this.r().an_().a("(2)Read invalid user property value, ignoring it", com.google.android.gms.measurement.internal.o.a(p24), v14_1, p26);
                        }
                        if (v3_3.moveToNext()) {
                            v6_1 = v14_1;
                            v4_1 = 3;
                        }
                        if (v3_3 != null) {
                            v3_3.close();
                        }
                        return v1_3;
                    }
                    this.r().an_().a("Read more than the max allowed user properties, ignoring excess", Integer.valueOf(1000));
                } else {
                    if (v3_3 != null) {
                        v3_3.close();
                    }
                    return v1_3;
                }
            } catch (android.database.sqlite.SQLiteException v0_3) {
                android.database.sqlite.SQLiteException v1_1 = v0_3;
                v2 = v3_3;
                if (v2 != null) {
                    v2.close();
                }
                throw v1_1;
            } catch (android.database.sqlite.SQLiteException v0_2) {
            }
            v1_0 = v0_2;
        } catch (android.database.sqlite.SQLiteException v0_4) {
            v1_1 = v0_4;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            String v12 = p24;
        } catch (android.database.sqlite.SQLiteException v0_3) {
        }
    }

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


    public final java.util.List a(String p26, String[] p27)
    {
        this.d();
        this.k();
        android.database.sqlite.SQLiteException v1_4 = new java.util.ArrayList();
        boolean v2_4 = 0;
        try {
            com.google.android.gms.measurement.internal.zzfh v7 = "name";
            int v9 = "active";
            String v11 = "trigger_timeout";
            long v13 = "creation_timestamp";
            com.google.android.gms.measurement.internal.zzad v15 = "triggered_timestamp";
            com.google.android.gms.measurement.internal.q v3_2 = this.y().query("conditional_properties", new String[] {"app_id", "expired_event"}), p26, p27, 0, 0, "rowid", "1001");
            try {
                if (!v3_2.moveToFirst()) {
                    if (v3_2 != null) {
                        v3_2.close();
                    }
                    return v1_4;
                }
            } catch (android.database.sqlite.SQLiteException v0_2) {
                android.database.sqlite.SQLiteException v1_2 = v0_2;
                if (v3_2 != null) {
                    v3_2.close();
                }
                throw v1_2;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                android.database.sqlite.SQLiteException v1_0 = v0_0;
                v2_4 = v3_2;
                this.r().an_().a("Error querying conditional user property value", v1_0);
                android.database.sqlite.SQLiteException v1_1 = java.util.Collections.emptyList();
                if (v2_4) {
                    v2_4.close();
                }
                return v1_1;
            }
            while (v1_4.size() < 1000) {
                boolean v2_7 = 0;
                String v5_2 = v3_2.getString(0);
                com.google.android.gms.measurement.internal.zzad v12_1 = v3_2.getString(1);
                com.google.android.gms.measurement.internal.zzfh v7_2 = v3_2.getString(2);
                int v10_2 = this.a(v3_2, 3);
                if (v3_2.getInt(4) != 0) {
                    v2_7 = 1;
                }
                long v13_1 = v3_2.getString(5);
                long v16_1 = v3_2.getLong(6);
                com.google.android.gms.measurement.internal.zzad v14_1 = ((com.google.android.gms.measurement.internal.zzad) this.g().a(v3_2.getBlob(7), com.google.android.gms.measurement.internal.zzad.CREATOR));
                com.google.android.gms.measurement.internal.zzad v18_1 = v3_2.getLong(8);
                com.google.android.gms.measurement.internal.zzad v20_1 = ((com.google.android.gms.measurement.internal.zzad) this.g().a(v3_2.getBlob(9), com.google.android.gms.measurement.internal.zzad.CREATOR));
                long v8_4 = v3_2.getLong(10);
                long v21 = v3_2.getLong(11);
                com.google.android.gms.measurement.internal.zzad v23_1 = ((com.google.android.gms.measurement.internal.zzad) this.g().a(v3_2.getBlob(12), com.google.android.gms.measurement.internal.zzad.CREATOR));
                com.google.android.gms.measurement.internal.zzfh v24 = new com.google.android.gms.measurement.internal.zzfh;
                v24(v7_2, v8_4, v10_2, v12_1);
                String v11_1 = new com.google.android.gms.measurement.internal.zzl;
                boolean v2_0 = v11_1;
                v11_1(v5_2, v12_1, v24, v18_1, v2_7, v13_1, v14_1, v16_1, v20_1, v21, v23_1);
                v1_4.add(v2_0);
                if (!v3_2.moveToNext()) {
                }
                if (v3_2 != null) {
                    v3_2.close();
                }
                return v1_4;
            }
            this.r().an_().a("Read more than the max allowed conditional properties, ignoring extra", Integer.valueOf(1000));
        } catch (android.database.sqlite.SQLiteException v0_1) {
            v1_2 = v0_1;
            v3_2 = v2_4;
        } catch (android.database.sqlite.SQLiteException v0_3) {
            v1_0 = v0_3;
        }
    }

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


    public final com.google.android.gms.measurement.internal.ep b(String p32)
    {
        com.google.android.gms.common.internal.ab.a(p32);
        this.d();
        this.k();
        try {
            Throwable v3_2 = this.y();
            String 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";
            String v7_7 = new String[1];
            int v12 = 0;
            v7_7[0] = p32;
            Throwable v3_1 = v3_2.query("apps", new String[] {"app_instance_id", "admob_app_id"}), "app_id=?", v7_7, 0, 0, 0);
            try {
                if (v3_1.moveToFirst()) {
                    try {
                        com.google.android.gms.measurement.internal.q v6_4;
                        com.google.android.gms.measurement.internal.ep v4_3 = new com.google.android.gms.measurement.internal.ep(this.a.o(), p32);
                        v4_3.a(v3_1.getString(0));
                        v4_3.b(v3_1.getString(1));
                        v4_3.d(v3_1.getString(2));
                        v4_3.f(v3_1.getLong(3));
                        v4_3.a(v3_1.getLong(4));
                        v4_3.b(v3_1.getLong(5));
                        v4_3.f(v3_1.getString(6));
                        v4_3.g(v3_1.getString(7));
                        v4_3.d(v3_1.getLong(8));
                        v4_3.e(v3_1.getLong(9));
                    } catch (android.database.sqlite.SQLiteException v0_2) {
                    } catch (android.database.sqlite.SQLiteException v0_0) {
                        com.google.android.gms.measurement.internal.ep v4_0 = v3_1;
                        Throwable v3_0 = v0_0;
                        try {
                            this.r().an_().a("Error querying app. appId", com.google.android.gms.measurement.internal.o.a(p32), v3_0);
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            Throwable v1_2 = v0_1;
                            v3_1 = v4_0;
                            if (v3_1 != null) {
                                v3_1.close();
                            }
                            throw v1_2;
                        }
                        if (v4_0 != null) {
                            v4_0.close();
                        }
                        return 0;
                    }
                    if (v3_1.isNull(10)) {
                        v6_4 = 1;
                    } else {
                        if (v3_1.getInt(10) == 0) {
                            v6_4 = 0;
                        } else {
                        }
                    }
                    com.google.android.gms.measurement.internal.q v6_19;
                    v4_3.a(v6_4);
                    v4_3.i(v3_1.getLong(11));
                    v4_3.j(v3_1.getLong(12));
                    v4_3.k(v3_1.getLong(13));
                    v4_3.l(v3_1.getLong(14));
                    v4_3.g(v3_1.getLong(15));
                    v4_3.h(v3_1.getLong(16));
                    if (!v3_1.isNull(17)) {
                        v6_19 = ((long) v3_1.getInt(17));
                    } else {
                        v6_19 = -2147483648;
                    }
                    com.google.android.gms.measurement.internal.q v6_29;
                    v4_3.c(v6_19);
                    v4_3.e(v3_1.getString(18));
                    v4_3.n(v3_1.getLong(19));
                    v4_3.m(v3_1.getLong(20));
                    v4_3.h(v3_1.getString(21));
                    if (!v3_1.isNull(22)) {
                        v6_29 = v3_1.getLong(22);
                    } else {
                        v6_29 = 0;
                    }
                    com.google.android.gms.measurement.internal.q v6_32;
                    v4_3.o(v6_29);
                    if (v3_1.isNull(23)) {
                        v6_32 = 1;
                    } else {
                        if (v3_1.getInt(23) == 0) {
                            v6_32 = 0;
                        } else {
                        }
                    }
                    v4_3.b(v6_32);
                    if ((v3_1.isNull(24)) || (v3_1.getInt(24) != 0)) {
                        v12 = 1;
                    }
                    v4_3.c(v12);
                    v4_3.c(v3_1.getString(25));
                    v4_3.a();
                    if (v3_1.moveToNext()) {
                        this.r().an_().a("Got multiple records for app, expected one. appId", com.google.android.gms.measurement.internal.o.a(p32));
                    }
                    if (v3_1 != null) {
                        v3_1.close();
                    }
                    return v4_3;
                } else {
                    if (v3_1 != null) {
                        v3_1.close();
                    }
                    return 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_2) {
            } catch (android.database.sqlite.SQLiteException v0_0) {
            }
            v1_2 = v0_2;
        } catch (android.database.sqlite.SQLiteException v0_4) {
            v1_2 = v0_4;
            v3_1 = 0;
        } catch (android.database.sqlite.SQLiteException v0_3) {
            v3_0 = v0_3;
            v4_0 = 0;
        }
    }

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


    public final com.google.android.gms.measurement.internal.el c(String p20, String p21)
    {
        com.google.android.gms.common.internal.ab.a(p20);
        com.google.android.gms.common.internal.ab.a(p21);
        this.d();
        this.k();
        try {
            int v10_1 = this.y();
            String[] v14 = new String[2];
            v14[0] = p20;
            v14[1] = p21;
            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 {
                        com.google.android.gms.measurement.internal.el v12_1 = new com.google.android.gms.measurement.internal.el;
                        v12_1(p20, v10_0.getString(2), p21, v10_0.getLong(0), this.a(v10_0, 1));
                    } catch (android.database.sqlite.SQLiteException v0_2) {
                    }
                    if (v10_0.moveToNext()) {
                        this.r().an_().a("Got multiple records for user property, expected one. appId", com.google.android.gms.measurement.internal.o.a(p20));
                    }
                    if (v10_0 != 0) {
                        v10_0.close();
                    }
                    return v12_1;
                } else {
                    if (v10_0 != 0) {
                        v10_0.close();
                    }
                    return 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_3) {
                com.google.android.gms.measurement.internal.q v1_2 = v0_3;
                if (v10_0 != 0) {
                    v10_0.close();
                }
                throw v1_2;
            } catch (android.database.sqlite.SQLiteException v0_2) {
            }
            com.google.android.gms.measurement.internal.q v1_1 = v0_2;
            this.r().an_().a("Error querying user property. appId", com.google.android.gms.measurement.internal.o.a(p20), this.o().c(p21), v1_1);
            if (v10_0 != 0) {
                v10_0.close();
            }
            return 0;
        } catch (android.database.sqlite.SQLiteException v0_1) {
            v1_2 = v0_1;
            v10_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v1_1 = v0_0;
            v10_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_3) {
        }
    }

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


    public final com.google.android.gms.measurement.internal.zzl d(String p31, String p32)
    {
        com.google.android.gms.common.internal.ab.a(p31);
        com.google.android.gms.common.internal.ab.a(p32);
        this.d();
        this.k();
        try {
            int v9_1 = this.y();
            String[] v13 = "active";
            String v15 = "trigger_timeout";
            com.google.android.gms.measurement.internal.zzfh v17 = "creation_timestamp";
            String v19 = "triggered_timestamp";
            v13 = new String[2];
            v13[0] = p31;
            v13[1] = p32;
            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;
                        String v5_4 = this.a(v9_0, 1);
                    } catch (android.database.sqlite.SQLiteException v0_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.zzad v22_1 = ((com.google.android.gms.measurement.internal.zzad) this.g().a(v9_0.getBlob(5), com.google.android.gms.measurement.internal.zzad.CREATOR));
                    long v18 = v9_0.getLong(6);
                    com.google.android.gms.measurement.internal.zzad v25_1 = ((com.google.android.gms.measurement.internal.zzad) this.g().a(v9_0.getBlob(7), com.google.android.gms.measurement.internal.zzad.CREATOR));
                    String v3_5 = v9_0.getLong(8);
                    long v26 = v9_0.getLong(9);
                    com.google.android.gms.measurement.internal.zzad v28_1 = ((com.google.android.gms.measurement.internal.zzad) this.g().a(v9_0.getBlob(10), com.google.android.gms.measurement.internal.zzad.CREATOR));
                    v17 = new com.google.android.gms.measurement.internal.zzfh;
                    v17(p32, v3_5, v5_4, v16_1);
                    com.google.android.gms.measurement.internal.zzl v1_2 = new com.google.android.gms.measurement.internal.zzl;
                    v1_2(p31, v16_1, v17, v18, v20, v21_1, v22_1, v23, v25_1, v26, v28_1);
                    if (v9_0.moveToNext()) {
                        this.r().an_().a("Got multiple records for conditional property, expected one", com.google.android.gms.measurement.internal.o.a(p31), this.o().c(p32));
                    }
                    if (v9_0 != 0) {
                        v9_0.close();
                    }
                    return v1_2;
                } else {
                    if (v9_0 != 0) {
                        v9_0.close();
                    }
                    return 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                com.google.android.gms.measurement.internal.zzl v1_4 = v0_1;
                if (v9_0 != 0) {
                    v9_0.close();
                }
                throw v1_4;
            } catch (android.database.sqlite.SQLiteException v0_0) {
            }
            com.google.android.gms.measurement.internal.zzl v1_3 = v0_0;
            this.r().an_().a("Error querying conditional property", com.google.android.gms.measurement.internal.o.a(p31), this.o().c(p32), v1_3);
            if (v9_0 != 0) {
                v9_0.close();
            }
            return 0;
        } catch (android.database.sqlite.SQLiteException v0_3) {
            v1_4 = v0_3;
            v9_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_2) {
            v1_3 = v0_2;
            v9_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_1) {
        }
    }

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


    public final byte[] d(String p11)
    {
        com.google.android.gms.common.internal.ab.a(p11);
        this.d();
        this.k();
        try {
            int v1_1 = this.y();
            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.r().an_().a("Got multiple records for app config, expected one. appId", com.google.android.gms.measurement.internal.o.a(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.r().an_().a("Error querying remote config. appId", com.google.android.gms.measurement.internal.o.a(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.ex.e() calling method android.database.sqlite.SQLiteDatabase.query()


    final java.util.Map e(String p12)
    {
        this.k();
        this.d();
        com.google.android.gms.common.internal.ab.a(p12);
        int v0_1 = this.y();
        try {
            com.google.android.gms.measurement.internal.q 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.fi.a(v3_1, 0, v3_1.length);
                        com.google.android.gms.measurement.internal.q v4_3 = new com.google.android.gms.internal.measurement.u();
                        v4_3.a(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.r().an_().a("Database error querying filter results. appId", com.google.android.gms.measurement.internal.o.a(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.ex.f() calling method android.database.sqlite.SQLiteDatabase.query()


    final java.util.Map f(String p13, String p14)
    {
        this.k();
        this.d();
        com.google.android.gms.common.internal.ab.a(p13);
        com.google.android.gms.common.internal.ab.a(p14);
        java.util.Map v0_2 = new android.support.v4.util.ArrayMap();
        Integer v1_8 = this.y();
        try {
            String[] v5_1 = new String[2];
            v5_1[0] = p13;
            v5_1[1] = p14;
            int v14_1 = v1_8.query("event_filters", new String[] {"audience_id", "data"}), "app_id=? AND event_name=?", v5_1, 0, 0, 0);
            try {
                if (!v14_1.moveToFirst()) {
                    java.util.Map v0_3 = java.util.Collections.emptyMap();
                    if (v14_1 != 0) {
                        v14_1.close();
                    }
                    return v0_3;
                }
            } catch (java.util.Map v0_0) {
                this.r().an_().a("Database error querying filters. appId", com.google.android.gms.measurement.internal.o.a(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.fi.a(v1_1, 0, v1_1.length);
                com.google.android.gms.measurement.internal.q v2_2 = new com.google.android.gms.internal.measurement.g();
                v2_2.a(v1_2);
                Integer v1_4 = v14_1.getInt(0);
                java.util.ArrayList v3_5 = ((java.util.List) v0_2.get(Integer.valueOf(v1_4)));
                if (v3_5 == null) {
                    v3_5 = new java.util.ArrayList();
                    v0_2.put(Integer.valueOf(v1_4), v3_5);
                }
                v3_5.add(v2_2);
            } while(v14_1.moveToNext());
            if (v14_1 != 0) {
                v14_1.close();
            }
            return v0_2;
        } catch (Throwable v13_1) {
            v14_1 = 0;
            if (v14_1 != 0) {
                v14_1.close();
            }
            throw v13_1;
        } catch (java.util.Map v0_0) {
            v14_1 = 0;
        } catch (Throwable v13_1) {
        }
    }

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


    final java.util.Map g(String p13, String p14)
    {
        this.k();
        this.d();
        com.google.android.gms.common.internal.ab.a(p13);
        com.google.android.gms.common.internal.ab.a(p14);
        java.util.Map v0_2 = new android.support.v4.util.ArrayMap();
        Integer v1_8 = this.y();
        try {
            String[] v5_1 = new String[2];
            v5_1[0] = p13;
            v5_1[1] = p14;
            int v14_1 = v1_8.query("property_filters", new String[] {"audience_id", "data"}), "app_id=? AND property_name=?", v5_1, 0, 0, 0);
            try {
                if (!v14_1.moveToFirst()) {
                    java.util.Map v0_3 = java.util.Collections.emptyMap();
                    if (v14_1 != 0) {
                        v14_1.close();
                    }
                    return v0_3;
                }
            } catch (java.util.Map v0_0) {
                this.r().an_().a("Database error querying filters. appId", com.google.android.gms.measurement.internal.o.a(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.fi.a(v1_1, 0, v1_1.length);
                com.google.android.gms.measurement.internal.q v2_2 = new com.google.android.gms.internal.measurement.j();
                v2_2.a(v1_2);
                Integer v1_4 = v14_1.getInt(0);
                java.util.ArrayList v3_5 = ((java.util.List) v0_2.get(Integer.valueOf(v1_4)));
                if (v3_5 == null) {
                    v3_5 = new java.util.ArrayList();
                    v0_2.put(Integer.valueOf(v1_4), v3_5);
                }
                v3_5.add(v2_2);
            } while(v14_1.moveToNext());
            if (v14_1 != 0) {
                v14_1.close();
            }
            return v0_2;
        } catch (Throwable v13_1) {
            v14_1 = 0;
            if (v14_1 != 0) {
                v14_1.close();
            }
            throw v13_1;
        } catch (java.util.Map v0_0) {
            v14_1 = 0;
        } catch (Throwable v13_1) {
        }
    }

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

Couldn't retrieve source code

Method android.arch.persistence.a.a.a.a() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public android.arch.persistence.a.h a(String p3)
    {
        return new android.arch.persistence.a.a.e(this.c.compileStatement(p3));
    }

Method org.greenrobot.greendao.database.c.b() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public org.greenrobot.greendao.database.DatabaseStatement b(String p3)
    {
        return new org.greenrobot.greendao.database.d(this.a.compileStatement(p3));
    }

Method org.greenrobot.greendao.c.f.E() calling method android.database.sqlite.SQLiteDatabase.create()


    protected org.greenrobot.greendao.database.Database E()
    {
        android.database.sqlite.SQLiteDatabase v0_1;
        if (!this.i) {
            this.getContext().deleteDatabase("greendao-unittest-db.temp");
            v0_1 = this.getContext().openOrCreateDatabase("greendao-unittest-db.temp", 0, 0);
        } else {
            v0_1 = android.database.sqlite.SQLiteDatabase.create(0);
        }
        return new org.greenrobot.greendao.database.c(v0_1);
    }

Method com.fitbit.data.repo.greendao.migration.Rule_163_MoveSleepGoals.executeRuleForDao() calling method android.database.sqlite.SQLiteDatabase.delete()


    protected com.fitbit.data.repo.greendao.migration.MigrationResult executeRuleForDao(org.greenrobot.greendao.database.Database p10, com.fitbit.data.repo.greendao.migration.MigrationDaoResult p11)
    {
        Class v0_1 = new String[] {"SLEEP_GOAL"});
        java.util.List v11_5 = p10.a("SELECT T.\'TARGET\' FROM GOAL T WHERE T.\'GOAL_TYPE\'=? ORDER BY T.\'START_DATE\' DESC LIMIT 1", v0_1);
        try {
            if (v11_5.getCount() <= 0) {
                Object[] v5 = new Object[0];
                com.fitbit.r.d.e(com.fitbit.data.repo.greendao.migration.Rule_163_MoveSleepGoals.TAG, "failed to migrate sleep goals - no row found", v5);
            } else {
                v11_5.moveToFirst();
                String v4_1 = v11_5.getDouble(0);
                Object[] v7 = new Object[1];
                v7[0] = Double.valueOf(v4_1);
                com.fitbit.r.d.a(com.fitbit.data.repo.greendao.migration.Rule_163_MoveSleepGoals.TAG, "migrating sleep goal %s", v7);
                com.fitbit.serverdata.b.a(((int) v4_1));
            }
        } catch (com.fitbit.data.repo.greendao.migration.MigrationResult v10_1) {
            v11_5.close();
            throw v10_1;
        }
        v11_5.close();
        com.fitbit.data.repo.greendao.migration.MigrationDaoResult$DaoStatus v1_4 = new Object[1];
        v1_4[0] = Integer.valueOf(((android.database.sqlite.SQLiteDatabase) p10.g()).delete("GOAL", "GOAL.\'GOAL_TYPE\'=?", v0_1));
        com.fitbit.r.d.b(com.fitbit.data.repo.greendao.migration.Rule_163_MoveSleepGoals.TAG, "deleted %s old sleep goal rows", v1_4);
        return new com.fitbit.data.repo.greendao.migration.MigrationResult(java.util.Collections.singletonList(new com.fitbit.data.repo.greendao.migration.MigrationDaoResult(com.fitbit.data.repo.greendao.GoalDao, com.fitbit.data.repo.greendao.migration.MigrationDaoResult$DaoStatus.UPDATED)), 0);
    }

Method org.jetbrains.anko.db.i.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public static final varargs int a(android.database.sqlite.SQLiteDatabase p1, String p2, String p3, kotlin.Pair[] p4)
    {
        kotlin.jvm.internal.ae.f(p1, "$receiver");
        kotlin.jvm.internal.ae.f(p2, "tableName");
        kotlin.jvm.internal.ae.f(p3, "whereClause");
        kotlin.jvm.internal.ae.f(p4, "args");
        return p1.delete(p2, ark>org.jetbrains.anko.db.iark>.a(p3, ((kotlin.Pair[]) java.util.Arrays.copyOf(p4, p4.length))), 0);
    }

Method com.mixpanel.android.mpmetrics.MPDbAdapter.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a(long p4, ark>com.mixpanel.android.mpmetrics.MPDbAdapterark>$Table p6)
    {
        String v6_1 = p6.a();
        try {
            StringBuilder v0_3 = this.m.getWritableDatabase();
            String v1_2 = new StringBuilder();
            v1_2.append("created_at <= ");
            v1_2.append(p4);
            v0_3.delete(v6_1, v1_2.toString(), 0);
        } catch (ark>com.mixpanel.android.mpmetrics.MPDbAdapterark>$a v4_4) {
            this.m.close();
            throw v4_4;
        } catch (ark>com.mixpanel.android.mpmetrics.MPDbAdapterark>$a v4_2) {
            StringBuilder v0_1 = new StringBuilder();
            v0_1.append("Could not clean timed-out Mixpanel records from ");
            v0_1.append(v6_1);
            v0_1.append(". Re-initializing database.");
            android.util.Log.e("MixpanelAPI.Database", v0_1.toString(), v4_2);
            this.m.a();
        }
        this.m.close();
        return;
    }

Method com.mixpanel.android.mpmetrics.MPDbAdapter.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a(String p4, ark>com.mixpanel.android.mpmetrics.MPDbAdapterark>$Table p5)
    {
        String v5_1 = p5.a();
        try {
            String v0_2 = this.m.getWritableDatabase();
            StringBuilder v1_4 = new StringBuilder();
            v1_4.append("_id <= ");
            v1_4.append(p4);
            v0_2.delete(v5_1, v1_4.toString(), 0);
        } catch (ark>com.mixpanel.android.mpmetrics.MPDbAdapterark>$a v4_4) {
            this.m.close();
            throw v4_4;
        } catch (ark>com.mixpanel.android.mpmetrics.MPDbAdapterark>$a v4_2) {
            StringBuilder v1_2 = new StringBuilder();
            v1_2.append("Could not clean sent Mixpanel records from ");
            v1_2.append(v5_1);
            v1_2.append(". Re-initializing database.");
            android.util.Log.e("MixpanelAPI.Database", v1_2.toString(), v4_2);
            this.m.a();
        }
        this.m.close();
        return;
    }

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


    private final boolean a(String p55, long p56)
    {
        this.d().f();
        try {
            com.google.android.gms.measurement.internal.fg v3_9 = 0;
            Object v2_24 = new ark>com.google.android.gms.measurement.internal.edark>$a(this, 0);
            java.util.List v4_13 = this.d();
            String v5_118 = this.w;
            com.google.android.gms.common.internal.ab.a(v2_24);
            v4_13.d();
            v4_13.k();
            try {
                int v22;
                long v7_3;
                Long v15_6 = v4_13.y();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        long v13_19;
                        com.google.android.gms.measurement.internal.fg v3_10 = v5_118 cmp -1;
                        if (v3_10 == null) {
                            v13_19 = new String[] {0});
                        } else {
                            long v7_33 = new String[2];
                            v7_33[0] = 0;
                            v7_33[1] = String.valueOf(v5_118);
                            v13_19 = v7_33;
                        }
                        com.google.android.gms.measurement.internal.fg v3_15;
                        if (v3_10 == null) {
                            v3_15 = "";
                        } else {
                            v3_15 = " and rowid <= ?";
                        }
                        long v14_11 = new StringBuilder((String.valueOf(v3_15).length() + 84));
                        v14_11.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_11.append(v3_15);
                        v14_11.append(" order by rowid limit 1;");
                        v3_9 = v15_6.rawQuery(v14_11.toString(), v13_19);
                        if (v3_9.moveToFirst()) {
                            long v13_23 = v3_9.getString(0);
                            v3_9.close();
                            v22 = v3_9;
                            v7_3 = v13_23;
                            v3_9 = 0;
                            try {
                                long v13_6 = new String[2];
                                v13_6[0] = v3_9;
                                v13_6[1] = v7_3;
                                com.google.android.gms.internal.measurement.q v24 = v15_6;
                                Long v15_5 = v15_6.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_6, 0, 0, "rowid", "2");
                                try {
                                    if (v15_5.moveToFirst()) {
                                        long v13_10 = v15_5.getBlob(0);
                                        long v13_11 = com.google.android.gms.internal.measurement.fi.a(v13_10, 0, v13_10.length);
                                        long v14_8 = new com.google.android.gms.internal.measurement.t();
                                        try {
                                            v14_8.a(v13_11);
                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                            long v6_0 = v15_5;
                                            v4_13.r().an_().a("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.o.a(v3_9), v0_3);
                                            if (v6_0 == 0) {
                                                com.google.android.gms.measurement.internal.fg v3_14;
                                                if (v2_24.c == null) {
                                                    v3_14 = 1;
                                                } else {
                                                    if (!v2_24.c.isEmpty()) {
                                                        v3_14 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_14 != null) {
                                                    this.d().w();
                                                    this.d().x();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.measurement.internal.fg v3_8 = v2_24.a;
                                                    java.util.List v4_4 = new com.google.android.gms.internal.measurement.q[v2_24.c.size()];
                                                    v3_8.b = v4_4;
                                                    java.util.List v4_7 = this.i.b().e(v3_8.o);
                                                    long v7_28 = 0;
                                                    boolean v10_2 = 0;
                                                    long v12_17 = 0;
                                                    long v13_8 = 0;
                                                    while (v7_28 < v2_24.c.size()) {
                                                        int v40_0;
                                                        Long v15_3 = ((com.google.android.gms.internal.measurement.q) v2_24.c.get(v7_28));
                                                        if (!this.p().b(v2_24.a.o, v15_3.b)) {
                                                            String v5_6 = this.p().c(v2_24.a.o, v15_3.b);
                                                            if (v5_6 != null) {
                                                                if (v15_3.a == null) {
                                                                    int v9_6 = new com.google.android.gms.internal.measurement.r[0];
                                                                    v15_3.a = v9_6;
                                                                }
                                                                int v8_21 = v15_3.a;
                                                                int v9_7 = v8_21.length;
                                                                int v11_3 = 0;
                                                                long v16_1 = 0;
                                                                int v17_0 = 0;
                                                                while (v11_3 < v9_7) {
                                                                    Long v27_1;
                                                                    long v6_79 = v8_21[v11_3];
                                                                    com.google.android.gms.measurement.internal.ex v25_1 = v8_21;
                                                                    long v26_1 = v9_7;
                                                                    if (!"_c".equals(v6_79.a)) {
                                                                        v27_1 = v12_17;
                                                                        if ("_r".equals(v6_79.a)) {
                                                                            v6_79.c = Long.valueOf(1);
                                                                            v17_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v27_1 = v12_17;
                                                                        v6_79.c = Long.valueOf(1);
                                                                        v16_1 = 1;
                                                                    }
                                                                    v11_3++;
                                                                    v8_21 = v25_1;
                                                                    v9_7 = v26_1;
                                                                    v12_17 = v27_1;
                                                                }
                                                                Long v27_0 = v12_17;
                                                                if ((v16_1 == 0) && (v5_6 != null)) {
                                                                    this.i.r().x().a("Marking event as conversion", this.i.k().a(v15_3.b));
                                                                    long v6_11 = ((com.google.android.gms.internal.measurement.r[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                                    int v8_27 = new com.google.android.gms.internal.measurement.r();
                                                                    v8_27.a = "_c";
                                                                    v8_27.c = Long.valueOf(1);
                                                                    v6_11[(v6_11.length - 1)] = v8_27;
                                                                    v15_3.a = v6_11;
                                                                }
                                                                if (v17_0 == 0) {
                                                                    this.i.r().x().a("Marking event as real-time", this.i.k().a(v15_3.b));
                                                                    long v6_17 = ((com.google.android.gms.internal.measurement.r[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                                    int v8_33 = new com.google.android.gms.internal.measurement.r();
                                                                    v8_33.a = "_r";
                                                                    v8_33.c = Long.valueOf(1);
                                                                    v6_17[(v6_17.length - 1)] = v8_33;
                                                                    v15_3.a = v6_17;
                                                                }
                                                                long v12_12;
                                                                if (this.d().a(this.w(), v2_24.a.o, 0, 0, 0, 0, 1).e <= ((long) this.i.b().a(v2_24.a.o))) {
                                                                    v12_12 = 1;
                                                                } else {
                                                                    long v6_25 = 0;
                                                                    while (v6_25 < v15_3.a.length) {
                                                                        if (!"_r".equals(v15_3.a[v6_25].a)) {
                                                                            v6_25++;
                                                                        } else {
                                                                            int v8_42 = new com.google.android.gms.internal.measurement.r[(v15_3.a.length - 1)];
                                                                            if (v6_25 > 0) {
                                                                                System.arraycopy(v15_3.a, 0, v8_42, 0, v6_25);
                                                                            }
                                                                            if (v6_25 < v8_42.length) {
                                                                                System.arraycopy(v15_3.a, (v6_25 + 1), v8_42, v6_25, (v8_42.length - v6_25));
                                                                            }
                                                                            v15_3.a = v8_42;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_12 = v27_0;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.em.a(v15_3.b)) || (v5_6 == null)) {
                                                                    v40_0 = v7_28;
                                                                    long v37_0 = v12_12;
                                                                } else {
                                                                    v37_0 = v12_12;
                                                                    if (this.d().a(this.w(), v2_24.a.o, 0, 0, 1, 0, 0).c <= ((long) this.i.b().b(v2_24.a.o, com.google.android.gms.measurement.internal.e.v))) {
                                                                        v40_0 = v7_28;
                                                                    } else {
                                                                        this.i.r().i().a("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                        long v6_38 = v15_3.a;
                                                                        int v8_46 = v6_38.length;
                                                                        int v9_34 = 0;
                                                                        int v11_18 = 0;
                                                                        long v12_16 = 0;
                                                                        while (v9_34 < v8_46) {
                                                                            int v8_56 = v6_38[v9_34];
                                                                            if (!"_c".equals(v8_56.a)) {
                                                                                if ("_err".equals(v8_56.a)) {
                                                                                    v11_18 = 1;
                                                                                }
                                                                            } else {
                                                                                v12_16 = v8_56;
                                                                            }
                                                                            v9_34++;
                                                                        }
                                                                        v40_0 = v7_28;
                                                                        if ((v11_18 == 0) || (v12_16 == 0)) {
                                                                            if (v12_16 == 0) {
                                                                                this.i.r().an_().a("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                            } else {
                                                                                v12_16.a = "_err";
                                                                                v12_16.c = Long.valueOf(10);
                                                                            }
                                                                        } else {
                                                                            long v6_45 = v15_3.a;
                                                                            int v8_50 = new com.google.android.gms.internal.measurement.r[1];
                                                                            v8_50[0] = v12_16;
                                                                            v15_3.a = ((com.google.android.gms.internal.measurement.r[]) com.google.android.gms.common.util.b.a(v6_45, v8_50));
                                                                        }
                                                                    }
                                                                }
                                                                v12_17 = v37_0;
                                                            } else {
                                                                int v8_15;
                                                                this.f();
                                                                int v8_13 = v15_3.b;
                                                                com.google.android.gms.common.internal.ab.a(v8_13);
                                                                int v9_2 = v8_13.hashCode();
                                                                if (v9_2 == 94660) {
                                                                    if (!v8_13.equals("_in")) {
                                                                        v8_15 = -1;
                                                                    } else {
                                                                        v8_15 = 0;
                                                                    }
                                                                } else {
                                                                    if (v9_2 == 95025) {
                                                                        if (!v8_13.equals("_ug")) {
                                                                        } else {
                                                                            v8_15 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v9_2 == 95027) {
                                                                            if (!v8_13.equals("_ui")) {
                                                                            } else {
                                                                                v8_15 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v8_18;
                                                                switch (v8_15) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v8_18 = 1;
                                                                    default:
                                                                        v8_18 = 0;
                                                                }
                                                                if (v8_18 == 0) {
                                                                    v40_0 = v7_28;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.i.b().m(v2_24.a.o)) || (v5_6 == null)) {
                                                            } else {
                                                                String v5_7 = v15_3.a;
                                                                long v6_51 = 0;
                                                                long v7_17 = -1;
                                                                int v8_51 = -1;
                                                                while (v6_51 < v5_7.length) {
                                                                    if (!"value".equals(v5_7[v6_51].a)) {
                                                                        if ("currency".equals(v5_7[v6_51].a)) {
                                                                            v8_51 = v6_51;
                                                                        }
                                                                    } else {
                                                                        v7_17 = v6_51;
                                                                    }
                                                                    v6_51++;
                                                                }
                                                                if (v7_17 == -1) {
                                                                } else {
                                                                    if ((v5_7[v7_17].c != null) || (v5_7[v7_17].d != null)) {
                                                                        long v6_60;
                                                                        if (v8_51 != -1) {
                                                                            long v6_59 = v5_7[v8_51].b;
                                                                            if (v6_59 == 0) {
                                                                            } else {
                                                                                if (v6_59.length() == 3) {
                                                                                    int v8_53 = 0;
                                                                                    while (v8_53 < v6_59.length()) {
                                                                                        int v11_20 = v6_59.codePointAt(v8_53);
                                                                                        if (Character.isLetter(v11_20)) {
                                                                                            v8_53 += Character.charCount(v11_20);
                                                                                        } else {
                                                                                        }
                                                                                    }
                                                                                    v6_60 = 0;
                                                                                    if (v6_60 != 0) {
                                                                                        this.i.r().k().a("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                        v5_7 = ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(v5_7, v7_17), "_c"), 19, "currency");
                                                                                    }
                                                                                    v15_3.a = v5_7;
                                                                                    if ((v4_7 != null) && ("_e".equals(v15_3.b))) {
                                                                                        if (v15_3.a != null) {
                                                                                            if (v15_3.a.length != 0) {
                                                                                                this.f();
                                                                                                String v5_19 = ((Long) com.google.android.gms.measurement.internal.ej.b(v15_3, "_et"));
                                                                                                if (v5_19 != null) {
                                                                                                    v13_8 += v5_19.longValue();
                                                                                                    long v6_74 = (v10_2 + 1);
                                                                                                    v3_8.b[v10_2] = v15_3;
                                                                                                    v10_2 = v6_74;
                                                                                                    v7_28 = (v40_0 + 1);
                                                                                                    int v11 = 0;
                                                                                                } else {
                                                                                                    this.i.r().i().a("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                                                }
                                                                                            } else {
                                                                                            }
                                                                                        }
                                                                                        this.i.r().i().a("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                                    }
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v6_60 = 1;
                                                                        } else {
                                                                            v6_60 = 1;
                                                                        }
                                                                    } else {
                                                                        this.i.r().k().a("Value must be specified with a numeric type.");
                                                                        v5_7 = ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(v5_7, v7_17), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            String v5_35;
                                                            this.i.r().i().a("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o), this.i.k().a(v15_3.b));
                                                            if (this.p().f(v2_24.a.o)) {
                                                                v5_35 = 1;
                                                            } else {
                                                                if (!this.p().g(v2_24.a.o)) {
                                                                    v5_35 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_35 == null) && (!"_err".equals(v15_3.b))) {
                                                                this.i.j().a(v2_24.a.o, 11, "_ev", v15_3.b, 0);
                                                            }
                                                            v40_0 = v7_28;
                                                        }
                                                    }
                                                    Long v27_2 = v12_17;
                                                    if (v10_2 < v2_24.c.size()) {
                                                        v3_8.b = ((com.google.android.gms.internal.measurement.q[]) java.util.Arrays.copyOf(v3_8.b, v10_2));
                                                    }
                                                    java.util.List v4_8;
                                                    long v6_1;
                                                    if (v4_7 == null) {
                                                        v4_8 = this;
                                                        v6_1 = v2_24;
                                                    } else {
                                                        com.google.android.gms.measurement.internal.q v1_7;
                                                        int v42_0;
                                                        java.util.List v4_10 = this.d().c(v3_8.o, "_lte");
                                                        if (v4_10 == null) {
                                                            v42_0 = v2_24;
                                                            v1_7 = new com.google.android.gms.measurement.internal.el;
                                                            v4_8 = this;
                                                            v1_7(v3_8.o, "auto", "_lte", this.i.m().a(), Long.valueOf(v13_8));
                                                        } else {
                                                            if (v4_10.e != null) {
                                                                String v5_59 = new com.google.android.gms.measurement.internal.el;
                                                                v42_0 = v2_24;
                                                                try {
                                                                    v5_59(v3_8.o, "auto", "_lte", this.i.m().a(), Long.valueOf((((Long) v4_10.e).longValue() + v13_8)));
                                                                    v1_7 = v5_59;
                                                                    v4_8 = this;
                                                                } catch (android.database.sqlite.SQLiteException v0_5) {
                                                                    com.google.android.gms.measurement.internal.q v1_1 = v0_5;
                                                                    this.d().x();
                                                                    throw v1_1;
                                                                }
                                                            } else {
                                                            }
                                                        }
                                                        Object v2_5 = new com.google.android.gms.internal.measurement.w();
                                                        v2_5.b = "_lte";
                                                        v2_5.a = Long.valueOf(v4_8.i.m().a());
                                                        v2_5.d = ((Long) v1_7.e);
                                                        String v5_69 = 0;
                                                        while (v5_69 < v3_8.c.length) {
                                                            if (!"_lte".equals(v3_8.c[v5_69].b)) {
                                                                v5_69++;
                                                            } else {
                                                                v3_8.c[v5_69] = v2_5;
                                                                String v5_70 = 1;
                                                            }
                                                            if (v5_70 != null) {
                                                                v6_1 = v42_0;
                                                            } else {
                                                                v3_8.c = ((com.google.android.gms.internal.measurement.w[]) java.util.Arrays.copyOf(v3_8.c, (v3_8.c.length + 1)));
                                                                v6_1 = v42_0;
                                                                v3_8.c[(v6_1.a.c.length - 1)] = v2_5;
                                                            }
                                                            if (v13_8 > 0) {
                                                                this.d().a(v1_7);
                                                                v4_8.i.r().w().a("Updated lifetime engagement user property with value. Value", v1_7.e);
                                                            }
                                                        }
                                                        v5_70 = 0;
                                                    }
                                                    int v51_1;
                                                    v3_8.A = v4_8.a(v3_8.o, v3_8.c, v3_8.b);
                                                    if (!v4_8.i.b().d(v6_1.a.o)) {
                                                        v51_1 = v6_1;
                                                    } else {
                                                        com.google.android.gms.measurement.internal.q v1_15 = new java.util.HashMap();
                                                        Object v2_16 = new com.google.android.gms.internal.measurement.q[v3_8.b.length];
                                                        String v5_2 = v4_8.i.j().h();
                                                        long v7_11 = v3_8.b;
                                                        int v8_10 = v7_11.length;
                                                        int v9_1 = 0;
                                                        boolean v10_0 = 0;
                                                        while (v9_1 < v8_10) {
                                                            int v43;
                                                            String v45;
                                                            int v50;
                                                            com.google.android.gms.measurement.internal.an v46;
                                                            int v51_0;
                                                            int v44;
                                                            int v11_29 = v7_11[v9_1];
                                                            if (!v11_29.b.equals("_ep")) {
                                                                long v47;
                                                                com.google.android.gms.measurement.internal.fg v3_25;
                                                                v43 = v7_11;
                                                                long v12_33 = this.p().e(v6_1.a.o);
                                                                v4_8.i.j();
                                                                long v14_14 = com.google.android.gms.measurement.internal.em.a(v11_29.c.longValue(), v12_33);
                                                                v46 = v3_8;
                                                                v44 = v8_10;
                                                                v45 = v9_1;
                                                                com.google.android.gms.measurement.internal.fg v3_23 = Long.valueOf(1);
                                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                                    v47 = v12_33;
                                                                    v3_25 = 0;
                                                                } else {
                                                                    if (v3_23 != null) {
                                                                        int v8_75 = v11_29.a;
                                                                        int v9_47 = v8_75.length;
                                                                        v47 = v12_33;
                                                                        long v12_34 = 0;
                                                                        while (v12_34 < v9_47) {
                                                                            long v13_27 = v8_75[v12_34];
                                                                            if (!"_dbg".equals(v13_27.a)) {
                                                                                v12_34++;
                                                                            } else {
                                                                                if (((!(v3_23 instanceof Long)) || (!v3_23.equals(v13_27.c))) && (((!(v3_23 instanceof String)) || (!v3_23.equals(v13_27.b))) && ((!(v3_23 instanceof Double)) || (!v3_23.equals(v13_27.d))))) {
                                                                                    break;
                                                                                }
                                                                                v3_25 = 1;
                                                                            }
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                long v12_35;
                                                                if (v3_25 != null) {
                                                                    v12_35 = 1;
                                                                } else {
                                                                    v12_35 = this.p().d(v6_1.a.o, v11_29.b);
                                                                }
                                                                if (v12_35 > 0) {
                                                                    com.google.android.gms.measurement.internal.fg v3_1 = ((com.google.android.gms.measurement.internal.fg) v1_15.get(v11_29.b));
                                                                    if (v3_1 == null) {
                                                                        v3_1 = this.d().a(v6_1.a.o, v11_29.b);
                                                                        if (v3_1 == null) {
                                                                            v4_8.i.r().i().a("Event being bundled has no eventAggregate. appId, eventName", v6_1.a.o, v11_29.b);
                                                                            v3_1 = new com.google.android.gms.measurement.internal.fg;
                                                                            v3_1(v6_1.a.o, v11_29.b, 1, 1, v11_29.c.longValue(), 0, 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    int v8_83;
                                                                    this.f();
                                                                    long v7_94 = ((Long) com.google.android.gms.measurement.internal.ej.b(v11_29, "_eid"));
                                                                    if (v7_94 == 0) {
                                                                        v8_83 = 0;
                                                                    } else {
                                                                        v8_83 = 1;
                                                                    }
                                                                    int v8_84 = Boolean.valueOf(v8_83);
                                                                    if (v12_35 != 1) {
                                                                        if (v5_2.nextInt(v12_35) != 0) {
                                                                            long v52;
                                                                            Boolean v53;
                                                                            String v5_129;
                                                                            v50 = v5_2;
                                                                            if (!v4_8.i.b().o(v6_1.a.o)) {
                                                                                v51_0 = v6_1;
                                                                                v52 = v7_94;
                                                                                v53 = v8_84;
                                                                                if (Math.abs((v11_29.c.longValue() - v3_1.f)) < 86400000) {
                                                                                    v5_129 = 0;
                                                                                } else {
                                                                                    v5_129 = 1;
                                                                                }
                                                                            } else {
                                                                                long v16_11;
                                                                                if (v3_1.g == null) {
                                                                                    v4_8.i.j();
                                                                                    v51_0 = v6_1;
                                                                                    v52 = v7_94;
                                                                                    v53 = v8_84;
                                                                                    v16_11 = com.google.android.gms.measurement.internal.em.a(v11_29.d.longValue(), v47);
                                                                                } else {
                                                                                    v16_11 = v3_1.g.longValue();
                                                                                    v51_0 = v6_1;
                                                                                    v52 = v7_94;
                                                                                    v53 = v8_84;
                                                                                }
                                                                                if (v16_11 == v14_14) {
                                                                                }
                                                                            }
                                                                            if (v5_129 == null) {
                                                                                if (!v53.booleanValue()) {
                                                                                    v9_1 = (v45 + 1);
                                                                                    v7_11 = v43;
                                                                                    v8_10 = v44;
                                                                                    v3_8 = v46;
                                                                                    v5_2 = v50;
                                                                                    v6_1 = v51_0;
                                                                                } else {
                                                                                    v1_15.put(v11_29.b, v3_1.a(v52, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.f();
                                                                                v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_efs", Long.valueOf(1));
                                                                                this.f();
                                                                                long v12_36 = ((long) v12_35);
                                                                                v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_sr", Long.valueOf(v12_36));
                                                                                String v5_136 = (v10_0 + 1);
                                                                                v2_16[v10_0] = v11_29;
                                                                                if (v53.booleanValue()) {
                                                                                    v3_1 = v3_1.a(0, Long.valueOf(v12_36), Boolean.valueOf(1));
                                                                                }
                                                                                v1_15.put(v11_29.b, v3_1.a(v11_29.c.longValue(), v14_14));
                                                                                v10_0 = v5_136;
                                                                            }
                                                                        } else {
                                                                            this.f();
                                                                            long v12_37 = ((long) v12_35);
                                                                            v50 = v5_2;
                                                                            v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_sr", Long.valueOf(v12_37));
                                                                            String v5_1 = (v10_0 + 1);
                                                                            v2_16[v10_0] = v11_29;
                                                                            if (v8_84.booleanValue()) {
                                                                                v3_1 = v3_1.a(0, Long.valueOf(v12_37), 0);
                                                                            }
                                                                            v1_15.put(v11_29.b, v3_1.a(v11_29.c.longValue(), v14_14));
                                                                            v10_0 = v5_1;
                                                                        }
                                                                    } else {
                                                                        long v7_4 = (v10_0 + 1);
                                                                        v2_16[v10_0] = v11_29;
                                                                        if ((v8_84.booleanValue()) && ((v3_1.h != null) || ((v3_1.i != null) || (v3_1.j != null)))) {
                                                                            v1_15.put(v11_29.b, v3_1.a(0, 0, 0));
                                                                        }
                                                                        v50 = v5_2;
                                                                        v51_0 = v6_1;
                                                                        v10_0 = v7_4;
                                                                    }
                                                                } else {
                                                                    v4_8.i.r().i().a("Sample rate must be positive. event, rate", v11_29.b, Integer.valueOf(v12_35));
                                                                    com.google.android.gms.measurement.internal.fg v3_7 = (v10_0 + 1);
                                                                    v2_16[v10_0] = v11_29;
                                                                    v10_0 = v3_7;
                                                                    v50 = v5_2;
                                                                }
                                                                v51_0 = v6_1;
                                                            } else {
                                                                this.f();
                                                                long v12_2 = ((String) com.google.android.gms.measurement.internal.ej.b(v11_29, "_en"));
                                                                long v13_1 = ((com.google.android.gms.measurement.internal.fg) v1_15.get(v12_2));
                                                                if (v13_1 == 0) {
                                                                    v13_1 = this.d().a(v6_1.a.o, v12_2);
                                                                    v1_15.put(v12_2, v13_1);
                                                                }
                                                                if (v13_1.h != null) {
                                                                    v43 = v7_11;
                                                                    v46 = v3_8;
                                                                    v50 = v5_2;
                                                                    v51_0 = v6_1;
                                                                } else {
                                                                    if (v13_1.i.longValue() > 1) {
                                                                        this.f();
                                                                        v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_sr", v13_1.i);
                                                                    }
                                                                    if ((v13_1.j == null) || (!v13_1.j.booleanValue())) {
                                                                        v43 = v7_11;
                                                                    } else {
                                                                        this.f();
                                                                        v43 = v7_11;
                                                                        v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_efs", Long.valueOf(1));
                                                                    }
                                                                    long v7_10 = (v10_0 + 1);
                                                                    v2_16[v10_0] = v11_29;
                                                                    v46 = v3_8;
                                                                    v50 = v5_2;
                                                                    v51_0 = v6_1;
                                                                    v10_0 = v7_10;
                                                                }
                                                                v44 = v8_10;
                                                                v45 = v9_1;
                                                            }
                                                        }
                                                        v51_1 = v6_1;
                                                        if (v10_0 < v3_8.b.length) {
                                                            v3_8.b = ((com.google.android.gms.internal.measurement.q[]) java.util.Arrays.copyOf(v2_16, v10_0));
                                                        }
                                                        com.google.android.gms.measurement.internal.q v1_17 = v1_15.entrySet().iterator();
                                                        while (v1_17.hasNext()) {
                                                            this.d().a(((com.google.android.gms.measurement.internal.fg) ((java.util.Map$Entry) v1_17.next()).getValue()));
                                                        }
                                                    }
                                                    v3_8.e = Long.valueOf(nan);
                                                    v3_8.f = Long.valueOf(-0.0);
                                                    com.google.android.gms.measurement.internal.q v1_22 = 0;
                                                    while (v1_22 < v3_8.b.length) {
                                                        Object v2_27 = v3_8.b[v1_22];
                                                        if (v2_27.c.longValue() < v3_8.e.longValue()) {
                                                            v3_8.e = v2_27.c;
                                                        }
                                                        if (v2_27.c.longValue() > v3_8.f.longValue()) {
                                                            v3_8.f = v2_27.c;
                                                        }
                                                        v1_22++;
                                                    }
                                                    com.google.android.gms.measurement.internal.q v1_23 = v51_1;
                                                    Object v2_23 = v1_23.a.o;
                                                    String v5_82 = this.d().b(v2_23);
                                                    if (v5_82 != null) {
                                                        if (v3_8.b.length > 0) {
                                                            int v8_69;
                                                            long v6_114 = v5_82.i();
                                                            if (v6_114 == 0) {
                                                                v8_69 = 0;
                                                            } else {
                                                                v8_69 = Long.valueOf(v6_114);
                                                            }
                                                            v3_8.h = v8_69;
                                                            int v8_70 = v5_82.h();
                                                            if (v8_70 != 0) {
                                                                v6_114 = v8_70;
                                                            } else {
                                                            }
                                                            long v6_115;
                                                            if (v6_114 == 0) {
                                                                v6_115 = 0;
                                                            } else {
                                                                v6_115 = Long.valueOf(v6_114);
                                                            }
                                                            v3_8.g = v6_115;
                                                            v5_82.s();
                                                            v3_8.w = Integer.valueOf(((int) v5_82.p()));
                                                            v5_82.a(v3_8.e.longValue());
                                                            v5_82.b(v3_8.f.longValue());
                                                            v3_8.x = v5_82.A();
                                                            this.d().a(v5_82);
                                                        }
                                                    } else {
                                                        v4_8.i.r().an_().a("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.o.a(v1_23.a.o));
                                                    }
                                                    if (v3_8.b.length > 0) {
                                                        v4_8.i.u();
                                                        String v5_90 = this.p().a(v1_23.a.o);
                                                        if (v5_90 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v1_23.a.y)) {
                                                                v4_8.i.r().i().a("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.o.a(v1_23.a.o));
                                                            } else {
                                                                v3_8.E = Long.valueOf(-1);
                                                            }
                                                        } else {
                                                            if (v5_90.a != null) {
                                                                v3_8.E = v5_90.a;
                                                            } else {
                                                            }
                                                        }
                                                        this.d().a(v3_8, v27_2);
                                                    }
                                                    com.google.android.gms.measurement.internal.fg v3_18 = this.d();
                                                    com.google.android.gms.measurement.internal.q v1_24 = v1_23.b;
                                                    com.google.android.gms.common.internal.ab.a(v1_24);
                                                    v3_18.d();
                                                    v3_18.k();
                                                    String v5_102 = new StringBuilder("rowid in (");
                                                    long v6_131 = 0;
                                                    while (v6_131 < v1_24.size()) {
                                                        if (v6_131 != 0) {
                                                            v5_102.append(",");
                                                        }
                                                        v5_102.append(((Long) v1_24.get(v6_131)).longValue());
                                                        v6_131++;
                                                    }
                                                    v5_102.append(")");
                                                    String v5_104 = v3_18.y().delete("raw_events", v5_102.toString(), 0);
                                                    if (v5_104 != v1_24.size()) {
                                                        v3_18.r().an_().a("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_104), Integer.valueOf(v1_24.size()));
                                                    }
                                                    com.google.android.gms.measurement.internal.q v1_27 = this.d();
                                                    com.google.android.gms.measurement.internal.fg v3_21 = v1_27.y();
                                                    try {
                                                        long v6_137 = new String[2];
                                                        v6_137[0] = v2_23;
                                                        v6_137[1] = v2_23;
                                                        v3_21.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_137);
                                                    } catch (android.database.sqlite.SQLiteException v0_6) {
                                                        v1_27.r().an_().a("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.o.a(v2_23), v0_6);
                                                    }
                                                    this.d().w();
                                                    this.d().x();
                                                    return 1;
                                                }
                                            } else {
                                                v6_0.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                        }
                                        if (v15_5.moveToNext()) {
                                            v4_13.r().i().a("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.o.a(v3_9));
                                        }
                                        int v17_4;
                                        long v16_6;
                                        v15_5.close();
                                        v2_24.a(v14_8);
                                        if (v5_118 == -1) {
                                            boolean v10_6 = new String[2];
                                            v10_6[0] = v3_9;
                                            v10_6[1] = v7_3;
                                            v16_6 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_4 = v10_6;
                                        } else {
                                            long v13_16 = new String[3];
                                            v13_16[0] = v3_9;
                                            v13_16[1] = v7_3;
                                            v13_16[2] = String.valueOf(v5_118);
                                            v16_6 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_4 = v13_16;
                                        }
                                        v6_0 = v15_5;
                                        String v5_47 = v24.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_6, v17_4, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_47.moveToFirst()) {
                                                v4_13.r().i().a("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.o.a(v3_9));
                                                if (v5_47 == null) {
                                                } else {
                                                    v5_47.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v6_0 = v5_47;
                                            com.google.android.gms.measurement.internal.q v1_2 = v0_0;
                                            if (v6_0 != 0) {
                                                v6_0.close();
                                            }
                                            throw v1_2;
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v7_3 = v3_9;
                                            v6_0 = v5_47;
                                            com.google.android.gms.measurement.internal.fg v3_0 = v0_1;
                                            v4_13.r().an_().a("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.o.a(v7_3), v3_0);
                                            if (v6_0 == 0) {
                                            } else {
                                                v6_0.close();
                                            }
                                        }
                                        do {
                                            long v6_92 = v5_47.getLong(0);
                                            long v12_24 = v5_47.getBlob(3);
                                            boolean v10_11 = com.google.android.gms.internal.measurement.fi.a(v12_24, 0, v12_24.length);
                                            long v12_26 = new com.google.android.gms.internal.measurement.q();
                                            v12_26.a(v10_11);
                                            v12_26.b = v5_47.getString(1);
                                            v12_26.c = Long.valueOf(v5_47.getLong(2));
                                            if (v2_24.a(v6_92, v12_26)) {
                                            } else {
                                                if (v5_47 == null) {
                                                } else {
                                                    v5_47.close();
                                                }
                                            }
                                        } while(v5_47.moveToNext());
                                        if (v5_47 == null) {
                                        } else {
                                            v5_47.close();
                                        }
                                    } else {
                                        v4_13.r().an_().a("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.o.a(v3_9));
                                        if (v15_5 == null) {
                                        } else {
                                            v15_5.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_5;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v6_0 = v15_5;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_5;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v7_3 = v3_9;
                                    v6_0 = v15_5;
                                }
                                v7_3 = v3_9;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v6_0 = v22;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v7_3 = v3_9;
                                v6_0 = v22;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    } else {
                        long v14_12;
                        long v13_24 = v5_118 cmp -1;
                        try {
                            if (v13_24 == 0) {
                                v14_12 = new String[1];
                                v14_12[0] = String.valueOf(p56);
                            } else {
                                v14_12 = new String[2];
                                v14_12[0] = String.valueOf(v5_118);
                                v14_12[1] = String.valueOf(p56);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            v6_0 = 0;
                            v7_3 = 0;
                        }
                        long v13_26;
                        if (v13_24 == 0) {
                            v13_26 = "";
                        } else {
                            v13_26 = "rowid <= ? and ";
                        }
                        com.google.android.gms.measurement.internal.fg v3_34 = new StringBuilder((String.valueOf(v13_26).length() + 148));
                        v3_34.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_34.append(v13_26);
                        v3_34.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_9 = v15_6.rawQuery(v3_34.toString(), v14_12);
                        if (v3_9.moveToFirst()) {
                            long v7_7 = v3_9.getString(0);
                            try {
                                long v13_4 = v3_9.getString(1);
                                v3_9.close();
                                v22 = v3_9;
                                v3_9 = v7_7;
                                v7_3 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v6_0 = v3_9;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v6_0 = v3_9;
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v6_0 = v3_9;
                    v7_3 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v6_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
                v3_0 = v0_7;
                v6_0 = 0;
                v7_3 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
            }
        } catch (android.database.sqlite.SQLiteException v0_2) {
            v1_1 = v0_2;
        }
    }

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


    final void a(int p10, Throwable p11, byte[] p12, String p13)
    {
        this.v();
        this.i();
        if (p12 == null) {
            p12 = new byte[0];
        }
        String v1_3 = this.u;
        this.u = 0;
        int v4 = 1;
        if (((p10 != 200) && (p10 != 204)) || (p11)) {
            this.i.r().x().a("Network upload failed. Will retry later. code, error", Integer.valueOf(p10), p11);
            this.i.c().d.a(this.i.m().a());
            if (p10 != 503) {
                if (p10 != 429) {
                    v4 = 0;
                } else {
                }
            }
            if (v4 != 0) {
                this.i.c().e.a(this.i.m().a());
            }
            if (this.i.b().g(p13)) {
                this.d().a(v1_3);
            }
            this.y();
        } else {
            try {
                this.i.c().c.a(this.i.m().a());
                this.i.c().d.a(0);
                this.y();
                this.i.r().x().a("Successful upload. Got network response. code, size", Integer.valueOf(p10), Integer.valueOf(p12.length));
                this.d().f();
            } catch (long v10_7) {
                this.i.r().an_().a("Database error while trying to delete uploaded bundles", v10_7);
                this.l = this.i.m().b();
                this.i.r().x().a("Disable upload, time", Long.valueOf(this.l));
            }
            long v10_24 = v1_3.iterator();
            while (v10_24.hasNext()) {
                boolean v11_2 = ((Long) v10_24.next());
                try {
                    com.google.android.gms.measurement.internal.q v12_1 = this.d();
                    String v7_0 = v11_2.longValue();
                    v12_1.d();
                    v12_1.k();
                    java.util.List v13_1 = v12_1.y();
                    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");
                        }
                    } catch (java.util.List v13_5) {
                        v12_1.r().an_().a("Failed to delete a bundle in a queue table", v13_5);
                        throw v13_5;
                    }
                } catch (com.google.android.gms.measurement.internal.q v12_5) {
                    if (this.v != null) {
                        if (!this.v.contains(v11_2)) {
                        }
                    }
                    throw v12_5;
                }
            }
            this.d().w();
            this.d().x();
            this.v = 0;
            if ((!this.c().f()) || (!this.x())) {
                this.w = -1;
                this.y();
            } else {
                this.j();
            }
            this.l = 0;
        }
        this.q = 0;
        this.z();
        return;
    }

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


    final void b(com.google.android.gms.measurement.internal.zzh p12)
    {
        if (this.u != null) {
            this.v = new java.util.ArrayList();
            this.v.addAll(this.u);
        }
        com.google.android.gms.measurement.internal.zzh v0_7 = this.d();
        boolean v1_0 = p12.packageName;
        com.google.android.gms.common.internal.ab.a(v1_0);
        v0_7.d();
        v0_7.k();
        try {
            String v2_0 = v0_7.y();
            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.r().an_().a("Error resetting analytics data. appId, error", com.google.android.gms.measurement.internal.o.a(v1_0), v2_2);
            com.google.android.gms.measurement.internal.zzh v0_8 = this.a(this.i.n(), p12.packageName, p12.zzafx, p12.zzagg, p12.zzagi, p12.zzagj, p12.zzagx, p12.zzagk);
            if ((!this.i.b().k(p12.packageName)) || (p12.zzagg)) {
                this.c(v0_8);
            }
            return;
        }
        if (v5_10) {
        } else {
            v0_7.r().x().a("Reset analytics data. app, records", v1_0, Integer.valueOf(v5_10));
        }
    }

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


    final void c(com.google.android.gms.measurement.internal.zzh p20)
    {
        void v19_1 = this.v();
        v19_1.i();
        com.google.android.gms.common.internal.ab.a(p20);
        com.google.android.gms.common.internal.ab.a(p20.packageName);
        if ((!android.text.TextUtils.isEmpty(p20.zzafx)) || (!android.text.TextUtils.isEmpty(p20.zzagk))) {
            android.os.Bundle v3_3 = v19_1.d().b(p20.packageName);
            if ((v3_3 != null) && ((android.text.TextUtils.isEmpty(v3_3.d())) && (!android.text.TextUtils.isEmpty(p20.zzafx)))) {
                v3_3.g(0);
                v19_1.d().a(v3_3);
                v19_1.p().d(p20.packageName);
            }
            if (p20.zzagg) {
                long v6_6 = p20.zzagx;
                if (v6_6 == 0) {
                    v6_6 = this.i.m().a();
                }
                android.os.Bundle v3_25 = p20.zzagy;
                if ((v3_25 != null) && (v3_25 != 1)) {
                    this.i.r().i().a("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.measurement.internal.o.a(p20.packageName), Integer.valueOf(v3_25));
                    v3_25 = 0;
                }
                v19_1.d().f();
                try {
                    com.google.android.gms.measurement.internal.zzfh v8_2 = v19_1.d().b(p20.packageName);
                } catch (android.content.pm.PackageManager$NameNotFoundException v0_3) {
                    com.google.android.gms.measurement.internal.ex v2_1 = v0_3;
                    v19_1.d().x();
                    throw v2_1;
                }
                if (v8_2 != null) {
                    this.i.j();
                    if (com.google.android.gms.measurement.internal.em.a(p20.zzafx, v8_2.d(), p20.zzagk, v8_2.e())) {
                        this.i.r().i().a("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.measurement.internal.o.a(v8_2.b()));
                        String v9_0 = v19_1.d();
                        com.google.android.gms.measurement.internal.zzfh v8_0 = v8_2.b();
                        v9_0.k();
                        v9_0.d();
                        com.google.android.gms.common.internal.ab.a(v8_0);
                        try {
                            long v10_0 = v9_0.y();
                            Object v11_0 = new String[1];
                            v11_0[0] = v8_0;
                            Long v12_10 = (((((((((v10_0.delete("events", "app_id=?", v11_0) + 0) + v10_0.delete("user_attributes", "app_id=?", v11_0)) + v10_0.delete("conditional_properties", "app_id=?", v11_0)) + v10_0.delete("apps", "app_id=?", v11_0)) + v10_0.delete("raw_events", "app_id=?", v11_0)) + v10_0.delete("raw_events_metadata", "app_id=?", v11_0)) + v10_0.delete("event_filters", "app_id=?", v11_0)) + v10_0.delete("property_filters", "app_id=?", v11_0)) + v10_0.delete("audience_filter_values", "app_id=?", v11_0));
                        } catch (android.content.pm.PackageManager$NameNotFoundException v0_0) {
                            v9_0.r().an_().a("Error deleting application data. appId, error", com.google.android.gms.measurement.internal.o.a(v8_0), v0_0);
                            v8_2 = 0;
                        }
                        if (v12_10 <= null) {
                        } else {
                            v9_0.r().x().a("Deleted application data. app, records", v8_0, Integer.valueOf(v12_10));
                        }
                    }
                }
                if (v8_2 != null) {
                    if (v8_2.k() == -2147483648) {
                        if ((v8_2.j() != null) && (!v8_2.j().equals(p20.zzts))) {
                            String v9_9 = new android.os.Bundle();
                            v9_9.putString("_pv", v8_2.j());
                            com.google.android.gms.measurement.internal.zzfh v14_8 = new com.google.android.gms.measurement.internal.zzad;
                            v14_8("_au", new com.google.android.gms.measurement.internal.zzaa(v9_9), "auto", v6_6);
                            this.a(v14_8, p20);
                        }
                    } else {
                        if (v8_2.k() != p20.zzagd) {
                            String v9_14 = new android.os.Bundle();
                            v9_14.putString("_pv", v8_2.j());
                            com.google.android.gms.measurement.internal.zzfh v14_9 = new com.google.android.gms.measurement.internal.zzad;
                            v14_9("_au", new com.google.android.gms.measurement.internal.zzaa(v9_14), "auto", v6_6);
                            this.a(v14_9, p20);
                        }
                    }
                }
                com.google.android.gms.measurement.internal.zzfh v8_7;
                v19_1.e(p20);
                if (v3_25 != null) {
                    if (v3_25 != 1) {
                        v8_7 = 0;
                    } else {
                        v8_7 = v19_1.d().a(p20.packageName, "_v");
                    }
                } else {
                    v8_7 = v19_1.d().a(p20.packageName, "_f");
                }
                if (v8_7 != null) {
                    if (p20.zzagw) {
                        com.google.android.gms.measurement.internal.zzad v4_2 = new com.google.android.gms.measurement.internal.zzad;
                        v4_2("_cd", new com.google.android.gms.measurement.internal.zzaa(new android.os.Bundle()), "auto", v6_6);
                        this.a(v4_2, p20);
                    }
                } else {
                    com.google.android.gms.measurement.internal.zzad v4_3;
                    long v10_18 = (((v6_6 / 3600000) + 1) * 3600000);
                    if (v3_25 != null) {
                        v4_3 = 1;
                        if (v3_25 == 1) {
                            android.os.Bundle v3_7 = new com.google.android.gms.measurement.internal.zzfh;
                            v3_7("_fvt", v6_6, Long.valueOf(v10_18), "auto");
                            this.a(v3_7, p20);
                            v19_1 = v19_1.v();
                            v19_1.i();
                            android.os.Bundle v3_9 = new android.os.Bundle();
                            v3_9.putLong("_c", 1);
                            v3_9.putLong("_r", 1);
                            if ((this.i.b().k(p20.packageName)) && (p20.zzagz)) {
                                v3_9.putLong("_dac", 1);
                            }
                            com.google.android.gms.measurement.internal.zzfh v14_10 = new com.google.android.gms.measurement.internal.zzad;
                            v14_10("_v", new com.google.android.gms.measurement.internal.zzaa(v3_9), "auto", v6_6);
                            this.a(v14_10, p20);
                        }
                    } else {
                        android.os.Bundle v3_10 = new com.google.android.gms.measurement.internal.zzfh;
                        v4_3 = 1;
                        v3_10("_fot", v6_6, Long.valueOf(v10_18), "auto");
                        this.a(v3_10, p20);
                        if (this.i.b().n(p20.zzafx)) {
                            v19_1 = v19_1.v();
                            this.i.f().a(p20.packageName);
                        }
                        v19_1 = v19_1.v();
                        v19_1.i();
                        android.os.Bundle v3_17 = new android.os.Bundle();
                        v3_17.putLong("_c", 1);
                        v3_17.putLong("_r", 1);
                        v3_17.putLong("_uwa", 0);
                        v3_17.putLong("_pfo", 0);
                        v3_17.putLong("_sys", 0);
                        v3_17.putLong("_sysu", 0);
                        if ((this.i.b().k(p20.packageName)) && (p20.zzagz)) {
                            v3_17.putLong("_dac", 1);
                        }
                        if (this.i.n().getPackageManager() != null) {
                            try {
                                com.google.android.gms.measurement.internal.zzfh v8_41 = com.google.android.gms.common.e.c.a(this.i.n()).b(p20.packageName, 0);
                            } catch (android.content.pm.PackageManager$NameNotFoundException v0_1) {
                                this.i.r().an_().a("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.o.a(p20.packageName), v0_1);
                                v8_41 = 0;
                            }
                            if ((v8_41 != null) && (v8_41.firstInstallTime != 0)) {
                                com.google.android.gms.measurement.internal.zzfh v8_44;
                                if (v8_41.firstInstallTime == v8_41.lastUpdateTime) {
                                    v8_44 = 1;
                                } else {
                                    v3_17.putLong("_uwa", 1);
                                    v8_44 = 0;
                                }
                                long v10_25;
                                com.google.android.gms.measurement.internal.zzfh v14_11 = new com.google.android.gms.measurement.internal.zzfh;
                                if (v8_44 == null) {
                                    v10_25 = 0;
                                } else {
                                    v10_25 = 1;
                                }
                                v14_11("_fi", v6_6, Long.valueOf(v10_25), "auto");
                                this.a(v14_11, p20);
                            }
                            try {
                                com.google.android.gms.measurement.internal.zzfh v8_50 = com.google.android.gms.common.e.c.a(this.i.n()).a(p20.packageName, 0);
                            } catch (android.content.pm.PackageManager$NameNotFoundException v0_2) {
                                this.i.r().an_().a("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.o.a(p20.packageName), v0_2);
                                v8_50 = 0;
                            }
                            if (v8_50 != null) {
                                if ((v8_50.flags & 1) != 0) {
                                    v3_17.putLong("_sys", 1);
                                }
                                if ((v8_50.flags & 128) != 0) {
                                    v3_17.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.i.r().an_().a("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.o.a(p20.packageName));
                        }
                        com.google.android.gms.measurement.internal.zzfh v8_58 = v19_1.d();
                        String v9_41 = p20.packageName;
                        com.google.android.gms.common.internal.ab.a(v9_41);
                        v8_58.d();
                        v8_58.k();
                        com.google.android.gms.measurement.internal.zzfh v8_59 = v8_58.h(v9_41, "first_open_count");
                        if (v8_59 >= 0) {
                            v3_17.putLong("_pfo", v8_59);
                        }
                        com.google.android.gms.measurement.internal.zzfh v14_12 = new com.google.android.gms.measurement.internal.zzad;
                        v14_12("_f", new com.google.android.gms.measurement.internal.zzaa(v3_17), "auto", v6_6);
                        this.a(v14_12, p20);
                    }
                    android.os.Bundle v3_24 = new android.os.Bundle();
                    v3_24.putLong("_et", v4_3);
                    com.google.android.gms.measurement.internal.zzad v4_4 = new com.google.android.gms.measurement.internal.zzad;
                    v4_4("_e", new com.google.android.gms.measurement.internal.zzaa(v3_24), "auto", v6_6);
                    this.a(v4_4, p20);
                }
                v19_1.d().w();
                v19_1.d().x();
                return;
            } else {
                v19_1.e(p20);
                return;
            }
        } else {
            return;
        }
    }

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


    private final boolean a(String p9, java.util.List p10)
    {
        com.google.android.gms.common.internal.ab.a(p9);
        this.k();
        this.d();
        com.google.android.gms.measurement.internal.q v0_2 = this.y();
        try {
            String v4_9 = new String[1];
            v4_9[0] = p9;
            String v4_0 = this.b("select count(1) from audience_filter_values where app_id=?", v4_9);
            String v2_3 = Math.max(0, Math.min(2000, this.t().b(p9, com.google.android.gms.measurement.internal.e.N)));
        } catch (String v10_1) {
            this.r().an_().a("Database error querying filters. appId", com.google.android.gms.measurement.internal.o.a(p9), v10_1);
            return 0;
        }
        if (v4_0 > ((long) v2_3)) {
            String v4_3 = new java.util.ArrayList();
            int v5_0 = 0;
            while (v5_0 < p10.size()) {
                String v6_11 = ((Integer) p10.get(v5_0));
                if ((v6_11 != null) && ((v6_11 instanceof Integer))) {
                    v4_3.add(Integer.toString(v6_11.intValue()));
                    v5_0++;
                } else {
                    return 0;
                }
            }
            String v10_3 = android.text.TextUtils.join(",", v4_3);
            String v6_5 = new StringBuilder((String.valueOf(v10_3).length() + 2));
            v6_5.append("(");
            v6_5.append(v10_3);
            v6_5.append(")");
            String v10_5 = v6_5.toString();
            boolean v7_1 = new StringBuilder((String.valueOf(v10_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(v10_5);
            v7_1.append(" order by rowid desc limit -1 offset ?)");
            String v10_7 = v7_1.toString();
            int v5_2 = new String[2];
            v5_2[0] = p9;
            v5_2[1] = Integer.toString(v2_3);
            if (v0_2.delete("audience_filter_values", v10_7, v5_2) <= 0) {
                return 0;
            } else {
                return 1;
            }
        } else {
            return 0;
        }
    }

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


    final void B()
    {
        this.d();
        this.k();
        if (this.N()) {
            Integer v0_12 = this.s().f.a();
            String v2_1 = this.m().b();
            if (Math.abs((v2_1 - v0_12)) > ((Long) com.google.android.gms.measurement.internal.e.G.b()).longValue()) {
                this.s().f.a(v2_1);
                this.d();
                this.k();
                if (this.N()) {
                    Integer v0_7 = this.y();
                    com.google.android.gms.measurement.internal.q v1_1 = new String[2];
                    v1_1[0] = String.valueOf(this.m().a());
                    v1_1[1] = String.valueOf(com.google.android.gms.measurement.internal.eu.j());
                    Integer v0_8 = v0_7.delete("queue", "abs(bundle_end_timestamp - ?) > cast(? as integer)", v1_1);
                    if (v0_8 > null) {
                        this.r().x().a("Deleted stale rows. rowsDeleted", Integer.valueOf(v0_8));
                    }
                }
            }
            return;
        } else {
            return;
        }
    }

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


    final void a(String p13, com.google.android.gms.internal.measurement.f[] p14)
    {
        this.k();
        this.d();
        com.google.android.gms.common.internal.ab.a(p13);
        com.google.android.gms.common.internal.ab.a(p14);
        android.database.sqlite.SQLiteDatabase v0 = this.y();
        v0.beginTransaction();
        try {
            this.k();
            this.d();
            com.google.android.gms.common.internal.ab.a(p13);
            java.util.ArrayList v1_0 = this.y();
            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.k();
            this.d();
            com.google.android.gms.common.internal.ab.a(p13);
            com.google.android.gms.common.internal.ab.a(v3_8);
            com.google.android.gms.common.internal.ab.a(v3_8.c);
            com.google.android.gms.common.internal.ab.a(v3_8.b);
            if (v3_8.a != null) {
                String v5_12 = v3_8.a.intValue();
                int v7_3 = v3_8.c;
                int v9_2 = 0;
                while (v9_2 < v7_3.length) {
                    if (v7_3[v9_2].a != null) {
                        v9_2++;
                    } else {
                        this.r().i().a("Event filter with no ID. Audience definition ignored. appId, audienceId", com.google.android.gms.measurement.internal.o.a(p13), v3_8.a);
                    }
                }
                int v7_4 = v3_8.b;
                int v9_1 = 0;
                while (v9_1 < v7_4.length) {
                    if (v7_4[v9_1].a != null) {
                        v9_1++;
                    } else {
                        this.r().i().a("Property filter with no ID. Audience definition ignored. appId, audienceId", com.google.android.gms.measurement.internal.o.a(p13), v3_8.a);
                    }
                }
                int v7_5 = v3_8.c;
                int v9_3 = 0;
                while (v9_3 < v7_5.length) {
                    if (this.a(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.b;
                        int v9_4 = 0;
                        while (v9_4 < v3_9.length) {
                            if (this.a(p13, v5_12, v3_9[v9_4])) {
                                v9_4++;
                            } else {
                                v7_6 = 0;
                                break;
                            }
                        }
                    }
                    if (v7_6 == 0) {
                        this.k();
                        this.d();
                        com.google.android.gms.common.internal.ab.a(p13);
                        android.database.sqlite.SQLiteDatabase v3_10 = this.y();
                        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.r().i().a("Audience with no ID. appId", com.google.android.gms.measurement.internal.o.a(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].a);
            v6++;
        }
        this.a(p13, v1_3);
        v0.setTransactionSuccessful();
        v0.endTransaction();
        return;
    }

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


    public final void b(String p6, String p7)
    {
        com.google.android.gms.common.internal.ab.a(p6);
        com.google.android.gms.common.internal.ab.a(p7);
        this.d();
        this.k();
        try {
            android.database.sqlite.SQLiteException v0_3 = this.y();
            com.google.android.gms.measurement.internal.m v3_2 = new String[2];
            v3_2[0] = p6;
            v3_2[1] = p7;
            this.r().x().a("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.r().an_().a("Error deleting user attribute. appId", com.google.android.gms.measurement.internal.o.a(p6), this.o().c(p7), v0_2);
            return;
        }
    }

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


    public final long c(String p7)
    {
        com.google.android.gms.common.internal.ab.a(p7);
        this.d();
        this.k();
        try {
            long v0_4 = this.y();
            com.google.android.gms.measurement.internal.q v1_2 = String.valueOf(Math.max(0, Math.min(1000000, this.t().b(p7, com.google.android.gms.measurement.internal.e.x))));
            String[] v5_1 = new String[2];
            v5_1[0] = p7;
            v5_1[1] = v1_2;
            return ((long) v0_4.delete("raw_events", "rowid in (select rowid from raw_events where app_id=? order by rowid desc limit -1 offset ?)", v5_1));
        } catch (long v0_2) {
            this.r().an_().a("Error deleting over the limit events. appId", com.google.android.gms.measurement.internal.o.a(p7), v0_2);
            return 0;
        }
    }

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


    public final int e(String p7, String p8)
    {
        com.google.android.gms.common.internal.ab.a(p7);
        com.google.android.gms.common.internal.ab.a(p8);
        this.d();
        this.k();
        try {
            android.database.sqlite.SQLiteException v1_2 = this.y();
            com.google.android.gms.measurement.internal.m v4_0 = new String[2];
            v4_0[0] = p7;
            v4_0[1] = p8;
            return v1_2.delete("conditional_properties", "app_id=? and name=?", v4_0);
        } catch (android.database.sqlite.SQLiteException v1_1) {
            this.r().an_().a("Error deleting conditional property", com.google.android.gms.measurement.internal.o.a(p7), this.o().c(p8), v1_1);
            return 0;
        }
    }

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


    private final boolean a(int p18, byte[] p19)
    {
        this.b();
        this.d();
        Long v3_6 = 0;
        if (!this.b) {
            int v2_1 = new android.content.ContentValues();
            v2_1.put("type", Integer.valueOf(p18));
            v2_1.put("entry", p19);
            com.google.android.gms.measurement.internal.q v4_6 = 5;
            int v5_2 = 0;
            int v6 = 5;
            while (v5_2 < v4_6) {
                int v7 = 0;
                try {
                    int v9 = this.y();
                    try {
                        if (v9 != 0) {
                            v9.beginTransaction();
                            Long v10_0 = 0;
                            int v12_0 = v9.rawQuery("select count(1) from messages", 0);
                            try {
                                if ((v12_0 != 0) && (v12_0.moveToFirst())) {
                                    v10_0 = v12_0.getLong(v3_6);
                                }
                                if (v10_0 >= 100000) {
                                    this.r().an_().a("Data loss, local db full");
                                    long v13_3 = ((100000 - v10_0) + 1);
                                    String[] v11 = new String[1];
                                    v11[v3_6] = Long.toString(v13_3);
                                    Long v10_3 = ((long) v9.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v11));
                                    if (v10_3 != v13_3) {
                                        this.r().an_().a("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v13_3), Long.valueOf(v10_3), Long.valueOf((v13_3 - v10_3)));
                                    }
                                }
                                v9.insertOrThrow("messages", 0, v2_1);
                                v9.setTransactionSuccessful();
                                v9.endTransaction();
                                if (v12_0 != 0) {
                                    v12_0.close();
                                }
                                if (v9 != 0) {
                                    v9.close();
                                }
                                return 1;
                            } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                                v7 = v12_0;
                                android.os.SystemClock.sleep(((long) v6));
                                v6 += 20;
                                if (v7 != 0) {
                                    v7.close();
                                }
                                if (v9 == 0) {
                                    v5_2++;
                                    v3_6 = 0;
                                    v4_6 = 5;
                                } else {
                                    v9.close();
                                }
                            }
                        } else {
                            this.b = 1;
                            if (v9 != 0) {
                                v9.close();
                            }
                            return v3_6;
                        }
                        v7 = v9;
                        if (v7 != 0) {
                            if (v7.inTransaction()) {
                                v7.endTransaction();
                            }
                        }
                        this.r().an_().a("Error writing entry to local database", Long v3_1);
                        this.b = 1;
                        if (v12_0 != 0) {
                            v12_0.close();
                        }
                        if (v7 == 0) {
                        } else {
                            v7.close();
                        }
                    } catch (Throwable v0_2) {
                        Long v3_4 = v0_2;
                        this.r().an_().a("Error writing entry to local database", v3_4);
                        this.b = 1;
                        if (v7 != 0) {
                            v7.close();
                        }
                        if (v9 == 0) {
                        } else {
                            v9.close();
                        }
                    } catch (Throwable v0_0) {
                        v3_1 = v0_0;
                        v12_0 = 0;
                    }
                } catch (Throwable v0_6) {
                    v2_1 = v0_6;
                    v9 = 0;
                    v12_0 = 0;
                    if (v12_0 != 0) {
                        v12_0.close();
                    }
                    if (v9 != 0) {
                        v9.close();
                    }
                    throw v2_1;
                } catch (Throwable v0_5) {
                    v3_4 = v0_5;
                    v9 = 0;
                } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                    v9 = 0;
                } catch (Throwable v0_4) {
                    v3_1 = v0_4;
                    v12_0 = 0;
                } catch (Throwable v0_3) {
                    v2_1 = v0_3;
                    v12_0 = v7;
                }
            }
            this.r().i().a("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

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

Couldn't retrieve source code

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


    public final void x()
    {
        this.b();
        this.d();
        try {
            Integer v0_4 = (this.y().delete("messages", 0, 0) + 0);
        } catch (Integer v0_1) {
            this.r().an_().a("Error resetting local analytics data. error", v0_1);
            return;
        }
        if (v0_4 > null) {
            this.r().x().a("Reset local analytics data. records", Integer.valueOf(v0_4));
        }
        return;
    }

Method com.evernote.android.job.i$b.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("create table jobs (_id integer primary key, tag text not null, startMs integer, endMs integer, backoffMs integer, backoffPolicy text not null, intervalMs integer, requirementsEnforced integer, requiresCharging integer, requiresDeviceIdle integer, exact integer, networkType text not null, extras text, numFailures integer, scheduledAt integer, started integer, flexMs integer, flexSupport integer, lastRun integer, transient integer, requiresBatteryNotLow integer, requiresStorageNotLow integer);");
        return;
    }

Method com.evernote.android.job.i$b.b() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void b(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("alter table jobs add column isTransient integer;");
        return;
    }

Method com.evernote.android.job.i$b.c() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void c(android.database.sqlite.SQLiteDatabase p6)
    {
        p6.execSQL("alter table jobs add column flexMs integer;");
        p6.execSQL("alter table jobs add column flexSupport integer;");
        String v0_4 = new android.content.ContentValues();
        v0_4.put("intervalMs", Long.valueOf(com.evernote.android.job.JobRequest.e));
        String v2_1 = new StringBuilder();
        v2_1.append("intervalMs>0 AND intervalMs<");
        v2_1.append(com.evernote.android.job.JobRequest.e);
        String[] v3_3 = new String[0];
        p6.update("jobs", v0_4, v2_1.toString(), v3_3);
        p6.execSQL("update jobs set flexMs = intervalMs;");
        return;
    }

Method android.arch.persistence.a.a.a.b() calling method android.database.sqlite.SQLiteDatabase.execSQL()


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

Method android.arch.persistence.a.a.a.c() calling method android.database.sqlite.SQLiteDatabase.execSQL()


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

Method com.evernote.android.job.i$b.d() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void d(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("alter table jobs add column lastRun integer;");
        return;
    }

Method com.evernote.android.job.i$b.e() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void e(android.database.sqlite.SQLiteDatabase p4)
    {
        try {
            p4.beginTransaction();
            StringBuilder v1_5 = new StringBuilder();
            v1_5.append("create table ");
            v1_5.append("jobs_new");
            v1_5.append(" (");
            v1_5.append("_id");
            v1_5.append(" integer primary key, ");
            v1_5.append("tag");
            v1_5.append(" text not null, ");
            v1_5.append("startMs");
            v1_5.append(" integer, ");
            v1_5.append("endMs");
            v1_5.append(" integer, ");
            v1_5.append("backoffMs");
            v1_5.append(" integer, ");
            v1_5.append("backoffPolicy");
            v1_5.append(" text not null, ");
            v1_5.append("intervalMs");
            v1_5.append(" integer, ");
            v1_5.append("requirementsEnforced");
            v1_5.append(" integer, ");
            v1_5.append("requiresCharging");
            v1_5.append(" integer, ");
            v1_5.append("requiresDeviceIdle");
            v1_5.append(" integer, ");
            v1_5.append("exact");
            v1_5.append(" integer, ");
            v1_5.append("networkType");
            v1_5.append(" text not null, ");
            v1_5.append("extras");
            v1_5.append(" text, ");
            v1_5.append("numFailures");
            v1_5.append(" integer, ");
            v1_5.append("scheduledAt");
            v1_5.append(" integer, ");
            v1_5.append("started");
            v1_5.append(" integer, ");
            v1_5.append("flexMs");
            v1_5.append(" integer, ");
            v1_5.append("flexSupport");
            v1_5.append(" integer, ");
            v1_5.append("lastRun");
            v1_5.append(" integer);");
            p4.execSQL(v1_5.toString());
            StringBuilder v1_8 = new StringBuilder();
            v1_8.append("INSERT INTO ");
            v1_8.append("jobs_new");
            v1_8.append(" SELECT ");
            v1_8.append("_id");
            v1_8.append(",");
            v1_8.append("tag");
            v1_8.append(",");
            v1_8.append("startMs");
            v1_8.append(",");
            v1_8.append("endMs");
            v1_8.append(",");
            v1_8.append("backoffMs");
            v1_8.append(",");
            v1_8.append("backoffPolicy");
            v1_8.append(",");
            v1_8.append("intervalMs");
            v1_8.append(",");
            v1_8.append("requirementsEnforced");
            v1_8.append(",");
            v1_8.append("requiresCharging");
            v1_8.append(",");
            v1_8.append("requiresDeviceIdle");
            v1_8.append(",");
            v1_8.append("exact");
            v1_8.append(",");
            v1_8.append("networkType");
            v1_8.append(",");
            v1_8.append("extras");
            v1_8.append(",");
            v1_8.append("numFailures");
            v1_8.append(",");
            v1_8.append("scheduledAt");
            v1_8.append(",");
            v1_8.append("isTransient");
            v1_8.append(",");
            v1_8.append("flexMs");
            v1_8.append(",");
            v1_8.append("flexSupport");
            v1_8.append(",");
            v1_8.append("lastRun");
            v1_8.append(" FROM ");
            v1_8.append("jobs");
            p4.execSQL(v1_8.toString());
            p4.execSQL("DROP TABLE jobs");
            StringBuilder v1_3 = new StringBuilder();
            v1_3.append("ALTER TABLE ");
            v1_3.append("jobs_new");
            v1_3.append(" RENAME TO ");
            v1_3.append("jobs");
            p4.execSQL(v1_3.toString());
            p4.execSQL("alter table jobs add column transient integer;");
            p4.setTransactionSuccessful();
            p4.endTransaction();
            return;
        } catch (Throwable v0_5) {
            p4.endTransaction();
            throw v0_5;
        }
    }

Method com.fitbit.device.notifications.data.f.onOpen() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onOpen(android.database.sqlite.SQLiteDatabase p2)
    {
        kotlin.jvm.internal.ae.f(p2, "db");
        super.onOpen(p2);
        p2.execSQL("PRAGMA foreign_keys=ON");
        return;
    }

Method org.jetbrains.anko.db.i.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static final varargs void a(android.database.sqlite.SQLiteDatabase p9, String p10, String p11, boolean p12, boolean p13, String[] p14)
    {
        String v13_1;
        kotlin.jvm.internal.ae.f(p9, "$receiver");
        kotlin.jvm.internal.ae.f(p10, "indexName");
        kotlin.jvm.internal.ae.f(p11, "tableName");
        kotlin.jvm.internal.ae.f(p14, "columns");
        String v10_1 = kotlin.text.o.a(p10, "`", "``", 0, 4, 0);
        String v11_1 = kotlin.text.o.a(p11, "`", "``", 0, 4, 0);
        if (p13 == null) {
            v13_1 = "";
        } else {
            v13_1 = "IF NOT EXISTS";
        }
        String v12_1;
        if (p12 == null) {
            v12_1 = "";
        } else {
            v12_1 = "UNIQUE";
        }
        StringBuilder v14_3 = new StringBuilder();
        v14_3.append("CREATE ");
        v14_3.append(v12_1);
        v14_3.append(" INDEX ");
        v14_3.append(v13_1);
        v14_3.append(" `");
        v14_3.append(v10_1);
        v14_3.append("` ON `");
        v14_3.append(v11_1);
        v14_3.append("`(");
        p9.execSQL(kotlin.collections.l.a(((Object[]) p14), ((CharSequence) ","), ((CharSequence) v14_3.toString()), ((CharSequence) ");"), 0, 0, 0, 56, 0));
        return;
    }

Method org.jetbrains.anko.db.i.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static final void a(android.database.sqlite.SQLiteDatabase p7, String p8, boolean p9)
    {
        String v9_1;
        kotlin.jvm.internal.ae.f(p7, "$receiver");
        kotlin.jvm.internal.ae.f(p8, "tableName");
        String v8_1 = kotlin.text.o.a(p8, "`", "``", 0, 4, 0);
        if (p9 == null) {
            v9_1 = "";
        } else {
            v9_1 = "IF EXISTS";
        }
        StringBuilder v0_2 = new StringBuilder();
        v0_2.append("DROP TABLE ");
        v0_2.append(v9_1);
        v0_2.append(" `");
        v0_2.append(v8_1);
        v0_2.append("`;");
        p7.execSQL(v0_2.toString());
        return;
    }

Method org.jetbrains.anko.db.i.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static final varargs void a(android.database.sqlite.SQLiteDatabase p10, String p11, boolean p12, kotlin.Pair[] p13)
    {
        String v12_1;
        kotlin.jvm.internal.ae.f(p10, "$receiver");
        kotlin.jvm.internal.ae.f(p11, "tableName");
        kotlin.jvm.internal.ae.f(p13, "columns");
        String v11_1 = kotlin.text.o.a(p11, "`", "``", 0, 4, 0);
        if (p12 == null) {
            v12_1 = "";
        } else {
            v12_1 = "IF NOT EXISTS";
        }
        String v0_4 = ((java.util.Collection) new java.util.ArrayList(((Object[]) p13).length));
        Iterable v1_2 = 0;
        while (v1_2 < ((Object[]) p13).length) {
            CharSequence v2_4 = ((kotlin.Pair) ((Object[]) p13)[v1_2]);
            CharSequence v3_3 = new StringBuilder();
            v3_3.append(((String) v2_4.a()));
            v3_3.append(" ");
            v3_3.append(((org.jetbrains.anko.db.t) v2_4.b()).a());
            v0_4.add(v3_3.toString());
            v1_2++;
        }
        Iterable v1_4 = ((Iterable) ((java.util.List) v0_4));
        StringBuilder v13_4 = new StringBuilder();
        v13_4.append("CREATE TABLE ");
        v13_4.append(v12_1);
        v13_4.append(" `");
        v13_4.append(v11_1);
        v13_4.append("`(");
        p10.execSQL(kotlin.collections.u.a(v1_4, ((CharSequence) ", "), ((CharSequence) v13_4.toString()), ((CharSequence) ");"), 0, 0, 0, 56, 0));
        return;
    }

Method org.jetbrains.anko.db.i.b() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static final void b(android.database.sqlite.SQLiteDatabase p7, String p8, boolean p9)
    {
        String v9_1;
        kotlin.jvm.internal.ae.f(p7, "$receiver");
        kotlin.jvm.internal.ae.f(p8, "indexName");
        String v8_1 = kotlin.text.o.a(p8, "`", "``", 0, 4, 0);
        if (p9 == null) {
            v9_1 = "";
        } else {
            v9_1 = "IF EXISTS";
        }
        StringBuilder v0_2 = new StringBuilder();
        v0_2.append("DROP INDEX ");
        v0_2.append(v9_1);
        v0_2.append(" `");
        v0_2.append(v8_1);
        v0_2.append("`;");
        p7.execSQL(v0_2.toString());
        return;
    }

Method org.greenrobot.greendao.database.c.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


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

Method org.greenrobot.greendao.database.c.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


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

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


    static void a(com.google.android.gms.measurement.internal.o p5, android.database.sqlite.SQLiteDatabase p6, String p7, String p8, String p9, String[] p10)
    {
        if (p5 != null) {
            if (!ark>com.google.android.gms.measurement.internal.fbark>.a(p5, p6, p7)) {
                p6.execSQL(p8);
            }
            if (p5 != null) {
                String v8_10 = ark>com.google.android.gms.measurement.internal.fbark>.a(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_10.remove(v3)) {
                        v2++;
                    } else {
                        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());
                    }
                }
                if (p10 != null) {
                    while (v1 < p10.length) {
                        if (!v8_10.remove(p10[v1])) {
                            p6.execSQL(p10[(v1 + 1)]);
                        }
                        v1 += 2;
                    }
                }
                if (!v8_10.isEmpty()) {
                    p5.i().a("Table has extra columns. table, columns", p7, android.text.TextUtils.join(", ", v8_10));
                }
                return;
            } else {
                throw new IllegalArgumentException("Monitor must not be null");
            }
        } else {
            throw new IllegalArgumentException("Monitor must not be null");
        }
    }

Method android.arch.persistence.a.a.a.a() calling method android.database.sqlite.SQLiteDatabase.rawQueryWithFactory()


    public android.database.Cursor a(android.arch.persistence.a.f p5)
    {
        return this.c.rawQueryWithFactory(new ark>android.arch.persistence.a.a.aark>$1(this, p5), p5.a(), ark>android.arch.persistence.a.a.aark>.b, 0);
    }

Method com.mixpanel.android.mpmetrics.MPDbAdapter$a.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p3)
    {
        if (com.mixpanel.android.mpmetrics.f.b) {
            android.util.Log.v("MixpanelAPI.Database", "Creating a new Mixpanel events DB");
        }
        p3.execSQL(com.mixpanel.android.mpmetrics.MPDbAdapter.c());
        p3.execSQL(com.mixpanel.android.mpmetrics.MPDbAdapter.d());
        p3.execSQL(com.mixpanel.android.mpmetrics.MPDbAdapter.e());
        p3.execSQL(com.mixpanel.android.mpmetrics.MPDbAdapter.f());
        return;
    }

Method com.mixpanel.android.mpmetrics.MPDbAdapter$a.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        if (com.mixpanel.android.mpmetrics.f.b) {
            android.util.Log.v("MixpanelAPI.Database", "Upgrading app, replacing Mixpanel events DB");
        }
        String v2_11 = new StringBuilder();
        v2_11.append("DROP TABLE IF EXISTS ");
        v2_11.append(com.mixpanel.android.mpmetrics.MPDbAdapter$Table.a.a());
        p1.execSQL(v2_11.toString());
        String v2_3 = new StringBuilder();
        v2_3.append("DROP TABLE IF EXISTS ");
        v2_3.append(com.mixpanel.android.mpmetrics.MPDbAdapter$Table.b.a());
        p1.execSQL(v2_3.toString());
        p1.execSQL(com.mixpanel.android.mpmetrics.MPDbAdapter.c());
        p1.execSQL(com.mixpanel.android.mpmetrics.MPDbAdapter.d());
        p1.execSQL(com.mixpanel.android.mpmetrics.MPDbAdapter.e());
        p1.execSQL(com.mixpanel.android.mpmetrics.MPDbAdapter.f());
        return;
    }

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


    private final boolean a(String p55, long p56)
    {
        this.d().f();
        try {
            com.google.android.gms.measurement.internal.fg v3_9 = 0;
            Object v2_24 = new ark>com.google.android.gms.measurement.internal.edark>$a(this, 0);
            java.util.List v4_13 = this.d();
            String v5_118 = this.w;
            com.google.android.gms.common.internal.ab.a(v2_24);
            v4_13.d();
            v4_13.k();
            try {
                long v7_3;
                int v22;
                Long v15_6 = v4_13.y();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        long v13_19;
                        com.google.android.gms.measurement.internal.fg v3_10 = v5_118 cmp -1;
                        if (v3_10 == null) {
                            v13_19 = new String[] {0});
                        } else {
                            long v7_33 = new String[2];
                            v7_33[0] = 0;
                            v7_33[1] = String.valueOf(v5_118);
                            v13_19 = v7_33;
                        }
                        com.google.android.gms.measurement.internal.fg v3_15;
                        if (v3_10 == null) {
                            v3_15 = "";
                        } else {
                            v3_15 = " and rowid <= ?";
                        }
                        long v14_11 = new StringBuilder((String.valueOf(v3_15).length() + 84));
                        v14_11.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_11.append(v3_15);
                        v14_11.append(" order by rowid limit 1;");
                        v3_9 = v15_6.rawQuery(v14_11.toString(), v13_19);
                        if (v3_9.moveToFirst()) {
                            long v13_23 = v3_9.getString(0);
                            v3_9.close();
                            v22 = v3_9;
                            v7_3 = v13_23;
                            v3_9 = 0;
                            try {
                                long v13_6 = new String[2];
                                v13_6[0] = v3_9;
                                v13_6[1] = v7_3;
                                com.google.android.gms.internal.measurement.q v24 = v15_6;
                                Long v15_5 = v15_6.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_6, 0, 0, "rowid", "2");
                                try {
                                    if (v15_5.moveToFirst()) {
                                        long v13_10 = v15_5.getBlob(0);
                                        long v13_11 = com.google.android.gms.internal.measurement.fi.a(v13_10, 0, v13_10.length);
                                        long v14_8 = new com.google.android.gms.internal.measurement.t();
                                        try {
                                            v14_8.a(v13_11);
                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                            long v6_0 = v15_5;
                                            v4_13.r().an_().a("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.o.a(v3_9), v0_3);
                                            if (v6_0 == 0) {
                                                com.google.android.gms.measurement.internal.fg v3_14;
                                                if (v2_24.c == null) {
                                                    v3_14 = 1;
                                                } else {
                                                    if (!v2_24.c.isEmpty()) {
                                                        v3_14 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_14 != null) {
                                                    this.d().w();
                                                    this.d().x();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.measurement.internal.fg v3_8 = v2_24.a;
                                                    java.util.List v4_4 = new com.google.android.gms.internal.measurement.q[v2_24.c.size()];
                                                    v3_8.b = v4_4;
                                                    java.util.List v4_7 = this.i.b().e(v3_8.o);
                                                    long v7_28 = 0;
                                                    boolean v10_2 = 0;
                                                    long v12_17 = 0;
                                                    long v13_8 = 0;
                                                    while (v7_28 < v2_24.c.size()) {
                                                        int v40_0;
                                                        Long v15_3 = ((com.google.android.gms.internal.measurement.q) v2_24.c.get(v7_28));
                                                        if (!this.p().b(v2_24.a.o, v15_3.b)) {
                                                            String v5_6 = this.p().c(v2_24.a.o, v15_3.b);
                                                            if (v5_6 != null) {
                                                                if (v15_3.a == null) {
                                                                    int v9_6 = new com.google.android.gms.internal.measurement.r[0];
                                                                    v15_3.a = v9_6;
                                                                }
                                                                int v8_21 = v15_3.a;
                                                                int v9_7 = v8_21.length;
                                                                int v11_3 = 0;
                                                                long v16_1 = 0;
                                                                int v17_0 = 0;
                                                                while (v11_3 < v9_7) {
                                                                    Long v27_1;
                                                                    long v6_79 = v8_21[v11_3];
                                                                    com.google.android.gms.measurement.internal.ex v25_1 = v8_21;
                                                                    long v26_1 = v9_7;
                                                                    if (!"_c".equals(v6_79.a)) {
                                                                        v27_1 = v12_17;
                                                                        if ("_r".equals(v6_79.a)) {
                                                                            v6_79.c = Long.valueOf(1);
                                                                            v17_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v27_1 = v12_17;
                                                                        v6_79.c = Long.valueOf(1);
                                                                        v16_1 = 1;
                                                                    }
                                                                    v11_3++;
                                                                    v8_21 = v25_1;
                                                                    v9_7 = v26_1;
                                                                    v12_17 = v27_1;
                                                                }
                                                                Long v27_0 = v12_17;
                                                                if ((v16_1 == 0) && (v5_6 != null)) {
                                                                    this.i.r().x().a("Marking event as conversion", this.i.k().a(v15_3.b));
                                                                    long v6_11 = ((com.google.android.gms.internal.measurement.r[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                                    int v8_27 = new com.google.android.gms.internal.measurement.r();
                                                                    v8_27.a = "_c";
                                                                    v8_27.c = Long.valueOf(1);
                                                                    v6_11[(v6_11.length - 1)] = v8_27;
                                                                    v15_3.a = v6_11;
                                                                }
                                                                if (v17_0 == 0) {
                                                                    this.i.r().x().a("Marking event as real-time", this.i.k().a(v15_3.b));
                                                                    long v6_17 = ((com.google.android.gms.internal.measurement.r[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                                    int v8_33 = new com.google.android.gms.internal.measurement.r();
                                                                    v8_33.a = "_r";
                                                                    v8_33.c = Long.valueOf(1);
                                                                    v6_17[(v6_17.length - 1)] = v8_33;
                                                                    v15_3.a = v6_17;
                                                                }
                                                                long v12_12;
                                                                if (this.d().a(this.w(), v2_24.a.o, 0, 0, 0, 0, 1).e <= ((long) this.i.b().a(v2_24.a.o))) {
                                                                    v12_12 = 1;
                                                                } else {
                                                                    long v6_25 = 0;
                                                                    while (v6_25 < v15_3.a.length) {
                                                                        if (!"_r".equals(v15_3.a[v6_25].a)) {
                                                                            v6_25++;
                                                                        } else {
                                                                            int v8_42 = new com.google.android.gms.internal.measurement.r[(v15_3.a.length - 1)];
                                                                            if (v6_25 > 0) {
                                                                                System.arraycopy(v15_3.a, 0, v8_42, 0, v6_25);
                                                                            }
                                                                            if (v6_25 < v8_42.length) {
                                                                                System.arraycopy(v15_3.a, (v6_25 + 1), v8_42, v6_25, (v8_42.length - v6_25));
                                                                            }
                                                                            v15_3.a = v8_42;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_12 = v27_0;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.em.a(v15_3.b)) || (v5_6 == null)) {
                                                                    v40_0 = v7_28;
                                                                    long v37_0 = v12_12;
                                                                } else {
                                                                    v37_0 = v12_12;
                                                                    if (this.d().a(this.w(), v2_24.a.o, 0, 0, 1, 0, 0).c <= ((long) this.i.b().b(v2_24.a.o, com.google.android.gms.measurement.internal.e.v))) {
                                                                        v40_0 = v7_28;
                                                                    } else {
                                                                        this.i.r().i().a("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                        long v6_38 = v15_3.a;
                                                                        int v8_46 = v6_38.length;
                                                                        int v9_34 = 0;
                                                                        int v11_18 = 0;
                                                                        long v12_16 = 0;
                                                                        while (v9_34 < v8_46) {
                                                                            int v8_56 = v6_38[v9_34];
                                                                            if (!"_c".equals(v8_56.a)) {
                                                                                if ("_err".equals(v8_56.a)) {
                                                                                    v11_18 = 1;
                                                                                }
                                                                            } else {
                                                                                v12_16 = v8_56;
                                                                            }
                                                                            v9_34++;
                                                                        }
                                                                        v40_0 = v7_28;
                                                                        if ((v11_18 == 0) || (v12_16 == 0)) {
                                                                            if (v12_16 == 0) {
                                                                                this.i.r().an_().a("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                            } else {
                                                                                v12_16.a = "_err";
                                                                                v12_16.c = Long.valueOf(10);
                                                                            }
                                                                        } else {
                                                                            long v6_45 = v15_3.a;
                                                                            int v8_50 = new com.google.android.gms.internal.measurement.r[1];
                                                                            v8_50[0] = v12_16;
                                                                            v15_3.a = ((com.google.android.gms.internal.measurement.r[]) com.google.android.gms.common.util.b.a(v6_45, v8_50));
                                                                        }
                                                                    }
                                                                }
                                                                v12_17 = v37_0;
                                                            } else {
                                                                int v8_15;
                                                                this.f();
                                                                int v8_13 = v15_3.b;
                                                                com.google.android.gms.common.internal.ab.a(v8_13);
                                                                int v9_2 = v8_13.hashCode();
                                                                if (v9_2 == 94660) {
                                                                    if (!v8_13.equals("_in")) {
                                                                        v8_15 = -1;
                                                                    } else {
                                                                        v8_15 = 0;
                                                                    }
                                                                } else {
                                                                    if (v9_2 == 95025) {
                                                                        if (!v8_13.equals("_ug")) {
                                                                        } else {
                                                                            v8_15 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v9_2 == 95027) {
                                                                            if (!v8_13.equals("_ui")) {
                                                                            } else {
                                                                                v8_15 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v8_18;
                                                                switch (v8_15) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v8_18 = 1;
                                                                    default:
                                                                        v8_18 = 0;
                                                                }
                                                                if (v8_18 == 0) {
                                                                    v40_0 = v7_28;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.i.b().m(v2_24.a.o)) || (v5_6 == null)) {
                                                            } else {
                                                                String v5_7 = v15_3.a;
                                                                long v6_51 = 0;
                                                                long v7_17 = -1;
                                                                int v8_51 = -1;
                                                                while (v6_51 < v5_7.length) {
                                                                    if (!"value".equals(v5_7[v6_51].a)) {
                                                                        if ("currency".equals(v5_7[v6_51].a)) {
                                                                            v8_51 = v6_51;
                                                                        }
                                                                    } else {
                                                                        v7_17 = v6_51;
                                                                    }
                                                                    v6_51++;
                                                                }
                                                                if (v7_17 == -1) {
                                                                } else {
                                                                    if ((v5_7[v7_17].c != null) || (v5_7[v7_17].d != null)) {
                                                                        long v6_60;
                                                                        if (v8_51 != -1) {
                                                                            long v6_59 = v5_7[v8_51].b;
                                                                            if (v6_59 == 0) {
                                                                            } else {
                                                                                if (v6_59.length() == 3) {
                                                                                    int v8_53 = 0;
                                                                                    while (v8_53 < v6_59.length()) {
                                                                                        int v11_20 = v6_59.codePointAt(v8_53);
                                                                                        if (Character.isLetter(v11_20)) {
                                                                                            v8_53 += Character.charCount(v11_20);
                                                                                        } else {
                                                                                        }
                                                                                    }
                                                                                    v6_60 = 0;
                                                                                    if (v6_60 != 0) {
                                                                                        this.i.r().k().a("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                        v5_7 = ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(v5_7, v7_17), "_c"), 19, "currency");
                                                                                    }
                                                                                    v15_3.a = v5_7;
                                                                                    if ((v4_7 != null) && ("_e".equals(v15_3.b))) {
                                                                                        if (v15_3.a != null) {
                                                                                            if (v15_3.a.length != 0) {
                                                                                                this.f();
                                                                                                String v5_19 = ((Long) com.google.android.gms.measurement.internal.ej.b(v15_3, "_et"));
                                                                                                if (v5_19 != null) {
                                                                                                    v13_8 += v5_19.longValue();
                                                                                                    long v6_74 = (v10_2 + 1);
                                                                                                    v3_8.b[v10_2] = v15_3;
                                                                                                    v10_2 = v6_74;
                                                                                                    v7_28 = (v40_0 + 1);
                                                                                                    int v11 = 0;
                                                                                                } else {
                                                                                                    this.i.r().i().a("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                                                }
                                                                                            } else {
                                                                                            }
                                                                                        }
                                                                                        this.i.r().i().a("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                                    }
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v6_60 = 1;
                                                                        } else {
                                                                            v6_60 = 1;
                                                                        }
                                                                    } else {
                                                                        this.i.r().k().a("Value must be specified with a numeric type.");
                                                                        v5_7 = ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(v5_7, v7_17), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            String v5_35;
                                                            this.i.r().i().a("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o), this.i.k().a(v15_3.b));
                                                            if (this.p().f(v2_24.a.o)) {
                                                                v5_35 = 1;
                                                            } else {
                                                                if (!this.p().g(v2_24.a.o)) {
                                                                    v5_35 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_35 == null) && (!"_err".equals(v15_3.b))) {
                                                                this.i.j().a(v2_24.a.o, 11, "_ev", v15_3.b, 0);
                                                            }
                                                            v40_0 = v7_28;
                                                        }
                                                    }
                                                    Long v27_2 = v12_17;
                                                    if (v10_2 < v2_24.c.size()) {
                                                        v3_8.b = ((com.google.android.gms.internal.measurement.q[]) java.util.Arrays.copyOf(v3_8.b, v10_2));
                                                    }
                                                    long v6_1;
                                                    java.util.List v4_8;
                                                    if (v4_7 == null) {
                                                        v4_8 = this;
                                                        v6_1 = v2_24;
                                                    } else {
                                                        com.google.android.gms.measurement.internal.q v1_7;
                                                        int v42_0;
                                                        java.util.List v4_10 = this.d().c(v3_8.o, "_lte");
                                                        if (v4_10 == null) {
                                                            v42_0 = v2_24;
                                                            v1_7 = new com.google.android.gms.measurement.internal.el;
                                                            v4_8 = this;
                                                            v1_7(v3_8.o, "auto", "_lte", this.i.m().a(), Long.valueOf(v13_8));
                                                        } else {
                                                            if (v4_10.e != null) {
                                                                String v5_59 = new com.google.android.gms.measurement.internal.el;
                                                                v42_0 = v2_24;
                                                                try {
                                                                    v5_59(v3_8.o, "auto", "_lte", this.i.m().a(), Long.valueOf((((Long) v4_10.e).longValue() + v13_8)));
                                                                    v1_7 = v5_59;
                                                                    v4_8 = this;
                                                                } catch (android.database.sqlite.SQLiteException v0_5) {
                                                                    com.google.android.gms.measurement.internal.q v1_1 = v0_5;
                                                                    this.d().x();
                                                                    throw v1_1;
                                                                }
                                                            } else {
                                                            }
                                                        }
                                                        Object v2_5 = new com.google.android.gms.internal.measurement.w();
                                                        v2_5.b = "_lte";
                                                        v2_5.a = Long.valueOf(v4_8.i.m().a());
                                                        v2_5.d = ((Long) v1_7.e);
                                                        String v5_69 = 0;
                                                        while (v5_69 < v3_8.c.length) {
                                                            if (!"_lte".equals(v3_8.c[v5_69].b)) {
                                                                v5_69++;
                                                            } else {
                                                                v3_8.c[v5_69] = v2_5;
                                                                String v5_70 = 1;
                                                            }
                                                            if (v5_70 != null) {
                                                                v6_1 = v42_0;
                                                            } else {
                                                                v3_8.c = ((com.google.android.gms.internal.measurement.w[]) java.util.Arrays.copyOf(v3_8.c, (v3_8.c.length + 1)));
                                                                v6_1 = v42_0;
                                                                v3_8.c[(v6_1.a.c.length - 1)] = v2_5;
                                                            }
                                                            if (v13_8 > 0) {
                                                                this.d().a(v1_7);
                                                                v4_8.i.r().w().a("Updated lifetime engagement user property with value. Value", v1_7.e);
                                                            }
                                                        }
                                                        v5_70 = 0;
                                                    }
                                                    int v51_1;
                                                    v3_8.A = v4_8.a(v3_8.o, v3_8.c, v3_8.b);
                                                    if (!v4_8.i.b().d(v6_1.a.o)) {
                                                        v51_1 = v6_1;
                                                    } else {
                                                        com.google.android.gms.measurement.internal.q v1_15 = new java.util.HashMap();
                                                        Object v2_16 = new com.google.android.gms.internal.measurement.q[v3_8.b.length];
                                                        String v5_2 = v4_8.i.j().h();
                                                        long v7_11 = v3_8.b;
                                                        int v8_10 = v7_11.length;
                                                        int v9_1 = 0;
                                                        boolean v10_0 = 0;
                                                        while (v9_1 < v8_10) {
                                                            int v50;
                                                            com.google.android.gms.measurement.internal.an v46;
                                                            int v51_0;
                                                            int v44;
                                                            int v43;
                                                            String v45;
                                                            int v11_29 = v7_11[v9_1];
                                                            if (!v11_29.b.equals("_ep")) {
                                                                com.google.android.gms.measurement.internal.fg v3_25;
                                                                long v47;
                                                                v43 = v7_11;
                                                                long v12_33 = this.p().e(v6_1.a.o);
                                                                v4_8.i.j();
                                                                long v14_14 = com.google.android.gms.measurement.internal.em.a(v11_29.c.longValue(), v12_33);
                                                                v46 = v3_8;
                                                                v44 = v8_10;
                                                                v45 = v9_1;
                                                                com.google.android.gms.measurement.internal.fg v3_23 = Long.valueOf(1);
                                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                                    v47 = v12_33;
                                                                    v3_25 = 0;
                                                                } else {
                                                                    if (v3_23 != null) {
                                                                        int v8_75 = v11_29.a;
                                                                        int v9_47 = v8_75.length;
                                                                        v47 = v12_33;
                                                                        long v12_34 = 0;
                                                                        while (v12_34 < v9_47) {
                                                                            long v13_27 = v8_75[v12_34];
                                                                            if (!"_dbg".equals(v13_27.a)) {
                                                                                v12_34++;
                                                                            } else {
                                                                                if (((!(v3_23 instanceof Long)) || (!v3_23.equals(v13_27.c))) && (((!(v3_23 instanceof String)) || (!v3_23.equals(v13_27.b))) && ((!(v3_23 instanceof Double)) || (!v3_23.equals(v13_27.d))))) {
                                                                                    break;
                                                                                }
                                                                                v3_25 = 1;
                                                                            }
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                long v12_35;
                                                                if (v3_25 != null) {
                                                                    v12_35 = 1;
                                                                } else {
                                                                    v12_35 = this.p().d(v6_1.a.o, v11_29.b);
                                                                }
                                                                if (v12_35 > 0) {
                                                                    com.google.android.gms.measurement.internal.fg v3_1 = ((com.google.android.gms.measurement.internal.fg) v1_15.get(v11_29.b));
                                                                    if (v3_1 == null) {
                                                                        v3_1 = this.d().a(v6_1.a.o, v11_29.b);
                                                                        if (v3_1 == null) {
                                                                            v4_8.i.r().i().a("Event being bundled has no eventAggregate. appId, eventName", v6_1.a.o, v11_29.b);
                                                                            v3_1 = new com.google.android.gms.measurement.internal.fg;
                                                                            v3_1(v6_1.a.o, v11_29.b, 1, 1, v11_29.c.longValue(), 0, 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    int v8_83;
                                                                    this.f();
                                                                    long v7_94 = ((Long) com.google.android.gms.measurement.internal.ej.b(v11_29, "_eid"));
                                                                    if (v7_94 == 0) {
                                                                        v8_83 = 0;
                                                                    } else {
                                                                        v8_83 = 1;
                                                                    }
                                                                    int v8_84 = Boolean.valueOf(v8_83);
                                                                    if (v12_35 != 1) {
                                                                        if (v5_2.nextInt(v12_35) != 0) {
                                                                            String v5_129;
                                                                            Boolean v53;
                                                                            long v52;
                                                                            v50 = v5_2;
                                                                            if (!v4_8.i.b().o(v6_1.a.o)) {
                                                                                v51_0 = v6_1;
                                                                                v52 = v7_94;
                                                                                v53 = v8_84;
                                                                                if (Math.abs((v11_29.c.longValue() - v3_1.f)) < 86400000) {
                                                                                    v5_129 = 0;
                                                                                } else {
                                                                                    v5_129 = 1;
                                                                                }
                                                                            } else {
                                                                                long v16_11;
                                                                                if (v3_1.g == null) {
                                                                                    v4_8.i.j();
                                                                                    v51_0 = v6_1;
                                                                                    v52 = v7_94;
                                                                                    v53 = v8_84;
                                                                                    v16_11 = com.google.android.gms.measurement.internal.em.a(v11_29.d.longValue(), v47);
                                                                                } else {
                                                                                    v16_11 = v3_1.g.longValue();
                                                                                    v51_0 = v6_1;
                                                                                    v52 = v7_94;
                                                                                    v53 = v8_84;
                                                                                }
                                                                                if (v16_11 == v14_14) {
                                                                                }
                                                                            }
                                                                            if (v5_129 == null) {
                                                                                if (!v53.booleanValue()) {
                                                                                    v9_1 = (v45 + 1);
                                                                                    v7_11 = v43;
                                                                                    v8_10 = v44;
                                                                                    v3_8 = v46;
                                                                                    v5_2 = v50;
                                                                                    v6_1 = v51_0;
                                                                                } else {
                                                                                    v1_15.put(v11_29.b, v3_1.a(v52, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.f();
                                                                                v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_efs", Long.valueOf(1));
                                                                                this.f();
                                                                                long v12_36 = ((long) v12_35);
                                                                                v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_sr", Long.valueOf(v12_36));
                                                                                String v5_136 = (v10_0 + 1);
                                                                                v2_16[v10_0] = v11_29;
                                                                                if (v53.booleanValue()) {
                                                                                    v3_1 = v3_1.a(0, Long.valueOf(v12_36), Boolean.valueOf(1));
                                                                                }
                                                                                v1_15.put(v11_29.b, v3_1.a(v11_29.c.longValue(), v14_14));
                                                                                v10_0 = v5_136;
                                                                            }
                                                                        } else {
                                                                            this.f();
                                                                            long v12_37 = ((long) v12_35);
                                                                            v50 = v5_2;
                                                                            v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_sr", Long.valueOf(v12_37));
                                                                            String v5_1 = (v10_0 + 1);
                                                                            v2_16[v10_0] = v11_29;
                                                                            if (v8_84.booleanValue()) {
                                                                                v3_1 = v3_1.a(0, Long.valueOf(v12_37), 0);
                                                                            }
                                                                            v1_15.put(v11_29.b, v3_1.a(v11_29.c.longValue(), v14_14));
                                                                            v10_0 = v5_1;
                                                                        }
                                                                    } else {
                                                                        long v7_4 = (v10_0 + 1);
                                                                        v2_16[v10_0] = v11_29;
                                                                        if ((v8_84.booleanValue()) && ((v3_1.h != null) || ((v3_1.i != null) || (v3_1.j != null)))) {
                                                                            v1_15.put(v11_29.b, v3_1.a(0, 0, 0));
                                                                        }
                                                                        v50 = v5_2;
                                                                        v51_0 = v6_1;
                                                                        v10_0 = v7_4;
                                                                    }
                                                                } else {
                                                                    v4_8.i.r().i().a("Sample rate must be positive. event, rate", v11_29.b, Integer.valueOf(v12_35));
                                                                    com.google.android.gms.measurement.internal.fg v3_7 = (v10_0 + 1);
                                                                    v2_16[v10_0] = v11_29;
                                                                    v10_0 = v3_7;
                                                                    v50 = v5_2;
                                                                }
                                                                v51_0 = v6_1;
                                                            } else {
                                                                this.f();
                                                                long v12_2 = ((String) com.google.android.gms.measurement.internal.ej.b(v11_29, "_en"));
                                                                long v13_1 = ((com.google.android.gms.measurement.internal.fg) v1_15.get(v12_2));
                                                                if (v13_1 == 0) {
                                                                    v13_1 = this.d().a(v6_1.a.o, v12_2);
                                                                    v1_15.put(v12_2, v13_1);
                                                                }
                                                                if (v13_1.h != null) {
                                                                    v43 = v7_11;
                                                                    v46 = v3_8;
                                                                    v50 = v5_2;
                                                                    v51_0 = v6_1;
                                                                } else {
                                                                    if (v13_1.i.longValue() > 1) {
                                                                        this.f();
                                                                        v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_sr", v13_1.i);
                                                                    }
                                                                    if ((v13_1.j == null) || (!v13_1.j.booleanValue())) {
                                                                        v43 = v7_11;
                                                                    } else {
                                                                        this.f();
                                                                        v43 = v7_11;
                                                                        v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_efs", Long.valueOf(1));
                                                                    }
                                                                    long v7_10 = (v10_0 + 1);
                                                                    v2_16[v10_0] = v11_29;
                                                                    v46 = v3_8;
                                                                    v50 = v5_2;
                                                                    v51_0 = v6_1;
                                                                    v10_0 = v7_10;
                                                                }
                                                                v44 = v8_10;
                                                                v45 = v9_1;
                                                            }
                                                        }
                                                        v51_1 = v6_1;
                                                        if (v10_0 < v3_8.b.length) {
                                                            v3_8.b = ((com.google.android.gms.internal.measurement.q[]) java.util.Arrays.copyOf(v2_16, v10_0));
                                                        }
                                                        com.google.android.gms.measurement.internal.q v1_17 = v1_15.entrySet().iterator();
                                                        while (v1_17.hasNext()) {
                                                            this.d().a(((com.google.android.gms.measurement.internal.fg) ((java.util.Map$Entry) v1_17.next()).getValue()));
                                                        }
                                                    }
                                                    v3_8.e = Long.valueOf(nan);
                                                    v3_8.f = Long.valueOf(-0.0);
                                                    com.google.android.gms.measurement.internal.q v1_22 = 0;
                                                    while (v1_22 < v3_8.b.length) {
                                                        Object v2_27 = v3_8.b[v1_22];
                                                        if (v2_27.c.longValue() < v3_8.e.longValue()) {
                                                            v3_8.e = v2_27.c;
                                                        }
                                                        if (v2_27.c.longValue() > v3_8.f.longValue()) {
                                                            v3_8.f = v2_27.c;
                                                        }
                                                        v1_22++;
                                                    }
                                                    com.google.android.gms.measurement.internal.q v1_23 = v51_1;
                                                    Object v2_23 = v1_23.a.o;
                                                    String v5_82 = this.d().b(v2_23);
                                                    if (v5_82 != null) {
                                                        if (v3_8.b.length > 0) {
                                                            int v8_69;
                                                            long v6_114 = v5_82.i();
                                                            if (v6_114 == 0) {
                                                                v8_69 = 0;
                                                            } else {
                                                                v8_69 = Long.valueOf(v6_114);
                                                            }
                                                            v3_8.h = v8_69;
                                                            int v8_70 = v5_82.h();
                                                            if (v8_70 != 0) {
                                                                v6_114 = v8_70;
                                                            } else {
                                                            }
                                                            long v6_115;
                                                            if (v6_114 == 0) {
                                                                v6_115 = 0;
                                                            } else {
                                                                v6_115 = Long.valueOf(v6_114);
                                                            }
                                                            v3_8.g = v6_115;
                                                            v5_82.s();
                                                            v3_8.w = Integer.valueOf(((int) v5_82.p()));
                                                            v5_82.a(v3_8.e.longValue());
                                                            v5_82.b(v3_8.f.longValue());
                                                            v3_8.x = v5_82.A();
                                                            this.d().a(v5_82);
                                                        }
                                                    } else {
                                                        v4_8.i.r().an_().a("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.o.a(v1_23.a.o));
                                                    }
                                                    if (v3_8.b.length > 0) {
                                                        v4_8.i.u();
                                                        String v5_90 = this.p().a(v1_23.a.o);
                                                        if (v5_90 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v1_23.a.y)) {
                                                                v4_8.i.r().i().a("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.o.a(v1_23.a.o));
                                                            } else {
                                                                v3_8.E = Long.valueOf(-1);
                                                            }
                                                        } else {
                                                            if (v5_90.a != null) {
                                                                v3_8.E = v5_90.a;
                                                            } else {
                                                            }
                                                        }
                                                        this.d().a(v3_8, v27_2);
                                                    }
                                                    com.google.android.gms.measurement.internal.fg v3_18 = this.d();
                                                    com.google.android.gms.measurement.internal.q v1_24 = v1_23.b;
                                                    com.google.android.gms.common.internal.ab.a(v1_24);
                                                    v3_18.d();
                                                    v3_18.k();
                                                    String v5_102 = new StringBuilder("rowid in (");
                                                    long v6_131 = 0;
                                                    while (v6_131 < v1_24.size()) {
                                                        if (v6_131 != 0) {
                                                            v5_102.append(",");
                                                        }
                                                        v5_102.append(((Long) v1_24.get(v6_131)).longValue());
                                                        v6_131++;
                                                    }
                                                    v5_102.append(")");
                                                    String v5_104 = v3_18.y().delete("raw_events", v5_102.toString(), 0);
                                                    if (v5_104 != v1_24.size()) {
                                                        v3_18.r().an_().a("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_104), Integer.valueOf(v1_24.size()));
                                                    }
                                                    com.google.android.gms.measurement.internal.q v1_27 = this.d();
                                                    com.google.android.gms.measurement.internal.fg v3_21 = v1_27.y();
                                                    try {
                                                        long v6_137 = new String[2];
                                                        v6_137[0] = v2_23;
                                                        v6_137[1] = v2_23;
                                                        v3_21.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_137);
                                                    } catch (android.database.sqlite.SQLiteException v0_6) {
                                                        v1_27.r().an_().a("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.o.a(v2_23), v0_6);
                                                    }
                                                    this.d().w();
                                                    this.d().x();
                                                    return 1;
                                                }
                                            } else {
                                                v6_0.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                        }
                                        if (v15_5.moveToNext()) {
                                            v4_13.r().i().a("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.o.a(v3_9));
                                        }
                                        int v17_4;
                                        long v16_6;
                                        v15_5.close();
                                        v2_24.a(v14_8);
                                        if (v5_118 == -1) {
                                            boolean v10_6 = new String[2];
                                            v10_6[0] = v3_9;
                                            v10_6[1] = v7_3;
                                            v16_6 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_4 = v10_6;
                                        } else {
                                            long v13_16 = new String[3];
                                            v13_16[0] = v3_9;
                                            v13_16[1] = v7_3;
                                            v13_16[2] = String.valueOf(v5_118);
                                            v16_6 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_4 = v13_16;
                                        }
                                        v6_0 = v15_5;
                                        String v5_47 = v24.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_6, v17_4, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_47.moveToFirst()) {
                                                v4_13.r().i().a("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.o.a(v3_9));
                                                if (v5_47 == null) {
                                                } else {
                                                    v5_47.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v6_0 = v5_47;
                                            com.google.android.gms.measurement.internal.q v1_2 = v0_0;
                                            if (v6_0 != 0) {
                                                v6_0.close();
                                            }
                                            throw v1_2;
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v7_3 = v3_9;
                                            v6_0 = v5_47;
                                            com.google.android.gms.measurement.internal.fg v3_0 = v0_1;
                                            v4_13.r().an_().a("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.o.a(v7_3), v3_0);
                                            if (v6_0 == 0) {
                                            } else {
                                                v6_0.close();
                                            }
                                        }
                                        do {
                                            long v6_92 = v5_47.getLong(0);
                                            long v12_24 = v5_47.getBlob(3);
                                            boolean v10_11 = com.google.android.gms.internal.measurement.fi.a(v12_24, 0, v12_24.length);
                                            long v12_26 = new com.google.android.gms.internal.measurement.q();
                                            v12_26.a(v10_11);
                                            v12_26.b = v5_47.getString(1);
                                            v12_26.c = Long.valueOf(v5_47.getLong(2));
                                            if (v2_24.a(v6_92, v12_26)) {
                                            } else {
                                                if (v5_47 == null) {
                                                } else {
                                                    v5_47.close();
                                                }
                                            }
                                        } while(v5_47.moveToNext());
                                        if (v5_47 == null) {
                                        } else {
                                            v5_47.close();
                                        }
                                    } else {
                                        v4_13.r().an_().a("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.o.a(v3_9));
                                        if (v15_5 == null) {
                                        } else {
                                            v15_5.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_5;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v6_0 = v15_5;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_5;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v7_3 = v3_9;
                                    v6_0 = v15_5;
                                }
                                v7_3 = v3_9;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v6_0 = v22;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v7_3 = v3_9;
                                v6_0 = v22;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    } else {
                        long v14_12;
                        long v13_24 = v5_118 cmp -1;
                        try {
                            if (v13_24 == 0) {
                                v14_12 = new String[1];
                                v14_12[0] = String.valueOf(p56);
                            } else {
                                v14_12 = new String[2];
                                v14_12[0] = String.valueOf(v5_118);
                                v14_12[1] = String.valueOf(p56);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            v6_0 = 0;
                            v7_3 = 0;
                        }
                        long v13_26;
                        if (v13_24 == 0) {
                            v13_26 = "";
                        } else {
                            v13_26 = "rowid <= ? and ";
                        }
                        com.google.android.gms.measurement.internal.fg v3_34 = new StringBuilder((String.valueOf(v13_26).length() + 148));
                        v3_34.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_34.append(v13_26);
                        v3_34.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_9 = v15_6.rawQuery(v3_34.toString(), v14_12);
                        if (v3_9.moveToFirst()) {
                            long v7_7 = v3_9.getString(0);
                            try {
                                long v13_4 = v3_9.getString(1);
                                v3_9.close();
                                v22 = v3_9;
                                v3_9 = v7_7;
                                v7_3 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v6_0 = v3_9;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v6_0 = v3_9;
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v6_0 = v3_9;
                    v7_3 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v6_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
                v3_0 = v0_7;
                v6_0 = 0;
                v7_3 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
            }
        } catch (android.database.sqlite.SQLiteException v0_2) {
            v1_1 = v0_2;
        }
    }

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


    private final boolean a(String p14, com.google.android.gms.measurement.internal.zzad p15)
    {
        String v3_1;
        Object v0_6 = p15.zzaid.getString("currency");
        if (!"ecommerce_purchase".equals(p15.name)) {
            v3_1 = p15.zzaid.getLong("value").longValue();
        } else {
            String v3_7 = (p15.zzaid.zzbq("value").doubleValue() * 1000000.0);
            if (v3_7 == 0) {
                v3_7 = (((double) p15.zzaid.getLong("value").longValue()) * 1000000.0);
            }
            if ((v3_7 > 9.223372036854776e+18) || (v3_7 < -9.223372036854776e+18)) {
                this.i.r().i().a("Data lost. Currency value is too big. appId", com.google.android.gms.measurement.internal.o.a(p14), Double.valueOf(v3_7));
                return 0;
            } else {
                v3_1 = Math.round(v3_7);
            }
        }
        if (!android.text.TextUtils.isEmpty(v0_6)) {
            Object v0_8 = v0_6.toUpperCase(java.util.Locale.US);
            if (v0_8.matches("[A-Z]{3}")) {
                Object v0_11;
                String v1_24 = String.valueOf("_ltv_");
                Object v0_9 = String.valueOf(v0_8);
                if (v0_9.length() == 0) {
                    v0_11 = new String(v1_24);
                } else {
                    v0_11 = v1_24.concat(v0_9);
                }
                Object v0_1;
                int v9_1 = v0_11;
                Object v0_13 = this.d().c(p14, v9_1);
                if ((v0_13 != null) && ((v0_13.e instanceof Long))) {
                    Object v2_5 = new com.google.android.gms.measurement.internal.el;
                    v2_5(p14, p15.origin, v9_1, this.i.m().a(), Long.valueOf((((Long) v0_13.e).longValue() + v3_1)));
                    v0_1 = v2_5;
                } else {
                    Object v0_2 = this.d();
                    String v1_5 = (this.i.b().b(p14, com.google.android.gms.measurement.internal.e.M) - 1);
                    com.google.android.gms.common.internal.ab.a(p14);
                    v0_2.d();
                    v0_2.k();
                    try {
                        com.google.android.gms.measurement.internal.em v6_2 = v0_2.y();
                        int v8_1 = new String[3];
                        v8_1[0] = p14;
                        v8_1[1] = p14;
                        v8_1[2] = String.valueOf(v1_5);
                        v6_2.execSQL("delete from user_attributes where app_id=? and name in (select name from user_attributes where app_id=? and name like \'_ltv_%\' order by set_timestamp desc limit ?,10);", v8_1);
                    } catch (String v1_7) {
                        v0_2.r().an_().a("Error pruning currencies. appId", com.google.android.gms.measurement.internal.o.a(p14), v1_7);
                    }
                    v0_1 = new com.google.android.gms.measurement.internal.el;
                    v0_1(p14, p15.origin, v9_1, this.i.m().a(), Long.valueOf(v3_1));
                }
                if (!this.d().a(v0_1)) {
                    this.i.r().an_().a("Too many unique user properties are set. Ignoring user property. appId", com.google.android.gms.measurement.internal.o.a(p14), this.i.k().c(v0_1.c), v0_1.e);
                    this.i.j().a(p14, 9, 0, 0, 0);
                }
            }
        }
        return 1;
    }

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


    final com.google.android.gms.internal.measurement.o[] a(String p89, com.google.android.gms.internal.measurement.q[] p90, com.google.android.gms.internal.measurement.w[] p91)
    {
        String v15_0 = p89;
        String v13_4 = p90;
        String vtmp1 = com.google.android.gms.common.internal.ab.a(p89);
        boolean v11_10 = new java.util.HashSet();
        long[] v12_15 = new android.support.v4.util.ArrayMap();
        android.support.v4.util.ArrayMap v10_0 = new android.support.v4.util.ArrayMap();
        Integer v9_1 = new android.support.v4.util.ArrayMap();
        int v8_2 = new android.support.v4.util.ArrayMap();
        boolean v6_11 = new android.support.v4.util.ArrayMap();
        boolean v23 = this.t().d(p89, com.google.android.gms.measurement.internal.e.ab);
        int v1_63 = this.i().e(p89);
        if (v1_63 != 0) {
            long v2_47 = v1_63.keySet().iterator();
            while (v2_47.hasNext()) {
                int v1_59;
                String v29_0;
                int v30_1;
                android.support.v4.util.ArrayMap v28;
                com.google.android.gms.internal.measurement.w[] v4_13 = ((Integer) v2_47.next()).intValue();
                String v5_17 = ((com.google.android.gms.internal.measurement.u) v1_63.get(Integer.valueOf(v4_13)));
                String v3_23 = ((java.util.BitSet) v10_0.get(Integer.valueOf(v4_13)));
                Object v27_0 = v1_63;
                int v1_58 = ((java.util.BitSet) v9_1.get(Integer.valueOf(v4_13)));
                if (!v23) {
                    v28 = v1_58;
                    v29_0 = v2_47;
                    v30_1 = v11_10;
                    v1_59 = 0;
                } else {
                    v28 = v1_58;
                    v1_59 = new android.support.v4.util.ArrayMap();
                    if (v5_17 == null) {
                        v29_0 = v2_47;
                        v30_1 = v11_10;
                    } else {
                        v29_0 = v2_47;
                        if (v5_17.c != null) {
                            long v2_36 = v5_17.c;
                            v30_1 = v11_10;
                            boolean v11_5 = v2_36.length;
                            String v14_2 = 0;
                            while (v14_2 < v11_5) {
                                int v31_0 = v11_5;
                                boolean v11_6 = v2_36[v14_2];
                                int v32_0 = v2_36;
                                if (v11_6.a != null) {
                                    v1_59.put(v11_6.a, v11_6.b);
                                }
                                v14_2++;
                                v11_5 = v31_0;
                                v2_36 = v32_0;
                            }
                        }
                    }
                    v8_2.put(Integer.valueOf(v4_13), v1_59);
                }
                long v2_40;
                if (v3_23 != null) {
                    v2_40 = v28;
                } else {
                    v3_23 = new java.util.BitSet();
                    v10_0.put(Integer.valueOf(v4_13), v3_23);
                    v2_40 = new java.util.BitSet();
                    v9_1.put(Integer.valueOf(v4_13), v2_40);
                }
                boolean v11_9 = 0;
                while (v11_9 < (v5_17.a.length << 6)) {
                    android.support.v4.util.ArrayMap v34_3;
                    Integer v33_3;
                    android.support.v4.util.ArrayMap v35_2;
                    int v8_9;
                    if (!com.google.android.gms.measurement.internal.ej.a(v5_17.a, v11_9)) {
                        v33_3 = v8_2;
                        v34_3 = v9_1;
                        v35_2 = v10_0;
                        v8_9 = 0;
                    } else {
                        v33_3 = v8_2;
                        v34_3 = v9_1;
                        v35_2 = v10_0;
                        this.r().x().a("Filter already evaluated. audience ID, filter ID", Integer.valueOf(v4_13), Integer.valueOf(v11_9));
                        v2_40.set(v11_9);
                        if (!com.google.android.gms.measurement.internal.ej.a(v5_17.b, v11_9)) {
                        } else {
                            v3_23.set(v11_9);
                            v8_9 = 1;
                        }
                    }
                    if ((v1_59 != 0) && (v8_9 == 0)) {
                        v1_59.remove(Integer.valueOf(v11_9));
                    }
                    v11_9++;
                    v8_2 = v33_3;
                    v9_1 = v34_3;
                    v10_0 = v35_2;
                }
                Integer v33_2 = v8_2;
                android.support.v4.util.ArrayMap v34_2 = v9_1;
                android.support.v4.util.ArrayMap v35_1 = v10_0;
                int v8_5 = new com.google.android.gms.internal.measurement.o();
                v12_15.put(Integer.valueOf(v4_13), v8_5);
                v8_5.d = Boolean.valueOf(0);
                v8_5.c = v5_17;
                v8_5.b = new com.google.android.gms.internal.measurement.u();
                v8_5.b.b = com.google.android.gms.measurement.internal.ej.a(v3_23);
                v8_5.b.a = com.google.android.gms.measurement.internal.ej.a(v2_40);
                if (v23) {
                    v8_5.b.c = ark>com.google.android.gms.measurement.internal.erark>.a(v1_59);
                    v6_11.put(Integer.valueOf(v4_13), new android.support.v4.util.ArrayMap());
                }
                v1_63 = v27_0;
                v2_47 = v29_0;
                v11_10 = v30_1;
                v8_2 = v33_2;
                v9_1 = v34_2;
                v10_0 = v35_1;
            }
        }
        Integer v33_1 = v8_2;
        android.support.v4.util.ArrayMap v34_1 = v9_1;
        android.support.v4.util.ArrayMap v35_0 = v10_0;
        int v30_0 = v11_10;
        if (p90 != null) {
            android.support.v4.util.ArrayMap v10_8 = new android.support.v4.util.ArrayMap();
            Integer v9_2 = p90.length;
            int v1_77 = 0;
            long v2_66 = 0;
            int v8_3 = 0;
            int v16_8 = 0;
            while (v8_3 < v9_2) {
                String v63_1;
                com.google.android.gms.internal.measurement.w[] v4_10;
                android.support.v4.util.ArrayMap v59_1;
                android.support.v4.util.ArrayMap v34_0;
                Integer v33_0;
                String v40_1;
                String v13_18;
                String v5_8;
                String v62_2;
                java.util.Iterator v56_1;
                String v3_20;
                java.util.BitSet v26;
                Object v27_1;
                boolean v38_0;
                int v47_0;
                android.support.v4.util.ArrayMap v10_7;
                String v29_1;
                String v3_45 = v13_4[v8_3];
                boolean v11_28 = v3_45.b;
                String v14_14 = v3_45.a;
                if (!this.t().d(v15_0, com.google.android.gms.measurement.internal.e.V)) {
                    v13_18 = v3_45;
                    v38_0 = v6_11;
                    v40_1 = v1_77;
                    v26 = v2_66;
                    v5_8 = v11_28;
                    v29_1 = v14_14;
                    v27_1 = v16_8;
                    String v3_9;
                    long v2_15;
                    java.util.Iterator v45;
                    android.support.v4.util.ArrayMap v44;
                    int v1_132;
                    String v43;
                    int v46;
                    int v42;
                    int v1_131 = this.i().a(v15_0, v13_18.b);
                    if (v1_131 != 0) {
                        v43 = v10_8;
                        v44 = v12_15;
                        v46 = v13_18;
                        v2_15 = v30_0;
                        v3_9 = v33_1;
                        v45 = v34_1;
                        v42 = v35_0;
                        v33_0 = v8_3;
                        v34_0 = v9_2;
                        v1_132 = v1_131.a();
                    } else {
                        this.r().i().a("Event aggregate wasn\'t created during raw event logging. appId, event", com.google.android.gms.measurement.internal.o.a(p89), this.o().a(v5_8));
                        v1_132 = new com.google.android.gms.measurement.internal.fg;
                        v33_0 = v8_3;
                        v34_0 = v9_2;
                        v43 = v10_8;
                        v42 = v35_0;
                        v45 = v34_1;
                        v44 = v12_15;
                        v2_15 = v30_0;
                        v46 = v13_18;
                        v3_9 = v33_1;
                        v1_132(v15_0, v13_18.b, 1, 1, v13_18.c.longValue(), 0, 0, 0, 0, 0);
                    }
                    boolean v11_3;
                    this.i().a(v1_132);
                    int v8_21 = v1_132.c;
                    android.support.v4.util.ArrayMap v10_1 = v43;
                    int v1_136 = ((java.util.Map) v10_1.get(v5_8));
                    if (v1_136 != 0) {
                        v11_3 = p89;
                    } else {
                        v11_3 = p89;
                        v1_136 = this.i().f(p89, v5_8);
                        if (v1_136 == 0) {
                            v1_136 = new android.support.v4.util.ArrayMap();
                        }
                        v10_1.put(v5_8, v1_136);
                    }
                    long[] v12_10 = v1_136;
                    String v13_1 = v12_10.keySet().iterator();
                    while (v13_1.hasNext()) {
                        String v14_16 = ((Integer) v13_1.next()).intValue();
                        if (!v2_15.contains(Integer.valueOf(v14_16))) {
                            Boolean v51_0;
                            java.util.Map v50;
                            boolean v11_1;
                            long v2_0;
                            String v15_4 = v44;
                            int v47_1 = v10_1;
                            android.support.v4.util.ArrayMap v10_6 = v42;
                            boolean v6_5 = ((java.util.BitSet) v10_6.get(Integer.valueOf(v14_16)));
                            android.support.v4.util.ArrayMap v48 = v2_15;
                            com.google.android.gms.internal.measurement.q[] v49 = v13_1;
                            String v13_20 = v45;
                            long v2_95 = ((java.util.BitSet) v13_20.get(Integer.valueOf(v14_16)));
                            if (!v23) {
                                v50 = v2_95;
                                v11_1 = v38_0;
                                v2_0 = 0;
                                v51_0 = 0;
                            } else {
                                v50 = v2_95;
                                v51_0 = ((java.util.Map) v3_9.get(Integer.valueOf(v14_16)));
                                v11_1 = v38_0;
                                v2_0 = ((java.util.Map) v11_1.get(Integer.valueOf(v14_16)));
                            }
                            java.util.Iterator v56_0;
                            String v13_0;
                            boolean v11_2;
                            android.support.v4.util.ArrayMap v55;
                            int v1_0;
                            if (((com.google.android.gms.internal.measurement.o) v15_4.get(Integer.valueOf(v14_16))) != null) {
                                v55 = v11_1;
                                v56_0 = v13_20;
                                v1_0 = v50;
                                v11_2 = v51_0;
                                v13_0 = v2_0;
                            } else {
                                Integer v54;
                                android.support.v4.util.ArrayMap v53;
                                int v1_2 = new com.google.android.gms.internal.measurement.o();
                                v15_4.put(Integer.valueOf(v14_16), v1_2);
                                int v52_1 = v2_0;
                                v1_2.d = Boolean.valueOf(1);
                                int v1_4 = new java.util.BitSet();
                                v10_6.put(Integer.valueOf(v14_16), v1_4);
                                long v2_9 = new java.util.BitSet();
                                v13_20.put(Integer.valueOf(v14_16), v2_9);
                                if (!v23) {
                                    v53 = v1_4;
                                    v54 = v2_9;
                                    v55 = v11_1;
                                    v56_0 = v13_20;
                                    v11_2 = v51_0;
                                    v13_0 = v52_1;
                                } else {
                                    boolean v6_4 = new android.support.v4.util.ArrayMap();
                                    v53 = v1_4;
                                    v3_9.put(Integer.valueOf(v14_16), v6_4);
                                    int v1_7 = new android.support.v4.util.ArrayMap();
                                    v54 = v2_9;
                                    v11_1.put(Integer.valueOf(v14_16), v1_7);
                                    v55 = v11_1;
                                    v56_0 = v13_20;
                                    v13_0 = v1_7;
                                    v11_2 = v6_4;
                                }
                                v6_5 = v53;
                                v1_0 = v54;
                            }
                            long v2_14 = ((java.util.List) v12_10.get(Integer.valueOf(v14_16))).iterator();
                            while (v2_14.hasNext()) {
                                String v62_1;
                                String v61;
                                String v60;
                                long[] v57 = v12_10;
                                long[] v12_1 = ((com.google.android.gms.internal.measurement.g) v2_14.next());
                                String v58 = v1_0;
                                android.support.v4.util.ArrayMap v59_0 = v10_6;
                                if (!this.r().a(2)) {
                                    v60 = v2_14;
                                    v61 = v3_9;
                                    v62_1 = v15_4;
                                } else {
                                    v60 = v2_14;
                                    v61 = v3_9;
                                    v62_1 = v15_4;
                                    this.r().x().a("Evaluating filter. audience, filter, event", Integer.valueOf(v14_16), v12_1.a, this.o().a(v12_1.b));
                                    this.r().x().a("Filter definition", this.g().a(v12_1));
                                }
                                if ((v12_1.a != null) && (v12_1.a.intValue() <= 256)) {
                                    boolean v11_4;
                                    String v63_0;
                                    String v15_2;
                                    String v17_0;
                                    android.support.v4.util.ArrayMap v10_5;
                                    boolean v18_0;
                                    String v5_4;
                                    boolean v6_6;
                                    String v13_2;
                                    if (!v23) {
                                        v18_0 = v5_8;
                                        v5_4 = v13_0;
                                        v15_2 = v46;
                                        v10_5 = v48;
                                        v17_0 = v60;
                                        v63_0 = v61;
                                        v13_2 = v6_5;
                                        v6_6 = v11_2;
                                        v11_4 = v58;
                                        if (!v13_2.get(v12_1.a.intValue())) {
                                            com.google.android.gms.internal.measurement.w[] v4_3;
                                            int v52_2 = v5_4;
                                            Boolean v51_1 = v6_6;
                                            int v1_21 = this.a(v12_1, v18_0, v29_1, v8_21);
                                            com.google.android.gms.measurement.internal.q vtmp282 = this.r().x();
                                            if (v1_21 != 0) {
                                                v4_3 = v1_21;
                                            } else {
                                                v4_3 = "null";
                                            }
                                            vtmp282.a("Event filter result", v4_3);
                                            if (v1_21 != 0) {
                                                v11_4.set(v12_1.a.intValue());
                                                if (!v1_21.booleanValue()) {
                                                    v48 = v10_5;
                                                    v1_0 = v11_4;
                                                    v6_5 = v13_2;
                                                    v46 = v15_2;
                                                    v2_14 = v17_0;
                                                    v5_8 = v18_0;
                                                    v11_2 = v51_1;
                                                    v13_0 = v52_2;
                                                    v12_10 = v57;
                                                    v10_6 = v59_0;
                                                    v15_4 = v62_1;
                                                    v3_9 = v63_0;
                                                } else {
                                                    v13_2.set(v12_1.a.intValue());
                                                }
                                            } else {
                                                v10_5.add(Integer.valueOf(v14_16));
                                            }
                                        } else {
                                            this.r().x().a("Event filter already evaluated true. audience ID, filter ID", Integer.valueOf(v14_16), v12_1.a);
                                            v48 = v10_5;
                                            v1_0 = v11_4;
                                            v46 = v15_2;
                                            v2_14 = v17_0;
                                            v12_10 = v57;
                                            v10_6 = v59_0;
                                            v15_4 = v62_1;
                                            v3_9 = v63_0;
                                            v11_2 = v6_6;
                                            v6_5 = v13_2;
                                        }
                                    } else {
                                        if ((v12_1 == null) || ((v12_1.e == null) || (!v12_1.e.booleanValue()))) {
                                            String v15_3 = 0;
                                        } else {
                                            v15_3 = 1;
                                        }
                                        if ((v12_1 == null) || ((v12_1.f == null) || (!v12_1.f.booleanValue()))) {
                                            int v16_2 = 0;
                                        } else {
                                            v16_2 = 1;
                                        }
                                        if ((!v6_5.get(v12_1.a.intValue())) || ((v15_3 != null) || (v16_2 != 0))) {
                                            com.google.android.gms.internal.measurement.w[] v4_7;
                                            v17_0 = v60;
                                            v10_5 = v48;
                                            v63_0 = v61;
                                            boolean v64 = v11_2;
                                            v11_4 = v58;
                                            v18_0 = v5_8;
                                            String v65 = v13_0;
                                            v13_2 = v6_5;
                                            int v1_38 = this.a(v12_1, v5_8, v29_1, v8_21);
                                            com.google.android.gms.measurement.internal.q vtmp302 = this.r().x();
                                            if (v1_38 != 0) {
                                                v4_7 = v1_38;
                                            } else {
                                                v4_7 = "null";
                                            }
                                            vtmp302.a("Event filter result", v4_7);
                                            if (v1_38 != 0) {
                                                v11_4.set(v12_1.a.intValue());
                                                if (!v1_38.booleanValue()) {
                                                    v48 = v10_5;
                                                    v1_0 = v11_4;
                                                    v6_5 = v13_2;
                                                } else {
                                                    v13_2.set(v12_1.a.intValue());
                                                    if ((v15_3 == null) && (v16_2 == 0)) {
                                                    } else {
                                                        v15_2 = v46;
                                                        if (v15_2.c == null) {
                                                            v48 = v10_5;
                                                            v1_0 = v11_4;
                                                            v6_5 = v13_2;
                                                            v46 = v15_2;
                                                        } else {
                                                            if (v16_2 == 0) {
                                                                v5_4 = v65;
                                                                v6_6 = v64;
                                                                ark>com.google.android.gms.measurement.internal.erark>.a(v6_6, v12_1.a.intValue(), v15_2.c.longValue());
                                                            } else {
                                                                v5_4 = v65;
                                                                ark>com.google.android.gms.measurement.internal.erark>.b(v5_4, v12_1.a.intValue(), v15_2.c.longValue());
                                                                v48 = v10_5;
                                                                v1_0 = v11_4;
                                                                v6_5 = v13_2;
                                                                v46 = v15_2;
                                                                v2_14 = v17_0;
                                                                v12_10 = v57;
                                                                v10_6 = v59_0;
                                                                v15_4 = v62_1;
                                                                v3_9 = v63_0;
                                                                v11_2 = v64;
                                                                v13_0 = v5_4;
                                                                v5_8 = v18_0;
                                                            }
                                                        }
                                                    }
                                                }
                                            } else {
                                                v10_5.add(Integer.valueOf(v14_16));
                                            }
                                            v2_14 = v17_0;
                                            v5_8 = v18_0;
                                            v12_10 = v57;
                                            v10_6 = v59_0;
                                            v15_4 = v62_1;
                                            v3_9 = v63_0;
                                            v11_2 = v64;
                                            v13_0 = v65;
                                        } else {
                                            this.r().x().a("Event filter already evaluated true and it is not associated with a dynamic audience. audience ID, filter ID", Integer.valueOf(v14_16), v12_1.a);
                                            v12_10 = v57;
                                            v1_0 = v58;
                                            v10_6 = v59_0;
                                            v2_14 = v60;
                                            v3_9 = v61;
                                            v15_4 = v62_1;
                                        }
                                    }
                                } else {
                                    v18_0 = v5_8;
                                    v51_1 = v11_2;
                                    v52_2 = v13_0;
                                    v15_2 = v46;
                                    v10_5 = v48;
                                    v11_4 = v58;
                                    v17_0 = v60;
                                    v63_0 = v61;
                                    v13_2 = v6_5;
                                    String v3 = p89;
                                    this.r().i().a("Invalid event filter ID. appId, id", com.google.android.gms.measurement.internal.o.a(p89), String.valueOf(v12_1.a));
                                }
                            }
                            v42 = v10_6;
                            v10_1 = v47_1;
                            v2_15 = v48;
                            v13_1 = v49;
                            v38_0 = v55;
                            v45 = v56_0;
                            v44 = v15_4;
                            v11_3 = p89;
                        } else {
                            this.r().x().a("Skipping failed audience ID", Integer.valueOf(v14_16));
                        }
                    }
                    v63_1 = v3_9;
                    v47_0 = v10_1;
                    v3_20 = v11_3;
                    v4_10 = v38_0;
                    v59_1 = v42;
                    v62_2 = v44;
                    v56_1 = v45;
                    v10_7 = v2_15;
                    v2_66 = v26;
                    v16_8 = v27_1;
                    v1_77 = v40_1;
                } else {
                    String v5_47;
                    this.g();
                    com.google.android.gms.internal.measurement.w[] v4_41 = ((Long) com.google.android.gms.measurement.internal.ej.b(v3_45, "_eid"));
                    if (v4_41 == null) {
                        v5_47 = 0;
                    } else {
                        v5_47 = 1;
                    }
                    boolean v6_30;
                    boolean v36;
                    if (v5_47 == null) {
                        v36 = v6_11;
                        v6_30 = 0;
                    } else {
                        v36 = v6_11;
                        if (!v11_28.equals("_ep")) {
                        } else {
                            v6_30 = 1;
                        }
                    }
                    if (!v6_30) {
                        v13_18 = v3_45;
                        v38_0 = v36;
                        if (v5_47 == null) {
                        } else {
                            this.g();
                            long v2_72 = Long.valueOf(0);
                            int v1_110 = com.google.android.gms.measurement.internal.ej.b(v13_18, "_epc");
                            if (v1_110 == 0) {
                                v1_110 = v2_72;
                            }
                            boolean v18_4;
                            int v16_11 = ((Long) v1_110).longValue();
                            if (v16_11 > 0) {
                                v18_4 = v4_41;
                                this.i().a(v15_0, v4_41, v16_11, v13_18);
                            } else {
                                this.r().i().a("Complex event with zero extra param count. eventName", v11_28);
                                v18_4 = v4_41;
                            }
                            v5_8 = v11_28;
                            v40_1 = v13_18;
                            v29_1 = v14_14;
                            v27_1 = v16_11;
                            v26 = v18_4;
                        }
                    } else {
                        boolean v38_1;
                        this.g();
                        boolean v11_30 = ((String) com.google.android.gms.measurement.internal.ej.b(v3_45, "_en"));
                        if (!android.text.TextUtils.isEmpty(v11_30)) {
                            if ((v1_77 == 0) || ((v2_66 == 0) || (v4_41.longValue() != v2_66.longValue()))) {
                                String v5_55 = this.i().a(v15_0, v4_41);
                                if ((v5_55 != null) && (v5_55.first != null)) {
                                    v1_77 = ((com.google.android.gms.internal.measurement.q) v5_55.first);
                                    v16_8 = ((Long) v5_55.second).longValue();
                                    this.g();
                                    v2_66 = ((Long) com.google.android.gms.measurement.internal.ej.b(v1_77, "_eid"));
                                } else {
                                    v38_1 = v36;
                                    this.r().an_().a("Extra parameter without existing main event. eventName, eventId", v11_30, v4_41);
                                    v47_0 = v10_8;
                                    v62_2 = v12_15;
                                    v3_20 = v15_0;
                                    v10_7 = v30_0;
                                    v63_1 = v33_1;
                                    v56_1 = v34_1;
                                    v59_1 = v35_0;
                                    v4_10 = v38_1;
                                    v33_0 = v8_3;
                                    v34_0 = v9_2;
                                    v8_3 = (v33_0 + 1);
                                    v13_4 = p90;
                                    v15_0 = v3_20;
                                    v6_11 = v4_10;
                                    v30_0 = v10_7;
                                    v9_2 = v34_0;
                                    v10_8 = v47_0;
                                    v34_1 = v56_1;
                                    v35_0 = v59_1;
                                    v12_15 = v62_2;
                                    v33_1 = v63_1;
                                }
                            }
                            int v1_55;
                            boolean v6_34 = v1_77;
                            boolean v18_6 = v2_66;
                            int v16_12 = (v16_8 - 1);
                            if (v16_12 > 0) {
                                int v21 = 0;
                                v13_18 = v3_45;
                                com.google.android.gms.measurement.internal.m v39 = v6_34;
                                v38_0 = v36;
                                this.i().a(v15_0, v4_41, v16_12, v6_34);
                                v1_55 = v39;
                            } else {
                                int v1_122 = this.i();
                                v1_122.d();
                                v1_122.r().x().a("Clearing complex main event info. appId", v15_0);
                                try {
                                    long v2_82 = v1_122.y();
                                    String v37_1 = v3_45;
                                    try {
                                        String v3_48 = new String[1];
                                        try {
                                            v3_48[0] = v15_0;
                                            v2_82.execSQL("delete from main_event_params where app_id=?", v3_48);
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            v1_122.r().an_().a("Error clearing complex main event", v0_2);
                                        }
                                        v1_55 = v6_34;
                                        v38_0 = v36;
                                        v13_18 = v37_1;
                                    } catch (android.database.sqlite.SQLiteException v0_2) {
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v37_1 = v3_45;
                                }
                            }
                            long v2_87 = new com.google.android.gms.internal.measurement.r[(v1_55.a.length + v14_14.length)];
                            String v3_15 = v1_55.a;
                            com.google.android.gms.internal.measurement.w[] v4_47 = v3_15.length;
                            String v5_12 = 0;
                            boolean v6_10 = 0;
                            while (v5_12 < v4_47) {
                                String v40_0 = v1_55;
                                int v1_54 = v3_15[v5_12];
                                this.g();
                                String[] v41 = v3_15;
                                if (com.google.android.gms.measurement.internal.ej.a(v13_18, v1_54.a) == null) {
                                    String v3_14 = (v6_10 + 1);
                                    v2_87[v6_10] = v1_54;
                                    v6_10 = v3_14;
                                }
                                v5_12++;
                                v1_55 = v40_0;
                                v3_15 = v41;
                            }
                            v40_1 = v1_55;
                            if (v6_10) {
                                this.r().i().a("No unique parameters in main event. eventName", v11_30);
                                v5_8 = v11_30;
                                v29_1 = v14_14;
                            } else {
                                int v1_127 = v14_14.length;
                                String v3_11 = 0;
                                while (v3_11 < v1_127) {
                                    String v5_11 = (v6_10 + 1);
                                    v2_87[v6_10] = v14_14[v3_11];
                                    v3_11++;
                                    v6_10 = v5_11;
                                }
                                if (v6_10 != v2_87.length) {
                                    v2_87 = ((com.google.android.gms.internal.measurement.r[]) java.util.Arrays.copyOf(v2_87, v6_10));
                                }
                                v29_1 = v2_87;
                                v5_8 = v11_30;
                            }
                            v27_1 = v16_12;
                            v26 = v18_6;
                        } else {
                            this.r().an_().a("Extra parameter without an event name. eventId", v4_41);
                            v38_1 = v36;
                        }
                    }
                }
            }
        }
        com.google.android.gms.internal.measurement.w[] v4_35 = v6_11;
        String v62_3 = v12_15;
        String v3_30 = v15_0;
        android.support.v4.util.ArrayMap v10_13 = v30_0;
        String v63_2 = v33_1;
        java.util.Iterator v56_2 = v34_1;
        android.support.v4.util.ArrayMap v59_2 = v35_0;
        int v1_75 = p91;
        if (p91 != null) {
            long v2_67 = new android.support.v4.util.ArrayMap();
            String v5_30 = p91.length;
            boolean v6_19 = 0;
            while (v6_19 < v5_30) {
                int v8_16 = v1_75[v6_19];
                Integer v9_12 = ((java.util.Map) v2_67.get(v8_16.b));
                if (v9_12 == null) {
                    v9_12 = this.i().g(v3_30, v8_16.b);
                    if (v9_12 == null) {
                        v9_12 = new android.support.v4.util.ArrayMap();
                    }
                    v2_67.put(v8_16.b, v9_12);
                }
                boolean v11_14 = v9_12.keySet().iterator();
                while (v11_14.hasNext()) {
                    long[] v12_23 = ((Integer) v11_14.next()).intValue();
                    if (!v10_13.contains(Integer.valueOf(v12_23))) {
                        android.support.v4.util.ArrayMap v69;
                        int v70;
                        java.util.Map v68;
                        boolean v11_15;
                        long v2_53;
                        String v14_10 = v62_3;
                        int v1_76 = v59_2;
                        String v15_8 = ((java.util.BitSet) v1_76.get(Integer.valueOf(v12_23)));
                        long[] v66 = v2_67;
                        com.google.android.gms.internal.measurement.u v67 = v5_30;
                        String v5_29 = v56_2;
                        long v2_52 = ((java.util.BitSet) v5_29.get(Integer.valueOf(v12_23)));
                        if (!v23) {
                            v68 = v2_52;
                            v69 = v11_14;
                            v11_15 = v63_2;
                            v2_53 = 0;
                            v70 = 0;
                        } else {
                            v68 = v2_52;
                            v69 = v11_14;
                            v11_15 = v63_2;
                            v70 = ((java.util.Map) v11_15.get(Integer.valueOf(v12_23)));
                            v2_53 = ((java.util.Map) v4_35.get(Integer.valueOf(v12_23)));
                        }
                        int v75_1;
                        com.google.android.gms.internal.measurement.w[] v4_34;
                        String v13_10;
                        android.support.v4.util.ArrayMap v74_1;
                        long v2_59;
                        if (((com.google.android.gms.internal.measurement.o) v14_10.get(Integer.valueOf(v12_23))) != null) {
                            v74_1 = v4_35;
                            v75_1 = v11_15;
                            v13_10 = v68;
                            v2_59 = v70;
                            v4_34 = v2_53;
                        } else {
                            android.support.v4.util.ArrayMap v72;
                            String v13_12 = new com.google.android.gms.internal.measurement.o();
                            v14_10.put(Integer.valueOf(v12_23), v13_12);
                            java.util.BitSet v71_1 = v2_53;
                            v13_12.d = Boolean.valueOf(1);
                            long v2_62 = new java.util.BitSet();
                            v1_76.put(Integer.valueOf(v12_23), v2_62);
                            v13_10 = new java.util.BitSet();
                            v5_29.put(Integer.valueOf(v12_23), v13_10);
                            if (!v23) {
                                v72 = v2_62;
                                v74_1 = v4_35;
                                v75_1 = v11_15;
                                v2_59 = v70;
                                v4_34 = v71_1;
                            } else {
                                String v15_13 = new android.support.v4.util.ArrayMap();
                                v72 = v2_62;
                                v11_15.put(Integer.valueOf(v12_23), v15_13);
                                long v2_65 = new android.support.v4.util.ArrayMap();
                                java.util.Map v73 = v13_10;
                                v4_35.put(Integer.valueOf(v12_23), v2_65);
                                v74_1 = v4_35;
                                v75_1 = v11_15;
                                v13_10 = v73;
                                v4_34 = v2_65;
                                v2_59 = v15_13;
                            }
                            v15_8 = v72;
                        }
                        boolean v11_19 = ((java.util.List) v9_12.get(Integer.valueOf(v12_23))).iterator();
                        while (v11_19.hasNext()) {
                            com.google.android.gms.measurement.internal.m v81_1;
                            Integer v79_1;
                            com.google.android.gms.measurement.internal.q v80;
                            Integer v76 = v9_12;
                            Integer v9_16 = ((com.google.android.gms.internal.measurement.j) v11_19.next());
                            boolean v77 = v11_19;
                            java.util.Iterator v78_1 = v5_29;
                            if (!this.r().a(2)) {
                                v80 = v1_76;
                                v81_1 = v6_19;
                                v79_1 = v14_10;
                            } else {
                                v79_1 = v14_10;
                                v80 = v1_76;
                                v81_1 = v6_19;
                                this.r().x().a("Evaluating filter. audience, filter, property", Integer.valueOf(v12_23), v9_16.a, this.o().c(v9_16.b));
                                this.r().x().a("Filter definition", this.g().a(v9_16));
                            }
                            if ((v9_16.a != null) && (v9_16.a.intValue() <= 256)) {
                                if (!v23) {
                                    if (!v15_8.get(v9_16.a.intValue())) {
                                        boolean v6_21;
                                        int v1_87 = this.a(v9_16, v8_16);
                                        String v3_33 = this.r().x();
                                        if (v1_87 != 0) {
                                            v6_21 = v1_87;
                                        } else {
                                            v6_21 = "null";
                                        }
                                        v3_33.a("Property filter result", v6_21);
                                        if (v1_87 != 0) {
                                            v13_10.set(v9_16.a.intValue());
                                            if (v1_87.booleanValue()) {
                                                v15_8.set(v9_16.a.intValue());
                                            }
                                        } else {
                                            v10_13.add(Integer.valueOf(v12_23));
                                        }
                                    } else {
                                        this.r().x().a("Property filter already evaluated true. audience ID, filter ID", Integer.valueOf(v12_23), v9_16.a);
                                    }
                                } else {
                                    if ((v9_16 == null) || ((v9_16.d == null) || (!v9_16.d.booleanValue()))) {
                                        int v1_97 = 0;
                                    } else {
                                        v1_97 = 1;
                                    }
                                    if ((v9_16 == null) || ((v9_16.e == null) || (!v9_16.e.booleanValue()))) {
                                        String v5_40 = 0;
                                    } else {
                                        v5_40 = 1;
                                    }
                                    if ((!v15_8.get(v9_16.a.intValue())) || ((v1_97 != 0) || (v5_40 != null))) {
                                        String v3_37;
                                        boolean v6_26 = this.a(v9_16, v8_16);
                                        boolean v11_26 = this.r().x();
                                        if (v6_26) {
                                            v3_37 = v6_26;
                                        } else {
                                            v3_37 = "null";
                                        }
                                        v11_26.a("Property filter result", v3_37);
                                        if (v6_26) {
                                            v13_10.set(v9_16.a.intValue());
                                            v15_8.set(v9_16.a.intValue(), v6_26.booleanValue());
                                            if (((v6_26.booleanValue()) && ((v1_97 != 0) || (v5_40 != null))) && (v8_16.a != null)) {
                                                if (v5_40 == null) {
                                                    ark>com.google.android.gms.measurement.internal.erark>.a(v2_59, v9_16.a.intValue(), v8_16.a.longValue());
                                                } else {
                                                    ark>com.google.android.gms.measurement.internal.erark>.b(v4_34, v9_16.a.intValue(), v8_16.a.longValue());
                                                }
                                            }
                                        } else {
                                            v10_13.add(Integer.valueOf(v12_23));
                                        }
                                    } else {
                                        this.r().x().a("Property filter already evaluated true and it is not associated with a dynamic audience. audience ID, filter ID", Integer.valueOf(v12_23), v9_16.a);
                                    }
                                }
                                v9_12 = v76;
                                v11_19 = v77;
                                v5_29 = v78_1;
                                v14_10 = v79_1;
                                v1_76 = v80;
                                v6_19 = v81_1;
                                v3_30 = p89;
                            } else {
                                v3_30 = p89;
                                this.r().i().a("Invalid property filter ID. appId, id", com.google.android.gms.measurement.internal.o.a(p89), String.valueOf(v9_16.a));
                                v10_13.add(Integer.valueOf(v12_23));
                                v2_67 = v66;
                                v5_30 = v67;
                                v11_14 = v69;
                                v4_35 = v74_1;
                                v63_2 = v75_1;
                                v9_12 = v76;
                                v56_2 = v78_1;
                                v62_3 = v79_1;
                                v59_2 = v80;
                                v6_19 = v81_1;
                            }
                        }
                        v59_2 = v1_76;
                        v56_2 = v5_29;
                        v62_3 = v14_10;
                        v2_67 = v66;
                        v5_30 = v67;
                        v11_14 = v69;
                        v4_35 = v74_1;
                        v63_2 = v75_1;
                    } else {
                        this.r().x().a("Skipping failed audience ID", Integer.valueOf(v12_23));
                    }
                }
                android.support.v4.util.ArrayMap v74 = v4_35;
                v80 = v59_2;
                int v75 = v63_2;
                v6_19++;
                v1_75 = p91;
            }
        }
        android.support.v4.util.ArrayMap v74_0 = v4_35;
        java.util.Iterator v78_0 = v56_2;
        Integer v79_0 = v62_3;
        int v75_0 = v63_2;
        int v1_74 = v59_2;
        long v2_71 = new com.google.android.gms.internal.measurement.o[v1_74.size()];
        com.google.android.gms.internal.measurement.w[] v4_33 = v1_74.keySet().iterator();
        String v5_28 = 0;
        while (v4_33.hasNext()) {
            boolean v6_37 = ((Integer) v4_33.next()).intValue();
            if (!v10_13.contains(Integer.valueOf(v6_37))) {
                Integer v9_8 = v79_0;
                int v8_0 = ((com.google.android.gms.internal.measurement.o) v9_8.get(Integer.valueOf(v6_37)));
                if (v8_0 == 0) {
                    v8_0 = new com.google.android.gms.internal.measurement.o();
                }
                com.google.android.gms.internal.measurement.w[] v83;
                int v82;
                long[] v86_0;
                String v15_5;
                com.google.android.gms.internal.measurement.v v85_0;
                String v14_0;
                boolean v11_0 = (v5_28 + 1);
                v2_71[v5_28] = v8_0;
                v8_0.a = Integer.valueOf(v6_37);
                v8_0.b = new com.google.android.gms.internal.measurement.u();
                v8_0.b.b = com.google.android.gms.measurement.internal.ej.a(((java.util.BitSet) v1_74.get(Integer.valueOf(v6_37))));
                String v13_3 = v78_0;
                v8_0.b.a = com.google.android.gms.measurement.internal.ej.a(((java.util.BitSet) v13_3.get(Integer.valueOf(v6_37))));
                if (!v23) {
                    v82 = v1_74;
                    v83 = v4_33;
                    v85_0 = v9_8;
                    v86_0 = v10_13;
                    v15_5 = v74_0;
                    v14_0 = v75_0;
                } else {
                    long[] v12_19;
                    v14_0 = v75_0;
                    v8_0.b.c = ark>com.google.android.gms.measurement.internal.erark>.a(((java.util.Map) v14_0.get(Integer.valueOf(v6_37))));
                    String v5_18 = v8_0.b;
                    v15_5 = v74_0;
                    long[] v12_18 = ((java.util.Map) v15_5.get(Integer.valueOf(v6_37)));
                    if (v12_18 != null) {
                        v82 = v1_74;
                        int v1_65 = new com.google.android.gms.internal.measurement.v[v12_18.size()];
                        v83 = v4_33;
                        com.google.android.gms.internal.measurement.w[] v4_15 = v12_18.keySet().iterator();
                        int v16_4 = 0;
                        while (v4_15.hasNext()) {
                            long[] v86_1;
                            com.google.android.gms.internal.measurement.u v84 = v4_15;
                            com.google.android.gms.internal.measurement.w[] v4_17 = ((Integer) v4_15.next());
                            com.google.android.gms.internal.measurement.v v85_1 = v9_8;
                            Integer v9_7 = new com.google.android.gms.internal.measurement.v();
                            v9_7.a = v4_17;
                            com.google.android.gms.internal.measurement.w[] v4_19 = ((java.util.List) v12_18.get(v4_17));
                            if (v4_19 == null) {
                                v86_1 = v10_13;
                            } else {
                                java.util.Collections.sort(v4_19);
                                v86_1 = v10_13;
                                android.support.v4.util.ArrayMap v10_12 = new long[v4_19.size()];
                                com.google.android.gms.internal.measurement.w[] v4_20 = v4_19.iterator();
                                String v17_3 = 0;
                                while (v4_20.hasNext()) {
                                    long v87 = v4_20;
                                    boolean v18_3 = (v17_3 + 1);
                                    v10_12[v17_3] = ((Long) v4_20.next()).longValue();
                                    v17_3 = v18_3;
                                    v4_20 = v87;
                                }
                                v9_7.b = v10_12;
                            }
                            com.google.android.gms.internal.measurement.w[] v4_21 = (v16_4 + 1);
                            v1_65[v16_4] = v9_7;
                            v16_4 = v4_21;
                            v4_15 = v84;
                            v9_8 = v85_1;
                            v10_13 = v86_1;
                        }
                        v85_0 = v9_8;
                        v86_0 = v10_13;
                        v12_19 = v1_65;
                    } else {
                        v82 = v1_74;
                        v12_19 = new com.google.android.gms.internal.measurement.v[0];
                        v83 = v4_33;
                        v85_0 = v9_8;
                        v86_0 = v10_13;
                    }
                    v5_18.d = v12_19;
                }
                int v1_68 = this.i();
                com.google.android.gms.internal.measurement.w[] v4_24 = v8_0.b;
                v1_68.k();
                v1_68.d();
                com.google.android.gms.common.internal.ab.a(p89);
                com.google.android.gms.common.internal.ab.a(v4_24);
                try {
                    String v5_23 = new byte[v4_24.e()];
                    try {
                        int v8_12 = com.google.android.gms.internal.measurement.fj.a(v5_23, 0, v5_23.length);
                        v4_24.a(v8_12);
                        v8_12.a();
                        com.google.android.gms.internal.measurement.w[] v4_26 = new android.content.ContentValues();
                        v4_26.put("app_id", v3_30);
                        v4_26.put("audience_id", Integer.valueOf(v6_37));
                        v4_26.put("current_results", v5_23);
                        try {
                            try {
                                if (v1_68.y().insertWithOnConflict("audience_filter_values", 0, v4_26, 5) != -1) {
                                    v5_28 = v11_0;
                                    v78_0 = v13_3;
                                    v75_0 = v14_0;
                                    v74_0 = v15_5;
                                    v1_74 = v82;
                                    v4_33 = v83;
                                    v79_0 = v85_0;
                                    v10_13 = v86_0;
                                } else {
                                    v1_68.r().an_().a("Failed to insert filter results (got -1). appId", com.google.android.gms.measurement.internal.o.a(p89));
                                }
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v1_68.r().an_().a("Error storing filter results. appId", com.google.android.gms.measurement.internal.o.a(p89), v0_1);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                        }
                    } catch (android.database.sqlite.SQLiteException v0_0) {
                        v1_68.r().an_().a("Configuration loss. Failed to serialize filter results. appId", com.google.android.gms.measurement.internal.o.a(p89), v0_0);
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                }
            }
        }
        return ((com.google.android.gms.internal.measurement.o[]) java.util.Arrays.copyOf(v2_71, v5_28));
    }

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


    final void a(java.util.List p5)
    {
        this.d();
        this.k();
        com.google.android.gms.common.internal.ab.a(p5);
        com.google.android.gms.common.internal.ab.a(p5.size());
        if (this.N()) {
            android.database.sqlite.SQLiteException v5_1 = android.text.TextUtils.join(",", p5);
            String v1_1 = new StringBuilder((String.valueOf(v5_1).length() + 2));
            v1_1.append("(");
            v1_1.append(v5_1);
            v1_1.append(")");
            android.database.sqlite.SQLiteException v5_3 = v1_1.toString();
            String v1_3 = new StringBuilder((String.valueOf(v5_3).length() + 80));
            v1_3.append("SELECT COUNT(1) FROM queue WHERE rowid IN ");
            v1_3.append(v5_3);
            v1_3.append(" AND retry_count =  2147483647 LIMIT 1");
            if (this.b(v1_3.toString(), 0) > 0) {
                this.r().i().a("The number of upload retries exceeds the limit. Will remain unchanged.");
            }
            try {
                com.google.android.gms.measurement.internal.q v0_15 = this.y();
                StringBuilder v2_2 = new StringBuilder((String.valueOf(v5_3).length() + 127));
                v2_2.append("UPDATE queue SET retry_count = IFNULL(retry_count, 0) + 1 WHERE rowid IN ");
                v2_2.append(v5_3);
                v2_2.append(" AND (retry_count IS NULL OR retry_count < 2147483647)");
                v0_15.execSQL(v2_2.toString());
                return;
            } catch (android.database.sqlite.SQLiteException v5_6) {
                this.r().an_().a("Error incrementing retry count. error", v5_6);
                return;
            }
        } else {
            return;
        }
    }

Method org.jetbrains.anko.db.i.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static final varargs long a(android.database.sqlite.SQLiteDatabase p1, String p2, kotlin.Pair[] p3)
    {
        kotlin.jvm.internal.ae.f(p1, "$receiver");
        kotlin.jvm.internal.ae.f(p2, "tableName");
        kotlin.jvm.internal.ae.f(p3, "values");
        return p1.insert(p2, 0, ark>org.jetbrains.anko.db.iark>.a(p3));
    }

Method com.fitbit.sleep.core.a.a.b.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void a(org.greenrobot.greendao.database.Database p24)
    {
        try {
            Object[] v4_1 = p24.a("SELECT * FROM SLEEP_LOG", 0);
            java.util.ArrayList v6_0 = new java.util.ArrayList(v4_1.getCount());
            int v7_3 = v4_1.getColumnIndex(com.fitbit.sleep.core.model.SleepLogDao$Properties.b.e);
            int v8_2 = v4_1.getColumnIndex(com.fitbit.sleep.core.model.SleepLogDao$Properties.c.e);
            int v9_1 = v4_1.getColumnIndex("LOG_TYPE");
            int v10_2 = v4_1.getColumnIndex(com.fitbit.sleep.core.model.SleepLogDao$Properties.e.e);
            int v11_2 = v4_1.getColumnIndex(com.fitbit.sleep.core.model.SleepLogDao$Properties.f.e);
            int v12_2 = v4_1.getColumnIndex(com.fitbit.sleep.core.model.SleepLogDao$Properties.g.e);
            int v13_2 = v4_1.getColumnIndex(com.fitbit.sleep.core.model.SleepLogDao$Properties.h.e);
            int v14_2 = v4_1.getColumnIndex(com.fitbit.sleep.core.model.SleepLogDao$Properties.i.e);
            int v15_2 = v4_1.getColumnIndex(com.fitbit.sleep.core.model.SleepLogDao$Properties.j.e);
            String v5_3 = v4_1.getColumnIndex(com.fitbit.sleep.core.model.SleepLogDao$Properties.k.e);
            int v2_22 = v4_1.getColumnIndex(com.fitbit.sleep.core.model.SleepLogDao$Properties.l.e);
            int v3_2 = v4_1.getColumnIndex(com.fitbit.sleep.core.model.SleepLogDao$Properties.m.e);
            try {
                java.util.ArrayList v1_29 = v4_1.getColumnIndex(com.fitbit.sleep.core.model.SleepLogDao$Properties.n.e);
            } catch (Exception v0_1) {
                int v2_23 = p24;
                java.util.ArrayList v1_25 = v0_1;
                int v3_3 = 1;
                com.fitbit.sleep.core.model.SleepLogDao.b(v2_23, v3_3);
                com.fitbit.sleep.core.model.SleepLevelDataDao.b(v2_23, v3_3);
                com.fitbit.sleep.core.model.SleepLevelSummaryDao.b(v2_23, v3_3);
                com.fitbit.sleep.core.model.SleepLogDao.a(v2_23, v3_3);
                com.fitbit.sleep.core.model.SleepLevelDataDao.a(v2_23, v3_3);
                com.fitbit.sleep.core.model.SleepLevelSummaryDao.a(v2_23, v3_3);
                int v3_5 = new Object[0];
                d.a.b.e(v1_25, "Sleep migration failed. Table recreated.", v3_5);
                return;
            }
            while (v4_1.moveToNext()) {
                java.util.ArrayList v17 = v6_0;
                try {
                    int v7_1;
                    int v19;
                    java.util.ArrayList v6_5 = new android.content.ContentValues();
                    java.util.ArrayList v18 = v1_29;
                } catch (Exception v0_0) {
                    v1_25 = v0_0;
                    v2_23 = p24;
                }
                if (!v4_1.isNull(v7_3)) {
                    v19 = v7_3;
                    v7_1 = v4_1.getString(v7_3);
                } else {
                    v19 = v7_3;
                    v7_1 = 0;
                }
                int v21;
                int v20;
                int v2_1;
                v6_5.put(com.fitbit.sleep.core.model.SleepLogDao$Properties.b.e, v7_1);
                if (!v4_1.isNull(v8_2)) {
                    v20 = v2_22;
                    v21 = v3_2;
                    v2_1 = Long.valueOf(v4_1.getLong(v8_2));
                } else {
                    v20 = v2_22;
                    v21 = v3_2;
                    v2_1 = 0;
                }
                int v2_3;
                v6_5.put(com.fitbit.sleep.core.model.SleepLogDao$Properties.c.e, v2_1);
                if (!v4_1.isNull(v9_1)) {
                    v2_3 = v4_1.getString(v9_1);
                } else {
                    v2_3 = 0;
                }
                int v2_8;
                v6_5.put(com.fitbit.sleep.core.model.SleepLogDao$Properties.d.e, v2_3);
                v6_5.put(com.fitbit.sleep.core.model.SleepLogDao$Properties.e.e, Integer.valueOf(v4_1.getInt(v10_2)));
                if (!v4_1.isNull(v11_2)) {
                    v2_8 = Integer.valueOf(v4_1.getInt(v11_2));
                } else {
                    v2_8 = 0;
                }
                int v2_12;
                v6_5.put(com.fitbit.sleep.core.model.SleepLogDao$Properties.f.e, v2_8);
                if (!v4_1.isNull(v12_2)) {
                    int v2_11;
                    if (v4_1.getShort(v12_2) == 0) {
                        v2_11 = 0;
                    } else {
                        v2_11 = 1;
                    }
                    v2_12 = Boolean.valueOf(v2_11);
                } else {
                    v2_12 = 0;
                }
                int v2_15;
                v6_5.put(com.fitbit.sleep.core.model.SleepLogDao$Properties.g.e, v2_12);
                if (!v4_1.isNull(v13_2)) {
                    v2_15 = Long.valueOf(v4_1.getLong(v13_2));
                } else {
                    v2_15 = 0;
                }
                int v22;
                int v7_6;
                v6_5.put(com.fitbit.sleep.core.model.SleepLogDao$Properties.h.e, v2_15);
                v6_5.put(com.fitbit.sleep.core.model.SleepLogDao$Properties.i.e, Integer.valueOf(v4_1.getInt(v14_2)));
                v6_5.put(com.fitbit.sleep.core.model.SleepLogDao$Properties.j.e, Integer.valueOf(v4_1.getInt(v15_2)));
                v6_5.put(com.fitbit.sleep.core.model.SleepLogDao$Properties.k.e, Integer.valueOf(v4_1.getInt(v5_3)));
                v2_22 = v20;
                v6_5.put(com.fitbit.sleep.core.model.SleepLogDao$Properties.l.e, Integer.valueOf(v4_1.getInt(v2_22)));
                v3_2 = v21;
                if (!v4_1.isNull(v3_2)) {
                    v22 = v8_2;
                    v7_6 = Long.valueOf(v4_1.getLong(v3_2));
                } else {
                    v22 = v8_2;
                    v7_6 = 0;
                }
                v6_5.put(com.fitbit.sleep.core.model.SleepLogDao$Properties.m.e, v7_6);
                int v7_7 = v18;
                v6_5.put(com.fitbit.sleep.core.model.SleepLogDao$Properties.n.e, Integer.valueOf(v4_1.getInt(v7_7)));
                java.util.ArrayList v1_28 = v17;
                v1_28.add(v6_5);
                v6_0 = v1_28;
                v1_29 = v7_7;
                v7_3 = v19;
                v8_2 = v22;
            }
            java.util.ArrayList v1_32 = v6_0;
            v4_1.close();
            v2_23 = p24;
            v3_3 = 1;
            try {
                com.fitbit.sleep.core.model.SleepLogDao.b(p24, 1);
                com.fitbit.sleep.core.model.SleepLogDao.a(p24, 1);
                try {
                    java.util.ArrayList v1_33 = v1_32.iterator();
                } catch (Exception v0_1) {
                }
                while (v1_33.hasNext()) {
                    ((android.database.sqlite.SQLiteDatabase) p24.g()).insert("SLEEP_LOG", com.fitbit.sleep.core.model.SleepLogDao$Properties.a.e, ((android.content.ContentValues) v1_33.next()));
                }
                Object[] v4_2 = new Object[0];
                d.a.b.b("Sleep log migration successful", v4_2);
                return;
            } catch (Exception v0_2) {
                v1_25 = v0_2;
            }
        } catch (Exception v0_1) {
            v2_23 = p24;
        }
    }

Method com.mixpanel.android.mpmetrics.MPDbAdapter.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public int a(org.json.JSONObject p7, ark>com.mixpanel.android.mpmetrics.MPDbAdapterark>$Table p8)
    {
        if (this.b()) {
            Throwable v8_1 = p8.a();
            android.database.sqlite.SQLiteException v0_1 = -1;
            ark>com.mixpanel.android.mpmetrics.MPDbAdapterark>$a v1 = 0;
            try {
                android.database.sqlite.SQLiteException v2_4 = this.m.getWritableDatabase();
                String v3_1 = new android.content.ContentValues();
                v3_1.put("data", p7.toString());
                v3_1.put("created_at", Long.valueOf(System.currentTimeMillis()));
                v2_4.insert(v8_1, 0, v3_1);
                ark>com.mixpanel.android.mpmetrics.MPDbAdapterark>$a v7_4 = new StringBuilder();
                v7_4.append("SELECT COUNT(*) FROM ");
                v7_4.append(v8_1);
                ark>com.mixpanel.android.mpmetrics.MPDbAdapterark>$a v7_6 = v2_4.rawQuery(v7_4.toString(), 0);
                try {
                    v7_6.moveToFirst();
                    android.database.sqlite.SQLiteException v2_2 = v7_6.getInt(0);
                } catch (android.database.sqlite.SQLiteException v2_0) {
                    StringBuilder v4_4 = new StringBuilder();
                    v4_4.append("Could not add Mixpanel data to table ");
                    v4_4.append(v8_1);
                    v4_4.append(". Re-initializing database.");
                    android.util.Log.e("MixpanelAPI.Database", v4_4.toString(), v2_0);
                    if (v7_6 == null) {
                        v1 = v7_6;
                    } else {
                        v7_6.close();
                    }
                    this.m.a();
                    if (v1 != null) {
                        v1.close();
                    }
                    this.m.close();
                    return v0_1;
                }
                if (v7_6 != null) {
                    v7_6.close();
                }
                this.m.close();
                v0_1 = v2_2;
                return v0_1;
            } catch (Throwable v8_4) {
                if (v1 != null) {
                    v1.close();
                }
                this.m.close();
                throw v8_4;
            } catch (android.database.sqlite.SQLiteException v2_0) {
                v7_6 = 0;
            } catch (Throwable v8_4) {
                v1 = v7_6;
            }
        } else {
            android.util.Log.e("MixpanelAPI.Database", "There is not enough space left on the device to store Mixpanel data, so data was discarded");
            return -2;
        }
    }

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


    public final boolean a(com.google.android.gms.internal.measurement.t p7, boolean p8)
    {
        this.d();
        this.k();
        com.google.android.gms.common.internal.ab.a(p7);
        com.google.android.gms.common.internal.ab.a(p7.o);
        com.google.android.gms.common.internal.ab.a(p7.f);
        this.B();
        int v0_0 = this.m().a();
        if ((p7.f.longValue() < (v0_0 - com.google.android.gms.measurement.internal.eu.j())) || (p7.f.longValue() > (com.google.android.gms.measurement.internal.eu.j() + v0_0))) {
            this.r().i().a("Storing bundle outside of the max uploading time span. appId, now, timestamp", com.google.android.gms.measurement.internal.o.a(p7.o), Long.valueOf(v0_0), p7.f);
        }
        try {
            String v1_5 = new byte[p7.e()];
            Object v2_12 = com.google.android.gms.internal.measurement.fj.a(v1_5, 0, v1_5.length);
            p7.a(v2_12);
            v2_12.a();
            String v1_6 = this.g().b(v1_5);
            this.r().x().a("Saving bundle, size", Integer.valueOf(v1_6.length));
            Object v2_17 = new android.content.ContentValues();
            v2_17.put("app_id", p7.o);
            v2_17.put("bundle_end_timestamp", p7.f);
            v2_17.put("data", v1_6);
            v2_17.put("has_realtime", Integer.valueOf(p8));
        } catch (com.google.android.gms.measurement.internal.q v8_6) {
            this.r().an_().a("Data loss. Failed to serialize bundle. appId", com.google.android.gms.measurement.internal.o.a(p7.o), v8_6);
            return 0;
        }
        if (p7.H != null) {
            v2_17.put("retry_count", p7.H);
        }
        try {
            if (this.y().insert("queue", 0, v2_17) != -1) {
                return 1;
            } else {
                this.r().an_().a("Failed to insert bundle (got -1). appId", com.google.android.gms.measurement.internal.o.a(p7.o));
                return 0;
            }
        } catch (com.google.android.gms.measurement.internal.q v8_1) {
            this.r().an_().a("Error storing bundle. appId", com.google.android.gms.measurement.internal.o.a(p7.o), v8_1);
            return 0;
        }
    }

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


    public final boolean a(com.google.android.gms.measurement.internal.ff p9, long p10, boolean p12)
    {
        this.d();
        this.k();
        com.google.android.gms.common.internal.ab.a(p9);
        com.google.android.gms.common.internal.ab.a(p9.a);
        long v0_6 = new com.google.android.gms.internal.measurement.q();
        v0_6.d = Long.valueOf(p9.d);
        byte[] v1_2 = new com.google.android.gms.internal.measurement.r[p9.e.size()];
        v0_6.a = v1_2;
        byte[] v1_4 = p9.e.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.r();
            int v7 = (v3_2 + 1);
            v0_6.a[v3_2] = v5_1;
            v5_1.a = v4_1;
            this.g().a(v5_1, p9.e.get(v4_1));
            v3_2 = v7;
        }
        try {
            byte[] v1_6 = new byte[v0_6.e()];
            String v3_4 = com.google.android.gms.internal.measurement.fj.a(v1_6, 0, v1_6.length);
            v0_6.a(v3_4);
            v3_4.a();
            this.r().x().a("Saving event, name, data size", this.o().a(p9.b), Integer.valueOf(v1_6.length));
            long v0_4 = new android.content.ContentValues();
            v0_4.put("app_id", p9.a);
            v0_4.put("name", p9.b);
            v0_4.put("timestamp", Long.valueOf(p9.c));
            v0_4.put("metadata_fingerprint", Long.valueOf(p10));
            v0_4.put("data", v1_6);
            v0_4.put("realtime", Integer.valueOf(p12));
            try {
                if (this.y().insert("raw_events", 0, v0_4) != -1) {
                    return 1;
                } else {
                    this.r().an_().a("Failed to insert raw event (got -1). appId", com.google.android.gms.measurement.internal.o.a(p9.a));
                    return 0;
                }
            } catch (com.google.android.gms.measurement.internal.q v10_10) {
                this.r().an_().a("Error storing raw event. appId", com.google.android.gms.measurement.internal.o.a(p9.a), v10_10);
                return 0;
            }
        } catch (com.google.android.gms.measurement.internal.q v10_6) {
            this.r().an_().a("Data loss. Failed to serialize event params/data. appId", com.google.android.gms.measurement.internal.o.a(p9.a), v10_6);
            return 0;
        }
    }

Method org.jetbrains.anko.db.i.b() calling method android.database.sqlite.SQLiteDatabase.insertOrThrow()


    public static final varargs long b(android.database.sqlite.SQLiteDatabase p1, String p2, kotlin.Pair[] p3)
    {
        kotlin.jvm.internal.ae.f(p1, "$receiver");
        kotlin.jvm.internal.ae.f(p2, "tableName");
        kotlin.jvm.internal.ae.f(p3, "values");
        return p1.insertOrThrow(p2, 0, org.jetbrains.anko.db.i.a(p3));
    }

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


    private final boolean a(int p18, byte[] p19)
    {
        this.b();
        this.d();
        Long v3_6 = 0;
        if (!this.b) {
            int v2_1 = new android.content.ContentValues();
            v2_1.put("type", Integer.valueOf(p18));
            v2_1.put("entry", p19);
            com.google.android.gms.measurement.internal.q v4_6 = 5;
            int v5_2 = 0;
            int v6 = 5;
            while (v5_2 < v4_6) {
                int v7 = 0;
                try {
                    int v9 = this.y();
                    try {
                        if (v9 != 0) {
                            v9.beginTransaction();
                            Long v10_0 = 0;
                            int v12_0 = v9.rawQuery("select count(1) from messages", 0);
                            try {
                                if ((v12_0 != 0) && (v12_0.moveToFirst())) {
                                    v10_0 = v12_0.getLong(v3_6);
                                }
                                if (v10_0 >= 100000) {
                                    this.r().an_().a("Data loss, local db full");
                                    long v13_3 = ((100000 - v10_0) + 1);
                                    String[] v11 = new String[1];
                                    v11[v3_6] = Long.toString(v13_3);
                                    Long v10_3 = ((long) v9.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v11));
                                    if (v10_3 != v13_3) {
                                        this.r().an_().a("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v13_3), Long.valueOf(v10_3), Long.valueOf((v13_3 - v10_3)));
                                    }
                                }
                                v9.insertOrThrow("messages", 0, v2_1);
                                v9.setTransactionSuccessful();
                                v9.endTransaction();
                                if (v12_0 != 0) {
                                    v12_0.close();
                                }
                                if (v9 != 0) {
                                    v9.close();
                                }
                                return 1;
                            } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                                v7 = v12_0;
                                android.os.SystemClock.sleep(((long) v6));
                                v6 += 20;
                                if (v7 != 0) {
                                    v7.close();
                                }
                                if (v9 == 0) {
                                    v5_2++;
                                    v3_6 = 0;
                                    v4_6 = 5;
                                } else {
                                    v9.close();
                                }
                            }
                        } else {
                            this.b = 1;
                            if (v9 != 0) {
                                v9.close();
                            }
                            return v3_6;
                        }
                        v7 = v9;
                        if (v7 != 0) {
                            if (v7.inTransaction()) {
                                v7.endTransaction();
                            }
                        }
                        this.r().an_().a("Error writing entry to local database", Long v3_1);
                        this.b = 1;
                        if (v12_0 != 0) {
                            v12_0.close();
                        }
                        if (v7 == 0) {
                        } else {
                            v7.close();
                        }
                    } catch (Throwable v0_2) {
                        Long v3_4 = v0_2;
                        this.r().an_().a("Error writing entry to local database", v3_4);
                        this.b = 1;
                        if (v7 != 0) {
                            v7.close();
                        }
                        if (v9 == 0) {
                        } else {
                            v9.close();
                        }
                    } catch (Throwable v0_0) {
                        v3_1 = v0_0;
                        v12_0 = 0;
                    }
                } catch (Throwable v0_6) {
                    v2_1 = v0_6;
                    v9 = 0;
                    v12_0 = 0;
                    if (v12_0 != 0) {
                        v12_0.close();
                    }
                    if (v9 != 0) {
                        v9.close();
                    }
                    throw v2_1;
                } catch (Throwable v0_5) {
                    v3_4 = v0_5;
                    v9 = 0;
                } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                    v9 = 0;
                } catch (Throwable v0_4) {
                    v3_1 = v0_4;
                    v12_0 = 0;
                } catch (Throwable v0_3) {
                    v2_1 = v0_3;
                    v12_0 = v7;
                }
            }
            this.r().i().a("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

Method com.fitbit.platform.domain.c.openOrCreateDatabase() calling method android.database.sqlite.SQLiteDatabase.openOrCreateDatabase()


    public android.database.sqlite.SQLiteDatabase openOrCreateDatabase(String p1, int p2, android.database.sqlite.SQLiteDatabase$CursorFactory p3)
    {
        kotlin.jvm.internal.ae.f(p1, "name");
        android.database.sqlite.SQLiteDatabase v1_2 = android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(this.getDatabasePath(p1), p3);
        kotlin.jvm.internal.ae.b(v1_2, "SQLiteDatabase.openOrCre\u2026abasePath(name), factory)");
        return v1_2;
    }

Method io.fabric.sdk.android.e.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 io.fabric.sdk.android.e.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 com.evernote.android.job.i.d() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    int d()
    {
        try {
            int v2_0 = this.b();
            try {
                int v1_3;
                android.content.SharedPreferences v3_0 = v2_0.rawQuery("SELECT MAX(_id) FROM jobs", 0);
                try {
                    if ((v3_0 == null) || (!v3_0.moveToFirst())) {
                        v1_3 = 0;
                    } else {
                        v1_3 = v3_0.getInt(0);
                    }
                } catch (int v1_1) {
                    com.evernote.android.job.i.B.a(v1_1);
                    com.evernote.android.job.i.a(v3_0);
                    com.evernote.android.job.i.b(v2_0);
                    v1_3 = 0;
                    return Math.max(com.evernote.android.job.c.f(), Math.max(v1_3, this.H.getInt("JOB_ID_COUNTER_v2", 0)));
                }
                com.evernote.android.job.i.a(v3_0);
                com.evernote.android.job.i.b(v2_0);
                return Math.max(com.evernote.android.job.c.f(), Math.max(v1_3, this.H.getInt("JOB_ID_COUNTER_v2", 0)));
            } catch (int v0_1) {
                v3_0 = 0;
                com.evernote.android.job.i.a(v3_0);
                com.evernote.android.job.i.b(v2_0);
                throw v0_1;
            } catch (android.content.SharedPreferences v3_2) {
                v3_0 = 0;
                v1_1 = v3_2;
            }
        } catch (int v0_1) {
            v2_0 = 0;
            v3_0 = 0;
        } catch (int v2_1) {
            v3_0 = 0;
            v1_1 = v2_1;
            v2_0 = 0;
        } catch (int v0_1) {
        }
    }

Method org.greenrobot.greendao.database.c.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public android.database.Cursor a(String p2, String[] p3)
    {
        return this.a.rawQuery(p2, p3);
    }

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


    private static java.util.Set a(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.l.onOpen() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


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

Method com.mixpanel.android.mpmetrics.MPDbAdapter.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public int a(org.json.JSONObject p7, ark>com.mixpanel.android.mpmetrics.MPDbAdapterark>$Table p8)
    {
        if (this.b()) {
            Throwable v8_1 = p8.a();
            android.database.sqlite.SQLiteException v0_1 = -1;
            ark>com.mixpanel.android.mpmetrics.MPDbAdapterark>$a v1 = 0;
            try {
                android.database.sqlite.SQLiteException v2_4 = this.m.getWritableDatabase();
                String v3_1 = new android.content.ContentValues();
                v3_1.put("data", p7.toString());
                v3_1.put("created_at", Long.valueOf(System.currentTimeMillis()));
                v2_4.insert(v8_1, 0, v3_1);
                ark>com.mixpanel.android.mpmetrics.MPDbAdapterark>$a v7_4 = new StringBuilder();
                v7_4.append("SELECT COUNT(*) FROM ");
                v7_4.append(v8_1);
                ark>com.mixpanel.android.mpmetrics.MPDbAdapterark>$a v7_6 = v2_4.rawQuery(v7_4.toString(), 0);
                try {
                    v7_6.moveToFirst();
                    android.database.sqlite.SQLiteException v2_2 = v7_6.getInt(0);
                } catch (android.database.sqlite.SQLiteException v2_0) {
                    StringBuilder v4_4 = new StringBuilder();
                    v4_4.append("Could not add Mixpanel data to table ");
                    v4_4.append(v8_1);
                    v4_4.append(". Re-initializing database.");
                    android.util.Log.e("MixpanelAPI.Database", v4_4.toString(), v2_0);
                    if (v7_6 == null) {
                        v1 = v7_6;
                    } else {
                        v7_6.close();
                    }
                    this.m.a();
                    if (v1 != null) {
                        v1.close();
                    }
                    this.m.close();
                    return v0_1;
                }
                if (v7_6 != null) {
                    v7_6.close();
                }
                this.m.close();
                v0_1 = v2_2;
                return v0_1;
            } catch (Throwable v8_4) {
                if (v1 != null) {
                    v1.close();
                }
                this.m.close();
                throw v8_4;
            } catch (android.database.sqlite.SQLiteException v2_0) {
                v7_6 = 0;
            } catch (Throwable v8_4) {
                v1 = v7_6;
            }
        } else {
            android.util.Log.e("MixpanelAPI.Database", "There is not enough space left on the device to store Mixpanel data, so data was discarded");
            return -2;
        }
    }

Method com.mixpanel.android.mpmetrics.MPDbAdapter.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public String[] a(ark>com.mixpanel.android.mpmetrics.MPDbAdapterark>$Table p10)
    {
        ark>com.mixpanel.android.mpmetrics.MPDbAdapterark>$a v10_1 = p10.a();
        int v0_4 = this.m.getReadableDatabase();
        try {
            int v3_3 = new StringBuilder();
            v3_3.append("SELECT * FROM ");
            v3_3.append(v10_1);
            v3_3.append(" ORDER BY ");
            v3_3.append("created_at");
            v3_3.append(" ASC LIMIT 50");
            int v3_1 = v0_4.rawQuery(v3_3.toString(), 0);
            try {
                int v4_5 = new StringBuilder();
                v4_5.append("SELECT COUNT(*) FROM ");
                v4_5.append(v10_1);
                int v0_3 = v0_4.rawQuery(v4_5.toString(), 0);
                try {
                    v0_3.moveToFirst();
                    int v4_3 = String.valueOf(v0_3.getInt(0));
                    try {
                        int v5_4 = new org.json.JSONArray();
                        String v6_0 = 0;
                    } catch (int v5_1) {
                        org.json.JSONObject v7_6 = new StringBuilder();
                        v7_6.append("Could not pull records for Mixpanel out of database ");
                        v7_6.append(v10_1);
                        v7_6.append(". Waiting to send.");
                        android.util.Log.e("MixpanelAPI.Database", v7_6.toString(), v5_1);
                        this.m.close();
                        if (v3_1 != 0) {
                            v3_1.close();
                        }
                        if (v0_3 != 0) {
                            v0_3.close();
                        }
                        int v5_0 = 0;
                        v6_0 = 0;
                    }
                    while (v3_1.moveToNext()) {
                        if (v3_1.isLast()) {
                            v6_0 = v3_1.getString(v3_1.getColumnIndex("_id"));
                        }
                        v5_4.put(new org.json.JSONObject(v3_1.getString(v3_1.getColumnIndex("data"))));
                    }
                    if (v5_4.length() <= 0) {
                        v5_0 = 0;
                    } else {
                        v5_0 = v5_4.toString();
                    }
                    this.m.close();
                    if (v3_1 != 0) {
                        v3_1.close();
                    }
                    if (v0_3 == 0) {
                        if ((v6_0 == null) || (v5_0 == 0)) {
                            return 0;
                        } else {
                            ark>com.mixpanel.android.mpmetrics.MPDbAdapterark>$a v10_3 = new String[3];
                            v10_3[0] = v6_0;
                            v10_3[1] = v5_0;
                            v10_3[2] = v4_3;
                            return v10_3;
                        }
                    } else {
                        v0_3.close();
                    }
                } catch (int v5_1) {
                    v4_3 = 0;
                }
            } catch (ark>com.mixpanel.android.mpmetrics.MPDbAdapterark>$a v10_4) {
                v0_3 = 0;
                this.m.close();
                if (v3_1 != 0) {
                    v3_1.close();
                }
                if (v0_3 != 0) {
                    v0_3.close();
                }
                throw v10_4;
            } catch (int v5_1) {
                v0_3 = 0;
                v4_3 = 0;
            }
        } catch (ark>com.mixpanel.android.mpmetrics.MPDbAdapterark>$a v10_4) {
            v0_3 = 0;
            v3_1 = 0;
        } catch (int v5_1) {
            v0_3 = 0;
            v3_1 = 0;
            v4_3 = 0;
        } catch (ark>com.mixpanel.android.mpmetrics.MPDbAdapterark>$a v10_4) {
        }
    }

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


    private final boolean a(String p55, long p56)
    {
        this.d().f();
        try {
            com.google.android.gms.measurement.internal.fg v3_9 = 0;
            Object v2_24 = new ark>com.google.android.gms.measurement.internal.edark>$a(this, 0);
            java.util.List v4_13 = this.d();
            String v5_118 = this.w;
            com.google.android.gms.common.internal.ab.a(v2_24);
            v4_13.d();
            v4_13.k();
            try {
                int v22;
                long v7_3;
                Long v15_6 = v4_13.y();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        long v13_19;
                        com.google.android.gms.measurement.internal.fg v3_10 = v5_118 cmp -1;
                        if (v3_10 == null) {
                            v13_19 = new String[] {0});
                        } else {
                            long v7_33 = new String[2];
                            v7_33[0] = 0;
                            v7_33[1] = String.valueOf(v5_118);
                            v13_19 = v7_33;
                        }
                        com.google.android.gms.measurement.internal.fg v3_15;
                        if (v3_10 == null) {
                            v3_15 = "";
                        } else {
                            v3_15 = " and rowid <= ?";
                        }
                        long v14_11 = new StringBuilder((String.valueOf(v3_15).length() + 84));
                        v14_11.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_11.append(v3_15);
                        v14_11.append(" order by rowid limit 1;");
                        v3_9 = v15_6.rawQuery(v14_11.toString(), v13_19);
                        if (v3_9.moveToFirst()) {
                            long v13_23 = v3_9.getString(0);
                            v3_9.close();
                            v22 = v3_9;
                            v7_3 = v13_23;
                            v3_9 = 0;
                            try {
                                long v13_6 = new String[2];
                                v13_6[0] = v3_9;
                                v13_6[1] = v7_3;
                                com.google.android.gms.internal.measurement.q v24 = v15_6;
                                Long v15_5 = v15_6.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_6, 0, 0, "rowid", "2");
                                try {
                                    if (v15_5.moveToFirst()) {
                                        long v13_10 = v15_5.getBlob(0);
                                        long v13_11 = com.google.android.gms.internal.measurement.fi.a(v13_10, 0, v13_10.length);
                                        long v14_8 = new com.google.android.gms.internal.measurement.t();
                                        try {
                                            v14_8.a(v13_11);
                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                            long v6_0 = v15_5;
                                            v4_13.r().an_().a("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.o.a(v3_9), v0_3);
                                            if (v6_0 == 0) {
                                                com.google.android.gms.measurement.internal.fg v3_14;
                                                if (v2_24.c == null) {
                                                    v3_14 = 1;
                                                } else {
                                                    if (!v2_24.c.isEmpty()) {
                                                        v3_14 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_14 != null) {
                                                    this.d().w();
                                                    this.d().x();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.measurement.internal.fg v3_8 = v2_24.a;
                                                    java.util.List v4_4 = new com.google.android.gms.internal.measurement.q[v2_24.c.size()];
                                                    v3_8.b = v4_4;
                                                    java.util.List v4_7 = this.i.b().e(v3_8.o);
                                                    long v7_28 = 0;
                                                    boolean v10_2 = 0;
                                                    long v12_17 = 0;
                                                    long v13_8 = 0;
                                                    while (v7_28 < v2_24.c.size()) {
                                                        int v40_0;
                                                        Long v15_3 = ((com.google.android.gms.internal.measurement.q) v2_24.c.get(v7_28));
                                                        if (!this.p().b(v2_24.a.o, v15_3.b)) {
                                                            String v5_6 = this.p().c(v2_24.a.o, v15_3.b);
                                                            if (v5_6 != null) {
                                                                if (v15_3.a == null) {
                                                                    int v9_6 = new com.google.android.gms.internal.measurement.r[0];
                                                                    v15_3.a = v9_6;
                                                                }
                                                                int v8_21 = v15_3.a;
                                                                int v9_7 = v8_21.length;
                                                                int v11_3 = 0;
                                                                long v16_1 = 0;
                                                                int v17_0 = 0;
                                                                while (v11_3 < v9_7) {
                                                                    Long v27_1;
                                                                    long v6_79 = v8_21[v11_3];
                                                                    com.google.android.gms.measurement.internal.ex v25_1 = v8_21;
                                                                    long v26_1 = v9_7;
                                                                    if (!"_c".equals(v6_79.a)) {
                                                                        v27_1 = v12_17;
                                                                        if ("_r".equals(v6_79.a)) {
                                                                            v6_79.c = Long.valueOf(1);
                                                                            v17_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v27_1 = v12_17;
                                                                        v6_79.c = Long.valueOf(1);
                                                                        v16_1 = 1;
                                                                    }
                                                                    v11_3++;
                                                                    v8_21 = v25_1;
                                                                    v9_7 = v26_1;
                                                                    v12_17 = v27_1;
                                                                }
                                                                Long v27_0 = v12_17;
                                                                if ((v16_1 == 0) && (v5_6 != null)) {
                                                                    this.i.r().x().a("Marking event as conversion", this.i.k().a(v15_3.b));
                                                                    long v6_11 = ((com.google.android.gms.internal.measurement.r[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                                    int v8_27 = new com.google.android.gms.internal.measurement.r();
                                                                    v8_27.a = "_c";
                                                                    v8_27.c = Long.valueOf(1);
                                                                    v6_11[(v6_11.length - 1)] = v8_27;
                                                                    v15_3.a = v6_11;
                                                                }
                                                                if (v17_0 == 0) {
                                                                    this.i.r().x().a("Marking event as real-time", this.i.k().a(v15_3.b));
                                                                    long v6_17 = ((com.google.android.gms.internal.measurement.r[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                                    int v8_33 = new com.google.android.gms.internal.measurement.r();
                                                                    v8_33.a = "_r";
                                                                    v8_33.c = Long.valueOf(1);
                                                                    v6_17[(v6_17.length - 1)] = v8_33;
                                                                    v15_3.a = v6_17;
                                                                }
                                                                long v12_12;
                                                                if (this.d().a(this.w(), v2_24.a.o, 0, 0, 0, 0, 1).e <= ((long) this.i.b().a(v2_24.a.o))) {
                                                                    v12_12 = 1;
                                                                } else {
                                                                    long v6_25 = 0;
                                                                    while (v6_25 < v15_3.a.length) {
                                                                        if (!"_r".equals(v15_3.a[v6_25].a)) {
                                                                            v6_25++;
                                                                        } else {
                                                                            int v8_42 = new com.google.android.gms.internal.measurement.r[(v15_3.a.length - 1)];
                                                                            if (v6_25 > 0) {
                                                                                System.arraycopy(v15_3.a, 0, v8_42, 0, v6_25);
                                                                            }
                                                                            if (v6_25 < v8_42.length) {
                                                                                System.arraycopy(v15_3.a, (v6_25 + 1), v8_42, v6_25, (v8_42.length - v6_25));
                                                                            }
                                                                            v15_3.a = v8_42;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_12 = v27_0;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.em.a(v15_3.b)) || (v5_6 == null)) {
                                                                    v40_0 = v7_28;
                                                                    long v37_0 = v12_12;
                                                                } else {
                                                                    v37_0 = v12_12;
                                                                    if (this.d().a(this.w(), v2_24.a.o, 0, 0, 1, 0, 0).c <= ((long) this.i.b().b(v2_24.a.o, com.google.android.gms.measurement.internal.e.v))) {
                                                                        v40_0 = v7_28;
                                                                    } else {
                                                                        this.i.r().i().a("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                        long v6_38 = v15_3.a;
                                                                        int v8_46 = v6_38.length;
                                                                        int v9_34 = 0;
                                                                        int v11_18 = 0;
                                                                        long v12_16 = 0;
                                                                        while (v9_34 < v8_46) {
                                                                            int v8_56 = v6_38[v9_34];
                                                                            if (!"_c".equals(v8_56.a)) {
                                                                                if ("_err".equals(v8_56.a)) {
                                                                                    v11_18 = 1;
                                                                                }
                                                                            } else {
                                                                                v12_16 = v8_56;
                                                                            }
                                                                            v9_34++;
                                                                        }
                                                                        v40_0 = v7_28;
                                                                        if ((v11_18 == 0) || (v12_16 == 0)) {
                                                                            if (v12_16 == 0) {
                                                                                this.i.r().an_().a("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                            } else {
                                                                                v12_16.a = "_err";
                                                                                v12_16.c = Long.valueOf(10);
                                                                            }
                                                                        } else {
                                                                            long v6_45 = v15_3.a;
                                                                            int v8_50 = new com.google.android.gms.internal.measurement.r[1];
                                                                            v8_50[0] = v12_16;
                                                                            v15_3.a = ((com.google.android.gms.internal.measurement.r[]) com.google.android.gms.common.util.b.a(v6_45, v8_50));
                                                                        }
                                                                    }
                                                                }
                                                                v12_17 = v37_0;
                                                            } else {
                                                                int v8_15;
                                                                this.f();
                                                                int v8_13 = v15_3.b;
                                                                com.google.android.gms.common.internal.ab.a(v8_13);
                                                                int v9_2 = v8_13.hashCode();
                                                                if (v9_2 == 94660) {
                                                                    if (!v8_13.equals("_in")) {
                                                                        v8_15 = -1;
                                                                    } else {
                                                                        v8_15 = 0;
                                                                    }
                                                                } else {
                                                                    if (v9_2 == 95025) {
                                                                        if (!v8_13.equals("_ug")) {
                                                                        } else {
                                                                            v8_15 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v9_2 == 95027) {
                                                                            if (!v8_13.equals("_ui")) {
                                                                            } else {
                                                                                v8_15 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v8_18;
                                                                switch (v8_15) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v8_18 = 1;
                                                                    default:
                                                                        v8_18 = 0;
                                                                }
                                                                if (v8_18 == 0) {
                                                                    v40_0 = v7_28;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.i.b().m(v2_24.a.o)) || (v5_6 == null)) {
                                                            } else {
                                                                String v5_7 = v15_3.a;
                                                                long v6_51 = 0;
                                                                long v7_17 = -1;
                                                                int v8_51 = -1;
                                                                while (v6_51 < v5_7.length) {
                                                                    if (!"value".equals(v5_7[v6_51].a)) {
                                                                        if ("currency".equals(v5_7[v6_51].a)) {
                                                                            v8_51 = v6_51;
                                                                        }
                                                                    } else {
                                                                        v7_17 = v6_51;
                                                                    }
                                                                    v6_51++;
                                                                }
                                                                if (v7_17 == -1) {
                                                                } else {
                                                                    if ((v5_7[v7_17].c != null) || (v5_7[v7_17].d != null)) {
                                                                        long v6_60;
                                                                        if (v8_51 != -1) {
                                                                            long v6_59 = v5_7[v8_51].b;
                                                                            if (v6_59 == 0) {
                                                                            } else {
                                                                                if (v6_59.length() == 3) {
                                                                                    int v8_53 = 0;
                                                                                    while (v8_53 < v6_59.length()) {
                                                                                        int v11_20 = v6_59.codePointAt(v8_53);
                                                                                        if (Character.isLetter(v11_20)) {
                                                                                            v8_53 += Character.charCount(v11_20);
                                                                                        } else {
                                                                                        }
                                                                                    }
                                                                                    v6_60 = 0;
                                                                                    if (v6_60 != 0) {
                                                                                        this.i.r().k().a("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                        v5_7 = ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(v5_7, v7_17), "_c"), 19, "currency");
                                                                                    }
                                                                                    v15_3.a = v5_7;
                                                                                    if ((v4_7 != null) && ("_e".equals(v15_3.b))) {
                                                                                        if (v15_3.a != null) {
                                                                                            if (v15_3.a.length != 0) {
                                                                                                this.f();
                                                                                                String v5_19 = ((Long) com.google.android.gms.measurement.internal.ej.b(v15_3, "_et"));
                                                                                                if (v5_19 != null) {
                                                                                                    v13_8 += v5_19.longValue();
                                                                                                    long v6_74 = (v10_2 + 1);
                                                                                                    v3_8.b[v10_2] = v15_3;
                                                                                                    v10_2 = v6_74;
                                                                                                    v7_28 = (v40_0 + 1);
                                                                                                    int v11 = 0;
                                                                                                } else {
                                                                                                    this.i.r().i().a("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                                                }
                                                                                            } else {
                                                                                            }
                                                                                        }
                                                                                        this.i.r().i().a("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                                    }
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v6_60 = 1;
                                                                        } else {
                                                                            v6_60 = 1;
                                                                        }
                                                                    } else {
                                                                        this.i.r().k().a("Value must be specified with a numeric type.");
                                                                        v5_7 = ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(v5_7, v7_17), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            String v5_35;
                                                            this.i.r().i().a("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o), this.i.k().a(v15_3.b));
                                                            if (this.p().f(v2_24.a.o)) {
                                                                v5_35 = 1;
                                                            } else {
                                                                if (!this.p().g(v2_24.a.o)) {
                                                                    v5_35 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_35 == null) && (!"_err".equals(v15_3.b))) {
                                                                this.i.j().a(v2_24.a.o, 11, "_ev", v15_3.b, 0);
                                                            }
                                                            v40_0 = v7_28;
                                                        }
                                                    }
                                                    Long v27_2 = v12_17;
                                                    if (v10_2 < v2_24.c.size()) {
                                                        v3_8.b = ((com.google.android.gms.internal.measurement.q[]) java.util.Arrays.copyOf(v3_8.b, v10_2));
                                                    }
                                                    long v6_1;
                                                    java.util.List v4_8;
                                                    if (v4_7 == null) {
                                                        v4_8 = this;
                                                        v6_1 = v2_24;
                                                    } else {
                                                        com.google.android.gms.measurement.internal.q v1_7;
                                                        int v42_0;
                                                        java.util.List v4_10 = this.d().c(v3_8.o, "_lte");
                                                        if (v4_10 == null) {
                                                            v42_0 = v2_24;
                                                            v1_7 = new com.google.android.gms.measurement.internal.el;
                                                            v4_8 = this;
                                                            v1_7(v3_8.o, "auto", "_lte", this.i.m().a(), Long.valueOf(v13_8));
                                                        } else {
                                                            if (v4_10.e != null) {
                                                                String v5_59 = new com.google.android.gms.measurement.internal.el;
                                                                v42_0 = v2_24;
                                                                try {
                                                                    v5_59(v3_8.o, "auto", "_lte", this.i.m().a(), Long.valueOf((((Long) v4_10.e).longValue() + v13_8)));
                                                                    v1_7 = v5_59;
                                                                    v4_8 = this;
                                                                } catch (android.database.sqlite.SQLiteException v0_5) {
                                                                    com.google.android.gms.measurement.internal.q v1_1 = v0_5;
                                                                    this.d().x();
                                                                    throw v1_1;
                                                                }
                                                            } else {
                                                            }
                                                        }
                                                        Object v2_5 = new com.google.android.gms.internal.measurement.w();
                                                        v2_5.b = "_lte";
                                                        v2_5.a = Long.valueOf(v4_8.i.m().a());
                                                        v2_5.d = ((Long) v1_7.e);
                                                        String v5_69 = 0;
                                                        while (v5_69 < v3_8.c.length) {
                                                            if (!"_lte".equals(v3_8.c[v5_69].b)) {
                                                                v5_69++;
                                                            } else {
                                                                v3_8.c[v5_69] = v2_5;
                                                                String v5_70 = 1;
                                                            }
                                                            if (v5_70 != null) {
                                                                v6_1 = v42_0;
                                                            } else {
                                                                v3_8.c = ((com.google.android.gms.internal.measurement.w[]) java.util.Arrays.copyOf(v3_8.c, (v3_8.c.length + 1)));
                                                                v6_1 = v42_0;
                                                                v3_8.c[(v6_1.a.c.length - 1)] = v2_5;
                                                            }
                                                            if (v13_8 > 0) {
                                                                this.d().a(v1_7);
                                                                v4_8.i.r().w().a("Updated lifetime engagement user property with value. Value", v1_7.e);
                                                            }
                                                        }
                                                        v5_70 = 0;
                                                    }
                                                    int v51_1;
                                                    v3_8.A = v4_8.a(v3_8.o, v3_8.c, v3_8.b);
                                                    if (!v4_8.i.b().d(v6_1.a.o)) {
                                                        v51_1 = v6_1;
                                                    } else {
                                                        com.google.android.gms.measurement.internal.q v1_15 = new java.util.HashMap();
                                                        Object v2_16 = new com.google.android.gms.internal.measurement.q[v3_8.b.length];
                                                        String v5_2 = v4_8.i.j().h();
                                                        long v7_11 = v3_8.b;
                                                        int v8_10 = v7_11.length;
                                                        int v9_1 = 0;
                                                        boolean v10_0 = 0;
                                                        while (v9_1 < v8_10) {
                                                            com.google.android.gms.measurement.internal.an v46;
                                                            int v51_0;
                                                            int v44;
                                                            String v45;
                                                            int v43;
                                                            int v50;
                                                            int v11_29 = v7_11[v9_1];
                                                            if (!v11_29.b.equals("_ep")) {
                                                                com.google.android.gms.measurement.internal.fg v3_25;
                                                                long v47;
                                                                v43 = v7_11;
                                                                long v12_33 = this.p().e(v6_1.a.o);
                                                                v4_8.i.j();
                                                                long v14_14 = com.google.android.gms.measurement.internal.em.a(v11_29.c.longValue(), v12_33);
                                                                v46 = v3_8;
                                                                v44 = v8_10;
                                                                v45 = v9_1;
                                                                com.google.android.gms.measurement.internal.fg v3_23 = Long.valueOf(1);
                                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                                    v47 = v12_33;
                                                                    v3_25 = 0;
                                                                } else {
                                                                    if (v3_23 != null) {
                                                                        int v8_75 = v11_29.a;
                                                                        int v9_47 = v8_75.length;
                                                                        v47 = v12_33;
                                                                        long v12_34 = 0;
                                                                        while (v12_34 < v9_47) {
                                                                            long v13_27 = v8_75[v12_34];
                                                                            if (!"_dbg".equals(v13_27.a)) {
                                                                                v12_34++;
                                                                            } else {
                                                                                if (((!(v3_23 instanceof Long)) || (!v3_23.equals(v13_27.c))) && (((!(v3_23 instanceof String)) || (!v3_23.equals(v13_27.b))) && ((!(v3_23 instanceof Double)) || (!v3_23.equals(v13_27.d))))) {
                                                                                    break;
                                                                                }
                                                                                v3_25 = 1;
                                                                            }
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                long v12_35;
                                                                if (v3_25 != null) {
                                                                    v12_35 = 1;
                                                                } else {
                                                                    v12_35 = this.p().d(v6_1.a.o, v11_29.b);
                                                                }
                                                                if (v12_35 > 0) {
                                                                    com.google.android.gms.measurement.internal.fg v3_1 = ((com.google.android.gms.measurement.internal.fg) v1_15.get(v11_29.b));
                                                                    if (v3_1 == null) {
                                                                        v3_1 = this.d().a(v6_1.a.o, v11_29.b);
                                                                        if (v3_1 == null) {
                                                                            v4_8.i.r().i().a("Event being bundled has no eventAggregate. appId, eventName", v6_1.a.o, v11_29.b);
                                                                            v3_1 = new com.google.android.gms.measurement.internal.fg;
                                                                            v3_1(v6_1.a.o, v11_29.b, 1, 1, v11_29.c.longValue(), 0, 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    int v8_83;
                                                                    this.f();
                                                                    long v7_94 = ((Long) com.google.android.gms.measurement.internal.ej.b(v11_29, "_eid"));
                                                                    if (v7_94 == 0) {
                                                                        v8_83 = 0;
                                                                    } else {
                                                                        v8_83 = 1;
                                                                    }
                                                                    int v8_84 = Boolean.valueOf(v8_83);
                                                                    if (v12_35 != 1) {
                                                                        if (v5_2.nextInt(v12_35) != 0) {
                                                                            Boolean v53;
                                                                            String v5_129;
                                                                            long v52;
                                                                            v50 = v5_2;
                                                                            if (!v4_8.i.b().o(v6_1.a.o)) {
                                                                                v51_0 = v6_1;
                                                                                v52 = v7_94;
                                                                                v53 = v8_84;
                                                                                if (Math.abs((v11_29.c.longValue() - v3_1.f)) < 86400000) {
                                                                                    v5_129 = 0;
                                                                                } else {
                                                                                    v5_129 = 1;
                                                                                }
                                                                            } else {
                                                                                long v16_11;
                                                                                if (v3_1.g == null) {
                                                                                    v4_8.i.j();
                                                                                    v51_0 = v6_1;
                                                                                    v52 = v7_94;
                                                                                    v53 = v8_84;
                                                                                    v16_11 = com.google.android.gms.measurement.internal.em.a(v11_29.d.longValue(), v47);
                                                                                } else {
                                                                                    v16_11 = v3_1.g.longValue();
                                                                                    v51_0 = v6_1;
                                                                                    v52 = v7_94;
                                                                                    v53 = v8_84;
                                                                                }
                                                                                if (v16_11 == v14_14) {
                                                                                }
                                                                            }
                                                                            if (v5_129 == null) {
                                                                                if (!v53.booleanValue()) {
                                                                                    v9_1 = (v45 + 1);
                                                                                    v7_11 = v43;
                                                                                    v8_10 = v44;
                                                                                    v3_8 = v46;
                                                                                    v5_2 = v50;
                                                                                    v6_1 = v51_0;
                                                                                } else {
                                                                                    v1_15.put(v11_29.b, v3_1.a(v52, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.f();
                                                                                v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_efs", Long.valueOf(1));
                                                                                this.f();
                                                                                long v12_36 = ((long) v12_35);
                                                                                v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_sr", Long.valueOf(v12_36));
                                                                                String v5_136 = (v10_0 + 1);
                                                                                v2_16[v10_0] = v11_29;
                                                                                if (v53.booleanValue()) {
                                                                                    v3_1 = v3_1.a(0, Long.valueOf(v12_36), Boolean.valueOf(1));
                                                                                }
                                                                                v1_15.put(v11_29.b, v3_1.a(v11_29.c.longValue(), v14_14));
                                                                                v10_0 = v5_136;
                                                                            }
                                                                        } else {
                                                                            this.f();
                                                                            long v12_37 = ((long) v12_35);
                                                                            v50 = v5_2;
                                                                            v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_sr", Long.valueOf(v12_37));
                                                                            String v5_1 = (v10_0 + 1);
                                                                            v2_16[v10_0] = v11_29;
                                                                            if (v8_84.booleanValue()) {
                                                                                v3_1 = v3_1.a(0, Long.valueOf(v12_37), 0);
                                                                            }
                                                                            v1_15.put(v11_29.b, v3_1.a(v11_29.c.longValue(), v14_14));
                                                                            v10_0 = v5_1;
                                                                        }
                                                                    } else {
                                                                        long v7_4 = (v10_0 + 1);
                                                                        v2_16[v10_0] = v11_29;
                                                                        if ((v8_84.booleanValue()) && ((v3_1.h != null) || ((v3_1.i != null) || (v3_1.j != null)))) {
                                                                            v1_15.put(v11_29.b, v3_1.a(0, 0, 0));
                                                                        }
                                                                        v50 = v5_2;
                                                                        v51_0 = v6_1;
                                                                        v10_0 = v7_4;
                                                                    }
                                                                } else {
                                                                    v4_8.i.r().i().a("Sample rate must be positive. event, rate", v11_29.b, Integer.valueOf(v12_35));
                                                                    com.google.android.gms.measurement.internal.fg v3_7 = (v10_0 + 1);
                                                                    v2_16[v10_0] = v11_29;
                                                                    v10_0 = v3_7;
                                                                    v50 = v5_2;
                                                                }
                                                                v51_0 = v6_1;
                                                            } else {
                                                                this.f();
                                                                long v12_2 = ((String) com.google.android.gms.measurement.internal.ej.b(v11_29, "_en"));
                                                                long v13_1 = ((com.google.android.gms.measurement.internal.fg) v1_15.get(v12_2));
                                                                if (v13_1 == 0) {
                                                                    v13_1 = this.d().a(v6_1.a.o, v12_2);
                                                                    v1_15.put(v12_2, v13_1);
                                                                }
                                                                if (v13_1.h != null) {
                                                                    v43 = v7_11;
                                                                    v46 = v3_8;
                                                                    v50 = v5_2;
                                                                    v51_0 = v6_1;
                                                                } else {
                                                                    if (v13_1.i.longValue() > 1) {
                                                                        this.f();
                                                                        v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_sr", v13_1.i);
                                                                    }
                                                                    if ((v13_1.j == null) || (!v13_1.j.booleanValue())) {
                                                                        v43 = v7_11;
                                                                    } else {
                                                                        this.f();
                                                                        v43 = v7_11;
                                                                        v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_efs", Long.valueOf(1));
                                                                    }
                                                                    long v7_10 = (v10_0 + 1);
                                                                    v2_16[v10_0] = v11_29;
                                                                    v46 = v3_8;
                                                                    v50 = v5_2;
                                                                    v51_0 = v6_1;
                                                                    v10_0 = v7_10;
                                                                }
                                                                v44 = v8_10;
                                                                v45 = v9_1;
                                                            }
                                                        }
                                                        v51_1 = v6_1;
                                                        if (v10_0 < v3_8.b.length) {
                                                            v3_8.b = ((com.google.android.gms.internal.measurement.q[]) java.util.Arrays.copyOf(v2_16, v10_0));
                                                        }
                                                        com.google.android.gms.measurement.internal.q v1_17 = v1_15.entrySet().iterator();
                                                        while (v1_17.hasNext()) {
                                                            this.d().a(((com.google.android.gms.measurement.internal.fg) ((java.util.Map$Entry) v1_17.next()).getValue()));
                                                        }
                                                    }
                                                    v3_8.e = Long.valueOf(nan);
                                                    v3_8.f = Long.valueOf(-0.0);
                                                    com.google.android.gms.measurement.internal.q v1_22 = 0;
                                                    while (v1_22 < v3_8.b.length) {
                                                        Object v2_27 = v3_8.b[v1_22];
                                                        if (v2_27.c.longValue() < v3_8.e.longValue()) {
                                                            v3_8.e = v2_27.c;
                                                        }
                                                        if (v2_27.c.longValue() > v3_8.f.longValue()) {
                                                            v3_8.f = v2_27.c;
                                                        }
                                                        v1_22++;
                                                    }
                                                    com.google.android.gms.measurement.internal.q v1_23 = v51_1;
                                                    Object v2_23 = v1_23.a.o;
                                                    String v5_82 = this.d().b(v2_23);
                                                    if (v5_82 != null) {
                                                        if (v3_8.b.length > 0) {
                                                            int v8_69;
                                                            long v6_114 = v5_82.i();
                                                            if (v6_114 == 0) {
                                                                v8_69 = 0;
                                                            } else {
                                                                v8_69 = Long.valueOf(v6_114);
                                                            }
                                                            v3_8.h = v8_69;
                                                            int v8_70 = v5_82.h();
                                                            if (v8_70 != 0) {
                                                                v6_114 = v8_70;
                                                            } else {
                                                            }
                                                            long v6_115;
                                                            if (v6_114 == 0) {
                                                                v6_115 = 0;
                                                            } else {
                                                                v6_115 = Long.valueOf(v6_114);
                                                            }
                                                            v3_8.g = v6_115;
                                                            v5_82.s();
                                                            v3_8.w = Integer.valueOf(((int) v5_82.p()));
                                                            v5_82.a(v3_8.e.longValue());
                                                            v5_82.b(v3_8.f.longValue());
                                                            v3_8.x = v5_82.A();
                                                            this.d().a(v5_82);
                                                        }
                                                    } else {
                                                        v4_8.i.r().an_().a("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.o.a(v1_23.a.o));
                                                    }
                                                    if (v3_8.b.length > 0) {
                                                        v4_8.i.u();
                                                        String v5_90 = this.p().a(v1_23.a.o);
                                                        if (v5_90 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v1_23.a.y)) {
                                                                v4_8.i.r().i().a("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.o.a(v1_23.a.o));
                                                            } else {
                                                                v3_8.E = Long.valueOf(-1);
                                                            }
                                                        } else {
                                                            if (v5_90.a != null) {
                                                                v3_8.E = v5_90.a;
                                                            } else {
                                                            }
                                                        }
                                                        this.d().a(v3_8, v27_2);
                                                    }
                                                    com.google.android.gms.measurement.internal.fg v3_18 = this.d();
                                                    com.google.android.gms.measurement.internal.q v1_24 = v1_23.b;
                                                    com.google.android.gms.common.internal.ab.a(v1_24);
                                                    v3_18.d();
                                                    v3_18.k();
                                                    String v5_102 = new StringBuilder("rowid in (");
                                                    long v6_131 = 0;
                                                    while (v6_131 < v1_24.size()) {
                                                        if (v6_131 != 0) {
                                                            v5_102.append(",");
                                                        }
                                                        v5_102.append(((Long) v1_24.get(v6_131)).longValue());
                                                        v6_131++;
                                                    }
                                                    v5_102.append(")");
                                                    String v5_104 = v3_18.y().delete("raw_events", v5_102.toString(), 0);
                                                    if (v5_104 != v1_24.size()) {
                                                        v3_18.r().an_().a("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_104), Integer.valueOf(v1_24.size()));
                                                    }
                                                    com.google.android.gms.measurement.internal.q v1_27 = this.d();
                                                    com.google.android.gms.measurement.internal.fg v3_21 = v1_27.y();
                                                    try {
                                                        long v6_137 = new String[2];
                                                        v6_137[0] = v2_23;
                                                        v6_137[1] = v2_23;
                                                        v3_21.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_137);
                                                    } catch (android.database.sqlite.SQLiteException v0_6) {
                                                        v1_27.r().an_().a("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.o.a(v2_23), v0_6);
                                                    }
                                                    this.d().w();
                                                    this.d().x();
                                                    return 1;
                                                }
                                            } else {
                                                v6_0.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                        }
                                        if (v15_5.moveToNext()) {
                                            v4_13.r().i().a("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.o.a(v3_9));
                                        }
                                        long v16_6;
                                        int v17_4;
                                        v15_5.close();
                                        v2_24.a(v14_8);
                                        if (v5_118 == -1) {
                                            boolean v10_6 = new String[2];
                                            v10_6[0] = v3_9;
                                            v10_6[1] = v7_3;
                                            v16_6 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_4 = v10_6;
                                        } else {
                                            long v13_16 = new String[3];
                                            v13_16[0] = v3_9;
                                            v13_16[1] = v7_3;
                                            v13_16[2] = String.valueOf(v5_118);
                                            v16_6 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_4 = v13_16;
                                        }
                                        v6_0 = v15_5;
                                        String v5_47 = v24.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_6, v17_4, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_47.moveToFirst()) {
                                                v4_13.r().i().a("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.o.a(v3_9));
                                                if (v5_47 == null) {
                                                } else {
                                                    v5_47.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v6_0 = v5_47;
                                            com.google.android.gms.measurement.internal.q v1_2 = v0_0;
                                            if (v6_0 != 0) {
                                                v6_0.close();
                                            }
                                            throw v1_2;
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v7_3 = v3_9;
                                            v6_0 = v5_47;
                                            com.google.android.gms.measurement.internal.fg v3_0 = v0_1;
                                            v4_13.r().an_().a("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.o.a(v7_3), v3_0);
                                            if (v6_0 == 0) {
                                            } else {
                                                v6_0.close();
                                            }
                                        }
                                        do {
                                            long v6_92 = v5_47.getLong(0);
                                            long v12_24 = v5_47.getBlob(3);
                                            boolean v10_11 = com.google.android.gms.internal.measurement.fi.a(v12_24, 0, v12_24.length);
                                            long v12_26 = new com.google.android.gms.internal.measurement.q();
                                            v12_26.a(v10_11);
                                            v12_26.b = v5_47.getString(1);
                                            v12_26.c = Long.valueOf(v5_47.getLong(2));
                                            if (v2_24.a(v6_92, v12_26)) {
                                            } else {
                                                if (v5_47 == null) {
                                                } else {
                                                    v5_47.close();
                                                }
                                            }
                                        } while(v5_47.moveToNext());
                                        if (v5_47 == null) {
                                        } else {
                                            v5_47.close();
                                        }
                                    } else {
                                        v4_13.r().an_().a("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.o.a(v3_9));
                                        if (v15_5 == null) {
                                        } else {
                                            v15_5.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_5;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v6_0 = v15_5;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_5;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v7_3 = v3_9;
                                    v6_0 = v15_5;
                                }
                                v7_3 = v3_9;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v6_0 = v22;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v7_3 = v3_9;
                                v6_0 = v22;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    } else {
                        long v14_12;
                        long v13_24 = v5_118 cmp -1;
                        try {
                            if (v13_24 == 0) {
                                v14_12 = new String[1];
                                v14_12[0] = String.valueOf(p56);
                            } else {
                                v14_12 = new String[2];
                                v14_12[0] = String.valueOf(v5_118);
                                v14_12[1] = String.valueOf(p56);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            v6_0 = 0;
                            v7_3 = 0;
                        }
                        long v13_26;
                        if (v13_24 == 0) {
                            v13_26 = "";
                        } else {
                            v13_26 = "rowid <= ? and ";
                        }
                        com.google.android.gms.measurement.internal.fg v3_34 = new StringBuilder((String.valueOf(v13_26).length() + 148));
                        v3_34.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_34.append(v13_26);
                        v3_34.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_9 = v15_6.rawQuery(v3_34.toString(), v14_12);
                        if (v3_9.moveToFirst()) {
                            long v7_7 = v3_9.getString(0);
                            try {
                                long v13_4 = v3_9.getString(1);
                                v3_9.close();
                                v22 = v3_9;
                                v3_9 = v7_7;
                                v7_3 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v6_0 = v3_9;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v6_0 = v3_9;
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v6_0 = v3_9;
                    v7_3 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v6_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
                v3_0 = v0_7;
                v6_0 = 0;
                v7_3 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
            }
        } catch (android.database.sqlite.SQLiteException v0_2) {
            v1_1 = v0_2;
        }
    }

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


    private final boolean a(String p55, long p56)
    {
        this.d().f();
        try {
            com.google.android.gms.measurement.internal.fg v3_9 = 0;
            Object v2_24 = new ark>com.google.android.gms.measurement.internal.edark>$a(this, 0);
            java.util.List v4_13 = this.d();
            String v5_118 = this.w;
            com.google.android.gms.common.internal.ab.a(v2_24);
            v4_13.d();
            v4_13.k();
            try {
                int v22;
                long v7_3;
                Long v15_6 = v4_13.y();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        long v13_19;
                        com.google.android.gms.measurement.internal.fg v3_10 = v5_118 cmp -1;
                        if (v3_10 == null) {
                            v13_19 = new String[] {0});
                        } else {
                            long v7_33 = new String[2];
                            v7_33[0] = 0;
                            v7_33[1] = String.valueOf(v5_118);
                            v13_19 = v7_33;
                        }
                        com.google.android.gms.measurement.internal.fg v3_15;
                        if (v3_10 == null) {
                            v3_15 = "";
                        } else {
                            v3_15 = " and rowid <= ?";
                        }
                        long v14_11 = new StringBuilder((String.valueOf(v3_15).length() + 84));
                        v14_11.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_11.append(v3_15);
                        v14_11.append(" order by rowid limit 1;");
                        v3_9 = v15_6.rawQuery(v14_11.toString(), v13_19);
                        if (v3_9.moveToFirst()) {
                            long v13_23 = v3_9.getString(0);
                            v3_9.close();
                            v22 = v3_9;
                            v7_3 = v13_23;
                            v3_9 = 0;
                            try {
                                long v13_6 = new String[2];
                                v13_6[0] = v3_9;
                                v13_6[1] = v7_3;
                                com.google.android.gms.internal.measurement.q v24 = v15_6;
                                Long v15_5 = v15_6.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v13_6, 0, 0, "rowid", "2");
                                try {
                                    if (v15_5.moveToFirst()) {
                                        long v13_10 = v15_5.getBlob(0);
                                        long v13_11 = com.google.android.gms.internal.measurement.fi.a(v13_10, 0, v13_10.length);
                                        long v14_8 = new com.google.android.gms.internal.measurement.t();
                                        try {
                                            v14_8.a(v13_11);
                                        } catch (android.database.sqlite.SQLiteException v0_3) {
                                            long v6_0 = v15_5;
                                            v4_13.r().an_().a("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.o.a(v3_9), v0_3);
                                            if (v6_0 == 0) {
                                                com.google.android.gms.measurement.internal.fg v3_14;
                                                if (v2_24.c == null) {
                                                    v3_14 = 1;
                                                } else {
                                                    if (!v2_24.c.isEmpty()) {
                                                        v3_14 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_14 != null) {
                                                    this.d().w();
                                                    this.d().x();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.measurement.internal.fg v3_8 = v2_24.a;
                                                    java.util.List v4_4 = new com.google.android.gms.internal.measurement.q[v2_24.c.size()];
                                                    v3_8.b = v4_4;
                                                    java.util.List v4_7 = this.i.b().e(v3_8.o);
                                                    long v7_28 = 0;
                                                    boolean v10_2 = 0;
                                                    long v12_17 = 0;
                                                    long v13_8 = 0;
                                                    while (v7_28 < v2_24.c.size()) {
                                                        int v40_0;
                                                        Long v15_3 = ((com.google.android.gms.internal.measurement.q) v2_24.c.get(v7_28));
                                                        if (!this.p().b(v2_24.a.o, v15_3.b)) {
                                                            String v5_6 = this.p().c(v2_24.a.o, v15_3.b);
                                                            if (v5_6 != null) {
                                                                if (v15_3.a == null) {
                                                                    int v9_6 = new com.google.android.gms.internal.measurement.r[0];
                                                                    v15_3.a = v9_6;
                                                                }
                                                                int v8_21 = v15_3.a;
                                                                int v9_7 = v8_21.length;
                                                                int v11_3 = 0;
                                                                long v16_1 = 0;
                                                                int v17_0 = 0;
                                                                while (v11_3 < v9_7) {
                                                                    Long v27_1;
                                                                    long v6_79 = v8_21[v11_3];
                                                                    com.google.android.gms.measurement.internal.ex v25_1 = v8_21;
                                                                    long v26_1 = v9_7;
                                                                    if (!"_c".equals(v6_79.a)) {
                                                                        v27_1 = v12_17;
                                                                        if ("_r".equals(v6_79.a)) {
                                                                            v6_79.c = Long.valueOf(1);
                                                                            v17_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v27_1 = v12_17;
                                                                        v6_79.c = Long.valueOf(1);
                                                                        v16_1 = 1;
                                                                    }
                                                                    v11_3++;
                                                                    v8_21 = v25_1;
                                                                    v9_7 = v26_1;
                                                                    v12_17 = v27_1;
                                                                }
                                                                Long v27_0 = v12_17;
                                                                if ((v16_1 == 0) && (v5_6 != null)) {
                                                                    this.i.r().x().a("Marking event as conversion", this.i.k().a(v15_3.b));
                                                                    long v6_11 = ((com.google.android.gms.internal.measurement.r[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                                    int v8_27 = new com.google.android.gms.internal.measurement.r();
                                                                    v8_27.a = "_c";
                                                                    v8_27.c = Long.valueOf(1);
                                                                    v6_11[(v6_11.length - 1)] = v8_27;
                                                                    v15_3.a = v6_11;
                                                                }
                                                                if (v17_0 == 0) {
                                                                    this.i.r().x().a("Marking event as real-time", this.i.k().a(v15_3.b));
                                                                    long v6_17 = ((com.google.android.gms.internal.measurement.r[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                                    int v8_33 = new com.google.android.gms.internal.measurement.r();
                                                                    v8_33.a = "_r";
                                                                    v8_33.c = Long.valueOf(1);
                                                                    v6_17[(v6_17.length - 1)] = v8_33;
                                                                    v15_3.a = v6_17;
                                                                }
                                                                long v12_12;
                                                                if (this.d().a(this.w(), v2_24.a.o, 0, 0, 0, 0, 1).e <= ((long) this.i.b().a(v2_24.a.o))) {
                                                                    v12_12 = 1;
                                                                } else {
                                                                    long v6_25 = 0;
                                                                    while (v6_25 < v15_3.a.length) {
                                                                        if (!"_r".equals(v15_3.a[v6_25].a)) {
                                                                            v6_25++;
                                                                        } else {
                                                                            int v8_42 = new com.google.android.gms.internal.measurement.r[(v15_3.a.length - 1)];
                                                                            if (v6_25 > 0) {
                                                                                System.arraycopy(v15_3.a, 0, v8_42, 0, v6_25);
                                                                            }
                                                                            if (v6_25 < v8_42.length) {
                                                                                System.arraycopy(v15_3.a, (v6_25 + 1), v8_42, v6_25, (v8_42.length - v6_25));
                                                                            }
                                                                            v15_3.a = v8_42;
                                                                            break;
                                                                        }
                                                                    }
                                                                    v12_12 = v27_0;
                                                                }
                                                                if ((!com.google.android.gms.measurement.internal.em.a(v15_3.b)) || (v5_6 == null)) {
                                                                    v40_0 = v7_28;
                                                                    long v37_0 = v12_12;
                                                                } else {
                                                                    v37_0 = v12_12;
                                                                    if (this.d().a(this.w(), v2_24.a.o, 0, 0, 1, 0, 0).c <= ((long) this.i.b().b(v2_24.a.o, com.google.android.gms.measurement.internal.e.v))) {
                                                                        v40_0 = v7_28;
                                                                    } else {
                                                                        this.i.r().i().a("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                        long v6_38 = v15_3.a;
                                                                        int v8_46 = v6_38.length;
                                                                        int v9_34 = 0;
                                                                        int v11_18 = 0;
                                                                        long v12_16 = 0;
                                                                        while (v9_34 < v8_46) {
                                                                            int v8_56 = v6_38[v9_34];
                                                                            if (!"_c".equals(v8_56.a)) {
                                                                                if ("_err".equals(v8_56.a)) {
                                                                                    v11_18 = 1;
                                                                                }
                                                                            } else {
                                                                                v12_16 = v8_56;
                                                                            }
                                                                            v9_34++;
                                                                        }
                                                                        v40_0 = v7_28;
                                                                        if ((v11_18 == 0) || (v12_16 == 0)) {
                                                                            if (v12_16 == 0) {
                                                                                this.i.r().an_().a("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                            } else {
                                                                                v12_16.a = "_err";
                                                                                v12_16.c = Long.valueOf(10);
                                                                            }
                                                                        } else {
                                                                            long v6_45 = v15_3.a;
                                                                            int v8_50 = new com.google.android.gms.internal.measurement.r[1];
                                                                            v8_50[0] = v12_16;
                                                                            v15_3.a = ((com.google.android.gms.internal.measurement.r[]) com.google.android.gms.common.util.b.a(v6_45, v8_50));
                                                                        }
                                                                    }
                                                                }
                                                                v12_17 = v37_0;
                                                            } else {
                                                                int v8_15;
                                                                this.f();
                                                                int v8_13 = v15_3.b;
                                                                com.google.android.gms.common.internal.ab.a(v8_13);
                                                                int v9_2 = v8_13.hashCode();
                                                                if (v9_2 == 94660) {
                                                                    if (!v8_13.equals("_in")) {
                                                                        v8_15 = -1;
                                                                    } else {
                                                                        v8_15 = 0;
                                                                    }
                                                                } else {
                                                                    if (v9_2 == 95025) {
                                                                        if (!v8_13.equals("_ug")) {
                                                                        } else {
                                                                            v8_15 = 2;
                                                                        }
                                                                    } else {
                                                                        if (v9_2 == 95027) {
                                                                            if (!v8_13.equals("_ui")) {
                                                                            } else {
                                                                                v8_15 = 1;
                                                                            }
                                                                        } else {
                                                                        }
                                                                    }
                                                                }
                                                                int v8_18;
                                                                switch (v8_15) {
                                                                    case 0:
                                                                    case 1:
                                                                    case 2:
                                                                        v8_18 = 1;
                                                                    default:
                                                                        v8_18 = 0;
                                                                }
                                                                if (v8_18 == 0) {
                                                                    v40_0 = v7_28;
                                                                } else {
                                                                }
                                                            }
                                                            if ((!this.i.b().m(v2_24.a.o)) || (v5_6 == null)) {
                                                            } else {
                                                                String v5_7 = v15_3.a;
                                                                long v6_51 = 0;
                                                                long v7_17 = -1;
                                                                int v8_51 = -1;
                                                                while (v6_51 < v5_7.length) {
                                                                    if (!"value".equals(v5_7[v6_51].a)) {
                                                                        if ("currency".equals(v5_7[v6_51].a)) {
                                                                            v8_51 = v6_51;
                                                                        }
                                                                    } else {
                                                                        v7_17 = v6_51;
                                                                    }
                                                                    v6_51++;
                                                                }
                                                                if (v7_17 == -1) {
                                                                } else {
                                                                    if ((v5_7[v7_17].c != null) || (v5_7[v7_17].d != null)) {
                                                                        long v6_60;
                                                                        if (v8_51 != -1) {
                                                                            long v6_59 = v5_7[v8_51].b;
                                                                            if (v6_59 == 0) {
                                                                            } else {
                                                                                if (v6_59.length() == 3) {
                                                                                    int v8_53 = 0;
                                                                                    while (v8_53 < v6_59.length()) {
                                                                                        int v11_20 = v6_59.codePointAt(v8_53);
                                                                                        if (Character.isLetter(v11_20)) {
                                                                                            v8_53 += Character.charCount(v11_20);
                                                                                        } else {
                                                                                        }
                                                                                    }
                                                                                    v6_60 = 0;
                                                                                    if (v6_60 != 0) {
                                                                                        this.i.r().k().a("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                                        v5_7 = ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(v5_7, v7_17), "_c"), 19, "currency");
                                                                                    }
                                                                                    v15_3.a = v5_7;
                                                                                    if ((v4_7 != null) && ("_e".equals(v15_3.b))) {
                                                                                        if (v15_3.a != null) {
                                                                                            if (v15_3.a.length != 0) {
                                                                                                this.f();
                                                                                                String v5_19 = ((Long) com.google.android.gms.measurement.internal.ej.b(v15_3, "_et"));
                                                                                                if (v5_19 != null) {
                                                                                                    v13_8 += v5_19.longValue();
                                                                                                    long v6_74 = (v10_2 + 1);
                                                                                                    v3_8.b[v10_2] = v15_3;
                                                                                                    v10_2 = v6_74;
                                                                                                    v7_28 = (v40_0 + 1);
                                                                                                    int v11 = 0;
                                                                                                } else {
                                                                                                    this.i.r().i().a("Engagement event does not include duration. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                                                }
                                                                                            } else {
                                                                                            }
                                                                                        }
                                                                                        this.i.r().i().a("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o));
                                                                                    }
                                                                                } else {
                                                                                }
                                                                            }
                                                                            v6_60 = 1;
                                                                        } else {
                                                                            v6_60 = 1;
                                                                        }
                                                                    } else {
                                                                        this.i.r().k().a("Value must be specified with a numeric type.");
                                                                        v5_7 = ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(ark>com.google.android.gms.measurement.internal.edark>.a(v5_7, v7_17), "_c"), 18, "value");
                                                                    }
                                                                }
                                                            }
                                                        } else {
                                                            String v5_35;
                                                            this.i.r().i().a("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.o.a(v2_24.a.o), this.i.k().a(v15_3.b));
                                                            if (this.p().f(v2_24.a.o)) {
                                                                v5_35 = 1;
                                                            } else {
                                                                if (!this.p().g(v2_24.a.o)) {
                                                                    v5_35 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v5_35 == null) && (!"_err".equals(v15_3.b))) {
                                                                this.i.j().a(v2_24.a.o, 11, "_ev", v15_3.b, 0);
                                                            }
                                                            v40_0 = v7_28;
                                                        }
                                                    }
                                                    Long v27_2 = v12_17;
                                                    if (v10_2 < v2_24.c.size()) {
                                                        v3_8.b = ((com.google.android.gms.internal.measurement.q[]) java.util.Arrays.copyOf(v3_8.b, v10_2));
                                                    }
                                                    long v6_1;
                                                    java.util.List v4_8;
                                                    if (v4_7 == null) {
                                                        v4_8 = this;
                                                        v6_1 = v2_24;
                                                    } else {
                                                        com.google.android.gms.measurement.internal.q v1_7;
                                                        int v42_0;
                                                        java.util.List v4_10 = this.d().c(v3_8.o, "_lte");
                                                        if (v4_10 == null) {
                                                            v42_0 = v2_24;
                                                            v1_7 = new com.google.android.gms.measurement.internal.el;
                                                            v4_8 = this;
                                                            v1_7(v3_8.o, "auto", "_lte", this.i.m().a(), Long.valueOf(v13_8));
                                                        } else {
                                                            if (v4_10.e != null) {
                                                                String v5_59 = new com.google.android.gms.measurement.internal.el;
                                                                v42_0 = v2_24;
                                                                try {
                                                                    v5_59(v3_8.o, "auto", "_lte", this.i.m().a(), Long.valueOf((((Long) v4_10.e).longValue() + v13_8)));
                                                                    v1_7 = v5_59;
                                                                    v4_8 = this;
                                                                } catch (android.database.sqlite.SQLiteException v0_5) {
                                                                    com.google.android.gms.measurement.internal.q v1_1 = v0_5;
                                                                    this.d().x();
                                                                    throw v1_1;
                                                                }
                                                            } else {
                                                            }
                                                        }
                                                        Object v2_5 = new com.google.android.gms.internal.measurement.w();
                                                        v2_5.b = "_lte";
                                                        v2_5.a = Long.valueOf(v4_8.i.m().a());
                                                        v2_5.d = ((Long) v1_7.e);
                                                        String v5_69 = 0;
                                                        while (v5_69 < v3_8.c.length) {
                                                            if (!"_lte".equals(v3_8.c[v5_69].b)) {
                                                                v5_69++;
                                                            } else {
                                                                v3_8.c[v5_69] = v2_5;
                                                                String v5_70 = 1;
                                                            }
                                                            if (v5_70 != null) {
                                                                v6_1 = v42_0;
                                                            } else {
                                                                v3_8.c = ((com.google.android.gms.internal.measurement.w[]) java.util.Arrays.copyOf(v3_8.c, (v3_8.c.length + 1)));
                                                                v6_1 = v42_0;
                                                                v3_8.c[(v6_1.a.c.length - 1)] = v2_5;
                                                            }
                                                            if (v13_8 > 0) {
                                                                this.d().a(v1_7);
                                                                v4_8.i.r().w().a("Updated lifetime engagement user property with value. Value", v1_7.e);
                                                            }
                                                        }
                                                        v5_70 = 0;
                                                    }
                                                    int v51_1;
                                                    v3_8.A = v4_8.a(v3_8.o, v3_8.c, v3_8.b);
                                                    if (!v4_8.i.b().d(v6_1.a.o)) {
                                                        v51_1 = v6_1;
                                                    } else {
                                                        com.google.android.gms.measurement.internal.q v1_15 = new java.util.HashMap();
                                                        Object v2_16 = new com.google.android.gms.internal.measurement.q[v3_8.b.length];
                                                        String v5_2 = v4_8.i.j().h();
                                                        long v7_11 = v3_8.b;
                                                        int v8_10 = v7_11.length;
                                                        int v9_1 = 0;
                                                        boolean v10_0 = 0;
                                                        while (v9_1 < v8_10) {
                                                            int v44;
                                                            int v43;
                                                            String v45;
                                                            com.google.android.gms.measurement.internal.an v46;
                                                            int v50;
                                                            int v51_0;
                                                            int v11_29 = v7_11[v9_1];
                                                            if (!v11_29.b.equals("_ep")) {
                                                                long v47;
                                                                com.google.android.gms.measurement.internal.fg v3_25;
                                                                v43 = v7_11;
                                                                long v12_33 = this.p().e(v6_1.a.o);
                                                                v4_8.i.j();
                                                                long v14_14 = com.google.android.gms.measurement.internal.em.a(v11_29.c.longValue(), v12_33);
                                                                v46 = v3_8;
                                                                v44 = v8_10;
                                                                v45 = v9_1;
                                                                com.google.android.gms.measurement.internal.fg v3_23 = Long.valueOf(1);
                                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                                    v47 = v12_33;
                                                                    v3_25 = 0;
                                                                } else {
                                                                    if (v3_23 != null) {
                                                                        int v8_75 = v11_29.a;
                                                                        int v9_47 = v8_75.length;
                                                                        v47 = v12_33;
                                                                        long v12_34 = 0;
                                                                        while (v12_34 < v9_47) {
                                                                            long v13_27 = v8_75[v12_34];
                                                                            if (!"_dbg".equals(v13_27.a)) {
                                                                                v12_34++;
                                                                            } else {
                                                                                if (((!(v3_23 instanceof Long)) || (!v3_23.equals(v13_27.c))) && (((!(v3_23 instanceof String)) || (!v3_23.equals(v13_27.b))) && ((!(v3_23 instanceof Double)) || (!v3_23.equals(v13_27.d))))) {
                                                                                    break;
                                                                                }
                                                                                v3_25 = 1;
                                                                            }
                                                                        }
                                                                    } else {
                                                                    }
                                                                }
                                                                long v12_35;
                                                                if (v3_25 != null) {
                                                                    v12_35 = 1;
                                                                } else {
                                                                    v12_35 = this.p().d(v6_1.a.o, v11_29.b);
                                                                }
                                                                if (v12_35 > 0) {
                                                                    com.google.android.gms.measurement.internal.fg v3_1 = ((com.google.android.gms.measurement.internal.fg) v1_15.get(v11_29.b));
                                                                    if (v3_1 == null) {
                                                                        v3_1 = this.d().a(v6_1.a.o, v11_29.b);
                                                                        if (v3_1 == null) {
                                                                            v4_8.i.r().i().a("Event being bundled has no eventAggregate. appId, eventName", v6_1.a.o, v11_29.b);
                                                                            v3_1 = new com.google.android.gms.measurement.internal.fg;
                                                                            v3_1(v6_1.a.o, v11_29.b, 1, 1, v11_29.c.longValue(), 0, 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    int v8_83;
                                                                    this.f();
                                                                    long v7_94 = ((Long) com.google.android.gms.measurement.internal.ej.b(v11_29, "_eid"));
                                                                    if (v7_94 == 0) {
                                                                        v8_83 = 0;
                                                                    } else {
                                                                        v8_83 = 1;
                                                                    }
                                                                    int v8_84 = Boolean.valueOf(v8_83);
                                                                    if (v12_35 != 1) {
                                                                        if (v5_2.nextInt(v12_35) != 0) {
                                                                            Boolean v53;
                                                                            String v5_129;
                                                                            long v52;
                                                                            v50 = v5_2;
                                                                            if (!v4_8.i.b().o(v6_1.a.o)) {
                                                                                v51_0 = v6_1;
                                                                                v52 = v7_94;
                                                                                v53 = v8_84;
                                                                                if (Math.abs((v11_29.c.longValue() - v3_1.f)) < 86400000) {
                                                                                    v5_129 = 0;
                                                                                } else {
                                                                                    v5_129 = 1;
                                                                                }
                                                                            } else {
                                                                                long v16_11;
                                                                                if (v3_1.g == null) {
                                                                                    v4_8.i.j();
                                                                                    v51_0 = v6_1;
                                                                                    v52 = v7_94;
                                                                                    v53 = v8_84;
                                                                                    v16_11 = com.google.android.gms.measurement.internal.em.a(v11_29.d.longValue(), v47);
                                                                                } else {
                                                                                    v16_11 = v3_1.g.longValue();
                                                                                    v51_0 = v6_1;
                                                                                    v52 = v7_94;
                                                                                    v53 = v8_84;
                                                                                }
                                                                                if (v16_11 == v14_14) {
                                                                                }
                                                                            }
                                                                            if (v5_129 == null) {
                                                                                if (!v53.booleanValue()) {
                                                                                    v9_1 = (v45 + 1);
                                                                                    v7_11 = v43;
                                                                                    v8_10 = v44;
                                                                                    v3_8 = v46;
                                                                                    v5_2 = v50;
                                                                                    v6_1 = v51_0;
                                                                                } else {
                                                                                    v1_15.put(v11_29.b, v3_1.a(v52, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.f();
                                                                                v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_efs", Long.valueOf(1));
                                                                                this.f();
                                                                                long v12_36 = ((long) v12_35);
                                                                                v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_sr", Long.valueOf(v12_36));
                                                                                String v5_136 = (v10_0 + 1);
                                                                                v2_16[v10_0] = v11_29;
                                                                                if (v53.booleanValue()) {
                                                                                    v3_1 = v3_1.a(0, Long.valueOf(v12_36), Boolean.valueOf(1));
                                                                                }
                                                                                v1_15.put(v11_29.b, v3_1.a(v11_29.c.longValue(), v14_14));
                                                                                v10_0 = v5_136;
                                                                            }
                                                                        } else {
                                                                            this.f();
                                                                            long v12_37 = ((long) v12_35);
                                                                            v50 = v5_2;
                                                                            v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_sr", Long.valueOf(v12_37));
                                                                            String v5_1 = (v10_0 + 1);
                                                                            v2_16[v10_0] = v11_29;
                                                                            if (v8_84.booleanValue()) {
                                                                                v3_1 = v3_1.a(0, Long.valueOf(v12_37), 0);
                                                                            }
                                                                            v1_15.put(v11_29.b, v3_1.a(v11_29.c.longValue(), v14_14));
                                                                            v10_0 = v5_1;
                                                                        }
                                                                    } else {
                                                                        long v7_4 = (v10_0 + 1);
                                                                        v2_16[v10_0] = v11_29;
                                                                        if ((v8_84.booleanValue()) && ((v3_1.h != null) || ((v3_1.i != null) || (v3_1.j != null)))) {
                                                                            v1_15.put(v11_29.b, v3_1.a(0, 0, 0));
                                                                        }
                                                                        v50 = v5_2;
                                                                        v51_0 = v6_1;
                                                                        v10_0 = v7_4;
                                                                    }
                                                                } else {
                                                                    v4_8.i.r().i().a("Sample rate must be positive. event, rate", v11_29.b, Integer.valueOf(v12_35));
                                                                    com.google.android.gms.measurement.internal.fg v3_7 = (v10_0 + 1);
                                                                    v2_16[v10_0] = v11_29;
                                                                    v10_0 = v3_7;
                                                                    v50 = v5_2;
                                                                }
                                                                v51_0 = v6_1;
                                                            } else {
                                                                this.f();
                                                                long v12_2 = ((String) com.google.android.gms.measurement.internal.ej.b(v11_29, "_en"));
                                                                long v13_1 = ((com.google.android.gms.measurement.internal.fg) v1_15.get(v12_2));
                                                                if (v13_1 == 0) {
                                                                    v13_1 = this.d().a(v6_1.a.o, v12_2);
                                                                    v1_15.put(v12_2, v13_1);
                                                                }
                                                                if (v13_1.h != null) {
                                                                    v43 = v7_11;
                                                                    v46 = v3_8;
                                                                    v50 = v5_2;
                                                                    v51_0 = v6_1;
                                                                } else {
                                                                    if (v13_1.i.longValue() > 1) {
                                                                        this.f();
                                                                        v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_sr", v13_1.i);
                                                                    }
                                                                    if ((v13_1.j == null) || (!v13_1.j.booleanValue())) {
                                                                        v43 = v7_11;
                                                                    } else {
                                                                        this.f();
                                                                        v43 = v7_11;
                                                                        v11_29.a = com.google.android.gms.measurement.internal.ej.a(v11_29.a, "_efs", Long.valueOf(1));
                                                                    }
                                                                    long v7_10 = (v10_0 + 1);
                                                                    v2_16[v10_0] = v11_29;
                                                                    v46 = v3_8;
                                                                    v50 = v5_2;
                                                                    v51_0 = v6_1;
                                                                    v10_0 = v7_10;
                                                                }
                                                                v44 = v8_10;
                                                                v45 = v9_1;
                                                            }
                                                        }
                                                        v51_1 = v6_1;
                                                        if (v10_0 < v3_8.b.length) {
                                                            v3_8.b = ((com.google.android.gms.internal.measurement.q[]) java.util.Arrays.copyOf(v2_16, v10_0));
                                                        }
                                                        com.google.android.gms.measurement.internal.q v1_17 = v1_15.entrySet().iterator();
                                                        while (v1_17.hasNext()) {
                                                            this.d().a(((com.google.android.gms.measurement.internal.fg) ((java.util.Map$Entry) v1_17.next()).getValue()));
                                                        }
                                                    }
                                                    v3_8.e = Long.valueOf(nan);
                                                    v3_8.f = Long.valueOf(-0.0);
                                                    com.google.android.gms.measurement.internal.q v1_22 = 0;
                                                    while (v1_22 < v3_8.b.length) {
                                                        Object v2_27 = v3_8.b[v1_22];
                                                        if (v2_27.c.longValue() < v3_8.e.longValue()) {
                                                            v3_8.e = v2_27.c;
                                                        }
                                                        if (v2_27.c.longValue() > v3_8.f.longValue()) {
                                                            v3_8.f = v2_27.c;
                                                        }
                                                        v1_22++;
                                                    }
                                                    com.google.android.gms.measurement.internal.q v1_23 = v51_1;
                                                    Object v2_23 = v1_23.a.o;
                                                    String v5_82 = this.d().b(v2_23);
                                                    if (v5_82 != null) {
                                                        if (v3_8.b.length > 0) {
                                                            int v8_69;
                                                            long v6_114 = v5_82.i();
                                                            if (v6_114 == 0) {
                                                                v8_69 = 0;
                                                            } else {
                                                                v8_69 = Long.valueOf(v6_114);
                                                            }
                                                            v3_8.h = v8_69;
                                                            int v8_70 = v5_82.h();
                                                            if (v8_70 != 0) {
                                                                v6_114 = v8_70;
                                                            } else {
                                                            }
                                                            long v6_115;
                                                            if (v6_114 == 0) {
                                                                v6_115 = 0;
                                                            } else {
                                                                v6_115 = Long.valueOf(v6_114);
                                                            }
                                                            v3_8.g = v6_115;
                                                            v5_82.s();
                                                            v3_8.w = Integer.valueOf(((int) v5_82.p()));
                                                            v5_82.a(v3_8.e.longValue());
                                                            v5_82.b(v3_8.f.longValue());
                                                            v3_8.x = v5_82.A();
                                                            this.d().a(v5_82);
                                                        }
                                                    } else {
                                                        v4_8.i.r().an_().a("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.o.a(v1_23.a.o));
                                                    }
                                                    if (v3_8.b.length > 0) {
                                                        v4_8.i.u();
                                                        String v5_90 = this.p().a(v1_23.a.o);
                                                        if (v5_90 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v1_23.a.y)) {
                                                                v4_8.i.r().i().a("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.o.a(v1_23.a.o));
                                                            } else {
                                                                v3_8.E = Long.valueOf(-1);
                                                            }
                                                        } else {
                                                            if (v5_90.a != null) {
                                                                v3_8.E = v5_90.a;
                                                            } else {
                                                            }
                                                        }
                                                        this.d().a(v3_8, v27_2);
                                                    }
                                                    com.google.android.gms.measurement.internal.fg v3_18 = this.d();
                                                    com.google.android.gms.measurement.internal.q v1_24 = v1_23.b;
                                                    com.google.android.gms.common.internal.ab.a(v1_24);
                                                    v3_18.d();
                                                    v3_18.k();
                                                    String v5_102 = new StringBuilder("rowid in (");
                                                    long v6_131 = 0;
                                                    while (v6_131 < v1_24.size()) {
                                                        if (v6_131 != 0) {
                                                            v5_102.append(",");
                                                        }
                                                        v5_102.append(((Long) v1_24.get(v6_131)).longValue());
                                                        v6_131++;
                                                    }
                                                    v5_102.append(")");
                                                    String v5_104 = v3_18.y().delete("raw_events", v5_102.toString(), 0);
                                                    if (v5_104 != v1_24.size()) {
                                                        v3_18.r().an_().a("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_104), Integer.valueOf(v1_24.size()));
                                                    }
                                                    com.google.android.gms.measurement.internal.q v1_27 = this.d();
                                                    com.google.android.gms.measurement.internal.fg v3_21 = v1_27.y();
                                                    try {
                                                        long v6_137 = new String[2];
                                                        v6_137[0] = v2_23;
                                                        v6_137[1] = v2_23;
                                                        v3_21.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_137);
                                                    } catch (android.database.sqlite.SQLiteException v0_6) {
                                                        v1_27.r().an_().a("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.o.a(v2_23), v0_6);
                                                    }
                                                    this.d().w();
                                                    this.d().x();
                                                    return 1;
                                                }
                                            } else {
                                                v6_0.close();
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                        }
                                        if (v15_5.moveToNext()) {
                                            v4_13.r().i().a("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.o.a(v3_9));
                                        }
                                        int v17_4;
                                        long v16_6;
                                        v15_5.close();
                                        v2_24.a(v14_8);
                                        if (v5_118 == -1) {
                                            boolean v10_6 = new String[2];
                                            v10_6[0] = v3_9;
                                            v10_6[1] = v7_3;
                                            v16_6 = "app_id = ? and metadata_fingerprint = ?";
                                            v17_4 = v10_6;
                                        } else {
                                            long v13_16 = new String[3];
                                            v13_16[0] = v3_9;
                                            v13_16[1] = v7_3;
                                            v13_16[2] = String.valueOf(v5_118);
                                            v16_6 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v17_4 = v13_16;
                                        }
                                        v6_0 = v15_5;
                                        String v5_47 = v24.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v16_6, v17_4, 0, 0, "rowid", 0);
                                        try {
                                            if (!v5_47.moveToFirst()) {
                                                v4_13.r().i().a("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.o.a(v3_9));
                                                if (v5_47 == null) {
                                                } else {
                                                    v5_47.close();
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_0) {
                                            v6_0 = v5_47;
                                            com.google.android.gms.measurement.internal.q v1_2 = v0_0;
                                            if (v6_0 != 0) {
                                                v6_0.close();
                                            }
                                            throw v1_2;
                                        } catch (android.database.sqlite.SQLiteException v0_1) {
                                            v7_3 = v3_9;
                                            v6_0 = v5_47;
                                            com.google.android.gms.measurement.internal.fg v3_0 = v0_1;
                                            v4_13.r().an_().a("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.o.a(v7_3), v3_0);
                                            if (v6_0 == 0) {
                                            } else {
                                                v6_0.close();
                                            }
                                        }
                                        do {
                                            long v6_92 = v5_47.getLong(0);
                                            long v12_24 = v5_47.getBlob(3);
                                            boolean v10_11 = com.google.android.gms.internal.measurement.fi.a(v12_24, 0, v12_24.length);
                                            long v12_26 = new com.google.android.gms.internal.measurement.q();
                                            v12_26.a(v10_11);
                                            v12_26.b = v5_47.getString(1);
                                            v12_26.c = Long.valueOf(v5_47.getLong(2));
                                            if (v2_24.a(v6_92, v12_26)) {
                                            } else {
                                                if (v5_47 == null) {
                                                } else {
                                                    v5_47.close();
                                                }
                                            }
                                        } while(v5_47.moveToNext());
                                        if (v5_47 == null) {
                                        } else {
                                            v5_47.close();
                                        }
                                    } else {
                                        v4_13.r().an_().a("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.o.a(v3_9));
                                        if (v15_5 == null) {
                                        } else {
                                            v15_5.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_5;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v6_0 = v15_5;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                    v6_0 = v15_5;
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v7_3 = v3_9;
                                    v6_0 = v15_5;
                                }
                                v7_3 = v3_9;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v6_0 = v22;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v7_3 = v3_9;
                                v6_0 = v22;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    } else {
                        long v14_12;
                        long v13_24 = v5_118 cmp -1;
                        try {
                            if (v13_24 == 0) {
                                v14_12 = new String[1];
                                v14_12[0] = String.valueOf(p56);
                            } else {
                                v14_12 = new String[2];
                                v14_12[0] = String.valueOf(v5_118);
                                v14_12[1] = String.valueOf(p56);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            v6_0 = 0;
                            v7_3 = 0;
                        }
                        long v13_26;
                        if (v13_24 == 0) {
                            v13_26 = "";
                        } else {
                            v13_26 = "rowid <= ? and ";
                        }
                        com.google.android.gms.measurement.internal.fg v3_34 = new StringBuilder((String.valueOf(v13_26).length() + 148));
                        v3_34.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_34.append(v13_26);
                        v3_34.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_9 = v15_6.rawQuery(v3_34.toString(), v14_12);
                        if (v3_9.moveToFirst()) {
                            long v7_7 = v3_9.getString(0);
                            try {
                                long v13_4 = v3_9.getString(1);
                                v3_9.close();
                                v22 = v3_9;
                                v3_9 = v7_7;
                                v7_3 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v6_0 = v3_9;
                            }
                        } else {
                            if (v3_9 == null) {
                            } else {
                                v3_9.close();
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v6_0 = v3_9;
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v6_0 = v3_9;
                    v7_3 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v6_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
                v3_0 = v0_7;
                v6_0 = 0;
                v7_3 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
            }
        } catch (android.database.sqlite.SQLiteException v0_2) {
            v1_1 = v0_2;
        }
    }

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


    private final long a(String p3, String[] p4, long p5)
    {
        com.google.android.gms.measurement.internal.q v1 = 0;
        try {
            com.google.android.gms.measurement.internal.q v4_3 = this.y().rawQuery(p3, p4);
            try {
                if (!v4_3.moveToFirst()) {
                    if (v4_3 != null) {
                        v4_3.close();
                    }
                    return p5;
                } else {
                    long v5_2 = v4_3.getLong(0);
                    if (v4_3 != null) {
                        v4_3.close();
                    }
                    return v5_2;
                }
            } catch (Throwable v3_1) {
                v1 = v4_3;
                if (v1 != null) {
                    v1.close();
                }
                throw v3_1;
            } catch (long v5_3) {
                v1 = v4_3;
                this.r().an_().a("Database error", p3, v5_3);
                throw v5_3;
            }
        } catch (Throwable v3_1) {
        } catch (long v5_3) {
        }
    }

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


    private final long b(String p4, String[] p5)
    {
        String v1_1 = 0;
        try {
            com.google.android.gms.measurement.internal.q v5_3 = this.y().rawQuery(p4, p5);
            try {
                if (!v5_3.moveToFirst()) {
                    throw new android.database.sqlite.SQLiteException("Database returned empty set");
                } else {
                    android.database.sqlite.SQLiteException v0_4 = v5_3.getLong(0);
                    if (v5_3 != null) {
                        v5_3.close();
                    }
                    return v0_4;
                }
            } catch (Throwable v4_1) {
                if (v5_3 != null) {
                    v5_3.close();
                }
                throw v4_1;
            } catch (android.database.sqlite.SQLiteException v0_2) {
                v1_1 = v5_3;
                this.r().an_().a("Database error", p4, v0_2);
                throw v0_2;
            }
        } catch (Throwable v4_1) {
            v5_3 = v1_1;
        } catch (android.database.sqlite.SQLiteException v0_2) {
        }
    }

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


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

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


    public final android.util.Pair a(String p8, Long p9)
    {
        this.d();
        this.k();
        try {
            int v1_1 = this.y();
            com.google.android.gms.measurement.internal.q 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.q v3_0 = Long.valueOf(v1_0.getLong(1));
                    java.io.IOException v2_2 = com.google.android.gms.internal.measurement.fi.a(v2_1, 0, v2_1.length);
                    String v4_1 = new com.google.android.gms.internal.measurement.q();
                    try {
                        v4_1.a(v2_2);
                    } catch (java.io.IOException v2_3) {
                        this.r().an_().a("Failed to merge main event. appId, eventId", com.google.android.gms.measurement.internal.o.a(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.r().x().a("Main event not found");
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return 0;
                }
            } catch (Object v8_1) {
                this.r().an_().a("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.ex.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final String a(long p5)
    {
        this.d();
        this.k();
        try {
            String v1_3 = this.y();
            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.r().x().a("No expired configs for apps with pending events");
                    if (v5_1 != 0) {
                        v5_1.close();
                    }
                    return 0;
                }
            } catch (String v6_1) {
                this.r().an_().a("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.ex.z() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


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

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


    private final boolean a(int p18, byte[] p19)
    {
        this.b();
        this.d();
        Long v3_6 = 0;
        if (!this.b) {
            int v2_1 = new android.content.ContentValues();
            v2_1.put("type", Integer.valueOf(p18));
            v2_1.put("entry", p19);
            com.google.android.gms.measurement.internal.q v4_6 = 5;
            int v5_2 = 0;
            int v6 = 5;
            while (v5_2 < v4_6) {
                int v7 = 0;
                try {
                    int v9 = this.y();
                    try {
                        if (v9 != 0) {
                            v9.beginTransaction();
                            Long v10_0 = 0;
                            int v12_0 = v9.rawQuery("select count(1) from messages", 0);
                            try {
                                if ((v12_0 != 0) && (v12_0.moveToFirst())) {
                                    v10_0 = v12_0.getLong(v3_6);
                                }
                                if (v10_0 >= 100000) {
                                    this.r().an_().a("Data loss, local db full");
                                    long v13_3 = ((100000 - v10_0) + 1);
                                    String[] v11 = new String[1];
                                    v11[v3_6] = Long.toString(v13_3);
                                    Long v10_3 = ((long) v9.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v11));
                                    if (v10_3 != v13_3) {
                                        this.r().an_().a("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v13_3), Long.valueOf(v10_3), Long.valueOf((v13_3 - v10_3)));
                                    }
                                }
                                v9.insertOrThrow("messages", 0, v2_1);
                                v9.setTransactionSuccessful();
                                v9.endTransaction();
                                if (v12_0 != 0) {
                                    v12_0.close();
                                }
                                if (v9 != 0) {
                                    v9.close();
                                }
                                return 1;
                            } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                                v7 = v12_0;
                                android.os.SystemClock.sleep(((long) v6));
                                v6 += 20;
                                if (v7 != 0) {
                                    v7.close();
                                }
                                if (v9 == 0) {
                                    v5_2++;
                                    v3_6 = 0;
                                    v4_6 = 5;
                                } else {
                                    v9.close();
                                }
                            }
                        } else {
                            this.b = 1;
                            if (v9 != 0) {
                                v9.close();
                            }
                            return v3_6;
                        }
                        v7 = v9;
                        if (v7 != 0) {
                            if (v7.inTransaction()) {
                                v7.endTransaction();
                            }
                        }
                        this.r().an_().a("Error writing entry to local database", Long v3_1);
                        this.b = 1;
                        if (v12_0 != 0) {
                            v12_0.close();
                        }
                        if (v7 == 0) {
                        } else {
                            v7.close();
                        }
                    } catch (Throwable v0_2) {
                        Long v3_4 = v0_2;
                        this.r().an_().a("Error writing entry to local database", v3_4);
                        this.b = 1;
                        if (v7 != 0) {
                            v7.close();
                        }
                        if (v9 == 0) {
                        } else {
                            v9.close();
                        }
                    } catch (Throwable v0_0) {
                        v3_1 = v0_0;
                        v12_0 = 0;
                    }
                } catch (Throwable v0_6) {
                    v2_1 = v0_6;
                    v9 = 0;
                    v12_0 = 0;
                    if (v12_0 != 0) {
                        v12_0.close();
                    }
                    if (v9 != 0) {
                        v9.close();
                    }
                    throw v2_1;
                } catch (Throwable v0_5) {
                    v3_4 = v0_5;
                    v9 = 0;
                } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                    v9 = 0;
                } catch (Throwable v0_4) {
                    v3_1 = v0_4;
                    v12_0 = 0;
                } catch (Throwable v0_3) {
                    v2_1 = v0_3;
                    v12_0 = v7;
                }
            }
            this.r().i().a("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

Method android.arch.persistence.a.a.a.a() calling method android.database.sqlite.SQLiteDatabase.rawQueryWithFactory()


    public android.database.Cursor a(android.arch.persistence.a.f p7, android.os.CancellationSignal p8)
    {
        return this.c.rawQueryWithFactory(new ark>android.arch.persistence.a.a.aark>$2(this, p7), p7.a(), ark>android.arch.persistence.a.a.aark>.b, 0, p8);
    }

Method org.jetbrains.anko.db.i.c() calling method android.database.sqlite.SQLiteDatabase.replace()


    public static final varargs long c(android.database.sqlite.SQLiteDatabase p1, String p2, kotlin.Pair[] p3)
    {
        kotlin.jvm.internal.ae.f(p1, "$receiver");
        kotlin.jvm.internal.ae.f(p2, "tableName");
        kotlin.jvm.internal.ae.f(p3, "values");
        return p1.replace(p2, 0, org.jetbrains.anko.db.i.a(p3));
    }

Method org.jetbrains.anko.db.i.d() calling method android.database.sqlite.SQLiteDatabase.replaceOrThrow()


    public static final varargs long d(android.database.sqlite.SQLiteDatabase p1, String p2, kotlin.Pair[] p3)
    {
        kotlin.jvm.internal.ae.f(p1, "$receiver");
        kotlin.jvm.internal.ae.f(p2, "tableName");
        kotlin.jvm.internal.ae.f(p3, "values");
        return p1.replaceOrThrow(p2, 0, org.jetbrains.anko.db.i.a(p3));
    }

Method com.evernote.android.job.i$b.c() calling method android.database.sqlite.SQLiteDatabase.update()


    private void c(android.database.sqlite.SQLiteDatabase p6)
    {
        p6.execSQL("alter table jobs add column flexMs integer;");
        p6.execSQL("alter table jobs add column flexSupport integer;");
        String v0_4 = new android.content.ContentValues();
        v0_4.put("intervalMs", Long.valueOf(com.evernote.android.job.JobRequest.e));
        String v2_1 = new StringBuilder();
        v2_1.append("intervalMs>0 AND intervalMs<");
        v2_1.append(com.evernote.android.job.JobRequest.e);
        String[] v3_3 = new String[0];
        p6.update("jobs", v0_4, v2_1.toString(), v3_3);
        p6.execSQL("update jobs set flexMs = intervalMs;");
        return;
    }

Method com.evernote.android.job.i.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(com.evernote.android.job.JobRequest p8, android.content.ContentValues p9)
    {
        this.N.writeLock().lock();
        com.evernote.android.job.a.d v2_1 = 0;
        try {
            this.c(p8);
            com.evernote.android.job.a.d v3_1 = this.b();
            try {
                String[] v5 = new String[1];
                v5[0] = String.valueOf(p8.c());
                v3_1.update("jobs", p9, "_id=?", v5);
                ark>com.evernote.android.job.iark>.b(v3_1);
            } catch (java.util.concurrent.locks.Lock v8_1) {
                v2_1 = v3_1;
                ark>com.evernote.android.job.iark>.b(v2_1);
                this.N.writeLock().unlock();
                throw v8_1;
            } catch (Exception v9_1) {
                v2_1 = v3_1;
                Object[] v1_0 = new Object[1];
                v1_0[0] = p8;
                ark>com.evernote.android.job.iark>.B.c(v9_1, "could not update %s", v1_0);
                ark>com.evernote.android.job.iark>.b(v2_1);
            }
            this.N.writeLock().unlock();
            return;
        } catch (java.util.concurrent.locks.Lock v8_1) {
        } catch (Exception v9_1) {
        }
    }

Method org.jetbrains.anko.db.b.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public int a(String p2, android.content.ContentValues p3, String p4, String[] p5)
    {
        kotlin.jvm.internal.ae.f(p2, "table");
        kotlin.jvm.internal.ae.f(p3, "values");
        return this.a.update(p2, p3, p4, p5);
    }

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


    protected final boolean a(String p18, byte[] p19, String p20)
    {
        this.k();
        this.d();
        com.google.android.gms.common.internal.ab.a(p18);
        com.google.android.gms.measurement.internal.q v3_2 = this.a(p18, p19);
        if (v3_2 != null) {
            void v1_1 = this.a(p18, v3_2);
            v1_1.g.put(p18, v3_2);
            v1_1.i.put(p18, p20);
            v1_1.d.put(p18, ark>com.google.android.gms.measurement.internal.anark>.a(v3_2));
            com.google.android.gms.measurement.internal.q v5_3 = this.h();
            String v6_2 = v3_2.e;
            com.google.android.gms.common.internal.ab.a(v6_2);
            String v7_0 = v6_2.length;
            int v8_0 = 0;
            while (v8_0 < v7_0) {
                int v9_2 = v6_2[v8_0];
                int v10_2 = v9_2.c;
                String v11_2 = v10_2.length;
                int v12 = 0;
                while (v12 < v11_2) {
                    com.google.android.gms.internal.measurement.h[] v13_0 = v10_2[v12];
                    int v14_1 = com.google.android.gms.measurement.AppMeasurement$a.b(v13_0.b);
                    if (v14_1 != 0) {
                        v13_0.b = v14_1;
                    }
                    com.google.android.gms.internal.measurement.h[] v13_1 = v13_0.c;
                    int v14_2 = v13_1.length;
                    int v15 = 0;
                    while (v15 < v14_2) {
                        int v4_0 = v13_1[v15];
                        String v16_0 = v7_0;
                        String v7_2 = com.google.android.gms.measurement.AppMeasurement$d.a(v4_0.d);
                        if (v7_2 != null) {
                            v4_0.d = v7_2;
                        }
                        v15++;
                        v7_0 = v16_0;
                    }
                    v12++;
                }
                String v16_1 = v7_0;
                int v4_9 = v9_2.b;
                String v7_6 = v4_9.length;
                int v9_0 = 0;
                while (v9_0 < v7_6) {
                    int v10_0 = v4_9[v9_0];
                    String v11_1 = com.google.android.gms.measurement.AppMeasurement$e.a(v10_0.b);
                    if (v11_1 != null) {
                        v10_0.b = v11_1;
                    }
                    v9_0++;
                }
                v8_0++;
                v7_0 = v16_1;
            }
            v5_3.i().a(p18, v6_2);
            try {
                v3_2.e = 0;
                int v4_4 = new byte[v3_2.e()];
                v3_2.a(com.google.android.gms.internal.measurement.fj.a(v4_4, 0, v4_4.length));
            } catch (android.database.sqlite.SQLiteException v0_0) {
                this.r().i().a("Unable to serialize reduced-size config. Storing full config instead. appId", com.google.android.gms.measurement.internal.o.a(p18), v0_0);
                v4_4 = p19;
            }
            com.google.android.gms.measurement.internal.q v3_1 = this.i();
            com.google.android.gms.common.internal.ab.a(p18);
            v3_1.d();
            v3_1.k();
            com.google.android.gms.measurement.internal.q v5_8 = new android.content.ContentValues();
            v5_8.put("remote_config", v4_4);
            try {
                String v6_6 = v3_1.y();
                int v9_1 = new String[1];
                v9_1[0] = p18;
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v3_1.r().an_().a("Error storing remote config. appId", com.google.android.gms.measurement.internal.o.a(p18), v0_1);
                return 1;
            }
            if (((long) v6_6.update("apps", v5_8, "app_id = ?", v9_1)) != 0) {
                return 1;
            } else {
                v3_1.r().an_().a("Failed to update remote config (got 0). appId", com.google.android.gms.measurement.internal.o.a(p18));
                return 1;
            }
        } else {
            return 0;
        }
    }

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


    public final com.google.android.gms.measurement.internal.ey a(long p17, String p19, boolean p20, boolean p21, boolean p22, boolean p23, boolean p24)
    {
        com.google.android.gms.common.internal.ab.a(p19);
        this.d();
        this.k();
        String v3_1 = new String[1];
        v3_1[0] = p19;
        com.google.android.gms.measurement.internal.ey v5_1 = new com.google.android.gms.measurement.internal.ey();
        String v6_8 = 0;
        try {
            android.database.sqlite.SQLiteDatabase v15 = this.y();
            String[] v11 = "daily_public_events_count";
            int v13 = "daily_error_events_count";
            v11 = new String[1];
            v11[0] = p19;
            int v7_1 = v15.query("apps", new String[] {"day", "daily_realtime_events_count"}), "app_id=?", v11, 0, 0, 0);
            try {
                if (v7_1.moveToFirst()) {
                    if (v7_1.getLong(0) == p17) {
                        v5_1.b = v7_1.getLong(1);
                        v5_1.a = v7_1.getLong(2);
                        v5_1.c = v7_1.getLong(3);
                        v5_1.d = v7_1.getLong(4);
                        v5_1.e = v7_1.getLong(5);
                    }
                    if (p20) {
                        v5_1.b = (v5_1.b + 1);
                    }
                    if (p21) {
                        v5_1.a = (v5_1.a + 1);
                    }
                    if (p22) {
                        v5_1.c = (v5_1.c + 1);
                    }
                    if (p23) {
                        v5_1.d = (v5_1.d + 1);
                    }
                    if (p24) {
                        v5_1.e = (v5_1.e + 1);
                    }
                    android.content.ContentValues v2_1 = new android.content.ContentValues();
                    v2_1.put("day", Long.valueOf(p17));
                    v2_1.put("daily_public_events_count", Long.valueOf(v5_1.a));
                    v2_1.put("daily_events_count", Long.valueOf(v5_1.b));
                    v2_1.put("daily_conversions_count", Long.valueOf(v5_1.c));
                    v2_1.put("daily_error_events_count", Long.valueOf(v5_1.d));
                    v2_1.put("daily_realtime_events_count", Long.valueOf(v5_1.e));
                    v15.update("apps", v2_1, "app_id=?", v3_1);
                    if (v7_1 != 0) {
                        v7_1.close();
                    }
                    return v5_1;
                } else {
                    this.r().i().a("Not updating daily counts, app is not known. appId", com.google.android.gms.measurement.internal.o.a(p19));
                    if (v7_1 != 0) {
                        v7_1.close();
                    }
                    return v5_1;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                Throwable v1_0 = v0_0;
                if (v7_1 != 0) {
                    v7_1.close();
                }
                throw v1_0;
            } catch (android.database.sqlite.SQLiteException v0_2) {
                android.content.ContentValues v2_5 = v0_2;
                v6_8 = v7_1;
                this.r().an_().a("Error updating daily counts. appId", com.google.android.gms.measurement.internal.o.a(p19), v2_5);
                if (v6_8 != null) {
                    v6_8.close();
                }
                return v5_1;
            }
        } catch (android.database.sqlite.SQLiteException v0_3) {
            v1_0 = v0_3;
            v7_1 = v6_8;
        } catch (android.database.sqlite.SQLiteException v0_1) {
            v2_5 = v0_1;
        }
    }

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


    public final void a(com.google.android.gms.measurement.internal.ep p8)
    {
        com.google.android.gms.common.internal.ab.a(p8);
        this.d();
        this.k();
        com.google.android.gms.measurement.internal.q v0_6 = new android.content.ContentValues();
        v0_6.put("app_id", p8.b());
        v0_6.put("app_instance_id", p8.c());
        v0_6.put("gmp_app_id", p8.d());
        v0_6.put("resettable_device_id_hash", p8.f());
        v0_6.put("last_bundle_index", Long.valueOf(p8.p()));
        v0_6.put("last_bundle_start_timestamp", Long.valueOf(p8.h()));
        v0_6.put("last_bundle_end_timestamp", Long.valueOf(p8.i()));
        v0_6.put("app_version", p8.j());
        v0_6.put("app_store", p8.l());
        v0_6.put("gmp_version", Long.valueOf(p8.m()));
        v0_6.put("dev_cert_hash", Long.valueOf(p8.n()));
        v0_6.put("measurement_enabled", Boolean.valueOf(p8.o()));
        v0_6.put("day", Long.valueOf(p8.t()));
        v0_6.put("daily_public_events_count", Long.valueOf(p8.u()));
        v0_6.put("daily_events_count", Long.valueOf(p8.v()));
        v0_6.put("daily_conversions_count", Long.valueOf(p8.w()));
        v0_6.put("config_fetched_time", Long.valueOf(p8.q()));
        v0_6.put("failed_config_fetch_time", Long.valueOf(p8.r()));
        v0_6.put("app_version_int", Long.valueOf(p8.k()));
        v0_6.put("firebase_instance_id", p8.g());
        v0_6.put("daily_error_events_count", Long.valueOf(p8.y()));
        v0_6.put("daily_realtime_events_count", Long.valueOf(p8.x()));
        v0_6.put("health_monitor_sample", p8.z());
        v0_6.put("android_id", Long.valueOf(p8.B()));
        v0_6.put("adid_reporting_enabled", Boolean.valueOf(p8.C()));
        v0_6.put("ssaid_reporting_enabled", Boolean.valueOf(p8.D()));
        v0_6.put("admob_app_id", p8.e());
        try {
            String v1_10 = this.y();
            int v4_1 = new String[1];
            v4_1[0] = p8.b();
        } catch (com.google.android.gms.measurement.internal.q v0_4) {
            this.r().an_().a("Error storing app. appId", com.google.android.gms.measurement.internal.o.a(p8.b()), v0_4);
            return;
        }
        if ((((long) v1_10.update("apps", v0_6, "app_id = ?", v4_1)) == 0) && (v1_10.insertWithOnConflict("apps", 0, v0_6, 5) == -1)) {
            this.r().an_().a("Failed to insert/update app (got -1). appId", com.google.android.gms.measurement.internal.o.a(p8.b()));
        }
        return;
    }

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


    protected final long h(String p14, String p15)
    {
        com.google.android.gms.common.internal.ab.a(p14);
        com.google.android.gms.common.internal.ab.a(p15);
        this.d();
        this.k();
        android.database.sqlite.SQLiteDatabase v0 = this.y();
        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.q v9_0 = this.a(v3_5, v5_1, -1);
        } catch (Object v14_2) {
            v0.endTransaction();
            throw v14_2;
        } catch (Object v3_10) {
            v9_0 = 0;
            this.r().an_().a("Error inserting column. appId", com.google.android.gms.measurement.internal.o.a(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.r().an_().a("Failed to insert column (got -1). appId", com.google.android.gms.measurement.internal.o.a(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.r().an_().a("Failed to update column (got 0). appId", com.google.android.gms.measurement.internal.o.a(p14), p15);
            v0.endTransaction();
            return -1;
        }
    }

Method android.arch.persistence.a.a.a$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.a.a(new android.arch.persistence.a.a.d(p5));
        return new android.database.sqlite.SQLiteCursor(p3, p4, p5);
    }

Method android.arch.persistence.a.a.a$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.a.a(new android.arch.persistence.a.a.d(p5));
        return new android.database.sqlite.SQLiteCursor(p3, p4, p5);
    }